[Lldb-commits] [PATCH] D11119: Parse breakpoint expressions using the language of the frame's CU.

Dawn Perchik dawn+llvm at burble.org
Sat Jul 11 02:20:33 PDT 2015


dawn created this revision.
dawn added reviewers: clayborg, spyffe, zturner.
dawn added a subscriber: lldb-commits.
dawn set the repository for this revision to rL LLVM.

The language must be known in order to correctly set the name_type_mask for languages like Pascal and Java.  For example, to set a breakpoint on 'ns.foo' for a Pascal function 'foo' in namespace 'ns', we need to know that the language is Pascal in order to set the lookup masks to (eFunctionNameTypeMethod | eFunctionNameTypeBase) and the basename to "foo", just as we would in C++ for 'ns::foo'.

This patch solves this problem by using the language of the selected frame (similar to gdb).  Getting the language from user settings is also planned.  This patch (and others) paves the way for the PascalLanguageRuntime support to come, which will be called if the language is Pascal.

Repository:
  rL LLVM

http://reviews.llvm.org/D11119

Files:
  include/lldb/Breakpoint/BreakpointResolverName.h
  include/lldb/Core/Module.h
  source/Breakpoint/BreakpointResolverName.cpp
  source/Core/Module.cpp
  source/Target/Target.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11119.29511.patch
Type: text/x-patch
Size: 10646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150711/10336519/attachment.bin>


More information about the lldb-commits mailing list