Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Registers View and Disassembly View

Roman,

Please, see my comments inline.

----- Original Message ----- From: "Roman Levenstein" <romixlev@xxxxxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent: Sunday, December 18, 2005 6:06 PM
Subject: [cdt-dev] Registers View and Disassembly View


Hi,

I've almost finished the CDT-based plugin for our
toolchain. Many things were done based on the very
valuable help from this newsgroup. Thanks a lot!

One of the things, that we would like to avoid, is
that customers see any processor specific information
in CDT. For example, they should not see register
values and it should be impossible to disassemble. The
reason for that is that we will probably change the
processor family used on our boards and we do not want
the customers to base their solutions on any
processor-specific information.

Anyway, I tried to disable these features in my
plugin. For registers view, I tried to define my own
TargetConfiguration subclass and there I defined
supportsRegisters() and supportsRegisterModification()
to return false. But it seems to me that these flags
are not taken into account by CDT. Therefore, I can
still see the values of registers in the registers
pane. Is it a bug, or is it intended? If it is
intended, what is the semantic of these two flags in
the TargetConfiguration?


This is a bug. Please, submit a bugzilla entry.

Disabling the "Disassembly" view seems to be more
complex. I have no idea how to do it.


A similar flag needs to be added to ICDITargetConfiguration for disassembly. It has been simply overlooked. You are the first who is reporting the problems.

Is there any way to disable some debug views
completely for a certain configuration/toolchain? How
this can be done?


Try to define your own extensions for the "org.eclipse.debug.ui.debugModelContextBinding" and "org.eclipse.debug.ui.contextViewBindings" extension points. Not sure it will work, but give it a try.

Another question is how to disable certain actions in
the context-menus that pop-up in the "Debug" view
(e.g. Relaunch, Disconnect, etc). Are there any easy
solutions for that?


The "supportsDisconnect" method of ICDITargetConfiguration should work for "Disconnect". The "Relaunch" action is a part of the platform and CDT doesn't have control on it.

Thanks,
Roman



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top