This is the mail archive of the gdb-patches@sourceware.org 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]

Patch for PR 10728


The attached stuff is a patch for PR 10728: http://sourceware.org/bugzilla/show_bug.cgi?id=10728 "infinite loop evaluating pointer difference w/o complete debug info"

The bug was in valarith.c : value_ptrdiff--if the type structs showed size == 0, things came unstuck. This patch fixes that by issuing a warning and assuming size = 1.

The patch includes testcase source files and and an expects file.

The gdb.sum diff between the unpatched and patched make check is also attached.

Chris Moller,
Red Hat

Attachment: pr10728.patch
Description: Text document

Attachment: pr10728-check.diff
Description: Text document


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