flat assembler
Message board for the users of flat assembler.
Index
> Linux > Question about debuggers for Linux |
Author |
|
revolution 07 Jun 2018, 08:41
If your code is 32-bit then all pushes can be 2 bytes or 4 bytes. In 64-bit mode all pushes can be either 2 bytes or 8 bytes (never 4 bytes).
So I guess your code is 32-bit, FDBG is displaying the stack as 64-bit values, and each push is 4 bytes. |
|||
07 Jun 2018, 08:41 |
|
marywilliam 07 Jun 2018, 21:22
revolution wrote: If your code is 32-bit then all pushes can be 2 bytes or 4 bytes. In 64-bit mode all pushes can be either 2 bytes or 8 bytes (never 4 bytes). I'm not sure I understand. If it is displaying it as 64bit values, after the first push, shouldn't it show: 0000000000000000 FFED62CA00000001 But instead it results in: 0000000100000000 00000000FFED62CA What is all that extra stuff? Sorry for my confusion. |
|||
07 Jun 2018, 21:22 |
|
revolution 08 Jun 2018, 01:05
If the push is only 4 bytes then all the values shift by half in the 64 bit display.
Ideally FDBG should display 32 bit values and then each push would simply move everything down one slot, instead of what you see where it moves everything horizontally and then down. If you follow the path of the 32 bit value "FFED62CA" you can see it go from one side the the other side and move down one slot for each two pushes. Can you change FDBG to show 32 bit values? |
|||
08 Jun 2018, 01:05 |
|
marywilliam 08 Jun 2018, 06:47
I don't know if it's possible to change FDBG to do that. Are there other debuggers for Linux? Could you recommend some?
|
|||
08 Jun 2018, 06:47 |
|
Feryno 09 Jun 2018, 05:32
hi, the e command always displays qwords coz fdbg is 64 bit debugger
if you need to display dwords, use command d d d rsp (just from my head, maybe I'm mistaken in the syntax) |
|||
09 Jun 2018, 05:32 |
|
Furs 09 Jun 2018, 15:30
marywilliam wrote: I don't know if it's possible to change FDBG to do that. Are there other debuggers for Linux? Could you recommend some? |
|||
09 Jun 2018, 15:30 |
|
moveax41h 21 Jul 2018, 04:37
I recommend https://github.com/hugsy/gef
You guys will really like it. You need to first install GDB version 7.7+ (8 works too) and then you run that script and then run gdb -q somebinary. This is great for an assembly programmer on Linux. See screenshot attached to this post.
_________________ -moveax41h |
||||||||||
21 Jul 2018, 04:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.