This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdb-980122 behavior on linux with shared libraries


> 
> 
> Can you check gdb 4.16 on solaris?
> 

It is the same as on Linux:

GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for
details.
GDB 4.16 (sparc-sun-solaris2.4), 
Copyright 1996 Free Software Foundation, Inc...
(gdb) b main
Breakpoint 1 at 0x10898: file e.cc, line 5.
(gdb) r
Starting program: /home/hlu/tmp/a.out 
 
Breakpoint 1, main () at e.cc:5
5         cout << "Hellow world" << endl;
(gdb) step
ostream::operator<< (this=0x20b30, s=0x10978 "Hellow world")
    at /home/hlu/gnu/import/egcs/libio/iostream.cc:756
756       if (opfx())
(gdb) b
Breakpoint 2 at 0xef7727e0: file
/home/hlu/gnu/import/egcs/libio/iostream.cc, line 756.
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/hlu/tmp/a.out 
Cannot insert breakpoint 2:
Temporarily disabling shared library breakpoints:
2 
 
Breakpoint 1, main () at e.cc:5
5         cout << "Hellow world" << endl;
(gdb) c
Continuing.
 
Breakpoint 2, ostream::operator<< (this=0x20b30, s=0x10978 "Hellow
world")
    at /home/hlu/gnu/import/egcs/libio/iostream.cc:756
756       if (opfx())
(gdb)

I think it is an ELF problem.

H.J.