[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Map file has a very simple format. Currently the map file is created by piping output from the `nm' program through an AWK script, but you can write other tools that create `.map' files. That's why I'll describe the format of map file in details. Even more details you can gather from the source code, as always.
The map file is a plain text file. Lines that start with `#' or `;' are ignored. Otherwise each line starts with an letter that identifies which type of information is presented on that line. Here is a list of all identificators, what they mean, and what information is expected on that line.
O string
O aslbL |
S hexnum string
S 10038 /home/andy/CS/memdbg/test.cpp |
F hexnum string
F 10370 output(char const*,...) |
L hexnum decnum
L 10071 11 |
D hexnum-a hexnum-b A|F
D 32b70 10370 A |
The addresses for the `S', `F', and `L' keywords should be sorted in increasing order; i.e. the memory debugger supposes that all lines are pre-sorted by increasing value of their address. Otherwise you will get very strange line references (or hexadecimal addresses like at the end of previous section).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |