Uninstall GDB 9.2 from manual installation
Andrew Burgess
andrew.burgess@embecosm.com
Wed Oct 6 10:48:31 GMT 2021
* Hillary Barder via Gdb-patches <gdb-patches@sourceware.org> [2021-10-05 10:59:00 -0400]:
> Hello GDB developer team,
>
> I have installed an old version of GDB from *https://ftp.gnu.org/gnu/gdb/
> <https://ftp.gnu.org/gnu/gdb/>*. Then I simply ran
> ./configure
> make
> sudo make install
>
> to install GDB 9.2 to /usr/local/bin on my Mac. Right now I want to
> completely remove this old version, because it crash my problem and
> consumes 100% CPU sometimes. Could you please tell me how to uninstall it
> in my case? Thank you so much!
>From within the build tree you can do `make -C SUBDIR uninstall` to
uninstall a particular component, so:
make -C gdb uninstall
Or you can try uninstalling all components with something like:
for D in $(find . -maxdepth 1 -type d -name "[a-z]*"); do make -C $(basename $D) uninstall; done
The only problem is that the install/uninstall makefile rules are
maintained separately, and having just tried them here I notice that a
couple of files are still left behind after the uninstall:
jit-reader.h and gdb-add-index, so you might need to manually search
for and delete these files from your install path.
Hope that helps,
Thanks,
Andrew
More information about the Gdb-patches
mailing list