summaryrefslogtreecommitdiff
path: root/external/gpl3/gdb/lib/libgdb/common-agent.c
blob: 643bfe1ea938c0caa24f6789fcadd432e2b0c87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "common/agent.c"

/* XXX
 * Gdb wants to use its internal fnmatch that does wide characters overriding
 * the one from libiberty. This is madness, let's use ours!
 */
extern "C" int
gnu_fnmatch(const char *pattern, const char *string, int flags)
{
	return fnmatch(pattern, string, flags);
}

/*
 * According to the manual page canonicalize_file_name() is equivalent
 * realpath(3) so use that.
 */
extern "C" char *
canonicalize_file_name(const char *fn)
{
	return realpath(fn, NULL);
}