This is the mail archive of the
mailing list for the GDB project.
Re: Call function in gdb
From: firstname.lastname@example.org (J.T. Conklin)
Date: 12 Nov 1999 14:11:33 -0800
>>>>> "hjl" == H J Lu <email@example.com> writes:
hjl> Hi, With old gdb, I can do
hjl> (gdb) call foo (1)
hjl> Now with gdb in CVS, I got "segmentation fault". Any ideas, BTW,
hjl> I am using Linux/i386.
You don't offer much to go on. For what it's worth, calling inferior
functions with a freshly built-from-the-last-snapshot NetBSD/i386 gdb
with the following test code:
JT's example works fine for me too. That is, on Linux 2.2.12 on a
i586 with a post 2.1.2 glibc from early october.