]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: Always set *prefix to "" when not used in register_info hook.
authorMark Wielaard <mjw@redhat.com>
Wed, 28 Aug 2013 13:57:27 +0000 (15:57 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 2 Sep 2013 20:05:48 +0000 (22:05 +0200)
commit20f4c123ba93a56798c0819e33f527611fc0ce47
tree043bb4ea74141ad00e06ed67cf7b25ea69de4a8c
parente0b4385b2524e699b8f107ef59eab301a9f79400
backends: Always set *prefix to "" when not used in register_info hook.

For ia64 and tilegx *prefix was already set to the empty string, but
arm, ppc and sh used NULL to indicate no prefix preceded the register
name in the canonical assembler syntax. Consistently use the empty string
in all backends since dwfl_module_register_names says: 'a prefix used in
assembler syntax (such as "%" or "$", may be "")'. So users had to handle
the empty string already, and might forget to handle the NULL case
(like our own addrcfi testcase).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
backends/ChangeLog
backends/arm_regs.c
backends/ppc_regs.c
backends/sh_regs.c