IDE Window: Assembler/fr

From Free Pascal wiki
Revision as of 14:19, 9 April 2022 by E-ric (talk | contribs) (Copy from english version + title translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

English (en) français (fr)

Navigation

Menu principal > Voir > Fenêtre de débogage > Assembleur

Fenêtre de la pile d'appels > Menu contextuel > Afficher l'assembleur

Important

Vous devez configurer le débogueur et démarrer le projet pour le déboguer. Seulement alors la fenêtre deviendra utile.

Assembleur

Assembler.png

Shows an assembler view of the current code. This can be used with the Registers window.

Données affichées

Address
Hex dump
Asm statement
The output depends on your CPU
Pascal lines
If Pascal sources are available, then they are shown in front of their ASM representation.

Interface

Vertical Srollbar
The vertical scrollbar behaves different from normal scrollbars. Since the assembly data may continue to an unknown extend in both directions, there is no fixed range. Move and hold the slider in either direction to scroll. The further you move the slider from the center position the faster the scroll. If released the slider returns to the center.

Toolbar

debugger power.png Power
Switch off the disassembler. The current disassembled data is kept as is. If the current location changes, it will be indicated only within the data. Introduced to deal with slow data loading since fetching any data from gdb takes noticeable time. It offers a quick way to temporarily disable loading so that other debug windows may be able to display their data sooner.
menu stepinto instr.png Step over or into (one asm instruction)
Single step (into) one asm instructions, instead of on entire pascal instructions. Will enter subroutines.
menu stepover instr.png Step over (one asm instruction)
Single step (over )one asm instructions, instead of on entire pascal instructions. Will skip over subroutines.
debugger current line.png Return to current address
Returns to the current execution-point.
callstack show.png Goto custom address
Shows the data at the address entered in the input field.
laz copy.png Copy to clipboard
Copies the selected line(s) to the clipboard.

Context menu

Assembler popup.png

Copies the selected line(s) to the clipboard.

Utilisant les mêmes touches pour la marche en Pascal ou en ASM

The default keyboard settings are:

  • F7 or F8: step into/over one pascal instruction
  • Alt-F7 or Alt-F8: step into/over one asm instruction

Those keys will act, independent of the focused window.

In the keyboard mapping (editor options) under "Run Menu" are also entries:

  • Alt- Shift-F7 or Alt- Shift-F8: "Step into,over (Context)

Those will step asm only if the assembler window is focused, and step pascal otherwise.

The key mapping can be changed, for the unmodified F7/F8 to act on context.

Améliorer la vitesse en utilisant le bouton Power

The debugger will disassemble the required memory range after each step, or each run. This may require some time.

During single stepping the next execution point often is in already disassembled data. If you code is not self-modifying, then you can use the power button to disable the repeated disassembling. Once you stepped to the border of the disassembled range, you need to turn power on to allow disassembling the next block of data. Once you have the next block of data turn it off again. And so on.

Portée

The assembler window does not follow any scope.

The Stack window (context menu) allows to jump to the address of any stackframe. This acts like jumping to a custom address, the debugger current line.png button will always return to the execution point at the top stack frame.

Voir aussi