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] Printing of character vectors


>>>>> "Ken" == Ken Werner <ken@linux.vnet.ibm.com> writes:

Ken> I noticed that char vectors are printed like char arrays (as
Ken> strings). Here is the output of a sample session:

Ken> Is this intended?

I do not know.  The test case was written that way, but that isn't
necessarily indicative of intent.

Is it ever useful?

Ken> The attached patch changes c_val_print to additionally check if the
Ken> type is a vector. Tested on powerpc64-*-linux-gnu and
Ken> i686-*-linux-gnu, no regressions.  Any suggestions are welcome.

The patch itself is fine.  I think the only question is what behavior we
want.

If you don't hear any objections in the next week, go ahead and check it
in.

Tom


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