#461815 gdb: refcard.dvi display can be truncated because of lack of papersize hints

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
Vincent Lefevre
Date:
2025-08-06 15:17:02 UTC
Severity:
normal
Tags:
#461815#5
Date:
2008-01-21 00:29:15 UTC
From:
To:
/usr/share/doc/gdb/refcard.dvi.gz should be built with papersize
hints[*], otherwise the output can be truncated (depending on how
xdvi is called).

[*] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461613

#461815#10
Date:
2025-08-04 17:31:36 UTC
From:
To:
I looked at the refcard PDF for GDB 16.3 and it is fine; no truncation
anywhere.  It appears like this bug has since been fixed.  I'm closing
it, but feel free to reopen if it's still valid.

Thanks,

#461815#15
Date:
2025-08-05 00:27:06 UTC
From:
To:
Control: reopen -1
Control: found -1 16.3-1
See the attached screenshot of

  xdvi /usr/share/doc/gdb/refcard.dvi.gz

I have the following settings:

qaa:~> paper
A4: 210x297 mm

#461815#24
Date:
2025-08-05 02:57:55 UTC
From:
To:
Control: severity -1 minor

Thanks for double-checking.  I don't know much about dvi rendering; I'll
take a look at the bug you've mentioned when you reported the problem
and see if there's anything we can do on Debian's side.

#461815#31
Date:
2025-08-05 08:32:52 UTC
From:
To:
There was bug 461814 in pari that was very similar. AFAIK, it has
been fixed by adding \special{papersize=29.7cm,21cm} in some .tex
file (I'll do some tests). So perhaps that's an upstream bug.

#461815#36
Date:
2025-08-05 20:58:55 UTC
From:
To:
Yes, that's what I wanted to confirm.  If it involves modifying upstream
files, then it should be reported upstream.  Would you be willing to do
it?

Thanks,

#461815#41
Date:
2025-08-06 03:05:33 UTC
From:
To:
Yes, I'll do that with a fix (hopefully). (I'll also report the
other bug upstream.)

#461815#46
Date:
2025-08-06 15:09:25 UTC
From:
To:
Control: tags -1 upstream patch

I've just submitted a patch:

https://sourceware.org/pipermail/gdb-patches/2025-August/219754.html

(also attached to this mail).