Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Fix for PR gdb/10819
@ 2009-10-22  4:48 Paul Pluzhnikov
  2009-10-22  5:48 ` Jan Kratochvil
  0 siblings, 1 reply; 12+ messages in thread
From: Paul Pluzhnikov @ 2009-10-22  4:48 UTC (permalink / raw)
  To: gdb-patches ml

[-- 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)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-10-22 20:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22  4:48 [patch] Fix for PR gdb/10819 Paul Pluzhnikov
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox