Skip to content

Commit

Permalink
Revert "Add SBAddressRange and SBAddressRangeList to SB API (#92014)"
Browse files Browse the repository at this point in the history
This reverts commit 42944e4.
  • Loading branch information
Michael137 committed May 30, 2024
1 parent 4d65887 commit 8b600a3
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 857 deletions.
2 changes: 0 additions & 2 deletions lldb/bindings/headers.swig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
%{
#include "lldb/lldb-public.h"
#include "lldb/API/SBAddress.h"
#include "lldb/API/SBAddressRange.h"
#include "lldb/API/SBAddressRangeList.h"
#include "lldb/API/SBAttachInfo.h"
#include "lldb/API/SBBlock.h"
#include "lldb/API/SBBreakpoint.h"
Expand Down
3 changes: 0 additions & 3 deletions lldb/bindings/interface/SBAddressRangeDocstrings.i

This file was deleted.

11 changes: 0 additions & 11 deletions lldb/bindings/interface/SBAddressRangeExtensions.i

This file was deleted.

3 changes: 0 additions & 3 deletions lldb/bindings/interface/SBAddressRangeListDocstrings.i

This file was deleted.

29 changes: 0 additions & 29 deletions lldb/bindings/interface/SBAddressRangeListExtensions.i

This file was deleted.

6 changes: 0 additions & 6 deletions lldb/bindings/interfaces.swig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

/* Docstrings for SB classes and methods */
%include "./interface/SBAddressDocstrings.i"
%include "./interface/SBAddressRangeDocstrings.i"
%include "./interface/SBAddressRangeListDocstrings.i"
%include "./interface/SBAttachInfoDocstrings.i"
%include "./interface/SBBlockDocstrings.i"
%include "./interface/SBBreakpointDocstrings.i"
Expand Down Expand Up @@ -88,8 +86,6 @@

/* API headers */
%include "lldb/API/SBAddress.h"
%include "lldb/API/SBAddressRange.h"
%include "lldb/API/SBAddressRangeList.h"
%include "lldb/API/SBAttachInfo.h"
%include "lldb/API/SBBlock.h"
%include "lldb/API/SBBreakpoint.h"
Expand Down Expand Up @@ -167,8 +163,6 @@

/* Extensions for SB classes */
%include "./interface/SBAddressExtensions.i"
%include "./interface/SBAddressRangeExtensions.i"
%include "./interface/SBAddressRangeListExtensions.i"
%include "./interface/SBBlockExtensions.i"
%include "./interface/SBBreakpointExtensions.i"
%include "./interface/SBBreakpointListExtensions.i"
Expand Down
2 changes: 0 additions & 2 deletions lldb/include/lldb/API/LLDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#define LLDB_API_LLDB_H

#include "lldb/API/SBAddress.h"
#include "lldb/API/SBAddressRange.h"
#include "lldb/API/SBAddressRangeList.h"
#include "lldb/API/SBAttachInfo.h"
#include "lldb/API/SBBlock.h"
#include "lldb/API/SBBreakpoint.h"
Expand Down
1 change: 0 additions & 1 deletion lldb/include/lldb/API/SBAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class LLDB_API SBAddress {
lldb::SBLineEntry GetLineEntry();

protected:
friend class SBAddressRange;
friend class SBBlock;
friend class SBBreakpoint;
friend class SBBreakpointLocation;
Expand Down
66 changes: 0 additions & 66 deletions lldb/include/lldb/API/SBAddressRange.h

This file was deleted.

54 changes: 0 additions & 54 deletions lldb/include/lldb/API/SBAddressRangeList.h

This file was deleted.

4 changes: 0 additions & 4 deletions lldb/include/lldb/API/SBBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#ifndef LLDB_API_SBBLOCK_H
#define LLDB_API_SBBLOCK_H

#include "lldb/API/SBAddressRange.h"
#include "lldb/API/SBAddressRangeList.h"
#include "lldb/API/SBDefines.h"
#include "lldb/API/SBFrame.h"
#include "lldb/API/SBTarget.h"
Expand Down Expand Up @@ -54,8 +52,6 @@ class LLDB_API SBBlock {

lldb::SBAddress GetRangeEndAddress(uint32_t idx);

lldb::SBAddressRangeList GetRanges();

uint32_t GetRangeIndexForBlockAddress(lldb::SBAddress block_addr);

lldb::SBValueList GetVariables(lldb::SBFrame &frame, bool arguments,
Expand Down
2 changes: 0 additions & 2 deletions lldb/include/lldb/API/SBDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
namespace lldb {

class LLDB_API SBAddress;
class LLDB_API SBAddressRange;
class LLDB_API SBAddressRangeList;
class LLDB_API SBAttachInfo;
class LLDB_API SBBlock;
class LLDB_API SBBreakpoint;
Expand Down
3 changes: 0 additions & 3 deletions lldb/include/lldb/API/SBFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define LLDB_API_SBFUNCTION_H

#include "lldb/API/SBAddress.h"
#include "lldb/API/SBAddressRangeList.h"
#include "lldb/API/SBDefines.h"
#include "lldb/API/SBInstructionList.h"

Expand Down Expand Up @@ -45,8 +44,6 @@ class LLDB_API SBFunction {

lldb::SBAddress GetEndAddress();

lldb::SBAddressRangeList GetRanges();

const char *GetArgumentName(uint32_t arg_idx);

uint32_t GetPrologueByteSize();
Expand Down
2 changes: 0 additions & 2 deletions lldb/include/lldb/API/SBStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ class LLDB_API SBStream {

protected:
friend class SBAddress;
friend class SBAddressRange;
friend class SBAddressRangeList;
friend class SBBlock;
friend class SBBreakpoint;
friend class SBBreakpointLocation;
Expand Down
1 change: 0 additions & 1 deletion lldb/include/lldb/API/SBTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,6 @@ class LLDB_API SBTarget {

protected:
friend class SBAddress;
friend class SBAddressRange;
friend class SBBlock;
friend class SBBreakpoint;
friend class SBBreakpointList;
Expand Down
14 changes: 0 additions & 14 deletions lldb/include/lldb/Core/AddressRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ class AddressRange {
/// (LLDB_INVALID_ADDRESS) and a zero byte size.
void Clear();

bool IsValid() const;

/// Check if a section offset address is contained in this range.
///
/// \param[in] so_addr
Expand Down Expand Up @@ -238,24 +236,12 @@ class AddressRange {
/// The new size in bytes of this address range.
void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; }

bool GetDescription(Stream *s, Target *target) const;

bool operator==(const AddressRange &rhs);

bool operator!=(const AddressRange &rhs);

protected:
// Member variables
Address m_base_addr; ///< The section offset base address of this range.
lldb::addr_t m_byte_size = 0; ///< The size in bytes of this address range.
};

// Forward-declarable wrapper.
class AddressRanges : public std::vector<lldb_private::AddressRange> {
public:
using std::vector<lldb_private::AddressRange>::vector;
};

} // namespace lldb_private

#endif // LLDB_CORE_ADDRESSRANGE_H
51 changes: 0 additions & 51 deletions lldb/include/lldb/Core/AddressRangeListImpl.h

This file was deleted.

2 changes: 0 additions & 2 deletions lldb/include/lldb/Symbol/Block.h
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ class Block : public UserID, public SymbolContextScope {
// be able to get at any of the address ranges in a block.
bool GetRangeAtIndex(uint32_t range_idx, AddressRange &range);

AddressRanges GetRanges();

bool GetStartAddress(Address &addr);

void SetDidParseVariables(bool b, bool set_children);
Expand Down
3 changes: 0 additions & 3 deletions lldb/include/lldb/lldb-forward.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ASTResultSynthesizer;
class ASTStructExtractor;
class Address;
class AddressRange;
class AddressRanges;
class AddressRangeList;
class AddressResolver;
class ArchSpec;
class Architecture;
Expand Down Expand Up @@ -310,7 +308,6 @@ template <unsigned N> class StreamBuffer;
namespace lldb {

typedef std::shared_ptr<lldb_private::ABI> ABISP;
typedef std::unique_ptr<lldb_private::AddressRange> AddressRangeUP;
typedef std::shared_ptr<lldb_private::Baton> BatonSP;
typedef std::shared_ptr<lldb_private::Block> BlockSP;
typedef std::shared_ptr<lldb_private::Breakpoint> BreakpointSP;
Expand Down
Loading

0 comments on commit 8b600a3

Please sign in to comment.