missing text segment in Elf dump

Daniel Jacobowitz drow@mvista.com
Thu Aug 15 12:29:00 GMT 2002


On Thu, Aug 15, 2002 at 11:30:56AM -0700, Lucy Zhang wrote:
> Can you elaborate on how GDB gets it from the application? and by
> application do you mean the executable file?

Yes.  They are both ELF binaries with mapped sections.  GDB can read
data directly from the application; and the kernel generally will not
dump it.

> Also, when I try to look at the source code using "list", does this have
> anything to do with the text segment? I ask because it would work for some
> source files and not for others. i.e.
> (gdb) list condvar.c:88
> 83      condvar.c: No such file or directory.
>           in condvar.c

No, this has nothing to do with segments, only with debug information.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list