* gdbarch.sh (qsupported): Delete.
authorPedro Alves <palves@redhat.com>
Fri, 7 May 2010 14:00:30 +0000 (14:00 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 7 May 2010 14:00:30 +0000 (14:00 +0000)
* gdbarch.h, gdbarch.c: Regenerate.
* remote.c (remote_query_supported): Remove use of
gdbarch_qsupported.

gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/remote.c

index e37a1de778464dc787f1df632f11ff337bdff0b4..89dba909e44cada3b09c8872fbecfe7ff3690903 100644 (file)
@@ -1,3 +1,10 @@
+2010-05-07  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdbarch.sh (qsupported): Delete.
+       * gdbarch.h, gdbarch.c: Regenerate.
+       * remote.c (remote_query_supported): Remove use of
+       gdbarch_qsupported.
+
 2010-05-06  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        * xml-syscall.c (syscall_start_syscalls_info): Remove unused
index 3b6f614ca6b8c4a2ff4deb7c7ba1714a5070bdfa..ea35fa3a4c7dcf4a3885c4aedf0dc0e0bc5f41ff 100644 (file)
@@ -260,7 +260,6 @@ struct gdbarch
   int has_global_breakpoints;
   gdbarch_has_shared_address_space_ftype *has_shared_address_space;
   gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at;
-  const char * qsupported;
   gdbarch_auto_charset_ftype *auto_charset;
   gdbarch_auto_wide_charset_ftype *auto_wide_charset;
   const char * solib_symbols_extension;
@@ -408,7 +407,6 @@ struct gdbarch startup_gdbarch =
   0,  /* has_global_breakpoints */
   default_has_shared_address_space,  /* has_shared_address_space */
   default_fast_tracepoint_valid_at,  /* fast_tracepoint_valid_at */
-  0,  /* qsupported */
   default_auto_charset,  /* auto_charset */
   default_auto_wide_charset,  /* auto_wide_charset */
   0,  /* solib_symbols_extension */
@@ -681,7 +679,6 @@ verify_gdbarch (struct gdbarch *gdbarch)
   /* Skip verify of has_global_breakpoints, invalid_p == 0 */
   /* Skip verify of has_shared_address_space, invalid_p == 0 */
   /* Skip verify of fast_tracepoint_valid_at, invalid_p == 0 */
-  /* Skip verify of qsupported, invalid_p == 0 */
   /* Skip verify of auto_charset, invalid_p == 0 */
   /* Skip verify of auto_wide_charset, invalid_p == 0 */
   /* Skip verify of has_dos_based_file_system, invalid_p == 0 */
@@ -1067,9 +1064,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
   fprintf_unfiltered (file,
                       "gdbarch_dump: push_dummy_code = <%s>\n",
                       host_address_to_string (gdbarch->push_dummy_code));
-  fprintf_unfiltered (file,
-                      "gdbarch_dump: qsupported = %s\n",
-                      gdbarch->qsupported);
   fprintf_unfiltered (file,
                       "gdbarch_dump: gdbarch_read_pc_p() = %d\n",
                       gdbarch_read_pc_p (gdbarch));
@@ -3615,23 +3609,6 @@ set_gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch,
   gdbarch->fast_tracepoint_valid_at = fast_tracepoint_valid_at;
 }
 
-const char *
-gdbarch_qsupported (struct gdbarch *gdbarch)
-{
-  gdb_assert (gdbarch != NULL);
-  /* Skip verify of qsupported, invalid_p == 0 */
-  if (gdbarch_debug >= 2)
-    fprintf_unfiltered (gdb_stdlog, "gdbarch_qsupported called\n");
-  return gdbarch->qsupported;
-}
-
-void
-set_gdbarch_qsupported (struct gdbarch *gdbarch,
-                        const char * qsupported)
-{
-  gdbarch->qsupported = qsupported;
-}
-
 const char *
 gdbarch_auto_charset (struct gdbarch *gdbarch)
 {
index 71da45be4887ac0eab8240e8b12e5d5e547d1cc7..af060df88038619283d456a37dd9b1dc1da5d22f 100644 (file)
@@ -923,11 +923,6 @@ typedef int (gdbarch_fast_tracepoint_valid_at_ftype) (struct gdbarch *gdbarch, C
 extern int gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, int *isize, char **msg);
 extern void set_gdbarch_fast_tracepoint_valid_at (struct gdbarch *gdbarch, gdbarch_fast_tracepoint_valid_at_ftype *fast_tracepoint_valid_at);
 
-/* Not NULL if a target has additonal field for qSupported. */
-
-extern const char * gdbarch_qsupported (struct gdbarch *gdbarch);
-extern void set_gdbarch_qsupported (struct gdbarch *gdbarch, const char * qsupported);
-
 /* Return the "auto" target charset. */
 
 typedef const char * (gdbarch_auto_charset_ftype) (void);
index 81c5dc23655f928836fb615fc7a934b73dc420a7..f680f180f76c3dd3864d5e2ef142bd40822e5e9f 100755 (executable)
@@ -767,9 +767,6 @@ m:int:has_shared_address_space:void:::default_has_shared_address_space::0
 # True if a fast tracepoint can be set at an address.
 m:int:fast_tracepoint_valid_at:CORE_ADDR addr, int *isize, char **msg:addr, isize, msg::default_fast_tracepoint_valid_at::0
 
-# Not NULL if a target has additonal field for qSupported.
-v:const char *:qsupported:::0:0::0:gdbarch->qsupported
-
 # Return the "auto" target charset.
 f:const char *:auto_charset:void::default_auto_charset:default_auto_charset::0
 # Return the "auto" target wide charset.
index 95bbc3fb056245054fc40b5a9ef32a2951b578b9..3da591f87b58364e3bb2394f7c847f51373f7f74 100644 (file)
@@ -3562,13 +3562,9 @@ remote_query_supported (void)
   if (remote_protocol_packets[PACKET_qSupported].support != PACKET_DISABLE)
     {
       char *q = NULL;
-      const char *qsupported = gdbarch_qsupported (target_gdbarch);
 
       if (rs->extended)
        q = remote_query_supported_append (q, "multiprocess+");
-      
-      if (qsupported)
-       q = remote_query_supported_append (q, qsupported);
 
       if (remote_support_xml)
        q = remote_query_supported_append (q, remote_support_xml);