diff options
Diffstat (limited to 'packages/gdb/6.8a')
-rw-r--r-- | packages/gdb/6.8a/0000-dwarf-stack-overflow.patch | 55 | ||||
-rw-r--r-- | packages/gdb/6.8a/0001-security-errata-20050610.patch | 208 | ||||
-rw-r--r-- | packages/gdb/6.8a/0002-tdep-opcode-include-workaround.patch | 36 | ||||
-rw-r--r-- | packages/gdb/6.8a/0003-reg-no-longer-active.patch | 33 | ||||
-rw-r--r-- | packages/gdb/6.8a/0004-sim-ppc-have-config-h.patch | 186 | ||||
-rw-r--r-- | packages/gdb/6.8a/0005-handle-stpcpy-define.patch | 15 | ||||
-rw-r--r-- | packages/gdb/6.8a/chksum | 8 | ||||
-rw-r--r-- | packages/gdb/6.8a/version.desc | 3 |
8 files changed, 0 insertions, 544 deletions
diff --git a/packages/gdb/6.8a/0000-dwarf-stack-overflow.patch b/packages/gdb/6.8a/0000-dwarf-stack-overflow.patch deleted file mode 100644 index b409c5b..0000000 --- a/packages/gdb/6.8a/0000-dwarf-stack-overflow.patch +++ /dev/null @@ -1,55 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.8/80_all_gdb-6.5-dwarf-stack-overflow.patch --= BEGIN original header =- -http://bugs.gentoo.org/144833 - -for gdb/ChangeLog: -2006-08-22 Will Drewry <wad@google.com> - Tavis Ormandy <taviso@google.com> - - * dwarf2read.c (decode_locdesc): Enforce location description stack - boundaries. - * dwarfread.c (locval): Likewise. - --= END original header =- ---- - gdb/dwarf2read.c | 15 ++++++++++++--- - 1 file changed, 12 insertions(+), 3 deletions(-) - ---- a/gdb/dwarf2read.c -+++ b/gdb/dwarf2read.c -@@ -9124,8 +9124,7 @@ - callers will only want a very basic result and this can become a - complaint. - -- Note that stack[0] is unused except as a default error return. -- Note that stack overflow is not yet handled. */ -+ Note that stack[0] is unused except as a default error return. */ - - static CORE_ADDR - decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu) -@@ -9142,7 +9141,7 @@ - - i = 0; - stacki = 0; -- stack[stacki] = 0; -+ stack[++stacki] = 0; - - while (i < size) - { -@@ -9324,6 +9323,16 @@ - dwarf_stack_op_name (op)); - return (stack[stacki]); - } -+ /* Enforce maximum stack depth of size-1 to avoid ++stacki writing -+ outside of the allocated space. Also enforce minimum > 0. -+ -- wad@google.com 14 Aug 2006 */ -+ if (stacki >= sizeof (stack) / sizeof (*stack) - 1) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too deep: %d"), -+ stacki); -+ if (stacki <= 0) -+ internal_error (__FILE__, __LINE__, -+ _("location description stack too shallow")); - } - return (stack[stacki]); - } diff --git a/packages/gdb/6.8a/0001-security-errata-20050610.patch b/packages/gdb/6.8a/0001-security-errata-20050610.patch deleted file mode 100644 index eab3e09..0000000 --- a/packages/gdb/6.8a/0001-security-errata-20050610.patch +++ /dev/null @@ -1,208 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.8/35_all_gdb-6.3-security-errata-20050610.patch --= BEGIN original header =- -2005-06-09 Jeff Johnston <jjohnstn@redhat.com> - - * gdb.base/gdbinit.exp: New testcase. - * gdb.base/gdbinit.sample: Sample .gdbinit for gdbinit.exp. - -2005-06-08 Daniel Jacobowitz <dan@codesourcery.com> - Jeff Johnston <jjohnstn@redhat.com> - - * Makefile.in (cli-cmds.o): Update. - * configure.in: Add check for getuid. - * configure: Regenerated. - * config.in: Ditto. - * main.c (captured_main): Pass -1 to source_command when loading - gdbinit files. - * cli/cli-cmds.c: Include "gdb_stat.h" and <fcntl.h>. - (source_command): Update documentation. Check permissions if - FROM_TTY is -1. - --= END original header =- ---- - gdb/Makefile.in | 2 - gdb/cli/cli-cmds.c | 22 +++++++ - gdb/main.c | 4 - - gdb/testsuite/gdb.base/gdbinit.exp | 98 ++++++++++++++++++++++++++++++++++ - gdb/testsuite/gdb.base/gdbinit.sample | 1 - 5 files changed, 123 insertions(+), 4 deletions(-) - ---- a/gdb/Makefile.in -+++ b/gdb/Makefile.in -@@ -3004,7 +3004,7 @@ - $(expression_h) $(frame_h) $(value_h) $(language_h) $(filenames_h) \ - $(objfiles_h) $(source_h) $(disasm_h) $(ui_out_h) $(top_h) \ - $(cli_decode_h) $(cli_script_h) $(cli_setshow_h) $(cli_cmds_h) \ -- $(tui_h) -+ $(tui_h) $(gdb_stat_h) - $(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c - cli-decode.o: $(srcdir)/cli/cli-decode.c $(defs_h) $(symtab_h) \ - $(gdb_regex_h) $(gdb_string_h) $(completer_h) $(ui_out_h) \ ---- a/gdb/cli/cli-cmds.c -+++ b/gdb/cli/cli-cmds.c -@@ -36,6 +36,7 @@ - #include "objfiles.h" - #include "source.h" - #include "disasm.h" -+#include "gdb_stat.h" - - #include "ui-out.h" - -@@ -459,12 +460,31 @@ - - if (fd == -1) - { -- if (from_tty) -+ if (from_tty > 0) - perror_with_name (file); - else - return; - } - -+#ifdef HAVE_GETUID -+ if (from_tty == -1) -+ { -+ struct stat statbuf; -+ if (fstat (fd, &statbuf) < 0) -+ { -+ perror_with_name (file); -+ close (fd); -+ return; -+ } -+ if (statbuf.st_uid != getuid () || (statbuf.st_mode & S_IWOTH)) -+ { -+ warning (_("not using untrusted file \"%s\""), file); -+ close (fd); -+ return; -+ } -+ } -+#endif -+ - stream = fdopen (fd, FOPEN_RT); - script_from_file (stream, file); - ---- a/gdb/main.c -+++ b/gdb/main.c -@@ -690,7 +690,7 @@ - - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, homeinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, homeinit, -1, RETURN_MASK_ALL); - } - - /* Do stats; no need to do them elsewhere since we'll only -@@ -778,7 +778,7 @@ - || memcmp ((char *) &homebuf, (char *) &cwdbuf, sizeof (struct stat))) - if (!inhibit_gdbinit) - { -- catch_command_errors (source_script, gdbinit, 0, RETURN_MASK_ALL); -+ catch_command_errors (source_script, gdbinit, -1, RETURN_MASK_ALL); - } - - for (i = 0; i < ncmd; i++) ---- /dev/null -+++ b/gdb/testsuite/gdb.base/gdbinit.exp -@@ -0,0 +1,98 @@ -+# Copyright 2005 -+# Free Software Foundation, Inc. -+ -+# This program is free software; you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 2 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program; if not, write to the Free Software -+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ -+# Please email any bugs, comments, and/or additions to this file to: -+# bug-gdb@prep.ai.mit.edu -+ -+# This file was written by Jeff Johnston <jjohnstn@redhat.com>. -+ -+if $tracelevel then { -+ strace $tracelevel -+} -+ -+set prms_id 0 -+set bug_id 0 -+ -+# are we on a target board -+if [is_remote target] { -+ return -+} -+ -+ -+global verbose -+global GDB -+global GDBFLAGS -+global gdb_prompt -+global timeout -+global gdb_spawn_id; -+ -+gdb_stop_suppressing_tests; -+ -+verbose "Spawning $GDB -nw" -+ -+if [info exists gdb_spawn_id] { -+ return 0; -+} -+ -+if ![is_remote host] { -+ if { [which $GDB] == 0 } then { -+ perror "$GDB does not exist." -+ exit 1 -+ } -+} -+ -+set env(HOME) [pwd] -+remote_exec build "rm .gdbinit" -+remote_exec build "cp ${srcdir}/${subdir}/gdbinit.sample .gdbinit" -+remote_exec build "chmod 646 .gdbinit" -+ -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ pass "untrusted .gdbinit caught." -+ } -+ -re "$gdb_prompt $" { -+ fail "untrusted .gdbinit caught." -+ } -+ timeout { -+ fail "(timeout) untrusted .gdbinit caught." -+ } -+} -+ -+remote_exec build "chmod 644 .gdbinit" -+set res [remote_spawn host "$GDB -nw [host_info gdb_opts]"]; -+if { $res < 0 || $res == "" } { -+ perror "Spawning $GDB failed." -+ return 1; -+} -+gdb_expect 360 { -+ -re "warning: not using untrusted file.*\.gdbinit.*\[\r\n\]$gdb_prompt $" { -+ fail "trusted .gdbinit allowed." -+ } -+ -re "in gdbinit.*$gdb_prompt $" { -+ pass "trusted .gdbinit allowed." -+ } -+ timeout { -+ fail "(timeout) trusted .gdbinit allowed." -+ } -+} -+ -+remote_exec build "rm .gdbinit" ---- /dev/null -+++ b/gdb/testsuite/gdb.base/gdbinit.sample -@@ -0,0 +1 @@ -+echo "\nin gdbinit" diff --git a/packages/gdb/6.8a/0002-tdep-opcode-include-workaround.patch b/packages/gdb/6.8a/0002-tdep-opcode-include-workaround.patch deleted file mode 100644 index dcdcc1d..0000000 --- a/packages/gdb/6.8a/0002-tdep-opcode-include-workaround.patch +++ /dev/null @@ -1,36 +0,0 @@ -Original patch from gentoo: gentoo/src/patchsets/gdb/6.8/20_all_gdb-tdep-opcode-include-workaround.patch --= BEGIN original header =- -workaround build failure - -http://bugs.gentoo.org/216368 - --= END original header =- ---- - gdb/frv-tdep.c | 2 +- - gdb/mep-tdep.c | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) - ---- a/gdb/frv-tdep.c -+++ b/gdb/frv-tdep.c -@@ -32,7 +32,7 @@ - #include "gdb_assert.h" - #include "sim-regno.h" - #include "gdb/sim-frv.h" --#include "opcodes/frv-desc.h" /* for the H_SPR_... enums */ -+#include "../opcodes/frv-desc.h" /* for the H_SPR_... enums */ - #include "symtab.h" - #include "elf-bfd.h" - #include "elf/frv.h" ---- a/gdb/mep-tdep.c -+++ b/gdb/mep-tdep.c -@@ -53,8 +53,8 @@ - - /* Get the user's customized MeP coprocessor register names from - libopcodes. */ --#include "opcodes/mep-desc.h" --#include "opcodes/mep-opc.h" -+#include "../opcodes/mep-desc.h" -+#include "../opcodes/mep-opc.h" - - - /* The gdbarch_tdep structure. */ diff --git a/packages/gdb/6.8a/0003-reg-no-longer-active.patch b/packages/gdb/6.8a/0003-reg-no-longer-active.patch deleted file mode 100644 index 9bb48e8..0000000 --- a/packages/gdb/6.8a/0003-reg-no-longer-active.patch +++ /dev/null @@ -1,33 +0,0 @@ -Fix bug reported by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>: -See: http://sourceware.org/ml/crossgcc/2009-05/msg00055.html - https://bugzilla.redhat.com/show_bug.cgi?id=436037 - -Fix from: http://cvs.fedoraproject.org/viewvc/devel/gdb/gdb-6.8-bz436037-reg-no-longer-active.patch?revision=1.1 - ---- - gdb/valops.c | 12 ++++++++++-- - 1 file changed, 10 insertions(+), 2 deletions(-) - ---- a/gdb/valops.c -+++ b/gdb/valops.c -@@ -675,10 +675,18 @@ - struct frame_info *frame; - int value_reg; - -- /* Figure out which frame this is in currently. */ -- frame = frame_find_by_id (VALUE_FRAME_ID (toval)); - value_reg = VALUE_REGNUM (toval); - -+ /* Figure out which frame this is in currently. */ -+ frame = frame_find_by_id (VALUE_FRAME_ID (toval)); -+ /* "set $reg+=1" should work on programs with no debug info, -+ but frame_find_by_id returns NULL here (RH bug 436037). -+ Use current frame, it represents CPU state in this case. -+ If frame_find_by_id is changed to do it internally -+ (it is contemplated there), remove this. */ -+ if (!frame) -+ frame = get_current_frame (); -+ /* Probably never happens. */ - if (!frame) - error (_("Value being assigned to is no longer active.")); - diff --git a/packages/gdb/6.8a/0004-sim-ppc-have-config-h.patch b/packages/gdb/6.8a/0004-sim-ppc-have-config-h.patch deleted file mode 100644 index 4bba827..0000000 --- a/packages/gdb/6.8a/0004-sim-ppc-have-config-h.patch +++ /dev/null @@ -1,186 +0,0 @@ -Fix for canadian cross build of sim/ppc - -Orignal patch info see: http://sources.redhat.com/bugzilla/show_bug.cgi?id=9638 - ---- - sim/ppc/Makefile.in | 6 +++--- - sim/ppc/basics.h | 2 ++ - sim/ppc/debug.c | 2 ++ - sim/ppc/dgen.c | 2 ++ - sim/ppc/filter.c | 2 ++ - sim/ppc/filter_filename.c | 2 ++ - sim/ppc/igen.c | 2 ++ - sim/ppc/inline.c | 2 ++ - sim/ppc/lf.c | 2 ++ - sim/ppc/misc.c | 2 ++ - sim/ppc/misc.h | 2 ++ - sim/ppc/sim-endian.c | 2 ++ - sim/ppc/table.c | 2 ++ - 13 files changed, 27 insertions(+), 3 deletions(-) - ---- a/sim/ppc/Makefile.in -+++ b/sim/ppc/Makefile.in -@@ -61,7 +61,7 @@ - AR = @AR@ - AR_FLAGS = rc - CC = @CC@ --CFLAGS = @CFLAGS@ -+CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H - CC_FOR_BUILD = @CC_FOR_BUILD@ - CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ - BISON = bison -@@ -115,8 +115,8 @@ - $(DEVZERO_CFLAGS) - SIM_FPU_CFLAGS = @sim_fpu_cflags@ - --STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS) --NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS) -+STD_CFLAGS = $(CFLAGS) -DHAVE_CONFIG_H $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS) -+NOWARN_CFLAGS = $(CFLAGS) -DHAVE_CONFIG_H $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS) - BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS) - - BUILD_LDFLAGS = ---- a/sim/ppc/basics.h -+++ b/sim/ppc/basics.h -@@ -86,7 +86,9 @@ - - /* Basic configuration */ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "ppc-config.h" - #include "inline.h" - ---- a/sim/ppc/debug.c -+++ b/sim/ppc/debug.c -@@ -22,7 +22,9 @@ - #ifndef _DEBUG_C_ - #define _DEBUG_C_ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "basics.h" - - #ifdef HAVE_STDLIB_H ---- a/sim/ppc/dgen.c -+++ b/sim/ppc/dgen.c -@@ -27,7 +27,9 @@ - #include <ctype.h> - #include <stdarg.h> - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "misc.h" - #include "lf.h" - #include "table.h" ---- a/sim/ppc/filter.c -+++ b/sim/ppc/filter.c -@@ -21,7 +21,9 @@ - - #include <stdio.h> - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - - #ifdef HAVE_STRING_H - #include <string.h> ---- a/sim/ppc/filter_filename.c -+++ b/sim/ppc/filter_filename.c -@@ -18,7 +18,9 @@ - - */ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "ppc-config.h" - #include "filter_filename.h" - ---- a/sim/ppc/igen.c -+++ b/sim/ppc/igen.c -@@ -25,7 +25,9 @@ - #include "misc.h" - #include "lf.h" - #include "table.h" -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - - #include "filter.h" - ---- a/sim/ppc/inline.c -+++ b/sim/ppc/inline.c -@@ -22,7 +22,9 @@ - #ifndef _INLINE_C_ - #define _INLINE_C_ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "ppc-config.h" - - #include "inline.h" ---- a/sim/ppc/lf.c -+++ b/sim/ppc/lf.c -@@ -23,7 +23,9 @@ - #include <stdarg.h> - #include <ctype.h> - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "misc.h" - #include "lf.h" - ---- a/sim/ppc/misc.c -+++ b/sim/ppc/misc.c -@@ -23,7 +23,9 @@ - #include <stdarg.h> - #include <ctype.h> - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "misc.h" - - #ifdef HAVE_STDLIB_H ---- a/sim/ppc/misc.h -+++ b/sim/ppc/misc.h -@@ -21,7 +21,9 @@ - - /* Frustrating header junk */ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - - #include <stdio.h> - #include <ctype.h> ---- a/sim/ppc/sim-endian.c -+++ b/sim/ppc/sim-endian.c -@@ -22,7 +22,9 @@ - #ifndef _SIM_ENDIAN_C_ - #define _SIM_ENDIAN_C_ - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "basics.h" - - ---- a/sim/ppc/table.c -+++ b/sim/ppc/table.c -@@ -25,7 +25,9 @@ - #include <fcntl.h> - #include <ctype.h> - -+#ifdef HAVE_CONFIG_H - #include "config.h" -+#endif - #include "misc.h" - #include "lf.h" - #include "table.h" diff --git a/packages/gdb/6.8a/0005-handle-stpcpy-define.patch b/packages/gdb/6.8a/0005-handle-stpcpy-define.patch deleted file mode 100644 index 11142e2..0000000 --- a/packages/gdb/6.8a/0005-handle-stpcpy-define.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- - bfd/sysdep.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/bfd/sysdep.h -+++ b/bfd/sysdep.h -@@ -131,7 +131,7 @@ - extern PTR realloc (); - #endif - --#if !HAVE_DECL_STPCPY -+#if !HAVE_DECL_STPCPY && !defined(stpcpy) - extern char *stpcpy (char *__dest, const char *__src); - #endif - diff --git a/packages/gdb/6.8a/chksum b/packages/gdb/6.8a/chksum deleted file mode 100644 index 8619655..0000000 --- a/packages/gdb/6.8a/chksum +++ /dev/null @@ -1,8 +0,0 @@ -md5 gdb-6.8a.tar.bz2 da20d043e6729f74b909bd507bcae5c9 -sha1 gdb-6.8a.tar.bz2 00496289b7412e53c2c47ade8cf9348cdde0f7c8 -sha256 gdb-6.8a.tar.bz2 14cce3c259eb3563543a414fbf0f6b9dee4d7f2d1e89a2d8258b6918363ca522 -sha512 gdb-6.8a.tar.bz2 5114fe14ab25dc085590acff3a6feb75eb93347e501c634548308c4f51b31416ea23b8e612dfc54da466d3e7471e210d8f7a12ff6c050e9e89920884e5a64008 -md5 gdb-6.8a.tar.gz 6bccd284284261e46ad5acfb5cf3a499 -sha1 gdb-6.8a.tar.gz 309d5292e913e4fc7acf012d3ab720631043b567 -sha256 gdb-6.8a.tar.gz 921b3b3f28ed173b3469ab3b1436bbe8826c62da2cfa045f7853e50585d154f7 -sha512 gdb-6.8a.tar.gz 224f04bf6af7453a8957327951fe5473b6406e2e833fae60d041796ac6efd70b3e047aab75f36e220066e27367ad1e1c1d555d497ffefa15da1179bc83ec57e9 diff --git a/packages/gdb/6.8a/version.desc b/packages/gdb/6.8a/version.desc deleted file mode 100644 index f3953c8..0000000 --- a/packages/gdb/6.8a/version.desc +++ /dev/null @@ -1,3 +0,0 @@ -obsolete='yes' -archive_formats='.tar.bz2 .tar.gz' -archive_dirname='gdb-6.8' |