I fixed the patch a bit.
The bt command does not work correctly with the core created when
calling the ABORT(3) as follows:
$ cat main.c
#include
#include
#include
int
main(int argc, char *argv[])
{
printf("argc = %d\n", argc);
abort();
return (0);
}
$ cc -static main.
I refferd to the core of static linked in GDB. However, the backtrace
command did not display the symbols correctly.
$ cat main.c
#include
void
sub2(int argc, char *argv[])
{
int i;
for (int i = 0; i <= argc; i++)
argv[i][0] = '\0';
}
void
sub1(int argc, char *a