Hi again, now guess what! I tried another aproach i.e. i tried to enter: 'break main' or 'break someFunctionName' and it worked.
And I can in ddd select a functionName (main/whatever) and with the name selected add a breakpoint (by pushing that button...). Well that makes me very happy and I'm not going to spend months why it doesn't work with line-numbers (i.e. break 50), maybe I'll stumble overit someday. Hope I haven't wasted anyone's time regards - Ingvaldur Ingvaldur Þ. Sigurjonsson wrote: > > 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++------- > [EMAIL PROTECTED] | C++ > [EMAIL PROTECTED] | 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). > > :-) > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null -- -----------------------------------------------C++------- [EMAIL PROTECTED] | http://elvis.elit.se/~ingi C++ [EMAIL PROTECTED] | Linux on the Laptop Rulez... C++ --------------------------------------------------------C