Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <Michael.Snyder@palmsource.com>
Cc: Jim Blandy <jimb@codesourcery.com>, gdb@sourceware.org
Subject: Re: Breaking on C labels?
Date: Fri, 26 Jan 2007 01:01:00 -0000	[thread overview]
Message-ID: <20070126010229.GG4262@adacore.com> (raw)
In-Reply-To: <1169767203.22601.128.camel@localhost.localdomain>

> There's a risk that some symbol-lookup function would then select that
> label instead of the function entry label when you tried to look up the
> nearest label preceeding a given address.

Yes, I was actually also thinking about that... Even though GDB tends
to prefer debugging information over plain symbols, it still uses minsym
lookups during symbol/psymbol lookups...

This may not be as straightforward as it looks.

In any case, I was just curious about this, wondering whether we broke
this feature or never implemented it. Sounds like the latter. There are
other things that motivate me more than support for labels. I tend to
think that usage of labels in C should be relatively rare, and it's
pretty easy to implement ways of working around that limitation.

-- 
Joel


  reply	other threads:[~2007-01-26  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 19:48 Joel Brobecker
2007-01-25 21:19 ` Jim Blandy
2007-01-26  0:05   ` Michael Snyder
2007-01-26  1:01     ` Joel Brobecker [this message]
2007-01-26 18:55     ` Jim Blandy
2007-01-26 19:41       ` Michael Snyder
2007-01-26 21:04         ` Jim Blandy

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=20070126010229.GG4262@adacore.com \
    --to=brobecker@adacore.com \
    --cc=Michael.Snyder@palmsource.com \
    --cc=gdb@sourceware.org \
    --cc=jimb@codesourcery.com \
    /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: link
Be 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