diff --git a/library/DFMemInfoManager.cpp b/library/DFMemInfoManager.cpp index 098372015..7c994f7da 100644 --- a/library/DFMemInfoManager.cpp +++ b/library/DFMemInfoManager.cpp @@ -80,6 +80,7 @@ void MemInfoManager::ParseEntry (TiXmlElement* entry, memory_info& mem, map Attribute("os"); const char *cstr_base = entry->Attribute("base"); const char *cstr_rebase = entry->Attribute("rebase"); +// printf("%s : %s\n",cstr_version, cstr_os); if(cstr_base) { string base = cstr_base; diff --git a/output/Memory.xml b/output/Memory.xml index c7bed9307..a8bcebc5f 100644 --- a/output/Memory.xml +++ b/output/Memory.xml @@ -2,39 +2,6 @@ - _____________________________________________ - |\'-._( / | - | \ .'-._\ , ,| - |-.\' .-; .'\`-' | - | \ .' ( _.' \ | - |.--.\' _) ;-; \._| - | ` _\(_)/_ \ `'-,_,-'\ | - jgs____ /(O)\ _________________/____)_`-._\| - | | - | Old unsupported versions | - |-------------------------------------------> - - - 0 1 @@ -645,94 +612,97 @@ 0x84 0x60 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + +
0x9fc294
@@ -817,13 +787,13 @@ 0x18 - + - - - - + + + +
0x9662a4
0xcae368
@@ -836,7 +806,7 @@ 0x49C82D3F 6f81231b845e9c9dc29aaf57705ccc7c - +
0x9652a4
0xcdf5a0
0xd0d64c
@@ -873,7 +843,7 @@
0x015FCE3C
- +
0x95f2b4
0xd995a0
@@ -888,7 +858,7 @@ 04a8d8ce311d8ac75e4241bef68d3147 - +
0x009642b4
0x00d9e600
0x00dcc6ac
@@ -900,7 +870,7 @@ 781a2e51be4056a7320108f8f0df8a13 - +
0x009662B4
0x00DA060C
0x00DCE6B8
@@ -912,13 +882,13 @@ 12cc4a3dbb6e6dfd7bc7aee458b9471a - +
0x009662B4
0x00DA061C
0x00DCE6C8
0x00DCE6A4
- + 0x4A9B1A72 59ab29021aca9f3c66b1ab102fb3ceea @@ -930,7 +900,7 @@
0x013EF900
0x13DC2EB
0x013EF970
- + @@ -1020,7 +990,7 @@ - + @@ -1102,8 +1072,319 @@ 0x94 0xB0 -
+
+ + + 0x4B6B7879 + DE66405F54D98297303D439B3B7AA30E + +
0x016367DC
+
0x015DEEC8
+
0x015F3260
+
0x015F9434
+
0x015F28B4
+
0x015F29A8
+ + +
0x01638B8C
+
0x01638B5C
+ +
0x016367FC
+
0x01636800
+
0x01636804
+ + +
0x01636814
+
0x01636818
+
0x0163681C
+ + +
0x01637E14
+ +
0x0163894C
+ +
0x0099AC88
+
0x00DD4FEC
+
0x00E03098
+
0x00E03074
+
0x0177B8F0
+
0x0099AE0C
+
0x01410CC1
+
0x014243C4
+
0x0178C994
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
.-"""-. ' \ |,. ,-. | @@ -1151,6 +1432,9 @@
0x09374F90
0x1C + +
0x91631f0
+ 0x08 @@ -1217,101 +1501,106 @@
0x9374E88
0xC - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + fb8ecac8a12af5d0d7b1707078985d0d - +
0x88073d4
0x9510050
@@ -1334,7 +1623,6 @@
0x091a647c
-
0x08F97BA4
0x08F97B8C
@@ -1353,14 +1641,14 @@
0x08F97A84
- + 2f3cb9d720e9fe8844c02c72a2b20bbd - +
0x8780354
0x091ab49c
@@ -1369,14 +1657,14 @@ dab3ce6bc074529706a1e5fe1273108c - +
4f55a1dcc326786271f221de23c425b5 - + @@ -1384,13 +1672,13 @@ 022b933926e08da49c6df8649295f2b7 -
0x91ab420
+
0x91ab420
0x8F5A2EC
0x50 -
0x8F35800
-
0x878493c
-
0x8f467e0
- +
0x8F35800
+
0x878493c
+
0x8f467e0
+ @@ -1459,7 +1747,7 @@ - + @@ -1562,7 +1850,7 @@ 0x1C 0x20
- + 8f55a6250f2550e28535b79db43d5f1a @@ -1570,8 +1858,8 @@
0x8947d54
0x8947d58
0x8947d5c
-
0x91b35fc
-
0x8f3d960
+
0x91b35fc
+
0x08FA2D3C
@@ -1590,22 +1878,239 @@
0x8FA2D6C
0x8FA2D70
- + +
0x08F4EA98
+
0x08F65A10
+
0x08F628C0
+
0x08F623D0
+
0x08F6244C
- - - - - +
0x08FA4D24
+
0x08FA4D0C
+ + +
0x91b3580
+
0x8f3d960
+
0x878caa4
+
0x8f4e940
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/tools/buildingsdump.cpp b/tools/buildingsdump.cpp index 836b66595..ee255e28a 100644 --- a/tools/buildingsdump.cpp +++ b/tools/buildingsdump.cpp @@ -143,11 +143,19 @@ int main (int argc,const char* argv[]) { DFHack::t_building temp; DF.ReadBuilding(i, temp); - if(buildingtypes[temp.type] == argv[1]) + if(temp.type != 0xFFFFFFFF) // check if type isn't invalid { - //cout << buildingtypes[temp.type] << " 0x" << hex << temp.origin << endl; - //hexdump(DF, temp.origin, 16); - addresses.push_back(temp.origin); + if(buildingtypes[temp.type] == argv[1]) + { + //cout << buildingtypes[temp.type] << " 0x" << hex << temp.origin << endl; + //hexdump(DF, temp.origin, 16); + addresses.push_back(temp.origin); + } + } + else + { + // couldn't translate type, print out the vtable + cout << "unknown vtable: " << temp.vtable << endl; } } interleave_hex(DF,addresses,lines / 4);