This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: breakpoints/1705: Set breakpoint in C++ source file
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 9 Jul 2004 19:48:00 -0000
- Subject: Re: breakpoints/1705: Set breakpoint in C++ source file
- Reply-to: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
The following reply was made to PR breakpoints/1705; it has been noted by GNATS.
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
To: xinsolo@hotmail.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1705: Set breakpoint in C++ source file
Date: Fri, 9 Jul 2004 15:46:57 -0400 (EDT)
Ah, thanks for the typescript.
(gdb) b pciexs_CController.cpp : PrintTLP
Function "PrintTLP" not defined.
(gdb) b pciexs_CController.cpp : PrintTLP(CTLP*, bool)
Function "pciexs_CController.cpp : PrintTLP(CTLP*, bool)" not defined.
This is a simple problem. You need to use single-quote
characters to get the special characters treated as part
of the name. Try this:
(gdb) break 'PrintTLP(CTLP*, bool)'
And then try using the <TAB key inside the single quote:
(gdb) break 'PrintTLP<TAB>
That is, after the TLP, hit the TAB key.
The big point is to use the single quote character at the beginning
of the symbol.
Hope this helps,
Michael C
GDB QA Guy