Skip to content

Commit 438f335

Browse files
authored
dap-ui: Display instructionPointerReference when available (#516)
Signed-off-by: Eshel Yaron <[email protected]>
1 parent 85e5275 commit 438f335

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dap-ui.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ DEBUG-SESSION is the debug session triggering the event."
698698
(funcall
699699
callback
700700
(-map
701-
(-lambda ((stack-frame &as &hash "name" "line" "source"))
701+
(-lambda ((stack-frame &as &hash "name" "line" "source" "instructionPointerReference"))
702702
(let* ((current-session (dap--cur-session))
703703
(icon (if (and
704704
(equal session current-session)
@@ -731,6 +731,9 @@ DEBUG-SESSION is the debug session triggering the event."
731731
(gethash "name"))))
732732
'dap-ui-sessions-thread-active-face
733733
'dap-ui-sessions-thread-face))
734+
(if instructionPointerReference
735+
(propertize (format " [%s]" instructionPointerReference) 'face 'dap-ui-sessions-thread-face)
736+
"")
734737
(propertize (format " (%s:%s)" (or (gethash "name" source)
735738
(gethash "path" source))
736739
line)

0 commit comments

Comments
 (0)