From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30553 invoked by alias); 19 Aug 2006 07:48:54 -0000 Received: (qmail 30517 invoked by uid 22791); 19 Aug 2006 07:48:50 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 19 Aug 2006 07:48:41 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k7J7m6QQ024650; Sat, 19 Aug 2006 09:48:06 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k7J7m6LI015989; Sat, 19 Aug 2006 09:48:06 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k7J7m5ho005424; Sat, 19 Aug 2006 09:48:05 +0200 (CEST) Date: Sat, 19 Aug 2006 15:46:00 -0000 Message-Id: <200608190748.k7J7m5ho005424@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb-patches@sourceware.org In-reply-to: <20060819042040.GA14602@nevyn.them.org> (message from Daniel Jacobowitz on Sat, 19 Aug 2006 00:20:40 -0400) Subject: Re: [rfa] Handle amd64-linux %orig_rax References: <20060819042040.GA14602@nevyn.them.org> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00129.txt.bz2 > Date: Sat, 19 Aug 2006 00:20:40 -0400 > From: Daniel Jacobowitz > > 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