]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.objc/basicclass.exp
* elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.objc / basicclass.exp
index 1c5bdec55d6aa72b4a68ea5634c541fbd820156d..c1892cafea1e10f542015ea3f53d0600af85ebf2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright 2003-2004, 2006-2012 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 # This file was written by Adam Fedor (fedor@gnu.org)
 
-if $tracelevel then {
-       strace $tracelevel
-}
-
 set testfile "basicclass"
 set srcfile ${testfile}.m
 set binfile ${objdir}/${subdir}/${testfile}
@@ -76,16 +72,12 @@ proc deduce_language_of_main {} {
 }
 
 proc do_objc_tests {} {
-    global prms_id
-    global bug_id
     global subdir
     global objdir
     global srcdir
     global binfile
     global gdb_prompt
 
-    set prms_id 0
-    set bug_id 0
 
     # Start with a fresh gdb.
 
@@ -102,6 +94,11 @@ do_objc_tests
 #
 # Breakpoint tests
 #
+
+# Disable pending breakpoint query to avoid timeouts
+# if Obj-C symbols cannot be found
+gdb_test "set breakpoint pending off" "" "set breakpoint pending"
+
 gdb_test "break doIt" \
     "Breakpoint.*at.* file .*$srcfile, line.29.*" \
     "breakpoint method"