This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoints/1705: Set breakpoint in C++ source file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]