Get to know what is in your stack.
More...
#include "Yap.h"
#include "Yapproto.h"
#include <heapgc.h>
#include "walkclause.h"
Go to the source code of this file.
|
#define | IN_BLOCK(P, B, SZ) ((CODEADDR)(P) >= (CODEADDR)(B) && (CODEADDR)(P) < (CODEADDR)(B) + (SZ)) |
|
#define | ONLOCAL(ptr) (CellPtr(ptr) > CellPtr(HR) && CellPtr(ptr) < CellPtr(LOCAL_LocalBase)) |
|
#define | buf bufp->buf_ |
|
#define | lbuf bufp->lbuf_ |
|
#define | bufsize bufp->bufsize_ |
|
#define | lbufsz bufp->lbufsz_ |
|
#define | ADDBUF(CMD) |
|
#define | NOGC(t) (t & ~(MBIT|RBIT)) |
|
|
Term | Yap_TermToIndicator (Term t, Term mod) |
|
Term | Yap_PredicateToIndicator (PredEntry *pe) |
|
char * | Yap_output_bug_location (yamop *yap_pc, int where_from, int psize) |
| Used for debugging. More...
|
|
PredEntry * | Yap_PredForChoicePt (choiceptr cp, op_numbers *op) |
| Yap_v<<ChoicePt(): find out the predicate who generated a CP. More...
|
|
bool | Yap_search_for_static_predicate_in_use (PredEntry *p, bool check_everything) |
|
PredEntry * | Yap_PredForCode (yamop *codeptr, find_pred_type hint, Int *cl) |
| given an arbitrary code point codeptr search the database for the owner predicate pp identifying the corresponding clause More...
|
|
PredEntry * | Yap_PredEntryForCode (yamop *codeptr, find_pred_type where_from, void **startp, void **endp) |
|
ClauseUnion * | Yap_find_owner_index (yamop *ipc, PredEntry *ap) |
|
yap_error_descriptor_t * | set_clause_info (yap_error_descriptor_t *t, yamop *codeptr, PredEntry *pp) |
|
yap_error_descriptor_t * | Yap_prolog_add_culprit (yap_error_descriptor_t *t PASS_REGS) |
|
Term | Yap_all_calls (void) |
|
void | Yap_dump_code_area_for_profiler (void) |
|
const char * | Yap_dump_stack (void) |
|
char * | DumpActiveGoals (USES_REGS1) |
|
char * | DumpStack (USES_REGS1) |
|
yap_error_descriptor_t * | Yap_pc_add_location (yap_error_descriptor_t *t, void *pc0, void *b_ptr0, void *env0) |
|
yap_error_descriptor_t * | Yap_env_add_location (yap_error_descriptor_t *t, void *cp0, void *b_ptr0, void *env0, YAP_Int ignore_first) |
|
void | ShowTerm (Term *tp, int depth) |
|
void | Yap_ShowTerm (Term t) |
|
void | pp__ (Term *tp, int lvl, char *s0, char *s) |
|
void | pp (Term t) |
|
bool | Yap_JumpToEnv (void) |
|
void | Yap_InitStInfo (void) |
|
Get to know what is in your stack.
- Author
- VITOR SANTOS COSTA vsc@V.nosp@m.ITOR.nosp@m.s-Mac.nosp@m.Book.nosp@m.-Pro..nosp@m.loca.nosp@m.l
- Date
- Tue Sep 8 23:33:02 2015
Definition in file stack.c.
◆ ADDBUF
Value: { \
while (true) { \
size_t sz = CMD; \
if (sz < lbufsz-256) { \
lbuf += sz; \
lbufsz -= sz; \
break; \
} \
char *nbuf = realloc(buf, bufsize += 1024); \
lbuf = nbuf + (lbuf-buf); \
buf = nbuf; \
lbufsz += 1024; \
} \
}
Definition at line 1760 of file stack.c.
◆ buf
◆ bufsize
#define bufsize bufp->bufsize_ |
◆ IN_BLOCK
#define IN_BLOCK |
( |
|
P, |
|
|
|
B, |
|
|
|
SZ |
|
) |
| ((CODEADDR)(P) >= (CODEADDR)(B) && (CODEADDR)(P) < (CODEADDR)(B) + (SZ)) |
◆ lbuf
◆ lbufsz
#define lbufsz bufp->lbufsz_ |
◆ NOGC
#define NOGC |
( |
|
t | ) |
(t & ~(MBIT|RBIT)) |
◆ ONLOCAL
#define ONLOCAL |
( |
|
ptr | ) |
(CellPtr(ptr) > CellPtr(HR) && CellPtr(ptr) < CellPtr(LOCAL_LocalBase)) |
◆ DumpActiveGoals()
char * DumpActiveGoals |
( |
USES_REGS1 |
| ) |
|
◆ DumpStack()
char * DumpStack |
( |
USES_REGS1 |
| ) |
|
◆ pp()
◆ pp__()
void pp__ |
( |
Term * |
tp, |
|
|
int |
lvl, |
|
|
char * |
s0, |
|
|
char * |
s |
|
) |
| |
◆ set_clause_info()
◆ ShowTerm()
void ShowTerm |
( |
Term * |
tp, |
|
|
int |
depth |
|
) |
| |
◆ Yap_all_calls()
Term Yap_all_calls |
( |
void |
| ) |
|
◆ Yap_dump_code_area_for_profiler()
void Yap_dump_code_area_for_profiler |
( |
void |
| ) |
|
◆ Yap_dump_stack()
const char * Yap_dump_stack |
( |
void |
| ) |
|
◆ Yap_env_add_location()
◆ Yap_find_owner_index()
◆ Yap_InitStInfo()
void Yap_InitStInfo |
( |
void |
| ) |
|
◆ Yap_JumpToEnv()
bool Yap_JumpToEnv |
( |
void |
| ) |
|
◆ Yap_output_bug_location()
char * Yap_output_bug_location |
( |
yamop * |
yap_pc, |
|
|
int |
where_from, |
|
|
int |
psize |
|
) |
| |
Used for debugging.
Definition at line 2146 of file stack.c.
◆ Yap_pc_add_location()
◆ Yap_PredEntryForCode()
PredEntry * Yap_PredEntryForCode |
( |
yamop * |
codeptr, |
|
|
find_pred_type |
where_from, |
|
|
void ** |
startp, |
|
|
void ** |
endp |
|
) |
| |
◆ Yap_PredForChoicePt()
Yap_v<<ChoicePt(): find out the predicate who generated a CP.
- Parameters
-
cp | the choice point |
op | the YAAM instruction to process next |
- Returns
- A predixate structure or NULL
usually pretty straightforward, it can fall in trouble with 8 OR-P or tabling
Definition at line 307 of file stack.c.
◆ Yap_PredForCode()
PredEntry * Yap_PredForCode |
( |
yamop * |
codeptr, |
|
|
find_pred_type |
hint, |
|
|
Int * |
cl |
|
) |
| |
given an arbitrary code point codeptr search the database for the owner predicate pp identifying the corresponding clause
Definition at line 730 of file stack.c.
◆ Yap_PredicateToIndicator()
Term Yap_PredicateToIndicator |
( |
PredEntry * |
pe | ) |
|
◆ Yap_prolog_add_culprit()
◆ Yap_search_for_static_predicate_in_use()
bool Yap_search_for_static_predicate_in_use |
( |
PredEntry * |
p, |
|
|
bool |
check_everything |
|
) |
| |
◆ Yap_ShowTerm()
void Yap_ShowTerm |
( |
Term |
t | ) |
|
◆ Yap_TermToIndicator()
Term Yap_TermToIndicator |
( |
Term |
t, |
|
|
Term |
mod |
|
) |
| |