Commit 4e4948cf authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dbghelp: Constify some variables.

parent 22741507
...@@ -2796,7 +2796,7 @@ static void copy_context_reg(CONTEXT *dstcontext, ULONG_PTR dwregdst, CONTEXT* s ...@@ -2796,7 +2796,7 @@ static void copy_context_reg(CONTEXT *dstcontext, ULONG_PTR dwregdst, CONTEXT* s
memcpy(ptrdst, ptrsrc, szdst); memcpy(ptrdst, ptrsrc, szdst);
} }
static ULONG_PTR eval_expression(struct module* module, struct cpu_stack_walk* csw, static ULONG_PTR eval_expression(const struct module* module, struct cpu_stack_walk* csw,
const unsigned char* zp, CONTEXT *context) const unsigned char* zp, CONTEXT *context)
{ {
dwarf2_traverse_context_t ctx; dwarf2_traverse_context_t ctx;
...@@ -2907,7 +2907,7 @@ static ULONG_PTR eval_expression(struct module* module, struct cpu_stack_walk* c ...@@ -2907,7 +2907,7 @@ static ULONG_PTR eval_expression(struct module* module, struct cpu_stack_walk* c
return stack[sp]; return stack[sp];
} }
static void apply_frame_state(struct module* module, struct cpu_stack_walk* csw, static void apply_frame_state(const struct module* module, struct cpu_stack_walk* csw,
CONTEXT *context, struct frame_state *state, ULONG_PTR* cfa) CONTEXT *context, struct frame_state *state, ULONG_PTR* cfa)
{ {
unsigned int i; unsigned int i;
......
...@@ -159,7 +159,7 @@ static inline void image_unmap_section(struct image_section_map* ism) ...@@ -159,7 +159,7 @@ static inline void image_unmap_section(struct image_section_map* ism)
} }
} }
static inline DWORD_PTR image_get_map_rva(struct image_section_map* ism) static inline DWORD_PTR image_get_map_rva(const struct image_section_map* ism)
{ {
if (!ism->fmap) return 0; if (!ism->fmap) return 0;
switch (ism->fmap->modtype) switch (ism->fmap->modtype)
...@@ -170,7 +170,7 @@ static inline DWORD_PTR image_get_map_rva(struct image_section_map* ism) ...@@ -170,7 +170,7 @@ static inline DWORD_PTR image_get_map_rva(struct image_section_map* ism)
} }
} }
static inline unsigned image_get_map_size(struct image_section_map* ism) static inline unsigned image_get_map_size(const struct image_section_map* ism)
{ {
if (!ism->fmap) return 0; if (!ism->fmap) return 0;
switch (ism->fmap->modtype) switch (ism->fmap->modtype)
......
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