mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix the "switch" command so that one can switch between threads from
the debugger.
This commit is contained in:
parent
f0de21bf7d
commit
add5d1b8a9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17237
23
lang/m3gdb/files/patch-ac
Normal file
23
lang/m3gdb/files/patch-ac
Normal file
@ -0,0 +1,23 @@
|
||||
--- m3-lang.c.orig Sat Feb 6 13:14:26 1999
|
||||
+++ m3-lang.c Sun Mar 14 11:13:56 1999
|
||||
@@ -546,6 +546,20 @@
|
||||
};
|
||||
#endif
|
||||
|
||||
+#if defined(__FreeBSD__) && defined(__i386__)
|
||||
+#define HAVE_REGISTER_MAP
|
||||
+#define DK 6 /* "Don't know" */
|
||||
+static int regno_to_jmpbuf[24] = {
|
||||
+ DK, DK, DK, 1, /* eax, ecx, edx, ebx */
|
||||
+ 2, 3, 4, 5, /* esp, ebp, esi, edi */
|
||||
+ 0, DK, DK, DK, /* eip, eflags, cs, ss */
|
||||
+ DK, DK, DK, DK, /* ds, es, fs, gs */
|
||||
+ DK, DK, DK, DK, /* st0, st1, st2, st3 */
|
||||
+ DK, DK, DK, DK /* st4, st5, st6, st7 */
|
||||
+};
|
||||
+#undef DK
|
||||
+#endif
|
||||
+
|
||||
/*---------------------------------------------------- thread enumeration ---*/
|
||||
|
||||
typedef struct {
|
17
lang/m3gdb/files/patch-ad
Normal file
17
lang/m3gdb/files/patch-ad
Normal file
@ -0,0 +1,17 @@
|
||||
--- m3gdb.1.orig Wed Feb 17 09:38:59 1999
|
||||
+++ m3gdb.1 Mon Mar 15 10:35:52 1999
|
||||
@@ -156,8 +156,12 @@
|
||||
\ \ \ \(bu
|
||||
You can use the
|
||||
.B threads
|
||||
-command to list all currently existing threads. This seems to be
|
||||
-all the thread support that works for the moment, though.
|
||||
+command to list all currently existing threads. And with
|
||||
+.B switch
|
||||
+.I n
|
||||
+you can switch to the stack of a different thread. Be sure to
|
||||
+switch back to the original thread before resuming execution.
|
||||
+Otherwise, the program is likely to crash.
|
||||
|
||||
.TP
|
||||
\ \ \ \(bu
|
Loading…
Reference in New Issue
Block a user