projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb: remove TYPE_NFIELDS macro
[deliverable/binutils-gdb.git]
/
gdb
/
typeprint.c
diff --git
a/gdb/typeprint.c
b/gdb/typeprint.c
index e5009ea3800167af48ec4b11415201c88907848a..a46f6a564c059956b1916e32bfa78d8f4b410046 100644
(file)
--- a/
gdb/typeprint.c
+++ b/
gdb/typeprint.c
@@
-619,7
+619,7
@@
print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
{
case TYPE_CODE_ENUM:
- len =
TYPE_NFIELDS (type
);
+ len =
type->num_fields (
);
for (i = 0; i < len; i++)
{
if (TYPE_FIELD_ENUMVAL (type, i) == val)
This page took
0.023584 seconds
and
4
git commands to generate.