Mail Archives: djgpp-workers/2001/07/31/06:24:23
On Tue, 31 Jul 2001, Hans-Bernhard Broeker wrote:
> On Sat, 28 Jul 2001, Eli Zaretskii wrote:
>
> > Finally, I'm not sure what to do with the environment and backtrace
> > sections: GDB doesn't use them.
>
> But maybe the special coredump-interpreting program that came with that
> package does?
Maybe. But this info is redundant: the memory dump already has it.
Also, I don't understand why is it so important to have environ[] stashed
away separately. How is it different from any other global variable used
internally by the library?
> The struct field is written to by
>
> elfcore_grok_psinfo (bfd/elf.c)
>
> by copying it out of the 'ps info' structure. In short: yes, this is
> argv[], if available.
>
> [Cscope is really a nice tool for digging up stuff like this...]
Well, I've seen all this even without CScope, except that I was looking
inside GDB and so didn't see binutils/size.c; thanks.
FWIW, it looks like GDB itself never uses the info in this field; Cygwin
doesn't even compute it, probably for that same reason.
- Raw text -