Subject: bug#10580: 24.0.92; gdb initialization takes more than one minute at 100% CPU

From: Glenn Morris <[email-masked]>
Date: Tue, 24 Jan 2012 19:37:14 -0500

>> I tried again with emacs -Q and the same thing happens. To be more
>> precise the startup time is about 40s at 100% CPU.

Is this with everything you try to debug, or just certain things?

Can you try M-x toggle-debug-on-quit, then interrupt Emacs with ctrl-g
during those 40 seconds and see if you get a backtrace?

Or try M-x edebug-defun on the `gdb' function, step through it, and see
what is taking the time.

Guesses: do you have a huge .gdb_history or ~/.gdbinit file?