This is the mail archive of the gdb@sources.redhat.com 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: Reading target registers


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


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