diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-11-14 20:55:41 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-11-14 20:55:41 +0100 |
commit | 1c1a53b657ef31b168928925884c01a7e4bcaf0c (patch) | |
tree | f503e5d0198da257d482d7f9c4707e768be2b615 /libdwfl | |
parent | ed78237ef7c31fb1d7dc80e2c2e07484e1216727 (diff) | |
download | elfutils-1c1a53b657ef31b168928925884c01a7e4bcaf0c.tar.gz |
Code cleanup: Remove const in prototype
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Diffstat (limited to 'libdwfl')
-rw-r--r-- | libdwfl/ChangeLog | 8 | ||||
-rw-r--r-- | libdwfl/dwfl_frame_regs.c | 2 | ||||
-rw-r--r-- | libdwfl/libdwfl.h | 2 | ||||
-rw-r--r-- | libdwfl/linux-pid-attach.c | 6 |
4 files changed, 12 insertions, 6 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 561017b1..99013805 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,5 +1,13 @@ 2013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com> + Code cleanup: Remove const in prototype + * dwfl_frame_regs.c (dwfl_thread_state_registers): Remove const from + firstreg. + * libdwfl.h (dwfl_thread_state_registers): Likewise. + * linux-pid-attach.c (pid_thread_state_registers_cb): Likewise. + +2013-11-14 Jan Kratochvil <jan.kratochvil@redhat.com> + Fix dwfl_attach_state machine->elf. * dwfl_frame.c (dwfl_attach_state): Change parameter machine to elf. Call ebl_openbackend instead of ebl_openbackend_machine. diff --git a/libdwfl/dwfl_frame_regs.c b/libdwfl/dwfl_frame_regs.c index 927bc15b..10803fe7 100644 --- a/libdwfl/dwfl_frame_regs.c +++ b/libdwfl/dwfl_frame_regs.c @@ -29,7 +29,7 @@ #include "libdwflP.h" bool -dwfl_thread_state_registers (Dwfl_Thread *thread, const int firstreg, +dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg, unsigned nregs, const Dwarf_Word *regs) { Dwfl_Frame *state = thread->unwound; diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 303f79cc..c1a0fb99 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -657,7 +657,7 @@ Dwfl_Thread *dwfl_frame_thread (Dwfl_Frame *state) For every known continuous block of registers <FIRSTREG..FIRSTREG+NREGS) (inclusive..exclusive) set their content to REGS (array of NREGS items). Function returns false if any of the registers has invalid number. */ -bool dwfl_thread_state_registers (Dwfl_Thread *thread, const int firstreg, +bool dwfl_thread_state_registers (Dwfl_Thread *thread, int firstreg, unsigned nregs, const Dwarf_Word *regs) __nonnull_attribute__ (1, 4); diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c index b4f31654..ca821446 100644 --- a/libdwfl/linux-pid-attach.c +++ b/libdwfl/linux-pid-attach.c @@ -198,10 +198,8 @@ pid_next_thread (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg, /* Implement the ebl_set_initial_registers_tid setfunc callback. */ static bool -pid_thread_state_registers_cb (const int firstreg, - unsigned nregs, - const Dwarf_Word *regs, - void *arg) +pid_thread_state_registers_cb (int firstreg, unsigned nregs, + const Dwarf_Word *regs, void *arg) { Dwfl_Thread *thread = (Dwfl_Thread *) arg; return INTUSE(dwfl_thread_state_registers) (thread, firstreg, nregs, regs); |