My original problem:
>Has anyone gotten gdb-4.1[345] working on DEC OSF1/V3.0? It builds without
>error using either dec cc or gcc (up to v2.7.0), but when I actually use it,
>it won't stop at any breakpoints. It seems to list the correct address for
>the breakpoint, but upon running the debugged program, it continues till
>exit, and then prints out the message:
>
> Program exited normally.
> You can't do that without a process to debug
>
>Any ideas what's happening here? Am I missing some critical patches or
>special configuration setup? It detects what appears to be the appropriate
>version "alpha-dec-osf3.0" at configuration time. I have a DEC 3000 Model
>800 AXP.
I received two responses and ultimately got the solution to the problem.
Apparently, there is a known problem on Solaris machines involving the use
of tcsh with gdb that results in the same difficulty, that of not stopping
at breakpoints. It appears to also apply to OSF/1 3.0. The solution is to
set the SHELL environment variable to "/bin/sh" before running gdb.
It works like a charm. I haven't yet looked closely at the gdb code to
determine why this is happening.
Many thanks to those who replied:
Dave
Winfried Huber
----------------------------------------------------------------------
Wade K. Smith Chromatic Research, Inc.
Internet: wsmith_at_chromatic.com 800A East Middlefield Road
Phone: (415) 254-0123 Mountain View, California 94043
Received on Thu Oct 26 1995 - 20:09:25 NZDT