Subject: toolchain/15745: PSIM should not be built for native powerpc builds
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tv@netbsd.org>
List: netbsd-bugs
Date: 02/26/2002 18:17:42
>Number: 15745
>Category: toolchain
>Synopsis: PSIM should not be built for native powerpc builds
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Feb 26 15:18:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Todd Vierling
>Release: NetBSD-current 20020225
>Organization:
DUH.ORG: Pointing out the obvious since 1994.
>Environment:
N/A
>Description:
There's zero logic in building psim (part of gdb) for NetBSD on PowerPC when
the host is NetBSD on PowerPC. Recently psim was even brought into the native
reachover build and given a standalong binary in /usr/bin/psim. This was to
address a build failure, where the proper fix should have been not to build
psim in the first place.
If you want a simulator, build a cross-gdb targeted to a simulated/embedded
target (such as a generic OFW powerpc target name, if you wish to boot
NetBSD/ofppc). powerpc*-*-netbsd* shouldn't cause psim to be built, as psim
does nothing for the purposes of debugging real NetBSD-PowerPC userlevel
programs.
>How-To-Repeat:
Build src/ for any powerpc target.
>Fix:
Multiple (primarily tedious) steps, thus this PR.
1. Change GNU configury not to add psim hooks to gdb for powerpc*-*-netbsd*.
2. Regen the reachover glue files in src/tools/toolchain with "make native".
3. Remove src/gnu/usr.bin/sim.
4. Remove /usr/bin/psim from src/distrib/sets/lists/comp/ad.powerpc.
>Release-Note:
>Audit-Trail:
>Unformatted: