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: what are gdbstubs?


I have been reading the gdb docs and as i interpret them
i need to link the gdb stub file with my excecuteable
to do remote debugging.  is this correct?
do you have any experience with this?
jim

From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: james osburn <jjosburn@hotmail.com>
CC: gdb@sources.redhat.com
Subject: Re: what are gdbstubs?
Date: Thu, 24 Mar 2005 22:35:44 +0530

james osburn wrote:
what are gdbstubs?

GDB when used with embedded targets requires a "stub" on the target side to communicate with for information about the debuggee's context. These requests(from gdb) could include queries about the status of the register contents on the debuggee side and memory conditions. One also needs a stub to inform gdb that the debuggee has stopped or has exited / allow GDB to attach to the debuggee etc.


(If you were debugging an application on a native i386 / linux machine you would be using ptrace and the kernel informs the debugger that the debuggee has stopped because of the wait sys call ) .

HTH
cheers
Ramana

thanks
jim

<html><DIV></DIV></html>



--
Ramana Radhakrishnan
GNU Tools
codito ergo sum (www.codito.com)




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