This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [DISCUSS]: cross-debugging shared libraries


Peter.Schauer wrote:
> 
> > > I abhor environment variables, in case of problems debugging becomes
> > > a nightmare, as you might not be able to reproduce the problem without
> > > the correct set of environment variables.
> >
> > Hmm...  Good point.  But this is no different from needing a certain
> > .gdbinit (or the corresponding gdb settings) to reproduce a problem.
> 
> It is different.
> 
> I could request e.g the output of a
> show solib-search-path
> command from the problem reporter and see the effective value immediately.
> 
> show env
> shows the environment the inferior will see, not necessarily GDB's own
> environment. If someone does a set env in his .gdbinit file, you are lost.
> And yes, I really have seen such scenarios ...

What if I made GDB check the environment variable at start-up
(ONLY), and do a "set solib-search-path" internally at
that time?  Then your "show solib-search-path" would work.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]