OSDN Git Service

2004-01-05 Andrew Cagney <cagney@redhat.com>
authorcagney <cagney>
Mon, 5 Jan 2004 19:53:04 +0000 (19:53 +0000)
committercagney <cagney>
Mon, 5 Jan 2004 19:53:04 +0000 (19:53 +0000)
* libunwind-frame.h (struct frame_id): Add opaque declaration,
move to start of file.
* i386-tdep.h (struct regcache): Add opaque declaration.
* config/ia64/nm-linux.h (struct target_ops): Add opaque
declaration.
* ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
(ia64_gdbarch_init): Use "GNU/Linux" in comment.
* win32-nat.c (fake_create_process): Use ISO C style definition.
* stabsread.c (define_symbol): Delete #ifndef
DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
stabs_argument_has_addr call, macro never defined.

gdb/ChangeLog
gdb/config/ia64/nm-linux.h
gdb/i386-tdep.h
gdb/ia64-tdep.c
gdb/libunwind-frame.h
gdb/stabsread.c
gdb/win32-nat.c

index 5550035..4be6d62 100644 (file)
@@ -1,3 +1,17 @@
+2004-01-05  Andrew Cagney  <cagney@redhat.com>
+
+       * libunwind-frame.h (struct frame_id): Add opaque declaration,
+       move to start of file.
+       * i386-tdep.h (struct regcache): Add opaque declaration.
+       * config/ia64/nm-linux.h (struct target_ops): Add opaque
+       declaration.
+       * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
+       (ia64_gdbarch_init): Use "GNU/Linux" in comment.
+       * win32-nat.c (fake_create_process): Use ISO C style definition.
+       * stabsread.c (define_symbol): Delete #ifndef
+       DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
+       stabs_argument_has_addr call, macro never defined.
+
 2004-01-04  Michael Chastain  <mec.gnu@mindspring.com>
 
        * op50-rom.c: Delete.
index 01c9807..5e9df60 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef NM_LINUX_H
 #define NM_LINUX_H
 
+struct target_ops;
+
 #include "config/nm-linux.h"
 
 /* Note:  It seems likely that we'll have to eventually define
index 02b60a1..70f6b8f 100644 (file)
@@ -27,6 +27,7 @@ struct frame_info;
 struct gdbarch;
 struct reggroup;
 struct regset;
+struct regcache;
 
 /* GDB's i386 target supports both the 32-bit Intel Architecture
    (IA-32) and the 64-bit AMD x86-64 architecture.  Internally it uses
index 88e0e20..760a17d 100644 (file)
@@ -2480,9 +2480,9 @@ ia64_find_proc_info_x (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
        return -UNW_ENOINFO;
 
       if (gdbarch_debug >= 1)
-       fprintf_unfiltered (gdb_stdlog, "%s: %lx -> "
+       fprintf_unfiltered (gdb_stdlog, "ia64_find_proc_info_x: %lx -> "
                            "(name=`%s',segbase=%lx,start=%lx,end=%lx,gp=%lx,"
-                           "length=%lu,data=%p)\n", __FUNCTION__,
+                           "length=%lu,data=%p)\n",
                            ip, (char *)di.u.ti.name_ptr,
                            di.u.ti.segbase, di.start_ip, di.end_ip,
                            di.gp, di.u.ti.table_len, di.u.ti.table_data);
@@ -2494,9 +2494,9 @@ ia64_find_proc_info_x (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
        return ret;
 
       if (gdbarch_debug >= 1)
-       fprintf_unfiltered (gdb_stdlog, "%s: %lx -> "
+       fprintf_unfiltered (gdb_stdlog, "ia64_find_proc_info_x: %lx -> "
                            "(name=`%s',segbase=%lx,start=%lx,end=%lx,gp=%lx,"
-                           "length=%lu,data=%lx)\n", __FUNCTION__,
+                           "length=%lu,data=%lx)\n",
                            ip, (char *)di.u.rti.name_ptr,
                            di.u.rti.segbase, di.start_ip, di.end_ip,
                            di.gp, di.u.rti.table_len, di.u.rti.table_data);
@@ -3356,12 +3356,14 @@ ia64_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
                0, "builtin_type_ia64_ext", NULL);
   TYPE_FLOATFORMAT (builtin_type_ia64_ext) = &floatformat_ia64_ext;
 
-  /* According to the ia64 specs, instructions that store long double floats 
-     in memory use a long-double format different than that used in the floating
-     registers.  The memory format matches the x86 extended float format which is
-     80 bits.  An OS may choose to use this format (e.g. Linux) or choose to use
-     a different format for storing long doubles (e.g. HPUX).  In the latter case,
-     the setting of the format may be moved/overridden in an OS-specific tdep file.  */
+  /* According to the ia64 specs, instructions that store long double
+     floats in memory use a long-double format different than that
+     used in the floating registers.  The memory format matches the
+     x86 extended float format which is 80 bits.  An OS may choose to
+     use this format (e.g. GNU/Linux) or choose to use a different
+     format for storing long doubles (e.g. HPUX).  In the latter case,
+     the setting of the format may be moved/overridden in an
+     OS-specific tdep file.  */
   set_gdbarch_long_double_format (gdbarch, &floatformat_i387_ext);
 
   set_gdbarch_short_bit (gdbarch, 16);
index bacdf87..e47a792 100644 (file)
 
 #ifdef HAVE_LIBUNWIND_H
 
+struct frame_info;
+struct frame_id;
+
 #ifndef LIBUNWIND_FRAME_H
 #define LIBUNWIND_FRAME_H 1
 
 #include "libunwind.h"
 
-struct frame_info;
-
 struct libunwind_descr
 {
   int (*gdb2uw) (int);
index 2567b46..d84d05e 100644 (file)
@@ -1118,13 +1118,8 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
 
          if (local_symbols
              && local_symbols->nsyms > 0
-#ifndef DEPRECATED_USE_REGISTER_NOT_ARG
-             /* DEPRECATED_USE_REGISTER_NOT_ARG is only defined by
-                 the SPARC.  */
              && gdbarch_stabs_argument_has_addr (current_gdbarch,
-                                                 SYMBOL_TYPE (sym))
-#endif
-           )
+                                                 SYMBOL_TYPE (sym)))
            {
              struct symbol *prev_sym;
              prev_sym = local_symbols->symbol[local_symbols->nsyms - 1];
index c37c1a8..8b26916 100644 (file)
@@ -1215,7 +1215,7 @@ child_continue (DWORD continue_status, int id)
 /* Called in pathological case where Windows fails to send a
    CREATE_PROCESS_DEBUG_EVENT after an attach.  */
 DWORD
-fake_create_process ()
+fake_create_process (void)
 {
   current_process_handle = OpenProcess (PROCESS_ALL_ACCESS, FALSE,
                                        current_event.dwProcessId);