This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix attach.exp for *BSD


The other *BSD's seem to suffer from the some "problem" as FreeBSD, so I checked in the attached.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
	on *-*-*bsd* instead of *-*-freebsd*.

Index: gdb.base/attach.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/attach.exp,v
retrieving revision 1.10
diff -u -p -r1.10 attach.exp
--- gdb.base/attach.exp 8 Jun 2003 12:58:10 -0000 1.10
+++ gdb.base/attach.exp 15 Jun 2003 13:08:51 -0000
@@ -111,9 +111,10 @@ proc do_attach_tests {} {
    # the default.  However, there are a few exceptions.
    #
    set boguspid 0
-   if { [istarget "*-*-freebsd*"] } {
+   if { [istarget "*-*-*bsd*"] } {
        # In FreeBSD 5.0, PID 0 is used for "swapper".  Use -1 instead
-       # (which should have the desired effect on any version of FreeBSD).
+       # (which should have the desired effect on any version of
+       # FreeBSD, and probably other *BSD's too).
        set boguspid -1
    }
    send_gdb "attach $boguspid\n"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]