When use pacman to update gdb to a new version, the modified file etc/gdbinit get blindly overwrite by the update, is it by design? #19893
Replies: 4 comments 5 replies
-
You mean the gcc package, right? Since that's where the gdbinit file comes from. Also I think gdbinit is just missing the |
Beta Was this translation helpful? Give feedback.
-
This file is very tricky, if you look at the content of this file, it contains such things:
Note that the gcc version is hard-coded in this file. I'm not sure it is belong to gcc package or gdb package. Anyway, can some administrator translate this discussion to an issue? Or do I need to write another issue? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to remove the hard-coded gcc version strings? The interesting thing is: I have many folders, such as So, once a new gcc package is installed, I have a new folder named |
Beta Was this translation helpful? Give feedback.
-
You could write your own customized gdbinit and save as $HOME/.gdbinit or $HOME/.config/gdb/gdbinit, It won't be overwritten by any update On native Windows $HOME generally refers to $USERPROFILE |
Beta Was this translation helpful? Give feedback.
-
Hi, sometimes, I need to modify the file
<msys2_root>\mingw64\etc\gdbinit
to include some customized gdb pretty printer, but once I run thepacman
update command to update the gdb to a new version, this file always get overwriten by the new content. Thus after the update, my changes are lost.Is this by design?
When discussed with ssbssa at this post, see this comment: ssbssa/gdb#4 (comment)
He said this is not following the way by the pacman's document mentioned here: pacman/Pacnew and Pacsave
Any ideas?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions