summaryrefslogtreecommitdiffstats
path: root/userspace-header-gen.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-10 14:03:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-10 15:01:34 +0200
commita53da0df50b4318a560bb7768d9ccb97ca0dce48 (patch)
tree18922dbef70fe2783ac5a87a20845f6732705457 /userspace-header-gen.py
parent97c5f8e8de8bfc039a48f504b71e2905b224b418 (diff)
downloadrtems-libbsd-a53da0df50b4318a560bb7768d9ccb97ca0dce48.tar.bz2
userspace-header-gen.py: Python 3 compatibility
Diffstat (limited to 'userspace-header-gen.py')
-rwxr-xr-xuserspace-header-gen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace-header-gen.py b/userspace-header-gen.py
index 0d4dbdae..cd50c1ef 100755
--- a/userspace-header-gen.py
+++ b/userspace-header-gen.py
@@ -342,7 +342,7 @@ class HeaderGenCU:
# get file and line
try:
decl_file_idx = child.attributes["DW_AT_decl_file"].value - 1
- decl_file = self._lineprogram['file_entry'][decl_file_idx].name
+ decl_file = self._lineprogram['file_entry'][decl_file_idx].name.decode('ascii')
except KeyError:
decl_file = "<unknown>"
try: