RFR: 8319165: hsdis binutils: warns on empty string as option string

Andrew Haley aph at openjdk.org
Tue Oct 31 16:57:31 UTC 2023


On Tue, 31 Oct 2023 14:42:22 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

>> The parse_caller_options handles the NULL case, so I forgot about the early bailout.
>> 
>>   for (p = caller_options; p != NULL; ) {
>>   }
>>   *iop = '\0';
>> 
>> 
>> Sorry.
>
> Sorry again, long day:
> 
>   struct hsdis_app_data app_data;
>   memset(&app_data, 0, sizeof(app_data));
> 
> I knew I saw that somewhere.
> So if we don't parse at all (caller options NULL) it should be empty string in insn_options.
> 
> That is the way we handle caller option NULL, no ?

Oh, I see.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16433#discussion_r1377901732


More information about the build-dev mailing list