diff options
author | jdp <jdp@FreeBSD.org> | 1999-03-16 03:00:39 +0800 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-03-16 03:00:39 +0800 |
commit | d85ae783e30b71c3192e6c8755d93215865f53c0 (patch) | |
tree | 2b64190d5f14c937fdb212d56b49d04a86c9436c /lang | |
parent | 7667e1d5e923c20a2442470ff68656c178dbece1 (diff) | |
download | freebsd-ports-graphics-d85ae783e30b71c3192e6c8755d93215865f53c0.tar.gz freebsd-ports-graphics-d85ae783e30b71c3192e6c8755d93215865f53c0.tar.zst freebsd-ports-graphics-d85ae783e30b71c3192e6c8755d93215865f53c0.zip |
Fix the "switch" command so that one can switch between threads from
the debugger.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/m3gdb/files/patch-ac | 23 | ||||
-rw-r--r-- | lang/m3gdb/files/patch-ad | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/lang/m3gdb/files/patch-ac b/lang/m3gdb/files/patch-ac new file mode 100644 index 00000000000..80fbe8ab830 --- /dev/null +++ b/lang/m3gdb/files/patch-ac @@ -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 { diff --git a/lang/m3gdb/files/patch-ad b/lang/m3gdb/files/patch-ad new file mode 100644 index 00000000000..3b37aa4e5dc --- /dev/null +++ b/lang/m3gdb/files/patch-ad @@ -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 |