Jeffrey Chang | 3 Dec 2006 00:07
Picon

gdb output: Note: breakpoint -1 (disabled) also set at pc 0x0

Hi,

I've recently encountered this error on my system:

# gdb ./myprogram
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i486-linux-gnu"...b mainUsing host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x8057c39: file ../../src/myprogram.cpp, line 111.
(gdb) b mylibrary.hpp:342
Note: breakpoint -1 (disabled) also set at pc 0x0.
Breakpoint 2 at 0x0: file ../../src/mylibrary.hpp, line 342.
(gdb) run  -f ../../test/config.xml
Starting program: /path/to/myprogram -f ../../test/config.xml
Warning:
Cannot insert breakpoint 2.
Error accessing memory address 0x0: Input/output error.

(gdb)


I've no clue on where this "breakpoint -1" comes from.   "myprogarm" is a C++ programs  linked with  C++ template-based libaries, including STL & Boost.
Any hint on what to check for this type of problem is appreciated.

--- Jeffrey

_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://lists.gnu.org/mailman/listinfo/gdb
jdaues | 19 Dec 2006 18:29
Picon
Favicon

No symbol "new" in current context

I am attempting to debug a fortran program and I am getting the error:
No symbol "new" in current context
I have removed the optimization option.
The program runs fine in non-debug.

Using:
Intel Fortran compiler 9.0
Eclipse 3.2 with photran
gdb 3.4
OpenSuSE 10.1

What can I do?
Bob Furber | 30 Dec 2006 04:08
Favicon

Remote debugging problems with gdbserver

I am having intermittent problems debugging applications running under
uClinux-2.6.17 (uDebugging) on a M5208EVB target: GDB shows the wrong the
start address on startup and it misbehaves. Then on a subsequent uDebug
attempt, the correct start address shows up and uDebugging proceeds as
expected.

My impression is that when GDB misbehaves it is confused: It has knowledge
of symbols and absolute addresses, but it claims otherwise when asked to
step. Stepi results in the program being terminated, which makes no sense.
Run results in gdbserver killing the program:

C:\SBCToolsV3\workspace\uTestuClinuxInit\Debug>m68k-bdm-elf-gdb
uTestuClinuxInit.gdb
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
	:
This GDB was configured as "--host=i686-pc-mingw32 --target=m68k-bdm-elf"...
(gdb) target remote 192.168.2.128:3000
Remote debugging using 192.168.2.128:3000
0x41cb702e in ?? ()				<-- wrong start address
(gdb) x $pc
0x41cb702e:     0x2a007082
(gdb) x _start
0x4032c048 <_start>:    0x2a4541f9		<-- knows symbols & addresses
(gdb) set $pc=_start
(gdb) x $pc
0x4032c048 <_start>:    0x2a4541f9
(gdb) disas 0x4032c040 0x4032c06e
Dump of assembler code from 0x4032c040 to 0x4032c06e:
0x4032c040:     orib #0,%d0
0x4032c044 <_stext+0>:  nop
0x4032c046 <_stext+2>:  nop
0x4032c048 <_start+0>:  moveal %d5,%a5	<-- looks reasonable
0x4032c04a <_start+2>:  lea 0x826,%a0
0x4032c050 <_start+8>:  jsr %pc <at> (0x4032c052 <_start+10>,%a0:l)
0x4032c054 <__exit+0>:  movel %sp <at> +,%d1
0x4032c056 <__exit+2>:  moveq #1,%d0
0x4032c058 <__exit+4>:  trap #0
0x4032c05a <atexit+0>:  rts
0x4032c05c <main+0>:    linkw %fp,#-32
0x4032c060 <main+4>:    movel %a5,%sp <at> -
0x4032c062 <main+6>:    lea 0x2872,%a1
0x4032c068 <main+12>:   jsr %pc <at> (0x4032c06a <main+14>,%a1:l)
0x4032c06c <main+16>:   moveq #3,%d0
End of assembler dump.
(gdb) s
Cannot find bounds of current function	<-- yet it can disassemble!
(gdb) stepi
Program exited normally.
(gdb)

Attempt to run, after correcting PC, fails, showing gdbserver and gdb
transactions:

# gdbserver :3000 /mnt/workspace/uTestuClinuxInit/Debug/uTestuClinuxInit
Process /mnt/workspace/uTestuClinuxInit/Debug/uTestuClinuxInit created; pid
= 86
code at 0x4032c040 - 0x4032fee0, data at 0x41f1a004
Remote debugging using :3000 				<-- gdbserver

   (gdb) target remote 192.168.2.128:3000		<-- gdb
   Remote debugging using 192.168.2.128:3000
   0x41cb702e in ?? ()
   (gdb) set $pc=_start
   (gdb) x $pc
   0x4032c048 <_start>:    0x2a4541f9
   (gdb) run
   Starting program:
C:\SBCToolsV3\workspace\uTestuClinuxInit\Debug/uTestuClinuxInit.gdb
   Not attached to the target. Use `target bdm <DEVICE-NAME>' command to
attach.
   (gdb)

Killing inferior             				<-- gdbserver
#

Has anyone run into this kind of problem?

Thanks,

BobF

Gmane