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/1175: gdb problem displaying source lines when breakpoint reached


>Number:         1175
>Category:       gdb
>Synopsis:       gdb problem displaying source lines when breakpoint reached
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 08 17:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     barb dot roesch at wavecom dot ca
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
I am using gdb to remotely debug a SNMP application on a
ARM processor target platform.  The gdb session will not display the source line when a breakpoint is reached or when stepping through the code.
I can use the list command to view the source files.
Below is the output from a session.

[root at beren agent]# gdb_marquis snmpd -f
GNU gdb 5.0
Copyright 2000 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 "--host=i686-pc-linux-gnu --target=armv4b-unknown-lin
ux"...

(gdb) target remote 192.168.145.99:2345
Remote debugging using 192.168.145.99:2345
0x40002570 in ?? ()
(gdb) b main
Breakpoint 1 at 0x2002220: file snmpd.c, line 424.
(gdb) b netsnmp_udp_send
Breakpoint 2 at 0x20838b4: file snmpUDPDomain.c, line 135.
(gdb) c
Continuing.

Breakpoint 1, main (argc=2, argv=0xbffffde4) at snmpd.c:424
/home/barbr/cvs/marquis/othersrc/net-snmp/agent/snmpd.c:424:10655:beg:0x2002220
(gdb) c
Continuing.

Breakpoint 2, netsnmp_udp_send (t=0x20f8fc8, buf=0x2100101, size=95,
    opaque=0x20ff0e4, olength=0x20ff0e8) at snmpUDPDomain.c:135
/home/barbr/cvs/marquis/othersrc/net-snmp/snmplib/snmpUDPDomain.c:135:3113:beg:0
x20838b4

Any help on resolving this would be appreciated.
>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]