bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

weirdness when setting C++ breakpoints


From: allen
Subject: weirdness when setting C++ breakpoints
Date: Tue, 17 Oct 2000 17:21:30 -0400 (EDT)

On a RedHat Linux 6.2/Intel system using gcc-2.95.2/gdb-5.0 I am
having the following problems setting breakpoints. 

address@hidden:~/sandbox/build/adept/adept/tests$ gdb server
GNU gdb 5.0
Copyright 2000 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 "i686-pc-linux-gnu"...
(gdb) break log.i:1
No source file named log.i.
(gdb) break log.h:1
No source file named log.h.
(gdb) break log.cpp:1
Breakpoint 1 at 0x8063620: file log.cpp, line 1.
(gdb) break log.i:1
Breakpoint 2 at 0x8064218: file /home/allen/sandbox/build/log/log/log.i, line 1.
(gdb) break log.h:1
Breakpoint 3 at 0x80e18fc: file /home/allen/sandbox/build/log/log/log.h, line 1.
(gdb) quit 
address@hidden:~/sandbox/build/adept/adept/tests$ 

Two things strike me as weird. The first is that I cannot set a
breakpoint in a *.h or *.i file unless I first set a breakpoint in a
*.cpp file beforehand. The second is that when I set the breakpoint in
the log.cpp file it did not print out the absolution pathname as it
did for the log.h and log.i files.

hope this helps...

-allen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]