+2020-01-13 Simon Marchi <simon.marchi@efficios.com>
+
+ * gdbcore.h (struct core_fns) <core_read_registers>: Change
+ core_reg_sect type to gdb_byte *.
+ * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
+ * cris-tdep.c (fetch_core_registers): Likewise.
+ * corelow.c (core_target::get_core_register_section): Change
+ type of `contents` to gdb::byte_vector.
+
2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
* tui/tui-wingeneral.c (box_win): Position the title in the center
static void
fetch_elfcore_registers (struct regcache *regcache,
- char *core_reg_sect, unsigned core_reg_size,
+ gdb_byte *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR ignore)
{
struct reg gregset;
section_name.c_str ());
}
- std::vector<char> contents (size);
+ gdb::byte_vector contents (size);
if (!bfd_get_section_contents (core_bfd, section, contents.data (),
(file_ptr) 0, size))
{
static void
fetch_core_registers (struct regcache *regcache,
- char *core_reg_sect, unsigned core_reg_size,
+ gdb_byte *core_reg_sect, unsigned core_reg_size,
int which, CORE_ADDR reg_addr)
{
cris_elf_gregset_t gregset;
address X is at location core_reg_sect+x+reg_addr. */
void (*core_read_registers) (struct regcache *regcache,
- char *core_reg_sect,
+ gdb_byte *core_reg_sect,
unsigned core_reg_size,
int which, CORE_ADDR reg_addr);