/*
Copyright (C) 2000,2004 Silicon Graphics, Inc. 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:
*/
#include "config.h"
#include "libdwarfdefs.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_ELF_H
#include <elf.h>
#endif
#include "pro_incl.h"
#include "pro_line.h"
Dwarf_Error * error);
/*-------------------------------------------------------------------------
Add a entry to the line information section
file_index: index of file in file entries, obtained from
add_file_entry() call.
This function actually calls _dwarf_pro_add_line_entry(), with
an extra parameter, the opcode. Done so that interface calls
dwarf_lne_set_address() and dwarf_lne_end_sequence() can use
this internal routine.
---------------------------------------------------------------------------*/
{
is_bb_begin, 0, error);
return retval;
}
/*------------------------------------------------------------------------
Ask to emit DW_LNE_set_address opcode explicitly. Used by be
to emit start of a new .text section, or to force a relocated
address into debug line information entry.
-------------------------------------------------------------------------*/
{
retval =
error);
return retval;
}
/*------------------------------------------------------------------------
Ask to emit end_seqence opcode. Used normally at the end of a
compilation unit. Can also be used in the middle if there
are gaps in the region described by the code address.
-------------------------------------------------------------------------*/
{
retval =
return retval;
}
/*----------------------------------------------------------------------------
Add an entry in the internal list of lines mantained by producer.
Opc indicates if an opcode needs to be generated, rather than just
an entry in the matrix. During opcodes generation time, these
opcodes will be used.
-----------------------------------------------------------------------------*/
{
}
} else {
}
}
return (0);
}
/*-----------------------------------------------------------------------
Add a directory declaration to the debug_line section. Stored
in linked list.
------------------------------------------------------------------------*/
{
}
} else {
}
dbg->de_n_inc_dirs++;
}
}
return dbg->de_n_inc_dirs;
}
/*-----------------------------------------------------------------------
Add a file entry declaration to the debug_line section. Stored
in linked list. The data is immediately encodes as leb128
and stored in Dwarf_P_F_Entry_s struct.
------------------------------------------------------------------------*/
char *name,
{
char *ptr;
int res;
}
} else {
}
dbg->de_n_file_entries++;
}
}
}
}
}
ptr += nbytes_idx;
ptr += nbytes_time;
ptr += nbytes_len;
return dbg->de_n_file_entries;
}
/*---------------------------------------------------------------------
Initialize a row of the matrix for line numbers, meaning
initialize the struct corresponding to it
----------------------------------------------------------------------*/
void
{
cur_line->dpl_address = 0;
cur_line->dpl_column = 0;
cur_line->dpl_basic_block = false;
}