[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] DSF: wrong thread info

FYI, the incorrect expansion after refresh is an unrelated issue, and a platform debug bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=212798
However, for this particular scenairo, the GDB debugger could work around the bug by ordering threads from oldest to newest.

Cheers,
Pawel

Dmitry Smirnov wrote:
second-from-top frame, whereas it should expand the third (Thread[2]):
    
I'm sorry, I've made a mistake: it should expand Thread[1], of course.

2009/3/24 Dmitry Smirnov <divis1969@xxxxxxxxx>:
  
yes, this works better. But Stack view expands the same
second-from-top frame, whereas it should expand the third (Thread[2]):

Skyeye DSF [C/C++ Application]
       skyeye.exe
               Thread [5] (Suspended : Container)
               Thread [4] (Suspended : Container)
                       ntdll!LdrAccessResource() at 0x7c90e4f4
                       WaitMessage() at 0x7e419418
                       SkyEyeLCD_UIThread() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c:675
                       _cygtls::call2() at 0x61004416
                       0x9adb60
                       0x1907cdf0
                       SkyEyeLCD_UIThread_HandleMessage() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c:667
               Thread [2] (Suspended : Container)
               Thread [1] (Suspended : Breakpoint)
       gdb
       skyeye.exe


Here is the gdb traces after refresh

376,814 161-stack-info-depth 2
376,829 161^done,depth="2"
376,829 (gdb)
376,829 162-thread-list-ids
376,829 163-stack-list-frames 0 4
376,845 162^done,thread-ids={thread-id="5",thread-id="4",thread-id="2",thread-id="1"},number-of-threads="4"
376,845 (gdb)
376,845 163^done,stack=[frame={level="0",addr="0x0043613a",func="ARMul_Emulate32",file="common/armemu.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c",line="364"},frame={level="1",addr="0x00409a17",func="ARMul_DoProg",file="common/arminit.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/arminit.c",line="358"},frame={level="2",addr="0x00404b16",func="gdbserver_cont",file="debugger/skyeye2gdb.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/skyeye2gdb.c",line="146"},frame={level="3",addr="0x004066e7",func="sim_debug",file="debugger/gdbserver.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/gdbserver.c",line="1079"},frame={level="4",addr="0x00401d27",func="main",file="utils/main/skyeye.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/main/skyeye.c",line="748"}]
376,845 (gdb)
376,876 164info threads
376,876 &"info threads\n"
376,876 ~"  5 thread 7080.0x15ac  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
376,876 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
376,876 ~"  4 thread 7080.0x1bd0  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
376,876 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
376,876 ~"  2 thread 7080.0xfc4  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
376,876 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
376,876 ~"* 1 thread 7080.0x1720  ARMul_Emulate32 (state=0x9adcd0)\n"
376,876 ~"    at common/armemu.c:364\n"
376,892 164^done
376,892 (gdb)
376,939 165-thread-select 4
376,939 166-stack-list-frames 0 4
376,939 165^done,new-thread-id="4",frame={level="0",addr="0x7c90e4f4",func="ntdll!LdrAccessResource",args=[],from="/c/WINDOWS/system32/ntdll.dll"}
376,939 (gdb)
376,954 167-stack-info-depth 11
377,017 166^done,stack=[frame={level="0",addr="0x7c90e4f4",func="ntdll!LdrAccessResource",from="/c/WINDOWS/system32/ntdll.dll"},frame={level="1",addr="0x7e419418",func="WaitMessage",from="/c/WINDOWS/system32/user32.dll"},frame={level="2",addr="0x0046a987",func="SkyEyeLCD_UIThread",file="lcd/skyeye_lcd_win32.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c",line="675"},frame={level="3",addr="0x61004416",func="_cygtls::call2",from="/usr/bin/cygwin1.dll"},frame={level="4",addr="0x009adb60",func="??"}]
377,017 (gdb)
377,017 167^done,depth="7"
377,017 (gdb)
377,032 168-stack-list-frames
377,032 168^done,stack=[frame={level="0",addr="0x7c90e4f4",func="ntdll!LdrAccessResource",from="/c/WINDOWS/system32/ntdll.dll"},frame={level="1",addr="0x7e419418",func="WaitMessage",from="/c/WINDOWS/system32/user32.dll"},frame={level="2",addr="0x0046a987",func="SkyEyeLCD_UIThread",file="lcd/skyeye_lcd_win32.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c",line="675"},frame={level="3",addr="0x61004416",func="_cygtls::call2",from="/usr/bin/cygwin1.dll"},frame={level="4",addr="0x009adb60",func="??"},frame={level="5",addr="0x1907cdf0",func="??"},frame={level="6",addr="0x0046a97c",func="SkyEyeLCD_UIThread_HandleMessage",file="lcd/skyeye_lcd_win32.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c",line="667"}]
377,032 (gdb)
377,064 169-stack-list-frames 5 6
377,064 169^done,stack=[frame={level="5",addr="0x1907cdf0",func="??"},frame={level="6",addr="0x0046a97c",func="SkyEyeLCD_UIThread_HandleMessage",file="lcd/skyeye_lcd_win32.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/device/lcd/skyeye_lcd_win32.c",line="667"}]
377,064 (gdb)

2009/3/23 Marc Khouzam <marc.khouzam@xxxxxxxxxxxx>:
    
