gdbserver args

Russell Shaw <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,
On a laptop (acer) i run:

gdbserver :1234 myprog arg1 arg2


On the main pc:

(gdb) file myprog
(gdb) target extended-remote acer:1234
(gdb) b main
(gdb) r
(gdb) p argc
$1 = 1


Why can't i get the arguments arg1 and arg2 ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.