aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gdb/mmalloc
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gdb/mmalloc')
-rw-r--r--gnu/usr.bin/gdb/mmalloc/attach.c2
-rw-r--r--gnu/usr.bin/gdb/mmalloc/detach.c4
-rw-r--r--gnu/usr.bin/gdb/mmalloc/keys.c4
-rw-r--r--gnu/usr.bin/gdb/mmalloc/mfree.c2
-rw-r--r--gnu/usr.bin/gdb/mmalloc/mmalloc.c4
-rw-r--r--gnu/usr.bin/gdb/mmalloc/mmalloc.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/gnu/usr.bin/gdb/mmalloc/attach.c b/gnu/usr.bin/gdb/mmalloc/attach.c
index 6737fca38723..a1b668663160 100644
--- a/gnu/usr.bin/gdb/mmalloc/attach.c
+++ b/gnu/usr.bin/gdb/mmalloc/attach.c
@@ -155,7 +155,7 @@ mmalloc_attach (fd, baseaddr)
Note that we have to update the file descriptor number in the malloc-
descriptor read from the file to match the current valid one, before
trying to map the file in, and again after a successful mapping and
- after we've switched over to using the mapped in malloc descriptor
+ after we've switched over to using the mapped in malloc descriptor
rather than the temporary one on the stack.
Once we've switched over to using the mapped in malloc descriptor, we
diff --git a/gnu/usr.bin/gdb/mmalloc/detach.c b/gnu/usr.bin/gdb/mmalloc/detach.c
index 03d632c20609..7f7f685497ae 100644
--- a/gnu/usr.bin/gdb/mmalloc/detach.c
+++ b/gnu/usr.bin/gdb/mmalloc/detach.c
@@ -48,10 +48,10 @@ mmalloc_detach (md)
{
mtemp = *(struct mdesc *) md;
-
+
/* Now unmap all the pages associated with this region by asking for a
negative increment equal to the current size of the region. */
-
+
if ((mtemp.morecore (&mtemp, mtemp.base - mtemp.top)) == NULL)
{
/* Update the original malloc descriptor with any changes */
diff --git a/gnu/usr.bin/gdb/mmalloc/keys.c b/gnu/usr.bin/gdb/mmalloc/keys.c
index 69d41b977395..c9ef0e65b865 100644
--- a/gnu/usr.bin/gdb/mmalloc/keys.c
+++ b/gnu/usr.bin/gdb/mmalloc/keys.c
@@ -35,7 +35,7 @@ Cambridge, MA 02139, USA. */
int
mmalloc_setkey (md, keynum, key)
- PTR md;
+ PTR md;
int keynum;
PTR key;
{
@@ -52,7 +52,7 @@ mmalloc_setkey (md, keynum, key)
PTR
mmalloc_getkey (md, keynum)
- PTR md;
+ PTR md;
int keynum;
{
struct mdesc *mdp = (struct mdesc *) md;
diff --git a/gnu/usr.bin/gdb/mmalloc/mfree.c b/gnu/usr.bin/gdb/mmalloc/mfree.c
index aee43aad15bf..16328be0a51e 100644
--- a/gnu/usr.bin/gdb/mmalloc/mfree.c
+++ b/gnu/usr.bin/gdb/mmalloc/mfree.c
@@ -221,7 +221,7 @@ mfree (md, ptr)
ptr = l -> exact;
break;
}
- }
+ }
if (mdp -> mfree_hook != NULL)
{
(*mdp -> mfree_hook) (md, ptr);
diff --git a/gnu/usr.bin/gdb/mmalloc/mmalloc.c b/gnu/usr.bin/gdb/mmalloc/mmalloc.c
index 46b450e8513d..491aa16d9e4a 100644
--- a/gnu/usr.bin/gdb/mmalloc/mmalloc.c
+++ b/gnu/usr.bin/gdb/mmalloc/mmalloc.c
@@ -60,7 +60,7 @@ initialize (mdp)
struct mdesc *mdp;
{
mdp -> heapsize = HEAP / BLOCKSIZE;
- mdp -> heapinfo = (malloc_info *)
+ mdp -> heapinfo = (malloc_info *)
align (mdp, mdp -> heapsize * sizeof (malloc_info));
if (mdp -> heapinfo == NULL)
{
@@ -143,7 +143,7 @@ mmalloc (md, size)
}
mdp = MD_TO_MDP (md);
-
+
if (mdp -> mmalloc_hook != NULL)
{
return ((*mdp -> mmalloc_hook) (md, size));
diff --git a/gnu/usr.bin/gdb/mmalloc/mmalloc.h b/gnu/usr.bin/gdb/mmalloc/mmalloc.h
index 54b6ed654dcd..34ba775d6bd5 100644
--- a/gnu/usr.bin/gdb/mmalloc/mmalloc.h
+++ b/gnu/usr.bin/gdb/mmalloc/mmalloc.h
@@ -206,7 +206,7 @@ struct mdesc
needs to be maintained on a per-process basis. */
PTR (*morecore) PARAMS ((struct mdesc *, int));
-
+
/* Pointer to the function that causes an abort when the memory checking
features are activated. By default this is set to abort(), but can
be set to another function by the application using mmalloc().