================
@@ -50,13 +141,12 @@ static constexpr int StackPageSize = 20;
// s=3,l=3 = [th0->s3, label1, th1->s0]
static bool FillStackFrames(DAP &dap, lldb::SBThread &thread,
lldb::SBFormat &frame_format,
- llvm::json::Array &stack_frames, int64_t &offset,
- const int64_t start_frame, const int64_t levels,
- const bool include_all) {
+ std::vector<StackFrame> &stack_frames,
+ uint32_t &offset, const uint32_t start_frame,
+ const uint32_t levels, const bool include_all) {
bool reached_end_of_stack = false;
- for (int64_t i = start_frame;
- static_cast<int64_t>(stack_frames.size()) < levels; i++) {
- if (i == -1) {
+ for (uint32_t i = start_frame; stack_frames.size() < levels; i++) {
+ if (i == UINT32_MAX) {
----------------
DrSergei wrote:
There are some magic below `(start_frame - offset) > 0 ? start_frame - offset :
-1` where there is big difference between `-1` and `UINT32_MAX`, so I prefer to
keep original code now
https://github.com/llvm/llvm-project/pull/173226
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits