Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: David Carlton <carlton@kealia.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa:symtab] deprecate inside_entry_func
Date: Fri, 21 Nov 2003 20:07:00 -0000	[thread overview]
Message-ID: <yf2vfpd1o4m.fsf@hawaii.kealia.com> (raw)
In-Reply-To: <3FBE6D46.4070201@redhat.com> (Andrew Cagney's message of "Fri, 21 Nov 2003 14:53:42 -0500")

On Fri, 21 Nov 2003 14:53:42 -0500, Andrew Cagney <ac131313@redhat.com> said:

>> This patch deprecates the function inside_entry_func.
>> PS: Ref:
>> http://sources.redhat.com/ml/gdb-patches/2003-10/msg00533.html

I skimmed this, though I haven't been following the discussion too
closely.  But I don't quite understand the philosophical stance here -
on the one hand, I see:

> This way all calls to inside_entry_func have been eliminated from
> up-to-date code.

which suggests that you want to get rid of the idea of
inside_entry_func(PC) entirely, but on the other hand I see:

> +   NOTE: cagney/2003-11-21: Deprecate this specific _mechanism_ for
> +   determining if the PC is inside the entry function.  While there's
> +   nothing technically wrong with the idea of using "PC inside entry
> +   function" as a condition for terminating a backtrace, there's
> +   something seriously wrong with this specific implementation.  It
> +   forces the symbol table code to go through all sorts of symbol
> +   table load and relocation hoops just to get the test right.

which suggests that you just want to get rid of the implementation.

So which is it?  It seems to me that the renaming you propose suggests
that the interface should go away, but the above comment suggests that
you're happy with the interface, you just don't like the
implementation.

If you're happy with the interface, it seems to me that the proper
thing to do is to add a big FIXME comment to inside_entry_func.  If
for some reason you think that isn't strong enough, then I could
imagine renaming it to something like "broken_inside_entry_func".  But
I don't like renaming it to deprecated_inside_entry_func if the above
NOTE is accurate.

(I don't have any opinion one way or another as to whether it's better
to deprecate the interface or to just flag the implementation as
broken.)

David Carlton
carlton@kealia.com


      parent reply	other threads:[~2003-11-21 20:07 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-01  0:07 Andrew Cagney
2003-11-01  0:37 ` Kevin Buettner
2003-11-01  0:46   ` Andrew Cagney
2003-11-01  0:55     ` Kevin Buettner
2003-11-01  2:27       ` Andrew Cagney
2003-11-07 17:31         ` Kevin Buettner
2003-11-07 21:25           ` Andrew Cagney
2003-11-01  0:42 ` Daniel Jacobowitz
2003-11-01  2:37   ` Andrew Cagney
2003-11-09  0:13     ` Daniel Jacobowitz
2003-11-09  2:40       ` Andrew Cagney
2003-11-09  3:50         ` Daniel Jacobowitz
2003-11-21 19:53 ` Andrew Cagney
2003-11-21 19:59   ` Daniel Jacobowitz
2003-11-21 20:11     ` Kevin Buettner
2003-11-21 20:46     ` Andrew Cagney
2003-11-21 20:48       ` Daniel Jacobowitz
2003-11-21 20:55         ` Andrew Cagney
2003-11-21 21:04           ` Daniel Jacobowitz
2003-11-21 21:24             ` Kevin Buettner
2003-11-21 21:54               ` Daniel Jacobowitz
2003-11-21 22:40                 ` Kevin Buettner
2003-11-22  0:37             ` Andrew Cagney
2003-11-22  0:41               ` Daniel Jacobowitz
2003-11-21 20:07   ` David Carlton [this message]

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=yf2vfpd1o4m.fsf@hawaii.kealia.com \
    --to=carlton@kealia.com \
    --cc=ac131313@redhat.com \
    --cc=gdb-patches@sources.redhat.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