projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Centralize printing "<optimized out>".
[deliverable/binutils-gdb.git]
/
gdb
/
cp-valprint.c
diff --git
a/gdb/cp-valprint.c
b/gdb/cp-valprint.c
index ff3908d3e79a9bd212c964d749f96ddbba9bff4c..fff41d80f087cbb39ff2b4caeccda928dd08ccbb 100644
(file)
--- a/
gdb/cp-valprint.c
+++ b/
gdb/cp-valprint.c
@@
-316,7
+316,7
@@
cp_print_value_fields (struct type *type, struct type *real_type,
TYPE_FIELD_BITPOS (type, i),
TYPE_FIELD_BITSIZE (type, i)))
{
TYPE_FIELD_BITPOS (type, i),
TYPE_FIELD_BITSIZE (type, i)))
{
-
fputs_filtered (_("<value optimized out>"),
stream);
+
val_print_optimized_out (
stream);
}
else
{
}
else
{
@@
-343,7
+343,7
@@
cp_print_value_fields (struct type *type, struct type *real_type,
struct value *v = value_static_field (type, i);
if (v == NULL)
struct value *v = value_static_field (type, i);
if (v == NULL)
-
fputs_filtered ("<optimized out>",
stream);
+
val_print_optimized_out (
stream);
else
cp_print_static_field (TYPE_FIELD_TYPE (type, i),
v, stream, recurse + 1,
else
cp_print_static_field (TYPE_FIELD_TYPE (type, i),
v, stream, recurse + 1,
This page took
0.026002 seconds
and
4
git commands to generate.