I'm reading "An Introduction to GCC" from this site:
http://www.network-theory.co.uk/docs...tro/index.html
I'm reading the "Examining Core Files" section.
http://www.network-theory.co.uk/docs...cintro_38.html
This is their example output when running "gdb a.out core":
Quote:
$ gdb a.out core
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x080483ed in foo (p=0x0) at null.c:13
13 int y = *p;
(gdb)
|
When I originally ran it, the lines that said "Reading symbols from /lib/*" said something along the lines of "debugging symbols not found". I fixed this by installing the "libc6-dbg" package. Now my output looks like this:
Quote:
Reading symbols from /home/prdeltoid/C-CPP/a.out...done.
[New Thread 2178]
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/tls/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/tls/i686/cmov/libc-2.11.1.so...done.
done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x080483dc in foo (p=0x0) at null.c:11
11 int y = *p;
|
Quote:
warning: Can't read pathname for load map: Input/output error.
|
Do you know which package I should install to get rid of this warning message? Some configuration, maybe?