public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Russell Shaw <rjshaw@netspace.net.au>
To: gdb@sourceware.org
Subject: Re: gdbserver args
Date: Mon, 16 Mar 2015 10:48:00 -0000	[thread overview]
Message-ID: <5506B508.5040300@netspace.net.au> (raw)
In-Reply-To: <55067953.4050403@netspace.net.au>

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.

  reply	other threads:[~2015-03-16 10:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16  6:33 Russell Shaw
2015-03-16 10:48 ` Russell Shaw [this message]
2015-03-16 16:36 ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5506B508.5040300@netspace.net.au \
    --to=rjshaw@netspace.net.au \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).