projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix PR c++/23373: GDB hangs when printing a struct with a static member of itself
[deliverable/binutils-gdb.git]
/
gdb
/
c-typeprint.c
diff --git
a/gdb/c-typeprint.c
b/gdb/c-typeprint.c
index c167e212ded4ae12ef8110b95fc12ef98eada10c..eccb972f24576c425f9300060dd086995b678c09 100644
(file)
--- a/
gdb/c-typeprint.c
+++ b/
gdb/c-typeprint.c
@@
-1168,7
+1168,7
@@
c_type_print_base_struct_union (struct type *type, struct ui_file *stream,
int newshow = show - 1;
- if (flags->print_offsets
+ if (
!is_static &&
flags->print_offsets
&& (TYPE_CODE (TYPE_FIELD_TYPE (type, i)) == TYPE_CODE_STRUCT
|| TYPE_CODE (TYPE_FIELD_TYPE (type, i)) == TYPE_CODE_UNION))
{
This page took
0.024988 seconds
and
4
git commands to generate.