25.10.2014 Views

Debugging Embedded Systems

Debugging Embedded Systems

Debugging Embedded Systems

SHOW MORE
SHOW LESS

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

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

GDB/MI Interface (Cont.)<br />

GDB/MI Output Records (Cont.)<br />

Stream Records<br />

The gdb internally maintains a number of output streams: the console, the target, and<br />

the log. The output intended for each of these streams is funneled through the gdb/mi<br />

interface using stream records:<br />

"~" string-output<br />

The console output stream contains text that should be displayed in the CLI<br />

console window. It contains the textual responses to CLI commands.<br />

"@" string-output<br />

The target output stream contains any textual output from the running target. This<br />

is only present when GDB's event loop is truly synchronous, which is currently only<br />

the case for remote targets.<br />

"&" string-output<br />

The log stream contains debugging messages being produced by gdb's internals.<br />

18

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

Saved successfully!

Ooh no, something went wrong!