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: [rfa] Handle amd64-linux %orig_rax


> 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


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