12.07.2015 Views

Bug Hunter Diary

Bug Hunter Diary

Bug Hunter Diary

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Other CommandsCommandset disassembly-flavor intel|attshell commandset variable *(address)=valuesource fileset follow-fork-mode parent|childDescriptionSets the disassembly flavor to Intel orAT&T assembly syntax. Default is AT&Tsyntax.Executes a shell command.Stores value at the memory locationspecified by address.Reads debugger commands from a file.Tells the debugger to follow the child orparent process.B.5 Using Linux as a Mac OS X Kernel-Debugging HostIn this section, I will detail the steps I performed to prepare a Linuxsystem as a debugging host for the Mac OS X kernel:• Step 1: Install an ancient Red Hat 7.3 Linux operating system.• Step 2: Get the necessary software packages.• Step 3: Build Apple’s debugger on the Linux host.• Step 4: Prepare the debugging environment.Step 1: Install an Ancient Red Hat 7.3 Linux Operating SystemBecause Apple’s GNU Debugger (gdb) version that I used needs aGNU C Compiler (gcc) less than version 3 to build correctly, I downloadedand installed an ancient Red Hat 7.3 Linux system. 5 To installthe Red Hat system, I chose the installation type Custom. When I wasasked to select the packages to install (Package Group Selection),I chose only the packages Network Support and Software Development,as well as OpenSSH server from the individual package selection.These packages include all the necessary development tools andlibraries to build Apple’s gdb under Linux. During the installation,I added an unprivileged user called tk with a home directory under/home/tk.Debugging 173

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!