This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[patch/multi-arch] Minor cleanup
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch/multi-arch] Minor cleanup
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 06 Jun 2000 16:39:21 +1000
- Organization: Cygnus Solutions
Just FYI,
Andrew
Tue Jun 6 16:21:14 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * gdbarch.sh (generic_register_convertible_not,
+ frame_num_args_unknown): Move from here.
+ * arch-utils.c (generic_register_convertible_not,
+ frame_num_args_unknown): To here.
+ * arch-utils.h (frame_num_args_unknown): Add declaration.
+ * gdbarch.h, gdbarch.c: Re-generate.
+
Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.5
diff -p -r1.5 arch-utils.c
*** arch-utils.c 2000/06/02 01:59:13 1.5
--- arch-utils.c 2000/06/06 06:37:11
*************** default_double_format (struct gdbarch *g
*** 206,211 ****
--- 206,228 ----
}
}
+ /* Misc helper functions for targets. */
+
+ int
+ frame_num_args_unknown (fi)
+ struct frame_info *fi;
+ {
+ return -1;
+ }
+
+
+ int
+ generic_register_convertible_not (num)
+ int num;
+ {
+ return 0;
+ }
+
/* */
extern initialize_file_ftype __initialize_gdbarch_utils;
Index: arch-utils.h
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.h,v
retrieving revision 1.5
diff -p -r1.5 arch-utils.h
*** arch-utils.h 2000/06/02 01:59:13 1.5
--- arch-utils.h 2000/06/06 06:37:11
*************** extern int core_addr_greaterthan (CORE_A
*** 67,70 ****
--- 67,75 ----
extern const struct floatformat *default_float_format (struct gdbarch *gdbarch);
extern const struct floatformat *default_double_format (struct gdbarch *gdbarch);
+ /* Helper function for targets that don't know how my arguments are
+ being passed */
+ extern int frame_num_args_unknown (struct frame_info *fi);
+
+
#endif
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.25
diff -p -r1.25 gdbarch.sh
*** gdbarch.sh 2000/06/04 13:46:37 1.25
--- gdbarch.sh 2000/06/06 06:37:23
*************** extern void set_architecture_from_arch_m
*** 898,909 ****
extern void initialize_current_architecture (void);
- /* Helper function for targets that don't know how my arguments are
- being passed */
- extern int frame_num_args_unknown (struct frame_info *fi);
-
-
/* gdbarch trace variable */
extern int gdbarch_debug;
--- 898,904 ----
*************** set_architecture_from_file (bfd *abfd)
*** 2064,2087 ****
}
}
-
- /* Misc helper functions for targets. */
-
- int
- frame_num_args_unknown (fi)
- struct frame_info *fi;
- {
- return -1;
- }
-
-
- int
- generic_register_convertible_not (num)
- int num;
- {
- return 0;
- }
-
/* Disassembler */
--- 2059,2064 ----