View | Details | Raw Unified | Return to bug 164521
Collapse All | Expand All

(-)devel/gdb/Makefile (-9 / +6 lines)
Lines 7-14 Link Here
7
#
7
#
8
8
9
PORTNAME=	gdb
9
PORTNAME=	gdb
10
PORTVERSION=	7.3.1
10
PORTVERSION=	7.4
11
PORTREVISION=	1
12
CATEGORIES=	devel
11
CATEGORIES=	devel
13
MASTER_SITES=	${MASTER_SITE_GNU:S,$,:gdb,}
12
MASTER_SITES=	${MASTER_SITE_GNU:S,$,:gdb,}
14
MASTER_SITE_SUBDIR=gdb/:gdb
13
MASTER_SITE_SUBDIR=gdb/:gdb
Lines 40-45 Link Here
40
39
41
ONLY_FOR_ARCHS=	i386 amd64	# untested elsewhere, might work
40
ONLY_FOR_ARCHS=	i386 amd64	# untested elsewhere, might work
42
41
42
# Forcing to use the readline.6
43
LIB_DEPENDS+=	readline.6:${PORTSDIR}/devel/readline
44
CFLAGS+=	-isystem ${LOCALBASE}/include
45
LDFLAGS+=	-L${LOCALBASE}/lib
46
43
OPTIONS=	DEBUG "Build with debugging symbols" off \
47
OPTIONS=	DEBUG "Build with debugging symbols" off \
44
		EXPAT "Enable XML parsing for metadata" off \
48
		EXPAT "Enable XML parsing for metadata" off \
45
		PYTHON "Enable Python support" off \
49
		PYTHON "Enable Python support" off \
Lines 70-82 Link Here
70
CONFIGURE_ARGS+=	--without-python
74
CONFIGURE_ARGS+=	--without-python
71
.endif
75
.endif
72
76
73
# XXX: add OSVERSION check after readline is removed from base
74
.if exists(${LOCALBASE}/lib/libreadline.so)
75
LIB_DEPENDS+=	readline.6:${PORTSDIR}/devel/readline
76
CFLAGS+=	-isystem ${LOCALBASE}/include
77
LDFLAGS+=	-L${LOCALBASE}/lib
78
.endif
79
80
.if ${ARCH} == "amd64"
77
.if ${ARCH} == "amd64"
81
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
78
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
82
.endif
79
.endif
(-)devel/gdb/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gdb-7.3.1.tar.bz2) = 6d7bff716fde98d03866a1b747c0929ee7dba49bca13e01d975e0b0fa9b33a28
1
SHA256 (gdb-7.4.tar.bz2) = de7e2db7f0475eca7f9ffa9251abaddd3d37e0eed0b3759f71abfd810a3fd20f
2
SIZE (gdb-7.3.1.tar.bz2) = 19500995
2
SIZE (gdb-7.4.tar.bz2) = 20614020
(-)devel/gdb/files/fbsd-threads.c (-10 / +9 lines)
Lines 358-368 Link Here
358
358
359
  /* Set the process wide mask saying which events we're interested in.  */
359
  /* Set the process wide mask saying which events we're interested in.  */
360
  td_event_emptyset (&events);
360
  td_event_emptyset (&events);
361
361
  td_event_addset (&events, TD_CREATE);
362
/* XXX PR ports/162093
362
  td_event_addset (&events, TD_DEATH);
363
 * td_event_addset (&events, TD_CREATE);
364
 * td_event_addset (&events, TD_DEATH);
365
*/
366
363
367
  err = td_ta_set_event_p (thread_agent, &events);
364
  err = td_ta_set_event_p (thread_agent, &events);
368
  if (err != TD_OK)
365
  if (err != TD_OK)
Lines 377-383 Link Here
377
  td_create_bp_addr = 0;
374
  td_create_bp_addr = 0;
378
  td_death_bp_addr = 0;
375
  td_death_bp_addr = 0;
379
376
380
#if 0
381
  /* Set up the thread creation event.  */
377
  /* Set up the thread creation event.  */
382
  err = enable_thread_event (thread_agent, TD_CREATE, &td_create_bp_addr);
378
  err = enable_thread_event (thread_agent, TD_CREATE, &td_create_bp_addr);
383
  if (err != TD_OK)
379
  if (err != TD_OK)
Lines 395-401 Link Here
395
	       thread_db_err_str (err));
391
	       thread_db_err_str (err));
396
      return;
392
      return;
