[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2019-11-13 Thread Jim Ingham via Phabricator via lldb-commits
jingham marked an inline comment as done. jingham added inline comments. Comment at: source/Core/SearchFilter.cpp:757 + } + if (m_cu_spec_list.FindFileIndex(0, sym_ctx.comp_unit, false) == UINT32_MAX) +return false; // Fails the file check kwk wrote: >

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2019-11-13 Thread Konrad Wilhelm Kleine via Phabricator via lldb-commits
kwk added inline comments. Comment at: source/Core/SearchFilter.cpp:757 + } + if (m_cu_spec_list.FindFileIndex(0, sym_ctx.comp_unit, false) == UINT32_MAX) +return false; // Fails the file check @jingham Do you know why you check for the CU again here? I

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-13 Thread Jim Ingham via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342185: Add a "scripted" breakpoint type to lldb. (authored by jingham, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51830?vs=165184&id=165

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-13 Thread Jim Ingham via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB342185: Add a "scripted" breakpoint type to lldb. (authored by jingham, committed by ). Changed prior to commit: https://reviews.llvm.org/D51830?vs=165184&id=165386#toc Repository: rLLDB LLDB htt

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham updated this revision to Diff 165184. jingham added a comment. Add documentation for SBTarget.CreateBreakpointFromScript, and fixed a few minor nits that Greg pointed out. https://reviews.llvm.org/D51830 Files: include/lldb/API/SBAddress.h include/lldb/API/SBBreakpoint.h include/

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I addressed most of the comments. I remember we argued about how the filters should work w.r.t. the resolvers back when I first did this, but I still claim my way is right ;-) I gave some arguments for that in response to your inline comment. I'm going to save this (

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Only issue now is documentation and why are we requiring addresses to be in compile unit. See inlined comments. Comment at: include/lldb/API/SBTarget.h:667 + lldb::SBBreakpoint BreakpointCreateFromScript( + const char *class_name, + SBStruc

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-11 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I addressed the individual concerns in the comments. There were a couple of overall points: 1. Could we avoid adding AddLocation by having the callback return a list of addresses to set breakpoints. I actually like directly saying "Set me a location there" and I have

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-11 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. See inlined comments. Cool stuff. Comment at: include/lldb/API/SBBreakpoint.h:26-27 + SBBreakpoint(const lldb::BreakpointSP &bp_sp); + ~SBBreakpoint(); Why does this need to be public? Comment at: include/lldb/

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-10 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Thanks for adding Greg. I am the code owner for the breakpoints part of lldb, and most recently I've been the only one adding to the scripting interface. There wasn't another really germane reviewer, and since the dev list was CC'ed I figured if anybody was interested

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-08 Thread Kristina Brooks via Phabricator via lldb-commits
kristina added subscribers: clayborg, kristina. kristina added a reviewer: clayborg. kristina added a comment. Please add code reviewers to your differentials when you make them especially when they're this big, at the very least the code owner for that particular project should be added. I adde

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-07 Thread Jim Ingham via Phabricator via lldb-commits
jingham created this revision. Herald added subscribers: lldb-commits, teemperor, abidh, jfb, srhines. This change allows you to make a breakpoint resolver kernel in Python. The breakpoint search mechanism in lldb works on top of a generic mechanism that uses a pair of Searcher - with its associ