* gdbarch.sh: Added new gdbarch struct
core_regset_sections. * gdbarch.c: Refreshed. * gdbarch.h: Refreshed. * regset.h (core_regset_section): Declared. * linux-nat.c (linux_nat_do_thread_registers): Added support for the new gdbarch struct core_regset_sections. * utils.c (host_address_to_string): New function. * defs.h (host_address_to_string): New prototype. * i386-linux-tdep.c (i386_regset_rections): New register sections list for i386. (i386_linux_init_abi): Initialized new gdbarch struct core_regset_sections. * Makefile.in: Updated to reflect dependency changes. * ppc-linux-tdep.c (ppc_regset_sections): Register sections list for ppc. (ppc_linux_init_abi): Initialized new gdbarch struct core_regset_sections
This commit is contained in:
parent
bb864ac122
commit
17ea7499a9
11 changed files with 145 additions and 30 deletions
|
@ -2869,6 +2869,14 @@ string_to_core_addr (const char *my_string)
|
|||
return addr;
|
||||
}
|
||||
|
||||
const char *
|
||||
host_address_to_string (const void *addr)
|
||||
{
|
||||
char *str = get_cell ();
|
||||
sprintf (str, "0x%lx", (unsigned long) addr);
|
||||
return str;
|
||||
}
|
||||
|
||||
char *
|
||||
gdb_realpath (const char *filename)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue