gdbserver args

Russell Shaw rjshaw@netspace.net.au
Mon Mar 16 10:48:00 GMT 2015


On 16/03/15 17:33, Russell Shaw wrote:
> 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 ?

I found i can pass the args in gdb on the remote host.



More information about the Gdb mailing list