aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-09-16 16:43:39 -0400
committerSimon Marchi <simon.marchi@efficios.com>2020-09-16 16:43:39 -0400
commit4d0bcfcf62dd55d7b3e2983af7075e108b3eb37c (patch)
tree6ac82f0cea90c0ff84fe4684bb78ee4923a0439e /gdb/btrace.c
parentfe83066292c6aaa8227b2d38c343379a209cb4ba (diff)
downloadgdb-4d0bcfcf62dd55d7b3e2983af7075e108b3eb37c.zip
gdb-4d0bcfcf62dd55d7b3e2983af7075e108b3eb37c.tar.gz
gdb-4d0bcfcf62dd55d7b3e2983af7075e108b3eb37c.tar.bz2
gdb: update instance_flags field name in gdb-gdb.py.in
Commit 314ad88df63c ("Use type_instance_flags more throughout") changed the name of field type::instance_flags to type::m_instance_flags. It however missed changing it in the gdb-gdb.py.in file, which results in this when trying to use the pretty-printer: (top-gdb) p *val.type Traceback (most recent call last): File "/home/smarchi/build/binutils-gdb/gdb/gdb-gdb.py", line 116, in to_string % TypeFlagsPrinter(self.val['instance_flags'])) File "/home/smarchi/build/binutils-gdb/gdb/gdb-gdb.py", line 76, in __str__ flag_list = [flag.short_name for flag in TYPE_FLAGS File "/home/smarchi/build/binutils-gdb/gdb/gdb-gdb.py", line 77, in <listcomp> if self.val & flag.value] gdb.error: Argument to arithmetic operation not a number or boolean. $7 = This patch fixes it. gdb/ChangeLog: * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>: Change instance_flags to m_instance_flags. Change-Id: Ib5e03c08fe41ca11cd71998f2b1c58052879ce95
Diffstat (limited to 'gdb/btrace.c')
0 files changed, 0 insertions, 0 deletions