Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 03:07:45 +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-11@freebsd.org
Subject:   svn commit: r341750 - stable/11/contrib/elftoolchain/readelf
Message-ID:  <201812090307.wB937jmO053131@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sobomax
Date: Sun Dec  9 03:07:45 2018
New Revision: 341750
URL: https://svnweb.freebsd.org/changeset/base/341750

Log:
  MFC: r340745, fix CU: output of the --debug-dump=decodedline.
  
  Differential Revision:	https://reviews.freebsd.org/D18290

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

Modified: stable/11/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- stable/11/contrib/elftoolchain/readelf/readelf.c	Sun Dec  9 02:58:53 2018	(r341749)
+++ stable/11/contrib/elftoolchain/readelf/readelf.c	Sun Dec  9 03:07:45 2018	(r341750)
@@ -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?201812090307.wB937jmO053131>