This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] Check function is GC'ed


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 (éå)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]