RESOLVED WORKSFORME 112686
[gdb] Unable to print string values due to non existent s_hashFlag8BitBuffer
https://bugs.webkit.org/show_bug.cgi?id=112686
Summary [gdb] Unable to print string values due to non existent s_hashFlag8BitBuffer
Sergio Villar Senin
Reported 2013-03-19 05:35:25 PDT
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
Dirk Pranke
Comment 1 2013-03-27 11:55:36 PDT
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
Comment 2 2013-03-27 12:24:08 PDT
(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
Comment 3 2015-07-10 03:54:39 PDT
Closing this as it is no longer an issue
Note You need to log in before you can comment on or make changes to this bug.