From: Jason Molenda <jason-swarelist@molenda.com>
To: Adam Fedor <fedor@doc.com>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: Apple's Objective-C language patch
Date: Mon, 09 Sep 2002 17:34:00 -0000 [thread overview]
Message-ID: <20020909173318.A50843@molenda.com> (raw)
In-Reply-To: <3D7D0186.8020103@doc.com>; from fedor@doc.com on Mon, Sep 09, 2002 at 02:16:06PM -0600
Hi Adam,
I'm on not on the Apple gdb deverloper team, nor am I a member of
the FSF gdb maintainers, so the comments and $3 will get you a cup
of coffee. Feel free to ignore me.
On Mon, Sep 09, 2002 at 02:16:06PM -0600, Adam Fedor wrote:
> I've distilled and modified Apple's gdb patches for adding Objective-C
> language support. I've had several people test it and I suppose I might
> be ready to submit it soon, but first I wanted to ask a few questions.
Wow!
> ftp://ftp.gnustep.org/pub/gnustep/contrib/gdb-objc-patch.tar.gz
What is the history behind objc-exp.y? Is this from the old
gnustep-gdb patch that'd been floating around since the mid-90's
(the one that Michael Snyder wrote while at NeXT)? The Apple
sources have the ObjC support rolled in c-exp.y; it doesn't seem
unreasonable given the overlap between the two expression syntaxes.
Mmmm...a testsuite/gdb.objc directory, you don't say... hey, what do you
know, the Apple gdb repository now has a gdb.objc directory! Huzzah! ;-)
The change to symtab.c:lookup_partial_symbol is incorrect, you
should drop it from the patch. (it was in the Apple source drop
that you based your patch on; it is gone now from our sources)
Do you really need objfile_demangle_msymbols() ? minsyms.c should
already be handling this correctly via install_minimal_symbols.
I think the changes to minsyms.c, objfiles.h, and the references
to that func in symtab.[ch] are unnecessary. But then, I haven't
tested that at all. Using objfile_demangle_msymbols can have the
unfortunate side-effect of running all minsyms through the demangler
twice -- the current Apple sources have hacked out the demangle
pass done by install_minimal_symbols, but I don't think that's the
right approach for the FSF sources.
On the topic of demangling, are the ObjC symbol names mangled on
an ELF system? On MachO, ObjC names are stored in the object file
without any mangling. I think ObjC used to be used on some platforms
where mangling was necessary (Windows?) but I don't know if anyone
is still using ObjC in an environment where names are mangled.
It's a minor concern; not the sort of thing which should hold up
the patch from acceptance into the FSF sources--and I'm sure there
are more knowledable people than me on this topic.
I only read over the patches very quickly, but it looks reasonable
to me. Good work!
J
next prev parent reply other threads:[~2002-09-10 0:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-09 13:16 Adam Fedor
2002-09-09 17:34 ` Jason Molenda [this message]
2002-09-09 20:30 ` Adam Fedor
2002-09-09 20:49 ` Andrew Cagney
2002-09-09 20:55 ` Jason Molenda
2002-09-09 21:30 ` Andrew Cagney
2002-09-09 23:21 ` Jason Molenda
2002-09-09 20:58 ` Daniel Berlin
2002-09-09 21:00 ` Daniel Berlin
2002-09-11 9:03 ` Stan Shebs
2002-09-09 21:59 ` Jason Molenda
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=20020909173318.A50843@molenda.com \
--to=jason-swarelist@molenda.com \
--cc=fedor@doc.com \
--cc=gdb@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