testsuite/
* gdb.base/macscp.exp: Avoid the first FAIL if macro information is missing.
This commit is contained in:
parent
f0df251a26
commit
b67c692ff9
|
@ -1,3 +1,8 @@
|
|||
2009-11-12 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* gdb.base/macscp.exp: Avoid the first FAIL if macro information
|
||||
is missing.
|
||||
|
||||
2009-11-12 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* gdb.base/break.c (need_malloc): New.
|
||||
|
|
|
@ -204,11 +204,8 @@ proc list_and_check_macro {func macro expected} {
|
|||
return [check_macro $macro $expected "after `list $func'"]
|
||||
}
|
||||
|
||||
|
||||
if {[list_and_check_macro main WHERE {macscp1.c {before macscp1_3}}]} {
|
||||
global verbose
|
||||
gdb_test "list main" ".*main.*" "list main for support check"
|
||||
set macro_support "unknown"
|
||||
send_gdb "info source\n"
|
||||
gdb_test_multiple "info source" "Test macro information" {
|
||||
-re "Includes preprocessor macro info\..*$gdb_prompt $" {
|
||||
set macro_support 1
|
||||
|
@ -226,8 +223,8 @@ if {[list_and_check_macro main WHERE {macscp1.c {before macscp1_3}}]} {
|
|||
unsupported "Skipping test because debug information does not include macro information."
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
list_and_check_macro main WHERE {macscp1.c {before macscp1_3}}
|
||||
list_and_check_macro macscp2_2 WHERE {macscp2.h macscp1.c {before macscp2_2}}
|
||||
list_and_check_macro macscp3_2 WHERE {macscp3.h macscp1.c {before macscp3_2}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue