diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-06-01 15:44:41 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-06-01 15:44:41 +0000 |
commit | ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3 (patch) | |
tree | 00ebb9456083a2ad26b6a4e64c40b9b28f570ef4 /gdb/parse.c | |
parent | aa903cfb1b8b2b9d5d5d23364cbf0a31b7c8d29a (diff) | |
download | gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.zip gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.tar.gz gdb-ac9a91a77ce5ce484bf8f62582292ef1f5b4dcf3.tar.bz2 |
import gdb-1999-06-01 snapshot
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 42b0f3b..d0424ce 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -1317,14 +1317,10 @@ follow_types (follow_type) return follow_type; } -void -_initialize_parse () +static void build_parse PARAMS ((void)); +static void +build_parse () { - type_stack_size = 80; - type_stack_depth = 0; - type_stack = (union type_stack_elt *) - xmalloc (type_stack_size * sizeof (*type_stack)); - msym_text_symbol_type = init_type (TYPE_CODE_FUNC, 1, 0, "<text variable, no debug info>", NULL); TYPE_TARGET_TYPE (msym_text_symbol_type) = builtin_type_int; @@ -1335,6 +1331,17 @@ _initialize_parse () init_type (TYPE_CODE_INT, 1, 0, "<variable (not text or data), no debug info>", NULL); +} + +void +_initialize_parse () +{ + type_stack_size = 80; + type_stack_depth = 0; + type_stack = (union type_stack_elt *) + xmalloc (type_stack_size * sizeof (*type_stack)); + + build_parse (); add_show_from_set ( add_set_cmd ("expressiondebug", class_maintenance, var_zinteger, |