aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1996-01-12 07:12:42 +0000
committerPer Bothner <per@bothner.com>1996-01-12 07:12:42 +0000
commit34cfa2dab5a0d1f6c53b24847d6fd590c7a618c0 (patch)
treee21eeb4302dbbd2fdead81f627a855a0d1589d38 /gdb/stabsread.c
parentc9746fb695adc5dc98cf3b2c14d36f2a7503ef6a (diff)
downloadgdb-34cfa2dab5a0d1f6c53b24847d6fd590c7a618c0.zip
gdb-34cfa2dab5a0d1f6c53b24847d6fd590c7a618c0.tar.gz
gdb-34cfa2dab5a0d1f6c53b24847d6fd590c7a618c0.tar.bz2
* stabsread.c (read_struct_type): Trivial simplification.
* valops.c (call_function_by_hand): Use invisible references for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index c81b21e..ba36fb2 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -2967,8 +2967,7 @@ read_struct_type (pp, type, objfile)
|| !attach_fn_fields_to_type (&fi, type)
|| !read_tilde_fields (&fi, pp, type, objfile))
{
- do_cleanups (back_to);
- return (error_type (pp, objfile));
+ type = error_type (pp, objfile);
}
do_cleanups (back_to);