mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-05 11:20:50 +02:00
Bash-5.3-alpha release
This commit is contained in:
+5
-15
@@ -1,6 +1,6 @@
|
||||
/* watch.c - watchpoint functions for malloc */
|
||||
|
||||
/* Copyright (C) 2001-2003 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001-2003, 2022 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -35,11 +35,7 @@ int _malloc_nwatch;
|
||||
static PTR_T _malloc_watch_list[WATCH_MAX];
|
||||
|
||||
static void
|
||||
watch_warn (addr, file, line, type, data)
|
||||
PTR_T addr;
|
||||
const char *file;
|
||||
int line, type;
|
||||
unsigned long data;
|
||||
watch_warn (PTR_T addr, const char *file, int line, int type, unsigned long data)
|
||||
{
|
||||
char *tag;
|
||||
|
||||
@@ -61,11 +57,7 @@ watch_warn (addr, file, line, type, data)
|
||||
}
|
||||
|
||||
void
|
||||
_malloc_ckwatch (addr, file, line, type, data)
|
||||
PTR_T addr;
|
||||
const char *file;
|
||||
int line, type;
|
||||
unsigned long data;
|
||||
_malloc_ckwatch (PTR_T addr, const char *file, int line, int type, unsigned long data)
|
||||
{
|
||||
register int i;
|
||||
|
||||
@@ -81,8 +73,7 @@ _malloc_ckwatch (addr, file, line, type, data)
|
||||
#endif /* MALLOC_WATCH */
|
||||
|
||||
PTR_T
|
||||
malloc_watch (addr)
|
||||
PTR_T addr;
|
||||
malloc_watch (PTR_T addr)
|
||||
{
|
||||
register int i;
|
||||
PTR_T ret;
|
||||
@@ -117,8 +108,7 @@ malloc_watch (addr)
|
||||
watchpoints. Returns ADDR if everything went OK, NULL if ADDR was
|
||||
not being watched. */
|
||||
PTR_T
|
||||
malloc_unwatch (addr)
|
||||
PTR_T addr;
|
||||
malloc_unwatch (PTR_T addr)
|
||||
{
|
||||
#ifdef MALLOC_WATCH
|
||||
register int i;
|
||||
|
||||
Reference in New Issue
Block a user