Re: Floating point exception - gdb

1999-10-31 Thread Juergen Leising

On Wed, Oct 27, 1999 at 06:21:57PM -0500, Chris Costello wrote:
 On Thu, Oct 28, 1999, Juergen Leising wrote:
  #0  0x806b7ab in menu_check_recenter (menu=0x8e20fe8) at menu.c:287
  287   menu-top += menu-pagelen * ((menu-current - menu-top)
  / menu-pagelen);
 
Try these:
 
 print menu
 print menu-pagelen
 print menu-current
 print menu-top
 print menu-pagelen
 

yeah, this is the output:

#0  0x806b7ab in menu_check_recenter (menu=0x8e506e8) at menu.c:287
287   menu-top += menu-pagelen * ((menu-current - menu-top)
/ menu-pagelen);
(gdb) print menu
$1 = (MUTTMENU *) 0x8e506e8
(gdb) print menu-pagelen
$2 = 0
(gdb) print menu-current
$3 = 0
(gdb) print menu-top
$4 = 0
(gdb) print menu-pagelen
$5 = 0
(gdb) print *menu
$6 = {title = 0x809268e "Compose", 
  help = 0xbfffe9bc "y:Send  q:Abort  t:To  c:CC  s:Subj  a:Attach file
d:Descrip  ?:Help", data = 0x8e50578, current = 0, max = 1, redraw = 1,
menu = 2, 
  offset = 12, pagelen = 0, tagprefix = 0, make_entry = 0x8051fe8
snd_entry, 
  search = 0, tag = 0x807a7c0 mutt_tag_attach, 
  color = 0x806c148 default_color, top = 0, oldcurrent = 0, searchBuf
= 0x0, 
  searchDir = 0, tagged = 0}
(gdb)


h, ok - and would you please explain this to me?
I presumably have to do something to avoid those zeroes - does it matter
which kind of terminal I use? xterm, nxterm, rxvt are the most common
ones
on my computer

By the way: I have tried several 1.0-pre-x versions 
and 1.0-release and some older ones
(0.95.5i for example is my current mutt)

- but with no better results;

Many thanks for your help,

bye, bye, Juergen.




-- 
*
* Juergen Leising, Germanyhttp://leising.home.pages.de/ *
* [EMAIL PROTECTED]  http://leising.freeshell.org/ *
*



Re: Floating point exception - gdb

1999-10-28 Thread John E. Davis

Chris Costello [EMAIL PROTECTED] wrote:
print menu
print menu-pagelen
print menu-current
print menu-top
print menu-pagelen

I think that you can also use:

   (gdb) p menu
   (gdb) p *menu

--John



Floating point exception - gdb

1999-10-27 Thread Juergen Leising

Ok,

I'm not that familiar with gdb, but anyway -
this is the output of "gdb mutt core":

(...)
Core was generated by `mutt'.
Program terminated with signal 8, Floating point exception.
Reading symbols from /usr/lib/libncurses.so.4...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.1...done.
#0  0x806b7ab in menu_check_recenter (menu=0x8e20fe8) at menu.c:287
287   menu-top += menu-pagelen * ((menu-current - menu-top)
/ menu-pagelen);



Please tell me if you want to get further information; in this case
I presumably need instructions how to use gdb.

Bye, Juergen.





-- 
*
* Juergen Leising, Germanyhttp://leising.home.pages.de/ *
* [EMAIL PROTECTED]  http://leising.freeshell.org/ *
*



Re: Floating point exception - gdb

1999-10-27 Thread Chris Costello

On Thu, Oct 28, 1999, Juergen Leising wrote:
 #0  0x806b7ab in menu_check_recenter (menu=0x8e20fe8) at menu.c:287
 287   menu-top += menu-pagelen * ((menu-current - menu-top)
 / menu-pagelen);

   Try these:

print menu
print menu-pagelen
print menu-current
print menu-top
print menu-pagelen

-- 
|Chris Costello [EMAIL PROTECTED]
|Machine independent code isn't.
`--