17d62b00eSchristos /* DWARF index writing support for GDB. 27d62b00eSchristos 3*6881a400Schristos Copyright (C) 2018-2023 Free Software Foundation, Inc. 47d62b00eSchristos 57d62b00eSchristos This file is part of GDB. 67d62b00eSchristos 77d62b00eSchristos This program is free software; you can redistribute it and/or modify 87d62b00eSchristos it under the terms of the GNU General Public License as published by 97d62b00eSchristos the Free Software Foundation; either version 3 of the License, or 107d62b00eSchristos (at your option) any later version. 117d62b00eSchristos 127d62b00eSchristos This program is distributed in the hope that it will be useful, 137d62b00eSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 147d62b00eSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 157d62b00eSchristos GNU General Public License for more details. 167d62b00eSchristos 177d62b00eSchristos You should have received a copy of the GNU General Public License 187d62b00eSchristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 197d62b00eSchristos 207d62b00eSchristos #ifndef DWARF_INDEX_WRITE_H 217d62b00eSchristos #define DWARF_INDEX_WRITE_H 227d62b00eSchristos 237d62b00eSchristos #include "dwarf2/read.h" 24*6881a400Schristos #include "dwarf2/public.h" 257d62b00eSchristos 267d62b00eSchristos /* Create index files for OBJFILE in the directory DIR. 277d62b00eSchristos 287d62b00eSchristos An index file is created for OBJFILE itself, and is created for its 297d62b00eSchristos associated dwz file, if it has one. 307d62b00eSchristos 317d62b00eSchristos BASENAME is the desired filename base for OBJFILE's index. An extension 327d62b00eSchristos derived from INDEX_KIND is added to this base name. DWZ_BASENAME is the 337d62b00eSchristos same, but for the dwz file's index. */ 347d62b00eSchristos 35*6881a400Schristos extern void write_dwarf_index 367d62b00eSchristos (dwarf2_per_objfile *per_objfile, const char *dir, const char *basename, 377d62b00eSchristos const char *dwz_basename, dw_index_kind index_kind); 387d62b00eSchristos 397d62b00eSchristos #endif /* DWARF_INDEX_WRITE_H */ 40