[Lldb-commits] [lldb] Add AddressRange to SB API (PR #92014)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Mon May 13 14:28:15 PDT 2024


================
@@ -0,0 +1,63 @@
+//===-- SBAddressRange.h ----------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLDB_API_SBADDRESSRANGE_H
+#define LLDB_API_SBADDRESSRANGE_H
+
+#include "lldb/API/SBDefines.h"
+
+namespace lldb {
+
+class LLDB_API SBAddressRange {
+public:
+  SBAddressRange();
+
+  SBAddressRange(const lldb::SBAddressRange &rhs);
+
+  SBAddressRange(lldb::addr_t file_addr, lldb::addr_t byte_size);
----------------
bulbazord wrote:

`file_addr` seems like it may be a bit misleading. It might not be an address in a file. Maybe `base_addr`?

Why is `byte_size` an `addr_t` instead of, say, a `size_t` or `uint64_t`?

https://github.com/llvm/llvm-project/pull/92014


More information about the lldb-commits mailing list