This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]