Hi,

can you reproduce this, and when it happens, can you press the Refresh button
on the debug view.  If things are fixed, can you send the gdbtraces logs?

Thanks


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx on behalf of Dmitry Smirnov
Sent: Mon 3/23/2009 8:25 AM
To: CDT General developers list.
Subject: [cdt-dev] DSF: wrong thread info

Hi,

DSF (I200903201044) seems to incorrectly deals with threads.
GDB 6.8.0.20080328-cvs (cygwin-special)

======== Call stack:
Skyeye DSF [C/C++ Application]
       skyeye.exe
               Thread [2] (Suspended : Container)
               Thread [1] (Suspended : Breakpoint)
                       ARMul_Emulate32() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c:364
                       ARMul_DoProg() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/arminit.c:358
                       gdbserver_cont() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/skyeye2gdb.c:146
                       sim_debug() at
/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/gdbserver.c:1 079
                       main() at /cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/main/skyeye.c:748
       gdb
       skyeye.exe

=== GDB console and manually entered command "info threads"
[New thread 7700.0x1e08]
[New thread 7700.0x1078]
[New thread 7700.0x1f10]
[New thread 7700.0x1cc4]
[New thread 7700.0xcd4]
info thread
 5 thread 7700.0xcd4  0x7c90e4f4 in ntdll!LdrAccessResource ()
  from /c/WINDOWS/system32/ntdll.dll
 4 thread 7700.0x1cc4  0x7c90e4f4 in ntdll!LdrAccessResource ()
  from /c/WINDOWS/system32/ntdll.dll
 2 thread 7700.0x1078  0x7c90e4f4 in ntdll!LdrAccessResource ()
  from /c/WINDOWS/system32/ntdll.dll
* 1 thread 7700.0x1e08  ARMul_Emulate32 (state=0x9adcd0)
   at common/armemu.c:364

========gdb-traces
646,791 ~"[New thread 7700.0xcd4]\n"
723,736 20*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0043613a",func="ARMul_Emulate32",args=[{name="state",value="0x9adcd0"}],file="common/armemu.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c",line="364"}
723,736 (gdb)
723,970 21-thread-select 1
723,970 22-stack-info-depth 11
723,986 21^done,new-thread-id="1",frame={level="0",addr="0x0043613a",func="ARMul_Emulate32",args=[{name="state",value="0x9adcd0"}],file="common/armemu.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c",line="364"}
723,986 (gdb)
724,002 22^done,depth="5"
724,002 (gdb)
724,299 23-stack-list-frames 1 4
724,314 24-thread-select 2
724,314 25-stack-info-depth 11
724,345 23^done,stack=[frame={level="1",addr="0x00409a17",func="ARMul_DoProg",file="common/arminit.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/arminit.c",line="358"},frame={level="2",addr="0x00404b16",func="gdbserver_cont",file="debugger/skyeye2gdb.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/skyeye2gdb.c",line="146"},frame={level="3",addr="0x004066e7",func="sim_debug",file="debugger/gdbserver.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/gdbserver.c",line="1079"},frame={level="4",addr="0x00401d27",func="main",file="utils/main/skyeye.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/main/skyeye.c",line="748"}]
724,345 (gdb)
724,345 24^done,new-thread-id="2",frame={level="0",addr="0x7c90e4f4",func="ntdll!LdrAccessResource",args=[],from="/c/WINDOWS/system32/ntdll.dll"}
724,345 (gdb)
724,345 25^done,depth="5"
724,345 (gdb)
724,345 26-thread-select 1
724,345 27-stack-list-frames
724,345 26^done,new-thread-id="1",frame={level="0",addr="0x0043613a",func="ARMul_Emulate32",args=[{name="state",value="0x9adcd0"}],file="common/armemu.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c",line="364"}
724,345 (gdb)
724,361 27^done,stack=[frame={level="0",addr="0x0043613a",func="ARMul_Emulate32",file="common/armemu.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/armemu.c",line="364"},frame={level="1",addr="0x00409a17",func="ARMul_DoProg",file="common/arminit.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/arch/arm/common/arminit.c",line="358"},frame={level="2",addr="0x00404b16",func="gdbserver_cont",file="debugger/skyeye2gdb.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/skyeye2gdb.c",line="146"},frame={level="3",addr="0x004066e7",func="sim_debug",file="debugger/gdbserver.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/debugger/gdbserver.c",line="1079"},frame={level="4",addr="0x00401d27",func="main",file="utils/main/skyeye.c",fullname="/cygdrive/d/Dvs/Project/Skyeye_1.2.5/utils/main/skyeye.c",line="748"}]
724,361 (gdb)
746,471 28-interpreter-exec console "info thread"
746,487 ~"  5 thread 7700.0xcd4  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
746,487 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
746,487 ~"  4 thread 7700.0x1cc4  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
746,487 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
746,487 ~"  2 thread 7700.0x1078  0x7c90e4f4 in ntdll!LdrAccessResource ()\n"
746,487 ~"   from /c/WINDOWS/system32/ntdll.dll\n"
746,487 ~"* 1 thread 7700.0x1e08  ARMul_Emulate32 (state=0x9adcd0)\n"
746,487 ~"    at common/armemu.c:364\n"
746,487 28^done
746,487 (gdb)
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


      
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev