Bug 112686
Summary: | [gdb] Unable to print string values due to non existent s_hashFlag8BitBuffer | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sergio Villar Senin <svillar> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | dpranke, hayato, svillar, tony |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Sergio Villar Senin
I'm getting this whenever I try to print the value of a String in a gdb session (WebKitGtk+ port):
File "/home/sergio/WebKit/Tools/gdb/webkit.py", line 130, in to_string
if self.is_8bit():
File "/home/sergio/WebKit/Tools/gdb/webkit.py", line 135, in is_8bit
return self.val['m_hashAndFlags'] & self.val['s_hashFlag8BitBuffer']
RuntimeError: field s_hashFlag8BitBuffer is nonexistent or has been optimised out
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dirk Pranke
Hm. I've never really looked at this code, so I'm guessing, but it looks like the field still exists in StringImpl, so maybe it has been optimized out as per the error. Does changing s_hashFlag8BitBuffer to 64 (i.e., 1u << 6) fix the problem?
Sergio Villar Senin
(In reply to comment #1)
> Hm. I've never really looked at this code, so I'm guessing, but it looks like the field still exists in StringImpl, so maybe it has been optimized out as per the error. Does changing s_hashFlag8BitBuffer to 64 (i.e., 1u << 6) fix the problem?
It indeed looks like it has been optimized out because doing the & (1 << 6) does indeed fixes the issue.
Sergio Villar Senin
Closing this as it is no longer an issue