]> git.sur5r.net Git - cc65/log
cc65
13 years agoImplement variable sized element count for arrays.
uz [Tue, 23 Aug 2011 16:15:41 +0000 (16:15 +0000)]
Implement variable sized element count for arrays.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5266 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded the LineInfo count to the info line of the debug info file. This allows
uz [Mon, 22 Aug 2011 21:52:40 +0000 (21:52 +0000)]
Added the LineInfo count to the info line of the debug info file. This allows
the debug info module to reduce memory usage.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5265 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack types, parse the extended debug info format with "type" lines.
uz [Mon, 22 Aug 2011 19:37:10 +0000 (19:37 +0000)]
Track types, parse the extended debug info format with "type" lines.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5264 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMaintain the types as separate indexed items in the debug info file.
uz [Mon, 22 Aug 2011 18:22:45 +0000 (18:22 +0000)]
Maintain the types as separate indexed items in the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5263 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded a tpool module that implements a global pool for generic types, so we
uz [Mon, 22 Aug 2011 17:53:00 +0000 (17:53 +0000)]
Added a tpool module that implements a global pool for generic types, so we
can merge duplicate ones and assign them global ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5262 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDo not resolve the lists of spans for LineInfos and Scopes, but keep them as
uz [Mon, 22 Aug 2011 17:36:19 +0000 (17:36 +0000)]
Do not resolve the lists of spans for LineInfos and Scopes, but keep them as
ids. This way, we can delay loading spans until we know that we definitely
need an object file.
Did some restructuring for writing of span lists to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5261 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFix a problem with the generated array sizes for span types (they were wrong).
uz [Sun, 21 Aug 2011 20:50:39 +0000 (20:50 +0000)]
Fix a problem with the generated array sizes for span types (they were wrong).
As an optimization, don't create an array for just a few elements.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5260 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoParse (but ignore) type information for spans.
uz [Sun, 21 Aug 2011 20:18:27 +0000 (20:18 +0000)]
Parse (but ignore) type information for spans.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5259 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite out type information for spans to the debug info file.
uz [Sun, 21 Aug 2011 20:18:09 +0000 (20:18 +0000)]
Write out type information for spans to the debug info file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5258 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoChange prototype for GT_AsString to make it easier usable.
uz [Sun, 21 Aug 2011 20:17:43 +0000 (20:17 +0000)]
Change prototype for GT_AsString to make it easier usable.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5257 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoGenerate span types for .ADDR, .BYTE, .DBYT, .FARADDR and .WORD.
uz [Sun, 21 Aug 2011 20:17:22 +0000 (20:17 +0000)]
Generate span types for .ADDR, .BYTE, .DBYT, .FARADDR and .WORD.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5256 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded GT_AsString().
uz [Sun, 21 Aug 2011 20:04:27 +0000 (20:04 +0000)]
Added GT_AsString().

