[haiku-bugs] Re: [Haiku] #12294: [Debugger] Implement DW_OP_gnu_entry_value support

  • From: "simonsouth" <trac@xxxxxxxxxxxx>
  • Date: Thu, 08 Oct 2015 16:19:50 -0000

#12294: [Debugger] Implement DW_OP_gnu_entry_value support
-------------------------------------+----------------------------
Reporter: anevilyak | Owner: anevilyak
Type: enhancement | Status: new
Priority: low | Milestone: Unscheduled
Component: Applications/Debugger | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------------+----------------------------

Comment (by simonsouth):

To help anyone else searching for this issue:

The symptom is the debugger appearing to hang with "Retrieving stack trace
for thread..." in the status bar after being attached to an affected team.
If the debugger is started from the command line, the terminal window will
fill with these messages repeated over and over:

{{{
DwarfExpressionEvaluator::EvaluateLocation(): failed to get register
DwarfExpressionEvaluator::_Evaluate(): unsupported opcode: 243
DwarfExpressionEvaluator::EvaluateLocation(): failed to get register
DwarfExpressionEvaluator::_Evaluate(): unsupported opcode: 243
DwarfExpressionEvaluator::EvaluateLocation(): failed to get register
DwarfExpressionEvaluator::_Evaluate(): unsupported opcode: 243
...
}}}

The only thing to do at this point is to exit the debugger.

Note gcc will emit this unsupported opcode even when the `-Og` ("optimize
for debugging") setting is used. The workaround is to recompile with `-O0`
and continue debugging happily.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12294#comment:2>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: