This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
problem running gdb 6.4 on HP-UX 10.20
- From: Ralf Fassel <ralf at akutech dot de>
- To: gdb at sourceware dot org
- Date: Sat, 3 Jun 2006 18:49:22 +0200
- Subject: problem running gdb 6.4 on HP-UX 10.20
This must be something simple/stupid/...
I can't debug even the simplest hello.c program on HP 10.20
using gdb 6.4, or the snapshot version 6.5.50.20060530.
Sample session:
% cat hello.c
/* hello.c */
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("hello world\n");
if (fflush(stdout) != 0) {
perror("hello");
exit(1);
}
exit(0);
}
% gcc -v
gcc version 4.0.2
% gcc -g -o hello hello.c
% ./hello
hello world
% gdb hello
GNU gdb 6.4
...
This GDB was configured as "hppa2.0-hp-hpux10.20"
(gdb) run
Segmentation fault (core dumped)
And I'm back in the shell
% file core
file core
core: core file from 'csh' - received SIGTRAP
If I set SHELL to /bin/sh, the core file reads:
% env SHELL=/bin/sh gdb hello
GNU gdb 6.4
(gdb) run
Segmentation fault (core dumped)
% file core
file core
core: core file from 'sh' - received SIGTRAP
gdb 6.3 runs without problems:
% /software/gdb/6.3/HP-UX-B.10/bin/gdb hello
GNU gdb 6.3
...
This GDB was configured as "hppa2.0-hp-hpux10.20"
(gdb) run
hello world
Program exited normally.
(gdb)
% uname -a
HP-UX luchs B.10.20 A 9000/785 2016677554 two-user license
Any hints? I have not the faintest idea what might cause this.
Should I file a bug report? Does anyone still care about HP-10?
R',
why do customers stick to their `but-it-works-why-should-i-upgrade'-systems?