Recent

Author Topic: Lazarus assembler window suggestions  (Read 1278 times)

lagprogramming

  • Full Member
  • ***
  • Posts: 193
Lazarus assembler window suggestions
« on: January 23, 2022, 06:34:45 pm »
   The assembler window of Lazarus shows a list. In this list multiple lines can be selected and copied to clipboard by using a popup menu with a single entry, "Copy to Clipboard".
   Probably a Ctrl+C keyboard shortcut to copy the selected lines to clipboard would be an improvement because the list already responds to up/down keys.
   I've looked at the -aX set of compiler parameters and I've seen no way of at least estimating somehow the data that is shown in the first two columns of the list(memory address and byte data), reason why I think it might be useful adding a "Select all" popup menu entry, where "Select all" would select not just all the visible lines of the list, but all lines of the debugging program. In current implementation you need a lot of time to manually scroll the window to find the memory footprint, address and binary code of a specific routine. "Select all", "Paste" in favorite text editor, "Find" whatever you want should be an improvement.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7885
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus assembler window suggestions
« Reply #1 on: January 23, 2022, 08:17:19 pm »
Ctrl-C => good idea.

"Select all" would select not just all the visible lines of the list, but all lines of the debugging program.
No.

The window is to disassemble at a specific address. It does not show "all", and it is not made to retrieve "all" (even though you can do by scrolling, except that this includes some guess work, and may show incorrect lines)

Quote
the memory footprint, address and binary code of a specific routine. "Select all", "Paste" in favorite text editor, "Find" whatever you want should be an improvement.

If you want to look at a specific function, you need to know the address. Is that the problem ?
Currently you can get to any line of code listed in the stack window => context menu.

What would be needed (and should be added) is the ability to enter the name of a function/method in the disassemble "go to" field. Currently only addresses are accepted.

Well actually, you can get the addresses: (at least with FpDebug, not tested Gdb): the Evaluate Window (also the Watches Window), accept function names (including TFoo.Bar) => and return the address.



Btw, rather than  coping from the disassembler view, you can use objdump to get the full assembler (and, if your exe is compiled non-relocatable, then the addresses will match.)

 

TinyPortal © 2005-2018