31 Commits

Author SHA1 Message Date
JesusFreke@JesusFreke.com
f730ada982 Misc cleanup
git-svn-id: https://smali.googlecode.com/svn/trunk@202 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 08:22:27 +00:00
JesusFreke@JesusFreke.com
ed91584410 Misc cleanup
git-svn-id: https://smali.googlecode.com/svn/trunk@201 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 08:03:39 +00:00
JesusFreke@JesusFreke.com
b797aa581a Removed TODO
git-svn-id: https://smali.googlecode.com/svn/trunk@200 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 07:58:47 +00:00
JesusFreke@JesusFreke.com
64a2d18b6f Tidied up the place method
git-svn-id: https://smali.googlecode.com/svn/trunk@199 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 06:40:02 +00:00
JesusFreke@JesusFreke.com
b1a620218e Fixed some issues regarding how the header and map section were being writter
git-svn-id: https://smali.googlecode.com/svn/trunk@198 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 06:21:45 +00:00
JesusFreke@JesusFreke.com
87160fc91d Fixed an issue with the 35c format, where it returned the wrong value for the 4th register
git-svn-id: https://smali.googlecode.com/svn/trunk@197 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 06:19:27 +00:00
JesusFreke@JesusFreke.com
9685e92ac0 Fixed an issue where all catch items in a method were using the same set of handlers, instead of using the correct set of handlers for each region
git-svn-id: https://smali.googlecode.com/svn/trunk@194 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-21 02:43:03 +00:00
JesusFreke@JesusFreke.com
a950eddc2a Added a flag and logic to preserve the signed leb128 encoded registers in the debug info, for dumping purposes
git-svn-id: https://smali.googlecode.com/svn/trunk@182 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 21:34:51 +00:00
JesusFreke@JesusFreke.com
4517100574 removed unneeded values in the ItemType enumeration
git-svn-id: https://smali.googlecode.com/svn/trunk@181 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:30:57 +00:00
JesusFreke@JesusFreke.com
8c568e2b37 - added logic to set the offset and index of items when reading them in, in order to support an immediate write without having to call place (for dumping)
- moved the logic in MapItem that sorts the items for the various sections from writeTo() to place(), so that the order of items aren't changed when doing a read then immediate write (for dumping)
- changed the logic in makeBlankMapItem to get the map values from the MapValue enum, instead of hard coded values
- added logic to the OffsettedSection so that it sorts the item list by offset after reading it in, so that they items are in the same order as in the file it just read in (for dumping)

git-svn-id: https://smali.googlecode.com/svn/trunk@180 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:30:12 +00:00
JesusFreke@JesusFreke.com
1401347994 removed superfluous methods
git-svn-id: https://smali.googlecode.com/svn/trunk@179 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:24:21 +00:00
JesusFreke@JesusFreke.com
1af01ba107 changed the logic that reads in the sections to read them in a specific order, because some sections depend on others being read in first (i.e. several things depend on the string data)
git-svn-id: https://smali.googlecode.com/svn/trunk@178 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:23:12 +00:00
JesusFreke@JesusFreke.com
4ec387882d changed the logic that generates escaped strings to always use the /uxxxx format, instead of the 3 digital octal escape
git-svn-id: https://smali.googlecode.com/svn/trunk@177 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:14:15 +00:00
JesusFreke@JesusFreke.com
78314beef2 - Fixed an issue with debug info decoding, when it encountered an "end local" instruction for a register/local that hadn't been declared previously by a .local directive. This assumably happens when "ending" a parameter, in order to reuse that register for something else
git-svn-id: https://smali.googlecode.com/svn/trunk@176 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:13:10 +00:00
JesusFreke@JesusFreke.com
8bb1d77b66 - Fixed an issue when decoding the index for instructions that contain an indexed item references
git-svn-id: https://smali.googlecode.com/svn/trunk@175 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 20:02:58 +00:00
JesusFreke@JesusFreke.com
57b919fdf2 Fixed issue when reading an array-data pseudo instruction whose data ended in the middle of a 2-byte word
git-svn-id: https://smali.googlecode.com/svn/trunk@173 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-20 19:57:29 +00:00
JesusFreke@JesusFreke.com
3c9013f9c0 Added support for parameter names and annotations
git-svn-id: https://smali.googlecode.com/svn/trunk@172 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-19 05:40:35 +00:00
JesusFreke@JesusFreke.com
a0850c8d2a Added a utility class to decode debug information
git-svn-id: https://smali.googlecode.com/svn/trunk@170 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-19 03:52:08 +00:00
JesusFreke@JesusFreke.com
b3fde8be30 Added various acccessors
git-svn-id: https://smali.googlecode.com/svn/trunk@169 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-19 03:42:12 +00:00
JesusFreke@JesusFreke.com
dc4bcbe0c0 Fixed issue decoding signed ints and shorts
git-svn-id: https://smali.googlecode.com/svn/trunk@167 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-19 00:38:14 +00:00
JesusFreke@JesusFreke.com
fa07a1972e Implemented class and method annotations
git-svn-id: https://smali.googlecode.com/svn/trunk@166 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 06:52:02 +00:00
JesusFreke@JesusFreke.com
1080561460 Implemented annotation encoded values
git-svn-id: https://smali.googlecode.com/svn/trunk@165 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 04:19:05 +00:00
JesusFreke@JesusFreke.com
5f50a1a8b3 Cleaned up imports
git-svn-id: https://smali.googlecode.com/svn/trunk@161 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 01:56:53 +00:00
JesusFreke@JesusFreke.com
8543d8b626 Cleaned up imports
git-svn-id: https://smali.googlecode.com/svn/trunk@160 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 01:53:21 +00:00
JesusFreke@JesusFreke.com
5118f3aa29 - Added accessors for encoded arrays
- Fixes a couple of issues with the way static field initializers were being handled


git-svn-id: https://smali.googlecode.com/svn/trunk@156 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 01:11:30 +00:00
JesusFreke@JesusFreke.com
ec90e0d1a4 Fixed the way default values are created for encoded values
git-svn-id: https://smali.googlecode.com/svn/trunk@155 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-18 01:07:37 +00:00
JesusFreke@JesusFreke.com
2fb16c8f4b Fixed an issue with alignment for the pseudo opcodes, and a test to exercise the issue
git-svn-id: https://smali.googlecode.com/svn/trunk@153 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-16 03:31:44 +00:00
JesusFreke@JesusFreke.com
acf2ddb67e Fixed an issue when reading a nop
git-svn-id: https://smali.googlecode.com/svn/trunk@152 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-16 03:27:01 +00:00
JesusFreke@JesusFreke.com
119ddb0805 Added misc accessors, and a utility method to return an escaped string
git-svn-id: https://smali.googlecode.com/svn/trunk@147 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-14 01:21:43 +00:00
JesusFreke@JesusFreke.com
8735bff7e1 Added some accessors to CodeItem
git-svn-id: https://smali.googlecode.com/svn/trunk@145 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-13 05:55:06 +00:00
JesusFreke@JesusFreke.com
57b5423285 Refactoring project
git-svn-id: https://smali.googlecode.com/svn/trunk@138 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-12 01:40:03 +00:00