mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
More unused parameters fixed.
This commit is contained in:
parent
83f3e2b1be
commit
c39c76a284
@ -153,6 +153,7 @@ static int is_signal_frame(struct dwarf_cursor *c)
|
|||||||
|
|
||||||
int dwarf_arch_map_reg(struct dwarf_addr_space *as, unsigned int reg)
|
int dwarf_arch_map_reg(struct dwarf_addr_space *as, unsigned int reg)
|
||||||
{
|
{
|
||||||
|
(void)(as);
|
||||||
if (reg >= ARRAY_SIZE(dwarf_to_regnum_map))
|
if (reg >= ARRAY_SIZE(dwarf_to_regnum_map))
|
||||||
return -DWARF_EBADREG;
|
return -DWARF_EBADREG;
|
||||||
|
|
||||||
@ -182,6 +183,8 @@ static inline int access_mem(struct dwarf_addr_space *as, arch_addr_t addr, void
|
|||||||
if (addr >= ARCH_ADDR_T(libref->mmap_addr + libref->mmap_size))
|
if (addr >= ARCH_ADDR_T(libref->mmap_addr + libref->mmap_size))
|
||||||
fatal("invalid access mem: addr %#lx >= %p", addr, libref->mmap_addr + libref->mmap_size);
|
fatal("invalid access mem: addr %#lx >= %p", addr, libref->mmap_addr + libref->mmap_size);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)(as);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memcpy(valp, (void *)addr, size);
|
memcpy(valp, (void *)addr, size);
|
||||||
@ -647,6 +650,8 @@ int dwarf_arch_step(struct dwarf_addr_space *as)
|
|||||||
|
|
||||||
int dwarf_arch_check_call(struct dwarf_addr_space *as, arch_addr_t ip)
|
int dwarf_arch_check_call(struct dwarf_addr_space *as, arch_addr_t ip)
|
||||||
{
|
{
|
||||||
|
(void)(as);
|
||||||
|
(void)(ip);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user