Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalidate cache on Ghidra server restart #91

Closed
unknown321 opened this issue Feb 29, 2024 · 0 comments
Closed

Invalidate cache on Ghidra server restart #91

unknown321 opened this issue Feb 29, 2024 · 0 comments

Comments

@unknown321
Copy link
Contributor

Symbols provided by Ghidra are locked to active file during server configuration.

Reproducing:

  1. Open two files
  2. Start server on binary 1
  3. Start server on binary 2, same settings as bin 1
  4. Get symbols, notice, that symbols are from binary 1. Expected symbols from binary 2.
# start bin1 server
$ curl -s http://127.0.0.1:3662/RPC2 -d "<methodCall><methodName>d2d.elf_info</methodName><params></params></methodCall>" | grep -oP "<name>name</name><value>(.*?)</value>"`
<name>name</name><value>binary 1</value>
# start bin2 server
$ curl -s http://127.0.0.1:3662/RPC2 -d "<methodCall><methodName>d2d.elf_info</methodName><params></params></methodCall>" | grep -oP "<name>name</name><value>(.*?)</value>"`
<name>name</name><value>binary 1</value>

As for now this is fixed only by restarting ghidra.

This problem rises when you need to switch between library and binary during debugging session.

unknown321 added a commit to unknown321/decomp2dbg that referenced this issue Feb 29, 2024
unknown321 added a commit to unknown321/decomp2dbg that referenced this issue Feb 29, 2024
unknown321 added a commit to unknown321/decomp2dbg that referenced this issue Feb 29, 2024
@mahaloz mahaloz closed this as completed Mar 1, 2024
mahaloz pushed a commit that referenced this issue Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants