Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hareesh Nagarajan <hnagaraj@cs.uic.edu>
To: Kris Warkentin <kewarken@qnx.com>
Cc: GDB <gdb@sources.redhat.com>
Subject: Re: Unable to find dynamic linker breakpoint function.
Date: Mon, 28 Feb 2005 16:05:00 -0000	[thread overview]
Message-ID: <421F91FD.9050104@cs.uic.edu> (raw)
In-Reply-To: <421F86A4.3020400@qnx.com>

Kris Warkentin wrote:
> Looks like it has nothing to do with your special libs.  I just tried to 
> reproduce your problem and got this:

Yeah it looks like it has nothing to do with the libs such as libstdc++.
Below I've written a simple program called 'new2.cc'

<new2.cc>

#include <iostream>
using namespace std;

class X
{
     int xx;
public:
     X(int _xx) {xx = _xx;}
     void display(void) { cout << xx; };
};


int main(void)
{
         X xobj(2);
         xobj.display(); 	// Line 15
}

</new2.cc>

I compiled it as follows: g++ new2.cc -onew2 -g

When I break it on line 15, I get the same problem as PR1766
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1766&return_url=http%3A%2F%2Fsources.redhat.com%2Fcgi-bin%2Fgnatsweb.pl%3Fdatabase%3Dgdb%26category%3Dc%252B%252B%26severity%3Dall%26priority%3Dall%26responsible%3Dall%26submitter_id%3Dall%26state%3Dall%26ignoreclosed%3DIgnore%2520Closed%26class%3Dall%26synopsis%3D%26multitext%3D%26columns%3Dcategory%26columns%3Dstate%26columns%3Dclass%26columns%3Dresponsible%26columns%3Dsynopsis%26displaydate%3DDisplay%2520Current%2520Date%26cmd%3Dsubmit%2520query%26sortby%3DResponsible%26.cgifields%3Ddisplaydate%26.cgifields%3Dignoreclosed%26.cgifields%3Doriginatedbyme%26.cgifields%3Dcolumns

<error>
(gdb) b 15
Breakpoint 1 at 0x8048654: file new2.cc, line 15.
(gdb) r
Starting program: /home/hareesh/new2
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Breakpoint 1, main () at new2.cc:15
15              X xobj(2);
(gdb) n
16              xobj.display();
(gdb) inspect xobj.display()

Breakpoint 1, main () at new2.cc:15
15              X xobj(2);
The program being debugged stopped while in a function called from GDB.
When the function (X::display()) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
</error>

My question is, how come GDB doesn't stop on other boxes when I inspect 
a member function and it stops on mine :( ?

Thanks,

Hareesh


      reply	other threads:[~2005-02-25 21:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25  8:04 Hareesh Nagarajan
2005-02-25 17:45 ` Kris Warkentin
2005-02-25 20:20   ` Hareesh Nagarajan
2005-02-25 21:00     ` Kris Warkentin
2005-02-28 16:05       ` Hareesh Nagarajan [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=421F91FD.9050104@cs.uic.edu \
    --to=hnagaraj@cs.uic.edu \
    --cc=gdb@sources.redhat.com \
    --cc=kewarken@qnx.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox