Diff for /wikisrc/kernel_debugging_with_qemu.mdwn between versions 1.13 and 1.16

version 1.13, 2018/03/08 16:33:39 version 1.16, 2018/03/16 15:29:26
Line 16  If your host system is running NetBSD, i Line 16  If your host system is running NetBSD, i
 from pkgsrc:  from pkgsrc:
   
 * emulators/qemu >= 2.0.0nb4  * emulators/qemu >= 2.0.0nb4
 * misc/py-anita  * misc/py-anita >= 1.44
   
 If your host system uses a package system other than pkgsrc,  If your host system uses a package system other than pkgsrc,
 use that to install cvs, make, gcc, qemu, the Python pexpect  use that to install cvs, make, gcc, qemu, the Python pexpect
Line 54  Install the system in a virtual machine, Line 54  Install the system in a virtual machine,
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
  $ cd ..   $ cd ..
  $ anita --workdir work --disk-size 4G --memory-size 256M \   $ anita --workdir work --disk-size 8G --memory-size 256M \
      --sets kern-GENERIC,modules,base,etc,comp,debug,games,man,misc,tests,text,syssrc,src,sharesrc,gnusrc \       --sets kern-GENERIC,modules,base,etc,comp,debug,games,man,misc,tests,text,syssrc,src,sharesrc,gnusrc \
      install $(pwd)/obj/releasedir/i386/       install $(pwd)/obj/releasedir/i386/
 """]]  """]]
Line 74  First start the target VM, enabling qemu Line 74  First start the target VM, enabling qemu
 on TCP port 1234:  on TCP port 1234:
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
  $ qemu-system-i386 -nographic -snapshot -hda work/wd0.img -gdb tcp::1234   $ qemu-system-i386 -nographic -snapshot -hda work/wd0.img -m 128 -gdb tcp::1234
 """]]  """]]
   
 If you don't want everyone on the Internet to be able to debug your  If you don't want everyone on the Internet to be able to debug your
Line 84  your firewall. Line 84  your firewall.
 In a second terminal window, start the gdb VM:  In a second terminal window, start the gdb VM:
   
 [[!template  id=programlisting text="""  [[!template  id=programlisting text="""
  $ qemu-system-i386 -nographic -snapshot -hda work/wd0.img   $ qemu-system-i386 -nographic -snapshot -hda work/wd0.img -m 256
 """]]  """]]
   
 Log in to the gdb VM as root and set up the network:  Log in to the gdb VM as root and set up the network:

Removed from v.1.13  
changed lines
  Added in v.1.16


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb