[Lldb-commits] [PATCH] D103391: [lldb] Add missing reproducer instrumentation to some SB classes

2021-06-11 Thread Bruce Mitchener via Phabricator via lldb-commits
brucem requested changes to this revision.
brucem added a comment.
This revision now requires changes to proceed.

The change to `SBDebugger::GetProgressFromEvent` needs to be removed.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103391

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


[Lldb-commits] [PATCH] D103391: [lldb] Add missing reproducer instrumentation to some SB classes

2021-06-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision.
JDevlieghere added a comment.
This revision is now accepted and ready to land.

Thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103391

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


[Lldb-commits] [PATCH] D103391: [lldb] Add missing reproducer instrumentation to some SB classes

2021-05-31 Thread Bruce Mitchener via Phabricator via lldb-commits
brucem added inline comments.



Comment at: lldb/source/API/SBDebugger.cpp:165
  bool _debugger_specific) {
+  LLDB_RECORD_STATIC_METHOD(
+  const char *, SBDebugger, GetProgressFromEvent,

This one is already present in the function but near the end of the function 
due to our parameters.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103391

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


[Lldb-commits] [PATCH] D103391: [lldb] Add missing reproducer instrumentation to some SB classes

2021-05-31 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision.
teemperor added a reviewer: JDevlieghere.
teemperor added a project: LLDB.
teemperor requested review of this revision.
Herald added a subscriber: lldb-commits.

I noticed that there might be some missing instrumentation after a related 
change popped up in D103381 .
This patch is just the result of running lldb-instr over the different parts of 
the SB API implementations (+ some manual filtering).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103391

Files:
  lldb/source/API/SBDebugger.cpp
  lldb/source/API/SBModuleSpec.cpp
  lldb/source/API/SBTrace.cpp


Index: lldb/source/API/SBTrace.cpp
===
--- lldb/source/API/SBTrace.cpp
+++ lldb/source/API/SBTrace.cpp
@@ -77,6 +77,9 @@
 }
 
 void SBTrace::GetTraceConfig(SBTraceOptions , SBError ) {
+  LLDB_RECORD_METHOD(void, SBTrace, GetTraceConfig,
+ (lldb::SBTraceOptions &, lldb::SBError &), options, 
error);
+
   error.SetErrorString("deprecated");
 }
 
Index: lldb/source/API/SBModuleSpec.cpp
===
--- lldb/source/API/SBModuleSpec.cpp
+++ lldb/source/API/SBModuleSpec.cpp
@@ -127,6 +127,8 @@
 }
 
 const uint8_t *SBModuleSpec::GetUUIDBytes() {
+  LLDB_RECORD_METHOD_NO_ARGS(const uint8_t *, SBModuleSpec, GetUUIDBytes);
+
   return m_opaque_up->GetUUID().GetBytes().data();
 }
 
@@ -137,6 +139,9 @@
 }
 
 bool SBModuleSpec::SetUUIDBytes(const uint8_t *uuid, size_t uuid_len) {
+  LLDB_RECORD_METHOD(bool, SBModuleSpec, SetUUIDBytes,
+ (const uint8_t *, size_t), uuid, uuid_len);
+
   m_opaque_up->GetUUID() = UUID::fromOptionalData(uuid, uuid_len);
   return m_opaque_up->GetUUID().IsValid();
 }
Index: lldb/source/API/SBDebugger.cpp
===
--- lldb/source/API/SBDebugger.cpp
+++ lldb/source/API/SBDebugger.cpp
@@ -162,6 +162,11 @@
  uint64_t ,
  uint64_t ,
  bool _debugger_specific) {
+  LLDB_RECORD_STATIC_METHOD(
+  const char *, SBDebugger, GetProgressFromEvent,
+  (const lldb::SBEvent &, uint64_t &, uint64_t &, uint64_t &, bool &),
+  event, progress_id, completed, total, is_debugger_specific);
+
   const Debugger::ProgressEventData *progress_data =
   Debugger::ProgressEventData::GetEventDataFromEvent(event.get());
   if (progress_data == nullptr)


Index: lldb/source/API/SBTrace.cpp
===
--- lldb/source/API/SBTrace.cpp
+++ lldb/source/API/SBTrace.cpp
@@ -77,6 +77,9 @@
 }
 
 void SBTrace::GetTraceConfig(SBTraceOptions , SBError ) {
+  LLDB_RECORD_METHOD(void, SBTrace, GetTraceConfig,
+ (lldb::SBTraceOptions &, lldb::SBError &), options, error);
+
   error.SetErrorString("deprecated");
 }
 
Index: lldb/source/API/SBModuleSpec.cpp
===
--- lldb/source/API/SBModuleSpec.cpp
+++ lldb/source/API/SBModuleSpec.cpp
@@ -127,6 +127,8 @@
 }
 
 const uint8_t *SBModuleSpec::GetUUIDBytes() {
+  LLDB_RECORD_METHOD_NO_ARGS(const uint8_t *, SBModuleSpec, GetUUIDBytes);
+
   return m_opaque_up->GetUUID().GetBytes().data();
 }
 
@@ -137,6 +139,9 @@
 }
 
 bool SBModuleSpec::SetUUIDBytes(const uint8_t *uuid, size_t uuid_len) {
+  LLDB_RECORD_METHOD(bool, SBModuleSpec, SetUUIDBytes,
+ (const uint8_t *, size_t), uuid, uuid_len);
+
   m_opaque_up->GetUUID() = UUID::fromOptionalData(uuid, uuid_len);
   return m_opaque_up->GetUUID().IsValid();
 }
Index: lldb/source/API/SBDebugger.cpp
===
--- lldb/source/API/SBDebugger.cpp
+++ lldb/source/API/SBDebugger.cpp
@@ -162,6 +162,11 @@
  uint64_t ,
  uint64_t ,
  bool _debugger_specific) {
+  LLDB_RECORD_STATIC_METHOD(
+  const char *, SBDebugger, GetProgressFromEvent,
+  (const lldb::SBEvent &, uint64_t &, uint64_t &, uint64_t &, bool &),
+  event, progress_id, completed, total, is_debugger_specific);
+
   const Debugger::ProgressEventData *progress_data =
   Debugger::ProgressEventData::GetEventDataFromEvent(event.get());
   if (progress_data == nullptr)
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits