uaa@rouge:~/utk/utkernel_source/kernel/sysmain/build/app_h8s2212$ h8300-elf-gdb kernel-rom.rom GNU gdb 6.7 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=h8300-elf"... (gdb) target sim Connected to the simulator. (gdb) load Loading section .text, size 0x39f0 vma 0x0 Loading section .data, size 0x40 vma 0xf780 Start address 0x0 Transfer rate: 119168 bits in <1 sec. (gdb) show arch The target architecture is set automatically (currently h8300hn) (gdb) b __reset Breakpoint 1 at 0x0 (gdb) b _start Breakpoint 2 at 0x204 (gdb) info reg The program has no registers now. (gdb) run Starting program: /home/uaa/utk/utkernel_source/kernel/sysmain/build/app_h8s2212/kernel-rom.rom Breakpoint 1, 0x00000000 in __reset () (gdb) info reg r0 0x0000 0 r1 0x0000 0 r2 0x0000 0 r3 0x0000 0 r4 0x0000 0 r5 0x0000 0 r6 0x0000 0 sp 0x0000 0 ccr 0x00 0 I-0 UI-0 H-0 U-0 N-0 Z-0 V-0 C-0 u> u>= != >= > pc 0x0000 0 cycles 0x0004 4 tick 0x0002 2 inst 0x0000 0 (gdb) jump _start Continuing at 0x204. Breakpoint 2, 0x00000204 in _start () (gdb) disas _start Dump of assembler code for function _start: 0x00000204 <_start+0>: mov.l #0xff80,er7 0x0000020a <_start+6>: ldc #0xc0,ccr 0x0000020c <_start+8>: mov.w #0xf780,r2 0x00000210 <_start+12>: mov.w #0xf7c0,r3 0x00000214 <_start+16>: cmp.w r2,r3 0x00000216 <_start+18>: ble .+22 (0x22e) 0x00000218 <_start+20>: mov.w #0x39f0,r1 End of assembler dump. (gdb) ni 0x0000020a in _start () (gdb) info reg r0 0x0000 0 r1 0x0000 0 r2 0x0000 0 r3 0x0000 0 r4 0x0000 0 r5 0x0000 0 r6 0x0000 0 sp 0x0000 0 ccr 0x00 0 I-0 UI-0 H-0 U-0 N-0 Z-0 V-0 C-0 u> u>= != >= > pc 0x020a 522 cycles 0x000a 10 tick 0x0004 4 inst 0x0000 0 (gdb) ni 0x0000020c in _start () (gdb) info reg r0 0x0000 0 r1 0x0000 0 r2 0x0000 0 r3 0x0000 0 r4 0x0000 0 r5 0x0000 0 r6 0x0000 0 sp 0x0000 0 ccr 0x00 0 I-0 UI-0 H-0 U-0 N-0 Z-0 V-0 C-0 u> u>= != >= > pc 0x020c 524 cycles 0x000c 12 tick 0x0005 5 inst 0x0000 0 (gdb) ni 0x00000210 in _start () (gdb) info reg r0 0x0000 0 r1 0x0000 0 r2 0xf780 63360 r3 0x0000 0 r4 0x0000 0 r5 0x0000 0 r6 0x0000 0 sp 0x0000 0 ccr 0x00 0 I-0 UI-0 H-0 U-0 N-0 Z-0 V-0 C-0 u> u>= != >= > pc 0x0210 528 cycles 0x0010 16 tick 0x0006 6 inst 0x0000 0 (gdb) ni 0x00000214 in _start () (gdb) info reg r0 0x0000 0 r1 0x0000 0 r2 0xf780 63360 r3 0xf7c0 63424 r4 0x0000 0 r5 0x0000 0 r6 0x0000 0 sp 0x0000 0 ccr 0x00 0 I-0 UI-0 H-0 U-0 N-0 Z-0 V-0 C-0 u> u>= != >= > pc 0x0214 532 cycles 0x0014 20 tick 0x0007 7 inst 0x0000 0 (gdb)