From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: karsten.ahnert@googlemail.com Newsgroups: gmane.emacs.help Subject: Re: gud and shared objects Date: Thu, 27 Dec 2012 11:53:59 -0800 (PST) Message-ID: <64ad331f-a820-4a76-a0f3-586c50c5e46a@googlegroups.com> References: <50DB63AD.9090009@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1356638053 17060 80.91.229.3 (27 Dec 2012 19:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 19:54:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 20:54:29 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToJX9-0000Tc-LM for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 20:54:27 +0100 Original-Received: from localhost ([::1]:50238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJWv-00076w-5A for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 14:54:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJWk-00076n-Ne for help-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToJWi-0003cq-9E for help-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:54:02 -0500 Original-Received: from mail-ye0-f192.google.com ([209.85.213.192]:54597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToJWi-0003cd-4j for help-gnu-emacs@gnu.org; Thu, 27 Dec 2012 14:54:00 -0500 Original-Received: by mail-ye0-f192.google.com with SMTP id l2so3734177yen.29 for ; Thu, 27 Dec 2012 11:53:59 -0800 (PST) Original-Received: by 10.49.58.238 with SMTP id u14mr4795983qeq.13.1356638039617; Thu, 27 Dec 2012 11:53:59 -0800 (PST) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.179.37.107; posting-account=htOTvAoAAAAiexI7SVzT6Ze5kV9k59jL Original-NNTP-Posting-Host: 85.179.37.107 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 85.179.37.107 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.213.192 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88328 Archived-At: Am Donnerstag, 27. Dezember 2012 04:54:17 UTC+1 schrieb Eli Zaretskii: > > Date: Wed, 26 Dec 2012 21:53:01 +0100 > > > From: Karsten Ahnert > > > > > > I have a problem with debugging C++ with emacs and gdb. I can set > > > breakpoints in functions defined in shared objects by simply adding them > > > manually via > > > > > > b file_in_so.cpp:23 > > > > > > But if I open file_in_so.cpp in an emacs window I can not use the > > > graphical debugging facilities. I guess, that emacs does not yet know > > > that this file belongs to the sources of the executable. Files belonging > > > not to the shared object are already usable for graphical debugging. > > > Files from the shared object are also usable if a manual breakpoint or > > > an uncaught exception are hit within the shared object. > > > > > > Is there a command telling emacs to reload the current list of all > > > sources, even the ones defined in shared objects? > > > > This is a GDB issue, not an Emacs issue. Try using the GDB command > > "set auto-solib add on". That does also not work. I can see that the shared object has already been loaded by gdb but the source files are not correctly shown in emacs. Maybe this is a path issue?