Octal display of variables

Sysprogs forums Forums VisualGDB Octal display of variables

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #617
    Anonymous
    Participant

    As a new user of Visual GDB I was very pleased to be able to use VS2010 to develop code for the Raspberry Pi. All is going well so far.
    However I am getting frustrated at not being able to find a setting which displays watch variables & tooltip pop-ups of variable contents in hex.
    unsigned chars are always displayed in octal.
    The visual studio debugger “Hex” button doesnt seem to help
    Any clues??

    #2561
    ket
    Participant

    Hi,

    Could you please post a screenshot here showing the octal view of unsigned chars?
    Usually characters are displayed in either decimal or hexadecimal mode (“Hex” button switches the mode) in addition to displaying the letter itself.

    #2562
    FireyTeeJ
    Participant

    Attached view of debugger & quick watch window with hex on and off.
    Sorry if they’re a bit big

    #2563
    ket
    Participant

    Hi,

    The hexadecimal mode applies only to individual characters not to the entire string, press on the ‘+’ in front of the response variable to see the hexadecimal vs decimal difference of individual characters.
    The string view of a character array tries to translate the character values to letters and then assembles a string from them, that is why the hex mode shows no difference in the entire string view.

    #2564
    FireyTeeJ
    Participant

    Yes, I understand that.
    Its just that if its going to show me a set of numbers for the array of unsigned chars it would be much more helpful to see it in hex (or even decimal) not octal.
    I was hoping you might have some control over this but If it’s a VS2010 issue I guess I could try bugging M$ but I wont hold my breath.

    #2565
    ket
    Participant

    Hi,

    It is how gdb reports the string. While debugging if you change the view mode to ‘All GDB interaction’ in the GDB Session window and then hover over the variable, you will see what gdb replies as the variable value.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.