mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
Everywhere: Rename {Deprecated => Byte}String
This commit un-deprecates DeprecatedString, and repurposes it as a byte string. As the null state has already been removed, there are no other particularly hairy blockers in repurposing this type as a byte string (what it _really_ is). This commit is auto-generated: $ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \ Meta Ports Ladybird Tests Kernel) $ perl -pie 's/\bDeprecatedString\b/ByteString/g; s/deprecated_string/byte_string/g' $xs $ clang-format --style=file -i \ $(git diff --name-only | grep \.cpp\|\.h) $ gn format $(git ls-files '*.gn' '*.gni')
This commit is contained in:
parent
38d62563b3
commit
5e1499d104
1615 changed files with 10257 additions and 10257 deletions
|
@ -23,7 +23,7 @@ class DebugInfo {
|
|||
AK_MAKE_NONMOVABLE(DebugInfo);
|
||||
|
||||
public:
|
||||
explicit DebugInfo(ELF::Image const&, DeprecatedString source_root = {}, FlatPtr base_address = 0);
|
||||
explicit DebugInfo(ELF::Image const&, ByteString source_root = {}, FlatPtr base_address = 0);
|
||||
|
||||
ELF::Image const& elf() const { return m_elf; }
|
||||
|
||||
|
@ -33,15 +33,15 @@ public:
|
|||
Optional<FlatPtr> address_of_first_statement;
|
||||
|
||||
SourcePosition()
|
||||
: SourcePosition(DeprecatedString::empty(), 0)
|
||||
: SourcePosition(ByteString::empty(), 0)
|
||||
{
|
||||
}
|
||||
SourcePosition(DeprecatedString file_path, size_t line_number)
|
||||
SourcePosition(ByteString file_path, size_t line_number)
|
||||
: file_path(file_path)
|
||||
, line_number(line_number)
|
||||
{
|
||||
}
|
||||
SourcePosition(DeprecatedString file_path, size_t line_number, FlatPtr address_of_first_statement)
|
||||
SourcePosition(ByteString file_path, size_t line_number, FlatPtr address_of_first_statement)
|
||||
: file_path(file_path)
|
||||
, line_number(line_number)
|
||||
, address_of_first_statement(address_of_first_statement)
|
||||
|
@ -59,8 +59,8 @@ public:
|
|||
Address,
|
||||
Register,
|
||||
};
|
||||
DeprecatedString name;
|
||||
DeprecatedString type_name;
|
||||
ByteString name;
|
||||
ByteString type_name;
|
||||
LocationType location_type { LocationType::None };
|
||||
union {
|
||||
FlatPtr address;
|
||||
|
@ -83,7 +83,7 @@ public:
|
|||
|
||||
struct VariablesScope {
|
||||
bool is_function { false };
|
||||
DeprecatedString name;
|
||||
ByteString name;
|
||||
FlatPtr address_low { 0 };
|
||||
FlatPtr address_high { 0 }; // Non-inclusive - the lowest address after address_low that's not in this scope
|
||||
Vector<Dwarf::DIE> dies_of_variables;
|
||||
|
@ -100,14 +100,14 @@ public:
|
|||
ErrorOr<SourcePositionWithInlines> get_source_position_with_inlines(FlatPtr address) const;
|
||||
|
||||
struct SourcePositionAndAddress {
|
||||
DeprecatedString file;
|
||||
ByteString file;
|
||||
size_t line;
|
||||
FlatPtr address;
|
||||
};
|
||||
|
||||
Optional<SourcePositionAndAddress> get_address_from_source_position(DeprecatedString const& file, size_t line) const;
|
||||
Optional<SourcePositionAndAddress> get_address_from_source_position(ByteString const& file, size_t line) const;
|
||||
|
||||
DeprecatedString name_of_containing_function(FlatPtr address) const;
|
||||
ByteString name_of_containing_function(FlatPtr address) const;
|
||||
Vector<SourcePosition> source_lines_in_scope(VariablesScope const&) const;
|
||||
Optional<VariablesScope> get_containing_function(FlatPtr address) const;
|
||||
|
||||
|
@ -123,7 +123,7 @@ private:
|
|||
ErrorOr<Optional<uint32_t>> get_line_of_inline(Dwarf::DIE const&) const;
|
||||
|
||||
ELF::Image const& m_elf;
|
||||
DeprecatedString m_source_root;
|
||||
ByteString m_source_root;
|
||||
FlatPtr m_base_address { 0 };
|
||||
Dwarf::DwarfInfo m_dwarf_info;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue