Browse Source

gdb: Updated (6.6 -> 7.3)

user/amery/next/luajit
Christian Wiese 14 years ago
parent
commit
a8c6657532
  1. 6
      develop/gdb/gdb.desc
  2. 92
      develop/gdb/installed-by-binutils.patch
  3. 41
      develop/gdb/legacy_sus.patch

6
develop/gdb/gdb.desc

@ -3,7 +3,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../gdb/gdb.desc
[COPY] Copyright (C) 2006 - 2008 The OpenSDE Project
[COPY] Copyright (C) 2006 - 2011 The OpenSDE Project
[COPY] Copyright (C) 2004 - 2006 The T2 SDE Project
[COPY] Copyright (C) 1998 - 2003 Clifford Wolf
[COPY]
@ -31,8 +31,8 @@
[L] GPL
[S] Stable
[V] 6.6
[V] 7.3
[P] X -?-3-----9 500.500
[D] 1691745159 gdb-6.6.tar.bz2 ftp://sources.redhat.com/pub/gdb/releases/
[D] 3329352183 gdb-7.3.tar.bz2 ftp://sources.redhat.com/pub/gdb/releases/

92
develop/gdb/installed-by-binutils.patch

@ -2,6 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../gdb/installed-by-binutils.patch
# Copyright (C) 2011 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -14,78 +15,85 @@
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
Do not install the bfd and obcode libraries and/or other files -
From: Christian Wiese <chris@opensde.org>
Date: Fri, 19 Aug 2011 13:10:44 +0200
Subject: [PATCH 1/1] fixed to not install files installed by binutils
Do not install the bfd and opcode libraries and/or other files -
the binutils package supplies them.
- Clifford Wolf & Rene Rebe
- rediffed for gdb 6.3 by Valentin Ziegler
- re-rediffed for gdb 6.4 by Rene Rebe
- re-rediffed for gdb 6.5 by Aldas Nabazas
- re-rediffed for gdb 7.3 by Christian Wiese
---
bfd/Makefile.in | 3 +--
etc/Makefile.in | 2 +-
libiberty/Makefile.in | 2 +-
opcodes/Makefile.in | 2 +-
4 files changed, 4 insertions(+), 5 deletions(-)
diff -Nur gdb-6.5-orig/bfd/Makefile.in gdb-6.5/bfd/Makefile.in
--- gdb-6.5-orig/bfd/Makefile.in 2006-04-19 12:09:42.000000000 +0000
+++ gdb-6.5/bfd/Makefile.in 2006-06-23 14:25:06.000000000 +0000
@@ -257,7 +257,7 @@
diff --git gdb-7.3/bfd/Makefile.in gdb-7.3/bfd/Makefile.in
index 2cbf6a0..178aeb8 100644
--- gdb-7.3/bfd/Makefile.in
+++ gdb-7.3/bfd/Makefile.in
@@ -323,7 +323,7 @@ ACLOCAL_AMFLAGS = -I . -I .. -I ../config
# RELEASE=y
INCDIR = $(srcdir)/../include
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
MKDEP = gcc -MM
-SUBDIRS = doc po
+SUBDIRS = doc
bfddocdir = doc
bfdlib_LTLIBRARIES = libbfd.la
AM_CFLAGS = $(WARN_CFLAGS)
@@ -1158,7 +1158,7 @@
for dir in "$(DESTDIR)$(bfdlibdir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
@SHARED_LDFLAGS@ $(am__empty)
@@ -1689,7 +1689,6 @@ installdirs-am:
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
-install: install-recursive
+install:
install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
diff -Nur gdb-6.5-orig/etc/Makefile.in gdb-6.5/etc/Makefile.in
--- gdb-6.5-orig/etc/Makefile.in 2006-04-06 21:49:30.000000000 +0000
+++ gdb-6.5/etc/Makefile.in 2006-06-23 14:25:24.000000000 +0000
@@ -59,7 +59,7 @@
diff --git gdb-7.3/etc/Makefile.in gdb-7.3/etc/Makefile.in
index 0d19c13..31681a1 100644
--- gdb-7.3/etc/Makefile.in
+++ gdb-7.3/etc/Makefile.in
@@ -64,7 +64,7 @@ PDFFILES = standards.pdf configure.pdf
HTMLFILES = standards.html configure.html
all: info
-install: install-info
+install:
-install install-strip: install-info
+install install-strip:
uninstall:
diff -Nur gdb-6.5-orig/libiberty/Makefile.in gdb-6.5/libiberty/Makefile.in
--- gdb-6.5-orig/libiberty/Makefile.in 2006-04-07 00:01:25.000000000 +0000
+++ gdb-6.5/libiberty/Makefile.in 2006-06-23 14:27:47.000000000 +0000
@@ -330,7 +330,8 @@
diff --git gdb-7.3/libiberty/Makefile.in gdb-7.3/libiberty/Makefile.in
index ef35453..39ed818 100644
--- gdb-7.3/libiberty/Makefile.in
+++ gdb-7.3/libiberty/Makefile.in
@@ -340,7 +340,7 @@ libiberty.html : $(srcdir)/libiberty.texi $(TEXISRC)
@MAINT@ echo stamp > stamp-functions
INSTALL_DEST = @INSTALL_DEST@
-install: install_to_$(INSTALL_DEST) install-subdir
+install:
+#install: install_to_$(INSTALL_DEST) install-subdir
+install:
install-strip: install
install_to_libdir: all
${mkinstalldirs} $(DESTDIR)$(libdir)$(MULTISUBDIR)
diff -Nur gdb-6.5-orig/opcodes/Makefile.in gdb-6.5/opcodes/Makefile.in
--- gdb-6.5-orig/opcodes/Makefile.in 2006-04-19 12:10:21.000000000 +0000
+++ gdb-6.5/opcodes/Makefile.in 2006-06-23 14:26:48.000000000 +0000
@@ -231,7 +231,7 @@
target_os = @target_os@
target_vendor = @target_vendor@
AUTOMAKE_OPTIONS = 1.9 cygnus
-SUBDIRS = po
+SUBDIRS =
INCDIR = $(srcdir)/../include
BFDDIR = $(srcdir)/../bfd
MKDEP = gcc -MM
@@ -837,7 +837,7 @@
for dir in "$(DESTDIR)$(bfdlibdir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
.PHONY: install install-strip
diff --git gdb-7.3/opcodes/Makefile.in gdb-7.3/opcodes/Makefile.in
index 8928b1b..1743afe 100644
--- gdb-7.3/opcodes/Makefile.in
+++ gdb-7.3/opcodes/Makefile.in
@@ -1057,7 +1057,7 @@ installdirs-am:
for dir in "$(DESTDIR)$(bfdlibdir)" "$(DESTDIR)$(bfdincludedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
-install: install-recursive
+install:
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
--
1.7.2.3

