Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] CDT 2.1 RC5 Now Available for Testing: no access to global variables

Hallo,

I made a first test to the CDT - RC5 version. Good work to get rid of so
many bugs. 

From my private bug list, the Xlinker issue is gone. Although it seems that
the string with comma ("Xlinker, <xxx>") is used during the first start of
CDT after installation. I changed some preference options and suddenly the
correct string "Xlinker <xxx>" was used (any explanation for this?).

However I recognized a problem to display global variables. When you debug
an application you can display values of variables on different way: 

(1) you browse through the source code. When your mouse hits a (local or
global) variable, the value of this variable is shown. This works well.
(2) you can use the variable window to display the local variables of a
procedure (works also). In addition, you can add global variables to this
view. This doesn't seem to work. The exception shown below happens and no
global variable is added to this view.

I did not test this before. I had a discussion with a collegue. It looks
like way (2) works with CDT 2.0.2 (she is using this version). The problem
may be 2.1 related.

Regards. Manfred.


/****************** log message when accessing global variables
***********************/

!SESSION Dec 09, 2004 12:12:09.953
---------------------------------------------
eclipse.buildId=M200409161125
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.ui 4 4 Dec 09, 2004 12:12:09.953
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Dec 09, 2004 12:12:09.963
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at
org.eclipse.cdt.debug.internal.core.model.CDebugTarget.createGlobalVariable(
CDebugTarget.java:1877)
	at
org.eclipse.cdt.debug.internal.core.CGlobalVariableManager.addGlobals(CGloba
lVariableManager.java:104)
	at
org.eclipse.cdt.debug.internal.ui.actions.AddGlobalsActionDelegate.doAction(
AddGlobalsActionDelegate.java:269)
	at
org.eclipse.cdt.debug.internal.ui.actions.AddGlobalsActionDelegate$1.run(Add
GlobalsActionDelegate.java:100)
	at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at
org.eclipse.cdt.debug.internal.ui.actions.AddGlobalsActionDelegate.run(AddGl
obalsActionDelegate.java:96)
	at
org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:71)
	at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:266)
	at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action
ContributionItem.java:915)
	at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionI
tem.java:866)
	at
org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContribu
tionItem.java:785)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
	at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
	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(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	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)

/***************************************************************************
***********/


-----Original Message-----
From: cdt-dev-admin@xxxxxxxxxxx [mailto:cdt-dev-admin@xxxxxxxxxxx]On
Behalf Of Douglas Schaefer
Sent: Donnerstag, 9. Dezember 2004 05:15
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] CDT 2.1 RC5 Now Available for Testing


Find it at:

        http://download.eclipse.org/tools/cdt/builds/2.1.0/RC5/index.html

There are 0 open bugs on CDT 2.1.

There were 100 changes since RC4.

Included in that was a couple of surprisingly large additions
- comment blocks in the editor
- use of nm to get global variables in debugger

Cheers,
Doug Schaefer, IBM's Technical Lead, Eclipse CDT
Ottawa Lab, IBM Canada, Rational Software Division
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top