This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] i386go32_frame_saved_pc()


Hello,

-Werror was flaging an undeclared read_memory_integer() for the go32 
target.  This converts that macro into a function, which needs to be 
done anyway :-)

	Andrew
2001-12-02  Andrew Cagney  <ac131313@redhat.com>

	* i386-tdep.c (i386go32_frame_saved_pc): New function.
	* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
	(FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.46
diff -p -r1.46 i386-tdep.c
*** i386-tdep.c	2001/11/18 22:14:13	1.46
--- i386-tdep.c	2001/12/02 18:23:15
*************** i386_frame_saved_pc (struct frame_info *
*** 508,513 ****
--- 508,519 ----
    return read_memory_unsigned_integer (frame->frame + 4, 4);
  }
  
+ CORE_ADDR
+ i386go32_frame_saved_pc (struct frame_info *frame)
+ {
+   return read_memory_integer (frame->frame + 4, 4);
+ }
+ 
  /* Immediately after a function call, return the saved pc.  */
  
  CORE_ADDR
Index: config/i386/tm-go32.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-go32.h,v
retrieving revision 1.4
diff -p -r1.4 tm-go32.h
*** tm-go32.h	2001/07/29 08:03:36	1.4
--- tm-go32.h	2001/12/02 18:23:16
***************
*** 45,52 ****
  #define FRAMELESS_FUNCTION_INVOCATION(FI) \
       (frameless_look_for_prologue(FI))
  
  #undef  FRAME_SAVED_PC
! #define FRAME_SAVED_PC(FRAME) (read_memory_integer ((FRAME)->frame + 4, 4))
  
  /* Support for longjmp.  */
  
--- 45,53 ----
  #define FRAMELESS_FUNCTION_INVOCATION(FI) \
       (frameless_look_for_prologue(FI))
  
+ extern CORE_ADDR i386go32_frame_saved_pc (struct frame_info *frame);
  #undef  FRAME_SAVED_PC
! #define FRAME_SAVED_PC(FRAME) (i386go32_frame_saved_pc ((FRAME)))
  
  /* Support for longjmp.  */
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]