From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Subject: [patch] Fix for PR gdb/10819
Date: Thu, 22 Oct 2009 04:48:00 -0000 [thread overview]
Message-ID: <8ac60eac0910212148w24f44d53xfa6bedd7e12b41d1@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Greetings,
Attached is a patch to fix PR gdb/10819
http://sourceware.org/bugzilla/show_bug.cgi?id=10819
Thanks,
--
Paul Pluzhnikov
2009-10-21 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/10819
* dwarf2-frame.c (find_cie): Don't call bsearch on
empty cie_table.
[-- Attachment #2: gdb-pr10819-20091021.txt --]
[-- Type: text/plain, Size: 439 bytes --]
--- dwarf2-frame.c.orig 2009-10-21 21:34:20.000000000 -0700
+++ dwarf2-frame.c 2009-10-21 21:35:25.000000000 -0700
@@ -1525,6 +1525,9 @@ find_cie (struct dwarf2_cie_table *cie_t
{
struct dwarf2_cie **p_cie;
+ if (cie_table->num_entries == 0)
+ return NULL;
+
p_cie = bsearch (&cie_pointer, cie_table->entries, cie_table->num_entries,
sizeof (cie_table->entries[0]), bsearch_cie_cmp);
if (p_cie != NULL)
next reply other threads:[~2009-10-22 4:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 4:48 Paul Pluzhnikov [this message]
2009-10-22 5:48 ` Jan Kratochvil
2009-10-22 6:14 ` Paul Pluzhnikov
2009-10-22 10:43 ` Pedro Alves
2009-10-22 11:09 ` Andreas Schwab
2009-10-22 15:34 ` Paul Pluzhnikov
2009-10-22 16:30 ` Paul Pluzhnikov
2009-10-22 17:44 ` Tom Tromey
2009-10-22 18:31 ` Paul Pluzhnikov
2009-10-22 20:13 ` Tom Tromey
2009-10-22 20:46 ` Paul Pluzhnikov
2009-10-22 18:11 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ac60eac0910212148w24f44d53xfa6bedd7e12b41d1@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox