projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't share per-BFD data if relocations are needed
[deliverable/binutils-gdb.git]
/
gdb
/
corelow.c
diff --git
a/gdb/corelow.c
b/gdb/corelow.c
index 0aa5d971633e52b4d9783a483b4542c51a02794b..d1e7f6ae7df6c285a3e3b6dd404483fade0a651d 100644
(file)
--- a/
gdb/corelow.c
+++ b/
gdb/corelow.c
@@
-67,7
+67,7
@@
static struct core_fns *core_vec = NULL;
/* FIXME: kettenis/20031023: Eventually this variable should
disappear. */
/* FIXME: kettenis/20031023: Eventually this variable should
disappear. */
-struct gdbarch *core_gdbarch = NULL;
+st
atic st
ruct gdbarch *core_gdbarch = NULL;
/* Per-core data. Currently, only the section table. Note that these
target sections are *not* mapped in the current address spaces' set
/* Per-core data. Currently, only the section table. Note that these
target sections are *not* mapped in the current address spaces' set
@@
-429,6
+429,9
@@
core_open (char *filename, int from_tty)
if (p)
printf_filtered (_("Core was generated by `%s'.\n"), p);
if (p)
printf_filtered (_("Core was generated by `%s'.\n"), p);
+ /* Clearing any previous state of convenience variables. */
+ clear_exit_convenience_vars ();
+
siggy = bfd_core_file_failing_signal (core_bfd);
if (siggy > 0)
{
siggy = bfd_core_file_failing_signal (core_bfd);
if (siggy > 0)
{
@@
-446,6
+449,11
@@
core_open (char *filename, int from_tty)
printf_filtered (_("Program terminated with signal %s, %s.\n"),
gdb_signal_to_name (sig), gdb_signal_to_string (sig));
printf_filtered (_("Program terminated with signal %s, %s.\n"),
gdb_signal_to_name (sig), gdb_signal_to_string (sig));
+
+ /* Set the value of the internal variable $_exitsignal,
+ which holds the signal uncaught by the inferior. */
+ set_internalvar_integer (lookup_internalvar ("_exitsignal"),
+ siggy);
}
/* Fetch all registers from core file. */
}
/* Fetch all registers from core file. */
@@
-453,7
+461,7
@@
core_open (char *filename, int from_tty)
/* Now, set up the frame cache, and print the top of stack. */
reinit_frame_cache ();
/* Now, set up the frame cache, and print the top of stack. */
reinit_frame_cache ();
- print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC);
+ print_stack_frame (get_selected_frame (NULL), 1, SRC_AND_LOC
, 1
);
}
static void
}
static void
This page took
0.024072 seconds
and
4
git commands to generate.