git-svn-id: svn://svn.cc65.org/cc65/trunk@5255 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDon't remember types for spans if no debug info is requested.
uz [Sun, 21 Aug 2011 19:46:47 +0000 (19:46 +0000)]
Don't remember types for spans if no debug info is requested.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5254 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd an optional type to a span.
uz [Sun, 21 Aug 2011 19:44:02 +0000 (19:44 +0000)]
Add an optional type to a span.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5253 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe string with index zero is the first string in the string pool.
uz [Sun, 21 Aug 2011 19:35:51 +0000 (19:35 +0000)]
The string with index zero is the first string in the string pool.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5252 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoSome work on the generic type module.
uz [Sun, 21 Aug 2011 19:27:03 +0000 (19:27 +0000)]
Some work on the generic type module.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5251 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite spans out in a separate object file section. This allows to merge
uz [Sun, 21 Aug 2011 19:08:23 +0000 (19:08 +0000)]
Write spans out in a separate object file section. This allows to merge
duplicate spans in an object file and more extensions to come.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5250 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded CollReplaceExpand.
uz [Sun, 21 Aug 2011 17:30:25 +0000 (17:30 +0000)]
Added CollReplaceExpand.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5249 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFix errors in tracking the number of items in the table. Added function
uz [Sun, 21 Aug 2011 16:56:40 +0000 (16:56 +0000)]
Fix errors in tracking the number of items in the table. Added function
HT_GetCount to retrieve the number of items.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5248 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFix a problem with macro expansion count in line infos for macros.
uz [Sun, 21 Aug 2011 16:23:38 +0000 (16:23 +0000)]
Fix a problem with macro expansion count in line infos for macros.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5247 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a bug in SP_Add.
uz [Sun, 21 Aug 2011 16:08:52 +0000 (16:08 +0000)]
Fixed a bug in SP_Add.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5246 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe ...Entry functions from the hashtab module have been renamed.
uz [Sun, 21 Aug 2011 13:35:36 +0000 (13:35 +0000)]
The ...Entry functions from the hashtab module have been renamed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5245 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe ..Entry functions from the hashtable module have been renamed.
uz [Sun, 21 Aug 2011 13:33:06 +0000 (13:33 +0000)]
The ..Entry functions from the hashtable module have been renamed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5244 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemoved the functions that work on HashNodes since they are mostly useless
uz [Sun, 21 Aug 2011 13:31:30 +0000 (13:31 +0000)]
Removed the functions that work on HashNodes since they are mostly useless
now.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5243 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoImplementation of StringPool has changed.
uz [Sun, 21 Aug 2011 13:21:11 +0000 (13:21 +0000)]
Implementation of StringPool has changed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5242 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoImplementation of SP_GetCount has been missing.
uz [Sun, 21 Aug 2011 13:20:48 +0000 (13:20 +0000)]
Implementation of SP_GetCount has been missing.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5241 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoImplementation of StringPool has changed.
uz [Sun, 21 Aug 2011 13:16:14 +0000 (13:16 +0000)]
Implementation of StringPool has changed.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5240 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse the hashtab to implement the string pool hash table.
uz [Sun, 21 Aug 2011 13:15:52 +0000 (13:15 +0000)]
Use the hashtab to implement the string pool hash table.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5239 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd a gentype.c module that contains GT_FromStrBuf.
uz [Sat, 20 Aug 2011 22:13:58 +0000 (22:13 +0000)]
Add a gentype.c module that contains GT_FromStrBuf.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5238 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoSmall change for better hash table distribution.
uz [Sat, 20 Aug 2011 21:53:22 +0000 (21:53 +0000)]
Small change for better hash table distribution.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5237 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded a new gentype module for generic (not language dependent) types.
uz [Sat, 20 Aug 2011 20:16:13 +0000 (20:16 +0000)]
Added a new gentype module for generic (not language dependent) types.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5236 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRead segment sizes as var, no longer as 32 bit values.
uz [Fri, 19 Aug 2011 20:58:14 +0000 (20:58 +0000)]
Read segment sizes as var, no longer as 32 bit values.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5235 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRead the segment size as var, not as 32 bit value.
uz [Fri, 19 Aug 2011 20:56:44 +0000 (20:56 +0000)]
Read the segment size as var, not as 32 bit value.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5234 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed some stuff. Write out the segment size as var, not 32 bit.
uz [Fri, 19 Aug 2011 20:55:48 +0000 (20:55 +0000)]
Renamed some stuff. Write out the segment size as var, not 32 bit.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5233 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoLast fix was wrong. The problem wasn't in the struct code but in SymLeaveLevel
uz [Fri, 19 Aug 2011 15:24:11 +0000 (15:24 +0000)]
Last fix was wrong. The problem wasn't in the struct code but in SymLeaveLevel
calling CloseSpans, which does not only close spans but might also add some,
in which case the scope became another size.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5232 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a bug: The size of a scope is now recorded for all scopes in
uz [Fri, 19 Aug 2011 15:06:51 +0000 (15:06 +0000)]
Fixed a bug: The size of a scope is now recorded for all scopes in
SymLeaveLevel. Doing so also in the code for .STRUCT/.UNION will try to enter
the .size symbol twice.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5231 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_line_byspan and cc65_scope_byspan.
uz [Fri, 19 Aug 2011 14:39:11 +0000 (14:39 +0000)]
Added cc65_line_byspan and cc65_scope_byspan.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5230 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd the number of attached lines and scopes to a span.
uz [Fri, 19 Aug 2011 14:31:03 +0000 (14:31 +0000)]
Add the number of attached lines and scopes to a span.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5229 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemoved some debug output.
uz [Fri, 19 Aug 2011 11:30:31 +0000 (11:30 +0000)]
Removed some debug output.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5228 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAllow more space for symbol names.
uz [Fri, 19 Aug 2011 11:22:36 +0000 (11:22 +0000)]
Allow more space for symbol names.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5227 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemove CollConstAt. Let CollAt and CollAtUnchecked take const pointers to
uz [Fri, 19 Aug 2011 11:21:22 +0000 (11:21 +0000)]
Remove CollConstAt. Let CollAt and CollAtUnchecked take const pointers to
collections. Use const pointers in many places. Some other cleanups.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5226 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse CollTransfer where possible.
uz [Fri, 19 Aug 2011 11:06:52 +0000 (11:06 +0000)]
Use CollTransfer where possible.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5225 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoNew function CollTransfer. Change CollAt and CollAtUnchecked to take a const
uz [Fri, 19 Aug 2011 11:01:01 +0000 (11:01 +0000)]
New function CollTransfer. Change CollAt and CollAtUnchecked to take a const
Collection pointer instead of just a Collection pointer. This makes more
sense, since the functions do not change the collection.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5224 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoReenable optimizations.
uz [Fri, 19 Aug 2011 10:46:49 +0000 (10:46 +0000)]
Reenable optimizations.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5223 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoChanged data type used to store line numbers from unsigned long to unsigned.
uz [Fri, 19 Aug 2011 10:44:45 +0000 (10:44 +0000)]
Changed data type used to store line numbers from unsigned long to unsigned.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5222 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput all positions in a file for unresolved externals.
uz [Fri, 19 Aug 2011 10:40:11 +0000 (10:40 +0000)]
Output all positions in a file for unresolved externals.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5221 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoEnable optimizations.
uz [Fri, 19 Aug 2011 10:05:13 +0000 (10:05 +0000)]
Enable optimizations.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5220 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAllow to display symbols and line infos for symbols.
uz [Thu, 18 Aug 2011 20:34:31 +0000 (20:34 +0000)]
Allow to display symbols and line infos for symbols.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5219 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_line_bysymdef and cc65_line_bysymref.
uz [Thu, 18 Aug 2011 20:11:27 +0000 (20:11 +0000)]
Added cc65_line_bysymdef and cc65_line_bysymref.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5218 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoParse additional def and ref keywords for symbols.
uz [Thu, 18 Aug 2011 16:57:51 +0000 (16:57 +0000)]
Parse additional def and ref keywords for symbols.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5217 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoOutput line info for symbol definition and references.
uz [Thu, 18 Aug 2011 16:55:53 +0000 (16:55 +0000)]
Output line info for symbol definition and references.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5216 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRead and manage additional line information for symbols.
uz [Thu, 18 Aug 2011 16:27:18 +0000 (16:27 +0000)]
Read and manage additional line information for symbols.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5215 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdapt to changed information in the object files.
uz [Thu, 18 Aug 2011 16:26:44 +0000 (16:26 +0000)]
Adapt to changed information in the object files.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5214 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemember where each symbol was defined and where it was referenced. Write this
uz [Thu, 18 Aug 2011 16:25:58 +0000 (16:25 +0000)]
Remember where each symbol was defined and where it was referenced. Write this
information to the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5213 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd reference counting to line infos. This allows better tracking of the ones
uz [Thu, 18 Aug 2011 14:36:38 +0000 (14:36 +0000)]
Add reference counting to line infos. This allows better tracking of the ones
that are actually used.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5212 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDecrease the minimum size of a collection.
uz [Thu, 18 Aug 2011 14:13:14 +0000 (14:13 +0000)]
Decrease the minimum size of a collection.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5211 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoChange HT_Walk so that it can optionally be used to delete nodes from the hash
uz [Thu, 18 Aug 2011 13:05:21 +0000 (13:05 +0000)]
Change HT_Walk so that it can optionally be used to delete nodes from the hash
table.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5210 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDon't use a separate Count field for the line info type.
uz [Thu, 18 Aug 2011 12:35:43 +0000 (12:35 +0000)]
Don't use a separate Count field for the line info type.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5209 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoReplace single linked list of sections in a segment by a collection.
uz [Thu, 18 Aug 2011 11:58:16 +0000 (11:58 +0000)]
Replace single linked list of sections in a segment by a collection.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5208 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoUse correct syntax. The old did work but wasn't really right.
uz [Thu, 18 Aug 2011 11:57:57 +0000 (11:57 +0000)]
Use correct syntax. The old did work but wasn't really right.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5207 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoExport NewSpan() - this will be needed later.
uz [Thu, 18 Aug 2011 11:57:17 +0000 (11:57 +0000)]
Export NewSpan() - this will be needed later.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5206 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDon't write out spans for line infos if no debug info is requested for the
uz [Thu, 18 Aug 2011 10:36:08 +0000 (10:36 +0000)]
Don't write out spans for line infos if no debug info is requested for the
object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5205 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMore changes to account for modules without debug info.
uz [Thu, 18 Aug 2011 10:26:13 +0000 (10:26 +0000)]
More changes to account for modules without debug info.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5204 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoIf a symbol is an import, the corresponding export does only have a debug
uz [Thu, 18 Aug 2011 10:13:11 +0000 (10:13 +0000)]
If a symbol is an import, the corresponding export does only have a debug
symbol id if the module contains debug information.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5203 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded an OBJ_HAS_DBGINFO macro.
uz [Thu, 18 Aug 2011 10:08:56 +0000 (10:08 +0000)]
Added an OBJ_HAS_DBGINFO macro.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5202 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMark imports with a special type tag instead of relying on the export pointer
uz [Thu, 18 Aug 2011 10:04:01 +0000 (10:04 +0000)]
Mark imports with a special type tag instead of relying on the export pointer
being valid, because the export may not be available if the module was
compiled without debug information.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5201 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMark imports using "type=imp".
uz [Thu, 18 Aug 2011 09:56:53 +0000 (09:56 +0000)]
Mark imports using "type=imp".

