Imported Debian patch 7.0.1-2
Daniel Jacobowitz authored 14 years ago
Hector Oron committed 12 years ago
0 | gdb (7.0.1-2) unstable; urgency=low | |
1 | ||
2 | * Add Replaces to the new gdbserver package (Closes: #567925, #568018). | |
3 | * Add patch to fix FreeBSD build (Closes: #561924). | |
4 | ||
5 | -- Daniel Jacobowitz <dan@debian.org> Tue, 02 Feb 2010 14:59:41 -0500 | |
6 | ||
0 | 7 | gdb (7.0.1-1) unstable; urgency=low |
1 | 8 | |
2 | 9 | * New upstream release. |
46 | 46 | Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 |
47 | 47 | Section: devel |
48 | 48 | Depends: ${shlibs:Depends}, ${misc:Depends} |
49 | Replaces: gdb (<< 7.0.1-1) | |
49 | 50 | Description: The GNU Debugger (remote server) |
50 | 51 | GDB is a source-level debugger, capable of breaking programs at |
51 | 52 | any specific line, displaying variable values, and determining |
46 | 46 | Architecture: amd64 armel i386 ia64 mips mipsel powerpc s390 |
47 | 47 | Section: devel |
48 | 48 | Depends: ${shlibs:Depends}, ${misc:Depends} |
49 | Replaces: gdb (<< 7.0.1-1) | |
49 | 50 | Description: The GNU Debugger (remote server) |
50 | 51 | GDB is a source-level debugger, capable of breaking programs at |
51 | 52 | any specific line, displaying variable values, and determining |
0 | From Petr Salinger in Bug#561924: | |
1 | ||
2 | Hi, | |
3 | ||
4 | the current version fails to build on GNU/kFreeBSD with 8.x kernel | |
5 | headers. | |
6 | ||
7 | The FreeBSD 8.0 kernel does not have segment registers in pcb anymore. | |
8 | To solve current FTBFS please just use patch bellow. | |
9 | ||
10 | Sorry for the inconvenience. | |
11 | ||
12 | ||
13 | --- | |
14 | gdb/amd64fbsd-nat.c | 2 +- | |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
16 | ||
17 | Index: gdb-7.0.1/gdb/amd64fbsd-nat.c | |
18 | =================================================================== | |
19 | --- gdb-7.0.1.orig/gdb/amd64fbsd-nat.c 2010-02-02 15:35:25.000000000 -0500 | |
20 | +++ gdb-7.0.1/gdb/amd64fbsd-nat.c 2010-02-02 15:38:02.000000000 -0500 | |
21 | @@ -124,7 +124,7 @@ amd64fbsd_supply_pcb (struct regcache *r | |
22 | regcache_raw_supply (regcache, 13, &pcb->pcb_r13); | |
23 | regcache_raw_supply (regcache, 14, &pcb->pcb_r14); | |
24 | regcache_raw_supply (regcache, 15, &pcb->pcb_r15); | |
25 | -#if (__FreeBSD_version < 800075) | |
26 | +#if (__FreeBSD_version < 800000) && (__FreeBSD_kernel_version < 800000) | |
27 | regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds); | |
28 | regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es); | |
29 | regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs); |