------- Comment #7 from kev dot gilbert at cdu dot edu dot au  2005-11-01 23:55 
-------
I've just had a look at gdb PR 2024 and disagree with the comment "backtrace
fails when function ends with call to abort". The following code also ehibits
the problem noted here.

==========

#include <stdio.h>
#include <stdlib.h>

int main( int argc, char** argv )
{   printf( "hello world!\n" );
    abort( );
    int i = 0;
    int j = 1;
    printf( "i = %d, j = %d, total = %d\n", i, j, i + j );
    return 0;
}

===========

I have not posted this comment on the gdb database as it may or may not be
relevent to them but I think the point needs to be made.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24490

Reply via email to