(gdb) r
`/home/hanwen/usr/src/foo' has changed; re-reading symbols.
Breakpoint 1, main () at foo.cc:10
(gdb) p 'T::print(void)'
$1 = {void (T *)} 0x80483fc <T::print(void)>
(gdb) n
(gdb) p $1 (t)
Debugger segmentation fault
/**********************/
foo.cc:
struct T
{ int i;
T(){}
void print() { i++ ; }
};
main ()
{
T t;
t.print();
}
/******************************/
this is with GDB 4.18-11 (fresh RedHat 6.2), on i386
--
Han-Wen Nienhuys, [EMAIL PROTECTED] ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html
--
Han-Wen Nienhuys, [EMAIL PROTECTED] ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html