From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10220 invoked by alias); 15 Nov 2009 03:44:49 -0000 Received: (qmail 10205 invoked by uid 48); 15 Nov 2009 03:44:46 -0000 Date: Sun, 15 Nov 2009 03:44:00 -0000 From: "zonena at cs dot rpi dot edu" To: gdb-prs@sourceware.org Message-ID: <20091115034445.10963.zonena@cs.rpi.edu> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug breakpoints/10963] New: Cannot set breakpoints on symbols containing periods in name X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00241.txt.bz2 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 or 'printSector.printLittle (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.