This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Variable "foo" is not available
On Sat, Apr 02 2005, Eli Zaretskii wrote:
> Rainer, could you please use the GDB "up" command a few times, and
> after each time type "info args" and see whether that does give you
> the arguments of the function call in that frame?
--8<---------------cut here---------------start------------->8---
(gdb) up
#1 0x0000000000539245 in Fgarbage_collect ()
at [...]/emacs/src/alloc.c:4742
4742 stack_copy = (char *) xrealloc (stack_copy, (stack_copy_size = i));
(gdb) info args
No arguments.
(gdb) up
#2 0x000000000057a1d4 in Fbyte_code (bytestr=9727377, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:531
531 break;
(gdb) info args
bytestr = 9727377
vector = Variable "vector" is not available.
(gdb) up
#3 0x000000000054d59d in funcall_lambda (fun=29850740, nargs=1,
arg_vector=0x7fbfffb198)
at [...]/emacs/src/eval.c:2974
2974 val = Fbyte_code (AREF (fun, COMPILED_BYTECODE),
(gdb) info args
fun = 29850740
nargs = 1
arg_vector = (long int *) 0x7fbfffb198
(gdb) up
#4 0x000000000054daee in Ffuncall (nargs=Variable "nargs" is not available.
)
at [...]/emacs/src/eval.c:2843
2843 val = funcall_lambda (fun, numargs, args + 1);
(gdb) info args
nargs = Variable "nargs" is not available.
(gdb) up
#5 0x0000000000579cc9 in Fbyte_code (bytestr=9727377, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:686
686 TOP = Ffuncall (op + 1, &TOP);
(gdb) info args
bytestr = 9727377
vector = Variable "vector" is not available.
(gdb) up
#6 0x000000000054d150 in Feval (form=Variable "form" is not available.
)
at [...]/emacs/src/eval.c:2138
2138 val = (*XSUBR (fun)->function) (argvals[0], argvals[1],
(gdb) info args
form = Variable "form" is not available.
(gdb) up
#7 0x000000000054fcb8 in Fcondition_case (args=Variable "args" is not available.
)
at [...]/emacs/src/eval.c:1332
1332 val = Feval (bodyform);
(gdb) info args
args = Variable "args" is not available.
(gdb) up
#8 0x000000000057925f in Fbyte_code (bytestr=29655265, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:864
864 TOP = Fcondition_case (Fcons (TOP, v1));
(gdb) info args
bytestr = 29655265
vector = Variable "vector" is not available.
(gdb) up
#9 0x000000000054d59d in funcall_lambda (fun=29688788, nargs=3,
arg_vector=0x7fbfffb6f8)
at [...]/emacs/src/eval.c:2974
2974 val = Fbyte_code (AREF (fun, COMPILED_BYTECODE),
(gdb) info args
nargs = Variable "nargs" is not available.
(gdb) up
#11 0x0000000000579cc9 in Fbyte_code (bytestr=11494737, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:686
686 TOP = Ffuncall (op + 1, &TOP);
(gdb) info args
bytestr = 11494737
vector = Variable "vector" is not available.
(gdb) up
#12 0x000000000054d59d in funcall_lambda (fun=29857172, nargs=3,
arg_vector=0x7fbfffb8a8)
at [...]/emacs/src/eval.c:2974
2974 val = Fbyte_code (AREF (fun, COMPILED_BYTECODE),
(gdb) info args
fun = 29857172
nargs = 3
arg_vector = (long int *) 0x7fbfffb8a8
(gdb) up
#13 0x000000000054daee in Ffuncall (nargs=Variable "nargs" is not available.
)
at [...]/emacs/src/eval.c:2843
2843 val = funcall_lambda (fun, numargs, args + 1);
(gdb) info args
nargs = Variable "nargs" is not available.
(gdb) up
#14 0x0000000000579cc9 in Fbyte_code (bytestr=25161265, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:686
686 TOP = Ffuncall (op + 1, &TOP);
(gdb) info args
bytestr = 25161265
vector = Variable "vector" is not available.
(gdb) up
#15 0x000000000054d59d in funcall_lambda (fun=29855572, nargs=2,
arg_vector=0x7fbfffba78)
at [...]/emacs/src/eval.c:2974
2974 val = Fbyte_code (AREF (fun, COMPILED_BYTECODE),
(gdb) info args
fun = 29855572
nargs = 2
arg_vector = (long int *) 0x7fbfffba78
(gdb) up
#16 0x000000000054daee in Ffuncall (nargs=Variable "nargs" is not available.
)
at [...]/emacs/src/eval.c:2843
2843 val = funcall_lambda (fun, numargs, args + 1);
(gdb) info args
nargs = Variable "nargs" is not available.
(gdb) up
#17 0x0000000000579cc9 in Fbyte_code (bytestr=25161313, vector=Variable "vector" is not available.
)
at [...]/emacs/src/bytecode.c:686
686 TOP = Ffuncall (op + 1, &TOP);
--8<---------------cut here---------------end--------------->8---
Do you need more?
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/