Debian Codegraph @

src/lib/libdwarfp/dwarf_pro_pubnames.c

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