Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gdb/auto-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
#include "gdbsupport/pathstuff.h"
#include "cli/cli-style.h"

#ifdef __amigaos4__
#define AUTO_LOAD_DIR "$debugdir;$datadir/auto-load"
#define AUTO_LOAD_SAFE_PATH AUTO_LOAD_DIR
#endif

/* The section to look in for auto-loaded scripts (in file formats that
support sections).
Each entry in this section is a record that begins with a leading byte
Expand Down
6 changes: 6 additions & 0 deletions gdb/charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,12 @@ _initialize_charset ()
which GNU libiconv doesn't like (infinite loop). */
if (!strcmp (auto_host_charset_name, "646") || !*auto_host_charset_name)
auto_host_charset_name = "ASCII";
#ifdef __amigaos4__
/* clib4's nl_langinfo(CODESET) returns "ISO-8859-1" but its iconv
implementation cannot reliably convert ISO-8859-1 to/from UTF-32.
Force UTF-8 which clib4's iconv handles correctly. */
auto_host_charset_name = "UTF-8";
#endif
auto_target_charset_name = auto_host_charset_name;
#elif defined (USE_WIN32API)
{
Expand Down
9 changes: 8 additions & 1 deletion gdb/filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ starting the forward slash (`/') character are considered absolute,\n\
and the directory separator character is the forward slash (`/'). If\n\
`dos-based', target file names starting with a drive letter followed\n\
by a colon (e.g., `c:'), are also considered absolute, and the\n\
backslash (`\\') is also considered a directory separator. Set to\n\
backslash (`\\') is also considered a directory separator. If\n\
`amiga-based', target file names starting with a drive name followed\n\
by a colon (e.g., `sys:'), are also considered absolute, and the\n\
directory separator character is the forward slash (`/'). Set to\n\
backslash (`\\') is also considered a directory separator. If\n\
`amiga-based', target file names starting with a drive name followed\n\
by a colon (e.g., `sys:'), are also considered absolute, and the\n\
directory separator character is the forward slash (`/'). Set to\n\
`auto' (which is the default), to let GDB decide, based on its\n\
knowledge of the target operating system."),
#endif
Expand Down
2 changes: 2 additions & 0 deletions gdb/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ extern const char *target_file_system_kind;
#else
#define IS_TARGET_ABSOLUTE_PATH(kind, p) \
(((kind) == file_system_kind_dos_based) ? IS_DOS_ABSOLUTE_PATH (p) \
: ((kind) == file_system_kind_amigaos_based) ? IS_AMIGOS_ABSOLUTE_PATH(p) \
: IS_UNIX_ABSOLUTE_PATH (p))
#endif

Expand All @@ -65,6 +66,7 @@ extern const char *target_file_system_kind;
#else
#define HAS_TARGET_DRIVE_SPEC(kind, p) \
(((kind) == file_system_kind_dos_based) ? HAS_DOS_DRIVE_SPEC (p) \
: ((kind) == file_system_kind_amigaos_based) ? HAS_AMIGOS_DRIVE_SPEC(p) \
: 0)
#endif

Expand Down
Loading