From 771e0a5cb015e21bcb34c49e9b4dbc1d8fd2fc9a Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Wed, 13 Sep 1995 22:31:04 +0000 Subject: [PATCH] * stbsread.c (read_one_struct_field): Use subfile language instead of global language. Improve efficiency. --- gdb/ChangeLog | 5 +++++ gdb/stabsread.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1c23bdaa270..32062d3f959 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 13 13:33:58 1995 Kung Hsu + + * stbsread.c (read_one_struct_field): Use subfile language instead of + global language. Improve efficiency. + Wed Sep 13 08:45:02 1995 Jeff Law (law@fast.cs.utah.edu) * somsolib.c (auto_solib_add_at_startup): Define new global variable. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index b7161127538..74e8bc1e253 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2350,7 +2350,7 @@ read_one_struct_field (fip, pp, p, type, objfile) The stabs contains full mangled name for each field. We try to demangle the name and extract the field name out of it. */ - if (current_language->la_language == language_cplus) + if (ARM_DEMANGLING && current_subfile->language == language_cplus) { char save_p; char *dem, *dem_p; -- 2.30.2