This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Get longjmp target check in breakpoint.c - is it necessary?
- From: Tiago Stürmer Daitx <tdaitx at linux dot vnet dot ibm dot com>
- To: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Cc: GDB Development <gdb at sourceware dot org>
- Date: Thu, 31 Oct 2013 12:46:40 -0200
- Subject: Re: Get longjmp target check in breakpoint.c - is it necessary?
- Authentication-results: sourceware.org; auth=none
- References: <1383186973 dot 5925 dot 103 dot camel at localhost dot localdomain> <52725AB4 dot 5080002 at linux dot vnet dot ibm dot com>
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