gdbsupport: make gdb_assert_not_reached accept a format string
Change gdb_assert_not_reached to accept a format string plus corresponding arguments. This allows giving more precise messages. Because the format string passed by the caller is prepended with a "%s:" to add the function name, the callers can no longer pass a translated string (`_(...)`). Make the gdb_assert_not_reached include the _(), just like the gdb_assert_fail macro just above. Change-Id: Id0cfda5a57979df6cdaacaba0d55dd91ae9efee7
This commit is contained in:
parent
ab19827912
commit
557b4d7650
19 changed files with 39 additions and 39 deletions
|
@ -2217,7 +2217,7 @@ packet_config_support (struct packet_config *config)
|
|||
case AUTO_BOOLEAN_AUTO:
|
||||
return config->support;
|
||||
default:
|
||||
gdb_assert_not_reached (_("bad switch"));
|
||||
gdb_assert_not_reached ("bad switch");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10316,7 +10316,7 @@ remote_target::extended_remote_run (const std::string &args)
|
|||
error (_("Running \"%s\" on the remote target failed"),
|
||||
remote_exec_file);
|
||||
default:
|
||||
gdb_assert_not_reached (_("bad switch"));
|
||||
gdb_assert_not_reached ("bad switch");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue