Commit Graph

1044 Commits

Author SHA1 Message Date
4dbfae78e9 Rename literalTools to LiteralTools
Just for evancharlton
2011-07-20 20:13:38 -04:00
3c4f8094a2 Fix possible issue(?) in IntegerRenderer.writeUnsignedTo 2011-07-15 13:32:36 -04:00
74c14ffcca Rename the printLongAsHex and printIntAsHex methods in IndentingWriter for clarity 2011-07-15 13:32:36 -04:00
f119fc6db5 Fix the printIntAsDec method in Indenting writer to correctly handle negative values 2011-07-15 13:32:27 -04:00
fadcc2dcb9 Ignore the link section in the header
git-svn-id: https://smali.googlecode.com/svn/trunk@812 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-07-15 09:22:43 +00:00
baa030c201 Correctly escape any special characters in the value of the .source directive
git-svn-id: https://smali.googlecode.com/svn/trunk@811 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-06-03 01:40:23 +00:00
a564a1733b Don't forget to check if synthetic accessor comments are disabled
git-svn-id: https://smali.googlecode.com/svn/trunk@810 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-05-20 06:37:17 +00:00
2f376953b4 Add helper comments for synthetic member accessors
This adds a comment before a synthetic member accessor is called, which
mentions what member in the parent is being accessed

Kudos to jasta for suggesting this feature!

git-svn-id: https://smali.googlecode.com/svn/trunk@809 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-05-20 06:16:22 +00:00
7ed253b78b Fix bug in ByteArrayInput.readLong
Thanks to deuns.martinez for reporting this fix

git-svn-id: https://smali.googlecode.com/svn/trunk@808 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-05-15 17:06:57 +00:00
817f2e0a76 Fix invalid cast when deodexing an execute inline instruction on an odex file from eclair or earlier
git-svn-id: https://smali.googlecode.com/svn/trunk@807 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-01-02 18:39:15 +00:00
9d5f9610bc Bump the version to 1.2.7
Also, add a -dev suffix that will be manually removed when doing the official release

git-svn-id: https://smali.googlecode.com/svn/trunk@806 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2011-01-02 18:39:12 +00:00
0d54c0b93c Minor whitespace fixes
git-svn-id: https://smali.googlecode.com/svn/trunk@804 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-23 19:58:27 +00:00
d659582b6e Fix typo
git-svn-id: https://smali.googlecode.com/svn/trunk@803 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-23 19:58:23 +00:00
27dd1a5d97 Add support in smali for the new odex instructions
git-svn-id: https://smali.googlecode.com/svn/trunk@802 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-23 19:58:17 +00:00
66c6e90512 add missing iput/sput instructions in the InstructionTest lexer test
git-svn-id: https://smali.googlecode.com/svn/trunk@801 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-23 19:57:59 +00:00
1ad2f503bb The fastIndexOf inline method should be a direct method, not virtual
git-svn-id: https://smali.googlecode.com/svn/trunk@800 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-22 01:49:08 +00:00
d4417d7269 add support for the new odex opcodes for volatile field access that were added in gingerbread
git-svn-id: https://smali.googlecode.com/svn/trunk@799 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-21 17:33:30 +00:00
595cdad3d6 Add support for the new inline methods added in gingerbread
git-svn-id: https://smali.googlecode.com/svn/trunk@798 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-21 17:33:25 +00:00
b9a19bf3f1 Remove deodexerant and related functionality
git-svn-id: https://smali.googlecode.com/svn/trunk@797 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-21 17:33:20 +00:00
b3ba356d94 Update version to 1.2.6
git-svn-id: https://smali.googlecode.com/svn/trunk@796 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-12-21 17:33:14 +00:00
2c486b4ee7 Add the high and low surrogate characters as valid characters for identifiers
The dex format allows any supplemental character to be used for identifiers,
but jflex doesn't directly support supplemental characters. However, we can
tell jflex to accept a high and low surrogate character pair instead, which
has the same effect as directly accepting any supplemental character

