Preliminary cleanup for splitting host/native/target.
[deliverable/binutils-gdb.git] / gdb / convex-xdep.c
index d39872b95f54ea3e1757b4c0e507193de6b5b14b..ba4da80218e4f102b628d5ab4acfa2311d6cf4bd 100644 (file)
@@ -17,9 +17,7 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-#include <stdio.h>
 #include "defs.h"
-#include "param.h"
 #include "command.h"
 #include "symtab.h"
 #include "value.h"
@@ -214,14 +212,15 @@ static void psw_info ();
 static sig_noop ();
 static ptr_cmp ();
 
-extern char *sys_siglist[];
 \f
 /* Execute ptrace.  Convex V7 replaced ptrace with pattach.
    Allow ptrace (0) as a no-op.  */
 
 int
 call_ptrace (request, pid, procaddr, buf)
-     int request, pid, procaddr, buf;
+     int request, pid;
+     PTRACE_ARG3_TYPE procaddr;
+     int buf;
 {
   if (request == 0)
     return;
@@ -259,6 +258,7 @@ fetch_inferior_registers (regno)
 /* Store our register values back into the inferior.
    For Convex, do this only once, right before resuming inferior.  */
 
+void
 store_inferior_registers (regno)
      int regno;
 {
@@ -913,7 +913,7 @@ core_file_command (filename, from_tty)
       if (filename[0] == '/')
        corefile = savestring (filename, strlen (filename));
       else
-       corefile = concat (current_directory, "/", filename);
+       corefile = concat (current_directory, "/", filename, NULL);
 
       printf_filtered ("Program %s ", u.u_comm);
 
@@ -951,9 +951,7 @@ core_file_command (filename, from_tty)
 
          printf_filtered ("thread %d received signal %d, %s\n",
                           n, thread_signal[n],
-                          thread_signal[n] < NSIG
-                          ? sys_siglist[thread_signal[n]]
-                          : "(undocumented)");
+                          safe_strsignal (thread_signal[n]));
        }
 
       /* Select an interesting thread -- also-rans died with SIGKILL,
@@ -976,7 +974,7 @@ core_file_command (filename, from_tty)
       select_frame (get_current_frame (), 0);
       validate_files ();
 
-      print_sel_frame (1);
+      print_stack_frame (selected_frame, selected_frame_level, -1);
     }
   else if (from_tty)
     printf_filtered ("No core file now.\n");
This page took 0.0233 seconds and 4 git commands to generate.