-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoints with GDB on certain lines in some C++ program fail to be set #189
Comments
Hey and thank you for the detailed bug report and sorry for the long lead time. I tried today to reproduce the issue with GDB 15.2 and dape 19 but with no success.
|
Thank you for your response. Unfortunately, the issue is still reproduced with GDB 16 in my environment. (Strictly speaking, the greedy memory consumption no longer happens.) To install GDB 16.1 on Fedora 41, I took the steps like the following: sudo dnf install gmp-devel mpfr-devel texinfo python3-devel
mkdir gdb && cd $_
# download gdb-16.1.tar.xz.sig and gdb-16.1.tar.xz to this directory via https://sourceware.org/gdb/download/
wget https://ftp.gnu.org/gnu/gnu-keyring.gpg
gpgv --keyring ./gnu-keyring.gpg gdb-16.1.tar.xz.sig gdb-16.1.tar.xz
tar -xvJf gdb-16.1.tar.xz
cd gdb-16.1/
mkdir build && cd $_
../configure --with-python
make
sudo make install And I executed dape 0.21.0 (ELPA) on the same code with the option you suggest:
Thank you again. |
OS: Fedora Linux 41 (Workstation Edition)
Emacs: GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-10-10
Dape: 0.19.0
GDB: GNU gdb (Fedora Linux) 15.2-3.fc41
GCC: g++ (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
Hi.
Breakpoints with Dape/GDB on certain lines in some C++ program fail to be set and then Emacs begins to eat memory greedily and will be killed by the system eventually. Here is the program:
Main.cpp
Setting a breakpoint to the line 6 (
int main()
), 7 or 8 gets this phenomenon happen, but for the line 9 (v = {1, ...
) it seems like to work normally.dape config
Makefile
*dape-repl*
*dape-connection events*
Thank you in advance.
The text was updated successfully, but these errors were encountered: