Your message dated Sun, 27 Jul 2025 22:06:15 -0400
with message-id <[email protected]>
and subject line Closing
has caused the Debian Bug report #865960,
regarding warning: Could not rename //.gdb_history-gdb26953~ to //.gdb_history
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.)
--
865960: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865960
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gdb
Version: 8.0-1
Severity: normal
Simply starting and quitting gdb shows messages like this:
[marek@cacao:/]$ gdb
...
(gdb) quit
warning: Could not rename //.gdb_history-gdb26953~ to //.gdb_history: File
or directory not found
So, it seems that GDB tries to create the history file in the current
directory instead of $HOME; running GDB from /tmp does work.
Providing a line in ~/.gdbinit
set history filename /home/....
makes the warning go away, so this configuration seems mandatory now.
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8),
LANGUAGE=de_AT:de (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.2-1
ii libbabeltrace1 1.5.2-1
ii libc6 2.24-12
ii libexpat1 2.2.1-1
ii liblzma5 5.2.2-1.2+b1
ii libncurses5 6.0+20170408-1
ii libpython3.5 3.5.3-3
ii libreadline7 7.0-3
ii libtinfo5 6.0+20170408-1
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages gdb recommends:
ii libc6-dbg [libc-dbg] 2.24-12
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 the problem. GDB doesn't automatically save history
files, so you probably have something in your .gdbinit instructing it to
do so. It's hard to say without more information.
I'm closing this bug now because it seems like it's a local
configuration issue, but feel free to reopen it if it's still
applicable.
Thanks,
--
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 ---