diff options
Diffstat (limited to 'devel/gdb/files')
-rw-r--r-- | devel/gdb/files/fbsd-threads.c | 21 | ||||
-rw-r--r-- | devel/gdb/files/patch-bfd-configure | 17 | ||||
-rw-r--r-- | devel/gdb/files/patch-gdb-Makefile.in | 8 | ||||
-rw-r--r-- | devel/gdb/files/patch-gdb-configure | 11 |
4 files changed, 42 insertions, 15 deletions
diff --git a/devel/gdb/files/fbsd-threads.c b/devel/gdb/files/fbsd-threads.c index db06e774dc2e..872ba5027966 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.2 2011-11-06 18:12:32 ohauer Exp $ */ +/* $FreeBSD: /tmp/pcvs/ports/devel/gdb/files/fbsd-threads.c,v 1.3 2012-01-27 09:38:15 scheidell Exp $ */ /* FreeBSD libthread_db assisted debugging support. Copyright 1999, 2000, 2001 Free Software Foundation, Inc. @@ -358,11 +358,8 @@ enable_thread_event_reporting (void) /* Set the process wide mask saying which events we're interested in. */ td_event_emptyset (&events); - -/* XXX PR ports/162093 - * td_event_addset (&events, TD_CREATE); - * td_event_addset (&events, TD_DEATH); -*/ + td_event_addset (&events, TD_CREATE); + td_event_addset (&events, TD_DEATH); err = td_ta_set_event_p (thread_agent, &events); if (err != TD_OK) @@ -377,7 +374,6 @@ enable_thread_event_reporting (void) td_create_bp_addr = 0; td_death_bp_addr = 0; -#if 0 /* Set up the thread creation event. */ err = enable_thread_event (thread_agent, TD_CREATE, &td_create_bp_addr); if (err != TD_OK) @@ -395,7 +391,6 @@ enable_thread_event_reporting (void) thread_db_err_str (err)); return; } -#endif } static void @@ -738,11 +733,15 @@ fbsd_thread_wait (struct target_ops *ops, if (ourstatus->value.sig == TARGET_SIGNAL_TRAP) check_event(ret); /* this is a hack, if an event won't cause gdb to stop, for example, - SIGARLM, gdb resumes the process immediatly without setting + SIGALRM, gdb resumes the process immediatly without setting inferior_ptid to the new thread returned here, this is a bug because inferior_ptid may already not exist there, and passing - a none existing thread to fbsd_thread_resume causes error. */ - if (!fbsd_thread_alive (ops, inferior_ptid)) + a non-existing thread to fbsd_thread_resume causes error. However, + if the exiting thread is the currently selected thread, + then that is handled later in handle_inferior_event(), and we must + not delete the currently selected thread. + */ + if (!fbsd_thread_alive (ops, inferior_ptid) && !ptid_equal(inferior_ptid, ret)) { delete_thread (inferior_ptid); inferior_ptid = ret; diff --git a/devel/gdb/files/patch-bfd-configure b/devel/gdb/files/patch-bfd-configure new file mode 100644 index 000000000000..ed62a66ac0d8 --- /dev/null +++ b/devel/gdb/files/patch-bfd-configure @@ -0,0 +1,17 @@ +--- bfd/configure.orig 2011-03-28 13:18:25.000000000 +0200 ++++ bfd/configure 2012-01-12 16:58:05.000000000 +0100 +@@ -12177,7 +12177,13 @@ + + # Enable -Werror by default when using gcc + if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then +- ERROR_ON_WARNING=yes ++ if test "${CC}" = clang ; then ++ echo "clang compiler - disabling -Werror" ++ ERROR_ON_WARNING=no ++ else ++ echo "gcc compiler - enabling -Werror" ++ ERROR_ON_WARNING=yes ++ fi + fi + + NO_WERROR= diff --git a/devel/gdb/files/patch-gdb-Makefile.in b/devel/gdb/files/patch-gdb-Makefile.in index 481a4a555988..cf57c35d20d8 100644 --- a/devel/gdb/files/patch-gdb-Makefile.in +++ b/devel/gdb/files/patch-gdb-Makefile.in @@ -9,12 +9,12 @@ nbsd-tdep.o obsd-tdep.o \ sol2-tdep.o \ solib-frv.o solib-irix.o solib-svr4.o solib-target.o \ -@@ -768,7 +768,7 @@ +@@ -782,7 +782,7 @@ gnulib/stdint.in.h remote.h gdb.h sparc-nat.h \ - gdbthread.h dwarf2-frame.h nbsd-nat.h dcache.h \ + gdbthread.h dwarf2-frame.h dwarf2-frame-tailcall.h nbsd-nat.h dcache.h \ amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \ --gdbarch.h bsd-uthread.h gdb_thread_db.h gdb_stat.h memory-map.h memrange.h \ -+gdbarch.h gdb_thread_db.h gdb_stat.h memory-map.h memrange.h \ +-gdbarch.h bsd-uthread.h gdb_stat.h memory-map.h memrange.h \ ++gdbarch.h gdb_stat.h memory-map.h memrange.h \ mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \ ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \ f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \ diff --git a/devel/gdb/files/patch-gdb-configure b/devel/gdb/files/patch-gdb-configure new file mode 100644 index 000000000000..6ee8b83083ab --- /dev/null +++ b/devel/gdb/files/patch-gdb-configure @@ -0,0 +1,11 @@ +--- gdb/configure.orig 2012-01-24 16:59:13.000000000 +0100 ++++ gdb/configure 2012-01-24 16:59:40.000000000 +0100 +@@ -15294,7 +15294,7 @@ + OLD_LDFLAGS=$LDFLAGS + OLD_LIBS=$LIBS + CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" +-LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" ++LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" + intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` + # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. + if test "$plugins" = "yes"; then
\ No newline at end of file |