mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 04:28:13 +08:00
userspace-header-gen.py: Python 3 compatibility
This commit is contained in:
@@ -342,7 +342,7 @@ class HeaderGenCU:
|
|||||||
# get file and line
|
# get file and line
|
||||||
try:
|
try:
|
||||||
decl_file_idx = child.attributes["DW_AT_decl_file"].value - 1
|
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:
|
except KeyError:
|
||||||
decl_file = "<unknown>"
|
decl_file = "<unknown>"
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user