From patchwork Sat Jun 26 19:52:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas B Rupp X-Patchwork-Id: 57066 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5A950B6EF1 for ; Sun, 27 Jun 2010 05:52:48 +1000 (EST) Received: (qmail 4558 invoked by alias); 26 Jun 2010 19:52:46 -0000 Received: (qmail 4550 invoked by uid 22791); 26 Jun 2010 19:52:46 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, TW_CP, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Jun 2010 19:52:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 9C3BE2BABBA; Sat, 26 Jun 2010 15:52:37 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SxgDVYSe7atY; Sat, 26 Jun 2010 15:52:37 -0400 (EDT) Received: from [192.168.1.104] (dpc6682073249.direcpc.com [66.82.73.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 69F092BABAF; Sat, 26 Jun 2010 15:52:32 -0400 (EDT) Message-ID: <4C265A6C.5020804@gnat.com> Date: Sat, 26 Jun 2010 12:52:12 -0700 From: Douglas B Rupp User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Jim Wilson , Richard Henderson CC: gcc-patches@gcc.gnu.org Subject: [PATCH] Remove unixims in filename output in vmsdbgout.c X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Unix paths cause Alpha/VMS Debug insurmountable difficulty, so pending the implementation of a conversion function, it's better to just output the filename without the path. That way at least the debugger can find the file if told where to look. OK to commit? 2010-06-26 Douglas B Rupp * vmsdbgout.c (full_name): Just output the file name if not native. --- gcc/vmsdbgout.c 2010-06-16 12:40:46.000000000 -0700 +++ gcc/vmsdbgout.c 2010-06-25 23:25:23.000000000 -0700 @@ -1423,13 +1313,9 @@ full_name (const char *filename) fgetname (fp, fullname_buff, 1); fclose (fp); #else - getcwd (fullname_buff, sizeof (fullname_buff)); - - strcat (fullname_buff, "/"); - strcat (fullname_buff, filename); - - /* ??? Insert hairy code here to translate Unix style file specification - to VMS style. */ + /* Unix paths really mess up VMS debug. Better to just output the + base filename. */ + strcpy (fullname_buff, filename); #endif return fullname_buff;