Can Qt Creator show disassembly?

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

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

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

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

Log in to reply

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