This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 09/55] Use common_val_print in c-valprint.c


>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:

>> +      if (TYPE_CODE (type) == TYPE_CODE_PTR
>> +	  && TYPE_NAME (type) == NULL
>> +	  && TYPE_NAME (TYPE_TARGET_TYPE (type)) != NULL
>> +	  && (strcmp (TYPE_NAME (TYPE_TARGET_TYPE (type)),
>> "char") == 0
>> -	      || textual_name (TYPE_NAME (TYPE_TARGET_TYPE (val_type)))))
>> +	      || textual_name (TYPE_NAME (TYPE_TARGET_TYPE (type)))))
>> {
>> /* Print nothing.  */
>> }

Simon> This introduces a behavior change.  It's not dramatic, but I don't think it was
Simon> intended, otherwise you would have mentioned it.

Wow, nice catch.  And thank you.

I've added a test case for this to the patch, and I've fixed it.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]