mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8234583: PrintAssemblyOptions isn't passed to hsdis library
Reviewed-by: vlivanov, mdoerr
This commit is contained in:
parent
620d67763d
commit
09d0150f6e
1 changed files with 6 additions and 3 deletions
|
@ -414,9 +414,10 @@ void decode_env::process_options(outputStream* ost) {
|
||||||
_bytes_per_line = Disassembler::pd_instruction_alignment();
|
_bytes_per_line = Disassembler::pd_instruction_alignment();
|
||||||
_print_file_name = true;
|
_print_file_name = true;
|
||||||
|
|
||||||
if (_optionsParsed) return; // parse only once
|
// parse the global option string
|
||||||
|
// We need to fill the options buffer for each newly created
|
||||||
// parse the global option string:
|
// decode_env instance. The hsdis_* library looks for options
|
||||||
|
// in that buffer.
|
||||||
collect_options(Disassembler::pd_cpu_opts());
|
collect_options(Disassembler::pd_cpu_opts());
|
||||||
collect_options(PrintAssemblyOptions);
|
collect_options(PrintAssemblyOptions);
|
||||||
|
|
||||||
|
@ -424,6 +425,8 @@ void decode_env::process_options(outputStream* ost) {
|
||||||
_print_raw = (strstr(options(), "xml") ? 2 : 1);
|
_print_raw = (strstr(options(), "xml") ? 2 : 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_optionsParsed) return; // parse only once
|
||||||
|
|
||||||
if (strstr(options(), "help")) {
|
if (strstr(options(), "help")) {
|
||||||
_print_help = true;
|
_print_help = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue