From: John Murray <john@gardenway.org>
To: emacs-devel@gnu.org
Subject: gdb does not stop on breakpoint in emacs, but does stop in commandline mode
Date: Thu, 28 Dec 2017 07:58:45 -0700 [thread overview]
Message-ID: <CAHiO-hf00PCG61jb9bv3B_33BTH5XN4Q_B0ypUfSshi4R_qCAA@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2017-12-28 14:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 14:58 John Murray [this message]
2017-12-28 17:43 ` gdb does not stop on breakpoint in emacs, but does stop in commandline mode Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHiO-hf00PCG61jb9bv3B_33BTH5XN4Q_B0ypUfSshi4R_qCAA@mail.gmail.com \
--to=john@gardenway.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).