This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/ob] -Werror fixes for std-regs.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 10 Apr 2002 18:02:23 -0400
- Subject: [patch/ob] -Werror fixes for std-regs.c
FYI,
I've committed the attached tweaks to fix -Werror problems with std-regs.c.
Not too painful
Andrew
2002-04-10 Andrew Cagney <ac131313@redhat.com>
* maint.c (maint_print_section_info): Rename print_section_info.
(print_bfd_section_info, print_objfile_section_info): Update.
* inferior.h (struct gdbarch): Add opaque declaration.
* gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
* gdbarch.h: Regenerate.
Index: gdbarch.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.h,v
retrieving revision 1.87
diff -u -r1.87 gdbarch.h
--- gdbarch.h 7 Apr 2002 02:16:46 -0000 1.87
+++ gdbarch.h 10 Apr 2002 21:58:44 -0000
@@ -37,7 +37,9 @@
#include "dis-asm.h" /* Get defs for disassemble_info, which unfortunately is a typedef. */
#if !GDB_MULTI_ARCH
+/* Pull in function declarations refered to, indirectly, via macros. */
#include "value.h" /* For default_coerce_float_to_double which is referenced by a macro. */
+#include "inferior.h" /* For unsigned_address_to_pointer(). */
#endif
struct frame_info;
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.124
diff -u -r1.124 gdbarch.sh
--- gdbarch.sh 7 Apr 2002 02:16:46 -0000 1.124
+++ gdbarch.sh 10 Apr 2002 21:58:45 -0000
@@ -726,7 +726,9 @@
#include "dis-asm.h" /* Get defs for disassemble_info, which unfortunately is a typedef. */
#if !GDB_MULTI_ARCH
+/* Pull in function declarations refered to, indirectly, via macros. */
#include "value.h" /* For default_coerce_float_to_double which is referenced by a macro. */
+#include "inferior.h" /* For unsigned_address_to_pointer(). */
#endif
struct frame_info;
Index: inferior.h
===================================================================
RCS file: /cvs/src/src/gdb/inferior.h,v
retrieving revision 1.25
diff -u -r1.25 inferior.h
--- inferior.h 6 Apr 2002 00:02:50 -0000 1.25
+++ inferior.h 10 Apr 2002 21:58:45 -0000
@@ -23,6 +23,8 @@
#if !defined (INFERIOR_H)
#define INFERIOR_H 1
+struct gdbarch;
+
/* For bpstat. */
#include "breakpoint.h"
Index: maint.c
===================================================================
RCS file: /cvs/src/src/gdb/maint.c,v
retrieving revision 1.25
diff -u -r1.25 maint.c
--- maint.c 24 Mar 2002 00:40:35 -0000 1.25
+++ maint.c 10 Apr 2002 21:58:45 -0000
@@ -291,9 +291,9 @@
}
static void
-print_section_info (const char *name, flagword flags,
- CORE_ADDR addr, CORE_ADDR endaddr,
- unsigned long filepos)
+maint_print_section_info (const char *name, flagword flags,
+ CORE_ADDR addr, CORE_ADDR endaddr,
+ unsigned long filepos)
{
/* FIXME-32x64: Need print_address_numeric with field width. */
printf_filtered (" 0x%s", paddr (addr));
@@ -321,7 +321,7 @@
addr = bfd_section_vma (abfd, asect);
endaddr = addr + bfd_section_size (abfd, asect);
- print_section_info (name, flags, addr, endaddr, asect->filepos);
+ maint_print_section_info (name, flags, addr, endaddr, asect->filepos);
}
}
@@ -337,7 +337,7 @@
|| match_substring (string, name)
|| match_bfd_flags (string, flags))
{
- print_section_info (name, flags, asect->addr, asect->endaddr,
+ maint_print_section_info (name, flags, asect->addr, asect->endaddr,
asect->the_bfd_section->filepos);
}
}