[clug-progsig] C++ with debugger on Linux

Carl ct at turner.ca
Sun Feb 13 10:09:51 PST 2005


If I recall correctly the following should work.

1. Load the file with the place you want to set the break point. I use
C-x C-f. I then use a Cntl button and my left mouse button to easily
switch between files if needed.
2. Move the cursor to the place in the file where you want to break and
use C-c C-b. (I loaded gdb and looked at the Gud menu to help me
remember the exact command.)
3. Run the program. C-c C-r (I think)
4. Emacs should stop in that file. Then you can step continue etc.

If you are doing the above steps but are still running into a problem
let me know.

Carl



On Sun, 2005-02-13 at 10:28, Dan Cohen wrote:
> On Thu, 2005-02-10 at 16:15, Dan Cohen wrote:
> > I want to develop a C++ XML KDE application on my SuSe Linux computer.
> > I wonder if any ProgSig reader could recommend a system or platform?
> 
> Later, Carl replied:
> >It has been a few years so I don't remember the details.
> >But I have developed non-graphical C++ applications
> >using GDB within Emacs.
> >The appropriate source files would load automatically  
> >upon hitting break points and stepping through code. 
> 
> OK Carl, but using GDB, I can set breakpoints on the "main" source file, and I 
> can step into the secondary files, but I can't find a way to set breakpoints 
> on those other files.
> 
> It could be a command option, and I haven't found the trick.
> 
> Any advice on setting breakpoints with GDB?
> 
> BTW, I think GDB is a great tool, with the "right" kind of command front-end 
> for text. I just haven't found the trick.
> 
> Thank you,
>  --- Dan Cohen in Calgary
> 
> _______________________________________________
> clug-progsig mailing list
> clug-progsig at clug.ca
> http://clug.ca/mailman/listinfo/clug-progsig_clug.ca




More information about the clug-progsig mailing list