Your message dated Sun, 03 Aug 2025 17:10:49 -0400
with message-id <[email protected]>
and subject line Closing bug
has caused the Debian Bug report #863620,
regarding gdb: breakpoints disappear after recompiling
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
863620: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863620
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gdb
Version: 7.12-6
Severity: normal
Dear Maintainer,
I'm debugging a test C program. I compile it with gcc as follow
gcc -Wall -g xxx.c -o xxx
I have set some breakpoints. If I recompile the code for debugging.
Then I execute the program using the command
run and the breakpoints disappear. This ought to work, but doesn't
restore my breakpoints.
the output is
`/home/tw/Documents/test1/xxx' has changed; re-reading symbols.
Error in re-setting breakpoint 1: Cannot access memory at address 0x5555555546f0
Starting program: /home/tw/Documents/test1/xxx
[Switching to thread 1 (process 11336)](running)
[Inferior 1 (process 11336) exited normally]
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64
(x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gdb depends on:
ii libbabeltrace-ctf1 1.5.1-1
ii libbabeltrace1 1.5.1-1
ii libc6 2.24-10
ii libexpat1 2.2.0-2
ii liblzma5 5.2.2-1.2+b1
ii libncurses5 6.0+20161126-1
ii libpython3.5 3.5.3-1
ii libreadline7 7.0-3
ii libtinfo5 6.0+20161126-1
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages gdb recommends:
ii libc6-dbg [libc-dbg] 2.24-10
Versions of packages gdb suggests:
ii gdb-doc 7.12-2
ii gdbserver 7.12-6
-- no debconf information
--- End Message ---
--- Begin Message ---
I can't reproduce this bug with 16.1 anymore:
--8<---------------cut here---------------start------------->8---
(gdb) kill
Kill the program being debugged? (y or n) y
[Inferior 1 (process 5924) killed]
(gdb) shell touch a.out
(gdb) r
`/root/a.out' has changed; re-reading symbols.
Starting program: /root/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, main () at hello.c:1
1 extern int puts(const char *); int main() { puts("hello world"); }
--8<---------------cut here---------------end--------------->8---
I'm closing it. Feel free to reopen if it's still applicable.
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/
signature.asc
Description: PGP signature
--- End Message ---