Author: jgardou
Date: Fri Sep 29 17:32:11 2017
New Revision: 75990

URL: http://svn.reactos.org/svn/reactos?rev=75990&view=rev
Log:
[RTL]
 - Add CFI annotations to debug functions
CORE-8531

Modified:
    trunk/reactos/sdk/lib/rtl/i386/debug_asm.S

Modified: trunk/reactos/sdk/lib/rtl/i386/debug_asm.S
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/rtl/i386/debug_asm.S?rev=75990&r1=75989&r2=75990&view=diff
==============================================================================
--- trunk/reactos/sdk/lib/rtl/i386/debug_asm.S  [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/rtl/i386/debug_asm.S  [iso-8859-1] Fri Sep 29 
17:32:11 2017
@@ -65,7 +65,10 @@
 
     /* Set up the stack */
     push ebp
+    CFI_ADJUST_CFA_OFFSET 4
+    CFI_REL_OFFSET ebp, 0
     mov ebp, esp
+    CFI_DEF_CFA_REGISTER ebp
 
     /* Call the interrupt */
     mov eax, [ebp+16]
@@ -76,6 +79,8 @@
 
     /* Return */
     pop ebp
+    CFI_SAME_VALUE ebp
+    CFI_DEF_CFA esp, 12
     ret 12
 
 ENDFUNC
@@ -87,11 +92,16 @@
 
     /* Set up the stack */
     push ebp
+    CFI_ADJUST_CFA_OFFSET 4
+    CFI_REL_OFFSET ebp, 0
     mov ebp, esp
+    CFI_DEF_CFA_REGISTER ebp
 
     /* Save non-volatiles */
     push ebx
+    CFI_REL_OFFSET ebx, -4
     push edi
+    CFI_REL_OFFSET edi, -8
 
     /* Call the Interrupt */
     mov eax, [ebp+8]
@@ -104,10 +114,14 @@
 
     /* Restore non-volatiles */
     pop edi
+    CFI_SAME_VALUE edi
     pop ebx
+    CFI_SAME_VALUE ebx
 
     /* Return */
     pop ebp
+    CFI_SAME_VALUE ebp
+    CFI_DEF_CFA esp, 20
     ret 20
 
 ENDFUNC


Reply via email to