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]

[patch] move lessthan/greater than to arch-utils.c


FYI,

The attatched moves core_addr_lessthan,greaterthan from utils.c to a
more permenant home in arch-utils.[hc].

	Andrew
Mon May 15 13:25:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* defs.h (core_addr_greaterthan, core_addr_lessthan), utils.c
 	(core_addr_greaterthan, core_addr_lessthan): Move from here.
	* arch-utils.h (core_addr_greaterthan, core_addr_lessthan),
 	arch-utils.c (core_addr_greaterthan, core_addr_lessthan): To here.

Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.3
diff -p -r1.3 arch-utils.c
*** arch-utils.c	2000/04/29 08:55:45	1.3
--- arch-utils.c	2000/05/15 03:55:04
*************** generic_prologue_frameless_p (CORE_ADDR 
*** 144,149 ****
--- 144,168 ----
  }
  
  
+ /* Helper functions for INNER_THAN */
+ 
+ int
+ core_addr_lessthan (lhs, rhs)
+      CORE_ADDR lhs;
+      CORE_ADDR rhs;
+ {
+   return (lhs < rhs);
+ }
+ 
+ int
+ core_addr_greaterthan (lhs, rhs)
+      CORE_ADDR lhs;
+      CORE_ADDR rhs;
+ {
+   return (lhs > rhs);
+ }
+ 
+ 
  /* */
  
  extern initialize_file_ftype __initialize_gdbarch_utils;
Index: arch-utils.h
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.h,v
retrieving revision 1.3
diff -p -r1.3 arch-utils.h
*** arch-utils.h	2000/04/29 08:55:45	1.3
--- arch-utils.h	2000/05/15 03:55:04
*************** extern gdbarch_remote_translate_xfer_add
*** 59,62 ****
--- 59,66 ----
     changed. */
  extern gdbarch_prologue_frameless_p_ftype generic_prologue_frameless_p;
  
+ /* The only possible cases for inner_than. */
+ extern int core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs);
+ extern int core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs);
+ 
  #endif
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.17
diff -p -r1.17 defs.h
*** defs.h	2000/05/02 08:57:21	1.17
--- defs.h	2000/05/15 03:55:06
*************** typedef bfd_vma CORE_ADDR;
*** 106,115 ****
  
  #endif /* ! LONGEST */
  
- extern int core_addr_lessthan (CORE_ADDR lhs, CORE_ADDR rhs);
- extern int core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs);
- 
- 
  #ifndef min
  #define min(a, b) ((a) < (b) ? (a) : (b))
  #endif
--- 106,111 ----
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.8
diff -p -r1.8 utils.c
*** utils.c	2000/04/27 00:15:14	1.8
--- utils.c	2000/05/15 03:55:13
*************** preg_nz (reg)
*** 3010,3029 ****
      }
    return preg_str;
  }
- 
- /* Helper functions for INNER_THAN */
- int
- core_addr_lessthan (lhs, rhs)
-      CORE_ADDR lhs;
-      CORE_ADDR rhs;
- {
-   return (lhs < rhs);
- }
- 
- int
- core_addr_greaterthan (lhs, rhs)
-      CORE_ADDR lhs;
-      CORE_ADDR rhs;
- {
-   return (lhs > rhs);
- }
--- 3010,3012 ----

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