Chapter 6. lemonide debugger, 1 debugging preparation, 1 execute target agent – Solvline LemonIDE Ver 1.0e User Manual

Page 40: 2 cautions when setting compile options, Chapter 6. lemonide debugger -16, 1 debugging preparation -16

Advertising
background image

LemonIDE

TM

User’s Guide

Chapter 6. LemonIDE Debugger

LemonIDE supports breakpoint & tracepoint debugging methods.

This chapter will demonstrate procedures of breakpoint debugging with the hello.c project introduced in section “5.2

Creating & Editing Source Codes”

Adding a breakpoint

Remote debugging configuration

Starting remote debugging

Program run control

Moving into a function

Confirm and modify the values of variables, registers, and equations.

Leaving a function

6.1 Debugging Preparation

Unlike debugging on a host, remote target debugging requires some configurations to be set.

6.1.1 Execute Target Agent

Execute Target Agent on the Target System, Eddy.

Refer to “5.5.2 Executing Run Method(with result to Serial Port)” or “5.5.3 Executing Run Method(with result to

Telnet)” for detailed procedures.

6.1.2 Cautions when setting compile options

The following debugging options must be set with care.

Makefile in “5.3.1. Creating & Updating Makefile” is set with optimization compile option and breakpoint

debugging and tracepoint debugging is not possible

.


-O, -O1, -O2, -O3

Optimization option to minimize the size or the speed of

binary file. Debugging is not possible when binary file is

compiled with this option.

Optimization option

Debugging not possible

strip

Zip program used to minimize size in compilations.

Debugging information is stripped out when compiled with

this option and debugging is not possible.

6-16

Advertising