Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-dd-dev] Disassembly related DSF questions

Hi Mikhail,
Each debugger integration based on DSF has the burden of registering all the flexible hierarchy and retargetable command adapters.  This allows for maximum flexibility, but it can be somewhat confusing as adapters themselves. 
For GDB debugger integration, there is a module called GdbAdapterFactory that registers all of its adapters (there is also a similar PDAAdapterFactory in the example debugge).  This is where you can register IDisassemblyContextProvider interface.  When you register this provider in the same way that the retargetable action adapters are registered, this provider will be returned by all elements belonging to the GDB debugger.  It is then up to the implementation of IDisassemblyContextProvier to determine whether and what disassembly context to return for the given element.

Cheers,
Pawel

Mikhail Khodjaiants wrote:
Hi,
 
To communicate with the new disassembly framework a debug model must implement "IDisassemblyContextProvider" interface and register an adapter factory for the model elements that provide access to the disassembly service.
The object provided by IDisassemblyContextProvider is passed to the model via other adapters as a disassembly context.
For CDI based debuggers, the disassembly context provider for "ICDebugElement" retrieves "IDisassembly" from the corresponding "ICDebugTarget".
 
DSF has an interface - "IDisassemblyDMContext" which seems to be the right candidate for the disassembly context (at least by name :) ). If so, how can I register an "IDisassemblyContextProvider" adapter for it?
 
Another question is how to contribute an action (or a command) to a DSF view model element that adapts to IDisassemblyContextProvider.
 
Thanks,
Mikhail   
 
 

--

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.


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


Back to the top