Skip to content

Commit 8b600a3

Browse files
committed
Revert "Add SBAddressRange and SBAddressRangeList to SB API (#92014)"
This reverts commit 42944e4.
1 parent 4d65887 commit 8b600a3

31 files changed

+0
-857
lines changed

lldb/bindings/headers.swig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
%{
99
#include "lldb/lldb-public.h"
1010
#include "lldb/API/SBAddress.h"
11-
#include "lldb/API/SBAddressRange.h"
12-
#include "lldb/API/SBAddressRangeList.h"
1311
#include "lldb/API/SBAttachInfo.h"
1412
#include "lldb/API/SBBlock.h"
1513
#include "lldb/API/SBBreakpoint.h"

lldb/bindings/interface/SBAddressRangeDocstrings.i

Lines changed: 0 additions & 3 deletions
This file was deleted.

lldb/bindings/interface/SBAddressRangeExtensions.i

Lines changed: 0 additions & 11 deletions
This file was deleted.

lldb/bindings/interface/SBAddressRangeListDocstrings.i

Lines changed: 0 additions & 3 deletions
This file was deleted.

lldb/bindings/interface/SBAddressRangeListExtensions.i

Lines changed: 0 additions & 29 deletions
This file was deleted.

lldb/bindings/interfaces.swig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
/* Docstrings for SB classes and methods */
1414
%include "./interface/SBAddressDocstrings.i"
15-
%include "./interface/SBAddressRangeDocstrings.i"
16-
%include "./interface/SBAddressRangeListDocstrings.i"
1715
%include "./interface/SBAttachInfoDocstrings.i"
1816
%include "./interface/SBBlockDocstrings.i"
1917
%include "./interface/SBBreakpointDocstrings.i"
@@ -88,8 +86,6 @@
8886

8987
/* API headers */
9088
%include "lldb/API/SBAddress.h"
91-
%include "lldb/API/SBAddressRange.h"
92-
%include "lldb/API/SBAddressRangeList.h"
9389
%include "lldb/API/SBAttachInfo.h"
9490
%include "lldb/API/SBBlock.h"
9591
%include "lldb/API/SBBreakpoint.h"
@@ -167,8 +163,6 @@
167163

168164
/* Extensions for SB classes */
169165
%include "./interface/SBAddressExtensions.i"
170-
%include "./interface/SBAddressRangeExtensions.i"
171-
%include "./interface/SBAddressRangeListExtensions.i"
172166
%include "./interface/SBBlockExtensions.i"
173167
%include "./interface/SBBreakpointExtensions.i"
174168
%include "./interface/SBBreakpointListExtensions.i"

lldb/include/lldb/API/LLDB.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#define LLDB_API_LLDB_H
1111

1212
#include "lldb/API/SBAddress.h"
13-
#include "lldb/API/SBAddressRange.h"
14-
#include "lldb/API/SBAddressRangeList.h"
1513
#include "lldb/API/SBAttachInfo.h"
1614
#include "lldb/API/SBBlock.h"
1715
#include "lldb/API/SBBreakpoint.h"

lldb/include/lldb/API/SBAddress.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class LLDB_API SBAddress {
8686
lldb::SBLineEntry GetLineEntry();
8787

8888
protected:
89-
friend class SBAddressRange;
9089
friend class SBBlock;
9190
friend class SBBreakpoint;
9291
friend class SBBreakpointLocation;

lldb/include/lldb/API/SBAddressRange.h

Lines changed: 0 additions & 66 deletions
This file was deleted.

lldb/include/lldb/API/SBAddressRangeList.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

lldb/include/lldb/API/SBBlock.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#ifndef LLDB_API_SBBLOCK_H
1010
#define LLDB_API_SBBLOCK_H
1111

12-
#include "lldb/API/SBAddressRange.h"
13-
#include "lldb/API/SBAddressRangeList.h"
1412
#include "lldb/API/SBDefines.h"
1513
#include "lldb/API/SBFrame.h"
1614
#include "lldb/API/SBTarget.h"
@@ -54,8 +52,6 @@ class LLDB_API SBBlock {
5452

5553
lldb::SBAddress GetRangeEndAddress(uint32_t idx);
5654

57-
lldb::SBAddressRangeList GetRanges();
58-
5955
uint32_t GetRangeIndexForBlockAddress(lldb::SBAddress block_addr);
6056

6157
lldb::SBValueList GetVariables(lldb::SBFrame &frame, bool arguments,

lldb/include/lldb/API/SBDefines.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
namespace lldb {
4444

4545
class LLDB_API SBAddress;
46-
class LLDB_API SBAddressRange;
47-
class LLDB_API SBAddressRangeList;
4846
class LLDB_API SBAttachInfo;
4947
class LLDB_API SBBlock;
5048
class LLDB_API SBBreakpoint;

lldb/include/lldb/API/SBFunction.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLDB_API_SBFUNCTION_H
1111

1212
#include "lldb/API/SBAddress.h"
13-
#include "lldb/API/SBAddressRangeList.h"
1413
#include "lldb/API/SBDefines.h"
1514
#include "lldb/API/SBInstructionList.h"
1615

@@ -45,8 +44,6 @@ class LLDB_API SBFunction {
4544

4645
lldb::SBAddress GetEndAddress();
4746

48-
lldb::SBAddressRangeList GetRanges();
49-
5047
const char *GetArgumentName(uint32_t arg_idx);
5148

5249
uint32_t GetPrologueByteSize();

lldb/include/lldb/API/SBStream.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ class LLDB_API SBStream {
6262

6363
protected:
6464
friend class SBAddress;
65-
friend class SBAddressRange;
66-
friend class SBAddressRangeList;
6765
friend class SBBlock;
6866
friend class SBBreakpoint;
6967
friend class SBBreakpointLocation;

lldb/include/lldb/API/SBTarget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,6 @@ class LLDB_API SBTarget {
943943

944944
protected:
945945
friend class SBAddress;
946-
friend class SBAddressRange;
947946
friend class SBBlock;
948947
friend class SBBreakpoint;
949948
friend class SBBreakpointList;

lldb/include/lldb/Core/AddressRange.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ class AddressRange {
8686
/// (LLDB_INVALID_ADDRESS) and a zero byte size.
8787
void Clear();
8888

89-
bool IsValid() const;
90-
9189
/// Check if a section offset address is contained in this range.
9290
///
9391
/// \param[in] so_addr
@@ -238,24 +236,12 @@ class AddressRange {
238236
/// The new size in bytes of this address range.
239237
void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; }
240238

241-
bool GetDescription(Stream *s, Target *target) const;
242-
243-
bool operator==(const AddressRange &rhs);
244-
245-
bool operator!=(const AddressRange &rhs);
246-
247239
protected:
248240
// Member variables
249241
Address m_base_addr; ///< The section offset base address of this range.
250242
lldb::addr_t m_byte_size = 0; ///< The size in bytes of this address range.
251243
};
252244

253-
// Forward-declarable wrapper.
254-
class AddressRanges : public std::vector<lldb_private::AddressRange> {
255-
public:
256-
using std::vector<lldb_private::AddressRange>::vector;
257-
};
258-
259245
} // namespace lldb_private
260246

261247
#endif // LLDB_CORE_ADDRESSRANGE_H

lldb/include/lldb/Core/AddressRangeListImpl.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

lldb/include/lldb/Symbol/Block.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,6 @@ class Block : public UserID, public SymbolContextScope {
355355
// be able to get at any of the address ranges in a block.
356356
bool GetRangeAtIndex(uint32_t range_idx, AddressRange &range);
357357

358-
AddressRanges GetRanges();
359-
360358
bool GetStartAddress(Address &addr);
361359

362360
void SetDidParseVariables(bool b, bool set_children);

lldb/include/lldb/lldb-forward.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class ASTResultSynthesizer;
1919
class ASTStructExtractor;
2020
class Address;
2121
class AddressRange;
22-
class AddressRanges;
23-
class AddressRangeList;
2422
class AddressResolver;
2523
class ArchSpec;
2624
class Architecture;
@@ -310,7 +308,6 @@ template <unsigned N> class StreamBuffer;
310308
namespace lldb {
311309

312310
typedef std::shared_ptr<lldb_private::ABI> ABISP;
313-
typedef std::unique_ptr<lldb_private::AddressRange> AddressRangeUP;
314311
typedef std::shared_ptr<lldb_private::Baton> BatonSP;
315312
typedef std::shared_ptr<lldb_private::Block> BlockSP;
316313
typedef std::shared_ptr<lldb_private::Breakpoint> BreakpointSP;

0 commit comments

Comments
 (0)