aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-send-packet.py
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-07-13 12:20:53 +0200
committerTom de Vries <tdevries@suse.de>2022-07-13 12:20:53 +0200
commit52c0a455466aa437e4b8d6967e44767c8f3fa260 (patch)
tree8bc1c87e84046736a961239650478b4f3b1793f9 /gdb/testsuite/gdb.python/py-send-packet.py
parentdd4c046506cd4da46b439a2b4f8b6d933ecbb961 (diff)
downloadbinutils-52c0a455466aa437e4b8d6967e44767c8f3fa260.zip
binutils-52c0a455466aa437e4b8d6967e44767c8f3fa260.tar.gz
binutils-52c0a455466aa437e4b8d6967e44767c8f3fa260.tar.bz2
[gdb/symtab] Make per_cu->set_lang more strict
We have in per_cu->set_lang this comment: ... void set_lang (enum language lang) { /* We'd like to be more strict here, similar to what is done in set_unit_type, but currently a partial unit can go from unknown to minimal to ada to c. */ ... Fix this by not setting m_lang for partial units. This requires us to move the m_unit_type initialization to ensure that m_unit_type is initialized before per_cu->m_lang. Tested on x86_64-linux, with native and target board cc-with-dwz-m.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-send-packet.py')
0 files changed, 0 insertions, 0 deletions