Proposal for customization of output of "to_pid_to_str" op in remote.c

Nat Gurumoorthy natg@ubicom.com
Wed Dec 11 14:55:00 GMT 2002


>Andrew Cagney Wrote
>Er, isn't there already stuff like qThreadInfo?

Andrew,
   qThreadInfo only lets the remote pass back target thread IDs to GDB.
GDB then converts the pid into and GDB internal ptid (process + thread ID).
The "to_pid_to_str" function pointer in the target structure is used
to convert a ptid to a printable string. If you are currently using the
remote interface this defaults to looking like "Thread 1" "Thread 2" etc.
I would like the the target to be print whatever it wants.
Regards
Nat



More information about the Gdb mailing list