2002-12-08 Andrew Cagney <ac131313@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 9 Dec 2002 02:44:52 +0000 (02:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 9 Dec 2002 02:44:52 +0000 (02:44 +0000)
* config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
* dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.

gdb/ChangeLog
gdb/config/rs6000/tm-rs6000.h
gdb/dwarf2cfi.c

index 3051994..2b20999 100644 (file)
@@ -1,5 +1,10 @@
 2002-12-08  Andrew Cagney  <ac131313@redhat.com>
 
+       * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
+       * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
+
+2002-12-08  Andrew Cagney  <ac131313@redhat.com>
+
        * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
        to pure functions.
        * gdbarch.h, gdbarch.c: Re-generate.
index 5109978..3f21bd7 100644 (file)
@@ -81,6 +81,11 @@ extern void aix_process_linenos (void);
 #define DEPRECATED_INIT_FRAME_PC_FIRST(fromleaf, prev) \
   (fromleaf ? SAVED_PC_AFTER_CALL (prev->next) : \
              prev->next ? FRAME_SAVED_PC (prev->next) : read_pc ())
+/* NOTE: cagney/2002-12-08: Add local declaration of
+   init_frame_pc_noop() because it isn't possible to include
+   "arch-utils.h" here.  Not too bad as this entire file is going away
+   anyway.  */
+extern CORE_ADDR init_frame_pc_noop (int fromleaf, struct frame_info *prev);
 #define INIT_FRAME_PC(fromleaf, prev) (init_frame_pc_noop (fromleaf, prev))
 
 /* Flag for machine-specific stuff in shared files.  FIXME */
index c431862..75c3c4d 100644 (file)
@@ -1754,7 +1754,7 @@ cfi_init_frame_pc (int fromleaf, struct frame_info *fi)
       CORE_ADDR pc;
       /* FIXME: cagney/2002-12-04: This is straight wrong.  It's
          assuming that the PC is CORE_ADDR (a host quantity) in size.  */
-      get_reg (&pc, UNWIND_CONTEXT (get_next_frame (fi)), PC_REGNUM);
+      get_reg ((void *)&pc, UNWIND_CONTEXT (get_next_frame (fi)), PC_REGNUM);
       return pc;
     }
   else