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. Can Qt Creator show disassembly?
QtWS25 Last Chance

Can Qt Creator show disassembly?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 9.5k 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.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #1

    Is there a feature in Creator to show disassembly of a program?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      You can switch to the disassembler by selecting 'Operate by Instruction' in the 'Debug' menu.

      1 Reply Last reply
      0
      • U Offline
        U Offline
        utcenter
        wrote on last edited by
        #3

        Hmmm, there seems to be something wrong with the debugger, it zips right through the breakpoints, the program finishes and I get an error window titled "Executable Failed" saying "During startup program exited with code 0x0"

        I am not debugging anything too fancy either, just this short snippet I was curious to see how the compiler handles offset calculations.

        @ void *memory = malloc(1000);

        for (int i=0; i<10; ++i)
            *((int*)memory+sizeof(int)*i) = i;
        
        for (int i=0; i<10; ++i)
            cout << *((int*)memory+sizeof(int)*i) << endl;@
        

        I also tried to do it in visual studio but the MS compiler seems to be very unhappy with void pointer arithmetics, evne when cast to a type pointer...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Duck
          wrote on last edited by
          #4

          Pure console stuff on Windows? Put a sleep(1) or equivalent at the top of main()

          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