diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-10 22:56:43 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-13 08:53:22 +0930 |
commit | 903f7818e70ba7016d4b7d2d98c88446d5f40e71 (patch) | |
tree | 78980b3c2289bd656d421a706d1bb9088b346cb8 /gdb/alloc.c | |
parent | [gdb/testsuite] Fix gdb.cp/break-f-std-string.cc with older gcc (diff) | |
download | binutils-gdb-903f7818e70ba7016d4b7d2d98c88446d5f40e71.tar.gz binutils-gdb-903f7818e70ba7016d4b7d2d98c88446d5f40e71.tar.bz2 binutils-gdb-903f7818e70ba7016d4b7d2d98c88446d5f40e71.zip |
gdb: remove use of PTR
PTR will disappear from ansidecl.h and libiberty on the next import
from gcc. Remove current uses in gdb.
Diffstat (limited to 'gdb/alloc.c')
-rw-r--r-- | gdb/alloc.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/alloc.c b/gdb/alloc.c index 60098c7b0c8..c6234e985be 100644 --- a/gdb/alloc.c +++ b/gdb/alloc.c @@ -44,10 +44,7 @@ consistent semantics and guard against typical memory management problems. */ -/* NOTE: These are declared using PTR to ensure consistency with - "libiberty.h". xfree() is GDB local. */ - -PTR /* ARI: PTR */ +void * xmalloc (size_t size) { void *val; @@ -64,8 +61,8 @@ xmalloc (size_t size) return val; } -PTR /* ARI: PTR */ -xrealloc (PTR ptr, size_t size) /* ARI: PTR */ +void * +xrealloc (void *ptr, size_t size) { void *val; @@ -84,7 +81,7 @@ xrealloc (PTR ptr, size_t size) /* ARI: PTR */ return val; } -PTR /* ARI: PTR */ +void * xcalloc (size_t number, size_t size) { void *mem; |