By the way, the *gud* buffer's first line is > Current directory is ~/ However, the Emacs source code is in ~/emacs. Maybe this is the problem? But I started Emacs from ~/emacs. How can I set the *gud* buffer's current directory? On Fri, Aug 11, 2017 at 12:55 PM, Itai Berli wrote: > Typing "b main" in the *gud* buffer results in the following error > message: > > > Current buffer has no process > > On Fri, Aug 11, 2017 at 12:52 PM, Eli Zaretskii wrote: > >> > From: Itai Berli >> > Date: Fri, 11 Aug 2017 12:27:01 +0300 >> > Cc: Emacs developers >> > >> > Paul Eggert wrote: >> > >> > > type the GDB command "b Fexpand_file_name" to plant a breakpoint in >> (say) Fexpand_file_name >> > >> > What do you mean by 'Fexpand_file_name'? The name of a file, or the >> name of a function? >> >> It's the name of a function. >> >> > Could you give me >> > a concrete example? Suppose, for instance, I wish to place a breakpoint >> at the start of the 'main; function. How >> > can I do so? >> >> "b main". "b" is a short for "break". >> > >