2011-01-01 15:34:07 +00:00
|
|
|
# Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2008, 2009, 2010, 2011
|
2007-01-09 17:59:20 +00:00
|
|
|
# Free Software Foundation, Inc.
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
# 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
|
2007-08-23 18:14:19 +00:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2000-02-23 00:25:43 +00:00
|
|
|
# (at your option) any later version.
|
2007-08-23 18:14:19 +00:00
|
|
|
#
|
2000-02-23 00:25:43 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2007-08-23 18:14:19 +00:00
|
|
|
#
|
2000-02-23 00:25:43 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
2007-08-23 18:14:19 +00:00
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test Machine interface (MI) operations for disassembly.
|
|
|
|
#
|
|
|
|
# The goal is not to test gdb functionality, which is done by other tests,
|
|
|
|
# but to verify the correct output response to MI operations.
|
|
|
|
#
|
|
|
|
|
|
|
|
load_lib mi-support.exp
|
2001-06-18 17:57:43 +00:00
|
|
|
set MIFLAGS "-i=mi"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
gdb_exit
|
|
|
|
if [mi_gdb_start] {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
|
|
|
|
set testfile "basics"
|
|
|
|
set srcfile ${testfile}.c
|
* gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
gdb.mi/mi-break.exp, gdb.mi/mi-cli.exp,
gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp,
gdb.mi/mi-file-transfer.exp, gdb.mi/mi-file.exp,
gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp,
gdb.mi/mi-simplerun.exp, gdb.mi/mi-stepi.exp,
gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp,
gdb.mi/mi-var-display.exp, gdb.mi/mi-var-invalidate.exp,
gdb.mi/mi-watch.exp, gdb.mi/mi2-basics.exp,
gdb.mi/mi2-break.exp, gdb.mi/mi2-cli.exp,
gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp,
gdb.mi/mi2-file.exp, gdb.mi/mi2-regs.exp,
gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
gdb.mi/mi2-stepi.exp, gdb.mi/mi2-var-block.exp,
gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp,
gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp,
gdb.server/ext-run.exp, gdb.server/file-transfer.exp,
gdb.server/server-mon.exp, gdb.server/server-run.exp,
gdb.trace/actions.exp, gdb.trace/backtrace.exp,
gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp,
gdb.trace/passcount.exp, gdb.trace/report.exp,
gdb.trace/save-trace.exp, gdb.trace/tfind.exp,
gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp,
gdb.trace/while-stepping.exp: Use a unique name for the compiled
executable.
2009-06-09 17:12:43 +00:00
|
|
|
set binfile ${objdir}/${subdir}/mi-disassemble
|
2000-02-23 00:25:43 +00:00
|
|
|
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
|
2006-08-10 05:27:22 +00:00
|
|
|
untested mi-disassemble.exp
|
|
|
|
return -1
|
2000-02-23 00:25:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
proc test_disassembly_only {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
2000-03-06 21:33:38 +00:00
|
|
|
global decimal
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
set line_main_head [gdb_get_line_number "main ("]
|
|
|
|
set line_main_body [expr $line_main_head + 2]
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
# Test disassembly more only for the current function.
|
|
|
|
# Tests:
|
2000-03-06 19:46:40 +00:00
|
|
|
# -data-disassemble -s $pc -e "$pc+8" -- 0
|
2004-08-15 10:15:58 +00:00
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -- 0
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
mi_gdb_test "print/x \$pc" "" ""
|
2000-03-06 19:46:40 +00:00
|
|
|
mi_gdb_test "111-data-disassemble -s \$pc -e \"\$pc + 12\" -- 0" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"111\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\},\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}.*\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble from pc to pc+12 assembly only"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -- 0" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file & line, assembly only"
|
2000-02-23 00:25:43 +00:00
|
|
|
}
|
|
|
|
|
2011-01-12 15:02:12 +00:00
|
|
|
proc test_disassembly_with_opcodes {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
|
|
|
global decimal
|
|
|
|
|
|
|
|
set line_main_head [gdb_get_line_number "main ("]
|
|
|
|
set line_main_body [expr $line_main_head + 2]
|
|
|
|
|
|
|
|
# Test disassembly with opcodes for the current function.
|
|
|
|
# Tests:
|
|
|
|
# -data-disassemble -s $pc -e "$pc+8" -- 2
|
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -- 2
|
|
|
|
|
|
|
|
mi_gdb_test "print/x \$pc" "" ""
|
|
|
|
mi_gdb_test "111-data-disassemble -s \$pc -e \"\$pc + 12\" -- 2" \
|
|
|
|
"111\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\},\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}.*\]" \
|
|
|
|
"data-disassemble from pc to pc+12 assembly with opcodes"
|
|
|
|
|
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -- 2" \
|
|
|
|
"222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",opcodes=\".*\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]" \
|
|
|
|
"data-disassemble file & line, assembly with opcodes"
|
|
|
|
}
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
proc test_disassembly_lines_limit {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
2000-03-06 21:33:38 +00:00
|
|
|
global decimal
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
set line_main_head [gdb_get_line_number "main ("]
|
|
|
|
set line_main_body [expr $line_main_head + 2]
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
# Test disassembly more only for the current function.
|
|
|
|
# Tests:
|
2004-08-15 10:15:58 +00:00
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 20 -- 0
|
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 0 -- 0
|
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 50 -- 0
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
mi_gdb_test "print/x \$pc" "" ""
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 20 -- 0" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number assembly only"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 0 -- 0" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number (zero lines) assembly only"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 50 -- 0" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number (more than main lines) assembly only"
|
2000-02-23 00:25:43 +00:00
|
|
|
}
|
|
|
|
|
2000-03-06 19:46:40 +00:00
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
proc test_disassembly_mixed {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
|
|
|
global decimal
|
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
set line_callee2_head [gdb_get_line_number "callee2 ("]
|
|
|
|
set line_callee2_open_brace [expr $line_callee2_head + 1]
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
# Test disassembly more only for the current function.
|
|
|
|
# Tests:
|
2004-08-15 10:15:58 +00:00
|
|
|
# -data-disassembly -f basics.c -l $line_callee2_open_brace -- 1
|
2000-03-06 19:46:40 +00:00
|
|
|
# -data-disassembly -s $pc -e "$pc+8" -- 1
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "002-data-disassemble -f basics.c -l $line_callee2_open_brace -- 1" \
|
|
|
|
"002\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_callee2_open_brace\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"callee2\",offset=\"0\",inst=\".*\"\}.*\\\]\}.*,src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[.*\{address=\"$hex\",func-name=\"callee2\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line assembly mixed"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# In mixed mode, the lowest level of granularity is the source line.
|
|
|
|
# So we are going to get the disassembly for the source line at
|
2000-03-06 19:46:40 +00:00
|
|
|
# which we are now, even if we have specified that the range is only 2 insns.
|
2000-02-23 00:25:43 +00:00
|
|
|
#
|
2000-03-06 19:46:40 +00:00
|
|
|
mi_gdb_test "003-data-disassemble -s \$pc -e \"\$pc+4\" -- 1" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"003\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}.*\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\\\]" \
|
2000-02-23 00:25:43 +00:00
|
|
|
"data-disassemble range assembly mixed"
|
|
|
|
}
|
|
|
|
|
2011-01-12 15:02:12 +00:00
|
|
|
proc test_disassembly_mixed_with_opcodes {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
|
|
|
global decimal
|
|
|
|
|
|
|
|
set line_callee2_head [gdb_get_line_number "callee2 ("]
|
|
|
|
set line_callee2_open_brace [expr $line_callee2_head + 1]
|
|
|
|
|
|
|
|
# Test disassembly mixed with opcodes for the current function.
|
|
|
|
# Tests:
|
|
|
|
# -data-disassembly -f basics.c -l $line_callee2_open_brace -- 3
|
|
|
|
# -data-disassembly -s $pc -e "$pc+8" -- 3
|
|
|
|
|
|
|
|
mi_gdb_test "002-data-disassemble -f basics.c -l $line_callee2_open_brace -- 3" \
|
|
|
|
"002\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_callee2_open_brace\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"callee2\",offset=\"0\",opcodes=\".*\",inst=\".*\"\}.*\\\]\}.*,src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[.*\{address=\"$hex\",func-name=\"callee2\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
|
|
|
|
"data-disassemble file, line assembly mixed with opcodes"
|
|
|
|
|
|
|
|
#
|
|
|
|
# In mixed mode, the lowest level of granularity is the source line.
|
|
|
|
# So we are going to get the disassembly for the source line at
|
|
|
|
# which we are now, even if we have specified that the range is only 2 insns.
|
|
|
|
#
|
|
|
|
mi_gdb_test "003-data-disassemble -s \$pc -e \"\$pc+4\" -- 3" \
|
|
|
|
"003\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}.*\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",opcodes=\".*\",inst=\".*\"\}\\\]\}\\\]" \
|
|
|
|
"data-disassemble range assembly mixed with opcodes"
|
|
|
|
}
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
proc test_disassembly_mixed_lines_limit {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
|
|
|
global decimal
|
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
set line_main_head [gdb_get_line_number "main ("]
|
|
|
|
set line_main_open_brace [expr $line_main_head + 1]
|
|
|
|
set line_main_body [expr $line_main_head + 2]
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
# Test disassembly more only for the current function.
|
|
|
|
# Tests:
|
2004-08-15 10:15:58 +00:00
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 20 -- 1
|
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 0 -- 1
|
|
|
|
# -data-disassembly -f basics.c -l $line_main_body -n 50 -- 1
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
mi_gdb_test "print/x \$pc" "" ""
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 20 -- 1" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\},.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number assembly mixed"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 0 -- 1" \
|
|
|
|
"222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$line_main_open_brace\",file=\".*basics.c\",line_asm_insn=\\\[\\\]\}\\\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number (zero lines) assembly mixed"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "222-data-disassemble -f basics.c -l $line_main_body -n 50 -- 1" \
|
2001-06-23 20:43:56 +00:00
|
|
|
"222\\^done,asm_insns=\\\[src_and_asm_line=\{line=\"$decimal\",file=\".*basics.c\",line_asm_insn=\\\[\{address=\"$hex\",func-name=\"main\",offset=\"0\",inst=\".*\"\}.*,\{address=\"$hex\",func-name=\"main\",offset=\"$decimal\",inst=\".*\"\}\\\]\}\]" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble file, line, number (more than main lines) assembly mixed"
|
2000-02-23 00:25:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
proc test_disassembly_bogus_args {} {
|
|
|
|
global mi_gdb_prompt
|
|
|
|
global hex
|
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
set line_main_head [gdb_get_line_number "main ("]
|
|
|
|
set line_main_body [expr $line_main_head + 2]
|
|
|
|
|
2000-02-23 00:25:43 +00:00
|
|
|
# Test that bogus input to disassembly command is rejected.
|
|
|
|
# Tests:
|
2000-03-06 19:46:40 +00:00
|
|
|
# -data-disassembly -f foo -l abc -n 0 -- 0
|
|
|
|
# -data-disassembly -s foo -e bar -- 0
|
|
|
|
# -data-disassembly -s $pc -f basics.c -- 0
|
|
|
|
# -data-disassembly -f basics.c -l 32 -- 9
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2000-03-06 19:46:40 +00:00
|
|
|
mi_gdb_test "123-data-disassemble -f foo -l abc -n 0 -- 0" \
|
2011-01-12 21:09:39 +00:00
|
|
|
"123\\^error,msg=\"-data-disassemble: Invalid filename.\"" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble bogus filename"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2000-03-06 19:46:40 +00:00
|
|
|
mi_gdb_test "321-data-disassemble -s foo -e bar -- 0" \
|
gdb/
2008-04-04 Pedro Alves <pedro@codesourcery.com>
* mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
(mi_error_message): Delete declaration.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
returning MI_CMD_ERROR.
* mi/mi-main.c (mi_error_message): Delete.
(mi_cmd_exec_interrupt):
(mi_cmd_thread_select, mi_cmd_thread_list_ids)
(mi_cmd_thread_info): Call error instead of returning
MI_CMD_ERROR.
(mi_cmd_data_list_register_values): Call error instead of
returning MI_CMD_ERROR. Adapt to new get_register interface.
(get_register): Change return typo to void. Call error instead of
returning MI_CMD_ERROR.
(mi_cmd_data_write_register_values): Call error instead of
returning MI_CMD_ERROR.
(mi_cmd_list_features): Return MI_CMD_DONE.
(captured_mi_execute_command): Remove MI_CMD_ERROR handling.
(mi_execute_command): Always print exceptions with -error.
gdb/testsuite/
2008-04-04 Pedro Alves <pedro@codesourcery.com>
* gdb.mi/mi-disassemble.exp, gdb.mi/mi-stack.exp,
gdb.mi/mi-syn-frame.exp, gdb.mi/mi-var-block.exp,
gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-stack.exp,
gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-var-block.exp,
gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp: Update to not
expect an mi error duplicated in stderr.
2008-04-04 21:59:25 +00:00
|
|
|
"321\\^error,msg=\"No symbol \\\\\"foo\\\\\" in current context.\"" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble bogus address"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2000-03-06 19:46:40 +00:00
|
|
|
mi_gdb_test "456-data-disassemble -s \$pc -f basics.c -- 0" \
|
2011-01-12 21:09:39 +00:00
|
|
|
"456\\^error,msg=\"-data-disassemble: Usage: \\( .-f filename -l linenum .-n howmany.. \\| .-s startaddr -e endaddr.\\) .--. mode.\"" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble mix different args"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
2004-08-15 10:15:58 +00:00
|
|
|
mi_gdb_test "789-data-disassemble -f basics.c -l $line_main_body -- 9" \
|
2011-01-12 21:09:39 +00:00
|
|
|
"789\\^error,msg=\"-data-disassemble: Mode argument must be 0, 1, 2, or 3.\"" \
|
2000-03-06 19:46:40 +00:00
|
|
|
"data-disassemble wrong mode arg"
|
2000-02-23 00:25:43 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2002-11-05 15:43:18 +00:00
|
|
|
mi_run_to_main
|
2000-02-23 00:25:43 +00:00
|
|
|
test_disassembly_only
|
2011-01-12 15:02:12 +00:00
|
|
|
test_disassembly_with_opcodes
|
2000-02-23 00:25:43 +00:00
|
|
|
test_disassembly_mixed
|
2011-01-12 15:02:12 +00:00
|
|
|
test_disassembly_mixed_with_opcodes
|
2000-02-23 00:25:43 +00:00
|
|
|
test_disassembly_bogus_args
|
|
|
|
test_disassembly_lines_limit
|
|
|
|
test_disassembly_mixed_lines_limit
|
|
|
|
|
|
|
|
mi_gdb_exit
|
|
|
|
return 0
|