gdb.base/sym-file-loader.c: Fix typo.

SELF_LINK, not SELK_LINK...

gdb/testsuite/
2014-04-15  Pedro Alves  <palves@redhat.com>

	* gdb.base/sym-file-loader.c: Fix typo.  SELF_LINK, not SELK_LINK.
This commit is contained in:
Pedro Alves 2014-04-15 14:13:08 +01:00
parent 2d1baf521e
commit eb4c17106b
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2014-04-15 Pedro Alves <palves@redhat.com>
* gdb.base/sym-file-loader.c: Fix typo. SELF_LINK, not SELK_LINK.
2014-04-15 Pedro Alves <palves@redhat.com>
* gdb.base/sym-file-loader.c: Include <limits.h>.

View File

@ -81,11 +81,11 @@ load (uint8_t *addr, Elf_External_Phdr *phdr, struct segment *tail_seg)
#ifdef __linux__
# define SELF_LINK "/proc/self/exe"
#elif defined NETBSD
# define SELK_LINK "/proc/curproc/exe"
# define SELF_LINK "/proc/curproc/exe"
#elif defined __OpenBSD__ || defined __FreeBSD__ || defined __DragonFly__
# define SELK_LINK "/proc/curproc/file"
# define SELF_LINK "/proc/curproc/file"
#elif defined SunOS
# define SELK_LINK "/proc/self/path/a.out"
# define SELF_LINK "/proc/self/path/a.out"
#endif
/* Like RPATH=$ORIGIN, return the dirname of the current