attach not working in gdb

Daryl Sayers daryl at ci.com.au
Tue May 20 05:03:59 UTC 2008


I am trying to use gdb on FreeBSD 7.0 but is does not seem to work using the
attach option. I know this all works with the FreeBSD 4.11 machines we still
have running. Is there a solution??

# ps -auxww | grep vi
daryl    22044  0.0  0.1  3408  1488  qb  S+    2:34PM   0:00.00 vi xxx
# gdb --quiet
(gdb) attach 22044
Attaching to process 22044
/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

/usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1443: internal-error: legacy_fetch_link_map_offsets called without legacy link_map support enabled.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n


-- 
Daryl Sayers                             Direct: +612 95525510
Corinthian Engineering                   Office: +612 95525500
Suite 54, Jones Bay Wharf                   Fax: +612 95525549
26-32 Pirrama Rd                          email: daryl at ci.com.au
Pyrmont NSW 2009 Australia                  www: http://www.ci.com.au


More information about the freebsd-questions mailing list