diff options
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r-- | gdb/parser-defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index ffdbd83..1aa5f1f 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -32,7 +32,6 @@ struct internalvar; extern int parser_debug; -#define parse_gdbarch(ps) ((ps)->expout->gdbarch) #define parse_language(ps) ((ps)->expout->language_defn) struct parser_state @@ -49,6 +48,13 @@ struct parser_state it as an expression_up -- passing ownership to the caller. */ ATTRIBUTE_UNUSED_RESULT expression_up release (); + /* Return the gdbarch that was passed to the constructor. */ + + struct gdbarch *gdbarch () + { + return expout->gdbarch; + } + /* The size of the expression above. */ size_t expout_size; |