Commit 099bb87f authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dbghelp: Constify some variables.

parent cecaf91d
......@@ -342,7 +342,7 @@ static const char* dwarf2_debug_di(const dwarf2_debug_info_t* di)
}
static dwarf2_abbrev_entry_t*
dwarf2_abbrev_table_find_entry(struct sparse_array* abbrev_table,
dwarf2_abbrev_table_find_entry(const struct sparse_array* abbrev_table,
unsigned long entry_code)
{
assert( NULL != abbrev_table );
......@@ -782,7 +782,7 @@ compute_location(dwarf2_traverse_context_t* ctx, struct location* loc,
}
static BOOL dwarf2_compute_location_attr(dwarf2_parse_context_t* ctx,
dwarf2_debug_info_t* di,
const dwarf2_debug_info_t* di,
unsigned long dw,
struct location* loc,
const struct location* frame)
......@@ -1095,7 +1095,7 @@ static struct symt* dwarf2_parse_reference_type(dwarf2_parse_context_t* ctx,
}
static void dwarf2_parse_udt_member(dwarf2_parse_context_t* ctx,
dwarf2_debug_info_t* di,
const dwarf2_debug_info_t* di,
struct symt_udt* parent)
{
struct symt* elt_type;
......@@ -1197,7 +1197,7 @@ static struct symt* dwarf2_parse_udt_type(dwarf2_parse_context_t* ctx,
}
static void dwarf2_parse_enumerator(dwarf2_parse_context_t* ctx,
dwarf2_debug_info_t* di,
const dwarf2_debug_info_t* di,
struct symt_enum* parent)
{
struct attribute name;
......@@ -1372,7 +1372,7 @@ static void dwarf2_parse_variable(dwarf2_subprogram_t* subpgm,
}
static void dwarf2_parse_subprogram_label(dwarf2_subprogram_t* subpgm,
dwarf2_debug_info_t* di)
const dwarf2_debug_info_t* di)
{
struct attribute name;
struct attribute low_pc;
......@@ -1392,11 +1392,11 @@ static void dwarf2_parse_subprogram_label(dwarf2_subprogram_t* subpgm,
static void dwarf2_parse_subprogram_block(dwarf2_subprogram_t* subpgm,
struct symt_block* parent_block,
dwarf2_debug_info_t* di);
const dwarf2_debug_info_t* di);
static void dwarf2_parse_inlined_subroutine(dwarf2_subprogram_t* subpgm,
struct symt_block* parent_block,
dwarf2_debug_info_t* di)
const dwarf2_debug_info_t* di)
{
struct symt_block* block;
struct attribute low_pc;
......@@ -1447,7 +1447,7 @@ static void dwarf2_parse_inlined_subroutine(dwarf2_subprogram_t* subpgm,
static void dwarf2_parse_subprogram_block(dwarf2_subprogram_t* subpgm,
struct symt_block* parent_block,
dwarf2_debug_info_t* di)
const dwarf2_debug_info_t* di)
{
struct symt_block* block;
struct attribute low_pc;
......@@ -1743,7 +1743,7 @@ static void dwarf2_load_one_entry(dwarf2_parse_context_t* ctx,
}
static void dwarf2_set_line_number(struct module* module, unsigned long address,
struct vector* v, unsigned file, unsigned line)
const struct vector* v, unsigned file, unsigned line)
{
struct symt_function* func;
struct symt_ht* symt;
......
......@@ -112,7 +112,7 @@ static BOOL fetch_process_info(struct dump_context* dc)
return FALSE;
}
static void fetch_thread_stack(struct dump_context* dc, void* teb_addr,
static void fetch_thread_stack(struct dump_context* dc, const void* teb_addr,
const CONTEXT* ctx, MINIDUMP_MEMORY_DESCRIPTOR* mmd)
{
NT_TIB tib;
......@@ -327,7 +327,7 @@ static void add_memory_block(struct dump_context* dc, ULONG64 base, ULONG size,
*
* Writes a chunk of data at a given position in the minidump
*/
static void writeat(struct dump_context* dc, RVA rva, void* data, unsigned size)
static void writeat(struct dump_context* dc, RVA rva, const void* data, unsigned size)
{
DWORD written;
......
......@@ -368,7 +368,7 @@ struct module* module_find_by_addr(const struct process* pcs, unsigned long addr
* checks whether the ELF container, for a (supposed) PE builtin is
* already loaded
*/
static BOOL module_is_elf_container_loaded(struct process* pcs,
static BOOL module_is_elf_container_loaded(const struct process* pcs,
const WCHAR* ImageName, DWORD base)
{
size_t len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment