This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] Handle amd64-linux %orig_rax
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 19 Aug 2006 09:48:05 +0200 (CEST)
- Subject: Re: [rfa] Handle amd64-linux %orig_rax
- References: <20060819042040.GA14602@nevyn.them.org>
> Date: Sat, 19 Aug 2006 00:20:40 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> x86_64-pc-linux-gnu has an %orig_rax "register", exactly parallel to the
> i386-pc-linux-gnu %orig_eax. It's set to a syscall number to trigger
> system call restarting, and has to be set to -1 when we want to prevent
> restarting. It appears to be in every regard the same as the i386
> version; this copies the i386 handling, and fits it into the existing
> amd64 infrastructure.
>
> Tested on x86_64-pc-linux-gnu; this fixes the interrupt.exp timeouts,
> finally. I've known what this was for ages but never had the patience to
> make the mechanical change before, and someone reported this as a bug on the
> Eclipse CDT list recently.
>
> Does this look OK?
Looks good to me. I vaguely remember orig_rax not being available
through ptrace a couple of years ago, but that probably was before the
first official amd64 Linux distributions came out.
Mark