8f03c4e9cfMove the collection containing all line infos into the DbgInfo struct and keep it there. It will be used to search for line info by address in some future version, which is faster than searching through all the source files in a linear fashion.
uz
2010-08-09 20:54:12 +00:00
5625977188Add 'extern "C"' so the module may be used from C++ sources.
uz
2010-08-09 15:55:49 +00:00
3f7fc55c7eAdded some more checks and initialization.
uz
2010-08-09 15:52:23 +00:00
b936617eb4Fixed a C99ism.
uz
2010-08-09 05:47:22 +00:00
99fd891126Major changes: Names of structures, fields and subroutine names have changed. Support for additional segment info and file offsets for an address. The version number is now mandatory and checked to avoid problems with old formats.
uz
2010-08-08 20:38:15 +00:00
14e567aed2Another format change: Record the output file and offset for each segment written to the output. Make this information available in the debug info file.
uz
2010-08-08 20:32:13 +00:00
6272c93556Allow access to segment information.
uz
2010-08-08 15:43:13 +00:00
34c938e7acMore collection usage. This has also removed the need for the MemListNode structure.
uz
2010-08-08 15:35:56 +00:00
fedb265a22More collection usage.
uz
2010-08-08 15:23:22 +00:00
ad140bede4Replace more linked lists by collections.
uz
2010-08-08 15:13:53 +00:00
026724482fUse collections instead of linked lists to simplify things.
uz
2010-08-08 15:03:58 +00:00
103af67585Change handling of errno/seterrno to new behaviour. By Maciej Witkowiak.
uz
2010-08-07 18:22:37 +00:00
3eed1bffbcSome more test and example code.
uz
2010-08-07 13:40:16 +00:00
d645a797cbImproved info API.
uz
2010-08-07 13:25:09 +00:00
8c39874daaSome changes in debug info generation.
uz
2010-08-07 12:46:12 +00:00
1dbb84bceeAdd some code that tries to skip unknown keywords that may have been added by later version of the debug info.
uz
2010-08-06 09:17:43 +00:00
3d2cb567dcThe stuff will not link with Watcom because of vsnprintf, but a makefile is still useful for testing.
uz
2010-08-05 21:16:07 +00:00
1877af89ccSeveral fixes detected when using another C compiler.
uz
2010-08-05 21:15:00 +00:00
4b1c5e4157First working version with complete API for line information.
uz
2010-08-05 21:00:36 +00:00
12e7cc010dOutput version information into the debug file.
uz
2010-08-05 20:41:27 +00:00
0807da74bdCorrected indentation - no code change.
uz
2010-08-05 19:34:25 +00:00
b8e7feb788Fix relocation of line infos.
uz
2010-08-05 19:34:03 +00:00
abda26a309Don't output multiple code ranges per line, since this is harder to parse.
uz
2010-08-03 19:00:14 +00:00
54e22eb53cFirst version of a module that reads debug files generated by ld65.
uz
2010-08-03 18:46:50 +00:00
e046ecbcf2Be sure to generate line info for all segments.
uz
2010-08-01 13:52:06 +00:00
83e5252785Changed a comment
uz
2010-08-01 13:48:32 +00:00
031ae666e3Fixed an error in the macro version of HasObjData().
uz
2010-07-31 12:37:14 +00:00
b2321ebdf7Fixed an error: Some of the collections weren't initialized.
uz
2010-07-31 09:44:25 +00:00
23b867b7a4Handle file position information for fragments differently: Instead of handling them separately (which has historic reasons), generate real line info information. This means that line info for the assembler source will be part of the debug info file.
uz
2010-07-30 22:44:09 +00:00
f308a3c4d1Use collections in the object file structure instead of managing the items manually.
uz
2010-07-30 20:58:51 +00:00
5bffbc98ffAdded a new function CollGrow.
uz
2010-07-30 20:58:09 +00:00
40eabefe89Added documentation for the od65 utility.
uz
2010-07-30 19:33:53 +00:00
7d506c84c9Make .DEF, .REF and friends also work with cheap local symbols.
uz
2010-07-26 17:28:34 +00:00
07680d2376Read number of total blocks from ProDOS 8 volume directory header - and fall back on the constant 280 only for non-ProDOS 8 disks.
ol.sc
2010-07-17 19:16:25 +00:00
f15910e5f1Made use of the new common __directerrno and __mappederrno function.
ol.sc
2010-07-17 19:13:07 +00:00
b9740f52e2Saved one byte.
ol.sc
2010-07-17 19:07:57 +00:00
3a88860d8bRemoved the rs232 module from the makefile, since it will no longer compile.
uz
2010-07-15 20:58:46 +00:00
477b77f528Another minor improvement in compares.
uz
2010-07-11 21:53:48 +00:00
ce886f4c5eRemoved the header files for the rs232 API since it has been replaced by loadable serial drivers and serial.h a long time ago.
uz
2010-07-11 16:43:31 +00:00
2bb2d97ab0Fixed and improved the code for compares. Before, compares of chars to a constant where sometimes passed down to the code generator in a way that caused wrong code to be generated.
uz
2010-07-11 16:11:45 +00:00
4cd7eec075This is part of adding getopt() lately but wasn't checked in together with the other changes.
uz
2010-07-10 20:49:06 +00:00
a89231ece7Fixed an error: A function wasn't converted to a void pointer automatically by the compiler.
uz
2010-07-10 20:48:05 +00:00
abbfaef2aaA negative token count for .LEFT was incorrectly adjusted to 1, not to 0.
uz
2010-07-10 12:32:05 +00:00
3afb4e4e94Added getopt. The implementation is based on a public domain source, originally written by Henry Spencer and supplied by Harald Arnesen.
uz
2010-07-10 11:28:02 +00:00
4f6fe595b8Added a paragraph about Oricutron, an Emulator for the Oric Atmos. By Stefan Haubenthal.
uz
2010-07-10 10:34:12 +00:00
54cd9a17ddRemoved useless high byte loads of the error code.
uz
2010-07-08 15:00:15 +00:00
f1d7044b7cAdjusted parameter handling to match prototype.
ol.sc
2010-07-07 22:28:14 +00:00
e673b53850adapt to new oserror/errno handling
cpg
2010-07-06 22:43:19 +00:00
ae98a6db40Fixed sources to use the new __mappederrno and __directerrno functions, and made handling of _oserror and errno consistent.
uz
2010-06-26 11:28:44 +00:00
672cffa1d2Corrected the list of macros in the macro packages.
uz
2010-06-26 11:19:32 +00:00
148a6569e5Clear __oserror on success.
ol.sc
2010-06-15 21:44:18 +00:00
155c5629a9Make use of the new common __directerrno and __mappederrno function.
ol.sc
2010-06-15 20:38:05 +00:00
8806c31e4aNo need to import __oserror.
uz
2010-06-10 19:14:42 +00:00
131a5cad09Renamed oserrcheck to __mappederrno. Added an additional function named __directerrno and moved both to errno.s. Changed several sources to use these functions. Needs testing.
uz
2010-06-10 18:10:53 +00:00
e0c00d2054Fix errno/oserror handling.
uz
2010-06-04 10:50:58 +00:00
a08b75c02bRemove __maperrno symbol, since the function is no longer used and has been deleted.
uz
2010-06-04 10:30:55 +00:00
a86d23a63cChange calling convention of cbm_save() to __fastcall__.
uz
2010-06-04 10:25:53 +00:00
ba0562c9f0Save two bytes by a small code change.
uz
2010-06-04 10:15:44 +00:00
23901280c9Save a few bytes and cycles.
uz
2010-06-04 09:38:35 +00:00
75fbc5c5e3Removed maperrno() since it's no longer needed.
uz
2010-06-03 21:40:32 +00:00
aa8f817182Use _seterrno instead of assigning to _errno.
uz
2010-06-03 21:37:27 +00:00
eac4711731No need to import __seterror, since this is done in errno.inc.
uz
2010-06-03 21:33:55 +00:00
49723f6a64Use _errno, not errno.
uz
2010-06-03 21:31:06 +00:00
a7f392a96fCall __seterrno and save a few bytes.
uz
2010-06-03 21:29:28 +00:00
ef4a2e667dCall __seterrno instead of assigning to _errno and save a few bytes.
uz
2010-06-03 21:26:52 +00:00
30920f0709Removed the prototype for _seterrno, since it is now provided in errno.h.
uz
2010-06-03 21:25:17 +00:00
8194408abcSet errno if the stream is in error state. Small code size improvements. Fixed comment regarding _oserror.
uz
2010-06-03 21:22:51 +00:00
b97986b124Rewrote parts of the code for better error handling. fileno must set errno and return -1 in case of an invalid argument, which it didn't until now.
uz
2010-06-03 21:20:10 +00:00
1dabfda734Added messages for EBADF (new) and EUNKNOWN (missing).
uz
2010-06-03 21:16:07 +00:00
d877aac5f4Added EBADF since this is required for fileno().
uz
2010-06-03 21:12:23 +00:00
d7aaac7e71Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.
uz
2010-06-03 21:10:22 +00:00
a9ba343e1bUse _seterrno instead of assigning to _errno to make the code shorter.
uz
2010-06-03 20:46:08 +00:00
1b71d3fe42Rewrote the code to make it somewhat shorter.
uz
2010-06-03 20:43:30 +00:00
eacc7052ebCall _seterror instead of assigning to _errno to make the code somewhat shorter. Fixed a comment regarding oserror/errno.
uz
2010-06-03 20:27:59 +00:00
00222e41abFixed a comment regarding errno/oserror.
uz
2010-06-03 20:26:33 +00:00
63b629b801Call _seterrno instead of assigning to _errno to make the code shorter.
uz
2010-06-03 20:21:23 +00:00
1ab221bd05Don't include errno.h since it is not needed.
uz
2010-06-03 20:20:01 +00:00
c3922228a9Use _seterrno to make the code shorter.
uz
2010-06-03 20:18:43 +00:00
e9310f8ec1Change the prototype for _seterrno to return a char, since the function will always return zero in A and this can be used in C code to make the code shorter.
uz
2010-06-03 20:18:19 +00:00
0d8727ea33Added a prototype for _seterrno().
uz
2010-06-03 20:12:55 +00:00
bc2fb18752Removed the mapping function called previously by the errno macro. It will be replaced by a mapping in the functions itself.
uz
2010-06-03 20:03:52 +00:00
9d5d94196fAdjusted Makefile and remarks to the recent cc65 improvements.
ol.sc
2010-06-03 16:47:15 +00:00