mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 08:37:38 +01:00
Constify `dwarf_to_unw_regnum_map'
This commit is contained in:
parent
a9b5b10f23
commit
ee8df26288
5 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
#ifndef dwarf_to_unw_regnum
|
||||
# define dwarf_to_unw_regnum_map UNW_OBJ (dwarf_to_unw_regnum_map)
|
||||
extern uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
|
||||
extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
|
||||
/* REG is evaluated multiple times; it better be side-effects free! */
|
||||
# define dwarf_to_unw_regnum(reg) \
|
||||
(((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)
|
||||
|
|
|
@ -33,7 +33,7 @@ HIDDEN int tdep_init_done;
|
|||
|
||||
/* The API register numbers are exactly the same as the .eh_frame
|
||||
registers, for now at least. */
|
||||
HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
|
||||
HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
|
||||
{
|
||||
[UNW_PPC32_R0]=UNW_PPC32_R0,
|
||||
[UNW_PPC32_R1]=UNW_PPC32_R1,
|
||||
|
|
|
@ -33,7 +33,7 @@ HIDDEN int tdep_init_done;
|
|||
|
||||
/* The API register numbers are exactly the same as the .eh_frame
|
||||
registers, for now at least. */
|
||||
HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
|
||||
HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH] =
|
||||
{
|
||||
[UNW_PPC64_R0]=UNW_PPC64_R0,
|
||||
[UNW_PPC64_R1]=UNW_PPC64_R1,
|
||||
|
|
|
@ -31,7 +31,7 @@ HIDDEN int tdep_init_done;
|
|||
|
||||
/* See comments for svr4_dbx_register_map[] in gcc/config/i386/i386.c. */
|
||||
|
||||
HIDDEN uint8_t dwarf_to_unw_regnum_map[19] =
|
||||
HIDDEN const uint8_t dwarf_to_unw_regnum_map[19] =
|
||||
{
|
||||
UNW_X86_EAX, UNW_X86_ECX, UNW_X86_EDX, UNW_X86_EBX,
|
||||
UNW_X86_ESP, UNW_X86_EBP, UNW_X86_ESI, UNW_X86_EDI,
|
||||
|
|
|
@ -34,7 +34,7 @@ HIDDEN int tdep_init_done;
|
|||
|
||||
/* See comments for svr4_dbx_register_map[] in gcc/config/i386/i386.c. */
|
||||
|
||||
HIDDEN uint8_t dwarf_to_unw_regnum_map[DWARF_NUM_PRESERVED_REGS] =
|
||||
HIDDEN const uint8_t dwarf_to_unw_regnum_map[DWARF_NUM_PRESERVED_REGS] =
|
||||
{
|
||||
UNW_X86_64_RAX,
|
||||
UNW_X86_64_RDX,
|
||||
|
|
Loading…
Reference in a new issue