diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-16 22:45:35 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-16 22:45:35 +0000 |
commit | d1f14b46bdd919d314010aefeb7f93cdc47bfc9e (patch) | |
tree | d794b8b1618687134f84170bb85477574b0511e3 /gdb/xcoffread.c | |
parent | 86d0248d410b735833a330c6d0741431e29708d2 (diff) | |
download | gdb-d1f14b46bdd919d314010aefeb7f93cdc47bfc9e.zip gdb-d1f14b46bdd919d314010aefeb7f93cdc47bfc9e.tar.gz gdb-d1f14b46bdd919d314010aefeb7f93cdc47bfc9e.tar.bz2 |
* xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
inferred from the traceback tags, give its type the name
"<non-float parameter>".
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 34acb06..368f1c5 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1,5 +1,5 @@ /* Read AIX xcoff symbol tables and convert to internal format, for GDB. - Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994 + Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. Derived from coffread.c, dbxread.c, and a lot of hacking. Contributed by IBM Corporation. @@ -1446,10 +1446,29 @@ read_xcoff_symtab (objfile, nsyms) } else { - /* fixed parm, use (int*) for hex rep. */ + static struct type *intparm_type; + if (intparm_type == NULL) + { + + /* Create a type, which is a pointer + type (a kludge to make it print + in hex), but which has a name + indicating we don't know the real + type. */ + + intparm_type = + init_type + (TYPE_CODE_PTR, + TARGET_PTR_BIT / HOST_CHAR_BIT, + 0, + "<non-float parameter>", + NULL); + TYPE_TARGET_TYPE (intparm_type) = + builtin_type_void; + } ADD_PARM_TO_PENDING (parm, parmvalue, - lookup_pointer_type (builtin_type_int), + intparm_type, local_symbols); parmvalue += sizeof (int); } |