Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator Memory Editor -Can reverse order?

QtCreator Memory Editor -Can reverse order?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreatormemory editor
7 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Don Slowik
    wrote on last edited by
    #1

    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?

    kshegunovK 1 Reply Last reply
    0
    • D Don Slowik

      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?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

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

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2
      • D Offline
        D Offline
        Don Slowik
        wrote on last edited by
        #3

        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.

        kshegunovK 1 Reply Last reply
        0
        • D Don Slowik

          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.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by kshegunov
          #4

          @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.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          1
          • D Offline
            D Offline
            Don Slowik
            wrote on last edited by
            #5

            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).

            kshegunovK 1 Reply Last reply
            0
            • D Don Slowik

              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).

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              @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.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              2
              • D Offline
                D Offline
                Don Slowik
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved