In Inspector, BT library is used by BE.Backtraces.Xml_Files to write
XML files with backtraces and Inspector values. In GNAT Studio, BT
library is used to read XML files with Inspector values.
There was one copy of the library in Inspector's repo and one in GS
repo and these two copies were supposed to be manually synchronized.
However, since there is only a little intersection between the part
of the library used in Inspector and in GS, we decided to split the
library into two parts - Inspector part and GS part and to stop
synchronizing these systematically.
This commit puts comments to the parts of the splitted library that
still needs to synchronized, but it is very unlikely that these
will need to be modified. Here is the list of sources with some
intersection between Inspector and GS part:
bt.ads
- small part of the file containing the definition of source code
position; very unlikely need to be synchronized
bt-xml.{abs, adb}
- definitions of names of XML entities and attributes + the function
Xml_Vals_File_Name
Then, this commit makes the following changes:
* bt-xml-reader.{adb, ads} - keep only the part necessary for
reading XML files with Inspector values
* bt.adb - remove - not used in GS
* bt.ads - keep only types representing source positions and values
of value numbers
* bt-xml.{adb, ads} - keep only string constants for names of XML
entities and attributes necessary to read XML files with Inspector
values, keep the function Xml_Vals_File_Name
* message_kinds.{adb, ads} - remove - not used by GS
No major impact. Probably only an improvement for the display of 64 bits
integer boundaries
no-tn-check
Change-Id: I27c95a367c2e5a73d91d72c8c5d543a2e7500a12
(Get_Variable_Vn_Value): Change spec and simplify algorithm.
Also move this function to the body.
The code is now much simpler and is actually working as expected.
Change-Id: Idbdd6bcc1fd55a57e5d4e715611ed2d494f18e5a
(Get_Srcpos_Vn_Values): Fix logic.
Previous code would never trigger the fuzzy matching ("closest match")
since we were comparing source locations strictly, including the column.
Change-Id: I0d1044c311d4ee1c0af4b5885f54e262ed85a0ce