Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Use TYPE_CODE_CHAR for pascal char type
@ 2002-05-02  4:26 Pierre Muller
  2002-05-02 11:08 ` Michael Snyder
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Muller @ 2002-05-02  4:26 UTC (permalink / raw)
  To: gdb-patches

The patch below is necessary, because
due to some recent GDB change, pascal 
chars where not displayed as characters anymore.



2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>

	* p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
	for fondamental pascal 'char' type.


Index: p-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/p-lang.c,v
retrieving revision 1.6
diff -u -p -r1.6 p-lang.c
--- p-lang.c    2 May 2002 11:18:07 -0000       1.6
+++ p-lang.c    2 May 2002 11:21:12 -0000
@@ -293,7 +293,7 @@ pascal_create_fundamental_type (struct o
                         0, "void", objfile);
        break;
      case FT_CHAR:
-      type = init_type (TYPE_CODE_INT,
+      type = init_type (TYPE_CODE_CHAR,
                         TARGET_CHAR_BIT / TARGET_CHAR_BIT,
                         0, "char", objfile);
        break;



Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Use TYPE_CODE_CHAR for pascal char type
  2002-05-02  4:26 [PATCH] Use TYPE_CODE_CHAR for pascal char type Pierre Muller
@ 2002-05-02 11:08 ` Michael Snyder
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Snyder @ 2002-05-02 11:08 UTC (permalink / raw)
  To: Pierre Muller; +Cc: gdb-patches

Pierre Muller wrote:
> 
> The patch below is necessary, because
> due to some recent GDB change, pascal
> chars where not displayed as characters anymore.

OK, seems reasonable.

> 
> 2002-05-02  Pierre Muller  <muller@ics.u-strasbg.fr>
> 
>         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
>         for fondamental pascal 'char' type.
> 
> Index: p-lang.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/p-lang.c,v
> retrieving revision 1.6
> diff -u -p -r1.6 p-lang.c
> --- p-lang.c    2 May 2002 11:18:07 -0000       1.6
> +++ p-lang.c    2 May 2002 11:21:12 -0000
> @@ -293,7 +293,7 @@ pascal_create_fundamental_type (struct o
>                          0, "void", objfile);
>         break;
>       case FT_CHAR:
> -      type = init_type (TYPE_CODE_INT,
> +      type = init_type (TYPE_CODE_CHAR,
>                          TARGET_CHAR_BIT / TARGET_CHAR_BIT,
>                          0, "char", objfile);
>         break;
> 
> Pierre Muller
> Institut Charles Sadron
> 6,rue Boussingault
> F 67083 STRASBOURG CEDEX (France)
> mailto:muller@ics.u-strasbg.fr
> Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-02 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-02  4:26 [PATCH] Use TYPE_CODE_CHAR for pascal char type Pierre Muller
2002-05-02 11:08 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox