Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* how to pass environment variables to inferior when debugging with   gdbserver
@ 2009-09-04  7:35 Amker.Cheng
  2009-09-15 19:30 ` Doug Evans
  0 siblings, 1 reply; 3+ messages in thread
From: Amker.Cheng @ 2009-09-04  7:35 UTC (permalink / raw)
  To: gdb

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.


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

* Re: how to pass environment variables to inferior when debugging with   gdbserver
  2009-09-04  7:35 how to pass environment variables to inferior when debugging with gdbserver Amker.Cheng
@ 2009-09-15 19:30 ` Doug Evans
  2009-09-16  0:42   ` Amker.Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2009-09-15 19:30 UTC (permalink / raw)
  To: Amker.Cheng; +Cc: gdb

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


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

* Re: how to pass environment variables to inferior when debugging with   gdbserver
  2009-09-15 19:30 ` Doug Evans
@ 2009-09-16  0:42   ` Amker.Cheng
  0 siblings, 0 replies; 3+ messages in thread
From: Amker.Cheng @ 2009-09-16  0:42 UTC (permalink / raw)
  To: Doug Evans; +Cc: gdb

On Wed, Sep 16, 2009 at 3:29 AM, Doug Evans <dje@google.com> wrote:
> On Fri, Sep 4, 2009 at 12:34 AM, Amker.Cheng <amker.cheng@gmail.com> wrote:
>
> 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
>
Thanks for help, I will try it out.


-- 
Best Regards.


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

end of thread, other threads:[~2009-09-16  0:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-04  7:35 how to pass environment variables to inferior when debugging with gdbserver Amker.Cheng
2009-09-15 19:30 ` Doug Evans
2009-09-16  0:42   ` Amker.Cheng

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