* core.c (core_file_command): Print frame at coredump with
[deliverable/binutils-gdb.git] / gdb / core.c
index deaae4b9e0bd1b6e48eef37a566f225515a1baa7..b5895c5be8d6f1e0fd923940085b606a15eae5fc 100644 (file)
@@ -170,11 +170,12 @@ core_open (filename, from_tty)
 #ifdef SOLIB_ADD
     (void) catch_errors (solib_add_stub, (char *)from_tty, (char *)0);
 #endif
+
     /* Now, set up the frame cache, and print the top of stack */
-    set_current_frame ( create_new_frame (read_register (FP_REGNUM),
-                                         read_pc ()));
+    set_current_frame (create_new_frame (read_register (FP_REGNUM),
+                                        read_pc ()));
     select_frame (get_current_frame (), 0);
-    print_sel_frame (0);       /* Print the top frame and source line */
+    print_stack_frame (selected_frame, selected_frame_level, 1);
   } else {
     printf (
 "Warning: you won't be able to access this core file until you terminate\n\
This page took 0.023518 seconds and 4 git commands to generate.