10.01.2015 Views

Intel(r) UEFI Development Kit Debugger Tool User Manual

Intel(r) UEFI Development Kit Debugger Tool User Manual

Intel(r) UEFI Development Kit Debugger Tool User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6<br />

Configure<br />

the Linux Debug<br />

Environment<br />

6.1 Introduction<br />

This section contains these major discussions:<br />

Build the firmware image—described earlier in Section 3 of this manual<br />

Configure the host machine—install and configure software and host settings<br />

Install and configure the <strong>Intel</strong> UDK <strong>Debugger</strong> <strong>Tool</strong><br />

Connect the host and target systems<br />

6.2 Configure the Linux host machine<br />

To configure a Linux platform, first install the debug solution then configure the host<br />

for debugging the target platform. The following figure shows how the debug components<br />

interact on a Linux platform during a debug session.<br />

Note: For Linux platforms, x64 code can only be debugged when using GDB on x64 Linux<br />

platforms. When debugging x64 platforms, make sure to build the firmware image<br />

on an x64 Linux machine so that the debug symbols are accessible to the GDB.<br />

6.3 Verify the Linux/GDB platform<br />

The GDB is typically installed by default with most Linux OS’s. However, it is advisable<br />

to verify this before trying to configure the host machine or install the <strong>Intel</strong> UDK <strong>Debugger</strong><br />

<strong>Tool</strong>. Follow these general steps:<br />

1. Make sure the host machine is configured with a supported Linux OS (refer to the list<br />

of supported operating systems in Section 2 of this user manual).<br />

2. Verify that the GDB is installed as appropriate for a Linux-based OS. Although GDB<br />

supports the unresolved breakpoint setting by design, it needs to be recompiled to<br />

include the Expat XML parsing library because the pre-installation doesn’t include it.<br />

Using the GDB pre-installed doesn’t block the other features.<br />

Use “--target=x86_64-w64-mingw32 --with-expat” as the parameter to configure the<br />

GDB before Make so GDB can use the Expat XML parsing library. This library may be<br />

included in the end user’s Linux distribution. If not, it can be easily downloaded<br />

from http://expat.sourceforge.net.<br />

32

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

Saved successfully!

Ooh no, something went wrong!