mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 01:45:33 +02:00
Some variable renaming. Be consistent in referring to memory spaces (don't use the term 'page'). No functional or interface change
This commit is contained in:
parent
4578a2a5ca
commit
2033710dea
1 changed files with 12 additions and 13 deletions
|
@ -78,12 +78,11 @@ public class GdbMemoryBlockRetrieval extends DsfMemoryBlockRetrieval implements
|
||||||
|
|
||||||
BundleContext bundle = GdbPlugin.getBundleContext();
|
BundleContext bundle = GdbPlugin.getBundleContext();
|
||||||
|
|
||||||
// Create a tracker for the MemoryPageService
|
// Create a tracker for the memory spaces service
|
||||||
String memoryPageServiceFilter = DsfServices.createServiceFilter(IMemorySpaces.class, session.getId());
|
String filter = DsfServices.createServiceFilter(IMemorySpaces.class, session.getId());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fMemorySpaceServiceTracker = new ServiceTracker(
|
fMemorySpaceServiceTracker = new ServiceTracker(
|
||||||
bundle, bundle.createFilter(memoryPageServiceFilter), null);
|
bundle, bundle.createFilter(filter), null);
|
||||||
} catch (InvalidSyntaxException e) {
|
} catch (InvalidSyntaxException e) {
|
||||||
throw new DebugException(new Status(IStatus.ERROR,
|
throw new DebugException(new Status(IStatus.ERROR,
|
||||||
GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR,
|
GdbPlugin.PLUGIN_ID, DebugException.INTERNAL_ERROR,
|
||||||
|
@ -194,9 +193,9 @@ public class GdbMemoryBlockRetrieval extends DsfMemoryBlockRetrieval implements
|
||||||
if (context instanceof IAdaptable) {
|
if (context instanceof IAdaptable) {
|
||||||
dmc = (IDMContext)((IAdaptable)context).getAdapter(IDMContext.class);
|
dmc = (IDMContext)((IAdaptable)context).getAdapter(IDMContext.class);
|
||||||
if (dmc != null) {
|
if (dmc != null) {
|
||||||
IMemorySpaces memoryPageService = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
IMemorySpaces service = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
||||||
if (memoryPageService != null) {
|
if (service != null) {
|
||||||
memoryPageService.getMemorySpaces(
|
service.getMemorySpaces(
|
||||||
dmc,
|
dmc,
|
||||||
new DataRequestMonitor<String[]>(getExecutor(), drm) {
|
new DataRequestMonitor<String[]>(getExecutor(), drm) {
|
||||||
@Override
|
@Override
|
||||||
|
@ -246,9 +245,9 @@ public class GdbMemoryBlockRetrieval extends DsfMemoryBlockRetrieval implements
|
||||||
* @see org.eclipse.cdt.debug.internal.core.model.provisional.IMemorySpaceAwareMemoryBlockRetrieval#decodeAddress(java.lang.String)
|
* @see org.eclipse.cdt.debug.internal.core.model.provisional.IMemorySpaceAwareMemoryBlockRetrieval#decodeAddress(java.lang.String)
|
||||||
*/
|
*/
|
||||||
public DecodeResult decodeAddress(String str) throws CoreException {
|
public DecodeResult decodeAddress(String str) throws CoreException {
|
||||||
IMemorySpaces memoryPageService = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
IMemorySpaces service = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
||||||
if (memoryPageService != null) {
|
if (service != null) {
|
||||||
final IMemorySpaces.DecodeResult result = memoryPageService.decodeAddress(str);
|
final IMemorySpaces.DecodeResult result = service.decodeAddress(str);
|
||||||
if (result != null) { // service can return null to tell use to use default decoding
|
if (result != null) { // service can return null to tell use to use default decoding
|
||||||
return new DecodeResult() {
|
return new DecodeResult() {
|
||||||
public String getMemorySpaceId() { return result.getMemorySpaceId(); }
|
public String getMemorySpaceId() { return result.getMemorySpaceId(); }
|
||||||
|
@ -367,9 +366,9 @@ public class GdbMemoryBlockRetrieval extends DsfMemoryBlockRetrieval implements
|
||||||
* @see org.eclipse.cdt.debug.core.model.provisional.IMemorySpaceAwareMemoryBlockRetrieval#creatingBlockRequiresMemorySpaceID()
|
* @see org.eclipse.cdt.debug.core.model.provisional.IMemorySpaceAwareMemoryBlockRetrieval#creatingBlockRequiresMemorySpaceID()
|
||||||
*/
|
*/
|
||||||
public boolean creatingBlockRequiresMemorySpaceID() {
|
public boolean creatingBlockRequiresMemorySpaceID() {
|
||||||
IMemorySpaces memoryPageService = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
IMemorySpaces service = (IMemorySpaces)fMemorySpaceServiceTracker.getService();
|
||||||
if (memoryPageService != null) {
|
if (service != null) {
|
||||||
return memoryPageService.creatingBlockRequiresMemorySpaceID();
|
return service.creatingBlockRequiresMemorySpaceID();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue