mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 01:52:28 +08:00
2005-01-14 Andrew Cagney <cagney@gnu.org>
* exceptions.h (catch_exceptions): Delete errstring parameter. (catch_exceptions_with_msg): Ditto. * exceptions.c (catch_exceptions_with_msg): Update. (catch_exceptions): Update. * symfile-mem.c (add_vsyscall_page): Update. * frame.c (get_current_frame): Update. * wrapper.c (gdb_value_struct_elt): Update. * exceptions.c (catch_exceptions): Update. * thread.c (gdb_list_thread_ids, gdb_thread_select): Update. * breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update. * remote-fileio.c (remote_fileio_request): Update.
This commit is contained in:
@ -467,11 +467,9 @@ int
|
||||
catch_exceptions (struct ui_out *uiout,
|
||||
catch_exceptions_ftype *func,
|
||||
void *func_args,
|
||||
char *errstring,
|
||||
return_mask mask)
|
||||
{
|
||||
return catch_exceptions_with_msg (uiout, func, func_args, errstring,
|
||||
NULL, mask);
|
||||
return catch_exceptions_with_msg (uiout, func, func_args, NULL, mask);
|
||||
}
|
||||
|
||||
struct exception
|
||||
@ -493,13 +491,12 @@ int
|
||||
catch_exceptions_with_msg (struct ui_out *uiout,
|
||||
catch_exceptions_ftype *func,
|
||||
void *func_args,
|
||||
char *errstring,
|
||||
char **gdberrmsg,
|
||||
return_mask mask)
|
||||
{
|
||||
volatile struct exception exception;
|
||||
volatile int val = 0;
|
||||
SIGJMP_BUF *catch = catcher_init (uiout, errstring, &exception, mask, 1);
|
||||
SIGJMP_BUF *catch = catcher_init (uiout, NULL, &exception, mask, 1);
|
||||
for (SIGSETJMP ((*catch)); catcher_state_machine (CATCH_ITER);)
|
||||
val = (*func) (uiout, func_args);
|
||||
gdb_assert (val >= 0);
|
||||
|
Reference in New Issue
Block a user