This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Extra Thread Info
- To: Stan Shebs <shebs at cygnus dot com>
- Subject: Re: Extra Thread Info
- From: jtc at redback dot com (J.T. Conklin)
- Date: 30 Nov 1999 15:53:38 -0800
- Cc: msalter at cygnus dot com, gdb at sourceware dot cygnus dot com
- References: <199911302246.OAA28180@andros.cygnus.com>
- Reply-To: jtc at redback dot com
>>>>> "Stan" == Stan Shebs <shebs@cygnus.com> writes:
Stan> I'm not too concerned about simulators, because I haven't
Stan> personally seen or heard of any simulators that had an OS
Stan> implicitly buried in them, such that remote-sim.c had to
Stan> implement thread methods itself - certainly there are none such
Stan> in GNU right now. The whole idea involves so many variables
Stan> that I'd want to hear about the architecture of a real example,
Stan> before trying to design GDB to accommodate it.
That's just the point.
A simulator (or ICE) environment is a blank slate --- just like a
random piece of target hardware. It might run eCos, RTEMS, vxWorks,
IOS, etc. It does not (and IMO it should not) have any knowlege of
the OS running on it.
Ideally the same generic embedded GDB should be able to debug all of
these OSs. But instead of going through an intermediary debug agent,
GDB (or an ICE under GDB's control) can examine and manipulate the
targets memory and registers directly. Thus it seems wrong to put OS
specific knowledge in the simulator's target vector. It should be at
a higher level so that it can use the primitives provided by every
target.
The same issues are found in examining crash dumps.
--jtc
--
J.T. Conklin
RedBack Networks