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

Can't figure out how to start a program in ghidra and gdb #55

Closed
andrew-ma opened this issue Nov 11, 2020 · 5 comments
Closed

Can't figure out how to start a program in ghidra and gdb #55

andrew-ma opened this issue Nov 11, 2020 · 5 comments

Comments

@andrew-ma
Copy link

i'm using linux
image

I cannot get the client program to not say n/a in ghidra

@andrew-ma
Copy link
Author

also in the console I'm getting this
[<] new_dbg: dbg connect - Linux #1 SMP Debian 5.8.10-1kali1 (2020-09-22) x86_64 dialect: gdb [>] programActivated: exatlon_v1 local addr: 00400000, remote: unknown

@bootleg
Copy link
Owner

bootleg commented Nov 11, 2020

Hi @andrew-ma

it seems your program is simply not running in gdb thus sync can not get local base address and context. Check below:

gdb$ info inferiors
  Num  Description       Executable
* 1    <null>            /bin/ls

gdb$ starti
Starting program: /bin/ls

Program stopped.
-----------------------------------------------------------------------------------------------------------------------[code]
=> 0x7ffff7dd6090 <_start>:     mov    rdi,rsp
-----------------------------------------------------------------------------------------------------------------------------
0x00007ffff7dd6090 in _start () from /lib64/ld-linux-x86-64.so.2

gdb$ info inferiors
  Num  Description       Executable
* 1    process 419       /bin/ls

After starti (or continue, run etc.) sync should be good when gdb break in.

@andrew-ma
Copy link
Author

andrew-ma commented Nov 11, 2020

Thank you it worked with starti. I tried it again with run, and it didn't work for run

@bootleg
Copy link
Owner

bootleg commented Nov 11, 2020

hey o/

if you use run without a bp or a way to break in, the program will go full speed until its end and you'll find it not running again (already ended)

@bootleg
Copy link
Owner

bootleg commented Jan 5, 2021

Closing as it seems inactive. Please re-open of necessary.

@bootleg bootleg closed this as completed Jan 5, 2021
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