summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-05-02 18:26:40 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-05-02 18:26:40 +0000
commit4f51a0740a17aedfef3036352e78ec970ce0ac57 (patch)
tree466319999728a80b77d44370c08e336ef20cc6db /lldb
parent802df13e4dbe8c34fed513f216e988c3c3186849 (diff)
downloadbcm5719-llvm-4f51a0740a17aedfef3036352e78ec970ce0ac57.tar.gz
bcm5719-llvm-4f51a0740a17aedfef3036352e78ec970ce0ac57.zip
LLDB_INVALID_OFFSET can be large than a size_t on ILP32 systems, so use
SIZE_MAX here. llvm-svn: 207855
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Core/DataExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp
index 5acc8ffed0f..2552165f34b 100644
--- a/lldb/source/Core/DataExtractor.cpp
+++ b/lldb/source/Core/DataExtractor.cpp
@@ -1475,7 +1475,7 @@ DataExtractor::Dump (Stream *s,
if (item_format == eFormatBytesWithASCII && offset > line_start_offset)
{
s->Printf("%*s", static_cast<int>((num_per_line - (offset - line_start_offset)) * 3 + 2), "");
- Dump(s, line_start_offset, eFormatCharPrintable, 1, offset - line_start_offset, LLDB_INVALID_OFFSET, LLDB_INVALID_ADDRESS, 0, 0);
+ Dump(s, line_start_offset, eFormatCharPrintable, 1, offset - line_start_offset, SIZE_MAX, LLDB_INVALID_ADDRESS, 0, 0);
}
s->EOL();
}
@@ -2039,7 +2039,7 @@ DataExtractor::Dump (Stream *s,
if (item_format == eFormatBytesWithASCII && offset > line_start_offset)
{
s->Printf("%*s", static_cast<int>((num_per_line - (offset - line_start_offset)) * 3 + 2), "");
- Dump(s, line_start_offset, eFormatCharPrintable, 1, offset - line_start_offset, LLDB_INVALID_OFFSET, LLDB_INVALID_ADDRESS, 0, 0);
+ Dump(s, line_start_offset, eFormatCharPrintable, 1, offset - line_start_offset, SIZE_MAX, LLDB_INVALID_ADDRESS, 0, 0);
}
return offset; // Return the offset at which we ended up
}
OpenPOWER on IntegriCloud