Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanrhu committed Dec 25, 2019
1 parent f36cf2c commit 6eca53d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
11 changes: 10 additions & 1 deletion api/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ def getState():
except gdb.error as e:
variable["is_nts"] = False
variable["value"] = str(value)
except UnicodeDecodeError as e:
variable["is_nts"] = False
variable["value"] = str(value)

if symbol.type:
terminalType = resolveTerminalType(symbol.type)
Expand Down Expand Up @@ -574,7 +577,7 @@ def terminate():
print("[Error]", e)
is_need_interrupt = True

if is_need_interrupt:
if is_need_interrupt and (gdb.selected_inferior().threads().__len__() > 0):
try:
api.globalvars.debugFlags.set(api.flags.AtomicDebugFlags.IS_INTERRUPTED_FOR_TERMINATE, True)
gdb.execute("interrupt")
Expand Down Expand Up @@ -700,6 +703,9 @@ def getSerializableStructMembers(value, ctype):
member["value"] = str(memberValue)
except gdb.MemoryError as e:
return None
except UnicodeDecodeError as e:
member["is_nts"] = False
member["value"] = str(value)

member["name"] = _field.name
member["is_pointer"] = _field.type.code == gdb.TYPE_CODE_PTR
Expand Down Expand Up @@ -812,6 +818,9 @@ def serializable(self):
serializable["value"] = str(value)
except gdb.MemoryError as e:
return None
except UnicodeDecodeError as e:
serializable["is_nts"] = False
serializable["value"] = str(value)

if value.type:
terminalType = resolveTerminalType(value.type)
Expand Down
1 change: 1 addition & 0 deletions frontend/components/GDBFrontend/css/GDBFrontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
flex-direction: row;
flex-wrap: wrap;
flex-grow: 1;
flex-basis: 0%;
}

.GDBFrontend_layout_middle_left {
Expand Down
2 changes: 1 addition & 1 deletion statics.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

VERSION = [0, 0, 10, "alpha"]
VERSION = [0, 0, 11, "alpha"]

"""
GDB-Frontend GUI modes.
Expand Down

0 comments on commit 6eca53d

Please sign in to comment.