QtCreator Memory Editor -Can reverse order?



  • I open the Memory Editor, often at the location of the stack pointer as I am debugging.
    I would prefer to see addresses increasing up rather than down. Is there a way to flip it?


  • Qt Champions 2016

    No, I don't believe so.
    Why do you want the memory to go backwards, though?



  • Well, looking at the stack, we all know that grows down toward lower addresses, as I'm learning in my CS 213 class. : ) Soo...
    ok, I guess i can do the mental gymnastics required to accept a stack that grows up.


  • Qt Champions 2016

    @Don-Slowik said in QtCreator Memory Editor -Can reverse order?:

    Well, looking at the stack, we all know that grows down toward lower addresses, as I'm learning in my CS 213 class. : ) Soo...

    Well, we don't actually ... perhaps your CS 213 class (whatever this is) should be fixed.
    This is an implementation detail and there's no rule that says the stack should grow toward the lower addresses, albeit this is by far the most common approach (e.g. x86's stack). There are some (rather rare) architectures where the stack grows towards the higher addresses, like PA-RISC (now defunct). SPARC and ARM allow for both up and down-growing.



  • Too clarify my original post, this would be an option the user could select the memory address ordering to be displayed, not a set flip for all to see forever. It is fine the way it is, just sometimes I want to see it flipped.
    If it is to be a set ordering, the way it is now seems to make the most sense, since we are not always viewing the stack in any case (on an e.g. x86).


  • Qt Champions 2016

    @Don-Slowik said in QtCreator Memory Editor -Can reverse order?:

    It is fine the way it is, just sometimes I want to see it flipped.

    This is a user forum and we don't get much presence from Qt's developers, but you could push this as a suggestion to the bugtracker. They may decide to implement some kind of memory (address) sorting/reordering at some point based on it.



  • I was also thinking, after my last post, that this is more a possible improvement suggestion. Thanks for that pointer.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.