This is the mail archive of the gdb@sourceware.cygnus.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]

GDB-Protocol: Script command


When debugging both embedded targets and simulators there is often the
need to pass across target specific commands.  As an example, GDB, when
talking to a builtin simulator, allows `sim' commands:

	(gdb) target sim
	Connected to simulator
	(gdb) load
	....
	(gdb) sim trace instruction on
	(gdb) run
	0x12432: ld r1, r2
	...

There is no corresponding mechanism available in the remote protocol. 
I'd like to propose that the ``qS'' prefix be reserved for this:

	<- qS<some-command>
	-> output-from-command

(Well another posibility would be ``QScript=<command>''.)  Potential
issues include:

	o	encoding of special charcters
		(should we just pass hex?).

	o	security

	o	the corresponding GDB command
		(I've no idea, suggestions welcome).


	Andrew

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