[15195] in Athena Bugs
sun 8.1.4: cygnus gdb weirdness
daemon@ATHENA.MIT.EDU (John Hawkinson)
Thu Jun 12 22:03:36 1997
Date: Thu, 12 Jun 1997 22:03:30 -0400
To: bugs@MIT.EDU
Cc: cygnus-users@MIT.EDU
From: John Hawkinson <jhawk@MIT.EDU>
I don't understand this. GDB reports that the memory
address 0x21580 corresponds to "mflag+2", however
"mflag+2" tries to access a different location.
[bart-savagewood!jhawk] ~> /mit/cygnus/sun4bin/gdb -nw /usr/ucb/whereis
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.15.2-96q3 (sparc-sun-solaris2), Copyright 1996 Free Software Foundation, Inc...(no debugging symbols found)...
(gdb) x/s 0x21580
0x21580 <mflag+2>: "/etc"
(gdb) x/s mflag+2
Cannot access memory at address 0x2157e.
(gdb) x/s mflag
Cannot access memory at address 0x2157e.
(gdb) p/x 0x2157e-0x21580
$1 = 0xfffffffe
(gdb) p/x 0x21580-0x2157e
$2 = 0x2
(gdb)
Could someone send-pr this please?
--jhawk