summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-07-04 16:00:08 +0000
committerJim Blandy <jimb@codesourcery.com>2001-07-04 16:00:08 +0000
commit60fa8017eabcad9d54dc531bb4fde029815c8ee9 (patch)
treeb5d6fbfb9a920b0b1cbf86ea6d9c0c476dec8eca
parent598f42379340b1a5df52753d0a4ac8f859749450 (diff)
downloadgdb-60fa8017eabcad9d54dc531bb4fde029815c8ee9.tar.gz
* dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
code in loop condition. This seemed to be trying to round info_ptr up to the next four-byte boundary, but that's not what it actually did. If we discover the problem the old code was really trying to address, we can fix it properly.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1626a6c1f9e..d6694ed45b7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2001-07-04 Jim Blandy <jimb@redhat.com>
+
+ * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
+ code in loop condition. This seemed to be trying to round
+ info_ptr up to the next four-byte boundary, but that's not what it
+ actually did. If we discover the problem the old code was really
+ trying to address, we can fix it properly.
+
2001-07-03 Michael Snyder <msnyder@redhat.com>
* thread_db (find_new_threads_callback, thread_db_thread_alive,
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 07e15005e13..136f4975761 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -980,8 +980,7 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile, int mainline)
obstack_init (&dwarf2_tmp_obstack);
back_to = make_cleanup (dwarf2_free_tmp_obstack, NULL);
- while ((unsigned int) (info_ptr - dwarf_info_buffer)
- + ((info_ptr - dwarf_info_buffer) % 4) < dwarf_info_size)
+ while (info_ptr < dwarf_info_buffer + dwarf_info_size)
{
struct comp_unit_head cu_header;
beg_of_comp_unit = info_ptr;