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/958: no symbol <...> in the current context


>Number:         958
>Category:       gdb
>Synopsis:       no symbol <...> in the current context
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 25 01:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Carlos Vicente
>Release:        5.3
>Organization:
>Environment:
RedHat Linux, Kernel 2.4.20, gcc 3.2.
Compiling with -g
>Description:
GDB seems to be missing some local symbols when inside a function.  

Trying to "print" a variable in this code:

void
proc_v6(char *ptr, ssize_t len, struct timeval* tvrecv)
{
#ifdef	IPV6
    	int			hlen1, icmp6len;
    	double			rtt;
    	struct icmp6_hdr	*icmp6;
    	struct timeval		*tvsend;
    	struct ip6_hdr		*ip6;
    
    	ip6 = (struct ip6_hdr *) ptr;		/* start of IPv6 header */
    	hlen1 = sizeof(struct ip6_hdr);
    	if (ip6->ip6_nxt != IPPROTO_ICMPV6)


I set a breakpoint in the last line shown, and gdb says "no symbol ip6 in the current context.

Executing "info locals" I get some of the variables, but not all of them:

(gdb) info locals
icmp6len = 134521408
icmp6 = (struct icmp6_hdr *) 0xbffff240
tvsend = (struct timeval *) 0x804a024
(gdb)
>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]