This is the mail archive of the gdb@sourceware.cygnus.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]

Re: Call function in gdb


   From: jtc@redback.com (J.T. Conklin)
   Date: 12 Nov 1999 14:11:33 -0800

   >>>>> "hjl" == H J Lu <hjl@lucon.org> writes:
   hjl> Hi, With old gdb, I can do
   hjl>
   hjl> (gdb) call foo (1)
   hjl>
   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.

Mark



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]