Commit graph

187 commits

Author SHA1 Message Date
Ryan Kurtz
6439d61594 Merge remote-tracking branch 'origin/GP-4193_dev747368_dwarfline_source_info--SQUASHED' 2024-03-28 12:36:22 -04:00
dev747368
e3b75fe9f7 GP-4193 DWARFLine support, remove DWARF Line analyzer, misc fixes
Refactor the old DWARF line code used by the line analyzer.
Fix v4 location list reading when there was an empty range entry.
Defer applying the ELF program address fixup value until a DWARF address(held in a long) is converted into a Ghidra address.
Fix v5 location list reading - add missing DW_LLE_default_location impl.
2024-03-27 16:45:20 -04:00
ghidra1
2dff876f0f GP-4341 Force retained checkout if file is in-use during checkin or add-to-version-control. Deprecated upgrade concept during checkin. Revised manner in which file open for update is updated following a version control operation (perform DBHandle update). 2024-03-20 17:43:49 -04:00
dev747368
f17ebb78ab GP-2798 initial DWARF5 support
Adds support for simple DWARF5 debug info.  Split .dwo not supported.

Uses bookmarks to tag problematic issues instead of log messages during import.
2024-03-11 16:26:06 +00:00
ghizard
f1495cb6a1 GP-4246 - PDB improve types processing - better queuing mechanism, remove placeholder types, delay resolve 2024-02-27 11:17:35 -05:00
ghidra1
5dc7347eee GP-4340 Improved datatype conflict name handling 2024-02-23 16:24:22 -05:00
Ryan Kurtz
bc24351495 Merge branch 'GP-4034_thisita_fixOffcutScript--SQUASHED' (Closes #5928) 2024-02-07 13:31:55 -05:00
Thisita
ea990915b4 remove old error bookmark
refactor to more correct API call
fix address range bug
refactor find already set length to default search and short-circuit
Correct error message to be more appropriate for all cases
Only suggest properly aligned offsets
Don't consider the first address
bugfix, iterator can be null. Check all references.
Implement fixed suggestions to avoid getNextInstruction and ClearCmd
usage.
switch to isFlow test
make easier to read
implement flow check
implement script message
strict variable rename suggestion
fix location of check and address mark
typo/grammar catch
Simplify as requested
add length check and fix a few iteration bugs
suggest offcut length if override doesn't already exist
comment is overcomplicated for a previous explanation
this comment was no longer true
explain this as what is actually happening now
other summary fixups
add suggestion
Length override action should disassemble the resulting instructions
remove info alert that isn't needed since there is a bookmark
remove unused check
Only init once per run
refactor to flow the code
Don't let a failed fix block the rest of the script iteration
Replace print with Msg statements
Provide more thorough error reporting
imply to user that work is still being done
apply language suggestion
check alignment and fix max address bug
restrict this again
remove unused memory handle
Refactor to use declared types
Simplify disassembly and computations
pass offcutAddress instead of recomputing some other one.
decrease level of specificity and disqualify.
apply suggestion
apply indentation suggestion
correct ref type filter to correct
Apply simplification
fix max address issue.
implemented suggestion with flow follow
update description to include location fallback info
Simplify bookmark
Add missing final
2024-02-07 13:27:23 -05:00
Ryan Kurtz
c3acc2abad GP-4294: Fixing typo 2024-02-07 11:25:07 -05:00
Ryan Kurtz
80d1031d01 Merge remote-tracking branch 'origin/patch'
Conflicts:
	Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/help/ProcessorListPlugin.java
	Ghidra/Framework/Gui/src/main/java/ghidra/util/HTMLUtilities.java
2024-02-07 11:18:36 -05:00
dragonmacher
359faba77a GP-4294 - Fixed exception looking for extensions when running headlessly in fat jar mode 2024-02-06 17:01:02 -05:00
dev747368
3fe17e182a GP-4205 refactor DWARF DIE reading
Change how DWARF DIE records are read, eliminate need for
per-CU paging or the need for the DIE import limit or for
DIE pre-load for cross-CU references.
2024-02-01 20:56:48 +00:00
Dan
e7458ed08b GP-4185: Make Assembler more extensible 2024-01-08 11:23:32 -05:00
Dan
b382017ccb GP-4014: Context and disasembly re-flow after patching instruction. 2024-01-04 14:04:42 -05:00
ghidragon
514c04906b GP-4040 added ability for scripts to open programs that need to be upgraded, with ask options 2023-12-05 18:38:24 -05:00
ghidragon
9cd2666799 GP-3992 fixed various issues/bugs related to the new askValues() script method 2023-11-06 15:40:38 -05:00
ghidragon
e71d5f8faf GP-3924 Added askValues() method to GhidraScript. Allows users to enter
multiple values with one dialog.
2023-10-27 19:04:26 -04:00
ghidra1
6412631236 GP-3949 Added FixOldSTVariableStorageScript 2023-10-20 16:00:43 -04:00
ghidra1
3eb642885c GP-3697 Added delayed ProjectFileManager disposal in support of URL use
and opening linked project files and renamed ProjectFileData to
DefaultProjectData.
2023-08-11 12:53:29 -04:00
Ryan Kurtz
9d3d32a8c4 Merge remote-tracking branch 'origin/patch' 2023-08-03 06:03:45 -04:00
ghidra1
8073611e66 GP-0 Added FindDataTypeConflictCauseScript 2023-08-02 14:47:34 -04:00
Ryan Kurtz
40a888599f Merge remote-tracking branch 'origin/patch' 2023-06-30 13:04:11 -04:00
Dan
899772973a GP-3295: Add askPassword to GhidraScript API. 2023-06-29 17:05:47 -04:00
Xiaoyin Liu
02598e4c5d
Close FileDataTypeManager in CompareGDTs.java
`firstArchive` and `secondArchive` are not closed, which causes errors the next time you run this script with the same GDTs, because the two GDT files are still in use.
2023-05-28 19:09:43 +04:00
emteere
ebe495d99a GP-0 Fixed updated archive category path name case to agree with old
archive category path names
2023-05-02 18:51:33 +00:00
Ryan Kurtz
7fa3389119 GP-2974: Fixing warnings 2023-05-01 07:23:48 -04:00
Ryan Kurtz
5b6a902c8c Merge remote-tracking branch 'origin/GP-3077_emteere_CrossedConstants--SQUASHED' 2023-05-01 06:25:01 -04:00
Ryan Kurtz
aa893f6721 Merge remote-tracking branch 'origin/GP-2114_dev747368_Golang--SQUASHED' 2023-05-01 06:19:11 -04:00
dev747368
87c16f9cd0 GP-2114 golang import / analyzer 2023-05-01 02:02:53 -04:00
emteere
02248d2251 GP-3077 Added constant tracking through stack for stack parameters, fixed issues with values getting crossed moving in and out of memory, added prototype param type creation, added setting for restricting parameters to know pointers to handle harvard architectures and pointertypedefs 2023-05-01 01:57:56 -04:00
emteere
ccee80e8ad GP-3371 Fixed parsing of forward declared enums and certain typedefs declared and used within a function body 2023-05-01 01:39:32 -04:00
ghidra1
2cdaebf0c3 Merge branch 'GP-2308_1633_ghidra1_FunctionDefinitionCallingConventions'
(Closes #4537, Closes #4898, Closes #3723, Closes #3267)
2023-04-20 15:41:45 -04:00
emteere
08b20d5d21 GP-2308 Refactored parsing dialog adding includepaths and Achitecture,
handle noreturn tags
2023-04-20 14:01:41 -04:00
ghidra1
a4776892bd GP-1633/GP-2308 Added ProgramArchitecture to datatype managers.
Refactored ProjectDataTypeManager to extend StandaloneDataTypeManager.
Added actions to datatype tree to allow setting archive architecture.
Added use of storage translators when switching architectures.  Allow
FunctionDefinition to accept arbitrary calling convention
names and many other misc changes.
2023-04-20 14:01:39 -04:00
Ryan Kurtz
12619a28ae GP-2602: Mach-O external libraries are now linked during analysis.
FixupELFExternalSymbolsScript.java has been replaced with ExternalSymbolResolverAnalyzer.java.
2023-04-19 05:58:42 -04:00
Ryan Kurtz
e8d4a45fd9 Merge remote-tracking branch 'origin/GP-3098_ghidra007_associate_libs_script--SQUASHED' 2023-04-04 11:35:37 -04:00
ghidra007
48d0032eb5 GP-3098 Created script to associate libraries in PE programs given the libraries exist in project. 2023-04-04 15:10:10 +00:00
Ryan Kurtz
034b46fee5 Merge remote-tracking branch 'origin/patch' 2023-04-04 07:43:19 -04:00
emteere
8c71f9d7fa GP-3215 removed wchar_t as a keyword and convert any wchar_t typedef to
built-in wchar_t
2023-04-03 19:54:45 +00:00
ghidra1
14b78c1307 GP-1633 added new DataUtilities.createData method without stackPointers
param
2023-03-23 16:17:58 -04:00
foralost
ab6c2d2c1d Removing redunant 'or $STR1' from condition 2023-02-25 17:35:17 +01:00
Ryan Kurtz
1574262722 GP-2877: Refactoring Loader and AutoImporter to better accommodate loading more than one thing 2023-02-14 15:33:06 -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
ghidra1
5a422c4502 GP-2509 GP-2644 Improved Ghidra URL support. Added support for Ghidra
URL linked files and folders within project.
2022-11-22 12:47:17 -05:00
dragonmacher
0971c0088c GP-1981 - Theming - Base Module 2022-11-15 14:55:28 -05:00
dragonmacher
4eb3d8fd86 GP-9181 - Theming - Base Module 2022-11-15 14:53:43 -05:00
Xiaoyin Liu
ed423a4b88
Fix icmpapi.h parsing error in example GDT script
According to the Microsoft document, icmpapi.h must be included after iphlpapi.h. If you change the order of the inclusion of icmpapi.h, the C Parser will have no problem parsing icmpapi.h.
2022-11-11 06:02:38 +04:00
emteere
ffae7232cb GP-1979_emteere better error reporting and handling of newer cspec idioms NoReturn, anonymous function arrays and parameters, #pragma use, Thread_local, Alignas, allow '#' comment out filename, added parsing scripts 2022-10-12 21:50:02 -04:00
Ryan Kurtz
8a71ab8a99 GP-0: Resolving conflict in ReloadSleighLanguage.java 2022-06-13 11:50:15 -04:00
James
a540cbe0f0 GP-2072 added CallotherCensusScript 2022-05-26 16:05:48 +00:00