aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-09-13 22:31:04 +0000
committerKung Hsu <kung@cygnus>1995-09-13 22:31:04 +0000
commit771e0a5cb015e21bcb34c49e9b4dbc1d8fd2fc9a (patch)
tree3e581c74daf3eea14e9878121128528d3b9d6c78 /gdb/stabsread.c
parent199f521718ba2f50a183280d0f56bc0bb58b6ef9 (diff)
downloadgdb-771e0a5cb015e21bcb34c49e9b4dbc1d8fd2fc9a.zip
gdb-771e0a5cb015e21bcb34c49e9b4dbc1d8fd2fc9a.tar.gz
gdb-771e0a5cb015e21bcb34c49e9b4dbc1d8fd2fc9a.tar.bz2
* stbsread.c (read_one_struct_field): Use subfile language instead of
global language. Improve efficiency.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index b716112..74e8bc1 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;