Bochs 执行命令
2019-09-09
37
0
执行程序,直到遇到断点 c命令
如下当前系统已经断点,设定断新的断点后,执行c命令,让程序继续运行,直到遇到断点.
<bochs:1> b 0x7c00
<bochs:2> c
00000004662i[BIOS ] $Revision: 13073 $ $Date: 2017-02-16 22:43:52 +0100 (Do, 16
. Feb 2017) $
00000318050i[KBD ] reset-disable command received
00000320819i[BIOS ] Starting rombios32
00000321257i[BIOS ] Shutdown flag 0
00000321841i[BIOS ] ram_size=0x01000000
00000322262i[BIOS ] ram_end=16MB
00000362830i[BIOS ] Found 1 cpu(s)
00000376414i[BIOS ] bios_table_addr: 0x000f9cd8 end=0x000fcc00
00000600120i[WINGUI] dimension update x=720 y=400 fontheight=16 fontwidth=9 bpp=
8
00000704209i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush)
00001032138i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b
00001032157i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09
00001032176i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b
00001032195i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09
00001032205i[P2ISA ] write: ELCR2 = 0x0a
00001032975i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a
00001040698i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 cl
ass=0x0600
00001042977i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 cl
ass=0x0601
00001045095i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 cl
ass=0x0101
00001045324i[PIDE ] new BM-DMA address: 0xc000
00001045940i[BIOS ] region 4: 0x0000c000
00001047954i[BIOS ] PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020 cl
ass=0x0c03
00001048158i[UHCI ] new base address: 0xc020
00001048774i[BIOS ] region 4: 0x0000c020
00001048902i[UHCI ] new irq line = 9
00001050797i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 cl
ass=0x0680
00001051029i[ACPI ] new irq line = 11
00001051041i[ACPI ] new irq line = 9
00001051066i[ACPI ] new PM base address: 0xb000
00001051080i[ACPI ] new SM base address: 0xb100
00001051108i[PCI ] setting SMRAM control register to 0x4a
00001215201i[CPU0 ] Enter to System Management Mode
00001215201i[CPU0 ] enter_system_management_mode: temporary disable VMX while i
n SMM mode
00001215211i[CPU0 ] RSM: Resuming from System Management Mode
00001379232i[PCI ] setting SMRAM control register to 0x0a
00001394139i[BIOS ] MP table addr=0x000f9db0 MPC table addr=0x000f9ce0 size=0xc
8
00001395961i[BIOS ] SMBIOS table addr=0x000f9dc0
00001398129i[BIOS ] ACPI tables: RSDP addr=0x000f9ee0 ACPI DATA addr=0x00ff0000
size=0xf72
00001401319i[BIOS ] Firmware waking vector 0xff00cc
00001403114i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush)
00001403837i[BIOS ] bios_table_cur_addr: 0x000f9f04
00001531454i[VBIOS ] VGABios $Id: vgabios.c,v 1.76 2013/02/10 08:07:03 vruppert
Exp $
00001531525i[BXVGA ] VBE known Display Interface b0c0
00001531557i[BXVGA ] VBE known Display Interface b0c5
00001534482i[VBIOS ] VBE Bios $Id: vbe.c,v 1.65 2014/07/08 18:02:25 vruppert Exp
$
00014040185i[BIOS ] Booting from 0000:7c00
(0) Breakpoint 1, 0x0000000000007c00 in ?? ()
Next at t=14040240
(0) [0x000000007c00] 0000:7c00 (unk. ctxt): xor ax, ax ; 31c0
<bochs:3>
单步执行:s
00014040185i[BIOS ] Booting from 0000:7c00
(0) Breakpoint 1, 0x0000000000007c00 in ?? ()
Next at t=14040240
(0) [0x000000007c00] 0000:7c00 (unk. ctxt): xor ax, ax ; 31c0
<bochs:3>
执行N条指令:step N
例如执行3条指令: step 3
00014040185i[BIOS ] Booting from 0000:7c00
(0) Breakpoint 1, 0x0000000000007c00 in ?? ()
Next at t=14040240
(0) [0x000000007c00] 0000:7c00 (unk. ctxt): xor ax, ax ; 31c0
<bochs:3> s
Next at t=14040241
(0) [0x000000007c02] 0000:7c02 (unk. ctxt): mov ss, ax ; 8ed0
<bochs:4> step 3
Next at t=14040244
(0) [0x000000007c0d] 0000:7c0d (unk. ctxt): push 0x00000001 ; 66680100
0000
<bochs:5>