News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

C:B Debugger

Started by vliw, February 14, 2012, 02:25:54 AM

Previous topic - Next topic

vliw

Hi,
I've just started to use C:B and I find it really good, I've got so far a couple of problems only:

I've got this configuration:

Windows 7 64 Bit Running Ubuntu 11.10 64 Bit under vmware and C:B latest stable version (10.5 I think).
I create a console application adding only this line of code :

int main()
{
unsigned flags;
asm volatile ("pushf\n pop %0" : "=rm"(flags) : :);
return 0;
}

This is inline asm and if I step using the debugger inside the assembly generated when the cpu "pop" the value of the EFLAGS register on ebx, I see
a 12 bit value (usually 0x386) now I am wondering if this is correct because I should see at least a 32 bit value because I set up compiler and linker with the option "-m32" and because EFLAGS is a 32 bit register, am I doing something wrong?
I think this is the right place to ask because I have been told that maybe is the -m32 option not working well or the debugger is not correctly set up.

2)The combination ALT + F7 does not execute the next instruction but a symbol like a little hand appears replacing the cursor allowing me to relocate the debugger window, obviously I am trying to do something completely different.

cheers 

[attachment deleted by admin]

vliw

Ok the first problem is not C:B, using gdb alone I see the same, the second question is still open.

cheers

Jenna

Quote from: vliw on February 14, 2012, 03:04:28 AM
Ok the first problem is not C:B, using gdb alone I see the same, the second question is still open.

cheers
ALso not a real C::B issue, because Alt+F7 is the window-manager default hotkey for moving a window.

You can change the hotkeys used by C::B (for main-menu entries) with the keybinder-plugin: "Settings -> Edito... -> Keyboard shortcuts" (you need to have the contrib-plugins package for this to work).

Note: we have a special debuggre-branch, with many enhancements for the debugger interface.
If you want, you can install a nightly of it.
Reed this for an explanation how to use it.
And please read the instructions (especially the Ubuntu users notes) on my website before.

vliw

Hi Jens,

thank you very much for your help and sorry if the question was not pertinent to C:B.