Skip to content
Snippets Groups Projects
Commit 235abbb2 authored by hjk's avatar hjk
Browse files

Debugger: Remove the {type}&main performance hack


While this was great two years ago it seems to backfire with
some of the recent gdb builds.

Change-Id: I63ed1e225edeb0e59f079a5e9b5b8c92f3031c7d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 944b94d7
No related branches found
No related tags found
No related merge requests found
......@@ -651,14 +651,14 @@ def lookupType(typestring):
typesToReport[typestring] = type
return type
try:
type = gdb.parse_and_eval("{%s}&main" % typestring).type
if not type is None:
typeCache[typestring] = type
typesToReport[typestring] = type
return type
except:
pass
#try:
# type = gdb.parse_and_eval("{%s}&main" % typestring).type
# if not type is None:
# typeCache[typestring] = type
# typesToReport[typestring] = type
# return type
#except:
# pass
# See http://sourceware.org/bugzilla/show_bug.cgi?id=13269
# gcc produces "{anonymous}", gdb "(anonymous namespace)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment