Menu

Debugger and HEX display

2004-09-15
2012-09-26
  • Nobody/Anonymous

    Hello,

    sometimes it's very usefull to have watches in HEX, for example if you want to debug serial communication (which I'm actually work on).
    If I receive data like this:
    0x10 0x11 0x12 0x13
    and write this into a buffer of type unsigned char the display of the watch is like this:
    aucBuffer="\020\021\022\023"

    Can anyone explain this?

     
    • aditsu

      aditsu - 2004-09-19

      explain what?
      those are octal character values

      Adrian

       
    • Nobody/Anonymous

      Thank you!
      I  made some additional tests and got the same result.
      Ok these values are in OCTAL format.
      Is it possible to change the display format to HEX with the built-in debugger?
      The GDB offers the option '/xb' (byte) '/xw' (word) to change the display format to HEX. How can I use this with the built-in debugger (which is based on GDB)?

       
    • Nobody/Anonymous

      Hello,

      is anybody out there who can tell me how to display watches in HEX with the built-in debugger?
      I'm not used to deal with OCTAL values.
      Is it impossible or am I too dumb?

      Should I rather try Insight?

       

Log in to post a comment.