This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Any support plan to breakpoints of multiple locations?
- From: Robert Bu 卜勇华 <robert_bu at realsil dot com dot cn>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: insight at sourceware dot org
- Date: Fri, 07 Mar 2008 16:26:35 +0800
- Subject: Re: Any support plan to breakpoints of multiple locations?
- References: <47CDF17C.3090004@realsil.com.cn> <47D0F717.10501@redhat.com>
No, it's not "rbreak" or setting breakpoint using regular expressions.
It's about C++ constructor, function template, class template, etc.
Eg, for C++ constructor, G++ will generate several machine code
constructors related to the same source code. So if i set a breakpoint
in the source line within the constructor, such as:
(gdb) b some_class
Breakpoint 1 at 0x80e44f4: file some_class.cpp, line 44. (4 locations)
(gdb) i b
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 y 0x080e44f4 in some_class
at some_class.cpp:44
1.2 y 0x080e559b in some_class
at some_class.cpp:44
1.3 y 0x080f365a in some_class
at some_class.cpp:44
1.4 y 0x080f4725 in some_class
at some_class.cpp:44
Function template is similar, which can have several instances.
I tried Insight 6.7.1, even the console window does not work. I don't
know wheter GDB 6.7.1 supports breakpoint with multiple locations.
Future GDB can support that for sure.
You can search the GDB manual for "MULTIPLE" (all capitalized) for detail.
Thanks.
Robert
-----Original Message-----
From: Keith Seitz
Sent: 2008-03-07 16:04
> Robert Bu 卜勇华 wrote:
>
>> Is there any plan in Insight to support breakpoints of multiple
>> locations? This feature is useful when debugging C++ programs.
>
> I'm not entirely sure what you mean... Something similar to gdb's
> "rbreak" function (which is still accessible from the console window)?
> You can use the Function Browser to do this (View->Function Browser).
>
> ??
> Keith
>
>