binutils-gdb/gdb/testsuite/gdb.mi
Pedro Alves 65630365f7 Eliminate catch_exceptions/catch_exceptions_with_msg
This patch gets rid of catch_exceptions / catch_exceptions_with_msg.
The latter is done mostly by getting rid of the three remaining
vestigial libgdb wrapper functions, which are really pointless
nowadays.  This results in a good number of simplifications.

(I checked that Insight doesn't use those functions.)

The gdb.mi/mi-pthreads.exp change is necessary because this actually
fixes a bug, IMO -- the patch stops MI's -thread-select causing output
on the CLI stream.

I.e., before:
 -thread-select 123456789
 &"Thread ID 123456789 not known.\n"
 ^error,msg="Thread ID 123456789 not known."
 (gdb)

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

gdb/ChangeLog
2017-10-10  Pedro Alves <palves@redhat.com>
	    Tom Tromey  <tom@tromey.com>

	* breakpoint.c (struct captured_breakpoint_query_args)
	(do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
	(print_breakpoint): New.
	* breakpoint.h (print_breakpoint): Declare.
	* common/common-exceptions.h (enum return_reason): Remove
	references to catch_exceptions.
	* exceptions.c (catch_exceptions, catch_exceptions_with_msg):
	Delete.
	* exceptions.h (catch_exceptions_ftype, catch_exceptions)
	(catch_exception_ftype, catch_exceptions_with_msg): Delete.
	* gdb.h: Delete.
	* gdbthread.h (thread_select): Declare.
	* mi/mi-cmd-break.c: Don't include gdb.h.
	(breakpoint_notify): Use print_breakpoint.
	* mi/mi-cmd-catch.c: Don't include gdb.h.
	* mi/mi-interp.c: Don't include gdb.h.
	(mi_print_breakpoint_for_event): New.
	(mi_breakpoint_created, mi_breakpoint_modified): Use
	mi_print_breakpoint_for_event.
	* mi/mi-main.c: Don't include gdb.h.
	(mi_cmd_thread_select): Parse the global thread ID here.  Use
	thread_select instead of gdb_thread_select.
	(mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
	of using gdb_list_thread_ids.
	* remote-fileio.c (do_remote_fileio_request): Change type.  Reply
	FILEIO_ENOSYS here.
	(remote_fileio_request): Use TRY/CATCH instead of
	catch_exceptions.
	* symfile-mem.c (struct symbol_file_add_from_memory_args)
	(symbol_file_add_from_memory_wrapper): Delete.
	(add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
	* thread.c: Don't include gdb.h.
	(do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
	(thread_alive): Use thread_select.
	(do_captured_thread_select): Delete, parts salvaged as ...
	(thread_select): ... this new function.
	(gdb_thread_select): Delete.

gdb/testsuite/ChangeLog
2017-10-10  Pedro Alves <palves@redhat.com>

	* gdb.mi/mi-pthreads.exp (check_mi_thread_command_set): Don't
	expect CLI output.
2017-10-10 17:01:25 +01:00
..
ChangeLog-1999-2003
array.f update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
basics.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame-func.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame-main.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame.S update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
dw2-ref-missing-frame.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb669.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb680.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb701.c
gdb701.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb792.cc
gdb792.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb2549.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
list-thread-groups-available.c Fix -list-thread-groups --available logic and add test 2017-10-04 12:44:01 -04:00
list-thread-groups-available.exp Fix -list-thread-groups --available logic and add test 2017-10-04 12:44:01 -04:00
mi-async-run.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-async-run.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-async.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-basics.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-break.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-breakpoint-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load-so.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-catch-load.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cli.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cmd-error.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-cmd-param-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state-mt.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state-st.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-condbreak-call-thr-state.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-console.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
mi-console.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-detach.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-disassemble.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pending.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf-pendshr.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-dprintf.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-editing.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-eval.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exec-run.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exit-code.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-exit-code.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-file-transfer.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-file.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-fill-memory.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-fullname-deleted.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-hack-cli.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-i-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-info-os.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-inheritance-syntax-error.cc
mi-inheritance-syntax-error.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-language.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-linespec-err-cp.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-linespec-err-cp.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-logging.exp Fix "-gdb-set logging redirect on" crash 2017-02-02 11:39:56 +00:00
mi-memory-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nonstop-exit.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nonstop.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-ns-stale-regcache.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsintrall.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsmoribund.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-nsthrexec.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pending.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pendshr.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pendshr2.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-pthreads.exp Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-read-memory.c
mi-read-memory.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-record-changed.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.S update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reg-undefined.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-regs.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-return.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-reverse.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-simplerun.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-solib.exp Add -file-list-shared-libraries MI command 2017-03-20 14:57:51 -04:00
mi-stack.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stack.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-start.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-start.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepi.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepn.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-stepn.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-syn-frame.c GDB testsuite: Fix warnings with -std=gnu11 2014-11-13 10:20:44 +01:00
mi-syn-frame.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-threads-interrupt.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-threads-interrupt.exp Skip gdb.mi/mi-threads-interrupt.exp if nointerrupts. 2017-10-06 15:24:01 -07:00
mi-undefined-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-until.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-block.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-child-f.exp Fortran: Testsuite, fix differences in type naming. 2017-09-08 15:11:47 +02:00
mi-var-child.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-child.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cmd.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cp.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-cp.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-create-rtti.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-create-rtti.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-display.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-invalidate.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-list-children-invalid-grandchild.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-list-children-invalid-grandchild.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-rtti.cc update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-var-rtti.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-vla-c99.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-vla-fortran.exp Fortran: Testsuite, fix differences in type naming. 2017-09-08 15:11:47 +02:00
mi-watch-nonstop.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi-watch.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-amd64-entry-value.s update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-prompt.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mi2-var-child.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
new-ui-mi-sync.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
new-ui-mi-sync.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
non-stop-exit.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
non-stop.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
ns-stale-regcache.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsintrall.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsmoribund.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
nsthrexec.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pending.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pendshr1.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pendshr2.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pr11022.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pr11022.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
pthreads.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
solib-lib.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
solib-main.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
testcmds
until.c Eliminate literal line numbers in mi-until.exp 2014-11-17 10:26:30 +01:00
user-selected-context-sync.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
user-selected-context-sync.exp update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
var-cmd.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
vla.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
vla.f90 update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
watch-nonstop.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00