This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1266: incorrect listing of source code


>Number:         1266
>Category:       gdb
>Synopsis:       incorrect listing of source code
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 30 11:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     kokoskaj@seznam.cz
>Release:        GNU gdb 2003-06-06-cvs-debian
>Organization:
>Environment:
i686 GNU/Linux 2.4.21

Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 (Debian)

GDB i386-linux
>Description:
When using list command to view source code, if some specific lines (beginning of some C loops) are on the listing boundary, name and condition sometimes don't get listed.

Here specifically, multi-line comment just ended line before. The code compiles and works, including the loop.

The bug is rather cosmetic, priority low.

Session listing:

(gdb) list 158,159
158     */
159       while ((password = g_array_index(args->passwords, unsigned long*, j))) {
(gdb) list 159,159
159      {
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]