Skip to content

Commit

Permalink
gud-lldb
Browse files Browse the repository at this point in the history
  • Loading branch information
junjiemars committed Aug 17, 2023
1 parent 353bae5 commit 8743db6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,8 @@ life easy and if [[https://github.com/junjiemars/nore][Nore]] already on your ma

#+ATTR_HTML: :style text-align:left
[[https://lldb.llvm.org/][lldb]] and [[https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/][cdb]] had been perfectly integrated.
- =gud-lldb=
- =gud-cdb=

#+ATTR_HTML: :style display:none
/screenshots/:
Expand Down
11 changes: 6 additions & 5 deletions config/gud-lldb.el
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,11 @@ Return absolute filename when FILENAME exists, otherwise nil."
" else [random.randrange(0,x) for c in range(0,16)];")))


(defun lldb-settings-init-file (dir)
"Make lldb's init file under DIR."
(save-str-to-file (lldb-init-statement)
(concat dir ".lldbinit-lldb")))
(defun lldb-settings-init-file (&optional force)
"Make lldb's init file if FORCE or the init file does not exists."
(let ((file (expand-file-name "~/.lldbinit-lldb")))
(when (or force (null (file-exists-p file)))
(save-str-to-file (lldb-init-statement) file))))


(defun lldb-script-apropos (ss)
Expand Down Expand Up @@ -337,7 +338,7 @@ invoked."
#'gud-lldb-marker-filter
#'gud-lldb-find-file)

(lldb-settings-init-file default-directory)
(lldb-settings-init-file)

(*lldb* (get-buffer (format "*gud-%s*" gud-target-name)))

Expand Down

0 comments on commit 8743db6

Please sign in to comment.