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: add type::num_fields / type::set_num_fields
[deliverable/binutils-gdb.git]
/
gdb
/
windows-tdep.c
diff --git
a/gdb/windows-tdep.c
b/gdb/windows-tdep.c
index 20a18e6b68398163daebcf4cb8b425a25abe3d9d..d7c498f2e93bac7c6eff75de6d2712aa1ff70e96 100644
(file)
--- a/
gdb/windows-tdep.c
+++ b/
gdb/windows-tdep.c
@@
-751,7
+751,7
@@
create_enum (struct gdbarch *gdbarch, int bit, const char *name,
int i;
type = arch_type (gdbarch, TYPE_CODE_ENUM, bit, name);
-
TYPE_NFIELDS (type) = count
;
+
type->set_num_fields (count)
;
TYPE_FIELDS (type) = (struct field *)
TYPE_ZALLOC (type, sizeof (struct field) * count);
TYPE_UNSIGNED (type) = 1;
This page took
0.02353 seconds
and
4
git commands to generate.