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
/
rust-lang.c
diff --git
a/gdb/rust-lang.c
b/gdb/rust-lang.c
index 2c76762eff2090e22eff476a014f8e0512e1ae66..f0bea374ecb20f40ece3cc7b8c41a6c9c96a1eb3 100644
(file)
--- a/
gdb/rust-lang.c
+++ b/
gdb/rust-lang.c
@@
-984,7
+984,7
@@
rust_composite_type (struct type *original,
result->set_code (TYPE_CODE_STRUCT);
result->set_name (name);
-
TYPE_NFIELDS (result) = nfields
;
+
result->set_num_fields (nfields)
;
TYPE_FIELDS (result)
= (struct field *) TYPE_ZALLOC (result, nfields * sizeof (struct field));
This page took
0.024835 seconds
and
4
git commands to generate.