This is using a CVS GDB (specifically insight) tree updated on March 13th.

Compile the following program on i386 linux with -g:

#include <stdio.h>
 
void foo(void)
{
    printf("Hello world!\n");
}
 
int main()
{
    foo();
    return 0;
}

Set a breakpoint on foo. Type "run" and it will hit the breakpoint. Type
"finish" and it core dumps. Similarly you can set a breakpoint on main, run,
and type "call foo()", and that also core dumps.

Wouldn't this type of simple stuff be in the testsuite? If not, it should
:-).

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

Reply via email to