public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "joost at cnoc dot nl" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug pascal/11492] New: Patch to print (pascal) arrays of integer right Date: Mon, 12 Apr 2010 19:58:00 -0000 [thread overview] Message-ID: <20100412195759.11492.joost@cnoc.nl> (raw) With this patch an array of integers is printed like this: $8 = {50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62} Without this patch it is printed as if it is a string: $23 = '23456789:;<=>' I like the first option better. ;) patch: --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -82,9 +85,8 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr, } /* For an array of chars, print with string syntax. */ if ((eltlen == 1 || eltlen == 2 || eltlen == 4) - && ((TYPE_CODE (elttype) == TYPE_CODE_INT) - || ((current_language->la_language == language_pascal) - && (TYPE_CODE (elttype) == TYPE_CODE_CHAR))) + && ((current_language->la_language == language_pascal) + && (TYPE_CODE (elttype) == TYPE_CODE_CHAR)) && (options->format == 0 || options->format == 's')) { /* If requested, look for the first null char and only print -- Summary: Patch to print (pascal) arrays of integer right Product: gdb Version: archer Status: UNCONFIRMED Severity: normal Priority: P2 Component: pascal AssignedTo: unassigned at sourceware dot org ReportedBy: joost at cnoc dot nl CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11492 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2010-04-12 19:58 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-12 19:58 joost at cnoc dot nl [this message] 2010-04-12 22:37 ` [Bug pascal/11492] " sergiodj at redhat dot com 2010-04-13 7:53 ` joost at cnoc dot nl 2010-04-13 8:16 ` muller at ics dot u-strasbg dot fr 2010-04-13 9:24 ` muller at ics dot u-strasbg dot fr 2010-04-13 10:43 ` joost at cnoc dot nl 2010-05-08 15:20 ` muller at ics dot u-strasbg dot fr 2010-05-12 12:47 ` muller at ics dot u-strasbg dot fr 2010-05-15 20:47 ` jan dot kratochvil at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100412195759.11492.joost@cnoc.nl \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).