From: Doug Evans <dje@google.com>
To: "Amker.Cheng" <amker.cheng@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: how to pass environment variables to inferior when debugging with gdbserver
Date: Tue, 15 Sep 2009 19:30:00 -0000 [thread overview]
Message-ID: <e394668d0909151229q7be013e5q90878748491535f5@mail.gmail.com> (raw)
In-Reply-To: <e8b251c80909040034y19ae2f76o33d3d99e46125479@mail.gmail.com>
On Fri, Sep 4, 2009 at 12:34 AM, Amker.Cheng <amker.cheng@gmail.com> wrote:
> Hi All:
> I want to debug a problem with dynamic linker when setting LD_AUDIT
> variable, apparently this can only be set to inferior,
> or gdbserver itself would break.
> The problem is how to pass this variables to inferior by gdbserver
> command line? I searched the doc but
> didn't found a solution. Maybe I've missed something important, please
> help and correct me if I am wrong.
> Thanks.
> --
> Best Regards.
>
With cvs head gdb (and in 7.0 when it is released) there is a new
--wrapper argument to gdbserver.
E.g.
$ gdbserver --wrapper env LD_AUDIT=mumble -- :2222 ./testprog
next prev parent reply other threads:[~2009-09-15 19:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 7:35 Amker.Cheng
2009-09-15 19:30 ` Doug Evans [this message]
2009-09-16 0:42 ` Amker.Cheng
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=e394668d0909151229q7be013e5q90878748491535f5@mail.gmail.com \
--to=dje@google.com \
--cc=amker.cheng@gmail.com \
--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