aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1994-04-22 21:36:59 +0000
committerKung Hsu <kung@cygnus>1994-04-22 21:36:59 +0000
commitd5336fc5a4a32554ea7e5fde89522f3f0e25ffb0 (patch)
tree1ade8f13fdfea5eaa991cf0d77d02a42a75b3ef1 /gdb/stabsread.c
parent988238d38052803c0b516b3f5da2301c1aa0acc2 (diff)
downloadgdb-d5336fc5a4a32554ea7e5fde89522f3f0e25ffb0.zip
gdb-d5336fc5a4a32554ea7e5fde89522f3f0e25ffb0.tar.gz
gdb-d5336fc5a4a32554ea7e5fde89522f3f0e25ffb0.tar.bz2
Modified Files:
ChangeLog remote-os9k.c os9kread.c stabsread.c * remote-os9k.c (rombug_fetch_registers): set trace mode correctly. * remote-os9k.c (rombug_read_inferior_memory): cache data in buffer. * os9kread,c (read_os9k_psymtab): process file symbol to truncate extra info. * os9kread.c (os9k_read_ofile_symtab): proper casting of args passed to process_one_symbol. * stabsread.c (read_type): process os9k functio prototype.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index cc9537b..37c23ca 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -1545,13 +1545,17 @@ read_type (pp, objfile)
case 'f': /* Function returning another type */
if (os9k_stabs && **pp == '(')
{
- /* Function prototype; skip it.
+ /* Function prototype; parse it.
We must conditionalize this on os9k_stabs because otherwise
it could be confused with a Sun-style (1,3) typenumber
(I think). */
- while (**pp != ')')
- ++*pp;
+ struct type *t;
++*pp;
+ while (**pp != ')')
+ {
+ t = os9k_read_type(pp, objfile);
+ if (**pp == ',') ++*pp;
+ }
}
type1 = read_type (pp, objfile);
type = make_function_type (type1, dbx_lookup_type (typenums));