Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Function Breakpoints

I'm not sure I properly understood the issue, but in GDB, you can set a breakpoint using the function name.
Assuming you are using DSF-GDB, programatically, you can use IBreakpoints.insertBreakpoint()
using attributes like these
    Map<String,Object> attr = new HashMap<String,Object>();
       attr.put(MIBreakpoints.BREAKPOINT_TYPE, MIBreakpoints.BREAKPOINT);
       attr.put(MIBreakpoints.FILE_NAME, sourceFile);
       attr.put(MIBreakpoints.FUNCTION, methodName);

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Abdelhalim Ragab
Sent: Monday, April 18, 2011 3:04 PM
To: cdt-dev
Subject: [cdt-dev] Function Breakpoints

Hi, Is there a way to create a function breakpoint programmatically (using the APIs) without knowing the location of the function? 

I don't want to rely on CDT Indexer to return the function location as it not always guaranteed to find it. So any alternatives? you can assume the binary image has been created with debug information.

Alternative way to ask the question, Is there a way to get the location of a "symbol"  (file, or memory address)  during launch/runtime?


Back to the top