Subject: compile with gdb running

From: [email-masked]
Date: Sat, 22 Oct 2011 14:25:19 -0400

I am using emacs pretest on GNU/Linux. I stumbled upon an interesting behaviour today. How to reproduce:

emacs -q
M-x gdb RET ls RET
r
# at this point gdb is starting ls
M-x compile RET

The compile buffer pops up, but there is not the 

"make: *** No targets specified and no makefile found.  Stop.
Compilation exited abnormally ..."-

output.

Is this a bug? If so, how can I work around it?