This is the mail archive of the gdb@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: Get longjmp target check in breakpoint.c - is it necessary?


On Thu, 2013-10-31 at 11:27 -0200, Edjunior Barbosa Machado wrote:

> What if you try to move this 'if' to a bit below in the function (right
> before "for (i = 0; i < NUM_LONGJMP_NAMES; i++)" loop)?

Good catch, I didn't notice the 'if' is kind of an optimization for the
scenarios where <arch>_get_longjmp_target is not provided. Moving it
down before that 'for NUM_LONGJMP_NAMES' loop would work nicely as
probes would work. 

The no changes were detected in the testsuite by moving the 'if' before
the 'for' compared to removing it altogether.

Regards,
Tiago


-- 
Tiago StÃrmer Daitx
tdaitx@linux.vnet.ibm.com
IBM - Linux Technology Center


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