Bug 208283 - [debug view]-stack-list-frames called for all Thread layout nodes in debug view
Summary: [debug view]-stack-list-frames called for all Thread layout nodes in debug view
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2007-10-31 13:01 EDT by Veenu Khanna CLA
Modified: 2020-09-04 15:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Veenu Khanna CLA 2007-10-31 13:01:35 EDT
-stack-list-frames is being called for every execution context. This was not the case earlier. It should only be called for those ThreadLayoutNodes that are expanded. 
See command # 76, 78, 80 being sent for execution ctxt 3,2,1 whereas in the view only 3 is in expanded state
*******************************
227,380 75-thread-list-ids
LAST THREAD ID: 2
SEND: 75-thread-list-ids
Thread Context is : null
RECVD: ~"[New Thread 1080351664 (LWP 1041)]\n"
RECVD: 75^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"},number-of-threads="3"
74*stopped,reason="breakpoint-hit",bkptno="2",thread-id="2",frame={addr="0x0804876a",func="thread_print",args=[{name="ptr",value="0x8048afd"}],file="../Hello.cpp",fullname="/local/scratch/Eclipse/Workspaces/runtime/dsf_europa/TestFrancois/Hello.cpp",line="22"}
~"[New Thread 1080351664 (LWP 1041)]\n"
75^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"},number-of-threads="3"

230,382 76-stack-list-frames
LAST THREAD ID: 2
230,382 -thread-select 3
SEND: 77-thread-select 3
Thread Context is : null
SEND: 76-stack-list-frames
 Thread Context is : 3
230,385 78-stack-list-frames
LAST THREAD ID: 3
230,386 -thread-select 2
SEND: 79-thread-select 2
Thread Context is : null
SEND: 78-stack-list-frames
Thread Context is : 2
RECVD: 77^done,new-thread-id="3",frame={level="0",addr="0x401eb208",func="clone",args=[],from="/lib/tls/libc.so.6"}
230,405 80-stack-list-frames
SEND: 80-stack-list-frames
Thread Context is : 1
RECVD: 76^done,stack=[frame={level="0",addr="0x401eb208",func="clone",from="/lib/tls/libc.so.6"},frame={level="1",addr="0x003d0f00",func="??"},frame={level="2",addr="0x00000000",func="??"}]
RECVD: 79^done,new-thread-id="2",frame={level="0",func="thread_print",args=[{name="ptr",value="0x8048afd"}],file="../Hello.cpp",fullname="/local/scratch/Eclipse/Workspaces/runtime/dsf_europa/TestFrancois/Hello.cpp",line="22"},line="22",file="../Hello.cpp"
RECVD: 78^done,stack=[frame={level="0",addr="0x0804876a",func="thread_print",file="../Hello.cpp",fullname="/local/scratch/Eclipse/Workspaces/runtime/dsf_europa/TestFrancois/Hello.cpp",line="22"},frame={level="1",addr="0x4003ecb7",func="start_thread",from="/lib/tls/libpthread.so.0"},frame={level="2",addr="0x401eb21e",func="clone",from="/lib/tls/libc.so.6"},frame={level="3",addr="0x4044cbb0",func="??"}]
RECVD: 80^done,stack=[frame={level="0",addr="0x0804876a",func="thread_print",file="../Hello.cpp",fullname="/local/scratch/Eclipse/Workspaces/runtime/dsf_europa/TestFrancois/Hello.cpp",line="22"},frame={level="1",addr="0x4003ecb7",func="start_thread",from="/lib/tls/libpthread.so.0"},frame={level="2",addr="0x401eb21e",func="clone",from="/lib/tls/libc.so.6"},frame={level="3",addr="0x4044cbb0",func="??"}]