Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 16:25:30 +0000 (UTC)
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341991 - stable/12/contrib/elftoolchain/readelf
Message-ID:  <201812121625.wBCGPUgQ029836@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sobomax
Date: Wed Dec 12 16:25:30 2018
New Revision: 341991
URL: https://svnweb.freebsd.org/changeset/base/341991

Log:
  MFC: r340745, fix CU: output of the --debug-dump=decodedline.

Modified:
  stable/12/contrib/elftoolchain/readelf/readelf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- stable/12/contrib/elftoolchain/readelf/readelf.c	Wed Dec 12 15:49:14 2018	(r341990)
+++ stable/12/contrib/elftoolchain/readelf/readelf.c	Wed Dec 12 16:25:30 2018	(r341991)
@@ -4720,7 +4720,7 @@ dump_dwarf_line_decoded(struct readelf *re)
 		    DW_DLV_OK)
 			dir = NULL;
 		printf("CU: ");
-		if (dir && file)
+		if (dir && file && file[0] != '/')
 			printf("%s/", dir);
 		if (file)
 			printf("%s", file);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812121625.wBCGPUgQ029836>