Skip to content

hope to obtain sourceFile and sourceLine through the Ghidra API, similar to idaapi.get_source_linnum() and idaapi.get_sourcefile(). #7246

Discussion options

You must be logged in to vote

We've recently added this capability. It's in the master branch but not yet in an official release. You can get this information from a program's SourceFileManager (currentProgram.getSourceFileManager() in a script). The DWARF and PDB analyzers have been updated to record this information by default.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dev747368
Comment options

Answer selected by funny-mud-peee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #7245 on December 03, 2024 14:13.