[Ltrace-devel] [PATCH] Fix regression caused by libdl patch

Zach Welch zwelch at codesourcery.com
Fri Dec 10 19:18:53 UTC 2010


Joe,

It looks like this patch got overlooked. It is the most critical fix,
since it addresses the regressions that I have been seeing.

Thanks,

Zach

On 12/08/2010 01:34 PM, Zachary T Welch wrote:
> This change fixes a regression in the system_call.exp experienced
> on ARMv7a.  It also makes the libdl-simple.exp test pass.
> 
> Signed-off-by: Zachary T Welch <zwelch at codesourcery.com>
> ---
>  handle_event.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/handle_event.c b/handle_event.c
> index e114ee3..01309ff 100644
> --- a/handle_event.c
> +++ b/handle_event.c
> @@ -620,7 +620,8 @@ handle_breakpoint(Event *event) {
>  		if (strcmp(sbp->libsym->name, "") == 0) {
>  			debug(2, "Hit _dl_debug_state breakpoint!\n");
>  			arch_check_dbg(event->proc);
> -		} else if (event->proc->state != STATE_IGNORED) {
> +		}
> +		if (event->proc->state != STATE_IGNORED) {
>  			event->proc->stack_pointer = get_stack_pointer(event->proc);
>  			event->proc->return_addr =
>  				get_return_addr(event->proc, event->proc->stack_pointer);


-- 
Zach Welch
CodeSourcery
zwelch at codesourcery.com
(650) 331-3385 x743



More information about the Ltrace-devel mailing list