Skip to content

Commit 734747e

Browse files
committed
Add default value for offset
1 parent 1810753 commit 734747e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lldb/tools/lldb-dap/EventHelper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ void SendMemoryEvent(DAP &dap, lldb::SBValue variable) {
292292
return;
293293
protocol::MemoryEventBody body;
294294
body.memoryReference = addr;
295-
body.offset = 0;
296295
body.count = variable.GetByteSize();
297296
dap.Send(protocol::Event{"memory", std::move(body)});
298297
}

lldb/tools/lldb-dap/Protocol/ProtocolEvents.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct MemoryEventBody {
109109
lldb::addr_t memoryReference;
110110

111111
/// Starting offset in bytes where memory has been updated. Can be negative.
112-
int64_t offset;
112+
int64_t offset = 0;
113113

114114
/// Number of bytes updated.
115115
uint64_t count;

0 commit comments

Comments
 (0)