#1286 stepping not working in debugger GUI in case of smp vm

closed
nobody
Debugger (99)
5
2012-10-15
2012-04-09
Anonymous
No

hi. bochs 2.5.1, compiled with smp, trying to debug my code with 2 cpu-s enabled vm. pressing on step button in debugger doesn't refreshes debugger window state. i've found problem in enh_dbg.cc, OnBreak(). if (PrevPtime == NewPtime) are always true, and OnBreak() abandons without making any refreshes. Currently i simply commented out return in this if case, but i think this is need to be fixed in next version.

Discussion

  • Stanislav Shwartsman

    Looks like this issue was already fixed by SVN commit 11088

    Revision: 11088
    http://bochs.svn.sourceforge.net/bochs/?rev=11088&view=rev
    Author: sshwarts
    Date: 2012-03-11 20:17:12 +0000 (Sun, 11 Mar 2012)
    Log Message:


    Merge SF patch [3502052] Added refresh of debugger gui when stepping

    Can you try the latest SVN and check if the problem is fixed ?

    Stanislav

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2012-04-10

    just downloaded current svn. now it updates window when i press 'step', but does not update window when i switching between cpu's (CPU0 and CPU1 buttons at top of window). and second issue - it's bad idea scrolling disassembly code with current instruction pointer when i press 'step'. it's will be better when instruction pointer steps down relatively to disassembled code, as this implemented in debuggers such as visual studio debugger, IDA, etc.

     
  • Stanislav Shwartsman

    Please try the attached patch, it should solve the CPU0->CPU1 refresh problem

     
  • Stanislav Shwartsman

    Please try the attached patch, it should solve the CPU0->CPU1 refresh problem

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2012-04-10

    thanks, cpu refresh problem solved. but weird disassembly scrolling still remains.

     
  • Stanislav Shwartsman

    disasm scrolling issue was resolved as well in current SVN rev #11131.

    Can you check please?

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous

    Anonymous - 2012-04-10

    yes, now works fine. thanks!

     
  • Stanislav Shwartsman

    fixed in SVN rev #11131

     

Log in to post a comment.