[RFA] [3/4] Remove libgdb API (gdb_thread_select)

Keith Seitz keiths@redhat.com
Fri Jan 13 19:59:00 GMT 2012


Hi,

This patch removes/renames gdb_thread_select. This patch involves one 
(questionable?) test suite change. Currently:

(gdb)
-thread-select 12345678
&"error: Thread ID 12345678 not known."
^error,msg="Thread ID 12345678 not known."
(gdb)

Unlike most other MI commands, the error is echoed to the error stream. 
I don't know if this is intentional or not, but I've "fixed" that so 
that only the error response from MI is seen:

(gdb)
-thread-select 12345678
^error,msg="Thread ID 12345678 not known."
(gdb)

Keith

ChangeLog
2012-01-12  Keith Seitz  <keiths@redhat.com>

	* gdb.h (gdb_thread_select): Remove declaration.
	* gdbthread.h (thread_select): Add declaration.
	* mi/mi-main.c: Do not include gdb.h.
	(mi_cmd_thread_select): Use thread_select instead of
	gdb_thread_select.
	* thread.c (thread_command): Likewise.
	(do_captured_thread_select): Rename to ...
	(thread_select): ... this. Make return type void.

testsuite/ChangeLog
2012-01-12  Keith Seitz  <keiths@redhat.com>

	* mi/mi-pthreads.exp: Do not require a message to err stream
	for -thread-select.
	* mi/mi2-pthreads.exp: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-gdb_thread_select.patch
Type: text/x-patch
Size: 4002 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120113/a3ef6e64/attachment.bin>


More information about the Gdb-patches mailing list