📄 t11_logs.exp
字号:
# 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 "t11_logs"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 t11_logs.exp return -1}if {[target_link $objfile $binfile "${link-flags}"] != ""} then { untested t11_logs.exp return -1}gdb_startgdb_reinitialize_dir $srcdir/$subdirgdb_load $binfilegdb_test "x /i _start" "not.b\tr1h" \ "not.b r1h"gdb_test "x" "not.b\t@er1" \ "not.b @er1"gdb_test "x" "not.b\t@\\(0x3(:2|),er1\\)" \ "not.b @(0x3:2,er1)"gdb_test "x" "not.b\t@er1\\+" \ "not.b @er1+"gdb_test "x" "not.b\t@-er1" \ "not.b @-er1"gdb_test "x" "not.b\t@\\+er1" \ "not.b @+er1"gdb_test "x" "not.b\t@er1-" \ "not.b @er1-"gdb_test "x" "not.b\t@\\(0x1234(:16|),er1\\)" \ "not.b @(0x1234:16,er1)"gdb_test "x" "not.b\t@\\(0x12345678(:32|),er1\\)" \ "not.b @(0x12345678:32,er1)"gdb_test "x" "not.b\t@\\(0x1234(:16|),r2l.b\\)" \ "not.b @(0x1234:16,r2l.b)"gdb_test "x" "not.b\t@\\(0x1234(:16|),r2.w\\)" \ "not.b @(0x1234:16,r2.w)"gdb_test "x" "not.b\t@\\(0x1234(:16|),er2.l\\)" \ "not.b @(0x1234:16,er2.l)"gdb_test "x" "not.b\t@\\(0x12345678(:32|),r2l.b\\)" \ "not.b @(0x12345678:32,r2l.b)"gdb_test "x" "not.b\t@\\(0x12345678(:32|),r2.w\\)" \ "not.b @(0x12345678:32,r2.w)"gdb_test "x" "not.b\t@\\(0x12345678(:32|),er2.l\\)" \ "not.b @(0x12345678:32,er2.l)"gdb_test "x" "not.b\t@0x12(:8|)" \ "not.b @0x12:8"gdb_test "x" "not.b\t@0x1234(:16|)" \ "not.b @0x1234:16"gdb_test "x" "not.b\t@0x12345678(:32|)" \ "not.b @0x12345678:32"gdb_test "x" "not.w\tr1" \ "not.w r1"gdb_test "x" "not.w\t@er1" \ "not.w @er1"gdb_test "x" "not.w\t@\\(0x6(:2|),er1\\)" \ "not.w @(0x6:2,er1)"gdb_test "x" "not.w\t@er1\\+" \ "not.w @er1+"gdb_test "x" "not.w\t@-er1" \ "not.w @-er1"gdb_test "x" "not.w\t@\\+er1" \ "not.w @+er1"gdb_test "x" "not.w\t@er1-" \ "not.w @er1-"gdb_test "x" "not.w\t@\\(0x1234(:16|),er1\\)" \ "not.w @(0x1234:16,er1)"gdb_test "x" "not.w\t@\\(0x12345678(:32|),er1\\)" \ "not.w @(0x12345678:32,er1)"gdb_test "x" "not.w\t@\\(0x1234(:16|),r2l.b\\)" \ "not.w @(0x1234:16,r2l.b)"gdb_test "x" "not.w\t@\\(0x1234(:16|),r2.w\\)" \ "not.w @(0x1234:16,r2.w)"gdb_test "x" "not.w\t@\\(0x1234(:16|),er2.l\\)" \ "not.w @(0x1234:16,er2.l)"gdb_test "x" "not.w\t@\\(0x12345678(:32|),r2l.b\\)" \ "not.w @(0x12345678:32,r2l.b)"gdb_test "x" "not.w\t@\\(0x12345678(:32|),r2.w\\)" \ "not.w @(0x12345678:32,r2.w)"gdb_test "x" "not.w\t@\\(0x12345678(:32|),er2.l\\)" \ "not.w @(0x12345678:32,er2.l)"gdb_test "x" "not.w\t@0x1234(:16|)" \ "not.w @0x1234:16"gdb_test "x" "not.w\t@0x12345678(:32|)" \ "not.w @0x12345678:32"gdb_test "x" "not.l\ter1" \ "not.l er1"gdb_test "x" "not.l\t@er1" \ "not.l @er1"gdb_test "x" "not.l\t@\\(0xc(:2|),er1\\)" \ "not.l @(0xc:2,er1)"gdb_test "x" "not.l\t@er1\\+" \ "not.l @er1+"gdb_test "x" "not.l\t@-er1" \ "not.l @-er1"gdb_test "x" "not.l\t@\\+er1" \ "not.l @+er1"gdb_test "x" "not.l\t@er1-" \ "not.l @er1-"gdb_test "x" "not.l\t@\\(0x1234(:16|),er1\\)" \ "not.l @(0x1234:16,er1)"gdb_test "x" "not.l\t@\\(0x12345678(:32|),er1\\)" \ "not.l @(0x12345678:32,er1)"gdb_test "x" "not.l\t@\\(0x1234(:16|),r2l.b\\)" \ "not.l @(0x1234:16,r2l.b)"gdb_test "x" "not.l\t@\\(0x1234(:16|),r2.w\\)" \ "not.l @(0x1234:16,r2.w)"gdb_test "x" "not.l\t@\\(0x1234(:16|),er2.l\\)" \ "not.l @(0x1234:16,er2.l)"gdb_test "x" "not.l\t@\\(0x12345678(:32|),r2l.b\\)" \ "not.l @(0x12345678:32,r2l.b)"gdb_test "x" "not.l\t@\\(0x12345678(:32|),r2.w\\)" \ "not.l @(0x12345678:32,r2.w)"gdb_test "x" "not.l\t@\\(0x12345678(:32|),er2.l\\)" \ "not.l @(0x12345678:32,er2.l)"gdb_test "x" "not.l\t@0x1234(:16|)" \ "not.l @0x1234:16"gdb_test "x" "not.l\t@0x12345678(:32|)" \ "not.l @0x12345678:32"gdb_test "x" "shll.b\tr1h" \ "shll.b r1h"gdb_test "x" "shll.b\t@er1" \ "shll.b @er1"gdb_test "x" "shll.b\t@\\(0x3(:2|),er1\\)" \ "shll.b @(0x3:2,er1)"gdb_test "x" "shll.b\t@er1\\+" \ "shll.b @er1+"gdb_test "x" "shll.b\t@-er1" \ "shll.b @-er1"gdb_test "x" "shll.b\t@\\+er1" \ "shll.b @+er1"gdb_test "x" "shll.b\t@er1-" \ "shll.b @er1-"gdb_test "x" "shll.b\t@\\(0x1234(:16|),er1\\)" \ "shll.b @(0x1234:16,er1)"gdb_test "x" "shll.b\t@\\(0x12345678(:32|),er1\\)" \ "shll.b @(0x12345678:32,er1)"gdb_test "x" "shll.b\t@\\(0x1234(:16|),r2l.b\\)" \ "shll.b @(0x1234:16,r2l.b)"gdb_test "x" "shll.b\t@\\(0x1234(:16|),r2.w\\)" \ "shll.b @(0x1234:16,r2.w)"gdb_test "x" "shll.b\t@\\(0x1234(:16|),er2.l\\)" \ "shll.b @(0x1234:16,er2.l)"gdb_test "x" "shll.b\t@\\(0x12345678(:32|),r2l.b\\)" \ "shll.b @(0x12345678:32,r2l.b)"gdb_test "x" "shll.b\t@\\(0x12345678(:32|),r2.w\\)" \ "shll.b @(0x12345678:32,r2.w)"gdb_test "x" "shll.b\t@\\(0x12345678(:32|),er2.l\\)" \ "shll.b @(0x12345678:32,er2.l)"gdb_test "x" "shll.b\t@0x12(:8|)" \ "shll.b @0x12:8"gdb_test "x" "shll.b\t@0x1234(:16|)" \ "shll.b @0x1234:16"gdb_test "x" "shll.b\t@0x12345678(:32|)" \ "shll.b @0x12345678:32"gdb_test "x" "shll.w\tr1" \ "shll.w r1"gdb_test "x" "shll.w\t@er1" \ "shll.w @er1"gdb_test "x" "shll.w\t@\\(0x6(:2|),er1\\)" \ "shll.w @(0x6:2,er1)"gdb_test "x" "shll.w\t@er1\\+" \ "shll.w @er1+"gdb_test "x" "shll.w\t@-er1" \ "shll.w @-er1"gdb_test "x" "shll.w\t@\\+er1" \ "shll.w @+er1"gdb_test "x" "shll.w\t@er1-" \ "shll.w @er1-"gdb_test "x" "shll.w\t@\\(0x1234(:16|),er1\\)" \ "shll.w @(0x1234:16,er1)"gdb_test "x" "shll.w\t@\\(0x12345678(:32|),er1\\)" \ "shll.w @(0x12345678:32,er1)"gdb_test "x" "shll.w\t@\\(0x1234(:16|),r2l.b\\)" \ "shll.w @(0x1234:16,r2l.b)"gdb_test "x" "shll.w\t@\\(0x1234(:16|),r2.w\\)" \ "shll.w @(0x1234:16,r2.w)"gdb_test "x" "shll.w\t@\\(0x1234(:16|),er2.l\\)" \ "shll.w @(0x1234:16,er2.l)"gdb_test "x" "shll.w\t@\\(0x12345678(:32|),r2l.b\\)" \ "shll.w @(0x12345678:32,r2l.b)"gdb_test "x" "shll.w\t@\\(0x12345678(:32|),r2.w\\)" \ "shll.w @(0x12345678:32,r2.w)"gdb_test "x" "shll.w\t@\\(0x12345678(:32|),er2.l\\)" \ "shll.w @(0x12345678:32,er2.l)"gdb_test "x" "shll.w\t@0x1234(:16|)" \ "shll.w @0x1234:16"gdb_test "x" "shll.w\t@0x12345678(:32|)" \ "shll.w @0x12345678:32"gdb_test "x" "shll.l\ter1" \ "shll.l er1"gdb_test "x" "shll.l\t@er1" \ "shll.l @er1"gdb_test "x" "shll.l\t@\\(0xc(:2|),er1\\)" \ "shll.l @(0xc:2,er1)"gdb_test "x" "shll.l\t@er1\\+" \ "shll.l @er1+"gdb_test "x" "shll.l\t@-er1" \ "shll.l @-er1"gdb_test "x" "shll.l\t@\\+er1" \ "shll.l @+er1"gdb_test "x" "shll.l\t@er1-" \ "shll.l @er1-"gdb_test "x" "shll.l\t@\\(0x1234(:16|),er1\\)" \ "shll.l @(0x1234:16,er1)"gdb_test "x" "shll.l\t@\\(0x12345678(:32|),er1\\)" \ "shll.l @(0x12345678:32,er1)"gdb_test "x" "shll.l\t@\\(0x1234(:16|),r2l.b\\)" \ "shll.l @(0x1234:16,r2l.b)"gdb_test "x" "shll.l\t@\\(0x1234(:16|),r2.w\\)" \ "shll.l @(0x1234:16,r2.w)"gdb_test "x" "shll.l\t@\\(0x1234(:16|),er2.l\\)" \ "shll.l @(0x1234:16,er2.l)"gdb_test "x" "shll.l\t@\\(0x12345678(:32|),r2l.b\\)" \ "shll.l @(0x12345678:32,r2l.b)"gdb_test "x" "shll.l\t@\\(0x12345678(:32|),r2.w\\)" \ "shll.l @(0x12345678:32,r2.w)"gdb_test "x" "shll.l\t@\\(0x12345678(:32|),er2.l\\)" \ "shll.l @(0x12345678:32,er2.l)"gdb_test "x" "shll.l\t@0x1234(:16|)" \ "shll.l @0x1234:16"gdb_test "x" "shll.l\t@0x12345678(:32|)" \ "shll.l @0x12345678:32"gdb_test "x" "shll.b\t#2,r1h" \ "shll.b #2,r1h"gdb_test "x" "shll.b\t#2,@er1" \ "shll.b #2,@er1"gdb_test "x" "shll.b\t#2,@\\(0x3(:2|),er1\\)" \ "shll.b #2,@(0x3:2,er1)"gdb_test "x" "shll.b\t#2,@er1\\+" \ "shll.b #2,@er1+"gdb_test "x" "shll.b\t#2,@-er1" \ "shll.b #2,@-er1"gdb_test "x" "shll.b\t#2,@\\+er1" \ "shll.b #2,@+er1"gdb_test "x" "shll.b\t#2,@er1-" \ "shll.b #2,@er1-"gdb_test "x" "shll.b\t#2,@\\(0x1234(:16|),er1\\)" \ "shll.b #2,@(0x1234:16,er1)"gdb_test "x" "shll.b\t#2,@\\(0x12345678(:32|),er1\\)" \ "shll.b #2,@(0x12345678:32,er1)"gdb_test "x" "shll.b\t#2,@\\(0x1234(:16|),r2l.b\\)" \ "shll.b #2,@(0x1234:16,r2l.b)"gdb_test "x" "shll.b\t#2,@\\(0x1234(:16|),r2.w\\)" \ "shll.b #2,@(0x1234:16,r2.w)"gdb_test "x" "shll.b\t#2,@\\(0x1234(:16|),er2.l\\)" \ "shll.b #2,@(0x1234:16,er2.l)"gdb_test "x" "shll.b\t#2,@\\(0x12345678(:32|),r2l.b\\)" \ "shll.b #2,@(0x12345678:32,r2l.b)"gdb_test "x" "shll.b\t#2,@\\(0x12345678(:32|),r2.w\\)" \ "shll.b #2,@(0x12345678:32,r2.w)"gdb_test "x" "shll.b\t#2,@\\(0x12345678(:32|),er2.l\\)" \ "shll.b #2,@(0x12345678:32,er2.l)"gdb_test "x" "shll.b\t#2,@0x12(:8|)" \ "shll.b #2,@0x12:8"gdb_test "x" "shll.b\t#2,@0x1234(:16|)" \ "shll.b #2,@0x1234:16"gdb_test "x" "shll.b\t#2,@0x12345678(:32|)" \ "shll.b #2,@0x12345678:32"gdb_test "x" "shll.w\t#2,r1" \ "shll.w #2,r1"gdb_test "x" "shll.w\t#2,@er1" \ "shll.w #2,@er1"gdb_test "x" "shll.w\t#2,@\\(0x6(:2|),er1\\)" \ "shll.w #2,@(0x6:2,er1)"gdb_test "x" "shll.w\t#2,@er1\\+" \ "shll.w #2,@er1+"gdb_test "x" "shll.w\t#2,@-er1" \ "shll.w #2,@-er1"gdb_test "x" "shll.w\t#2,@\\+er1" \ "shll.w #2,@+er1"gdb_test "x" "shll.w\t#2,@er1-" \ "shll.w #2,@er1-"gdb_test "x" "shll.w\t#2,@\\(0x1234(:16|),er1\\)" \ "shll.w #2,@(0x1234:16,er1)"gdb_test "x" "shll.w\t#2,@\\(0x12345678(:32|),er1\\)" \ "shll.w #2,@(0x12345678:32,er1)"gdb_test "x" "shll.w\t#2,@\\(0x1234(:16|),r2l.b\\)" \ "shll.w #2,@(0x1234:16,r2l.b)"gdb_test "x" "shll.w\t#2,@\\(0x1234(:16|),r2.w\\)" \ "shll.w #2,@(0x1234:16,r2.w)"gdb_test "x" "shll.w\t#2,@\\(0x1234(:16|),er2.l\\)" \ "shll.w #2,@(0x1234:16,er2.l)"gdb_test "x" "shll.w\t#2,@\\(0x12345678(:32|),r2l.b\\)" \ "shll.w #2,@(0x12345678:32,r2l.b)"gdb_test "x" "shll.w\t#2,@\\(0x12345678(:32|),r2.w\\)" \ "shll.w #2,@(0x12345678:32,r2.w)"gdb_test "x" "shll.w\t#2,@\\(0x12345678(:32|),er2.l\\)" \ "shll.w #2,@(0x12345678:32,er2.l)"gdb_test "x" "shll.w\t#2,@0x1234(:16|)" \ "shll.w #2,@0x1234:16"gdb_test "x" "shll.w\t#2,@0x12345678(:32|)" \ "shll.w #2,@0x12345678:32"gdb_test "x" "shll.l\t#2,er1" \ "shll.l #2,er1"gdb_test "x" "shll.l\t#2,@er1" \ "shll.l #2,@er1"gdb_test "x" "shll.l\t#2,@\\(0xc(:2|),er1\\)" \ "shll.l #2,@(0xc:2,er1)"gdb_test "x" "shll.l\t#2,@er1\\+" \ "shll.l #2,@er1+"gdb_test "x" "shll.l\t#2,@-er1" \ "shll.l #2,@-er1"gdb_test "x" "shll.l\t#2,@\\+er1" \ "shll.l #2,@+er1"gdb_test "x" "shll.l\t#2,@er1-" \ "shll.l #2,@er1-"gdb_test "x" "shll.l\t#2,@\\(0x1234(:16|),er1\\)" \ "shll.l #2,@(0x1234:16,er1)"gdb_test "x" "shll.l\t#2,@\\(0x12345678(:32|),er1\\)" \ "shll.l #2,@(0x12345678:32,er1)"gdb_test "x" "shll.l\t#2,@\\(0x1234(:16|),r2l.b\\)" \ "shll.l #2,@(0x1234:16,r2l.b)"gdb_test "x" "shll.l\t#2,@\\(0x1234(:16|),r2.w\\)" \ "shll.l #2,@(0x1234:16,r2.w)"gdb_test "x" "shll.l\t#2,@\\(0x1234(:16|),er2.l\\)" \ "shll.l #2,@(0x1234:16,er2.l)"gdb_test "x" "shll.l\t#2,@\\(0x12345678(:32|),r2l.b\\)" \ "shll.l #2,@(0x12345678:32,r2l.b)"gdb_test "x" "shll.l\t#2,@\\(0x12345678(:32|),r2.w\\)" \ "shll.l #2,@(0x12345678:32,r2.w)"gdb_test "x" "shll.l\t#2,@\\(0x12345678(:32|),er2.l\\)" \ "shll.l #2,@(0x12345678:32,er2.l)"gdb_test "x" "shll.l\t#2,@0x1234(:16|)" \ "shll.l #2,@0x1234:16"gdb_test "x" "shll.l\t#2,@0x12345678(:32|)" \ "shll.l #2,@0x12345678:32"gdb_test "x" "shll.b\t#4,r1h" \ "shll.b #4,r1h"gdb_test "x" "shll.b\t#4,@er1" \ "shll.b #4,@er1"gdb_test "x" "shll.b\t#4,@\\(0x3(:2|),er1\\)" \ "shll.b #4,@(0x3:2,er1)"gdb_test "x" "shll.b\t#4,@er1\\+" \ "shll.b #4,@er1+"gdb_test "x" "shll.b\t#4,@-er1" \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -