From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2891 invoked by alias); 1 Nov 2004 18:22:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2806 invoked from network); 1 Nov 2004 18:21:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 1 Nov 2004 18:21:57 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iA1ILvp1019060 for ; Mon, 1 Nov 2004 13:21:57 -0500 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iA1ILur01107; Mon, 1 Nov 2004 13:21:56 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 61048129D8C; Mon, 1 Nov 2004 13:21:25 -0500 (EST) Message-ID: <41867EA4.2030801@gnu.org> Date: Mon, 01 Nov 2004 18:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Kip Macy Cc: Bob Rossi , GDB Subject: Re: changing stack and instruction pointer References: <20041101151834.GA2460@white> <20041101080214.W37379@demos.bsdclusters.com> In-Reply-To: <20041101080214.W37379@demos.bsdclusters.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00009.txt.bz2 Kip Macy wrote: > Any user-level threads package would do the same. There must be > something more going on. Yes. Is valgrind doing something else like playing with ptrace? > On Mon, 1 Nov 2004, Bob Rossi wrote: > > >>Hi, >> >>If a program modifies the stack and instruction pointer ( like valgrind >>does ), is it possible to debug this program? For some reason, after >>valgrind sets these registers, GDB doesn't seem to understand anything about >>the program. >> >>Is it possible to debug a program like this? >> >>Thanks, >>Bob Rossi >> > >