[Lldb-commits] [PATCH] D61311: PostfixExpression: Use signed integers in IntegerNode

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 30 06:56:11 PDT 2019


labath created this revision.
labath added reviewers: amccarth, clayborg, aleksandr.urakov.

This is necessary to support parsing expressions like ".cfa -16 + ^", as
that format is used in breakpad STACK CFI expressions.

Since the PDB expressions use the same parser, this change will affect
them too, but I don't believe that should be a problem in practice. If
PDBs do contain the negative values, it's very likely that they are
intended to be parsed the same way, and if they don't, then it doesn't
matter.

In case that we do ever need to handle this differently, we can always
make the parser behavior customizable, or just use a different parser.

To make sure that the integer size is big enough for everyone, I switch
from using a (unsigned) 32-bit integer to a 64-bit (signed) one.


https://reviews.llvm.org/D61311

Files:
  include/lldb/Symbol/PostfixExpression.h
  source/Symbol/PostfixExpression.cpp
  unittests/Symbol/PostfixExpressionTest.cpp
  unittests/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpressionTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61311.197320.patch
Type: text/x-patch
Size: 4760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190430/28d94203/attachment-0001.bin>


More information about the lldb-commits mailing list