Mark the symbol that is the name of a scope with the size of that scope
(previously only the scope itself had that size). Pass the size of symbols through the object file to the linker. Bump the object file version and adjust object file reading tools (od65, ar65) to this change. Read the size in the linker and output it in the debug info. Bump the minor version number of the debug info. Read the size and allow to access it via the API. Do better version checking for the debug info and try to be smarter when encountering unknown keywords to improve support for newer minor versions. git-svn-id: svn://svn.cc65.org/cc65/trunk@5057 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -51,11 +51,12 @@ extern "C" {
|
||||
|
||||
|
||||
|
||||
/* Data types used for addresses and line numbers. Change to "unsigned long"
|
||||
* if you ever want to run the code on a 16-bit machine.
|
||||
/* Data types used for addresses, sizes and line numbers. Change to "unsigned
|
||||
* long" if you ever want to run the code on a 16-bit machine.
|
||||
*/
|
||||
typedef unsigned cc65_line; /* Used to store line numbers */
|
||||
typedef unsigned cc65_addr; /* Use to store (65xx) addresses */
|
||||
typedef unsigned cc65_addr; /* Used to store (65xx) addresses */
|
||||
typedef unsigned cc65_size; /* Used to store (65xx) sizes */
|
||||
|
||||
/* Pointer to an opaque data structure containing information from the debug
|
||||
* info file. Actually a handle to the data in the file.
|
||||
@@ -162,6 +163,7 @@ typedef struct cc65_symboldata cc65_symboldata;
|
||||
struct cc65_symboldata {
|
||||
const char* symbol_name; /* Name of symbol */
|
||||
cc65_symbol_type symbol_type; /* Type of symbol */
|
||||
cc65_size symbol_size; /* Size of symbol, 0 if unknown */
|
||||
long symbol_value; /* Value of symbol */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user