Commit Graph

  • 8f03c4e9cf Move 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
  • 5625977188 Add 'extern "C"' so the module may be used from C++ sources. uz 2010-08-09 15:55:49 +00:00
  • 3f7fc55c7e Added some more checks and initialization. uz 2010-08-09 15:52:23 +00:00
  • b936617eb4 Fixed a C99ism. uz 2010-08-09 05:47:22 +00:00
  • 99fd891126 Major 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
  • 14e567aed2 Another 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
  • 6272c93556 Allow access to segment information. uz 2010-08-08 15:43:13 +00:00
  • 34c938e7ac More collection usage. This has also removed the need for the MemListNode structure. uz 2010-08-08 15:35:56 +00:00
  • fedb265a22 More collection usage. uz 2010-08-08 15:23:22 +00:00
  • ad140bede4 Replace more linked lists by collections. uz 2010-08-08 15:13:53 +00:00
  • 026724482f Use collections instead of linked lists to simplify things. uz 2010-08-08 15:03:58 +00:00
  • 103af67585 Change handling of errno/seterrno to new behaviour. By Maciej Witkowiak. uz 2010-08-07 18:22:37 +00:00
  • 3eed1bffbc Some more test and example code. uz 2010-08-07 13:40:16 +00:00
  • d645a797cb Improved info API. uz 2010-08-07 13:25:09 +00:00
  • 8c39874daa Some changes in debug info generation. uz 2010-08-07 12:46:12 +00:00
  • 1dbb84bcee Add 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
  • 3d2cb567dc The 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
  • 1877af89cc Several fixes detected when using another C compiler. uz 2010-08-05 21:15:00 +00:00
  • 4b1c5e4157 First working version with complete API for line information. uz 2010-08-05 21:00:36 +00:00
  • 12e7cc010d Output version information into the debug file. uz 2010-08-05 20:41:27 +00:00
  • 0807da74bd Corrected indentation - no code change. uz 2010-08-05 19:34:25 +00:00
  • b8e7feb788 Fix relocation of line infos. uz 2010-08-05 19:34:03 +00:00
  • abda26a309 Don't output multiple code ranges per line, since this is harder to parse. uz 2010-08-03 19:00:14 +00:00
  • 54e22eb53c First version of a module that reads debug files generated by ld65. uz 2010-08-03 18:46:50 +00:00
  • e046ecbcf2 Be sure to generate line info for all segments. uz 2010-08-01 13:52:06 +00:00
  • 83e5252785 Changed a comment uz 2010-08-01 13:48:32 +00:00
  • 031ae666e3 Fixed an error in the macro version of HasObjData(). uz 2010-07-31 12:37:14 +00:00
  • b2321ebdf7 Fixed an error: Some of the collections weren't initialized. uz 2010-07-31 09:44:25 +00:00
  • 23b867b7a4 Handle 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
  • f308a3c4d1 Use collections in the object file structure instead of managing the items manually. uz 2010-07-30 20:58:51 +00:00
  • 5bffbc98ff Added a new function CollGrow. uz 2010-07-30 20:58:09 +00:00
  • 40eabefe89 Added documentation for the od65 utility. uz 2010-07-30 19:33:53 +00:00
  • 7d506c84c9 Make .DEF, .REF and friends also work with cheap local symbols. uz 2010-07-26 17:28:34 +00:00
  • 38d50cce0b Minor formatting change. ol.sc 2010-07-20 12:14:12 +00:00
  • 432f8492ec Maybe this looks better when rendered to HTML ? ol.sc 2010-07-18 10:37:55 +00:00
  • 56fea8788f Fixed typo. ol.sc 2010-07-18 10:22:55 +00:00
  • 07680d2376 Read 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
  • f15910e5f1 Made use of the new common __directerrno and __mappederrno function. ol.sc 2010-07-17 19:13:07 +00:00
  • b1dab3a37d Use MLI error names from ProDOS 8 Technical Reference Manual Quick Reference Card (and not Section 4.8 !). ol.sc 2010-07-17 19:11:51 +00:00
  • b9740f52e2 Saved one byte. ol.sc 2010-07-17 19:07:57 +00:00
  • 3a88860d8b Removed the rs232 module from the makefile, since it will no longer compile. uz 2010-07-15 20:58:46 +00:00
  • 477b77f528 Another minor improvement in compares. uz 2010-07-11 21:53:48 +00:00
  • ce886f4c5e Removed 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
  • 2bb2d97ab0 Fixed 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
  • 4cd7eec075 This 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
  • a89231ece7 Fixed an error: A function wasn't converted to a void pointer automatically by the compiler. uz 2010-07-10 20:48:05 +00:00
  • abbfaef2aa A negative token count for .LEFT was incorrectly adjusted to 1, not to 0. uz 2010-07-10 12:32:05 +00:00
  • 3afb4e4e94 Added 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
  • 4f6fe595b8 Added a paragraph about Oricutron, an Emulator for the Oric Atmos. By Stefan Haubenthal. uz 2010-07-10 10:34:12 +00:00
  • 54cd9a17dd Removed useless high byte loads of the error code. uz 2010-07-08 15:00:15 +00:00
  • f1d7044b7c Adjusted parameter handling to match prototype. ol.sc 2010-07-07 22:28:14 +00:00
  • e673b53850 adapt to new oserror/errno handling cpg 2010-07-06 22:43:19 +00:00
  • ae98a6db40 Fixed 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
  • 672cffa1d2 Corrected the list of macros in the macro packages. uz 2010-06-26 11:19:32 +00:00
  • ea3f4f34c3 misc updates cpg 2010-06-26 00:20:44 +00:00
  • c992a3596b adapt to new segments; some other text changes cpg 2010-06-25 23:47:37 +00:00
  • db71d5e9e4 abort build if $(AR) reports an error cpg 2010-06-25 22:16:43 +00:00
  • 7b8c996b63 Whitespace only change. ol.sc 2010-06-17 19:13:43 +00:00
  • a99d0ceee7 dio_open(): - Use ProDOS 8 unit number as parameter. - Don't access the drive, just check its presence. ol.sc 2010-06-16 21:36:50 +00:00
  • 51d4a5bf79 Use MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical Note #21). ol.sc 2010-06-16 21:21:01 +00:00
  • a0359724ff - Use ProDOS 8 unit number as parameter. - Don't access the drive, just check its presence. ol.sc 2010-06-16 21:19:47 +00:00
  • ab068d43e3 Use MLI error names from ProDOS 8 Technical Reference Manual (and ProDOS 8 Technical Note #21). ol.sc 2010-06-16 21:16:14 +00:00
  • 148a6569e5 Clear __oserror on success. ol.sc 2010-06-15 21:44:18 +00:00
  • 155c5629a9 Make use of the new common __directerrno and __mappederrno function. ol.sc 2010-06-15 20:38:05 +00:00
  • 8806c31e4a No need to import __oserror. uz 2010-06-10 19:14:42 +00:00
  • 131a5cad09 Renamed 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
  • 5741b6e7d3 Minor comment style adjustment. ol.sc 2010-06-07 19:20:10 +00:00
  • 0bdc045f65 Removed a comment that was no longer correct. uz 2010-06-06 14:31:24 +00:00
  • 2273b7575c DIO functions always set _oserror. ol.sc 2010-06-04 21:41:22 +00:00
  • 30cd6871be Harmonized comment style. ol.sc 2010-06-04 21:32:55 +00:00
  • 1568376fbf Adjustment to recent change in ca65 relative include path handling. ol.sc 2010-06-04 20:58:40 +00:00
  • c8c604f353 Minor optimization. ol.sc 2010-06-04 20:52:52 +00:00
  • e0c00d2054 Fix errno/oserror handling. uz 2010-06-04 10:50:58 +00:00
  • a08b75c02b Remove __maperrno symbol, since the function is no longer used and has been deleted. uz 2010-06-04 10:30:55 +00:00
  • a86d23a63c Change calling convention of cbm_save() to __fastcall__. uz 2010-06-04 10:25:53 +00:00
  • ba0562c9f0 Save two bytes by a small code change. uz 2010-06-04 10:15:44 +00:00
  • 23901280c9 Save a few bytes and cycles. uz 2010-06-04 09:38:35 +00:00
  • 75fbc5c5e3 Removed maperrno() since it's no longer needed. uz 2010-06-03 21:40:32 +00:00
  • aa8f817182 Use _seterrno instead of assigning to _errno. uz 2010-06-03 21:37:27 +00:00
  • eac4711731 No need to import __seterror, since this is done in errno.inc. uz 2010-06-03 21:33:55 +00:00
  • 49723f6a64 Use _errno, not errno. uz 2010-06-03 21:31:06 +00:00
  • a7f392a96f Call __seterrno and save a few bytes. uz 2010-06-03 21:29:28 +00:00
  • ef4a2e667d Call __seterrno instead of assigning to _errno and save a few bytes. uz 2010-06-03 21:26:52 +00:00
  • 30920f0709 Removed the prototype for _seterrno, since it is now provided in errno.h. uz 2010-06-03 21:25:17 +00:00
  • 8194408abc Set 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
  • b97986b124 Rewrote 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
  • 1dabfda734 Added messages for EBADF (new) and EUNKNOWN (missing). uz 2010-06-03 21:16:07 +00:00
  • d877aac5f4 Added EBADF since this is required for fileno(). uz 2010-06-03 21:12:23 +00:00
  • d7aaac7e71 Return EUNKNOWN instead of EINVAL if the error code cannot be mapped. uz 2010-06-03 21:10:22 +00:00
  • a9ba343e1b Use _seterrno instead of assigning to _errno to make the code shorter. uz 2010-06-03 20:46:08 +00:00
  • 1b71d3fe42 Rewrote the code to make it somewhat shorter. uz 2010-06-03 20:43:30 +00:00
  • eacc7052eb Call _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
  • 00222e41ab Fixed a comment regarding errno/oserror. uz 2010-06-03 20:26:33 +00:00
  • 63b629b801 Call _seterrno instead of assigning to _errno to make the code shorter. uz 2010-06-03 20:21:23 +00:00
  • 1ab221bd05 Don't include errno.h since it is not needed. uz 2010-06-03 20:20:01 +00:00
  • c3922228a9 Use _seterrno to make the code shorter. uz 2010-06-03 20:18:43 +00:00
  • e9310f8ec1 Change 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
  • 0d8727ea33 Added a prototype for _seterrno(). uz 2010-06-03 20:12:55 +00:00
  • bc2fb18752 Removed 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
  • 9d5d94196f Adjusted Makefile and remarks to the recent cc65 improvements. ol.sc 2010-06-03 16:47:15 +00:00