This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Reading target registers
- From: 'Daniel Jacobowitz' <drow at false dot org>
- To: "Bloch, Jack" <jack dot bloch at siemens dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 9 May 2005 17:22:43 -0400
- Subject: Re: Reading target registers
- References: <2DA8F872430BE8469BF0F403A6103F9205CFCF@stca20aa.bocc.icn.siemens.com>
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