Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver args
@ 2015-03-16  6:33 Russell Shaw
  2015-03-16 10:48 ` Russell Shaw
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Shaw @ 2015-03-16  6:33 UTC (permalink / raw)
  To: gdb

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 ?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdbserver args
  2015-03-16  6:33 gdbserver args Russell Shaw
@ 2015-03-16 10:48 ` Russell Shaw
  0 siblings, 0 replies; 2+ messages in thread
From: Russell Shaw @ 2015-03-16 10:48 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-16 10:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-16  6:33 gdbserver args Russell Shaw
2015-03-16 10:48 ` Russell Shaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox