View Issue Details

IDProjectCategoryView StatusLast Update
0038625LazarusDebuggerpublic2021-04-14 18:29
ReporterMarģers Assigned ToMartin Friebe  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Platformx86_64OSlinux 
Product Version2.0.12 
Fixed in Version2.2 
Summary0038625: fpdebug has problems decode multi byte nop instructions
Descriptionsee attached test program
TagsNo tags attached.
Fixed in Revision64992
LazTarget2.2
Widgetset
Attached Files

Activities

Marģers

2021-03-15 06:11

reporter  

testdbg2.pas (612 bytes)   
program testdbg1;
{$mode objfpc}{$h+}
uses FpDbgDisasX86;

//const  testCode : shortstring = #$90#$90; {nop; nop;}
const  testCode : shortstring = #$66#$2e#$0f#$1f#$84#$00#$00#$00#$00#$00#$0f#$1f#$00; {nop; nop;}
var    p : pointer  ;
       codeBytes, asmInstr : string;
begin
     p:=@testCode[1];

     FpDbgDisasX86.Disassemble (p, true, codeBytes, asmInstr );
     writeln( codeBytes:20,'    ', asmInstr);
     if asmInstr <> 'nop ' then halt(1);


     FpDbgDisasX86.Disassemble (p, true, codeBytes, asmInstr );
     writeln( codeBytes:20,'    ', asmInstr);

     if asmInstr <> 'nop ' then halt(2);

end.
testdbg2.pas (612 bytes)   

Issue History

Date Modified Username Field Change
2021-03-15 06:11 Marģers New Issue
2021-03-15 06:11 Marģers Status new => assigned
2021-03-15 06:11 Marģers Assigned To => Martin Friebe
2021-03-15 06:11 Marģers File Added: testdbg2.pas
2021-04-14 18:29 Martin Friebe Status assigned => resolved
2021-04-14 18:29 Martin Friebe Resolution open => fixed
2021-04-14 18:29 Martin Friebe Fixed in Version => 2.2
2021-04-14 18:29 Martin Friebe Fixed in Revision => 64992
2021-04-14 18:29 Martin Friebe LazTarget => 2.2