From d5336fc5a4a32554ea7e5fde89522f3f0e25ffb0 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Fri, 22 Apr 1994 21:36:59 +0000 Subject: 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. --- gdb/stabsread.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gdb/stabsread.c') 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)); -- cgit v1.1