Skip to content

Commit 23f3b64

Browse files
DimitryAndrictru
authored andcommitted
[lldb][FreeBSD] Fix NativeRegisterContextFreeBSD_{arm,mips64,powerpc} declarations (#101403)
Similar to #97796, fix the type of the `native_thread` parameter for the arm, mips64 and powerpc variants of `NativeRegisterContextFreeBSD_*`. Otherwise, this leads to compile errors similar to: ``` lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp:85:39: error: out-of-line definition of 'NativeRegisterContextFreeBSD_powerpc' does not match any declaration in 'lldb_private::process_freebsd::NativeRegisterContextFreeBSD_powerpc' 85 | NativeRegisterContextFreeBSD_powerpc::NativeRegisterContextFreeBSD_powerpc( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` (cherry picked from commit 7088a5e)
1 parent 2d75393 commit 23f3b64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NativeProcessFreeBSD;
3030
class NativeRegisterContextFreeBSD_arm : public NativeRegisterContextFreeBSD {
3131
public:
3232
NativeRegisterContextFreeBSD_arm(const ArchSpec &target_arch,
33-
NativeThreadProtocol &native_thread);
33+
NativeThreadFreeBSD &native_thread);
3434

3535
uint32_t GetRegisterSetCount() const override;
3636

lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NativeRegisterContextFreeBSD_mips64
3131
: public NativeRegisterContextFreeBSD {
3232
public:
3333
NativeRegisterContextFreeBSD_mips64(const ArchSpec &target_arch,
34-
NativeThreadProtocol &native_thread);
34+
NativeThreadFreeBSD &native_thread);
3535

3636
uint32_t GetRegisterSetCount() const override;
3737

lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class NativeRegisterContextFreeBSD_powerpc
3131
: public NativeRegisterContextFreeBSD {
3232
public:
3333
NativeRegisterContextFreeBSD_powerpc(const ArchSpec &target_arch,
34-
NativeThreadProtocol &native_thread);
34+
NativeThreadFreeBSD &native_thread);
3535

3636
uint32_t GetRegisterSetCount() const override;
3737

0 commit comments

Comments
 (0)