From 3ca22649a6dfeb71058c33be4d0542b98f1f0ff5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 21 Dec 2015 12:51:54 -0500 Subject: Remove HP-UX references fom testsuite This patch removes all special cases for HP-UX, for which support has been removed earlier, that I found in the testsuite. Note that the hppa architecture != HP-UX, since other OSes can run on hppa, so I tried to leave everything that is not HP-UX specific. Two complete tests were completely HP-UX specific, so I removed them. I ran the testsuite on Linux x86-64, native and native-gdbserver, and noticed no regressions. gdb/testsuite/ChangeLog: * gdb.asm/asm-source.exp: Remove HP-UX references. * gdb.base/annota1.exp: Likewise. * gdb.base/annota3.exp: Likewise. * gdb.base/attach.exp: Likewise. * gdb.base/bigcore.exp: Likewise. * gdb.base/break.exp: Likewise. * gdb.base/call-ar-st.exp: Likewise. * gdb.base/callfuncs.exp: Likewise. * gdb.base/catch-fork-static.exp: Likewise. * gdb.base/display.exp: Likewise. * gdb.base/foll-exec-mode.exp: Likewise. * gdb.base/foll-exec.exp: Likewise. * gdb.base/foll-fork.exp: Likewise. * gdb.base/foll-vfork.exp: Likewise. * gdb.base/funcargs.exp: Likewise. * gdb.base/hbreak2.exp: Likewise. * gdb.base/inferior-died.exp: Likewise. * gdb.base/interrupt.exp: Likewise. * gdb.base/multi-forks.exp: Likewise. * gdb.base/nodebug.exp: Likewise. * gdb.base/sepdebug.exp: Likewise. * gdb.base/solib1.c: Likewise. * gdb.base/step-test.exp: Likewise. * gdb.mi/non-stop.c: Likewise. * gdb.mi/pthreads.c: Likewise. * gdb.multi/bkpt-multi-exec.ex: Likewise. * gdb.threads/pthreads.c: Likewise. * gdb.threads/staticthreads.exp: Likewise. * lib/future.exp: Likewise. * lib/gdb.exp: Likewise. * gdb.base/so-indr-cl.c: Remove. * gdb.base/so-indr-cl.exp: Likewise. * gdb.base/solib.c: Likewise. * gdb.base/solib.exp: Likewise. * gdb.base/solib2.c: Likewise. --- gdb/testsuite/gdb.base/break.exp | 75 +++++----------------------------------- 1 file changed, 9 insertions(+), 66 deletions(-) (limited to 'gdb/testsuite/gdb.base/break.exp') diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index d9d7d7e5564..6ca910c6705 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -485,24 +485,13 @@ gdb_test_multiple "catch fork" "$name" { } -# If we are on HP-UX 10.20, we expect an error message to be -# printed if we type "catch vfork" at the gdb gdb_prompt. This is -# because on HP-UX 10.20, we cannot catch vfork events. - set name "set catch vfork, never expected to trigger" - -if [istarget "hppa*-hp-hpux10.20"] then { - gdb_test "catch vfork" \ - "Catch of vfork events not supported on HP-UX 10.20..*" \ - "$name" -} else { - gdb_test_multiple "catch vfork" "$name" { - -re "Catchpoint \[0-9\]* .vfork..*$gdb_prompt $" { - pass $name - } - -re "Catch of vfork not yet implemented.*$gdb_prompt $" { - pass $name - } +gdb_test_multiple "catch vfork" "$name" { + -re "Catchpoint \[0-9\]* .vfork..*$gdb_prompt $" { + pass $name + } + -re "Catch of vfork not yet implemented.*$gdb_prompt $" { + pass $name } } @@ -646,27 +635,15 @@ gdb_test "print marker2(99)" \ # As long as we're stopped (breakpointed) in a called function, # verify that we can successfully backtrace & such from here. -# -# In this and the following test, the _sr4export check apparently is needed -# for hppa*-*-hpux. -# -gdb_test_multiple "bt" "backtrace while in called function" { - -re "#0\[ \t\]*($hex in )?marker2.*:$bp_location8\r\n#1.*_sr4export.*$gdb_prompt $" { - pass "backtrace while in called function" - } - -re "#0\[ \t\]*($hex in )?marker2.*:$bp_location8\r\n#1.*function called from gdb.*$gdb_prompt $" { - pass "backtrace while in called function" - } -} +gdb_test "bt" \ + "#0\[ \t\]*($hex in )?marker2.*:$bp_location8\r\n#1\[ \t\]*.*" \ + "backtrace while in called function" # Return from the called function. For remote targets, it's important to do # this before runto_main, which otherwise may silently stop on the dummy # breakpoint inserted by GDB at the program's entry point. # gdb_test_multiple "finish" "finish from called function" { - -re "Run till exit from .*marker2.* at .*$bp_location8\r\n.* in _sr4export.*$gdb_prompt $" { - pass "finish from called function" - } -re "Run till exit from .*marker2.* at .*$bp_location8\r\n.*function called from gdb.*$gdb_prompt $" { pass "finish from called function" } @@ -704,40 +681,6 @@ gdb_test_multiple "finish" "finish from outermost frame disallowed" { } } -# Verify that we can explicitly ask GDB to stop on all shared library -# events, and that it does so. -# -if [istarget "hppa*-*-hpux*"] then { - if ![runto_main] then { fail "break tests suppressed" } - - gdb_test_no_output "set stop-on-solib-events 1" \ - "set stop-on-solib-events" - - gdb_test "run" \ - "Stopped due to shared library event.*" \ - "triggered stop-on-solib-events" \ - "Start it from the beginning.*y or n. $" \ - "y" - - gdb_test_no_output "set stop-on-solib-events 0" \ - "reset stop-on-solib-events" -} - -# Hardware breakpoints are unsupported on HP-UX. Verify that GDB -# gracefully responds to requests to create them. -# -if [istarget "hppa*-*-hpux*"] then { - if ![runto_main] then { fail "break tests suppressed" } - - gdb_test "hbreak" \ - "No hardware breakpoint support in the target.*" \ - "hw breaks disallowed" - - gdb_test "thbreak" \ - "No hardware breakpoint support in the target.*" \ - "temporary hw breaks disallowed" -} - #******** -- cgit v1.2.1