This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: procfs.c:proc_set_watchpoint bug fix
- To: gdb-patches at sources dot redhat dot com
- Subject: Re: RFA: procfs.c:proc_set_watchpoint bug fix
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Tue, 28 Mar 2000 11:04:26 -0800
- Newsgroups: cygnus.patches.gdb
- Organization: Cygnus Solutions
- References: <200003072114.WAA26143@reisser.regent.e-technik.tu-muenchen.de>
Peter.Schauer wrote:
>
> procfs.c:proc_set_watchpoint currently declares its addr parameter as
> void *, but it is called from procfs_set_watchpoint with a CORE_ADDR addr.
> This causes problems if sizeof(CORE_ADDR) > sizeof(void *), e.g on
> Solaris 2.7 sparc.
Approved and committed.
> 2000-03-07 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
>
> * procfs.c (proc_set_watchpoint): Declare addr parameter as
> CORE_ADDR, to match call from procfs_set_watchpoint.
>
> *** gdb/procfs.c.orig Wed Mar 1 21:54:05 2000
> --- gdb/procfs.c Sun Mar 5 12:05:33 2000
> ***************
> *** 2580,2586 ****
> int
> proc_set_watchpoint (pi, addr, len, wflags)
> procinfo *pi;
> ! void *addr;
> int len;
> int wflags;
> {
> --- 2580,2586 ----
> int
> proc_set_watchpoint (pi, addr, len, wflags)
> procinfo *pi;
> ! CORE_ADDR addr;
> int len;
> int wflags;
> {
>
> --
> Peter Schauer pes@regent.e-technik.tu-muenchen.de