This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: Question regarding setting breakpoints on 'C' labels and the handling of DW_TAG_label in new_symbol() in dwarf2read.c.
- From: "Monika Chaddha" <monika at acmet dot com>
- To: "'Dave Trollope'" <trollope at lucent dot com>
- Cc: "'Cuthbertson, Reva D.'" <reva_cuthbertson at hp dot com>, "'Daniel Jacobowitz'" <drow at false dot org>, <gdb at sources dot redhat dot com>
- Date: Thu, 28 Jul 2005 11:45:39 +0530
- Subject: RE: Question regarding setting breakpoints on 'C' labels and the handling of DW_TAG_label in new_symbol() in dwarf2read.c.
I think that this can be achieved by putting breakpoints using function
names.
>-----Original Message-----
>From: gdb-owner@sources.redhat.com
[mailto:gdb-owner@sources.redhat.com] On
>Behalf Of Dave Trollope
>Sent: Thursday, July 28, 2005 9:54 AM
>To: Daniel Jacobowitz
>Cc: Cuthbertson, Reva D.; gdb@sources.redhat.com
>Subject: Re: Question regarding setting breakpoints on 'C' labels and
the
>handling of DW_TAG_label in new_symbol() in dwarf2read.c.
>
>
>I too tried this recently and was disappointed to find it didn't work.
>Heres why I was trying it:
>
>We have a number of source trees where code changes regularly. By using
>a label, we can write generic breakpoint scripts that are source tree
>independant (I.E. Don't need line numbers to place the breakpoint.
etc).
>
>Is there an alternative way to do what we are trying to achieve?
>
>Cheers
>Dave
>Daniel Jacobowitz wrote:
>
>>On Thu, Jun 23, 2005 at 04:56:15PM -0700, Cuthbertson, Reva D. wrote:
>>
>>
>>>Hello,
>>>
>>>I was trying to set a breakpoint on a 'C' label in gdb and when I
could
>>>not do it I tried to find out why. I noticed a few things and had a
few
>>>questions.
>>>
>>>
>>
>>Simply, GDB does not support this. It may have once upon a time, but
>>no one has used the feature for years.
>>
>>
>>
>>