This is the mail archive of the gdb@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]
Other format: [Raw text]

Re: missing text segment in Elf dump


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


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