Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Side by Side Diff: gdb/m2-typeprint.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/m2-lang.c ('k') | gdb/m2-valprint.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Support for printing Modula 2 types for GDB, the GNU debugger. 1 /* Support for printing Modula 2 types for GDB, the GNU debugger.
2 Copyright (C) 1986, 1988-1989, 1991-1992, 1995, 2000-2012 Free 2 Copyright (C) 1986, 1988-1989, 1991-1992, 1995, 2000-2012 Free
3 Software Foundation, Inc. 3 Software Foundation, Inc.
4 4
5 This file is part of GDB. 5 This file is part of GDB.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or 9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 fprintf_filtered (stream, "("); 600 fprintf_filtered (stream, "(");
601 len = TYPE_NFIELDS (type); 601 len = TYPE_NFIELDS (type);
602 lastval = 0; 602 lastval = 0;
603 for (i = 0; i < len; i++) 603 for (i = 0; i < len; i++)
604 { 604 {
605 QUIT; 605 QUIT;
606 if (i > 0) 606 if (i > 0)
607 fprintf_filtered (stream, ", "); 607 fprintf_filtered (stream, ", ");
608 wrap_here (" "); 608 wrap_here (" ");
609 fputs_filtered (TYPE_FIELD_NAME (type, i), stream); 609 fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
610 » if (lastval != TYPE_FIELD_BITPOS (type, i)) 610 » if (lastval != TYPE_FIELD_ENUMVAL (type, i))
611 { 611 {
612 » fprintf_filtered (stream, " = %d", TYPE_FIELD_BITPOS (type, i)); 612 » fprintf_filtered (stream, " = %s",
613 » lastval = TYPE_FIELD_BITPOS (type, i); 613 » » » » plongest (TYPE_FIELD_ENUMVAL (type, i)));
614 » lastval = TYPE_FIELD_ENUMVAL (type, i);
614 } 615 }
615 lastval++; 616 lastval++;
616 } 617 }
617 fprintf_filtered (stream, ")"); 618 fprintf_filtered (stream, ")");
618 } 619 }
619 } 620 }
OLDNEW
« no previous file with comments | « gdb/m2-lang.c ('k') | gdb/m2-valprint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698