Bug 84513 - Trace into some lib function(such as printf) in disassemby mode, cause an exception sometimes
Summary: Trace into some lib function(such as printf) in disassemby mode, cause an exc...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 02:52 EST by shikn CLA
Modified: 2020-09-04 15:27 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shikn CLA 2005-02-05 02:52:59 EST
Eclipse Build id: 200409161125
cdt Build id: 200406301134

if trace into printf() function in disassembly mode, the instruction pointer
point to the next statement of 'eip' register. but its is always equal to eip's
value when the trace is not in codes without source.
in the first case, if 'eip' point to the last statement which has been displayed
in the window, a 'trace into' operation will cause an exception.
--------------------
.log

!ENTRY org.eclipse.ui 4 0 二月 05, 2005 15:19:24.337
!MESSAGE Index: 0, Size: 0
!STACK 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:508)
	at java.util.ArrayList.get(ArrayList.java:320)
	at
org.eclipse.jface.text.TextPresentation.getFirstStyleRange(TextPresentation.java:626)
	at org.eclipse.jface.text.TextPresentation.getCoverage(TextPresentation.java:665)
	at org.eclipse.jface.text.TextPresentation.getExtent(TextPresentation.java:685)
	at
org.eclipse.jface.text.source.AnnotationPainter.applyTextPresentation(AnnotationPainter.java:852)
	at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4158)
	at
org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyView.setViewerInput(DisassemblyView.java:463)
	at
org.eclipse.cdt.debug.internal.ui.views.disassembly.DisassemblyView$3.run(DisassemblyView.java:512)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2749)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2434)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)