git-svn-id: svn://svn.cc65.org/cc65/trunk@5200 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack cheap local symbols. Reduce initial collection size to one. This causes
uz [Wed, 17 Aug 2011 21:34:26 +0000 (21:34 +0000)]
Track cheap local symbols. Reduce initial collection size to one. This causes
a small increase in allocations, but about 20% decrease in allocated memory.
Looks like many of the collections are rather small.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5199 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_scope_byname.
uz [Wed, 17 Aug 2011 21:20:10 +0000 (21:20 +0000)]
Added cc65_scope_byname.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5198 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_symbol_byscope.
uz [Wed, 17 Aug 2011 19:12:59 +0000 (19:12 +0000)]
Added cc65_symbol_byscope.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5197 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_childscopes_byid.
uz [Wed, 17 Aug 2011 19:00:34 +0000 (19:00 +0000)]
Added cc65_childscopes_byid.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5196 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded several commands to display debug file items.
uz [Wed, 17 Aug 2011 16:27:34 +0000 (16:27 +0000)]
Added several commands to display debug file items.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5195 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_line_bysource
uz [Wed, 17 Aug 2011 16:08:26 +0000 (16:08 +0000)]
Added cc65_line_bysource

git-svn-id: svn://svn.cc65.org/cc65/trunk@5194 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_line_byid.
uz [Wed, 17 Aug 2011 15:58:21 +0000 (15:58 +0000)]
Added cc65_line_byid.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5193 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoShortened some of the function names.
uz [Wed, 17 Aug 2011 15:55:44 +0000 (15:55 +0000)]
Shortened some of the function names.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5192 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed a struct member.
uz [Wed, 17 Aug 2011 15:50:53 +0000 (15:50 +0000)]
Renamed a struct member.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5191 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_seginfo_byname.
uz [Wed, 17 Aug 2011 15:26:40 +0000 (15:26 +0000)]
Added cc65_seginfo_byname.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5190 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded cc65_get_scopelist. Added a few statistics field to the DbgInfo
uz [Wed, 17 Aug 2011 15:18:22 +0000 (15:18 +0000)]
Added cc65_get_scopelist. Added a few statistics field to the DbgInfo
structure.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5189 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoReplaced the old dbgtest program by a debug info shell.
uz [Tue, 16 Aug 2011 22:37:01 +0000 (22:37 +0000)]
Replaced the old dbgtest program by a debug info shell.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5188 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoHandle imports correctly.
uz [Tue, 16 Aug 2011 14:25:18 +0000 (14:25 +0000)]
Handle imports correctly.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5187 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite imports out to the debug info file. Add the id of the corresponding
uz [Tue, 16 Aug 2011 13:58:59 +0000 (13:58 +0000)]
Write imports out to the debug info file. Add the id of the corresponding
export.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5186 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoWrite imports out as debug symbols.
uz [Tue, 16 Aug 2011 13:39:00 +0000 (13:39 +0000)]
Write imports out as debug symbols.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5185 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDump export and import ids.
uz [Tue, 16 Aug 2011 12:53:48 +0000 (12:53 +0000)]
Dump export and import ids.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5184 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack export ids of debug symbols and write the to the object file.
uz [Tue, 16 Aug 2011 12:52:56 +0000 (12:52 +0000)]
Track export ids of debug symbols and write the to the object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5183 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoIf a debug symbol is an import, write out the import id.
uz [Tue, 16 Aug 2011 12:33:19 +0000 (12:33 +0000)]
If a debug symbol is an import, write out the import id.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5182 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRenamed variables for better readability.
uz [Tue, 16 Aug 2011 12:08:43 +0000 (12:08 +0000)]
Renamed variables for better readability.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5181 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoHandle the new symbol flags correctly. Changed - among other things - the
uz [Tue, 16 Aug 2011 11:50:27 +0000 (11:50 +0000)]
Handle the new symbol flags correctly. Changed - among other things - the
data types of members in the management structures.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5180 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoDo also write the im-/export flags to the symbol flags in an object file.
uz [Tue, 16 Aug 2011 11:37:19 +0000 (11:37 +0000)]
Do also write the im-/export flags to the symbol flags in an object file.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5179 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdded flags for im- and export.
uz [Tue, 16 Aug 2011 11:34:46 +0000 (11:34 +0000)]
Added flags for im- and export.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5178 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoMany changes. Map spans instead of line infos into the address space. Quite
uz [Mon, 15 Aug 2011 21:46:39 +0000 (21:46 +0000)]
Many changes. Map spans instead of line infos into the address space. Quite
some API changes. The test program is almost useless and has to be replaced.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5177 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoRemove CollFirst in favour of CollAt.
uz [Mon, 15 Aug 2011 17:57:26 +0000 (17:57 +0000)]
Remove CollFirst in favour of CollAt.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5176 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoAdd cc65_idlist.
uz [Mon, 15 Aug 2011 17:42:43 +0000 (17:42 +0000)]
Add cc65_idlist.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5175 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoTrack the main scope of modules.
uz [Mon, 15 Aug 2011 17:36:38 +0000 (17:36 +0000)]
Track the main scope of modules.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5174 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed problems with the range check on 64 bit machines.
uz [Mon, 15 Aug 2011 17:25:49 +0000 (17:25 +0000)]
Fixed problems with the range check on 64 bit machines.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5173 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoThe line number is now of type unsigned.
uz [Mon, 15 Aug 2011 17:25:23 +0000 (17:25 +0000)]
The line number is now of type unsigned.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5172 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed even more problems with the range check.
uz [Mon, 15 Aug 2011 17:23:44 +0000 (17:23 +0000)]
Fixed even more problems with the range check.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5171 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoFixed a problem with the range check.
uz [Mon, 15 Aug 2011 17:19:05 +0000 (17:19 +0000)]
Fixed a problem with the range check.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5170 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoLine number is now an unsigned
uz [Mon, 15 Aug 2011 16:09:34 +0000 (16:09 +0000)]
Line number is now an unsigned

git-svn-id: svn://svn.cc65.org/cc65/trunk@5169 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoLine number is now an unsigned.
uz [Mon, 15 Aug 2011 16:08:50 +0000 (16:08 +0000)]
Line number is now an unsigned.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5168 b7a2c559-68d2-44c3-8de9-860c34a00d81

13 years agoChange the type of the line number from unsigned long to unsigned since the
uz [Mon, 15 Aug 2011 16:08:15 +0000 (16:08 +0000)]
Change the type of the line number from unsigned long to unsigned since the
tools won't run on a 16 bit platform anyway. And if so, line numbers limited
to 65535 are probably the least problem.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5167 b7a2c559-68d2-44c3-8de9-860c34a00d81