aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2012-01-09 20:27:49 +0000
committerKeith Seitz <keiths@redhat.com>2012-01-09 20:27:49 +0000
commit8e7b59a53f5851810d5feffbee9d339c4935f4eb (patch)
treef71e564362c8d3815b43534ff38935f79cefce4f /gdb/corelow.c
parentfc51264f9230258f6b621ab54100d21339943a88 (diff)
downloadfsf-binutils-gdb-8e7b59a53f5851810d5feffbee9d339c4935f4eb.zip
fsf-binutils-gdb-8e7b59a53f5851810d5feffbee9d339c4935f4eb.tar.gz
fsf-binutils-gdb-8e7b59a53f5851810d5feffbee9d339c4935f4eb.tar.bz2
* 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.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index bbfb8ee..f98814a 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -46,8 +46,6 @@
#include "filenames.h"
#include "progspace.h"
#include "objfiles.h"
-#include "wrapper.h"
-
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
@@ -290,6 +288,7 @@ core_open (char *filename, int from_tty)
bfd *temp_bfd;
int scratch_chan;
int flags;
+ volatile struct gdb_exception except;
target_preopen (from_tty);
if (!filename)
@@ -428,7 +427,13 @@ core_open (char *filename, int from_tty)
may be a thread_stratum target loaded on top of target core by
now. The layer above should claim threads found in the BFD
sections. */
- gdb_target_find_new_threads ();
+ TRY_CATCH (except, RETURN_MASK_ERROR)
+ {
+ target_find_new_threads ();
+ }
+
+ if (except.reason < 0)
+ exception_print (gdb_stderr, except);
p = bfd_core_file_failing_command (core_bfd);
if (p)