Community
Participate
Working Groups
We are observing that the Registers View of CDT 2.0.2 is taking time when trying from Ecllipse Remote Development project. In this regard, Sumit from Hewlett Packard got a chance to discuss with Dave Inglish during Eclipse Con 2005. With that has context, I am filling the following bug. Our observation is as follows : [Please find the attached Reg.zip which has the MIOutput for the Registers view.] Eclipse CDT 2.0.2 is trying to evaluate the values for the following set of registers : (a) fr0 to fr127 [128] (b) natr0 to natr127 [128] © pr0 to pr63 [64] (d) gr0 to gr127 [128] (e) br0 to br7 [8] (f) ar0 to ar127 [128] (g) ip [1] (h) cfm [1] (i) psr [1] The above operation takes 4 minutes approximately. (a) Is this an expected behaviour ? (b) Is there any way to stop evaluating every register when the Registers view is clicked & evaluate only when a register is selected. On the other hand, if I say "info reg" on the debugger console, I get the following output within seconds. info reg pr0: 0x1 pr1: 0x1 pr2: 0 pr3: 0 pr4: 0 pr5: 0 pr6: 0 pr7: 0 pr8: 0 pr9: 0 pr10: 0 pr11: 0 pr12: 0 pr13: 0x1 pr14: 0 pr15: 0 pr16: 0 pr17: 0 pr18: 0 pr19: 0 pr20: 0 pr21: 0 pr22: 0 pr23: 0 pr24: 0 pr25: 0 pr26: 0 pr27: 0 pr28: 0 pr29: 0 pr30: 0 pr31: 0 pr32: 0 pr33: 0 pr34: 0 pr35: 0 pr36: 0 pr37: 0 pr38: 0 pr39: 0 pr40: 0 pr41: 0 pr42: 0 pr43: 0 pr44: 0 pr45: 0 pr46: 0 pr47: 0 pr48: 0 pr49: 0 pr50: 0 pr51: 0 pr52: 0 pr53: 0 pr54: 0 pr55: 0 pr56: 0 pr57: 0 pr58: 0 pr59: 0 pr60: 0 pr61: 0 pr62: 0 pr63: 0 gr0: 0 natr0: 0 gr1: 0x2000000040000030 natr1: 0 gr2: 0xc3 natr2: 0 gr3: 0 natr3: 0 gr4: 0 natr4: 0 gr5: 0xc000000000000408 natr5: 0 gr6: 0x200000007efabc50 natr6: 0 gr7: 0x200000007ef97298 natr7: 0 gr8: 0x4000d00 natr8: 0 gr9: 0x200000007ffff748 natr9: 0 gr10: 0x2000000000000000 natr10: 0 gr11: 0x200000007ffff748 natr11: 0 gr12: 0x200000007ffff6c0 natr12: 0 gr13: 0x200000007e841080 natr13: 0 gr14: 0x200000007ffff740 natr14: 0 gr15: 0x1 natr15: 0 gr16: 0x7ffffa70 natr16: 0 gr17: 0x7ffffa78 natr17: 0 gr18: 0x7ffff928 natr18: 0 gr19: 0x30 natr19: 0 gr20: 0xffff000000000000 natr20: 0 gr21: 0 natr21: 0 gr22: 0x200000007e843bc0 natr22: 0 gr23: 0x6 natr23: 0 gr24: 0xffffffffffffffff natr24: 0 gr25: 0xffff6d6e74656e74 natr25: 0 gr26: 0xffff000000000000 natr26: 0 gr27: 0x200000007ffff654 natr27: 0 gr28: 0x2 natr28: 0 gr29: 0 natr29: 0 gr30: 0x200000007e8710c8 natr30: 0 gr31: 0x200000007efa6ba8 natr31: 0 gr32: 0xc000000000000004 natr32: 0 gr33: 0x200000007efabcc0 natr33: 0 gr34: 0x2000000040000030 natr34: 0 gr35: 0x7ffff928 natr35: 0 gr36: 0 natr36: 0 br0: 0x200000007efabcc0 br1: 0 br2: 0 br3: 0 br4: 0 br5: 0 br6: 0x4000d00 br7: 0xe00000010d000620 ar16: 0x1f ar17: 0x200000007efff290 ar18: 0x200000007efff150 ar19: 0 ar32: 0 ar36: 0 ar40: 0x9804c8270433f ar64: 0xc000000000000004 (sor:0, sol:0, sof:4) ar65: 0 ar66: 0 ip: 0x4000d10:1 cfm: 0x185 (sor:0, sol:3, sof:5) psr: Any thoughts would be very helpful ?
Created attachment 18576 [details] MIOutput spewed by the GDB
In CDT 2.1.x you can enable/disable a register or a register group (currently only one group avialable). To disable the update of all registers for launch configuration click the button "Advanced" on the "Debugger" page. Uncheck the "Automatically track the values of registers". The support of the user defined register groups is planned for 3.0. Combined thess two features will allow users to watch selected registers only.
In CDT 2.1.x, I saw that we can enable/disable a register or a register group (currently only one group avialable). It is really a nice feature. Until I move my application from CDT 2.0.2 to CDT 2.1, is there any way by which I can disable the Registers views. I tried couple of things like (a) commenting out the registers view in plug-in.xml found in org.eclipse.cdt.debug.ui. For your reference, I have attached the plugin.xml. (b) Commenting out the following code in CDTDebugModelPresentation [Line 265] // if ( element instanceof IRegister ) { // return getRegisterImage( (IRegister)element ); // } Nothing seems to work my way. I am still seeing the Registers view in the Debug perspective. Can you suggest me someway to do this ?
Created attachment 18760 [details] Plugin.xml code change done to remove Registers view.