Protoization.
This commit is contained in:
parent
f572a39d15
commit
d0849a9a5a
3 changed files with 23 additions and 14 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-09-29 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* procfs.c (proc_iterate_over_mappings, proc_iterate_over_threads,
|
||||||
|
procfs_xfer_memory): Protoize.
|
||||||
|
* ptx4-nat.c (proc_iterate_over_mappings): Protoize.
|
||||||
|
|
||||||
2000-09-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
|
2000-09-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
|
||||||
|
|
||||||
* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
|
* sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
|
||||||
|
|
28
gdb/procfs.c
28
gdb/procfs.c
|
@ -2509,8 +2509,7 @@ proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags)
|
||||||
It doesn't get called that often... and if I open it
|
It doesn't get called that often... and if I open it
|
||||||
every time, I don't need to lseek it. */
|
every time, I don't need to lseek it. */
|
||||||
int
|
int
|
||||||
proc_iterate_over_mappings (func)
|
proc_iterate_over_mappings (int (*func) (int, CORE_ADDR))
|
||||||
int (*func) (int, CORE_ADDR);
|
|
||||||
{
|
{
|
||||||
struct prmap *map;
|
struct prmap *map;
|
||||||
procinfo *pi;
|
procinfo *pi;
|
||||||
|
@ -3036,10 +3035,9 @@ proc_update_threads (procinfo *pi)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
proc_iterate_over_threads (pi, func, ptr)
|
proc_iterate_over_threads (procinfo *pi,
|
||||||
procinfo *pi;
|
int (*func) (procinfo *, procinfo *, void *),
|
||||||
int (*func) (procinfo *, procinfo *, void *);
|
void *ptr)
|
||||||
void *ptr;
|
|
||||||
{
|
{
|
||||||
procinfo *thread, *next;
|
procinfo *thread, *next;
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
|
@ -3899,13 +3897,19 @@ wait_again:
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Transfer LEN bytes between GDB address MYADDR and target address
|
||||||
|
MEMADDR. If DOWRITE is non-zero, transfer them to the target,
|
||||||
|
otherwise transfer them from the target. TARGET is unused.
|
||||||
|
|
||||||
|
The return value is 0 if an error occurred or no bytes were
|
||||||
|
transferred. Otherwise, it will be a positive value which
|
||||||
|
indicates the number of bytes transferred between gdb and the
|
||||||
|
target. (Note that the interface also makes provisions for
|
||||||
|
negative values, but this capability isn't implemented here.) */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
procfs_xfer_memory (memaddr, myaddr, len, dowrite, target)
|
procfs_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
|
||||||
CORE_ADDR memaddr;
|
struct target_ops *target)
|
||||||
char *myaddr;
|
|
||||||
int len;
|
|
||||||
int dowrite;
|
|
||||||
struct target_ops *target; /* ignored */
|
|
||||||
{
|
{
|
||||||
procinfo *pi;
|
procinfo *pi;
|
||||||
int nbytes = 0;
|
int nbytes = 0;
|
||||||
|
|
|
@ -94,8 +94,7 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
|
||||||
*/
|
*/
|
||||||
/* this could use elf_interpreter() from elfread.c */
|
/* this could use elf_interpreter() from elfread.c */
|
||||||
int
|
int
|
||||||
proc_iterate_over_mappings (func)
|
proc_iterate_over_mappings (int (*func) (int, CORE_ADDR))
|
||||||
int (*func) (int, CORE_ADDR);
|
|
||||||
{
|
{
|
||||||
vaddr_t curseg, memptr;
|
vaddr_t curseg, memptr;
|
||||||
pt_vseg_t pv;
|
pt_vseg_t pv;
|
||||||
|
|
Loading…
Reference in a new issue