ports/devel/gdb/files/patch-gdb_i386-fbsd-nat.c
John Baldwin 1c25ded0af devel/gdb: Update to 12.1.
One notable feature included in 12.1 is async target support
permitting the use of commands like continue&.

In addition, this commit backports various post-12 commits to add
support for hardware breakpoints/watchpoints on aarch64, support for
resolving TLS variables from core dumps on amd64 and i386 via the
recently added NT_X86_SEGBASES core dump note, and support for
resolving TLS variables on arm and aarch64 via the recently added
NT_ARM_TLS register set.

Reviewed by:	pizzamig
Differential Revision:	https://reviews.freebsd.org/D35111
2022-05-10 10:41:13 -07:00

27 lines
959 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- gdb/i386-fbsd-nat.c.orig 2022-05-02 12:03:48.925048000 -0700
+++ gdb/i386-fbsd-nat.c 2022-05-02 12:04:43.474983000 -0700
@@ -41,8 +41,6 @@ class i386_fbsd_nat_target final : public x86_fbsd_nat
void store_registers (struct regcache *, int) override;
const struct target_desc *read_description () override;
-
- void resume (ptid_t, int, enum gdb_signal) override;
};
static i386_fbsd_nat_target the_i386_fbsd_nat_target;
@@ -227,6 +225,7 @@ i386_fbsd_nat_target::store_registers (struct regcache
perror_with_name (_("Couldn't write floating point status"));
}
+#if 0
/* Resume execution of the inferior process. If STEP is nonzero,
single-step it. If SIGNAL is nonzero, give it that signal. */
@@ -273,6 +272,7 @@ i386_fbsd_nat_target::resume (ptid_t ptid, int step, e
gdb_signal_to_host (signal)) == -1)
perror_with_name (("ptrace"));
}
+#endif
/* Support for debugging kernel virtual memory images. */