public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Uninstall GDB 9.2 from manual installation
@ 2021-10-05 14:59 Hillary Barder
  2021-10-06 10:48 ` Andrew Burgess
  0 siblings, 1 reply; 2+ messages in thread
From: Hillary Barder @ 2021-10-05 14:59 UTC (permalink / raw)
  To: gdb-patches

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!

Best,
Emily

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Uninstall GDB 9.2 from manual installation
  2021-10-05 14:59 Uninstall GDB 9.2 from manual installation Hillary Barder
@ 2021-10-06 10:48 ` Andrew Burgess
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Burgess @ 2021-10-06 10:48 UTC (permalink / raw)
  To: Hillary Barder; +Cc: gdb-patches

* 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-06 10:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 14:59 Uninstall GDB 9.2 from manual installation Hillary Barder
2021-10-06 10:48 ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).