version 1.7, 2010/04/07 13:45:04
|
version 1.37, 2012/08/22 10:47:15
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.14 |
RPL/2 (R) version 4.1.10 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2012 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
/* |
/* |
Line 1831 instruction_bessel(struct_processus *s_e
|
Line 1831 instruction_bessel(struct_processus *s_e
|
|
|
return; |
return; |
} |
} |
|
|
|
|
|
/* |
|
================================================================================ |
|
Fonction 'backtrace' |
|
================================================================================ |
|
Entrées : |
|
-------------------------------------------------------------------------------- |
|
Sorties : |
|
-------------------------------------------------------------------------------- |
|
Effets de bord : néant |
|
================================================================================ |
|
*/ |
|
|
|
void |
|
instruction_backtrace(struct_processus *s_etat_processus) |
|
{ |
|
(*s_etat_processus).erreur_execution = d_ex; |
|
|
|
if ((*s_etat_processus).affichage_arguments == 'Y') |
|
{ |
|
printf("\n BACKTRACE "); |
|
|
|
if ((*s_etat_processus).langue == 'F') |
|
{ |
|
printf("(affichage de la pile système)\n\n"); |
|
printf(" Aucun argument\n"); |
|
} |
|
else |
|
{ |
|
printf("(print system stack)\n\n"); |
|
printf(" No argument\n"); |
|
} |
|
|
|
return; |
|
} |
|
else if ((*s_etat_processus).test_instruction == 'Y') |
|
{ |
|
(*s_etat_processus).nombre_arguments = -1; |
|
return; |
|
} |
|
|
|
if (test_cfsf(s_etat_processus, 31) == d_vrai) |
|
{ |
|
if (empilement_pile_last(s_etat_processus, 0) == d_erreur) |
|
{ |
|
return; |
|
} |
|
} |
|
|
|
trace(s_etat_processus, stdout); |
|
|
|
return; |
|
} |
|
|
// vim: ts=4 |
// vim: ts=4 |