/*
Copyright (C) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
Portions Copyright (C) 2009-2010 David Anderson. All Rights Reserved.
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Further, this software is distributed without any warranty that it is
free of the rightful claim of any third person regarding infringement
or the like. Any license provided herein, whether implied or
otherwise, applies only to this software file. Patent licenses, if
any, provided herein do not apply to combinations of this program with
other software, or any other product whatsoever.
You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
USA.
Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
Mountain View, CA 94043, or:
For further information regarding this notice, see:
*/
/* The address of the Free Software Foundation is
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
SGI has moved from the above address.
*/
#include "config.h"
#include "dwarf_incl.h"
#include <stdio.h>
#include "dwarf_abbrev.h"
int
{
return (DW_DLV_ERROR);
}
/* Loads abbrev section (and .debug_info as we do those
together). */
return res;
}
}
return (DW_DLV_NO_ENTRY);
}
if (ret_abbrev == NULL) {
return (DW_DLV_ERROR);
}
if (returned_abbrev == 0 || abbr_count == 0) {
return (DW_DLV_ERROR);
}
*abbr_count = 0;
*length = 1;
if (ret_abbrev->ab_code == 0) {
*abbr_count = 0;
if (length) {
*length = 1;
}
return (DW_DLV_OK);
}
do {
if (attr != 0)
(labbr_count)++;
} while (abbrev_ptr < abbrev_section_end &&
if (abbrev_ptr > abbrev_section_end) {
return (DW_DLV_ERROR);
}
return (DW_DLV_OK);
}
int
Dwarf_Error * error)
{
return (DW_DLV_ERROR);
}
return (DW_DLV_OK);
}
/* DWARF defines DW_TAG_hi_user as 0xffff so no tag should be
over 16 bits. */
int
{
return (DW_DLV_ERROR);
}
return (DW_DLV_OK);
}
int
Dwarf_Error * error)
{
return (DW_DLV_ERROR);
}
return (DW_DLV_OK);
}
int
Dwarf_Signed * form,
{
if (index < 0)
return (DW_DLV_NO_ENTRY);
return (DW_DLV_ERROR);
}
return (DW_DLV_NO_ENTRY);
}
return (DW_DLV_ERROR);
}
attr_form != 0);
index--) {
}
if (abbrev_ptr >= abbrev_end) {
return (DW_DLV_ERROR);
}
if (index >= 0) {
return (DW_DLV_NO_ENTRY);
}
*returned_attr_num = (attr);
return DW_DLV_OK;
}