diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-05 14:42:44 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-05 14:58:15 +1030 |
commit | 378fd436405b3051df34ac995b2e03fe1f3d1907 (patch) | |
tree | b0afdf8a20ce1c11686cb0abe281e4193c10265a /ld | |
parent | c72a8174b3b45aab8fdda2b0b5232f00fb8287c4 (diff) | |
download | gdb-378fd436405b3051df34ac995b2e03fe1f3d1907.zip gdb-378fd436405b3051df34ac995b2e03fe1f3d1907.tar.gz gdb-378fd436405b3051df34ac995b2e03fe1f3d1907.tar.bz2 |
PR25249, Memory leak in microblaze-dis.c
PR 25249
* microblaze-dis.c (NUM_STRBUFS, STRBUF_SIZE): Define.
(struct string_buf): New.
(strbuf): New function.
(get_field): Use strbuf rather than strdup of local temp.
(get_field_imm, get_field_imm5, get_field_imm5_mbar): Likewise.
(get_field_rfsl, get_field_imm15): Likewise.
(get_field_rd, get_field_r1, get_field_r2): Update macros.
(get_field_special): Likewise. Don't strcpy spr. Formatting.
(print_insn_microblaze): Formatting. Init and pass string_buf to
get_field functions.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions