From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19834 invoked by alias); 12 Aug 2012 16:13:11 -0000 Received: (qmail 19823 invoked by uid 22791); 12 Aug 2012 16:13:07 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Aug 2012 16:12:55 +0000 Received: by wgbdr1 with SMTP id dr1so2271225wgb.12 for ; Sun, 12 Aug 2012 09:12:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.81.133 with SMTP id a5mr11466060wiy.17.1344787973796; Sun, 12 Aug 2012 09:12:53 -0700 (PDT) Received: by 10.227.38.34 with HTTP; Sun, 12 Aug 2012 09:12:53 -0700 (PDT) Date: Sun, 12 Aug 2012 16:13:00 -0000 Message-ID: Subject: [PATCH] gdb: trivial segfault fix in tui From: Hal Ashburner To: gdb-patches@sourceware.org Content-Type: multipart/mixed; boundary=f46d044401de79f45504c713d9a7 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00349.txt.bz2 --f46d044401de79f45504c713d9a7 Content-Type: text/plain; charset=ISO-8859-1 Content-length: 398 Hello! I hope this is the correct etiquette and that it's useful. Copyright assigned to whoever commits to assign to GNU or do whatever is appropriate (assuming it is committed). To the easiest way to replicate the segfault: gdb some_prog b main run C-x a C-x 2 C-x 2 C-x 2 -- so you now have registers on the top panel and source in the middle. resize the terminal. step, segfault Regards, Hal --f46d044401de79f45504c713d9a7 Content-Type: application/octet-stream; name="gdbtui_segfault.patch" Content-Disposition: attachment; filename="gdbtui_segfault.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h5sc0keo0 Content-length: 1119 ZGlmZiAtLWdpdCBhL2dkYi90dWkvdHVpLXNvdXJjZS5jIGIvZ2RiL3R1aS90 dWktc291cmNlLmMKaW5kZXggOWJhOWIxZC4uMGM5NGFlZCAxMDA2NDQKLS0t IGEvZ2RiL3R1aS90dWktc291cmNlLmMKKysrIGIvZ2RiL3R1aS90dWktc291 cmNlLmMKQEAgLTMzNCwxMSArMzM0LDEzIEBAIHR1aV9zaG93X3N5bXRhYl9z b3VyY2UgKHN0cnVjdCBnZGJhcmNoICpnZGJhcmNoLCBzdHJ1Y3Qgc3ltdGFi ICpzLAogaW50CiB0dWlfc291cmNlX2lzX2Rpc3BsYXllZCAoY2hhciAqZm5h bWUpCiB7Ci0gIHJldHVybiAoVFVJX1NSQ19XSU4tPmdlbmVyaWMuY29udGVu dF9pbl91c2UgCi0JICAmJiAoZmlsZW5hbWVfY21wICgoKHN0cnVjdCB0dWlf d2luX2VsZW1lbnQgKikKLQkJCSAgICAgKHR1aV9sb2NhdG9yX3dpbl9pbmZv X3B0ciAoKSktPgotCQkJICAgICBjb250ZW50WzBdKS0+d2hpY2hfZWxlbWVu dC5sb2NhdG9yLmZpbGVfbmFtZSwKLQkJCSAgICBmbmFtZSkgPT0gMCkpOwor ICBpZiAodHVpX2xvY2F0b3Jfd2luX2luZm9fcHRyKCktPmNvbnRlbnQpCisg ICAgICByZXR1cm4gKFRVSV9TUkNfV0lOLT5nZW5lcmljLmNvbnRlbnRfaW5f dXNlIAorICAgICAgICAgICYmIChmaWxlbmFtZV9jbXAgKCgoc3RydWN0IHR1 aV93aW5fZWxlbWVudCAqKQorICAgICAgICAgICAgICAgICAgICAgKHR1aV9s b2NhdG9yX3dpbl9pbmZvX3B0ciAoKSktPgorICAgICAgICAgICAgICAgICAg ICAgY29udGVudFswXSktPndoaWNoX2VsZW1lbnQubG9jYXRvci5maWxlX25h bWUsCisgICAgICAgICAgICAgICAgICAgIGZuYW1lKSA9PSAwKSk7CisgIHJl dHVybiAwOwogfQogCiAK --f46d044401de79f45504c713d9a7--