🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10090

Can't use breakpoints on the HP

#10090
From: Derek Clegg
Date: Mon, 30 Jul 1990 15:48
58 lines
2982 bytes
I am trying to get `gdb' working on an HP 9000/370 running HP-UX 7.0.  I
have successfully made and installed `gcc', `gas', and `GNU ld'.  I was
able to make `gdb' with no difficulties.  However, when I use `gdb', I
cannot stop programs successfully at a breakpoint.  The following
transcript shows what typically happens:

    % cat > hello.c
    main() { printf("hello, world\n"); }
    ^D
    %
    % gcc -v -o hello -g hello.c
    gcc version 1.37
    /usr/local/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dhp9000s200
        -Dhp9000s300 -DPWB -Dhpux -Dunix -D__hp9000s300 -D_HPUX_SOURCE
        -D__hp9000s200__ -D__hp9000s300__ -D__PWB__ -D__hpux__
        -D__unix__ -D____hp9000s300__ -D___HPUX_SOURCE__
        -D__HAVE_68881__ -Dmc68020 -D_INCLUDE__STDC__
        hello.c /usr/tmp/cca20778.cpp
    GNU CPP version 1.37
    /usr/local/gnu/lib/gcc-cc1 /usr/tmp/cca20778.cpp -quiet -dumpbase
        hello.c -g -version -o /usr/tmp/cca20778.s
    GNU C version 1.37 (68k, MIT syntax) compiled by GNU C version 1.37.
    default target switches: -m68020 -mc68020 -m68881 -mbitfield
    /usr/local/gnu/lib/gcc-as -mc68020 -o hello.o /usr/tmp/cca20778.s
    /usr/local/gnu/lib/gcc-ld -o hello /usr/local/gnu/lib/gcc-crt0.o
        hello.o /usr/local/gnu/lib/gcc-gnulib -lg -lc
        /usr/local/gnu/lib/gcc-gnulib
    %
    % gdb hello
    GDB 3.5, Copyright (C) 1989 Free Software Foundation, Inc.
    There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
    GDB is free software and you are welcome to distribute copies of it
    under certain conditions; type "info copying" to see the conditions.
    Reading symbol data from /usr/local/gnu/src/gdb/hello...done.
    Type "help" for a list of commands.
    (gdb) run
    Starting program: /usr/local/gnu/src/gdb/hello
    hello, world

    Program exited with code 015.
    (gdb) break main
    Reading in symbols for hello.c...done.
    Breakpoint 1 at 0xae: file hello.c, line 1.
    (gdb) run
    Starting program: /usr/local/gnu/src/gdb/hello

    Program received signal 5, SIGTRAP
    0xffffffff in ?? ()
    (gdb) quit
    The program is running.  Quit anyway? (y or n) y
    %

`gdb' was compiled with `config.gdb hp9k320'.  `gcc' was compiled with
`config.gcc hp9k320-gas'.

Any suggestions would be appreciated.

		Derek B Clegg ({ucbcad,sun}!island!derek)
Technical Details
Message-ID: <9007301548.AA15966@fyn.island.uucp>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!SUN.COM!island!fyn!derek

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,57f529db8cd31072,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-07-30 08:48:33 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!SUN.COM!island!fyn!derek
From: island!fyn!derek@SUN.COM (Derek Clegg)
Newsgroups: gnu.gdb.bug
Subject: Can't use breakpoints on the HP
Message-ID: <9007301548.AA15966@fyn.island.uucp>
Date: 30 Jul 90 15:48:33 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 58
Posted: Mon Jul 30 16:48:33 1990