Imported Debian patch 7.4.1-2
Hector Oron authored 11 years ago
Hector Oron committed 11 years ago
0 | gdb (7.4.1-1.1+m68k.1) unreleased; urgency=low | |
1 | ||
2 | * Add m68k-thread-debugging.patch from upstream. | |
3 | ||
4 | -- Thorsten Glaser <tg@mirbsd.de> Mon, 02 Jul 2012 18:44:12 +0000 | |
0 | gdb (7.4.1-2) unstable; urgency=low | |
1 | ||
2 | * Fix empty doc directory when upgrading from squeeze to wheezy. | |
3 | (Closes: #684375) | |
4 | * d/p/m68k-thread-debugging.patch: | |
5 | - Add thread debugging function for m68k. Taken from upstream. | |
6 | Thanks Thorsten Glaser. | |
7 | ||
8 | -- Hector Oron <zumbi@debian.org> Wed, 19 Sep 2012 21:16:17 +0000 | |
5 | 9 | |
6 | 10 | gdb (7.4.1-1.1) unstable; urgency=low |
7 | 11 |
0 | #!/bin/sh | |
1 | set -e | |
2 | ||
3 | # Replace documentation directory with symlink | |
4 | if [ -d /usr/share/doc/gdb-multiarch ] && [ ! -L /usr/share/doc/gdb-multiarch ]; then | |
5 | if rmdir /usr/share/doc/gdb-multiarch 2>/dev/null; then | |
6 | ln -sf gdb /usr/share/doc/gdb-multiarch | |
7 | fi | |
8 | fi | |
9 | ||
10 | #DEBHELPER# | |
11 | ||
12 | exit 0 |
0 | #!/bin/sh | |
1 | set -e | |
2 | ||
3 | # Replace documentation directory with symlink | |
4 | if [ -d /usr/share/doc/gdb-source ] && [ ! -L /usr/share/doc/gdb-source ]; then | |
5 | if rmdir /usr/share/doc/gdb-source 2>/dev/null; then | |
6 | ln -sf gdb /usr/share/doc/gdb-source | |
7 | fi | |
8 | fi | |
9 | ||
10 | #DEBHELPER# | |
11 | ||
12 | exit 0 |
0 | #!/bin/sh | |
1 | set -e | |
2 | ||
3 | # Replace documentation directory with symlink | |
4 | if [ -d /usr/share/doc/gdb64 ] && [ ! -L /usr/share/doc/gdb64 ]; then | |
5 | if rmdir /usr/share/doc/gdb64 2>/dev/null; then | |
6 | ln -sf gdb /usr/share/doc/gdb64 | |
7 | fi | |
8 | fi | |
9 | ||
10 | #DEBHELPER# | |
11 | ||
12 | exit 0 |
0 | #!/bin/sh | |
1 | set -e | |
2 | ||
3 | # Replace documentation directory with symlink | |
4 | if [ -d /usr/share/doc/libgdb-dev ] && [ ! -L /usr/share/doc/libgdb-dev ]; then | |
5 | if rmdir /usr/share/doc/libgdb-dev 2>/dev/null; then | |
6 | ln -sf gdb /usr/share/doc/libgdb-dev | |
7 | fi | |
8 | fi | |
9 | ||
10 | #DEBHELPER# | |
11 | ||
12 | exit 0 |
0 | 0 | 2012-03-08 Andreas Schwab <schwab@linux-m68k.org> |
1 | 1 | |
2 | * m68klinux-nat.c: Include "gdb_proc_service.h". | |
3 | (PTRACE_GET_THREAD_AREA): Define. | |
4 | (ps_get_thread_area): New function. | |
2 | * m68klinux-nat.c: Include "gdb_proc_service.h". | |
3 | (PTRACE_GET_THREAD_AREA): Define. | |
4 | (ps_get_thread_area): New function. | |
5 | 5 | |
6 | --- a/gdb/m68klinux-nat.c | |
7 | +++ b/gdb/m68klinux-nat.c | |
8 | @@ -51,6 +51,13 @@ | |
6 | Index: gdb-7.4.1/gdb/m68klinux-nat.c | |
7 | =================================================================== | |
8 | --- gdb-7.4.1.orig/gdb/m68klinux-nat.c 2012-01-06 04:43:19.000000000 +0000 | |
9 | +++ gdb-7.4.1/gdb/m68klinux-nat.c 2012-09-19 22:19:06.000000000 +0000 | |
10 | @@ -51,7 +51,14 @@ | |
9 | 11 | |
10 | 12 | /* Prototypes for supply_gregset etc. */ |
11 | 13 | #include "gregset.h" |
14 | - | |
12 | 15 | + |
13 | 16 | +/* Defines ps_err_e, struct ps_prochandle. */ |
14 | 17 | +#include "gdb_proc_service.h" |
16 | 19 | +#ifndef PTRACE_GET_THREAD_AREA |
17 | 20 | +#define PTRACE_GET_THREAD_AREA 25 |
18 | 21 | +#endif |
19 | ||
22 | + | |
20 | 23 | /* This table must line up with gdbarch_register_name in "m68k-tdep.c". */ |
21 | 24 | static const int regmap[] = |
22 | @@ -556,6 +563,24 @@ fetch_core_registers (struct regcache *r | |
25 | { | |
26 | @@ -556,6 +563,24 @@ | |
23 | 27 | } |
24 | 28 | |
25 | 29 | |
27 | 31 | + |
28 | 32 | +ps_err_e |
29 | 33 | +ps_get_thread_area (const struct ps_prochandle *ph, |
30 | + lwpid_t lwpid, int idx, void **base) | |
34 | + lwpid_t lwpid, int idx, void **base) | |
31 | 35 | +{ |
32 | 36 | + if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) < 0) |
33 | 37 | + return PS_ERR; |