aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-valprint.c
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2025-03-13 10:31:36 +0800
committerNelson Chu <nelson@rivosinc.com>2025-03-18 12:16:27 +0800
commite4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c (patch)
treed9cbd3444c027067b7439d8e10b5a1453f032791 /gdb/go-valprint.c
parent433ccc440b51673ed3fce85a8dedca24f16ccab2 (diff)
downloadbinutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.zip
binutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.tar.gz
binutils-e4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c.tar.bz2
RISC-V: Avoid parsing arch string repeatedly for dis-assembler
Since we now always generate $x+isa for now, these would increase the dis-assemble time by parsing the same architecture string repeatedly. We already have `arch_str' field into `subset_list' to record the current architecture stirng, but it's only useful for assembler, since dis-assembler and linker don't need it before. Now for dis-assembler, we just need to update the `arch_str' after parsing the architecture stirng, and then avoid parsing repeatedly if the strings are the same.
Diffstat (limited to 'gdb/go-valprint.c')
0 files changed, 0 insertions, 0 deletions