Add ui_out parameter to libgdb functions.

This commit is contained in:
Andrew Cagney
2001-09-18 05:00:51 +00:00
parent fed9891d87
commit 2b65245ef4
7 changed files with 46 additions and 19 deletions

View File

@@ -3526,7 +3526,7 @@ struct captured_breakpoint_query_args
};
static int
do_captured_breakpoint_query (void *data)
do_captured_breakpoint_query (struct ui_out *uiout, void *data)
{
struct captured_breakpoint_query_args *args = data;
register struct breakpoint *b;
@@ -3543,14 +3543,14 @@ do_captured_breakpoint_query (void *data)
}
enum gdb_rc
gdb_breakpoint_query (/* output object, */ int bnum)
gdb_breakpoint_query (struct ui_out *uiout, int bnum)
{
struct captured_breakpoint_query_args args;
args.bnum = bnum;
/* For the moment we don't trust print_one_breakpoint() to not throw
an error. */
return catch_errors (do_captured_breakpoint_query, &args,
NULL, RETURN_MASK_ALL);
return catch_exceptions (uiout, do_captured_breakpoint_query, &args,
NULL, RETURN_MASK_ALL);
}
/* Return non-zero if B is user settable (breakpoints, watchpoints,