This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdbserver args
- From: Russell Shaw <rjshaw at netspace dot net dot au>
- To: gdb at sourceware dot org
- Date: Mon, 16 Mar 2015 17:33:55 +1100
- Subject: gdbserver args
- Authentication-results: sourceware.org; auth=none
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 ?