This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/514: can't see code in Shared library at breakpoint



>Number:         514
>Category:       gdb
>Synopsis:       can't see code in Shared library at breakpoint
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 30 08:18:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Barto <barto@visionpro.com>
>Release:        gdb-5.2
>Organization:
>Environment:
Solaris 8/Sparc
>Description:
download
./configure (nothing special)
./gdb/gdb <my program>
GNU gdb 5.2
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) b main
Breakpoint 1 at 0x24b6c: file ui3_main.c, line 138.
(gdb) r
Starting program: /net/rabbit-hutch/export/home/rabbit-hutch/barto/mvp/work/pcb-solaris/host/ui3/ui3 
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]

Breakpoint 1, main (argc=1, argv=0xffbee474) at ui3_main.c:138
(gdb) b ScreenData::show_tile
Breakpoint 2 at 0xfe75cac4
(gdb) c
Continuing.

Breakpoint 2, 0xfe75cac4 in show_tile__10ScreenData (this=0x8e8e68)
   from /export/home/uber-rabbit/barto/mvp/work/pcb-solaris/lib/libmvpdrawing.so
(gdb) l
156
157         /* Create a Global Application Context */
158
159         app_context = XtCreateApplicationContext ();
160
161         /* Open the Display */
162
163         display = XtOpenDisplay(app_context, (String) 0, argv[0], "UserInterface3",
164                                (XrmOptionDescRec *) 0, 0, &argc, argv);
165         if (display == (Display *) 0) {
(gdb) where
#0  0xfe75cac4 in show_tile__10ScreenData (this=0x8e8e68)
   from /export/home/uber-rabbit/barto/mvp/work/pcb-solaris/lib/libmvpdrawing.so
#1  0xfe766930 in fx_all__13ScreenDrawing (this=0x299aa0) at commonfuncs.c:158
#2  0xfe766a98 in fx_dbase__13ScreenDrawingi (this=0x299aa0, file_type=1) at commonfuncs.c:207
#3  0xfeb8082c in find_directory_files__FlP6Funnel (filter=4097, remote=0xcab08) at algoinit.c:597
#4  0xff146904 in load_database__Fl (style=4097) at editor_frame.c:105
#5  0xff1473a0 in load_as_cb__FP10_WidgetRecPvT1 (w=0x12cc58, u=0x0, x=0xffbee02c)
    at editor_frame.c:231
#6  0xfd6bce68 in XtCallCallbackList () from /usr/lib/libXt.so.4
#7  0xfd8031f0 in ActivateCommon () from /usr/lib/libXm.so.4
#8  0xfd6bff7c in HandleActions () from /usr/lib/libXt.so.4
#9  0xfd6c6efc in HandleComplexState () from /usr/lib/libXt.so.4
#10 0xfd6be8d8 in _XtTranslateEvent () from /usr/lib/libXt.so.4
#11 0xfd6be64c in XtDispatchEventToWidget () from /usr/lib/libXt.so.4
#12 0xfd6bdedc in _XtDefaultDispatcher () from /usr/lib/libXt.so.4
#13 0xfd6bda0c in XtDispatchEvent () from /usr/lib/libXt.so.4
#14 0xfd6bb5a4 in XtAppMainLoop () from /usr/lib/libXt.so.4
#15 0x000257b0 in main (argc=1, argv=0xffbee474) at ui3_main.c:359
(gdb) up
#1  0xfe766930 in fx_all__13ScreenDrawing (this=0x299aa0) at commonfuncs.c:158
158         ScrClose->show_tile();
(gdb) down
#0  0xfe75cac4 in show_tile__10ScreenData (this=0x8e8e68)
   from /export/home/uber-rabbit/barto/mvp/work/pcb-solaris/lib/libmvpdrawing.so
(gdb) l show_tile__10ScreenData
No line number known for show_tile__10ScreenData.
(gdb) up
#1  0xfe766930 in fx_all__13ScreenDrawing (this=0x299aa0) at commonfuncs.c:158
158         ScrClose->show_tile();
(gdb) 


the but is in the line 'No line number known for' when
I know it exists, and going up the call tree will allow
earlier code to be seen. If I continue to the next function DOWN
the call tree, then say UP, I can see the code in the
function I wanted to debug.

gcc version is 2.95.2
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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