Skip to content

Commit 6bcc092

Browse files
author
Petr Machata
committed
Type proc_each_breakpoint properly
1 parent 3574252 commit 6bcc092

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

proc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of ltrace.
3-
* Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc.
3+
* Copyright (C) 2011,2012,2013,2014 Petr Machata, Red Hat Inc.
44
* Copyright (C) 2010 Joe Damato
55
* Copyright (C) 1998,2009 Juan Cespedes
66
*
@@ -1000,8 +1000,8 @@ each_breakpoint_cb(arch_addr_t *key, struct breakpoint **bpp, void *d)
10001000
return data->cb(data->proc, *bpp, data->cb_data);
10011001
}
10021002

1003-
void *
1004-
proc_each_breakpoint(struct process *proc, void *start,
1003+
arch_addr_t *
1004+
proc_each_breakpoint(struct process *proc, arch_addr_t *start,
10051005
enum callback_status (*cb)(struct process *proc,
10061006
struct breakpoint *bp,
10071007
void *data), void *data)

proc.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of ltrace.
3-
* Copyright (C) 2010,2011,2012,2013 Petr Machata, Red Hat Inc.
3+
* Copyright (C) 2010,2011,2012,2013,2014 Petr Machata, Red Hat Inc.
44
* Copyright (C) 2010 Joe Damato
55
* Copyright (C) 1998,2001,2008,2009 Juan Cespedes
66
*
@@ -226,11 +226,12 @@ void proc_remove_breakpoint(struct process *proc, struct breakpoint *bp);
226226

227227
/* Iterate through the breakpoints of PROC. See callback.h for notes
228228
* on iteration interfaces. */
229-
void *proc_each_breakpoint(struct process *proc, void *start,
230-
enum callback_status (*cb)(struct process *proc,
231-
struct breakpoint *bp,
232-
void *data),
233-
void *data);
229+
arch_addr_t *proc_each_breakpoint(struct process *proc, arch_addr_t *start,
230+
enum callback_status (*cb)
231+
(struct process *proc,
232+
struct breakpoint *bp,
233+
void *data),
234+
void *data);
234235

235236
/* Iterate through the dynamic section at src_addr looking for D_TAG.
236237
* If tag is found, fill it's value in RET and return 0.

0 commit comments

Comments
 (0)