Commit graph

1285 commits

Author SHA1 Message Date
caheckman
94aca176ef GP-3065 Special parsing for mixed format attribute 2023-01-27 19:51:46 -05:00
Johannes Obermayr
c839c0f9a3 Fix build error after 8b442ea
> Task :Decompiler:compileSleighLinux_x86_64ExecutableSleighCpp
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc: In member function ???double FloatFormat::getHostFloat(uintb, floatclass*) const???:
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:30: error: ???numeric_limits??? is not a member of ???std???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                              ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:45: error: expected primary-expression before ???double???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                                             ^~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:23: error: ???numeric_limits??? is not a member of ???std???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                       ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:38: error: expected primary-expression before ???double???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                                      ^~~~~~

> Task :Decompiler:compileDecompileLinux_x86_64ExecutableDecompileCpp
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc: In member function ???double FloatFormat::getHostFloat(uintb, floatclass*) const???:
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:30: error: ???numeric_limits??? is not a member of ???std???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                              ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:245:45: error: expected primary-expression before ???double???
  245 |       double infinity = std::numeric_limits<double>::infinity();
      |                                             ^~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:23: error: ???numeric_limits??? is not a member of ???std???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                       ^~~~~~~~~~~~~~
/tmp/ghidra/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc:250:38: error: expected primary-expression before ???double???
  250 |     double nan = std::numeric_limits<double>::quiet_NaN();
      |                                      ^~~~~~
