gdb: use sh4al-dsp target

Also switch the order of -ex for a slightly cleaner output
This commit is contained in:
Lephenixnoir 2024-04-01 00:48:58 +02:00
parent 5fe02b055b
commit 5acef051f1
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -125,9 +125,9 @@ static pid_t fork_gdb(char **user_argv, char const *socket_path)
argv[0] = "sh-elf-gdb";
argv[1] = "-q";
argv[2] = "-ex";
argv[3] = target_command;
argv[3] = "set architecture sh4al-dsp";
argv[4] = "-ex";
argv[5] = "set architecture sh4a-nofpu";
argv[5] = target_command;
memcpy(argv+6, user_argv, (n+1) * sizeof *argv);
struct sigaction action = {