diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-22 06:44:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-22 06:44:39 +0000 |
commit | d03e67c95f6ddaaf4d8ad1a17752099403b83bda (patch) | |
tree | 63b8e978c16bb3925fc80a7ebf07a88c76406eaa /gdb/stabsread.c | |
parent | 19be430370b901be8149b925820d300a2663ef43 (diff) | |
download | gdb-d03e67c95f6ddaaf4d8ad1a17752099403b83bda.zip gdb-d03e67c95f6ddaaf4d8ad1a17752099403b83bda.tar.gz gdb-d03e67c95f6ddaaf4d8ad1a17752099403b83bda.tar.bz2 |
Convert REG_STRUCT_HAS_ADDR to multi-arch. Use REG_STRUCT_HAS_ADDR_P
in conversion.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 48eef62..7adf078 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -559,10 +559,6 @@ read_type_number (pp, typenums) } -#if !defined (REG_STRUCT_HAS_ADDR) -#define REG_STRUCT_HAS_ADDR(gcc_p,type) 0 -#endif - #define VISIBILITY_PRIVATE '0' /* Stabs character for private field */ #define VISIBILITY_PROTECTED '1' /* Stabs character for protected fld */ #define VISIBILITY_PUBLIC '2' /* Stabs character for public field */ @@ -1899,6 +1895,7 @@ define_symbol (valu, string, desc, type, objfile) if (local_symbols && local_symbols->nsyms > 0 #ifndef USE_REGISTER_NOT_ARG + && REG_STRUCT_HAS_ADDR_P () && REG_STRUCT_HAS_ADDR (processing_gcc_compilation, SYMBOL_TYPE (sym)) && (TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_STRUCT @@ -2156,8 +2153,9 @@ define_symbol (valu, string, desc, type, objfile) /* When passing structures to a function, some systems sometimes pass the address in a register, not the structure itself. */ - if (REG_STRUCT_HAS_ADDR (processing_gcc_compilation, SYMBOL_TYPE (sym)) - && (SYMBOL_CLASS (sym) == LOC_REGPARM || SYMBOL_CLASS (sym) == LOC_ARG)) + if (REG_STRUCT_HAS_ADDR_P () + && 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)); |