public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/10963] New: Cannot set breakpoints on symbols containing periods in name
@ 2009-11-15  3:44 zonena at cs dot rpi dot edu
  2009-11-15  3:51 ` [Bug breakpoints/10963] " zonena at cs dot rpi dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: zonena at cs dot rpi dot edu @ 2009-11-15  3:44 UTC (permalink / raw)
  To: gdb-prs

When debugging an application written in amd64 assembly language (compiled with
NASM), I was unable to set breakpoints on labels local to a function which had
periods in their names.

GDB versions tested:
7.0-ubuntu on Ubuntu 9.10 amd64
6.8-debian on Ubuntu 9.04 amd64

Example source:
global printSector
printSector:
  ;code omitted
  cmp rax, rbx
  je .printLittle
  ;code here

.printLittle:
  ;code omitted
  ret

When single stepping this function I was unable to set a breakpoint at the
printLittle label.

$ nm homework6 | grep printLittle
0000000000401bb1 t printSector.printLittle

(gdb) break printSector.printLittle
Can't find member of namespace, class, struct, or union named
"printSector.printLittle"
Hint: try 'printSector.printLittle<TAB> or 'printSector.printLittle<ESC-?>
(Note leading single quote.)
Make breakpoint pending on future shared library load? (y or [n]) 

Tab completion:
(gdb) break printSector
printSector                   printSector.printBig         
printSector.printLittle       printSector.printdirLoop      
printSector.donePrinting      printSector.printDirectory   
printSector.printRegular      printSector.printdirLoopNext  

The only workaround I have found to date is to use nm to locate the address of
the target label and break at the address.

-- 
           Summary: Cannot set breakpoints on symbols containing periods in
                    name
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: zonena at cs dot rpi dot edu
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10963

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug breakpoints/10963] Cannot set breakpoints on symbols containing periods in name
  2009-11-15  3:44 [Bug breakpoints/10963] New: Cannot set breakpoints on symbols containing periods in name zonena at cs dot rpi dot edu
@ 2009-11-15  3:51 ` zonena at cs dot rpi dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: zonena at cs dot rpi dot edu @ 2009-11-15  3:51 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From zonena at cs dot rpi dot edu  2009-11-15 03:51 -------
Also reproducible with the same application on gdb 6.8 on "Gentoo Base System
version 1.12.1"

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10963

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-15  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15  3:44 [Bug breakpoints/10963] New: Cannot set breakpoints on symbols containing periods in name zonena at cs dot rpi dot edu
2009-11-15  3:51 ` [Bug breakpoints/10963] " zonena at cs dot rpi dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).