-
Notifications
You must be signed in to change notification settings - Fork 85
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
"go to address" in the assembly window doesn't work #255
Comments
Hi @kevinferrare, So I worked some more on the problem of the view not changing when you enter an address. The bug was it was expecting the address in the current view. Now it refreshes the assembly around the address you give it. However, I have a question. In your work flow, do you just have a list of valid addresses somewhere? How do you know what address to enter? I found a pure assembly test program that had a "main" (start address of '_start') and it called a assembly function called 'square'. Two separate ".s" source file. Quite simple. I used the "objdump" program to give me the addresses.
Seer works when I find "0x08048054" or "0x08048067". They live into two different ".s" files. But my question is this what you do? gdb, if it has the proper debug information, can be given an address and it will figure out the start and end address of the function. In this mode, if you give it an address that is not in the middle of a function, it will report an error. This is what Seer does too. The address you're trying to "go to" needs to be in the middle of some function. So I suppose you compile your ".s" files with "-g"? gdb has another mode where you give it some address and it will give you the assembly at that point plus N number of instructions. There's is no notion of a "start function" or "end function" in this mode. Anyway, give this branch a kick and let me know. Many thanks. https://github.com/epasveer/seer/tree/255-go-to-address-in-the-assembly-window-doesnt-work |
Hello and thanks for checking that! My workflow is quite different from that, I connect GDB to an emulator so there is no source code, just raw memory with mixed data and machine code.
I just recompiled your branch, and I confirm it is working, I can browse and disassemble code by entering manually an address or an expression like $pc+3 |
Cool. Thanks. Sounds like I can close this task? |
Yes, it's working fine now thanks 😉 |
Cool. Many thanks. |
From #127, the user reports this:
This is more than likely because the address given in not in the current page of assembly. If so, Seer should get a new page of assembly around the address.
The text was updated successfully, but these errors were encountered: