mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
platform/gem5: better error message on crash
Point to gem5's stderr file in the message of the error raised on crash during _intercept_telnet_port.
This commit is contained in:
parent
f0b58b32c4
commit
730118d6d0
@ -168,7 +168,8 @@ class Gem5SimulationPlatform(Platform):
|
|||||||
while self.gem5_port is None:
|
while self.gem5_port is None:
|
||||||
# Check that gem5 is running!
|
# Check that gem5 is running!
|
||||||
if self.gem5.poll():
|
if self.gem5.poll():
|
||||||
raise TargetError("The gem5 process has crashed with error code {}!".format(self.gem5.poll()))
|
message = "The gem5 process has crashed with error code {}!\n\tPlease see {} for details."
|
||||||
|
raise TargetError(message.format(self.gem5.poll(), self.stderr_file.name))
|
||||||
|
|
||||||
# Open the stderr file
|
# Open the stderr file
|
||||||
with open(self.stderr_filename, 'r') as f:
|
with open(self.stderr_filename, 'r') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user