OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.base/] [break.exp] - Diff between revs 227 and 248

Show entire file | Details | Blame | View Log

Rev 227 Rev 248
Line 866... Line 866...
# has no exactly matching line symbol, and GDB reports the breakpoint
# has no exactly matching line symbol, and GDB reports the breakpoint
# as if it were in the middle of a line rather than at the beginning.
# as if it were in the middle of a line rather than at the beginning.
 
 
set bp_location13 [gdb_get_line_number "set breakpoint 13 here" $srcfile1]
set bp_location13 [gdb_get_line_number "set breakpoint 13 here" $srcfile1]
set bp_location14 [gdb_get_line_number "set breakpoint 14 here" $srcfile1]
set bp_location14 [gdb_get_line_number "set breakpoint 14 here" $srcfile1]
 
 
 
send_user "bp_location13: $bp_location13\n"
 
send_user "bp_location14: $bp_location14\n"
 
send_user "decimal:       $decimal\n"
 
send_user "hex:           $hex\n"
 
 
send_gdb "continue\n"
send_gdb "continue\n"
gdb_expect {
gdb_expect {
    -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location13\[\r\n\]+$bp_location13\[\t \]+void marker4.*" {
    -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location13\[\r\n\]+$bp_location13\[\t \]+void marker4.*" {
        pass "run until breakpoint set at small function, optimized file"
        pass "run until breakpoint set at small function, optimized file"
    }
    }
    -re "Breakpoint $decimal, $hex in marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location13\[\r\n\]+$bp_location13\[\t \]+void marker4.*" {
    -re "Breakpoint $decimal, $hex in marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location13\[\r\n\]+$bp_location13\[\t \]+void marker4.*" {
        pass "run until breakpoint set at small function, optimized file"
        pass "run until breakpoint set at small function, optimized file"
    }
    }
    -re "Breakpoint $decimal, marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location14\[\r\n\]+$bp_location14\[\t \]+void marker4.*" {
    # JPB 21-Aug-10: The default runs w/o prototypes and uses the line
 
    # above. The output should be identical with prototypes (here), just the
 
    # line number different. For some reason the text "$hex in" had been
 
    # omitted.
 
    -re "Breakpoint $decimal, $hex in marker4 \\(d=177601976\\) at .*$srcfile1:$bp_location14\[\r\n\]+$bp_location14\[\t \]+void marker4.*" {
        # marker4() is defined at line 46 when compiled with -DPROTOTYPES
        # marker4() is defined at line 46 when compiled with -DPROTOTYPES
        pass "run until breakpoint set at small function, optimized file (line bp_location14)"
        pass "run until breakpoint set at small function, optimized file (line bp_location14)"
    }
    }
    -re "Breakpoint $decimal, factorial \\(.*\\) .*\{\r\n$gdb_prompt" {
    -re "Breakpoint $decimal, factorial \\(.*\\) .*\{\r\n$gdb_prompt" {
        # GCC 4.3 emits bad line number information - see gcc/36748.
        # GCC 4.3 emits bad line number information - see gcc/36748.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.