summaryrefslogtreecommitdiff
path: root/.gdbinit
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-01-12 20:56:29 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:02 -0700
commit576bdb124dbf52345246adbc290dabac4bd25b35 (patch)
tree465db69c43f4189ad6445cb06b8e97a10c862ecd /.gdbinit
parent20a104af5089be685b96b8678ed2b6730e37295f (diff)
Updating gdbinit macros to support the latest changes for pure functional simulation.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11327]
Diffstat (limited to '.gdbinit')
-rw-r--r--.gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gdbinit b/.gdbinit
index 01ab53a..b456895 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -63,7 +63,7 @@ define ptxdis_func
set $sid = $arg0
set $cluster = g_the_gpu_config.m_shader_config.sid_to_cluster($sid)
set $cid = g_the_gpu_config.m_shader_config.sid_to_cid($sid)
- set $ptx_tinfo = g_the_gpu->m_cluster[$cluster]->m_core[$cid]->m_thread[$arg1].m_functional_model_thread_state
+ set $ptx_tinfo = g_the_gpu->m_cluster[$cluster]->m_core[$cid]->m_thread[$arg1]
set $finfo = $ptx_tinfo->m_func_info
set $minpc = $finfo->m_start_PC
set $maxpc = $minpc + $finfo->m_instr_mem_size
@@ -83,7 +83,7 @@ define ptx_tids2pcs
set $tid = $arg0[$i]
set $cluster = g_the_gpu_config.m_shader_config.sid_to_cluster($sid);
set $cid = g_the_gpu_config.m_shader_config.sid_to_cid($sid);
- set $addr = g_the_gpu->m_cluster[$cluster]->m_core[$cid]->m_thread[$tid].m_functional_model_thread_state->m_PC
+ set $addr = g_the_gpu->m_cluster[$cluster]->m_core[$cid]->m_thread[$tid]->m_PC
printf "%2u : tid = %3u => pc = %d\n", $i, $tid, $addr
set $i = $i + 1
end