When using avr-gdb on Ubuntu 12.04, this command is always sent
and we responded as if it was unsupported. Unfortunately avr-gdb on
Ubuntu 12.04 crashes when detaching from the process because it makes a
bad assumption somewhere, this will prevent the crash.
char rep[1024];
uint8_t command = *cmd++;
switch (command) {
+ case 'q':
+ if (strncmp(cmd, "Attached", 8) == 0) {
+ /* Respond that we are attached to an existing process..
+ * ourselves!
+ */
+ gdb_send_reply(g, "1");
+ break;
+ }
+ gdb_send_reply(g, "");
+ break;
case '?':
gdb_send_quick_status(g, 0);
break;