Mail Archives: djgpp-workers/2001/07/31/04:58:53
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?
> Btw, does anyone know what is the core_command member of elf_tdata
> structure (see bfd/elf.c in Binutils or in GDB) used for, and what
> should it hold?
That's one I may be able help with. The usage/calling sequence for
this is:
bfd_core_file_failing_command (bfd/corefile.c)
|
+->{elf,...}_core_file_failing_command (bfd/elfcore.h)
|
+->reads: core_command
bfd_core_file_failing_command is even documented a bit by comments in the
sources. It's called by display_bfd() in binutils/size.c.
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...]
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -