- Move changes that have been adopted upstream after 7.9 into extra patches named after the commit to GDB's master branch. This includes previous patches such as the signal trampoline detection fixes and XSAVE support as well as well as new fixes such as fixing 'gcore' to not require procfs. - The tui-io.c patch previously needed with new readline has been accepted upstream. - The remaining patches have been updated to apply cleanly. - The threads target has been fixed to actually pass register requests for LWP-backed threads down to the ptrace backends without detouring via libthread_db which actually fixes AVX with threads. PR: 199451 Differential Revision: https://reviews.freebsd.org/D2293 Approved by: bapt, luca.pizzamiglio@gmail.com (maintainer)
21 lines
844 B
Text
21 lines
844 B
Text
diff --git gdb/fbsd-tdep.c gdb/fbsd-tdep.c
|
|
index 5d17f03..9609cd8 100644
|
|
--- gdb/fbsd-tdep.c
|
|
+++ gdb/fbsd-tdep.c
|
|
@@ -89,7 +89,7 @@ fbsd_collect_regset_section_cb (const char *sect_name, int size,
|
|
static char *
|
|
fbsd_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
|
|
{
|
|
- const struct regcache *regcache = get_current_regcache ();
|
|
+ struct regcache *regcache = get_current_regcache ();
|
|
char *note_data;
|
|
Elf_Internal_Ehdr *i_ehdrp;
|
|
struct fbsd_collect_regset_section_cb_data data;
|
|
@@ -104,6 +104,7 @@ fbsd_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size)
|
|
data.obfd = obfd;
|
|
data.note_data = NULL;
|
|
data.note_size = note_size;
|
|
+ target_fetch_registers (regcache, -1);
|
|
gdbarch_iterate_over_regset_sections (gdbarch,
|
|
fbsd_collect_regset_section_cb,
|
|
&data, regcache);
|