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:
parent
22b6b1cd1e
commit
4daefb91bf
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user