[lldb-dev] qHostInfo proposal to add breakpoint pc offset

Ted Woodward ted.woodward at codeaurora.org
Thu Jun 5 14:49:01 PDT 2014


Yes, it would. But anything that would change the breakpoint size dynamically would have to set m_breakpoint_pc_offset (probably to 0, the default) and manipulate the PC in target dependent code. It wouldn’t be able to use this change, but wouldn’t be hurt by it.

 

 

From: Todd Fiala [mailto:tfiala at google.com] 
Sent: Thursday, June 05, 2014 4:00 PM
To: Ted Woodward
Cc: lldb-dev at cs.uiuc.edu
Subject: Re: [lldb-dev] qHostInfo proposal to add breakpoint pc offset

 

Might that value be dependent on the type of code that is getting executed?  (e.g. ARM thumb vs. ARM32)?  IOW is it really stable for a given host?

 

On Thu, Jun 5, 2014 at 1:49 PM, Ted Woodward <ted.woodward at codeaurora.org> wrote:

On some architectures, when a breakpoint is hit, the PC is set to a different value and needs to be adjusted. This is handled in ProcesGDBRemote.cpp by the variable m_breakpoint_pc_offset. The problem is this variable is only set via a python target definition file.

 

I propose extending qHostInfo to add bp_pc_decr:<offset>. m_breakpoint_pc_offset would be set to this signed integer.

 

Ted


_______________________________________________
lldb-dev mailing list
lldb-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





 

-- 


Todd Fiala |

 Software Engineer |

  <mailto:tfiala at google.com> tfiala at google.com |

 650-943-3180

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140605/f0487a18/attachment.html>


More information about the lldb-dev mailing list