aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-04-17 06:58:05 +0000
committerJohn Gilmore <gnu@cygnus>1992-04-17 06:58:05 +0000
commitb0c8c726888d90783a178afe4df237083ac70c8f (patch)
treeda6a64bbb2785fca3751a890fd112d03c4e85aeb
parent13b33d2b0a53a588bbec6e9ab9946d40947a84b1 (diff)
downloadgdb-b0c8c726888d90783a178afe4df237083ac70c8f.zip
gdb-b0c8c726888d90783a178afe4df237083ac70c8f.tar.gz
gdb-b0c8c726888d90783a178afe4df237083ac70c8f.tar.bz2
* sun3-xdep.c (fetch_core_registers): Lint.
* tm-sun3.h: Prototype lint. * value.h: Typo.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sun3-xdep.c4
-rw-r--r--gdb/tm-sun3.h4
3 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c190ce7..3f8665f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
+
+ * sun3-xdep.c (fetch_core_registers): Lint.
+ * tm-sun3.h: Prototype lint.
+ * value.h: Typo.
+
Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
* dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
diff --git a/gdb/sun3-xdep.c b/gdb/sun3-xdep.c
index b1f8cbe..f6db72d 100644
--- a/gdb/sun3-xdep.c
+++ b/gdb/sun3-xdep.c
@@ -111,8 +111,8 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
error ("Can't find registers in core file");
bcopy ((char *)regs, registers, 16 * 4);
- supply_register (PS_REGNUM, &regs->r_ps);
- supply_register (PC_REGNUM, &regs->r_pc);
+ supply_register (PS_REGNUM, (char *)&regs->r_ps);
+ supply_register (PC_REGNUM, (char *)&regs->r_pc);
} else if (which == 2) {
diff --git a/gdb/tm-sun3.h b/gdb/tm-sun3.h
index 0169199..42d010a 100644
--- a/gdb/tm-sun3.h
+++ b/gdb/tm-sun3.h
@@ -69,6 +69,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef SAVED_PC_AFTER_CALL
+#ifdef __STDC__
+struct frame_info;
+#endif
+
extern CORE_ADDR sun3_saved_pc_after_call PARAMS ((struct frame_info *));
#define SAVED_PC_AFTER_CALL(frame) \