This is the mail archive of the gdb-patches@sourceware.cygnus.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]

FYI, move ``enum lval_type'' to defs.h


FYI,

I've checked in the attached patch.  It moves the declaration of enum
lval_type to defs.h so that it is visible across all header files (yuck
:-).

Hopefully that was the last remaining incomplete enum declaration.

	enjoy,
		Andrew

Sun Aug 22 14:49:40 1999  Andrew Cagney  <cagney@b1.cygnus.com>

	* value.h (enum lval_type): Move declaration from here.
	* defs.h (enum lval_type): To here.
	* frame.h, gdbarch.h: Delete incomplete declaration of ``enum
 	lval_type''.
Index: defs.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/defs.h,v
retrieving revision 1.246
diff -p -r1.246 defs.h
*** defs.h	1999/08/11 01:46:26	1.246
--- defs.h	1999/08/22 05:23:59
*************** extern char *symtab_to_filename PARAMS (
*** 574,583 ****
  
  extern int read_relative_register_raw_bytes PARAMS ((int, char *));
  
! #if __STDC__
! enum lval_type;
  struct frame_info;
! #endif
  void default_get_saved_register PARAMS ((char *raw_buffer, int *optimized,
  					 CORE_ADDR *addrp,
  					 struct frame_info *frame, int regnum,
--- 574,602 ----
  
  extern int read_relative_register_raw_bytes PARAMS ((int, char *));
  
! /* Possible lvalue types.  Like enum language, this should be in
!    value.h, but needs to be here for the same reason. */
! 
! enum lval_type
!   {
!     /* Not an lval. */
!     not_lval,
!     /* In memory.  Could be a saved register.  */
!     lval_memory,
!     /* In a register.  */
!     lval_register,
!     /* In a gdb internal variable.  */
!     lval_internalvar,
!     /* Part of a gdb internal variable (structure field).  */
!     lval_internalvar_component,
!     /* In a register series in a frame not the current one, which may have been
!        partially saved or saved in different places (otherwise would be
!        lval_register or lval_memory).  */
!     lval_reg_frame_relative
!   };
! 
  struct frame_info;
! 
  void default_get_saved_register PARAMS ((char *raw_buffer, int *optimized,
  					 CORE_ADDR *addrp,
  					 struct frame_info *frame, int regnum,
Index: frame.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/frame.h,v
retrieving revision 1.41
diff -p -r1.41 frame.h
*** frame.h	1999/07/07 23:51:07	1.41
--- frame.h	1999/08/22 05:24:02
*************** extern void generic_fix_call_dummy PARAM
*** 247,257 ****
  					    int nargs, struct value ** args,
  					    struct type * type, int gcc_p));
  
- #ifdef __STDC__
- /* Some native compilers, even ones that are supposed to be ANSI and for which __STDC__
-    is true, complain about forward decls of enums. */
- enum lval_type;
  extern void generic_get_saved_register PARAMS ((char *, int *, CORE_ADDR *, struct frame_info *, int, enum lval_type *));
- #endif
  
  #endif /* !defined (FRAME_H)  */
--- 247,252 ----
Index: gdbarch.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/gdbarch.h,v
retrieving revision 2.55
diff -p -r2.55 gdbarch.h
*** gdbarch.h	1999/08/08 07:19:45	2.55
--- gdbarch.h	1999/08/22 05:24:04
***************
*** 26,32 ****
  #ifdef __STDC__
  struct frame_info;
  struct value;
- enum lval_type;
  #endif
  
  
--- 26,31 ----
Index: value.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/value.h,v
retrieving revision 1.81
diff -p -r1.81 value.h
*** value.h	1999/07/07 23:52:08	1.81
--- value.h	1999/08/22 05:24:08
***************
*** 27,49 ****
   * be possible for a program lval value to survive over a call to the inferior
   * (ie to be put into the history list or an internal variable).
   */
- enum lval_type
-   {
-     /* Not an lval.  */
-     not_lval,
-     /* In memory.  Could be a saved register.  */
-     lval_memory,
-     /* In a register.  */
-     lval_register,
-     /* In a gdb internal variable.  */
-     lval_internalvar,
-     /* Part of a gdb internal variable (structure field).  */
-     lval_internalvar_component,
-     /* In a register series in a frame not the current one, which may have been
-        partially saved or saved in different places (otherwise would be
-        lval_register or lval_memory).  */
-     lval_reg_frame_relative
-   };
  
  struct value
    {
--- 27,32 ----


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