]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* convex-tdep.c (xfer_core_file): Comment out.
authorStan Shebs <shebs@codesourcery.com>
Sat, 28 Jan 1995 01:32:10 +0000 (01:32 +0000)
committerStan Shebs <shebs@codesourcery.com>
Sat, 28 Jan 1995 01:32:10 +0000 (01:32 +0000)
* config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
* remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
        references to target_read_memory.
* gdbcore.h (xfer_core_file, core_open, core_detach): Remove
declarations.
* corelow.c (core_open, core_detach): Make static.

gdb/ChangeLog
gdb/convex-tdep.c
gdb/corelow.c
gdb/remote-pa.c
gdb/remote.c

index 236249e07dc91e3f6ed919c3b48448a669d5657b..14958473bd6ff7abf150f4f6ca46f98e1c4e0330 100644 (file)
@@ -1,5 +1,13 @@
 Fri Jan 27 17:08:06 1995  Stan Shebs  <shebs@andros.cygnus.com>
 
+       * convex-tdep.c (xfer_core_file): Comment out.
+       * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
+       * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
+        references to target_read_memory.
+       * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
+       declarations.
+       * corelow.c (core_open, core_detach): Make static.
+
        * arm-tdep.c: Make it compile.
        (exec_file_command, xfer_core_file): Comment out.
        (arm_print_insn): Remove, now in libopcodes.
index 0828d990f903879ff7564e7826b2607c9f3b992d..930d1601ef75f8f4cfd4fcce8c825c60b84003fb 100644 (file)
@@ -130,6 +130,7 @@ exec_file_command (filename, from_tty)
     (*exec_file_display_hook) (filename);
 }
 
+#if 0
 /* Read data from SOFF exec or core file.
    Return 0 on success, EIO if address out of bounds. */
 
@@ -233,7 +234,7 @@ xfer_core_file (memaddr, myaddr, len)
     }
   return returnval;
 }
-
+#endif
 
 /* Here from info files command to print an address map.  */
 
index 90196b93ae4c8670613ea9356185fceffe059c83..bf4a5fc7263b83406515289ae213e831e3631b42 100644 (file)
@@ -1,5 +1,5 @@
 /* Core dump and executable file functions below target vector, for GDB.
-   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995
    Free Software Foundation, Inc.
 
 This file is part of GDB.
@@ -38,6 +38,10 @@ static void core_files_info PARAMS ((struct target_ops *));
 static int solib_add_stub PARAMS ((char *));
 #endif
 
+static void core_open PARAMS ((char *, int));
+
+static void core_detach PARAMS ((char *, int));
+
 static void core_close PARAMS ((int));
 
 static void get_core_registers PARAMS ((int));
@@ -114,7 +118,7 @@ add_to_thread_list (abfd, asect, reg_sect_arg)
 
 /* This routine opens and sets up the core file bfd.  */
 
-void
+static void
 core_open (filename, from_tty)
      char *filename;
      int from_tty;
@@ -228,7 +232,7 @@ your %s; do ``info files''", target_longname);
     }
 }
 
-void
+static void
 core_detach (args, from_tty)
      char *args;
      int from_tty;
index 6d5f0796e8084aba85ad080623fbb7c6e4d9d7d8..cb8705434ed0356f65156eda2ac5e25ddd89934e 100644 (file)
@@ -867,7 +867,7 @@ remote_fetch_word (addr)
       if (addr >= text_start && addr < text_end)
        {
          int buffer;
-         xfer_core_file (addr, &buffer, sizeof (int));
+         target_read_memory (addr, &buffer, sizeof (int));
          return buffer;
        }
     }
index 7349305dbd9ebf9a0c9b00cc6dec383b995803ac..4320bd28f642f6d488a7182ef5e1de39e87a6c02 100644 (file)
@@ -756,7 +756,7 @@ Packet: '%s'\n",
              last_sent_signal = TARGET_SIGNAL_0;
              target_terminal_inferior ();
 
-             strcpy (buf, last_sent_step ? 's' : 'c');
+             strcpy (buf, last_sent_step ? "s" : "c");
              putpkt (buf);
              continue;
            }
@@ -944,7 +944,7 @@ remote_fetch_word (addr)
       if (addr >= text_start && addr < text_end)
        {
          int buffer;
-         xfer_core_file (addr, &buffer, sizeof (int));
+         target_read_memory (addr, &buffer, sizeof (int));
          return buffer;
        }
     }