This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Check function is GC'ed
- From: Yao Qi <yao at codesourcery dot com>
- To: Doug Evans <dje at google dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 15 Aug 2014 14:15:16 +0800
- Subject: Re: [PATCH 2/2] Check function is GC'ed
- Authentication-results: sourceware.org; auth=none
- References: <53D8A264 dot 1050103 at codesourcery dot com> <1407307813-5321-1-git-send-email-yao at codesourcery dot com> <1407307813-5321-2-git-send-email-yao at codesourcery dot com> <21485 dot 36660 dot 648927 dot 89507 at ruffy dot mtv dot corp dot google dot com>
On 08/15/2014 12:40 PM, Doug Evans wrote:
> Something in this explanation doesn't feel right.
> If .text is at zero then has_section_at_zero should be true.
Right. Under this situation, if a function is GC'ed by linker,
the address is zero. GDB thinks address zero is about a function's
address, rather than this function is GC'ed.
> Perhaps the explanation just needs more elaboration,
OK, I'll improve the explanation.
> but looking at break-on-linker-gcd-function.exp
> the problem seems to be more that the test is invalid
> when .text begins at 0x0.
> If the testcase is invalid in this context (and
> we can discuss ways in which to cope with that),
> is there still a real bug here?
AFAICS, the test is still valid when .text begins at 0x0.
--
Yao (éå)