Karim Belabas on Sat, 04 Feb 2012 13:00:04 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Bug#1196: \x is not available in the breakloop |
* Bill Allombert [2012-02-02 22:14]: > On Thu, May 05, 2011 at 01:21:19AM +0200, Karim Belabas wrote: > > * Bill Allombert [2011-05-04 23:29]: > > > \x does not work in the breakloop. This is unfortunate since this is > > > mainly a debugging aid. Probably \x should be available as a regular > > > GP function. > > > > install(dbgGEN, "vGD-1,L,"); > > dbgGEN(blah) > > I propose to add a GP function dbg_x, please see attached file. > dbg_x is closer to GP \x and gdb x. > > Also I think the documentation of \x should be updated: > > \subsec{\b{x}} Prints the complete tree with addresses and contents (in > hexadecimal) of the \idx{internal representation} of the latest computed > object in \kbd{gp}. As for \b{s}, this is used primarily as a debugging device for > PARI, and the format should be self-explanatory (a $*$ before an object -- > typically a modulus -- means the corresponding component is out of stack). > However, used on a PARI integer, it can be used as a > decimal$\rightarrow$hexadecimal converter. > > The part about $*$ does not seem valid anymore. Commited to 'master'. I updated the documentation of \x. Thanks for the patch ! K.B. -- Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17 Universite Bordeaux 1 Fax: (+33) (0)5 40 00 69 50 351, cours de la Liberation http://www.math.u-bordeaux1.fr/~belabas/ F-33405 Talence (France) http://pari.math.u-bordeaux1.fr/ [PARI/GP] `