This is the mail archive of the gdb-patches@sourceware.org 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] |
Mark Kettenis wrote: > The recently introduced skip_hw_breakpoint_tests procedure is a bit > flawed. It lists hardware platforms that have hardware breakpoints, > but doesn't take into account that the OS running on those platforms > has to make that functionality available to GDB. This isn't the case > on OpenBSD (and perhaps some other operating systems as well). The > diff below makes sure the tests are skipped on OpenBSD. However, > perhaps instead of whitelisting generic hardware platforms, we should > whitelis explicit hardware/OS combinations here? I've just copied the existing tests that were spread throughout various testcases into the new procedure ... That said, I completely agree that this should really be specific to the hardware/OS combinations. The question is what exactly these ought to be. Looking through the config files, it would appear that for the ia64, arm, powerpc and s390 architectures, the only OS supporting watchpoints is Linux. For the x86 architectures, the list gets a lot more complex: i[34567]86-*-go32* i[34567]86-*-msdosdjgpp* i[34567]86-*-cygwin* i[34567]86-*-mingw32* i[34567]86-*-freebsd* i[34567]86-*-kfreebsd*-gnu i[34567]86-*-linux* i[34567]86-*-solaris2.[6789] i[34567]86-*-solaris2.1[0-9] x86_64-*-mingw* x86_64-*-linux* x86_64-*-solaris2.1[0-9]* While I don't really have access to any of those (except Linux) for testing, it probably cannot hurt to replace the generic x86 test with a test for those specific platforms; the worst that could go wrong is that we forgot a platform. B.t.w. it turns out that there are architectures that support watchpoints that haven't been mentioned in the list at all: sparc-*-solaris2.[6789] sparc-*-solaris2.1[0-9] sparcv9-*-solaris2.[6789] sparcv9-*-solaris2.1[0-9] sparc64-*-solaris2.[6789] sparc64-*-solaris2.1[0-9] mips-sgi-irix5* mips-sgi-irix6* mips*-*-linux* Here I'd argue it would be best for someone with access to the platform to add them. Thoughts? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |