This is the mail archive of the gdb-patches@sourceware.org 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: Question :GDB remote protocol for smp target control through JTAG


>>>>> "Jaouen" == Jaouen Michel <michel.jaouen@yahoo.fr> writes:

Jaouen> I am currently using a gdb client connected to a a remote server
Jaouen> (openocd) for debugging 2 cortex_a9 (0 and 1) running linux in
Jaouen> smp.

I can't comment on your remote protocol changes, as I don't know enough
about that.

Jaouen> print $_core => display the core number played in gdb client.
Jaouen> set $_core=($==1?0:1) => fix the display of the other core beeing at next continue (a fake continue is perfomed)
Jaouen> set $_core=-1ÂÂ => fix that next continue is real continue.

Jaouen> What are the comments on this additional feature for remote debugging.

It would be better to have a more command-oriented interface to this,
like the rest of gdb does.  Using a magic convenience variable is
unusual.

E.g., you could have "info cpus" and a new "cpu" command, or something
along those lines.

Tom


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