Configuring emacs gdb behavior

Emacs Asked by Onye on December 17, 2020

I’ve been using gdb in emacs for a bit now and I mostly love it, but there are some minor quirks about its behavior that I find bothersome and I wanted to know how to go about tweaking them. I also want to say I know almost nothing about modifying emacs in general.

I’ve been using gdb-many-windows when I debug. The thing I want to change is the behavior around breakpoints. After a breakpoint is hit, the source window moves to the line I placed the breakpoint on. This is good, I like that. But after that, if I move to a different part of the source file myself and then run any gdb command, the source window will automatically move back to the line containing the breakpoint. So if I want to, say, set a breakpoint at a different line of the source file, the moment I do so the source window snaps back to the first breakpoint. This has me constantly moving up and down the source file.

Is there any way I can change this? I’ve tried googling and I can’t seem to find anything about this.

Add your own answers!

Related Questions

Can I take vector (SVG) screenshots of Emacs?

2  Asked on September 2, 2021 by clment


tramp and sudo: how to edit files under another account

3  Asked on September 2, 2021 by daniel-wu


Tramp session fails to recover from inactivity

2  Asked on September 2, 2021 by bignose


How company-mode suggestions are delivered?

1  Asked on September 2, 2021 by seonghyun-park


How to set utf-8 encoding for *markdown-output* buffer?

1  Asked on September 2, 2021 by volodymyr


Bind keybord shortcuts to a MIDI keyboard?

1  Asked on September 2, 2021 by gabriele-nicolardi


How to wrap lines at window edge

2  Asked on September 2, 2021 by lambda-pumpkin


C-h v gives ” Symbol’s value as variable is void: default

0  Asked on September 2, 2021 by brian-postow


Fixed length buffer for shell

1  Asked on September 2, 2021


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP