summaryrefslogtreecommitdiffstats
path: root/make/gdb.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-01 20:02:34 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-01 20:02:34 +0000
commit7775f655a98d9fc24c35e5664bee8107e508608e (patch)
tree8f0d820b91f9b8a04911fd707a3425dfa7bf331a /make/gdb.mk
parentaaadf67723d74ac937a9f32e82a6d5aa130cac1b (diff)
downloadbuildroot-novena-7775f655a98d9fc24c35e5664bee8107e508608e.tar.gz
buildroot-novena-7775f655a98d9fc24c35e5664bee8107e508608e.zip
Add a patch for better debugging of staticly linked threaded apps.
-Erik
Diffstat (limited to 'make/gdb.mk')
-rw-r--r--make/gdb.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/make/gdb.mk b/make/gdb.mk
index 8d54f8226..0cbcd9297 100644
--- a/make/gdb.mk
+++ b/make/gdb.mk
@@ -7,12 +7,14 @@
GDB_SITE:=ftp://ftp.gnu.org/gnu/gdb/
GDB_DIR:=$(BUILD_DIR)/gdb-5.3
GDB_SOURCE:=gdb-5.3.tar.gz
+GDB_PATCH:=$(SOURCE_DIR)/gdb.patch
$(DL_DIR)/$(GDB_SOURCE):
$(WGET) -P $(DL_DIR) $(GDB_SITE)/$(GDB_SOURCE)
-$(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE)
+$(GDB_DIR)/.unpacked: $(DL_DIR)/$(GDB_SOURCE) $(GDB_PATCH)
gunzip -c $(DL_DIR)/$(GDB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ cat $(GDB_PATCH) | patch -p1 -d $(GDB_DIR)
touch $(GDB_DIR)/.unpacked
$(GDB_DIR)/.configured: $(GDB_DIR)/.unpacked