diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-07-04 16:00:08 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-07-04 16:00:08 +0000 |
commit | 2541c7cf085237f2d116a54a6e4ed6f6a7a065bf (patch) | |
tree | bc1c7ae2d47c8aee3a278e09110103a7cef97393 /gdb/dwarf2read.c | |
parent | 18ae5d728b866ed9a14a910d121427f3238ded7c (diff) | |
download | gdb-2541c7cf085237f2d116a54a6e4ed6f6a7a065bf.zip gdb-2541c7cf085237f2d116a54a6e4ed6f6a7a065bf.tar.gz gdb-2541c7cf085237f2d116a54a6e4ed6f6a7a065bf.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 07e15005..136f497 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; |