Lines Matching full:section
32 # This test exists solely to exercise the "section" command for
33 # code-coverage on HP-UX. (So far as I can tell, the "section"
63 if ![runto_main] then { fail "section command tests suppressed" }
65 # Get the $CODE$ section's starting address.
69 # not clear that there'll be a section named "$CODE$" in such
86 # Reset the section to that same starting address, which should be
87 # harmless (i.e., we just want to exercise the section command).
90 send_gdb "section \.text $address1\n"
93 {pass "set section command"}
95 {fail "set section command"}
96 timeout {fail "(timeout) set section command"}
99 send_gdb "section \$CODE\$ $address1\n"
102 {pass "set section command"}
104 {fail "set section command"}
105 timeout {fail "(timeout) set section command"}
109 # Verify that GDB responds gracefully to a non-existent section name.
111 send_gdb "section FOOBARBAZ 0x1234\n"
113 -re "Section FOOBARBAZ not found\r\n$gdb_prompt $"\
114 {pass "non-existent section disallowed"}
116 {fail "non-existent section disallowed"}
117 timeout {fail "(timeout) non-existent section disallowed"}
121 # parse the section name into, and the buffer is declared to be 100
122 # characters in length. Verify that GDB gracefully handles section
123 # names longer than that. (The section is also non-existent.)
125 send_gdb "section A23456789012345678901234567890123456789012345678901234567890123456789012345678901…
127 …-re "Section A234567890123456789012345678901234567890123456789012345678901234567890123456789012345…
128 {pass "non-existent too-long section disallowed"}
130 {fail "non-existent too-long section disallowed"}
131 timeout {fail "(timeout) non-existent too-long section disallowed"}