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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

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