diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-06 06:45:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-06 06:45:19 +0000 |
commit | 193e3b1a003032346e7eea1f7301de2809d6013d (patch) | |
tree | c742cb15ce008c739861b7fee52f2553e101bb6d /gdb | |
parent | ef31c1ea0efc1e66638a426acfe9678f25ebe8c0 (diff) | |
download | binutils-gdb-193e3b1a003032346e7eea1f7301de2809d6013d.tar.gz |
Move generic_register_convertible_not and frame_num_args_unknown from
gdbarch.* to arch-utils.*.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/arch-utils.c | 17 | ||||
-rw-r--r-- | gdb/arch-utils.h | 5 | ||||
-rw-r--r-- | gdb/gdbarch.c | 18 | ||||
-rw-r--r-- | gdb/gdbarch.h | 5 | ||||
-rwxr-xr-x | gdb/gdbarch.sh | 23 |
6 files changed, 31 insertions, 46 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cf28e528486..44eafbb687e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +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. + Tue Jun 6 15:07:08 2000 Andrew Cagney <cagney@b1.cygnus.com> * remote-mips.c (mips_open): Select the default monitor prompt diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index be2433d37e6..1cd8652726f 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -206,6 +206,23 @@ default_double_format (struct gdbarch *gdbarch) } } +/* 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; diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index a9ff6f52ad9..86c60546a74 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -67,4 +67,9 @@ extern int core_addr_greaterthan (CORE_ADDR lhs, CORE_ADDR rhs); 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 diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 55afe114e6a..18cc181d7bb 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -3613,24 +3613,6 @@ set_architecture_from_file (bfd *abfd) } -/* 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 */ /* Pointer to the target-dependent disassembly function. */ diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 1875774e4e7..f0453bfb672 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1408,11 +1408,6 @@ extern void set_architecture_from_arch_mach (enum bfd_architecture, unsigned lon 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; diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index bf7b47c1e5d..dcf32306cf5 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -898,11 +898,6 @@ extern void set_architecture_from_arch_mach (enum bfd_architecture, unsigned lon 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; @@ -2065,24 +2060,6 @@ set_architecture_from_file (bfd *abfd) } -/* 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 */ /* Pointer to the target-dependent disassembly function. */ |