Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorScott Tepavich2011-09-16 05:58:35 -0400
committerAnton Leherbauer2011-09-16 05:58:35 -0400
commit6f21f0999c51ae247aef0f0979c9fd2a522946dc (patch)
treea454bd2bb0c0d27279456c19f8ec5c491aaedb04 /debug
parent9fe6dfee8e88f4ff160c14863f635cf4d8e19816 (diff)
downloadorg.eclipse.cdt-6f21f0999c51ae247aef0f0979c9fd2a522946dc.tar.gz
org.eclipse.cdt-6f21f0999c51ae247aef0f0979c9fd2a522946dc.tar.xz
org.eclipse.cdt-6f21f0999c51ae247aef0f0979c9fd2a522946dc.zip
Bug 357440 - [disassembly] Add opcode ruler column to the disassembly view
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyPosition.java16
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/IDisassemblyDocument.java9
2 files changed, 16 insertions, 9 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyPosition.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyPosition.java
index 1d30b082b3..d4fff2f97a 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyPosition.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/DisassemblyPosition.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2010 Wind River Systems and others.
+ * Copyright (c) 2007, 2011 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -18,20 +18,22 @@ import java.math.BigInteger;
public class DisassemblyPosition extends AddressRangePosition {
public char[] fFunction;
-
+ public BigInteger fOpcodes;
+
/**
- *
* @param offset
* @param length
* @param addressOffset
* @param addressLength
+ * @param functionOffset
* @param opcodes
*/
- public DisassemblyPosition(int offset, int length, BigInteger addressOffset, BigInteger addressLength, String opcodes) {
+ public DisassemblyPosition(int offset, int length, BigInteger addressOffset, BigInteger addressLength, String functionOffset, BigInteger opcodes) {
super(offset, length, addressOffset, addressLength);
- fFunction = opcodes.toCharArray();
- }
-
+ fOpcodes = opcodes;
+ fFunction = functionOffset.toCharArray();
+ }
+
/**
* @return source file
*/
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/IDisassemblyDocument.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/IDisassemblyDocument.java
index f954594b7a..3266ccb846 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/IDisassemblyDocument.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/disassembly/dsf/IDisassemblyDocument.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 Wind River Systems, Inc. and others.
+ * Copyright (c) 2010, 2011 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -28,6 +28,11 @@ public interface IDisassemblyDocument {
throws BadLocationException;
AddressRangePosition insertDisassemblyLine(AddressRangePosition p,
- BigInteger address, int intValue, String opCode, String string,
+ BigInteger address, int intValue, String functionOffset, String instruction,
String compilationPath, int lineNumber) throws BadLocationException;
+
+ AddressRangePosition insertDisassemblyLine(AddressRangePosition p,
+ BigInteger address, int length, String functionOffset, BigInteger opcode,
+ String instruction, String compilationPath, int lineNumber)
+ throws BadLocationException;
}

Back to the top