397
    }
393
    }
398
#endif
399
}
394
}
400
395
401
static void
396
static void
Lines 738-748 Link Here
738
      if (ourstatus->value.sig == TARGET_SIGNAL_TRAP)
733
      if (ourstatus->value.sig == TARGET_SIGNAL_TRAP)
739
        check_event(ret);
734
        check_event(ret);
740
      /* this is a hack, if an event won't cause gdb to stop, for example,
735
      /* this is a hack, if an event won't cause gdb to stop, for example,
741
         SIGARLM, gdb resumes the process immediatly without setting
736
         SIGALRM, gdb resumes the process immediatly without setting
742
         inferior_ptid to the new thread returned here, this is a bug
737
         inferior_ptid to the new thread returned here, this is a bug
743
         because inferior_ptid may already not exist there, and passing
738
         because inferior_ptid may already not exist there, and passing
744
         a none existing thread to fbsd_thread_resume causes error. */
739
         a non-existing thread to fbsd_thread_resume causes error. However,
745
      if (!fbsd_thread_alive (ops, inferior_ptid))
740
         if the exiting thread is the currently selected thread,
741
         then that is handled later in handle_inferior_event(), and we must
742
         not delete the currently selected thread. 
743
      */
744
      if (!fbsd_thread_alive (ops, inferior_ptid) && !ptid_equal(inferior_ptid, ret))
746
        {
745
        {
747
          delete_thread (inferior_ptid);
746
          delete_thread (inferior_ptid);
748
          inferior_ptid = ret;
747
          inferior_ptid = ret;
(-)devel/gdb/files/patch-bfd-configure (+17 lines)
Line 0 Link Here
1
--- bfd/configure.orig	2011-03-28 13:18:25.000000000 +0200
2
+++ bfd/configure	2012-01-12 16:58:05.000000000 +0100
3
@@ -12177,7 +12177,13 @@
4
 
5
 # Enable -Werror by default when using gcc
6
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
7
-    ERROR_ON_WARNING=yes
8
+    if test "${CC}" = clang ; then
9
+	echo "clang compiler - disabling -Werror"
10
+	ERROR_ON_WARNING=no
11
+    else
12
+	echo "gcc compiler - enabling -Werror"
13
+	ERROR_ON_WARNING=yes
14
+    fi
15
 fi
16
 
17
 NO_WERROR=
(-)devel/gdb/files/patch-gdb-Makefile.in (-4 / +4 lines)
Lines 9-20 Link Here
9
 	nbsd-tdep.o obsd-tdep.o \
9
 	nbsd-tdep.o obsd-tdep.o \
10
 	sol2-tdep.o \
10
 	sol2-tdep.o \
11
 	solib-frv.o solib-irix.o solib-svr4.o solib-target.o \
11
 	solib-frv.o solib-irix.o solib-svr4.o solib-target.o \
12
@@ -768,7 +768,7 @@
12
@@ -782,7 +782,7 @@
13
 gnulib/stdint.in.h remote.h gdb.h sparc-nat.h \
13
 gnulib/stdint.in.h remote.h gdb.h sparc-nat.h \
14
 gdbthread.h dwarf2-frame.h nbsd-nat.h dcache.h \
14
 gdbthread.h dwarf2-frame.h dwarf2-frame-tailcall.h nbsd-nat.h dcache.h \
15
 amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
15
 amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
16
-gdbarch.h bsd-uthread.h gdb_thread_db.h gdb_stat.h memory-map.h	memrange.h \
16
-gdbarch.h bsd-uthread.h gdb_stat.h memory-map.h	memrange.h \
17
+gdbarch.h gdb_thread_db.h gdb_stat.h memory-map.h	memrange.h \
17
+gdbarch.h gdb_stat.h memory-map.h	memrange.h \
18
 mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \
18
 mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \
19
 ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \
19
 ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \
20
 f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \
20
 f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \
(-)devel/gdb/files/patch-gdb-configure (+11 lines)
Line 0 Link Here
1
--- gdb/configure.orig	2012-01-24 16:59:13.000000000 +0100
2
+++ gdb/configure	2012-01-24 16:59:40.000000000 +0100
3
@@ -15294,7 +15294,7 @@
4
 OLD_LDFLAGS=$LDFLAGS
5
 OLD_LIBS=$LIBS
6
 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
7
-LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
8
+LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
9
 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
10
 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
11
 if test "$plugins" = "yes"; then

Return to bug 164521