229 Commits

Author SHA1 Message Date
Ryan Kurtz 3a479c9f7e GP-6347: SourceLanguage modules and new extension points 2026-05-17 19:48:41 -04:00
Ryan Kurtz d3d7fecf45 Merge remote-tracking branch 'origin/Ghidra_12.1' 2026-04-28 05:57:39 -04:00
emteere 7d2f1efe4c GP-6690 Minor fix to define in script to parse UEFI header files to
handle newer UEFI header files
2026-04-24 19:10:01 +00:00
Ryan Kurtz 50860ea102 Merge remote-tracking branch 'origin/GP-5838_ghidragander_calling-convention-junit--SQUASHED' 2026-04-22 10:32:00 -04:00
ghidraGander 1a83dfcd1b GP-5838: Added CSpec tests to catch regressions in analysis based on CSpec prototype configurations. 2026-04-22 13:51:04 +00:00
Ryan Kurtz d8acc65470 Merge remote-tracking branch 'origin/GP-6434_dev747368_rust_elf_binary_id' 2026-03-17 05:04:07 -04:00
Xiaoyin Liu 42b1608693 Remove -DSTRSAFE_LIB and STRSAFE_LIB_IMPL
Remove -DSTRSAFE_LIB and -DSTRSAFE_LIB_IMPL from C Parser
profiles and from GDT parser scripts. If they are defined, functions
like StringCbCopyW() will not be included in the archive.
2026-03-11 21:07:55 +00:00
dev747368 1c59d2e56d GP-6434 improve finding rust signature in Elf binaries
check the .comment section first before searching for byte signature.
2026-03-10 21:18:39 +00:00
Dan 05ffbfc488 GP-6397: Fix JIT bugs, esp., found by converting deob scripts. 2026-02-27 16:36:05 +00:00
Ryan Kurtz 0ef0f5c0ad Merge remote-tracking branch 'origin/GP-6369_Dan_portEmulatorTests--SQUASHED' 2026-02-24 13:27:11 -05:00
Dan 66c9edc9bf GP-6369: Convert remaining uses of EmulatorHelper to PcodeEmulator. 2026-02-24 18:25:50 +00:00
dev747368 7dff240fe6 GP-5977 refactor DWARF DIE serialization into its own class
This will allow reading DIEs from multiple files.
2026-02-11 00:11:35 +00:00
nblog e0ba8f4740 fix(gdb.html): correct typo in package directory path.
fix(CreateExampleGDTArchiveScript.java): unify the MSVC version and remove the misspelled SDK version.
2025-12-31 10:18:57 +08:00
xiaoyinl 15482627d8 Correct winsock.h headers in CreateExampleGDTArchiveScript.java
There is a compile error if you include both winsock.h and winsock2.h. It says you should only include winsock2.h.
2025-10-18 11:07:42 +08:00
dev747368 fe5ea1c91a GP-5924 DWARF debuginfod support 2025-10-06 19:37:41 +00:00
ghidra1 a3bd708160 GP-6008 Changed SourceType examination to base upon priorty instead of specific value equality when appropriate 2025-09-24 09:16:04 -04:00
emteere 47acbe98bb GP-5763 Check for INT3 after calls as a non-returning indicator. Also only consider data refereces from the same function. 2025-09-12 20:05:16 +00:00
d-millar f5572ede99 GP-5566: first/last? changes for ghidra
GP-5566: fix for J

GP-5566: minor fixes

GP-5566: icons decl proper

GP-5566: minor tweaks

GP-5566: post-review

GP-5566: minor

GP-5566: mo better monitor logic

GP-5566: minor fix
2025-09-08 15:36:25 +00:00
Ryan Kurtz b25e7c12a1 Merge remote-tracking branch 'origin/GP-5470_dev747368_golang_typeinfo_1_24_1_25' 2025-08-28 12:23:12 -04:00
dev747368 86a525aef0 GP-5470 Golang json snapshot data, go1.24, go1.25, swissmap.
Remove usage of golang*.gdt for bootstrap type info.  Instead all types
are reconstituted from the info in the .json files.

Json data now omits more values that are empty.

Json data now has more consistent fully specified type names.

Remove option to create bootstrap gdt files.

Normalize 'Go' name usage where possible without changing previous
saved properties.

