all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdb does not stop on breakpoint in emacs, but does stop in commandline mode
@ 2017-12-28 14:58 John Murray
  2017-12-28 17:43 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: John Murray @ 2017-12-28 14:58 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

I set a breakpoint in a shared library in gdb on emacs run the program and
the breakpoint is ignored.

If I follow the same procedures in gdb from the command line, gdb stops at
the breakpoint.


emacs version:  25.3.1
gdb version:  7.2-75.e16
gdb-mi.el loaded

More detail:

I start gdb in emacs using the command:

gdb -i=mi /path to executable/executable

> break main
> run
> info func .*ProcessCommand.*
...
[address of desired function]

> break *[address of the desired funciton]
> continue

Using this sequence inside emacs, gdb ignores the breakpoint.
Using this sequence using gdb from the command line, the code stops at the
breakpoint.

I note that the function is in a shared library.

Any suggestions would be appreciated.

Thank you!

john
-- 

*John W. Murray*
John@gardenway.org <Michael@HepworthMurray.com>
801-628-0543

[-- Attachment #2: Type: text/html, Size: 1700 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-28 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 14:58 gdb does not stop on breakpoint in emacs, but does stop in commandline mode John Murray
2017-12-28 17:43 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.