Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-dd-dev] Question on Breakpoints

Title: Question on Breakpoints
Hi Veenu,
In the DSF-MI implementation we will try to re-use as much CDT debug model and UI components as possible, including breakpoints.  So any extensions/patches that you would propose for CDT breakpoint objects, would apply to CDI and DSF as well.  In our commercial product we also have breakpoint capabilities that do not match up well with CDT breakpoints, but we haven't quite figure out yet how we will try to address those when we port our product to CDT/DSF.

As far as specifics of your scenario, I'm a little confused.  You say that you want to create a "global" breakpoint for a specific address location, which is active accross multiple processes.  Does this mean that the multiple processes share the same address space? 

But in any case, this is not as important as the fact that any changes to the breakpoint GUI and platform breakpoint objects would need to happen in CDT with or without DSF.

Cheers,
Pawel

Veenu Verma (AS/EAB) wrote:

Hello,
In our OS, one can not attach to a process until it is running.
Since most of the processes are dynamic in nature and have short lifespan so it is not feasible to apply a breakpoint based on thread/process ID.

A work-around is to apply a breakpoint based on address of the instruction and hence, the BP becomes a global BP.
When any process hits that address first, the execution is suspended for that process. Multiple processes can hit the same address though and hence can be suspended.

Thus, If framework exposes the breakpoint type say "Global Breakpoint" then Address Breakpoint is applied and when any process reaches that address,

breakpoint is considered hit for that process.

Do you have a scenario like this as a Use case for DSF project or is it too typical a case?

Can new Breakpoint types be defined using extension points in DSF ?


Thanx
Veenu













_______________________________________________ dsdp-dd-dev mailing list dsdp-dd-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/dsdp-dd-dev


Back to the top