git-svn-id: https://smali.googlecode.com/svn/trunk@795 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-11-18 04:57:05 +00:00
83ef98462a Fix an issue where smali doesn't recognize field/class names that look like an integer
git-svn-id: https://smali.googlecode.com/svn/trunk@794 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-11-04 16:48:27 +00:00
922c533809 Update version to 1.2.5
git-svn-id: https://smali.googlecode.com/svn/trunk@792 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-10-31 20:20:59 +00:00
879b119b8d Remove the jflex dependency in the smali pom file
git-svn-id: https://smali.googlecode.com/svn/trunk@791 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-10-28 17:23:35 +00:00
b9f9e85d84 Append a # to the end of class names that happen to be reserved file names on windows
git-svn-id: https://smali.googlecode.com/svn/trunk@790 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-09-25 16:04:33 +00:00
8ec2ab7602 Add static helper method to TypeListItem
git-svn-id: https://smali.googlecode.com/svn/trunk@789 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-17 13:28:57 +00:00
4b72225e9d Move the IndentingWriter class to the util project
git-svn-id: https://smali.googlecode.com/svn/trunk@788 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-17 13:27:58 +00:00
bbf4dbba61 Rename fileNameHandler to ClassFileNameHandler and move it to the utils project
git-svn-id: https://smali.googlecode.com/svn/trunk@787 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-17 13:27:25 +00:00
525ad75b9d Fix @Override issues when compiling with java 1.5
git-svn-id: https://smali.googlecode.com/svn/trunk@786 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-17 13:27:06 +00:00
a6e5671a62 Add support for class names that differ only by case on case insensitive file systems
git-svn-id: https://smali.googlecode.com/svn/trunk@784 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-02 00:58:12 +00:00
bcc4d2d9e1 misc whitespace changes
git-svn-id: https://smali.googlecode.com/svn/trunk@783 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-02 00:58:03 +00:00
4b06cfbe7f Add top level NOTICE file with copyright notices
git-svn-id: https://smali.googlecode.com/svn/trunk@782 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-02 00:57:56 +00:00
128e8279c3 Add modification notices to Apache licensed files
git-svn-id: https://smali.googlecode.com/svn/trunk@781 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-08-02 00:57:45 +00:00
854c577425 Fix an issue when assembling a file with blank annotation sets
git-svn-id: https://smali.googlecode.com/svn/trunk@776 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-07-29 03:10:18 +00:00
58536878c4 Allow "null" as a valid identifier
git-svn-id: https://smali.googlecode.com/svn/trunk@766 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-07-14 00:29:10 +00:00
f4d1fb8aba bump version to 1.2.4
git-svn-id: https://smali.googlecode.com/svn/trunk@765 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-07-14 00:29:06 +00:00
8913c59363 Fixed issue 37, where the -b option to baksmali wasn't disabling all debug directives
git-svn-id: https://smali.googlecode.com/svn/trunk@764 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-26 11:18:41 +00:00
9c79173818 Incorporate the null check from the previous commit into the containing if statement
git-svn-id: https://smali.googlecode.com/svn/trunk@763 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-23 13:31:57 +00:00
ecc73ab3f5 Fix an NPE when there is a <clinit> with no codeItem
git-svn-id: https://smali.googlecode.com/svn/trunk@762 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-23 13:29:50 +00:00
a53606120a Add support for the new execute-inline/range odexed instruction in smali
git-svn-id: https://smali.googlecode.com/svn/trunk@760 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:35:03 +00:00
5922b466bf Add support for a new -T debugging option that prints out all the tokens
git-svn-id: https://smali.googlecode.com/svn/trunk@759 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:56 +00:00
73d1b5d3cb Print out an error message for invalid tokens in the lexer, but add a way to suppress the errors
Suppress the lexer errors for unit tests

git-svn-id: https://smali.googlecode.com/svn/trunk@758 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:49 +00:00
a377d50495 Add a method to retrieve the message for InvalidToken
git-svn-id: https://smali.googlecode.com/svn/trunk@757 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:43 +00:00
3da1ca27bd Improve the error reporting in the parser
git-svn-id: https://smali.googlecode.com/svn/trunk@756 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:36 +00:00
1c42f47ada Add support for reporting of the source file name from the lexer, to be used for error messages
git-svn-id: https://smali.googlecode.com/svn/trunk@755 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:29 +00:00
9ac6fa5048 Add a utility method for constructing a relative path
git-svn-id: https://smali.googlecode.com/svn/trunk@754 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:20 +00:00
52ff693c8f Check for lexer errors
git-svn-id: https://smali.googlecode.com/svn/trunk@753 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:09 +00:00
1fd0276b78 Fix an issue parsing arrays of primitive types when parsing param lists
git-svn-id: https://smali.googlecode.com/svn/trunk@752 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:34:00 +00:00
f65966da4f Add a (somewhat) real smali file as a lexer test
git-svn-id: https://smali.googlecode.com/svn/trunk@751 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:33:52 +00:00
22532f9dd9 Don't print the expected/actual tokens during the lexer tests
git-svn-id: https://smali.googlecode.com/svn/trunk@750 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2010-06-13 20:33:47 +00:00