From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16475 invoked by alias); 9 May 2005 21:22:49 -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 16446 invoked from network); 9 May 2005 21:22:44 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 9 May 2005 21:22:44 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DVFi7-0004GG-Uw; Mon, 09 May 2005 17:22:44 -0400 Date: Mon, 09 May 2005 21:22:00 -0000 From: 'Daniel Jacobowitz' To: "Bloch, Jack" Cc: gdb@sources.redhat.com Subject: Re: Reading target registers Message-ID: <20050509212243.GA16304@nevyn.them.org> Mail-Followup-To: "Bloch, Jack" , gdb@sources.redhat.com References: <2DA8F872430BE8469BF0F403A6103F9205CFCF@stca20aa.bocc.icn.siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2DA8F872430BE8469BF0F403A6103F9205CFCF@stca20aa.bocc.icn.siemens.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00124.txt.bz2 On Mon, May 09, 2005 at 02:21:01PM -0700, Bloch, Jack wrote: > I have attached an strace. The PTRACE_GETREGS returns a 0. > > > The wierd value I am seeing is 0xFFFFE410, and it always shows the same > value. No matter where the actual program is running. > > > The good value should be 0x80486AC That's a correct value. It's the syscall return address; any time that you attach to a binary running in the kernel, it will appear to be there. (gdb) bt #0 0xffffe410 in __kernel_vsyscall () <---- #1 0xb7ed41ae in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0x0810ec8d in delete_file_handler () #3 0x0810e6aa in gdb_do_one_event () #4 0x0807d9a1 in catch_exceptions_with_msg () #5 0x0807d820 in throw_exception () #6 0x0807da00 in catch_errors () #7 0x080be4e4 in _initialize_tui_hooks () #8 0x0810c3c3 in current_interp_command_loop () #9 0x080747cb in main () -- Daniel Jacobowitz CodeSourcery, LLC