aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-23 00:43:20 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-23 00:43:20 +0000
commit25a40b004d02d2a3204d4aadba723f2e37fbc1d0 (patch)
tree49493f1b8bf6cc153e88dcc9d0f4e3672e87a3e2 /gdb
parentd0237a54e516a4e6aba631a63c689880fdf008eb (diff)
downloadgdb-25a40b004d02d2a3204d4aadba723f2e37fbc1d0.zip
gdb-25a40b004d02d2a3204d4aadba723f2e37fbc1d0.tar.gz
gdb-25a40b004d02d2a3204d4aadba723f2e37fbc1d0.tar.bz2
Restore Schauer's version of ADD_SOLIB in core_open().
Diffstat (limited to 'gdb')
-rw-r--r--gdb/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/core.c b/gdb/core.c
index 04192df..fdc7028 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -127,6 +127,7 @@ core_open (filename, from_tty)
bfd_errmsg (bfd_error));
ontop = !push_target (&core_ops);
+ make_cleanup (pop_target, 0);
p = bfd_core_file_failing_command (core_bfd);
if (p)
@@ -143,12 +144,9 @@ core_open (filename, from_tty)
set_current_frame ( create_new_frame (read_register (FP_REGNUM),
read_pc ()));
select_frame (get_current_frame (), 0);
-#if 0
- /* Shouldn't be necessary to read in symbols. */
#ifdef SOLIB_ADD
SOLIB_ADD (NULL, from_tty);
#endif
-#endif /* 0 */
print_sel_frame (0); /* Print the top frame and source line */
} else {
printf (