public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "zonena at cs dot rpi dot edu" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug breakpoints/10963] New: Cannot set breakpoints on symbols containing periods in name Date: Sun, 15 Nov 2009 03:44:00 -0000 [thread overview] Message-ID: <20091115034445.10963.zonena@cs.rpi.edu> (raw) 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.
next reply other threads:[~2009-11-15 3:44 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-15 3:44 zonena at cs dot rpi dot edu [this message] 2009-11-15 3:51 ` [Bug breakpoints/10963] " zonena at cs dot rpi dot edu
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091115034445.10963.zonena@cs.rpi.edu \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).