User forums > Using Code::Blocks
CPU registers not shown in debug window
pooh:
Hi,
I have manged to build a GNU-cross-toolchain for MIPS under MSYS.
And I am using GDB 7.4 for remote debugging.
But I think my problem is not related to any embedded target ...
I am facing this "simple" problem:
When activating the "CPU registers" debug window it doesn't contain anything.
I have already checked the debuggers log. GDB seems to transmit something useful to C::B
In the debugger log window I get:
> info registers
zero at v0 v1 a0 a1 a2 a3
R0 00000000 00000000 00000001 00000000 00000000 00000000 00000000 00000000
t0 t1 t2 t3 t4 t5 t6 t7
R8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
s0 s1 s2 s3 s4 s5 s6 s7
R16 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
t8 t9 k0 k1 gp sp s8 ra
R24 00000000 00000000 00000000 00000000 00007170 00017198 00017198 00000000
sr lo hi bad cause pc
00000000 00000000 00000000 00000000 00000009 00000128
fsr fir
00000001 00000001
BTW: Other debug windows work fine (e.g. Examine Memory or Disassembly)
Why doesn't C::B show a copy of the GDB output??? Any idea what's wrong here?
I appreciate any help!
Thanks, guys!
pooh:
Solved:
After digging into the C::B source code, I tried to set the disassembly flavor (Settings->Compiler and Debugger->Debugger Settings) to custom flavor "or32"... And that's it! Now I the registers are shown in the debug window.
oBFusCATed:
Patch?
MortenMacFly:
--- Quote from: oBFusCATed on May 14, 2012, 10:22:13 am ---Patch?
--- End quote ---
What patch? It's an option IMHO...?!
oBFusCATed:
I though he had modified the code, but as you said there is an option to specify a string...
But if it is a common flavor it will be good to add it.
Navigation
[0] Message Index
[#] Next page
Go to full version