Skip to content

Commit

Permalink
update dape
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Chou committed Mar 16, 2024
1 parent e202683 commit b09ebf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 39 deletions.
42 changes: 3 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,47 +116,11 @@ pip install debugpy

java-debug already been carried in `./data/lsp-java-jars/com.microsoft.java.debug.plugin-0.51.1.jar`

### 4.3 gdb (C/C++)
### 4.3 lldb-dap (C/C++)

gdb >=14.1
lldb-dap (formerly lldb-vscode) is built and installed in section 3.3

#### build gmp for gdb

``` bash
wget https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.gz
tar -vxf gmp-6.3.0.tar.gz
cd gmp-6.3.0
./configure --prefix=/opt/softwares/gmp-6.3.0
make -j $(nproc)
sudo make install
```

#### build mpfr for gdb

``` bash
wget https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.gz
tar -vxf mpfr-4.2.1.tar.gz
cd mpfr-4.2.1
./configure --prefix=/opt/softwares/mpfr-4.2.1
make -j $(nproc)
sudo make install
```

#### build gdb

``` bash
sudo apt install python-dev-is-python3

wget https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.gz
tar -vxf gdb-14.2.tar.gz
cd gdb-14.2
mkdir build && cd build
../configure --prefix=/opt/softwares/gdb-14.2 --with-python=/usr/bin/python3 --with-gmp=/opt/softwares/gmp-6.3.0 --with-mpfr=/opt/softwares/mpfr-4.2.1
#--enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j $(nproc)
sudo make install
sudo ln -sf /opt/softwares/gdb-14.2 /opt/gdb
```
> lldb-vscode adapter in dape actually calls lldb-dap
---

Expand Down
1 change: 1 addition & 0 deletions lisp/init-dape.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
)
:config
(plist-put (alist-get 'debugpy dape-configs) 'command "python")
(plist-put (alist-get 'lldb-vscode dape-configs) 'command "lldb-dap")

;; ;; Save buffers on startup, useful for interpreted languages
;; (add-hook 'dape-on-start-hooks
Expand Down

0 comments on commit b09ebf2

Please sign in to comment.