aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-05-18 15:49:51 +0000
committerMark Kettenis <kettenis@gnu.org>2003-05-18 15:49:51 +0000
commitb6b08ebfbf3336372abb0ccdff62bb77778393b3 (patch)
tree8236ef4e2cda198c9dc57d36088e0fd837af909b /gdb/dwarf2loc.c
parentdd12c3a89026d00b90a5fdfee40c4f62ca6c86ed (diff)
downloadgdb-b6b08ebfbf3336372abb0ccdff62bb77778393b3.zip
gdb-b6b08ebfbf3336372abb0ccdff62bb77778393b3.tar.gz
gdb-b6b08ebfbf3336372abb0ccdff62bb77778393b3.tar.bz2
* dwarf2loc.c (find_location_expression): Change type of second
argument to `size_t *'. (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t for size variable.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index c236c11..2bb4f26 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -50,7 +50,7 @@
static char *
find_location_expression (struct dwarf2_loclist_baton *baton,
- int *locexpr_length, CORE_ADDR pc)
+ size_t *locexpr_length, CORE_ADDR pc)
{
CORE_ADDR base_address = baton->base_address;
CORE_ADDR low, high;
@@ -448,7 +448,7 @@ loclist_read_variable (struct symbol *symbol, struct frame_info *frame)
struct dwarf2_loclist_baton *dlbaton = SYMBOL_LOCATION_BATON (symbol);
struct value *val;
unsigned char *data;
- int size;
+ size_t size;
data = find_location_expression (dlbaton, &size,
frame ? get_frame_pc (frame) : 0);
@@ -490,7 +490,7 @@ loclist_tracepoint_var_ref (struct symbol * symbol, struct agent_expr * ax,
{
struct dwarf2_loclist_baton *dlbaton = SYMBOL_LOCATION_BATON (symbol);
unsigned char *data;
- int size;
+ size_t size;
data = find_location_expression (dlbaton, &size, ax->scope);
if (data == NULL)