GDB & memory access failure
Hi,
I am still having problem using the gdb-GNU debugger.
The problem is that, that the breakpoints I set in the code, cannot be
inserted by the debugger. Here's an output from the gdb:
<begin>
debbie:/home/ingi/misc/c++> gdb pdbg
GNU gdb 4.17.19981224.m68k.objc.threads.hwwp.fpu.gnat
...
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) break 50
Breakpoint 1 at 0xbffff9c0: file pdbg.cpp, line 50.
(gdb) run
Starting program: /home/ingi/misc/c++/pdbg
Breakpoint 1 at 0x821e5f4: file pdbg.cpp, line 50.
Cannot insert breakpoint 1:
Cannot access memory at address 0x821e5f4.
(gdb)
<end>
The same result's apply for both me as a user and as a 'root'.
The code is ofcourse compiled with '-g' and this is my compiler:
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release)
All programs are installed from debian-packages (potato).
I'm not complaining for this otherwise wonderfully free packages, I'm
sure this can be fixed but I myself have been trying now for some weeks
but I now have to resign.
Best regards
-- Ingvaldur
-----------------------------------------------C++-------
ingi@elit.se | C++
ingi@telia.com | Linux on the Laptop Rulez... C++
--------------------------------------------------------C
P.S.
I have as an alternative written a PrintBlob( void* aData, int aSize )
function which dump's memory in following format:
6f 6e 73 73 6f 6e 20 31 39 36 35 2d 30 36 2d 32 onsson 1965-06-2
39 20 45 6c 69 74 20 4c 6f 67 69 6b 20 44 61 74 9 Elit Logik Dat
but it would be nice with a nice debugger with a nice front-end
(ddd/xxgdb).
:-)
Reply to: