diff options
author | wxs <wxs@FreeBSD.org> | 2012-08-03 10:00:58 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2012-08-03 10:00:58 +0800 |
commit | b73363f6b3247661256b904896a2025f919546f9 (patch) | |
tree | 19588e0124af54f40cd54a91ccfd127cbf4ab343 /devel/gdb | |
parent | 542b43d3fa40fc9bff6cfbec06ab2d9020b51d37 (diff) | |
download | freebsd-ports-gnome-b73363f6b3247661256b904896a2025f919546f9.tar.gz freebsd-ports-gnome-b73363f6b3247661256b904896a2025f919546f9.tar.zst freebsd-ports-gnome-b73363f6b3247661256b904896a2025f919546f9.zip |
Clarify a comment and incorporate a couple of patches.
PR: ports/170321
Submitted by: Luca Pizzamiglio <luca.pizzamiglio@gmail.com> (maintainer)
Diffstat (limited to 'devel/gdb')
-rw-r--r-- | devel/gdb/Makefile | 5 | ||||
-rw-r--r-- | devel/gdb/files/fbsd-threads.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile index 710dbf349cd3..3acae5070a06 100644 --- a/devel/gdb/Makefile +++ b/devel/gdb/Makefile @@ -7,7 +7,7 @@ PORTNAME= gdb PORTVERSION= 7.4.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= GNU @@ -38,7 +38,8 @@ MAN1= gdb${VER}.1 ONLY_FOR_ARCHS= i386 amd64 # untested elsewhere, might work -# Forcing to use the readline.6 +# Forcing to use the readline from ports (readline in FreeBSD world is not +# compatible anymore). LIB_DEPENDS+= readline:${PORTSDIR}/devel/readline CFLAGS+= -isystem ${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib diff --git a/devel/gdb/files/fbsd-threads.c b/devel/gdb/files/fbsd-threads.c index cc8a2901c2c1..cf33b641d888 100644 --- a/devel/gdb/files/fbsd-threads.c +++ b/devel/gdb/files/fbsd-threads.c @@ -1,4 +1,4 @@ -/* $FreeBSD: /tmp/pcvs/ports/devel/gdb/files/fbsd-threads.c,v 1.4 2012-06-23 09:12:05 scheidell Exp $ */ +/* $FreeBSD$ */ /* FreeBSD libthread_db assisted debugging support. Copyright 1999, 2000, 2001 Free Software Foundation, Inc. @@ -747,8 +747,10 @@ fbsd_thread_wait (struct target_ops *ops, */ if (!fbsd_thread_alive (ops, inferior_ptid) && !ptid_equal(inferior_ptid, ret)) { - delete_thread (inferior_ptid); + ptid_t save_ptid; + save_ptid = inferior_ptid; inferior_ptid = ret; + delete_thread (save_ptid); } } @@ -1176,7 +1178,7 @@ tsd_cb (thread_key_t key, void (*destructor)(void *), void *ignore) else name = SYMBOL_PRINT_NAME (ms); - printf_filtered ("Destructor %p <%s>\n", destructor, name); + printf_filtered ("Key %d, destructor %p <%s>\n", key, destructor, name); return 0; } |