mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 15:47:37 +01:00
d83846f120
Change _UPTi_find_unwind_table to also look for the ARM specific unwind information. Adjust the ARM unwind code to read memory using the accessor routines. Signed-off-by: Ken Werner <ken.werner@linaro.org>
55 lines
1.9 KiB
C
55 lines
1.9 KiB
C
/* libunwind - a platform-independent unwind library
|
|
Copyright 2011 Linaro Limited
|
|
|
|
This file is part of libunwind.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
a copy of this software and associated documentation files (the
|
|
"Software"), to deal in the Software without restriction, including
|
|
without limitation the rights to use, copy, modify, merge, publish,
|
|
distribute, sublicense, and/or sell copies of the Software, and to
|
|
permit persons to whom the Software is furnished to do so, subject to
|
|
the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be
|
|
included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
#ifndef ARM_EX_TABLES_H
|
|
#define ARM_EX_TABLES_H
|
|
|
|
typedef enum arm_exbuf_cmd {
|
|
ARM_EXIDX_CMD_FINISH,
|
|
ARM_EXIDX_CMD_DATA_PUSH,
|
|
ARM_EXIDX_CMD_DATA_POP,
|
|
ARM_EXIDX_CMD_REG_POP,
|
|
ARM_EXIDX_CMD_REG_TO_SP,
|
|
ARM_EXIDX_CMD_VFP_POP,
|
|
ARM_EXIDX_CMD_WREG_POP,
|
|
ARM_EXIDX_CMD_WCGR_POP,
|
|
ARM_EXIDX_CMD_RESERVED,
|
|
ARM_EXIDX_CMD_REFUSED,
|
|
} arm_exbuf_cmd_t;
|
|
|
|
struct arm_exbuf_data
|
|
{
|
|
arm_exbuf_cmd_t cmd;
|
|
uint32_t data;
|
|
};
|
|
|
|
#define arm_exidx_extract UNW_OBJ(arm_exidx_extract)
|
|
#define arm_exidx_decode UNW_OBJ(arm_exidx_decode)
|
|
#define arm_exidx_apply_cmd UNW_OBJ(arm_exidx_apply_cmd)
|
|
|
|
int arm_exidx_extract (struct dwarf_cursor *c, uint8_t *buf);
|
|
int arm_exidx_decode (const uint8_t *buf, uint8_t len, struct dwarf_cursor *c);
|
|
int arm_exidx_apply_cmd (struct arm_exbuf_data *edata, struct dwarf_cursor *c);
|
|
|
|
#endif // ARM_EX_TABLES_H
|