projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use an accessor function for general_symbol_info::language
[deliverable/binutils-gdb.git]
/
gdb
/
mdebugread.c
diff --git
a/gdb/mdebugread.c
b/gdb/mdebugread.c
index c58e40c94a007c08e809eff315273f07900f68ec..ceffc012c11f7fca6aa19567e7436277d2da2d65 100644
(file)
--- a/
gdb/mdebugread.c
+++ b/
gdb/mdebugread.c
@@
-794,11
+794,11
@@
parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
/* All functions in C++ have prototypes. For C we don't have enough
information in the debug info. */
/* All functions in C++ have prototypes. For C we don't have enough
information in the debug info. */
- if (
SYMBOL_LANGUAGE (s
) == language_cplus)
+ if (
s->language (
) == language_cplus)
TYPE_PROTOTYPED (SYMBOL_TYPE (s)) = 1;
/* Create and enter a new lexical context. */
TYPE_PROTOTYPED (SYMBOL_TYPE (s)) = 1;
/* Create and enter a new lexical context. */
- b = new_block (FUNCTION_BLOCK,
SYMBOL_LANGUAGE (s
));
+ b = new_block (FUNCTION_BLOCK,
s->language (
));
SYMBOL_BLOCK_VALUE (s) = b;
BLOCK_FUNCTION (b) = s;
BLOCK_START (b) = BLOCK_END (b) = sh->value;
SYMBOL_BLOCK_VALUE (s) = b;
BLOCK_FUNCTION (b) = s;
BLOCK_START (b) = BLOCK_END (b) = sh->value;
@@
-1066,9
+1066,8
@@
parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
FIELD_BITSIZE (*f) = 0;
enum_sym = allocate_symbol (mdebugread_objfile);
FIELD_BITSIZE (*f) = 0;
enum_sym = allocate_symbol (mdebugread_objfile);
- SYMBOL_SET_LINKAGE_NAME
- (enum_sym,
- obstack_strdup (&mdebugread_objfile->objfile_obstack,
+ enum_sym->set_linkage_name
+ (obstack_strdup (&mdebugread_objfile->objfile_obstack,
f->name));
SYMBOL_ACLASS_INDEX (enum_sym) = LOC_CONST;
SYMBOL_TYPE (enum_sym) = t;
f->name));
SYMBOL_ACLASS_INDEX (enum_sym) = LOC_CONST;
SYMBOL_TYPE (enum_sym) = t;
This page took
0.026451 seconds
and
4
git commands to generate.