char *mi_error_message;
if (argc != 0)
- error ("-thread-list-ids: No arguments required.");
+ error (_("-thread-list-ids: No arguments required."));
rc = gdb_list_thread_ids (uiout, &mi_error_message);
mi_cmd_thread_info (char *command, char **argv, int argc)
{
if (argc != 0 && argc != 1)
- error ("Invalid MI command");
+ error (_("Invalid MI command"));
print_thread_info (uiout, argv[0], -1);
}
else if (strcmp (optarg, "1") == 0)
recurse = 1;
else
- error ("only '0' and '1' are valid values "
- "for the '--recurse' option");
+ error (_("only '0' and '1' are valid values "
+ "for the '--recurse' option"));
break;
}
}
int inf;
if (*(argv[optind]) != 'i')
- error ("invalid syntax of group id '%s'", argv[optind]);
+ error (_("invalid syntax of group id '%s'"), argv[optind]);
inf = strtoul (argv[optind] + 1, &end, 0);
if (*end != '\0')
- error ("invalid syntax of group id '%s'", argv[optind]);
+ error (_("invalid syntax of group id '%s'"), argv[optind]);
VEC_safe_push (int, ids, inf);
}
if (VEC_length (int, ids) > 1)
struct inferior *inf = find_inferior_id (id);
if (!inf)
- error ("Non-existent thread group id '%d'", id);
+ error (_("Non-existent thread group id '%d'"), id);
print_thread_info (uiout, NULL, inf->pid);
}
{
regnum = atoi (argv[i]);
if (regnum < 0 || regnum >= numregs)
- error ("bad register number");
+ error (_("bad register number"));
if (gdbarch_register_name (gdbarch, regnum) == NULL
|| *(gdbarch_register_name (gdbarch, regnum)) == '\0')
continue;
changed = register_changed_p (regnum, prev_regs, this_regs);
if (changed < 0)
- error ("-data-list-changed-registers: "
- "Unable to read register contents.");
+ error (_("-data-list-changed-registers: "
+ "Unable to read register contents."));
else if (changed)
ui_out_field_int (uiout, NULL, regnum);
}
{
changed = register_changed_p (regnum, prev_regs, this_regs);
if (changed < 0)
- error ("-data-list-changed-registers: "
- "Unable to read register contents.");
+ error (_("-data-list-changed-registers: "
+ "Unable to read register contents."));
else if (changed)
ui_out_field_int (uiout, NULL, regnum);
}
else
- error ("bad register number");
+ error (_("bad register number"));
}
do_cleanups (cleanup);
}
upon the particular processor being debugged. */
if (argc == 0)
- error ("-data-list-register-values: Usage: "
- "-data-list-register-values <format> [<regnum1>...<regnumN>]");
+ error (_("-data-list-register-values: Usage: "
+ "-data-list-register-values <format> [<regnum1>...<regnumN>]"));
format = (int) argv[0][0];
do_cleanups (tuple_cleanup);
}
else
- error ("bad register number");
+ error (_("bad register number"));
}
do_cleanups (list_cleanup);
}
val = get_frame_register_value (frame, regnum);
if (value_optimized_out (val))
- error ("Optimized out");
+ error (_("Optimized out"));
if (format == 'r')
{
numregs = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch);
if (argc == 0)
- error ("-data-write-register-values: Usage: -data-write-register-"
- "values <format> [<regnum1> <value1>...<regnumN> <valueN>]");
+ error (_("-data-write-register-values: Usage: -data-write-register-"
+ "values <format> [<regnum1> <value1>...<regnumN> <valueN>]"));
format = (int) argv[0][0];
if (!target_has_registers)
- error ("-data-write-register-values: No registers.");
+ error (_("-data-write-register-values: No registers."));
if (!(argc - 1))
- error ("-data-write-register-values: No regs and values specified.");
+ error (_("-data-write-register-values: No regs and values specified."));
if ((argc - 1) % 2)
- error ("-data-write-register-values: "
- "Regs and vals are not in pairs.");
+ error (_("-data-write-register-values: "
+ "Regs and vals are not in pairs."));
for (i = 1; i < argc; i = i + 2)
{
regcache_cooked_write_signed (regcache, regnum, value);
}
else
- error ("bad register number");
+ error (_("bad register number"));
}
}
if (argc != 1)
{
ui_out_stream_delete (stb);
- error ("-data-evaluate-expression: "
- "Usage: -data-evaluate-expression expression");
+ error (_("-data-evaluate-expression: "
+ "Usage: -data-evaluate-expression expression"));
}
expr = parse_expression (argv[0]);
argc -= optind;
if (argc < 5 || argc > 6)
- error ("-data-read-memory: Usage: "
- "ADDR WORD-FORMAT WORD-SIZE NR-ROWS NR-COLS [ASCHAR].");
+ error (_("-data-read-memory: Usage: "
+ "ADDR WORD-FORMAT WORD-SIZE NR-ROWS NR-COLS [ASCHAR]."));
/* Extract all the arguments. */
/* The number of rows. */
nr_rows = atol (argv[3]);
if (nr_rows <= 0)
- error ("-data-read-memory: invalid number of rows.");
+ error (_("-data-read-memory: invalid number of rows."));
/* Number of bytes per row. */
nr_cols = atol (argv[4]);
if (nr_cols <= 0)
- error ("-data-read-memory: invalid number of columns.");
+ error (_("-data-read-memory: invalid number of columns."));
/* The un-printable character when printing ascii. */
if (argc == 6)
TARGET_OBJECT_MEMORY, NULL, mbuf,
addr, total_bytes);
if (nr_bytes <= 0)
- error ("Unable to read memory.");
+ error (_("Unable to read memory."));
/* Output the header information. */
ui_out_field_core_addr (uiout, "addr", gdbarch, addr);
argc -= optind;
if (argc != 2)
- error ("Usage: [ -o OFFSET ] ADDR LENGTH.");
+ error (_("Usage: [ -o OFFSET ] ADDR LENGTH."));
addr = parse_and_eval_address (argv[0]) + offset;
length = atol (argv[1]);
cleanups = make_cleanup (free_memory_read_result_vector, result);
if (VEC_length (memory_read_result_s, result) == 0)
- error ("Unable to read memory.");
+ error (_("Unable to read memory."));
make_cleanup_ui_out_list_begin_end (uiout, "memory");
for (ix = 0;
argc -= optind;
if (argc != 4)
- error ("-data-write-memory: Usage: "
- "[-o COLUMN_OFFSET] ADDR FORMAT WORD-SIZE VALUE.");
+ error (_("-data-write-memory: Usage: "
+ "[-o COLUMN_OFFSET] ADDR FORMAT WORD-SIZE VALUE."));
/* Extract all the arguments. */
/* Start address of the memory dump. */
struct cleanup *back_to;
if (argc != 2)
- error ("Usage: ADDR DATA.");
+ error (_("Usage: ADDR DATA."));
addr = parse_and_eval_address (argv[0]);
cdata = argv[1];
return;
usage_error:
- error ("-enable-timings: Usage: %s {yes|no}", command);
+ error (_("-enable-timings: Usage: %s {yes|no}"), command);
}
void
return;
}
- error ("-list-features should be passed no arguments");
+ error (_("-list-features should be passed no arguments"));
}
void
return;
}
- error ("-list-target-features should be passed no arguments");
+ error (_("-list-target-features should be passed no arguments"));
}
void
struct inferior *inf;
if (argc != 1)
- error ("-remove-inferior should be passed a single argument");
+ error (_("-remove-inferior should be passed a single argument"));
if (sscanf (argv[0], "i%d", &id) != 1)
- error ("the thread group id is syntactically invalid");
+ error (_("the thread group id is syntactically invalid"));
inf = find_inferior_id (id);
if (!inf)
- error ("the specified thread group does not exist");
+ error (_("the specified thread group does not exist"));
if (inf->pid != 0)
error (_("cannot remove an active inferior"));