| 1 |
/* |
| 2 |
Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. |
| 3 |
Portions Copyright 2011-2020 David Anderson. All Rights Reserved. |
| 4 |
|
| 5 |
This program is free software; you can redistribute it |
| 6 |
and/or modify it under the terms of version 2.1 of the |
| 7 |
GNU Lesser General Public License as published by the Free |
| 8 |
Software Foundation. |
| 9 |
|
| 10 |
This program is distributed in the hope that it would be |
| 11 |
useful, but WITHOUT ANY WARRANTY; without even the implied |
| 12 |
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 13 |
PURPOSE. |
| 14 |
|
| 15 |
Further, this software is distributed without any warranty |
| 16 |
that it is free of the rightful claim of any third person |
| 17 |
regarding infringement or the like. Any license provided |
| 18 |
herein, whether implied or otherwise, applies only to this |
| 19 |
software file. Patent licenses, if any, provided herein |
| 20 |
do not apply to combinations of this program with other |
| 21 |
software, or any other product whatsoever. |
| 22 |
|
| 23 |
You should have received a copy of the GNU Lesser General |
| 24 |
Public License along with this program; if not, write the |
| 25 |
Free Software Foundation, Inc., 51 Franklin Street - Fifth |
| 26 |
Floor, Boston MA 02110-1301, USA. |
| 27 |
|
| 28 |
*/ |
| 29 |
|
| 30 |
#include <config.h> |
| 31 |
|
| 32 |
#include "dwarf.h" |
| 33 |
#include "libdwarf.h" |
| 34 |
#include "dwarf_base_types.h" |
| 35 |
#include "libdwarfp.h" |
| 36 |
#include "dwarf_pro_incl.h" |
| 37 |
#include "dwarf_pro_opaque.h" |
| 38 |
#include "dwarf_pro_section.h" |
| 39 |
|
| 40 |
int |
| 41 |
dwarf_add_funcname_a(Dwarf_P_Debug dbg, |
| 42 |
Dwarf_P_Die die, |
| 43 |
char *function_name, Dwarf_Error * error) |
| 44 |
{ |
| 45 |
int res = 0; |
| 46 |
|
| 47 |
res = _dwarf_add_simple_name_entry(dbg, die, function_name, |
| 48 |
dwarf_snk_funcname, error); |
| 49 |
return res; |
| 50 |
} |