diff options
Diffstat (limited to 'sys-devel/gdb/files/gdb-6.x-crash.patch')
-rw-r--r-- | sys-devel/gdb/files/gdb-6.x-crash.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-devel/gdb/files/gdb-6.x-crash.patch b/sys-devel/gdb/files/gdb-6.x-crash.patch new file mode 100644 index 000000000000..b43a12442e09 --- /dev/null +++ b/sys-devel/gdb/files/gdb-6.x-crash.patch @@ -0,0 +1,20 @@ +--- gdb/symfile.c.orig 2004-04-27 21:17:40.955704896 +0200 ++++ gdb/symfile.c 2004-04-27 21:18:02.591415768 +0200 +@@ -788,4 +788,4 @@ + bfd *abfd; +- struct section_addr_info *orig_addrs; +- struct cleanup *my_cleanups; ++ struct section_addr_info *orig_addrs = NULL; ++ struct cleanup *my_cleanups = NULL; + +@@ -804,4 +804,2 @@ + +- orig_addrs = alloc_section_addr_info (bfd_count_sections (abfd)); +- my_cleanups = make_cleanup (xfree, orig_addrs); + if (addrs) +@@ -809,2 +807,5 @@ + int i; ++ orig_addrs = alloc_section_addr_info (addrs->num_sections); ++ my_cleanups = make_cleanup (xfree, orig_addrs); ++ + orig_addrs->num_sections = addrs->num_sections; |