Infinite loop in FastSemihosting.cpp

Sysprogs forums Forums VisualGDB Infinite loop in FastSemihosting.cpp

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11582
    borbmizzet
    Participant

    I’m getting an infinite loop occassionally in FastSemihosting.cpp between lines 189-192

    	int done = 0;
    	do
    	{
    		done += WriteRawFastSemihostingData(pBuffer, size, 0);
    	} while (!writeAll || done != size);

    Here are the locals from a pause:
    channel 0x01 ‘\x01’ unsigned char
    pBuffer 0xd00148e0 <FixedSizeHeap+84192> const void *
    size 0x00000064 int
    writeAll 0x00000001 int
    done 0x00618973 int

    From a glance, I feel like done should never be greater than size, but I could be wrong.

    #11609
    support
    Keymaster

    Hi,

    Thanks for reporting this, looks like our bug. We have updated our profiler package. You can download it via Tools->Manage VisualGDB Packages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.