|
15 | 15 | #include "lldb/Utility/ConstString.h"
|
16 | 16 | #include "lldb/lldb-enumerations.h"
|
17 | 17 | #include "lldb/lldb-private-enumerations.h"
|
| 18 | +#include "lldb/lldb-forward.h" |
18 | 19 | #include "llvm/ADT/StringRef.h" // for StringRef
|
19 | 20 | #include "llvm/ADT/Triple.h"
|
20 | 21 |
|
|
23 | 24 | #include <stddef.h> // for size_t
|
24 | 25 | #include <stdint.h> // for uint32_t
|
25 | 26 |
|
26 |
| -namespace lldb_private { |
27 |
| -class Platform; |
28 |
| -} |
29 |
| -namespace lldb_private { |
30 |
| -class Stream; |
31 |
| -} |
32 |
| -namespace lldb_private { |
33 |
| -class StringList; |
34 |
| -} |
35 |
| -namespace lldb_private { |
36 |
| -class Thread; |
37 |
| -} |
38 |
| - |
39 | 27 | namespace lldb_private {
|
40 | 28 |
|
41 | 29 | //----------------------------------------------------------------------
|
@@ -258,8 +246,6 @@ class ArchSpec {
|
258 | 246 |
|
259 | 247 | };
|
260 | 248 |
|
261 |
| - typedef void (*StopInfoOverrideCallbackType)(lldb_private::Thread &thread); |
262 |
| - |
263 | 249 | //------------------------------------------------------------------
|
264 | 250 | /// Default constructor.
|
265 | 251 | ///
|
@@ -574,34 +560,11 @@ class ArchSpec {
|
574 | 560 | //------------------------------------------------------------------
|
575 | 561 | bool IsCompatibleMatch(const ArchSpec &rhs) const;
|
576 | 562 |
|
577 |
| - //------------------------------------------------------------------ |
578 |
| - /// Get a stop info override callback for the current architecture. |
579 |
| - /// |
580 |
| - /// Most platform specific code should go in lldb_private::Platform, |
581 |
| - /// but there are cases where no matter which platform you are on |
582 |
| - /// certain things hold true. |
583 |
| - /// |
584 |
| - /// This callback is currently intended to handle cases where a |
585 |
| - /// program stops at an instruction that won't get executed and it |
586 |
| - /// allows the stop reasonm, like "breakpoint hit", to be replaced |
587 |
| - /// with a different stop reason like "no stop reason". |
588 |
| - /// |
589 |
| - /// This is specifically used for ARM in Thumb code when we stop in |
590 |
| - /// an IT instruction (if/then/else) where the instruction won't get |
591 |
| - /// executed and therefore it wouldn't be correct to show the program |
592 |
| - /// stopped at the current PC. The code is generic and applies to all |
593 |
| - /// ARM CPUs. |
594 |
| - /// |
595 |
| - /// @return NULL or a valid stop info override callback for the |
596 |
| - /// current architecture. |
597 |
| - //------------------------------------------------------------------ |
598 |
| - StopInfoOverrideCallbackType GetStopInfoOverrideCallback() const; |
599 |
| - |
600 | 563 | bool IsFullySpecifiedTriple() const;
|
601 | 564 |
|
602 | 565 | void PiecewiseTripleCompare(const ArchSpec &other, bool &arch_different,
|
603 | 566 | bool &vendor_different, bool &os_different,
|
604 |
| - bool &os_version_different, bool &env_different); |
| 567 | + bool &os_version_different, bool &env_different) const; |
605 | 568 |
|
606 | 569 | //------------------------------------------------------------------
|
607 | 570 | /// Detect whether this architecture uses thumb code exclusively
|
|
0 commit comments