1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-02 15:29:33 +00:00
Commit Graph

4773 Commits

Author SHA1 Message Date
uz
d8feaf2e54 Started to add spans.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5148 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 21:17:45 +00:00
uz
ebfa369319 Postprocess module infos. Add new index for modules sorted by name.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5147 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 20:44:20 +00:00
uz
060b297a78 Renamed DoneCollection -> CollDone and InitCollection -> CollInit.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5146 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 14:20:45 +00:00
uz
9d2538f12b Postprocess file infos. New function cc65_sourceinfo_bymodule.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5145 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 14:08:18 +00:00
uz
d9a35e9652 Prepare the collection for storage of ids.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5144 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 13:32:31 +00:00
uz
07f795fa78 Postprocess scope infos. New function cc65_scope_bymodule.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5143 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 10:36:37 +00:00
uz
3e42ba1a87 Bump the version number. Fix line number counting. Resolve ids to pointers in
several places.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5142 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-10 10:13:31 +00:00
uz
604f74c5c2 Added processing of modules, libraries, etc. Many other changes for new debug
info format.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5141 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-09 19:11:38 +00:00
uz
36c99befcc Output ids for line infos to the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5140 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-09 18:48:02 +00:00
uz
a3ae02b5b7 Use symbolic names when writing the scope type to the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5139 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-08 21:07:45 +00:00
uz
067f6d2e27 Much more work reading the new information.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5138 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-08 21:07:13 +00:00
uz
e9be9e3d63 Use "lib" instead of "library".
git-svn-id: svn://svn.cc65.org/cc65/trunk@5137 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-08 17:18:52 +00:00
uz
07cd427110 Output information about the item counts in the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5136 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-08 17:15:18 +00:00
uz
57e39e0e04 Preparations for the new format.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5135 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 21:08:45 +00:00
uz
472c21d7ff Some improvements for spans.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5134 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 20:01:40 +00:00
uz
bf8f23d5f4 Handle scopes with a label correctly. Add the label to the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5133 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 18:48:08 +00:00
uz
8f969056e1 Handle scopes with a label correctly.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5132 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 18:47:38 +00:00
uz
49b66ebd2b New flag bit that tells if a scope has a label.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5131 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 18:47:21 +00:00
uz
af8fbf8d62 Fox scopes that have a label (= .PROC), write the label to the debug
information.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5130 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 18:46:56 +00:00
uz
c19491035b Bump the version number of the generated debug file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5129 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 17:59:33 +00:00
uz
17e9b81045 Debug info: Make file info ids continous. Output modules that use a file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5128 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 13:15:24 +00:00
uz
af3a5e6e15 Output library information to the debug file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5127 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-07 11:33:28 +00:00
uz
b418fdf985 Removed the Next pointer which is no longer necessary.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5126 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-06 12:32:10 +00:00
uz
6172979c1c Manage the segments in a collection.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5125 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 13:59:26 +00:00
uz
9f02a29dfa Use a collection to manage the segments.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5124 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 13:45:33 +00:00
uz
a17d11cba8 Central management of the debug info base ids.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5123 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 13:09:13 +00:00
uz
a87d8ec233 More aliases for attribute names.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5122 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 12:34:08 +00:00
uz
f912ea4010 Introduce some shorter aliases for attribute names in the debug info file.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5121 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 12:33:21 +00:00
uz
317676d868 Output module info.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5120 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-05 12:09:11 +00:00
uz
3593eb2869 More work on scope suport.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5119 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 18:47:01 +00:00
uz
d1efe1af90 Adjust code to C99 regarding the main function: Not returning anything in a
main function with an int return type is identical to returning zero.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5118 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 17:18:06 +00:00
uz
2f75733e43 Rearrange debug info output. Add scopes to the debug info.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5117 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 15:58:54 +00:00
uz
871873b1ac Read Sections before Scopes, because the later will reference the former.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5116 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 13:20:45 +00:00
uz
04a0dafe25 Use the Span structure also for scopes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5115 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 13:14:26 +00:00
uz
e9d9ba92b0 The spans do now contain the size of a span, no longer the end offset.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5114 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 12:51:44 +00:00
uz
31d2fff060 Rename SegRange to span. Write out the size instead of the end offset so we
can save some bytes in the object file.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5113 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 12:49:59 +00:00
uz
f04d65a662 Generalized the CodeRange structure used for line infos and renamed it to Span.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5112 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-04 12:31:37 +00:00
uz
f0eaf6b1b4 Fixed an off-by-one error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5111 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-03 19:37:53 +00:00
uz
3cf41ed2e7 Fix a problem reported by Christopher Pow: cc65_lineinfo_byname doesn't handle
multiple line infos for one line correctly. It did only return one randomly
chosen line info instead of all.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5110 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-03 18:39:08 +00:00
uz
ca0877adb6 Fixed an error in the special purpose allocator in expr.c.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5109 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-02 16:46:47 +00:00
uz
1df46aed11 Fixed a memory leak.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5108 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-02 16:16:37 +00:00
uz
7d69135896 Fixed another memory leak.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5107 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-02 15:00:33 +00:00
uz
c25694f54d Fixed another memory leak.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5106 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-02 14:49:33 +00:00
uz
417a57fabd New tgi_settextdir() function.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5105 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-01 21:00:51 +00:00
uz
03b147e71e Fixed a bug (Greg King).
git-svn-id: svn://svn.cc65.org/cc65/trunk@5104 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-01 20:59:33 +00:00
uz
1f95085ffe Read scopes from the object files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5103 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-01 20:54:42 +00:00
uz
67692e51f1 Fixed a rather large memory leak.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5102 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-08-01 20:49:59 +00:00
uz
edca940a86 Declaration of tgi_settextdir() added.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5101 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-31 22:17:21 +00:00
uz
2b32c14661 Preparations for adding scopes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5100 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-31 21:32:46 +00:00
uz
0dbe4454a5 There is no longer a scope type SCOPE_PROC.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5099 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-31 17:11:10 +00:00