This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 11/11] ELFv2 ABI: skip global entry point code
- From: Ulrich Weigand <Ulrich dot Weigand at de dot ibm dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 31 Jan 2014 16:38:51 +0100
- Subject: Re: [PATCH 11/11] ELFv2 ABI: skip global entry point code
- Authentication-results: sourceware.org; auth=none
- References: <20140129080932 dot GR4101 at adacore dot com> <201401291830 dot s0TIUWWI026029 at d06av02 dot portsmouth dot uk dot ibm dot com> <20140131101432 dot GZ4101 at adacore dot com>
Joel Brobecker <brobecker@adacore.com> wrote on 31.01.2014 11:14:32:
> > No, there are no multiple entry points on AIX. (What you are refering
> > to are mabye linker stubs? Those exist on Linux too, but they're not
> > causing any issues with setting break points ...)
>
> Maybe something like that, yes. I kind of remember that "break *func"
> would sometimes not trigger, because a call of that function would
> just to the 3rd instruction of the function instead of the first one.
> It's not important.
Huh, interesting. Well, if you run into an example again, give me a
ping and I can have a look ...
> > I'd rather either skip the test, or modify it so that it also works on
> > powerpc64le-linux. One way to do that would be to ensure that "hello"
> > is entered via its global entry point, e.g. by calling it via a
> > function pointer. This is what I've implemented now. Does this look
> > reasonable to you?
>
> Ha! That's indeed a much better idea.
OK, good. I'll post a full updated patch series shortly, and will
probably commit to mainline early next week. Thanks again for your
review!
Bye,
Ulrich