Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: zalzane on April 27, 2011, 09:21:34 am

Title: How to read the examine memory window in debug mode
Post by: zalzane on April 27, 2011, 09:21:34 am
I've googled and googled, and could not find any mention of how to read this window. I've figured out that I can use the reference operator on a variable and it shows me where the variable exists in memory, but that's basically all I can pick up from it.

For the more visually inclined:
(http://i.imgur.com/fYiOE.png)
Title: Re: How to read the examine memory window in debug mode
Post by: oBFusCATed on April 27, 2011, 10:51:16 am
This window prints the content of the memory starting from address 0x22fed4, you read it horizontally

f9 is 0x22fed4, c3 is at 0x22fed5, 04 is at 0x22fed6, etc...

All is printed in hex...

The Bytes combo is for the number of bytes to print after the address.
Title: Re: How to read the examine memory window in debug mode
Post by: zalzane on April 27, 2011, 11:01:33 am
This window prints the content of the memory starting from address 0x22fed4, you read it horizontally

f9 is 0x22fed4, c3 is at 0x22fed5, 04 is at 0x22fed6, etc...

All is printed in hex...

The Bytes combo is for the number of bytes to print after the address.

So I copied the hex fields and pasted them into a translator here
http://home1.paulschou.net/tools/xlate/

It came out as gibberish, so is there some special calculator I can use to find out the memory contents, or maybe a built in feature that can convert the hex?
Title: Re: How to read the examine memory window in debug mode
Post by: oBFusCATed on April 27, 2011, 11:04:11 am
Why don't you learn to read the hex?
It is relatively easy, but it depends for what you want to use this window.
Title: Re: How to read the examine memory window in debug mode
Post by: zalzane on April 27, 2011, 11:07:37 am
Why don't you learn to read the hex?
It is relatively easy, but it depends for what you want to use this window.

I honestly have no idea what I would use it for yet, I was just debugging some stuff and found the window and went "oh, I bet this will be useful eventually".

If I end up actually getting use out of it, then I will definitely learn hex.