mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
Rethrow with "catch(...) throw;"
This commit is contained in:
parent
acfaeb8d34
commit
13b50bacfe
|
@ -720,9 +720,9 @@ void run_frontend(std::string filename, std::string command, RTLIL::Design *desi
|
||||||
Pass::call(design, command);
|
Pass::call(design, command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (log_cmd_error_exception) {
|
catch (...) {
|
||||||
Frontend::current_script_file = backup_script_file;
|
Frontend::current_script_file = backup_script_file;
|
||||||
throw log_cmd_error_exception();
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
Frontend::current_script_file = backup_script_file;
|
Frontend::current_script_file = backup_script_file;
|
||||||
|
|
|
@ -76,11 +76,11 @@ struct TeePass : public Pass {
|
||||||
try {
|
try {
|
||||||
std::vector<std::string> new_args(args.begin() + argidx, args.end());
|
std::vector<std::string> new_args(args.begin() + argidx, args.end());
|
||||||
Pass::call(design, new_args);
|
Pass::call(design, new_args);
|
||||||
} catch (log_cmd_error_exception) {
|
} catch (...) {
|
||||||
for (auto cf : files_to_close)
|
for (auto cf : files_to_close)
|
||||||
fclose(cf);
|
fclose(cf);
|
||||||
log_files = backup_log_files;
|
log_files = backup_log_files;
|
||||||
throw log_cmd_error_exception();
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto cf : files_to_close)
|
for (auto cf : files_to_close)
|
||||||
|
|
|
@ -85,9 +85,9 @@ struct TracePass : public Pass {
|
||||||
try {
|
try {
|
||||||
std::vector<std::string> new_args(args.begin() + argidx, args.end());
|
std::vector<std::string> new_args(args.begin() + argidx, args.end());
|
||||||
Pass::call(design, new_args);
|
Pass::call(design, new_args);
|
||||||
} catch (log_cmd_error_exception) {
|
} catch (...) {
|
||||||
design->monitors.erase(&monitor);
|
design->monitors.erase(&monitor);
|
||||||
throw log_cmd_error_exception();
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
design->monitors.erase(&monitor);
|
design->monitors.erase(&monitor);
|
||||||
|
|
Loading…
Reference in a new issue