Merge pull request #145 from amedeedaboville/require-fixed-line-found

Fail when a --fixed-line is given and it is not found
This commit is contained in:
Charlie Curtsinger 2019-11-21 10:27:29 -06:00 committed by GitHub
commit a20cc846d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ void init_coz(void) {
shared_ptr<line> fixed_line; shared_ptr<line> fixed_line;
if(fixed_line_name != "") { if(fixed_line_name != "") {
fixed_line = memory_map::get_instance().find_line(fixed_line_name); fixed_line = memory_map::get_instance().find_line(fixed_line_name);
PREFER(fixed_line) << "Fixed line \"" << fixed_line_name << "\" was not found."; REQUIRE(fixed_line) << "Fixed line \"" << fixed_line_name << "\" was not found.";
} }
// Create an end-to-end progress point and register it if running in // Create an end-to-end progress point and register it if running in