gdb: include gdbsupport/buildargv.h in ser-mingw.c
[binutils-gdb.git] / gdb / linux-record.c
index 15a0d9f4d90672a9c88c6f35d9ad1e24e6779aa7..0a84bad6983f8674b1a67d74a46fbce62b94af32 100644 (file)
@@ -1,6 +1,6 @@
 /* Process record and replay target code for GNU/Linux.
 
-   Copyright (C) 2008-2017 Free Software Foundation, Inc.
+   Copyright (C) 2008-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -24,6 +24,7 @@
 #include "record.h"
 #include "record-full.h"
 #include "linux-record.h"
+#include "gdbarch.h"
 
 /* These macros are the values of the first argument of system call
    "sys_ptrace".  The values of these macros were obtained from Linux
@@ -491,15 +492,17 @@ record_linux_system_call (enum gdb_syscall syscall,
        }
       else if (tmpulongest == tdep->ioctl_TIOCSERGSTRUCT)
        {
-         printf_unfiltered (_("Process record and replay target doesn't "
-                              "support ioctl request TIOCSERGSTRUCT\n"));
+         fprintf_unfiltered (gdb_stderr,
+                             _("Process record and replay target doesn't "
+                               "support ioctl request TIOCSERGSTRUCT\n"));
          return 1;
        }
       else
        {
-         printf_unfiltered (_("Process record and replay target doesn't "
-                              "support ioctl request 0x%s.\n"),
-                            OUTPUT_REG (tmpulongest, tdep->arg2));
+         fprintf_unfiltered (gdb_stderr,
+                             _("Process record and replay target doesn't "
+                               "support ioctl request 0x%s.\n"),
+                             OUTPUT_REG (tmpulongest, tdep->arg2));
          return 1;
        }
       break;
@@ -881,6 +884,7 @@ Do you want to stop the program?"),
              if (record_linux_sockaddr (regcache, tdep, tmpulongest, len))
                return -1;
            }
+         break;
        case RECORD_SYS_RECV:
          regcache_raw_read_unsigned (regcache, tdep->arg2,
                                      &tmpulongest);
@@ -1006,9 +1010,10 @@ Do you want to stop the program?"),
          }
          break;
        default:
-         printf_unfiltered (_("Process record and replay target "
-                              "doesn't support socketcall call 0x%s\n"),
-                            OUTPUT_REG (tmpulongest, tdep->arg1));
+         fprintf_unfiltered (gdb_stderr,
+                             _("Process record and replay target "
+                               "doesn't support socketcall call 0x%s\n"),
+                             OUTPUT_REG (tmpulongest, tdep->arg1));
          return -1;
          break;
        }
@@ -1146,9 +1151,10 @@ Do you want to stop the program?"),
          break;
        default:
          /* XXX RECORD_SEMCTL still not supported.  */
-         printf_unfiltered (_("Process record and replay target doesn't "
-                              "support ipc number %s\n"),
-                            pulongest (tmpulongest));
+         fprintf_unfiltered (gdb_stderr,
+                             _("Process record and replay target doesn't "
+                               "support ipc number %s\n"),
+                             pulongest (tmpulongest));
          break;
        }
       break;
@@ -2030,8 +2036,9 @@ Do you want to stop the program?"),
       break;
 
     default:
-      printf_unfiltered (_("Process record and replay target doesn't "
-                          "support syscall number %d\n"), syscall);
+      fprintf_unfiltered (gdb_stderr,
+                         _("Process record and replay target doesn't "
+                           "support syscall number %d\n"), syscall);
       return -1;
       break;
     }