From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Murray Newsgroups: gmane.emacs.devel Subject: gdb does not stop on breakpoint in emacs, but does stop in commandline mode Date: Thu, 28 Dec 2017 07:58:45 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043dbed8ad4fc6056167c0c6" X-Trace: blaine.gmane.org 1514473069 17166 195.159.176.226 (28 Dec 2017 14:57:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Dec 2017 14:57:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 28 15:57:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUZcp-0003s8-8E for ged-emacs-devel@m.gmane.org; Thu, 28 Dec 2017 15:57:39 +0100 Original-Received: from localhost ([::1]:53972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUZeo-0003Bx-2Y for ged-emacs-devel@m.gmane.org; Thu, 28 Dec 2017 09:59:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUZdw-00039p-Bj for emacs-devel@gnu.org; Thu, 28 Dec 2017 09:58:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUZdv-0006Zm-Hd for emacs-devel@gnu.org; Thu, 28 Dec 2017 09:58:48 -0500 Original-Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:45552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUZdv-0006Yy-Bj for emacs-devel@gnu.org; Thu, 28 Dec 2017 09:58:47 -0500 Original-Received: by mail-ot0-x233.google.com with SMTP id d44so26126560otd.12 for ; Thu, 28 Dec 2017 06:58:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gardenway.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=/I4t7ydH9F3HX3YcfB4jqUBOhgJNHAguWAzKvuAC7hw=; b=gJ8Dxlbc/huWelWmgzP6Iqsr1Ag6s9BEeBHWLB73+2Zu0lxXEx+0pzU06VuykRX+ZV ufuzuqNnemBS/a4KxmqI8I6ucv4klMgeyHNms+e7Z/ihdjKjOhWNcoci6v7g0ALLx5V3 S11RBwqgokLHhFhC3Y1lS3Zz+HLoGgAVVG0lu1Q667hYmi+jSC0JI5HVp9oLjK6BGZZI opMoSI9bYWdiOgztIqVnGT4yVpIfZTw+8F+ekUIeAXesmJowjX+JxAbm2uKG7Wsd4rOo QauOd0fc0n52QdWeyuTVmE1ADk31w+y3gqEt2aN1rqHii0yz6fZjwmxlIRANsEqVgHcN eLFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/I4t7ydH9F3HX3YcfB4jqUBOhgJNHAguWAzKvuAC7hw=; b=YFJKuNRwS/y/UUjrZ0KF5fLCaLiOHd0vyYAh46LyfzHxc6hcVkorT/7j4UD0wPkb2h +V4qiMWXnmYegq6uuuoBCevSFCQkHlYVyuC+JXfIxcG+stHxWGttAEkETMLiUv+egiry MoinTTBlnnuyvTmPHCsgAwcu425jOFX/edPG1TSyLZ2NASp0EGwWbNJl6wrzByC3UyuH 8HjpD0Dqs3YZL72gOp8ID/jB3QGio0cf4OHUeYRrAETr6RVWzLy234kvh/5pcGVM856V RvkAAUQ9ZJewleEOo03Or/rFVuWfWB7Y59fgHuXjGsUfHq15p7LwcWGwswN6MvS1h5IU OfTg== X-Gm-Message-State: AKGB3mLhdfw0P9GYuZdwCiviUNRx+u/HB53mrc1OGlgXZMbDL7aVHNcY cHnPrr7ZWjcI9w66BqTRleCAYkY6XI2BLtXmO91vrw== X-Google-Smtp-Source: ACJfBou+V5KQMEJSy5aRS7v1G4Z6xZhaVjvagi7S8DOfUmYvbmHbYmbFBrV5GHIq1Lk3O6FtBD5qKR/DZDHnFWDnGZ4= X-Received: by 10.157.87.199 with SMTP id q7mr14011254oti.286.1514473125648; Thu, 28 Dec 2017 06:58:45 -0800 (PST) Original-Received: by 10.74.162.197 with HTTP; Thu, 28 Dec 2017 06:58:45 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221441 Archived-At: --f403043dbed8ad4fc6056167c0c6 Content-Type: text/plain; charset="UTF-8" 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 801-628-0543 --f403043dbed8ad4fc6056167c0c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I set a breakpoint in a=C2=A0shared library in gdb on emac= s run the program and the breakpoint is ignored.

If I fo= llow the same procedures in gdb from the command line, gdb stops at the bre= akpoint.


emacs version:=C2=A0 25.3.= 1
gdb version:=C2=A0 7.2-75.e16
gdb-mi.el loaded
<= div>
More detail:

I start gdb in ema= cs using the command:

gdb -i=3Dmi /path to executa= ble/executable

> break main
> run<= /div>
> info func=C2=A0.*ProcessCommand.*
...
[a= ddress of desired function]

> break *[address o= f the desired funciton]
> continue

Us= ing this sequence inside emacs, gdb ignores the breakpoint.
Using= this sequence using gdb=C2=A0from the command line, the code stops at the = breakpoint.

I note that the function is in a share= d library.

Any suggestions would be appreciated.

Thank you!

john
= --

John W. Murray
John@garden= way.org
801-628-0543
--f403043dbed8ad4fc6056167c0c6--