diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-09-13 14:12:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-09-13 14:12:41 +0000 |
commit | 8e823e250401438d65d778ef0bbac70cb56d0bcc (patch) | |
tree | 7287bd3bddc0b3532579042030fe39118ab9b16f /gdb/stabsread.c | |
parent | ebf7d56bcfb4511e7e9e38b5aee93ead749a5406 (diff) | |
download | gdb-8e823e250401438d65d778ef0bbac70cb56d0bcc.zip gdb-8e823e250401438d65d778ef0bbac70cb56d0bcc.tar.gz gdb-8e823e250401438d65d778ef0bbac70cb56d0bcc.tar.bz2 |
* gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
REG_STRUCT_HAS_ADDR.
* gdbarch.c, gdbarch.h: Updated.
* infcall.c (call_function_by_hand): Update.
* stabsread.c (define_symbol): Updated.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index d49c583..1629782 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1752,7 +1752,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, name to represent an argument passed in a register. GCC uses 'P' for the same case. So if we find such a symbol pair we combine it into one 'P' symbol. For Sun cc we need to do this - regardless of REG_STRUCT_HAS_ADDR, because the compiler puts out + regardless of DEPRECATED_REG_STRUCT_HAS_ADDR, because the compiler puts out the 'p' symbol even if it never saves the argument onto the stack. On most machines, we want to preserve both symbols, so that @@ -1768,8 +1768,8 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, if (local_symbols && local_symbols->nsyms > 0 #ifndef USE_REGISTER_NOT_ARG - && REG_STRUCT_HAS_ADDR_P () - && REG_STRUCT_HAS_ADDR (processing_gcc_compilation, + && DEPRECATED_REG_STRUCT_HAS_ADDR_P () + && DEPRECATED_REG_STRUCT_HAS_ADDR (processing_gcc_compilation, SYMBOL_TYPE (sym)) && (TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_STRUCT || TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_UNION @@ -2050,8 +2050,8 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, /* When passing structures to a function, some systems sometimes pass the address in a register, not the structure itself. */ - if (REG_STRUCT_HAS_ADDR_P () - && REG_STRUCT_HAS_ADDR (processing_gcc_compilation, SYMBOL_TYPE (sym)) + if (DEPRECATED_REG_STRUCT_HAS_ADDR_P () + && DEPRECATED_REG_STRUCT_HAS_ADDR (processing_gcc_compilation, SYMBOL_TYPE (sym)) && (SYMBOL_CLASS (sym) == LOC_REGPARM || SYMBOL_CLASS (sym) == LOC_ARG)) { struct type *symbol_type = check_typedef (SYMBOL_TYPE (sym)); @@ -2061,7 +2061,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, || (TYPE_CODE (symbol_type) == TYPE_CODE_BITSTRING) || (TYPE_CODE (symbol_type) == TYPE_CODE_SET)) { - /* If REG_STRUCT_HAS_ADDR yields non-zero we have to convert + /* If DEPRECATED_REG_STRUCT_HAS_ADDR yields non-zero we have to convert LOC_REGPARM to LOC_REGPARM_ADDR for structures and unions. */ if (SYMBOL_CLASS (sym) == LOC_REGPARM) SYMBOL_CLASS (sym) = LOC_REGPARM_ADDR; |