mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* Makefile.in (SFILES): Remove wrapper.c.
(HFILES_NO_SRCDIR): Remove wrapper.h. (COMMON_OBS): Remove wrapper.o. * cli/cli-interp.c: Don't inlude wrapper.h. * corelow.c: Likewise. (core_open): Replace gdb_target_find_new_threads with TRY_CATCH around target_find_new_threads. * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. * varobj.c (varobj_create): Likewise for parse_exp_1 and evaluate_expression. (varobj_set_value): Likewise for evaluate_expression and value_assign. (install_new_variable): Likewise for value_fetch_lazy. (adjust_value_for_child_access): Likewise for value_ind. (c_describe_child): Likewise for value_subscript and value_ind. (c_value_of_root): Likewise for evaluate_expression. * wrapper.c: Remove. * wrapper.h: Remove.
This commit is contained in:
@@ -33,11 +33,10 @@
|
||||
#include "demangle.h"
|
||||
#include "complaints.h"
|
||||
#include "gdbcmd.h"
|
||||
#include "wrapper.h"
|
||||
#include "cp-abi.h"
|
||||
#include "gdb_assert.h"
|
||||
#include "hashtab.h"
|
||||
|
||||
#include "exceptions.h"
|
||||
|
||||
/* Initialize BADNESS constants. */
|
||||
|
||||
@@ -1676,13 +1675,19 @@ safe_parse_type (struct gdbarch *gdbarch, char *p, int length)
|
||||
{
|
||||
struct ui_file *saved_gdb_stderr;
|
||||
struct type *type;
|
||||
volatile struct gdb_exception except;
|
||||
|
||||
/* Suppress error messages. */
|
||||
saved_gdb_stderr = gdb_stderr;
|
||||
gdb_stderr = ui_file_new ();
|
||||
|
||||
/* Call parse_and_eval_type() without fear of longjmp()s. */
|
||||
if (!gdb_parse_and_eval_type (p, length, &type))
|
||||
TRY_CATCH (except, RETURN_MASK_ERROR)
|
||||
{
|
||||
type = parse_and_eval_type (p, length);
|
||||
}
|
||||
|
||||
if (except.reason < 0)
|
||||
type = builtin_type (gdbarch)->builtin_void;
|
||||
|
||||
/* Stop suppressing error messages. */
|
||||
|
||||
Reference in New Issue
Block a user