JDevlieghere requested changes to this revision.
JDevlieghere added inline comments.
This revision now requires changes to proceed.


================
Comment at: lldb/source/Breakpoint/BreakpointResolverFileLine.cpp:239
+  const uint32_t line = m_location_spec.GetLine();
+  auto optional_column = m_location_spec.GetColumn();
+  const uint16_t column =
----------------



================
Comment at: lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp:116
+    if (!location_spec) {
+      llvm::errs() << "Invalid SourceLocationSpec.\n";
+      return eCallbackReturnContinue;
----------------
We can't write straight to stderr. We should either have this return an 
`Expected<Searcher::CallbackReturn>` or deal with the error in some other way. 


================
Comment at: lldb/source/Core/Module.cpp:609
+    if (!location_spec) {
+      llvm::errs() << llvm::toString(location_spec.takeError()) << "\n";
+      return 0;
----------------
Same here


================
Comment at: lldb/source/Core/Module.cpp:940
+  if (!location_spec) {
+    llvm::errs() << llvm::toString(location_spec.takeError()) << "\n";
+    return;
----------------
and here


================
Comment at: lldb/source/Symbol/CompileUnit.cpp:234
+  if (!location_spec) {
+    llvm::errs() << llvm::toString(location_spec.takeError()) << "\n";
+    return UINT32_MAX;
----------------
and here


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100965/new/

https://reviews.llvm.org/D100965

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to