⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 t01_mov.exp

📁 gdb-6.8 Linux下的调试程序 最新版本
💻 EXP
📖 第 1 页 / 共 5 页
字号:
# Copyright (C) 2003, 2007, 2008 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# the Free Software Foundation; either version 3 of the License, or# (at your option) any later version.## 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.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.# Please email any bugs, comments, and/or additions to this file to:# bug-gdb@prep.ai.mit.edu# This file was written by Michael Snyder (msnyder@redhat.com)if $tracelevel then {	strace $tracelevel}if ![istarget "h8300*-*-*"] {    verbose "Tests ignored for all but h8300s based targets."    return}set prms_id 0set bug_id 0set testfile "t01_mov"set srcfile ${srcdir}/${subdir}/${testfile}.sset objfile ${objdir}/${subdir}/${testfile}.oset binfile ${objdir}/${subdir}/${testfile}.xset asm-flags "";set link-flags "-m h8300sxelf";if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} then {     untested t01_mov.exp     return -1}if {[target_link $objfile $binfile "${link-flags}"] != ""} then {     untested t01_mov.exp     return -1}gdb_startgdb_reinitialize_dir $srcdir/$subdirgdb_load $binfilegdb_test "x/i _start" "mov.b	#0x12(:8|),r3h" \	"mov.b	#0x12:8,r3h"gdb_test "x" "mov.b	#0x12(:8|),@er3" \	"mov.b	#0x12:8,@er3"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x1:2,er3\\)" \	"mov.b	#0x12:8,@(0x1:2,er3)"gdb_test "x" "mov.b	#0x12(:8|),@-er3" \	"mov.b	#0x12:8,@-er3"gdb_test "x" "mov.b	#0x12(:8|),@er3\\+" \	"mov.b	#0x12:8,@er3+"gdb_test "x" "mov.b	#0x12(:8|),@er3-" \	"mov.b	#0x12:8,@er3-"gdb_test "x" "mov.b	#0x12(:8|),@\\+er3" \	"mov.b	#0x12:8,@+er3"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x1234:16,er3\\)" \	"mov.b	#0x12:8,@(0x1234:16,er3)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x12345678:32,er3\\)" \	"mov.b	#0x12:8,@(0x12345678:32,er3)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x1234:16,r3l.b\\)" \	"mov.b	#0x12:8,@(0x1234:16,r3l.b)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x1234:16,r3.w\\)" \	"mov.b	#0x12:8,@(0x1234:16,r3.w)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x1234:16,er3.l\\)" \	"mov.b	#0x12:8,@(0x1234:16,er3.l)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x12345678:32,r3l.b\\)" \	"mov.b	#0x12:8,@(0x12345678:32,r3l.b)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x12345678:32,r3.w\\)" \	"mov.b	#0x12:8,@(0x12345678:32,r3.w)"gdb_test "x" "mov.b	#0x12(:8|),@\\(0x12345678:32,er3.l\\)" \	"mov.b	#0x12:8,@(0x12345678:32,er3.l)"gdb_test "x" "mov.b	#0x12(:8|),@0x1234:16" \	"mov.b	#0x12:8,@0x1234:16"gdb_test "x" "mov.b	#0x12(:8|),@0x12345678:32" \	"mov.b	#0x12:8,@0x12345678:32"gdb_test "x" "mov.b	#0x1(:4|),@0x1234:16" \	"mov.b	#0x1:4,@0x1234:16"gdb_test "x" "mov.b	#0x1(:4|),@0x12345678:32" \	"mov.b	#0x1:4,@0x12345678:32"gdb_test "x" "mov.b	r3h,r1h" \	"mov.b	r3h,r1h"gdb_test "x" "mov.b	r3h,@er1" \	"mov.b	r3h,@er1"gdb_test "x" "mov.b	r3h,@\\(0x1:2,er1\\)" \	"mov.b	r3h,@(0x1:2,er1)"gdb_test "x" "mov.b	r3h,@-er1" \	"mov.b	r3h,@-er1"gdb_test "x" "mov.b	r3h,@er1\\+" \	"mov.b	r3h,@er1+"gdb_test "x" "mov.b	r3h,@er1-" \	"mov.b	r3h,@er1-"gdb_test "x" "mov.b	r3h,@\\+er1" \	"mov.b	r3h,@+er1"gdb_test "x" "mov.b	r3h,@\\(0x1234:16,er1\\)" \	"mov.b	r3h,@(0x1234:16,er1)"gdb_test "x" "mov.b	r3h,@\\(0x12345678:32,er1\\)" \	"mov.b	r3h,@(0x12345678:32,er1)"gdb_test "x" "mov.b	r3h,@\\(0x1234:16,r1l.b\\)" \	"mov.b	r3h,@(0x1234:16,r1l.b)"gdb_test "x" "mov.b	r3h,@\\(0x1234:16,r1.w\\)" \	"mov.b	r3h,@(0x1234:16,r1.w)"gdb_test "x" "mov.b	r3h,@\\(0x1234:16,er1.l\\)" \	"mov.b	r3h,@(0x1234:16,er1.l)"gdb_test "x" "mov.b	r3h,@\\(0x12345678:32,r1l.b\\)" \	"mov.b	r3h,@(0x12345678:32,r1l.b)"gdb_test "x" "mov.b	r3h,@\\(0x12345678:32,r1.w\\)" \	"mov.b	r3h,@(0x12345678:32,r1.w)"gdb_test "x" "mov.b	r3h,@\\(0x12345678:32,er1.l\\)" \	"mov.b	r3h,@(0x12345678:32,er1.l)"gdb_test "x" "mov.b	r3h,@0x12(:8|)" \	"mov.b	r3h,@0x12:8"gdb_test "x" "mov.b	r3h,@0x1234:16" \	"mov.b	r3h,@0x1234:16"gdb_test "x" "mov.b	r3h,@0x12345678:32" \	"mov.b	r3h,@0x12345678:32"gdb_test "x" "mov.b	@er3,r1h" \	"mov.b	@er3,r1h"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),r1h" \	"mov.b	@(0x1:2,er3),r1h"gdb_test "x" "mov.b	@er3\\+,r1h" \	"mov.b	@er3+,r1h"gdb_test "x" "mov.b	@-er3,r1h" \	"mov.b	@-er3,r1h"gdb_test "x" "mov.b	@\\+er3,r1h" \	"mov.b	@+er3,r1h"gdb_test "x" "mov.b	@er3-,r1h" \	"mov.b	@er3-,r1h"gdb_test "x" "mov.b	@\\(0x1234:16,er3\\),r1h" \	"mov.b	@(0x1234:16,er3),r1h"gdb_test "x" "mov.b	@\\(0x12345678:32,er3\\),r1h" \	"mov.b	@(0x12345678:32,er3),r1h"gdb_test "x" "mov.b	@\\(0x1234:16,r3l.b\\),r1h" \	"mov.b	@(0x1234:16,r3l.b),r1h"gdb_test "x" "mov.b	@\\(0x1234:16,r3.w\\),r1h" \	"mov.b	@(0x1234:16,r3.w),r1h"gdb_test "x" "mov.b	@\\(0x1234:16,er3.l\\),r1h" \	"mov.b	@(0x1234:16,er3.l),r1h"gdb_test "x" "mov.b	@\\(0x12345678:32,r3l.b\\),r1h" \	"mov.b	@(0x12345678:32,r3l.b),r1h"gdb_test "x" "mov.b	@\\(0x12345678:32,r3.w\\),r1h" \	"mov.b	@(0x12345678:32,r3.w),r1h"gdb_test "x" "mov.b	@\\(0x12345678:32,er3.l\\),r1h" \	"mov.b	@(0x12345678:32,er3.l),r1h"gdb_test "x" "mov.b	@0x12(:8|),r3h" \	"mov.b	@0x12:8,r3h"gdb_test "x" "mov.b	@0x1234:16,r3h" \	"mov.b	@0x1234:16,r3h"gdb_test "x" "mov.b	@0x12345678:32,r3h" \	"mov.b	@0x12345678:32,r3h"gdb_test "x" "mov.b	@er3,@er1" \	"mov.b	@er3,@er1"gdb_test "x" "mov.b	@er3,@\\(0x1:2,er1\\)" \	"mov.b	@er3,@(0x1:2,er1)"gdb_test "x" "mov.b	@er3,@er1\\+" \	"mov.b	@er3,@er1+"gdb_test "x" "mov.b	@er3,@-er1" \	"mov.b	@er3,@-er1"gdb_test "x" "mov.b	@er3,@\\+er1" \	"mov.b	@er3,@+er1"gdb_test "x" "mov.b	@er3,@er1-" \	"mov.b	@er3,@er1-"gdb_test "x" "mov.b	@er3,@\\(0x1234:16,er1\\)" \	"mov.b	@er3,@(0x1234:16,er1)"gdb_test "x" "mov.b	@er3,@\\(0x12345678:32,er1\\)" \	"mov.b	@er3,@(0x12345678:32,er1)"gdb_test "x" "mov.b	@er3,@\\(0x1234:16,r1l.b\\)" \	"mov.b	@er3,@(0x1234:16,r1l.b)"gdb_test "x" "mov.b	@er3,@\\(0x1234:16,r1.w\\)" \	"mov.b	@er3,@(0x1234:16,r1.w)"gdb_test "x" "mov.b	@er3,@\\(0x1234:16,er1.l\\)" \	"mov.b	@er3,@(0x1234:16,er1.l)"gdb_test "x" "mov.b	@er3,@\\(0x12345678:32,r1l.b\\)" \	"mov.b	@er3,@(0x12345678:32,r1l.b)"gdb_test "x" "mov.b	@er3,@\\(0x12345678:32,r1.w\\)" \	"mov.b	@er3,@(0x12345678:32,r1.w)"gdb_test "x" "mov.b	@er3,@\\(0x12345678:32,er1.l\\)" \	"mov.b	@er3,@(0x12345678:32,er1.l)"gdb_test "x" "mov.b	@er3,@0x1234:16" \	"mov.b	@er3,@0x1234:16"gdb_test "x" "mov.b	@er3,@0x12345678:32" \	"mov.b	@er3,@0x12345678:32"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@er1" \	"mov.b	@(0x1:2,er3),@er1"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x1:2,er1\\)" \	"mov.b	@(0x1:2,er3),@(0x1:2,er1)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@er1\\+" \	"mov.b	@(0x1:2,er3),@er1+"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@-er1" \	"mov.b	@(0x1:2,er3),@-er1"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\+er1" \	"mov.b	@(0x1:2,er3),@+er1"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@er1-" \	"mov.b	@(0x1:2,er3),@er1-"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x1234:16,er1\\)" \	"mov.b	@(0x1:2,er3),@(0x1234:16,er1)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x12345678:32,er1\\)" \	"mov.b	@(0x1:2,er3),@(0x12345678:32,er1)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x1234:16,r1l.b\\)" \	"mov.b	@(0x1:2,er3),@(0x1234:16,r1l.b)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x1234:16,r1.w\\)" \	"mov.b	@(0x1:2,er3),@(0x1234:16,r1.w)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x1234:16,er1.l\\)" \	"mov.b	@(0x1:2,er3),@(0x1234:16,er1.l)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x12345678:32,r1l.b\\)" \	"mov.b	@(0x1:2,er3),@(0x12345678:32,r1l.b)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x12345678:32,r1.w\\)" \	"mov.b	@(0x1:2,er3),@(0x12345678:32,r1.w)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@\\(0x12345678:32,er1.l\\)" \	"mov.b	@(0x1:2,er3),@(0x12345678:32,er1.l)"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@0x1234:16" \	"mov.b	@(0x1:2,er3),@0x1234:16"gdb_test "x" "mov.b	@\\(0x1:2,er3\\),@0x12345678:32" \	"mov.b	@(0x1:2,er3),@0x12345678:32"gdb_test "x" "mov.b	@-er3,@er1" \	"mov.b	@-er3,@er1"gdb_test "x" "mov.b	@-er3,@\\(0x1:2,er1\\)" \	"mov.b	@-er3,@(0x1:2,er1)"gdb_test "x" "mov.b	@-er3,@er1\\+" \	"mov.b	@-er3,@er1+"gdb_test "x" "mov.b	@-er3,@-er1" \	"mov.b	@-er3,@-er1"gdb_test "x" "mov.b	@-er3,@\\+er1" \	"mov.b	@-er3,@+er1"gdb_test "x" "mov.b	@-er3,@er1-" \	"mov.b	@-er3,@er1-"gdb_test "x" "mov.b	@-er3,@\\(0x1234:16,er1\\)" \	"mov.b	@-er3,@(0x1234:16,er1)"gdb_test "x" "mov.b	@-er3,@\\(0x12345678:32,er1\\)" \	"mov.b	@-er3,@(0x12345678:32,er1)"gdb_test "x" "mov.b	@-er3,@\\(0x1234:16,r1l.b\\)" \	"mov.b	@-er3,@(0x1234:16,r1l.b)"gdb_test "x" "mov.b	@-er3,@\\(0x1234:16,r1.w\\)" \	"mov.b	@-er3,@(0x1234:16,r1.w)"gdb_test "x" "mov.b	@-er3,@\\(0x1234:16,er1.l\\)" \	"mov.b	@-er3,@(0x1234:16,er1.l)"gdb_test "x" "mov.b	@-er3,@\\(0x12345678:32,r1l.b\\)" \	"mov.b	@-er3,@(0x12345678:32,r1l.b)"gdb_test "x" "mov.b	@-er3,@\\(0x12345678:32,r1.w\\)" \	"mov.b	@-er3,@(0x12345678:32,r1.w)"gdb_test "x" "mov.b	@-er3,@\\(0x12345678:32,er1.l\\)" \	"mov.b	@-er3,@(0x12345678:32,er1.l)"gdb_test "x" "mov.b	@-er3,@0x1234:16" \	"mov.b	@-er3,@0x1234:16"gdb_test "x" "mov.b	@-er3,@0x12345678:32" \	"mov.b	@-er3,@0x12345678:32"gdb_test "x" "mov.b	@er3\\+,@er1" \	"mov.b	@er3+,@er1"gdb_test "x" "mov.b	@er3\\+,@\\(0x1:2,er1\\)" \	"mov.b	@er3+,@(0x1:2,er1)"gdb_test "x" "mov.b	@er3\\+,@er1\\+" \	"mov.b	@er3+,@er1+"gdb_test "x" "mov.b	@er3\\+,@-er1" \	"mov.b	@er3+,@-er1"gdb_test "x" "mov.b	@er3\\+,@\\+er1" \	"mov.b	@er3+,@+er1"gdb_test "x" "mov.b	@er3\\+,@er1-" \	"mov.b	@er3+,@er1-"gdb_test "x" "mov.b	@er3\\+,@\\(0x1234:16,er1\\)" \	"mov.b	@er3+,@(0x1234:16,er1)"gdb_test "x" "mov.b	@er3\\+,@\\(0x12345678:32,er1\\)" \	"mov.b	@er3+,@(0x12345678:32,er1)"gdb_test "x" "mov.b	@er3\\+,@\\(0x1234:16,r1l.b\\)" \	"mov.b	@er3+,@(0x1234:16,r1l.b)"gdb_test "x" "mov.b	@er3\\+,@\\(0x1234:16,r1.w\\)" \	"mov.b	@er3+,@(0x1234:16,r1.w)"gdb_test "x" "mov.b	@er3\\+,@\\(0x1234:16,er1.l\\)" \	"mov.b	@er3+,@(0x1234:16,er1.l)"gdb_test "x" "mov.b	@er3\\+,@\\(0x12345678:32,r1l.b\\)" \	"mov.b	@er3+,@(0x12345678:32,r1l.b)"gdb_test "x" "mov.b	@er3\\+,@\\(0x12345678:32,r1.w\\)" \	"mov.b	@er3+,@(0x12345678:32,r1.w)"gdb_test "x" "mov.b	@er3\\+,@\\(0x12345678:32,er1.l\\)" \	"mov.b	@er3+,@(0x12345678:32,er1.l)"gdb_test "x" "mov.b	@er3\\+,@0x1234:16" \	"mov.b	@er3+,@0x1234:16"gdb_test "x" "mov.b	@er3\\+,@0x12345678:32" \	"mov.b	@er3+,@0x12345678:32"gdb_test "x" "mov.b	@er3-,@er1" \	"mov.b	@er3-,@er1"gdb_test "x" "mov.b	@er3-,@\\(0x1:2,er1\\)" \	"mov.b	@er3-,@(0x1:2,er1)"gdb_test "x" "mov.b	@er3-,@er1\\+" \

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -