Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gp2c-dbg(1) [debian man page]

GP2C-DBG(1)							       PARI							       GP2C-DBG(1)

NAME
GP2C-DBG - The GP to C debugger driver DESCRIPTION
gp2c-dbg [gp2c options] [file.gp] Compile file.gp with gp2c and launch a debugger session of gp where the functions of file.gp are loaded. [gp2c options] are passed to gp2c. gp2c-dbg file.c Compile file.c and launch a debugger session of gp where the functions of file.c are loaded. The file file.c must have suitable GP;install() lines. USAGE
Since there is no debugger for the GP language, gp2c-dbg allows to debug GP scripts with the C debugger. To catch PARI errors, you can set a break point on the function "pari_err". Note that your functions will not be loaded until gp read the .run file. FILES
file.gp.c The C output of gp2c. file.gp.so The GP loadable module. file.gp.run The commands to load the module. Once a module is compiled, you can load it inside a gp session by running this script. ENVIRONMENT
GP2C Path to the gp2c compiler, default: /usr/bin/gp2c GP_DBG Path to the gp calculator, default: /usr/bin/gp GP2C_DBG Command to start the debugger, default: "gdb --args" COPYING
Copyright 2000-2006 The PARI Group 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. SEE ALSO
The GP2C manual, gp2c-run(1), gp2c(1), gp(1), gdb(1) GP to C compiler driver November 2001 GP2C-DBG(1)

Check Out this Related Man Page

IPKDB(4)						   BSD Kernel Interfaces Manual 						  IPKDB(4)

NAME
ipkdb -- IP-based kernel debugger SYNOPSIS
options IPKDB options IPKDBSECURE options IPKDBKEY=""IPKDB key for remote debugging"" options IPKDB_NE_PCISLOT=x DESCRIPTION
ipkdb is a kernel debugger that uses UDP and IP to communicate with a remote debugger (normally gdb(1)). Since the debugger uses its own driver to talk to the networking hardware, the number of supported network interfaces is a lot less than what is supported by the kernel. At the time of this writing, there is only support for a NE2000 compatible card in a PCI slot. In order for ipkdb to find your card, you need to specify the slot the card is in via the options IPKDB_NE_PCISLOT. To use ipkdb, you have to set up a DHCP server, from which ipkdb can get the IP address for the interface that is used for debugging. To enter ipkdb, the remote debugger has to send the protocol start packet. E.g., gdb will do this on the command target ipkdb debuggee IPKDB key for remote debugging where debuggee is the name of the machine to debug (which must resolve to the IP address of the interface), and the rest of the line corre- sponds to the definition of IPKDBKEY (see below). For ipkdb to actually see this packet, the interface which is used for debugging has to be set up to actually receive packets, i.e. it has to be up and running. To prevent messing around with a secured system, ipkdb normally also checks the security level at which the kernel is running. ipkdb will only work with security levels less than 1, unless the kernel is configured with options IPKDBSECURE. In addition, the debugger is forcedly entered on a panic, as well as on initial startup, if you boot the kernel with the -d option (note that this however is machine dependent). On such a forced enter to ipkdb there is no need for the interface in question to already be up and run- ning, since ipkdb only needs to send/receive packets via its own driver. As some form of security against the occasional hacker, ipkdb uses the definition of options IPKDBKEY to compute a checksum on the data in every packet. The remote debugger has to send this checksum, based on the data it sends and the key, or ipkdb ignores the packet. This is also used in order to check against data errors on the connection. SEE ALSO
gdb(1), ddb(4), ip(4), udp(4), init(8) HISTORY
ipkdb appeared in NetBSD 1.3 for the first time. Its configuration and setup changed quite a bit in NetBSD 1.5. BUGS
Since the kernel includes the definition of IPKDBKEY, anyone who can read the kernel can extract it and use it to enter ipkdb. There is no support for ip6(4). BSD
March 27, 2000 BSD
Man Page