2023-01-21 23:16:56 +01:00
caheckman
52d97329b9 GP-2793 Better support for metatype="ptr" pentry tags 2023-01-20 17:37:21 -05:00
Ryan Kurtz
c2522c81c6 Merge remote-tracking branch 'origin/GP-2985_UsingNamespace'
(Closes #4703)
2023-01-20 13:02:40 -05:00
Ryan Kurtz
1b9f90e827 Merge remote-tracking branch 'origin/patch'
Conflicts:
	Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/app/plugin/processors/sleigh/SleighLanguageVolatilityTest.java
2023-01-20 12:31:22 -05:00
Ryan Kurtz
43a82b4aa2 GP-2606: Fixing test compilation error. Formatting code. 2023-01-20 06:30:50 -05:00
ghidra1
07a35dd91a Merge remote-tracking branch 'origin/patch' 2023-01-19 08:41:23 -05:00
Ryan Kurtz
e12837fe7b Merge remote-tracking branch
'origin/GP-3020-dragonmacher-fill-in-structure-size-limit' into patch
(Closes #4879)
2023-01-19 06:34:05 -05:00
Ryan Kurtz
c0397036e4 Merge remote-tracking branch 'origin/GP-2606_ghidragander_volatile_symbol_pspec--SQUASHED' into patch 2023-01-19 06:18:16 -05:00
caheckman
8b442eac0b GP-2985 Remove "using namespace" directives 2023-01-18 15:35:17 -05:00
ghidraGander
dce57a7bf7 GP-2606
Fixed typo in AddressLabelInfo.
Improved implementation and error handling of AddressLabelInfo.
GP-2606
Refactored the package of 'AddressLabelInfo' to beghidra.program.model.lang. Removed the source and namespace variablesfrom AddressLabelInfo since they would always be global and IMPORTED.Removed a number of constructors to simplify AddressLabelInfo. Improvederror handing in SleighLanguage class.
GP-2606
Added javadocs to and throw exceptions from AddressLabelInfo constructors and removed extra constructors that were no longer needed. Added exception handling to AbsractProgramLoader and SleighLanguage for thrown exceptions. Made some variables in SleighLanguage private and removed an unnecessary null check.
GP-2606
Prepared test to help investigate volatility interplay settings.
GP-2606
Updated per review comments. SleighLanguage will parse pspec files andthen apply symbol element settings for volatility afterward. Simplifiedtests for SleighLanguage and the Decompiler.
GP-2606
Made updates based on review feedback. Address label info holds the endaddress of the label. Sleigh language will resolve symbol mutabilityafter parsing the pspec file such that the order of elements in the filewill not be a factor. Rearranged tests in preparation for improvement.Added a constructor to the ProgramBuilder class so that custom definedpspec files may be used in the tests.
GP-2606
Updated SpecXmlUtils decodeBoolean method to call decodeNullableBooleanfirst, however if the result is null, to return false instead of null.
GP-2606
Changed size of addressLabelInfo to sizeInBytes and added comment toisVolatile that specifies what null, false, or true mean in context.Incorporated improvements per review comments to SleighLanguage.
GP-2606
Added tests for the sleigh language volatility changes and thedecompiler itself.
GP-2606:
Updated SleighLanguage to alter 'volatileAddresses' based on the symbolelements and their attributes in pspec files. Added size and volatilevariables to AddressLabelInfo class. Added Boolean parser method to theSpecXmlUtils.java file.
GP-2606: Added optional volatile boolean and optional size integer attributes to the symbol element of processor specification (pspec) files.
2023-01-18 14:04:50 -05:00
dragonmacher
fc6fb6e4ae GP-3020 - Updated the Fill in Structure action to take into account the
structure size
2023-01-17 14:24:04 -05:00
Ryan Kurtz
cb30d5e844 Merge remote-tracking branch 'origin/patch'
Conflicts:
	Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/SaveProgramAction.java
2023-01-17 06:08:18 -05:00
Ryan Kurtz
991f84686c Merge remote-tracking branch 'origin/GP-2999_dev747368_fix_ampersand_in_convert_menu--SQUASHED' into patch 2023-01-17 05:50:05 -05:00
dev747368
b06e982049 GP-2999 fix display of '&' in convert popup menu and other menu items 2023-01-13 15:17:03 -05:00
Ryan Kurtz
3433f49cdc Merge remote-tracking branch
'origin/GP-2983_caheckman_PR-3998_ekilmer_fix-decompiler-test-cli-parsing'
(Closes #3998)
2023-01-13 13:07:41 -05:00
Ryan Kurtz
539d5b2aad Merge remote-tracking branch 'origin/patch' 2023-01-13 12:32:34 -05:00
caheckman
583847b761 Don't filter JumpAssist from switch analysis 2023-01-13 11:21:10 -05:00
caheckman
4b2a78b1fb GP-3014 - Add deduping to DynamicHash gatherFirstLevelVars 2023-01-13 11:19:00 -05:00
Ryan Kurtz
bf5dfa6170 Merge remote-tracking branch 'origin/GP-2834_Dan_hoverVarVals--SQUASHED'
(#4732)
2023-01-12 18:57:13 -05:00
Dan
df9a1e2756 GP-2834: Add Unwind Stack action, hovers for dynamic variable values. 2023-01-12 13:38:17 -05:00
dragonmacher
761346d888 GP-3001 - Decompiler - Added Double and Float convert actions 2023-01-11 10:11:53 -05:00
Ryan Kurtz
4ff113f92c Merge remote-tracking branch 'origin/patch'
Conflicts:
	Ghidra/Features/Decompiler/src/decompile/cpp/funcdata.hh
2023-01-09 10:33:18 -05:00
Ryan Kurtz
2ee1d80215 Merge remote-tracking branch 'origin/GP-2956_SubpieceZext' 2023-01-06 08:18:24 -05:00
Ryan Kurtz
1656ecf471 Merge remote-tracking branch 'origin/GP-2785_TokenFieldBounds' 2023-01-06 08:13:34 -05:00
Ryan Kurtz
1e8c575671 Merge remote-tracking branch 'origin/GP-2866_SwitchAnalysisFilter' into patch 2023-01-06 08:05:11 -05:00
caheckman
735c6d3a8b Removed unused include directive 2023-01-05 12:25:04 -05:00
Eric Kilmer
cd09ea0c4a Fixes CLI argument parsing
Accept more than one option for specifying test paths.

Support non-zero exit code when tests fail

Return a non-zero exit code (saturated to max value 255, even if more
than 255 tests fail) indicating number of failed tests. This is helpful
when running in a script (like in CI) to detect failures instead of
detecting failures through manual visual inspection of output text.
2023-01-05 12:22:13 -05:00
caheckman
6f49dc939e GP-2980 Analysis for unrolled switch guards 2023-01-04 18:15:10 -05:00
Ryan Kurtz
f26bf98d21 Merge remote-tracking branch 'origin/GP-2560_SwitchRedundant'
(Closes #4558)
2022-12-23 10:54:29 -05:00
caheckman
04431f0ad2 Precision check in RuleSubZext 2022-12-22 19:00:12 -05:00
caheckman
2345c1289b GP-2956 Adjustment to RuleSubExtComm 2022-12-22 16:39:26 -05:00
ghidra1
552eb9dd61 GP-232 correct use of EXTERNAL block string 2022-12-22 14:38:02 -05:00
caheckman
11abb716c4 GP-2560 Don't reprocess Funcdata for multiple jumptables 2022-12-21 15:32:10 -05:00
Ryan Kurtz
19a63531c3 Merge remote-tracking branch 'origin/GP-2767_BreakoutStructureCONCAT' 2022-12-20 13:23:16 -05:00
caheckman
0ee824f017 GP-2961 Clear calculated flags on restart 2022-12-19 16:13:59 -05:00
caheckman
535ac7c08d GP-2767 Structured pieces 2022-12-16 18:05:20 -05:00
dragonmacher
63d6063fa0 GP-2910 - Fixed missing theme definitions; removed unused theme
definitions; fixed module theme dependencies
2022-12-14 17:53:29 -05:00
ghidragon
1a99e2518d GP-2933 adding more error checking for theme.properties files 2022-12-12 14:40:19 -05:00
dragonmacher
e3aad672ce GP-2894 - Icon Cleanup - Moved icons from Generic into Gui; Deleted
shared icons not in the Help module
2022-12-12 13:39:30 -05:00
Ryan Kurtz
93d3b41d01 Merge remote-tracking branch
'origin/GP-2913_ghidracadabra_PR-4595_kkaempf_improve_sleigh_error_reporting'
(Closes #4595)
2022-12-08 14:18:51 -05:00
Ryan Kurtz
93df150b21 Merge remote-tracking branch 'origin/patch' 2022-12-08 13:58:37 -05:00
Ryan Kurtz
a861a858bb Merge remote-tracking branch 'origin/GP-2927_SmallNegativeEquates' into
patch (Closes #3747)
2022-12-08 13:54:02 -05:00
caheckman
34a4a13812 GP-2927 Creating small negative equates from decompiler window 2022-12-07 16:36:20 -05:00
Ryan Kurtz
a04f7fbb03 Merge remote-tracking branch 'origin/GP-2845_PartialMerging' 2022-12-07 02:04:02 -05:00
Ryan Kurtz
70489f8f1c Merge remote-tracking branch 'origin/patch' 2022-12-07 02:01:14 -05:00
Ryan Kurtz
9b49843a70 Merge remote-tracking branch 'origin/GP-2859_SymbolsSameVariable' into patch 2022-12-07 01:57:36 -05:00
James
93d3808232 GP-2913 addressing code review comments 2022-12-06 21:34:28 +00:00
caheckman
e0a5cf1720 GP-2785 Match up token field bounds checking between compilers 2022-12-06 15:35:23 -05:00
caheckman
722c17f9f2 GP-2845 Merging overlapping variables 2022-12-05 18:54:27 -05:00