diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-31 10:02:08 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-31 10:47:59 +1030 |
commit | 57ae980e3290c0c1a9fb4a93144cc5b24457f05a (patch) | |
tree | b639bd1f64e84addc898ae6a29c97ffbe7c757ad /binutils/prdbg.c | |
parent | edf71419e06105a73c59a95d3e74557a6c6f313b (diff) | |
download | gdb-57ae980e3290c0c1a9fb4a93144cc5b24457f05a.zip gdb-57ae980e3290c0c1a9fb4a93144cc5b24457f05a.tar.gz gdb-57ae980e3290c0c1a9fb4a93144cc5b24457f05a.tar.bz2 |
Include string.h in bfd.h and delete LITMEMCPY, LITSTRCPY
This fixes the issue that startswith depends on strncpy being
declared, and not all projects using bfd.h include string.h before
bfd.h. I've also deleted some macros that don't find much use
anywhere.
bfd/
* bfd-in.h: Include string.h.
(LITMEMCPY, LITSTRCPY): Delete.
* bfd-in2.h: Regenerate.
binutils/
* prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
Diffstat (limited to 'binutils/prdbg.c')
-rw-r--r-- | binutils/prdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/prdbg.c b/binutils/prdbg.c index 614d7f9..521dfa0 100644 --- a/binutils/prdbg.c +++ b/binutils/prdbg.c @@ -752,7 +752,7 @@ pr_function_type (void *p, int argcount, bfd_boolean varargs) /* Now the return type is on the top of the stack. */ s = (char *) xmalloc (len); - LITSTRCPY (s, "(|) ("); + strcpy (s, "(|) ("); if (argcount < 0) strcat (s, "/* unknown */"); |