.TH GP2C-DBG "1" "November 2001" "GP to C compiler driver" PARI
.SH NAME
GP2C-DBG \- The GP to C debugger driver
.SH DESCRIPTION
gp2c-dbg
.I
[gp2c options] [file.gp]
.PP
Compile \fIfile.gp\fR with \fBgp2c\fR and launch a debugger session of gp
where the functions of \fIfile.gp\fR are loaded.
[gp2c options] are passed to \fBgp2c\fR.
.PP
gp2c-dbg
.I
file.c
.PP
Compile \fIfile.c\fR and launch a debugger session of \fBgp\fR where the
functions of \fIfile.c\fR are loaded. The file \fIfile.c\fR must have suitable
\fPGP;install()\fR lines.
.SH "USAGE"
.PP
Since there is no debugger for the GP language, \fBgp2c-dbg\fR allows to debug
GP scripts with the C debugger.
To catch \fBPARI\fR errors, you can set a break point on the function
"pari_err".  Note that your functions will not be loaded until \fBgp\fR read
the .run
file.
.SH "FILES"
.I file.gp.c
The C output of \fBgp2c\fR.
.TP
.I file.gp.so
The GP loadable module.
.TP
.I file.gp.run
The  commands to load the module. Once a module is compiled, you can
load it inside a \fBgp\fR session by running this script.
.SH "ENVIRONMENT"
.TP
.I GP2C
Path to the gp2c compiler, default: @mybindir@/gp2c
.TP
.I GP_DBG
Path to the gp calculator, default: @GP_PATH@
.TP
.I GP2C_DBG
Command to start the debugger, default: "gdb --args"
.SH "COPYING"
Copyright 2000-2006 The PARI Group
.PP
GP2C is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions.  There is absolutely no warranty for GP2C.
.SH "SEE ALSO"
The GP2C manual,
.IR gp2c-run(1),
.IR gp2c(1),
.IR gp(1),
.IR gdb(1)

