summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Schuetze <r.sagitario@gmx.de>2018-03-30 07:58:09 (GMT)
committerRainer Schuetze <r.sagitario@gmx.de>2018-03-30 07:58:09 (GMT)
commitab4b0b1946295f9762ec3ed83a7c84cc8b7aa975 (patch)
treeb14606180129916243e96ed66116e7677c07aae1
parent74615ceab4ac7577a8fdf1d2f93df7973ae1ff21 (diff)
downloadcv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.zip
cv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.tar.gz
cv2pdb-ab4b0b1946295f9762ec3ed83a7c84cc8b7aa975.tar.bz2
fix signed/unsigned warnings
-rw-r--r--CHANGES4
-rw-r--r--VERSION2
-rw-r--r--src/dwarf2pdb.cpp7
-rw-r--r--src/readDwarf.h6
4 files changed, 11 insertions, 8 deletions
diff --git a/CHANGES b/CHANGES
index b37d8de..dd5f7da 100644
--- a/CHANGES
+++ b/CHANGES
@@ -269,3 +269,7 @@ unreleased Version 0.22
* DWARF: fix crash with AUX data in symbol table
* improve reallocation strategy
+
+2018-03-30 Version 0.44
+
+ * DWARF: improvements for ADA: better enumerator types, improved lexical scope (thanks to @pmderodat)
diff --git a/VERSION b/VERSION
index c56e31a..cd0a4ed 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-VERSION = 0.43
+VERSION = 0.44
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp
index cb078e3..58cd936 100644
--- a/src/dwarf2pdb.cpp
+++ b/src/dwarf2pdb.cpp
@@ -781,15 +781,14 @@ bool CV2PDB::addDWARFProc(DWARF_InfoData& procid, DWARF_CompilationUnit* cu, DIE
// non-contiguous address ranges in CodeView. Instead,
// just create a range that is large enough to cover
// all continuous ranges.
- if (id.hasChild && id.ranges != -1u)
+ if (id.hasChild && id.ranges != ~0)
{
- id.pclo = -1u;
+ id.pclo = ~0;
id.pchi = 0;
// TODO: handle base address selection
byte *r = (byte *)img.debug_ranges + id.ranges;
byte *rend = (byte *)img.debug_ranges + img.debug_ranges_length;
- bool is_= img.isX64() ? 8 : 4;
while (r < rend)
{
uint64_t pclo, pchi;
@@ -1711,4 +1710,4 @@ byte *CFIIndex::lookup(unsigned int pclo, unsigned int pchi) const
return e.ptr;
else
return NULL;
-} \ No newline at end of file
+}
diff --git a/src/readDwarf.h b/src/readDwarf.h
index 5fba790..a259e3c 100644
--- a/src/readDwarf.h
+++ b/src/readDwarf.h
@@ -184,7 +184,7 @@ struct DWARF_InfoData
encoding = 0;
pclo = 0;
pchi = 0;
- ranges = -1u;
+ ranges = ~0;
type = 0;
containing_type = 0;
specification = 0;
@@ -211,7 +211,7 @@ struct DWARF_InfoData
if (id.encoding) encoding = id.encoding;
if (id.pclo) pclo = id.pclo;
if (id.pchi) pchi = id.pchi;
- if (id.ranges != -1u) ranges = id.ranges;
+ if (id.ranges != ~0) ranges = id.ranges;
if (id.type) type = id.type;
if (id.containing_type) containing_type = id.containing_type;
if (id.specification) specification = id.specification;
@@ -238,7 +238,7 @@ struct DWARF_LineNumberProgramHeader
signed char line_base;
byte line_range;
byte opcode_base;
- //LEB128 standard_opcode_lengths[opcode_base];
+ //LEB128 standard_opcode_lengths[opcode_base];
// string include_directories[] // zero byte terminated
// DWARF_FileNames file_names[] // zero byte terminated
};