41
develop/gdb/legacy_sus.patch

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../gdb/legacy_sus.patch
# Copyright (C) 2010 The OpenSDE Project
# Copyright (C) 2010 - 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -17,34 +17,17 @@
usleep() was deprecated by SUSv3 and newer LIBCs are starting to enforce that
deprecation.
--- ./gdb/linux-nat.c.orig 2010-09-24 13:21:55.000000000 -0400
+++ ./gdb/linux-nat.c 2010-09-24 13:28:23.000000000 -0400
@@ -441,7 +441,8 @@
is only the single-step breakpoint at vfork's return
point. */
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 44a2a21..4e70f80 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -856,7 +856,8 @@ holding the child stopped. Try \"set detach-on-fork\" or \
"LCFF: no VFORK_DONE "
"support, sleeping a bit\n");
- usleep (10000);
+ const struct timespec t = {0, 10000000L};
+ nanosleep(&t, NULL);
}
+ const struct timespec t = {0, 10000000L};
+ nanosleep(&t, NULL);
/* Since we vforked, breakpoints were removed in the parent
--- ./gdb/gdbserver/linux-low.c.orig 2010-09-24 13:38:06.000000000 -0400
+++ ./gdb/gdbserver/linux-low.c 2010-09-24 13:39:40.000000000 -0400
@@ -384,6 +384,7 @@
{
int ret;
int to_wait_for = -1;
+ const struct timespec ms = {0, 1000000L};
if (*childp != NULL)
to_wait_for = (*childp)->lwpid;
@@ -410,7 +411,7 @@
else if (ret > 0)
break;
- usleep (1000);
+ nanosleep(&ms, NULL);
}
if (debug_threads
/* Pretend we've seen a PTRACE_EVENT_VFORK_DONE event,
and leave it pending. The next linux_nat_resume call

Loading…
Cancel
Save