kgdb
[Top] [All Lists]

Re: kgdb and 2.2.14-5 from RH 6-2.

To: Scott Foehner <sfoehner@xxxxxxxxxxxxxxxxxxx>
Subject: Re: kgdb and 2.2.14-5 from RH 6-2.
From: Douglas Kilpatrick <dougk@xxxxxxxxxxx>
Date: Fri, 7 Apr 2000 18:58:06 -0400 (EDT)
Cc: kgdb@xxxxxxxxxxx
In-reply-to: <10004071538.ZM80669@xxxxxxxxxxxxxxxxxxx>
Sender: owner-kgdb@xxxxxxxxxxx
On Fri, 7 Apr 2000, Scott Foehner wrote:

> > Second question:
> >
> > For some reason, I can't see global variables.  Any idea how to fix?
> 
> You can't see globals?  Those should be the easiest to get at.  Can you
> give me an example of a global you're trying to see, but can't?

(gdb) add-symbol-file ../wss.o 0xc482f050
add symbol table from file "../wss.o" at text_addr = 0xc482f050?
(y or n) y
(gdb) break wss_evspace_resolve
Breakpoint 1 at 0xc483548c: file wss_evspace.c, line 206.
(gdb) c
Continuing.

Breakpoint 1, wss_evspace_resolve (name=0xc26e4ccd "file_accesses")
    at wss_evspace.c:206
206         int retval = find_space(name);
(gdb) list
201     int EXPORT
202     wss_evspace_resolve(wss_char_t *name)
203     {
204         static int counter = 0;
205
206         int retval = find_space(name);
207
208         if (retval < 0) {
209             WSI_MUTEX_ENTER(wss_evspace);
210             retval = ++counter;
(gdb) n
208         if (retval < 0) {
(gdb)
210             retval = ++counter;
(gdb)
212             add_space(name, retval);
(gdb) print retval
$6 = 2
(gdb) print counter
$7 = 1459617803                                                                 


I can see globals of the kernel, its globals of a module that I can not
see.  In this case I think I'm getting a different global than I thought
I was getting.  In other cases I get "No symbol 'foo' in current context."


Doug
-- 
dougk@xxxxxxxxxxx
dkilpatr@xxxxxxx



<Prev in Thread] Current Thread [Next in Thread>