Ticket #12411: 0001-Debugger-Fix-TRACE_LOCALS-statement.patch

File 0001-Debugger-Fix-TRACE_LOCALS-statement.patch, 1.0 KB (added by simonsouth, 4 years ago)

Update TRACE_LOCALS statement to resolve build failure

  • src/apps/debugger/value/ValueWriter.cpp

    From 3e70d2597b5d5952639e4af2bb382d7b9252db1e Mon Sep 17 00:00:00 2001
    From: Simon South <ssouth@simonsouth.com>
    Date: Thu, 8 Oct 2015 09:21:44 -0400
    Subject: [PATCH] Debugger: Fix TRACE_LOCALS statement.
    
    - Correct a TRACE_LOCALS statement in ValueWriter.cpp and update it to
      match the current definition of ValuePieceLocation.
    
    Fixes #12411.
    ---
     src/apps/debugger/value/ValueWriter.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/debugger/value/ValueWriter.cpp b/src/apps/debugger/value/ValueWriter.cpp
    index 705e694..0548c21 100644
    a b ValueWriter::WriteValue(ValueLocation* location, BVariant& value)  
    9292            case VALUE_PIECE_LOCATION_REGISTER:
    9393            {
    9494                TRACE_LOCALS("  piece %" B_PRId32 ": register: %" B_PRIu32
    95                     ", bits: %" B_PRIu32 "\n", i, piece.reg, bitSize);
     95                    ", bits: %" B_PRIu64 "\n", i, piece.reg, piece.bitSize);
    9696
    9797                const Register* target = registers + piece.reg;
    9898                BVariant pieceValue;