Handle swissmap typename changes.
2025-08-28 15:12:21 +00:00
James c3c09f2f17 GP-5792 parse DWARF .debug_macro sections 2025-08-25 16:55:45 +00:00
Ryan Kurtz 32782037a9 Merge remote-tracking branch
'origin/GP-5834_dev747368_dwarfline_sourcefile_iterate' (Closes #8329)
2025-07-21 06:11:19 -04:00
Ryan Kurtz fde33a5821 Merge remote-tracking branch 'origin/patch' 2025-07-18 06:19:25 -04:00
dev747368 20c8d97c85 GP-5834 fix DWARF file / line issue
remove access to dwarfline file count because it encourages callers to
try to iterate via index, which is not something they should do.
2025-07-17 18:30:59 +00:00
ghidra1 53552616ec Merge branch 'GP-3551_ghidra1_InternalProjectLinks' 2025-07-09 13:34:56 -04:00
ghidra1 1aa7b089c0 GP-3551 Added support for internal project link-files with improved link
support within project data tree. Linked-folders are now supported.
Addressed link-support issues related to various actions.  Revised
link-file storage to use smaller non-DB storage. This change does impact
the Ghidra Server.
2025-07-09 13:34:22 -04:00
emteere 4723729d80 GP-5804 Set SymbolicPropogator to record register begin/end state in
basic constructor. Better document recordBeginEndState flag.
2025-07-03 17:49:53 +00:00
Ryan Kurtz a8655234a4 Merge remote-tracking branch
'origin/GP-5545-5600_ryanmkurtz_autoimporter--SQUASHED' (Closes #8097)
2025-07-01 08:27:37 -04:00
Ryan Kurtz d3aed2c4b3 GP-5545_5600: ProgramLoader and more flexible loader args 2025-07-01 08:18:36 -04:00
James cd549a0805 GP-5773 DWARF: add all source files 2025-06-25 19:34:00 +00:00
Ryan Kurtz ab849887aa Merge remote-tracking branch
'origin/GP-3952-ghidra_blue-update-script-categories--SQUASHED'
2025-06-13 12:12:47 -04:00
ghidra_blue 7db176b2bd GP-3952 Updated the script categories to simplify and reduce the number of folders. 2025-06-13 15:00:15 +00:00
Ryan Kurtz 5ac69075e3 GP-0: Fixing deprecated calls to Conv 2025-06-13 09:03:48 -04:00
Ryan Kurtz c224c5d44e Merge remote-tracking branch 'origin/GP-5737_ryanmkurtz_script-output--SQUASHED' 2025-06-09 12:20:46 -04:00
Ryan Kurtz 1add5a9bce GP-5737: Fixing GhidraScript PrintWriter 2025-06-09 12:14:58 -04:00
ghidra1 f981f43fad Merge remote-tracking branch 'origin/Ghidra_11.4' 2025-06-06 18:50:01 -04:00
ghidra1 8c441250f5 GP-5742 Cleanup preferred CommentType enum use. Changed SARIF data component comment JSON serialization from int to String. 2025-06-06 17:58:07 -04:00
Ryan Kurtz 684177702e GP-0: Fixing deprecated comment API warnings 2025-06-02 09:54:19 -04:00
Ryan Kurtz d3131e319a GP-0: Fixing unused import warnings 2025-05-30 07:07:43 -04:00
Ryan Kurtz 0cbf33d074 GP-0: Fixing raw type warnings 2025-05-29 11:07:48 -04:00
Ryan Kurtz a6cd5b5dbc GP-0: Fixing @Override warnings 2025-05-29 11:07:44 -04:00
dev747368 c70de2b590 GP-2941 better defined string iterator
Don't iterate arrays that can't contain a string.
When iterating a struct, only look at defined fields.
Should address issues #8134, #5726, #3498
2025-05-15 16:20:27 -04:00
Ryan Kurtz 1fb758e5ae Merge remote-tracking branch 'origin/patch' 2025-04-03 13:18:59 -04:00
James 861c0c93d4 GP-5561 correct dwarf source file path parsing error 2025-04-03 14:12:45 +00:00
dev747368 2d3922d41f GP-5455 golang interface method calling and decl
Improve how golang interface methods are handled.

Model the 'vtable' (runtime.itab) for a golang interface so each method
declared by the interface gets a funcdef that specifies the method's
params.
2025-03-17 20:07:45 +00:00
dev747368 36c6c8ef77 GP-2432 golang api snapshot, generics, closures, gcwritebarrier
Apply golang runtime function signatures from info stored in json api
snapshot files.

The api snapshot files are created by a custom go helper program that
uses the go compiler parser to parse the go toolchain source tree and
writes the discovered function and type info into a json file.

The go-api-parser helper program is based off of work contributed by
github user monoidic via issue #6367.

Updates generic functions to take a generic dictionary RTTI
parameter (mostly to allow correct assignment of other parameters).

Updates closure functions to take a closure context parameter.  Closure
contexts are passed via a register that is not involved in normal
parameter passing.

Tweaks the signature of gcWriteBarrier functions so that they don't mess
up decompilation of functions that use them.
2025-03-07 16:44:48 +00:00
ghidra007 2e26a0db35 GP-5451 removed old GCCRTTIAnalysisScript because
RecoverClassesFromRTTIScript has the latest Gcc class recovery
mechanisms in it.
2025-03-04 19:26:26 +00:00
Ryan Kurtz d23e67a088 GP-0: Cleaning up certain types of javadoc errors 2025-02-03 06:13:50 -05:00
Ryan Kurtz ffe3a46892 Merge remote-tracking branch 'origin/Ghidra_11.3' 2025-01-27 06:17:07 -05:00
emteere 4ca5007bd0 GP-5025_emteere Tuned comparing of Enums and pathnames in GDT's 2025-01-26 18:28:20 +00:00