Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tcf-dev] breakpoints / access types

Hello,

I am working on a debugger using tcf and I've hit into an issue concerning it & Eclipse, and I don't know what to make of it.

On debugging an application, when I toggle a breakpoint from Eclipse, the tcf agent finds it to have the type "Auto". However, looking at the function get_bp_access_types from breakpoints.c, we see this:

> if (virtual_addr && type != NULL && strcmp(type, "Software") == 0) access_types |= CTX_BP_ACCESS_SOFTWARE;

Basically, if the breakpoint type is Auto (default case from Eclipse), then the CTX_BP_ACCESS_SOFTWARE flag is not set, which means that when the context_plant_breakpoint function is called, the debugger can only assume that the user (here, Eclipse) had asked for a hardware breakpoint - even though the "hardware" value of the BreakInstruction struct is 0.

So my question is, what is the expected behavior in tcf? Should "Auto" be translated to "Software" or to "Hardware"? Or, there is a point where the debugger (outside of tcf) is supposed to decide what "Auto" should mean?

Thanks,
Samuel Ghinet


Back to the top