Renamed the private copies of strlen and strcpy to gdb_strlen and

gdb_strcpy, respectively.  This saves fixing the wrong return type
of the private strlen and makes the addresses of strlen and strcpy
unambiguous.
This commit is contained in:
Bruce Evans 1999-05-13 07:34:25 +00:00
parent 22b6b1cd1e
commit 4daefb91bf
2 changed files with 6 additions and 8 deletions

View File

@ -125,10 +125,9 @@ extern jmp_buf db_jmpbuf;
/* Create private copies of common functions used by the stub. This prevents
nasty interactions between app code and the stub (for instance if user steps
into strlen, etc..) */
/* XXX this is fairly bogus. strlen() and strcpy() should be reentrant,
and are reentrant under FreeBSD. In any case, our versions should not
be named the same as the standard versions, so that the address `strlen'
is unambiguous... */
#define strlen gdb_strlen
#define strcpy gdb_strcpy
static int
strlen (const char *s)

View File

@ -125,10 +125,9 @@ extern jmp_buf db_jmpbuf;
/* Create private copies of common functions used by the stub. This prevents
nasty interactions between app code and the stub (for instance if user steps
into strlen, etc..) */
/* XXX this is fairly bogus. strlen() and strcpy() should be reentrant,
and are reentrant under FreeBSD. In any case, our versions should not
be named the same as the standard versions, so that the address `strlen'
is unambiguous... */
#define strlen gdb_strlen
#define strcpy gdb_strcpy
static int
strlen (const char *s)