2002-03-07 Chris Demetriou <cgd@broadcom.com>
authorChris Demetriou <cgd@google.com>
Fri, 8 Mar 2002 00:36:32 +0000 (00:36 +0000)
committerChris Demetriou <cgd@google.com>
Fri, 8 Mar 2002 00:36:32 +0000 (00:36 +0000)
        * igen.c (print_itrace_format): Add support for a new "%#lx" format.

sim/igen/ChangeLog
sim/igen/igen.c

index ea88fb0ad069310bbd51bc66120f2b92fc83bdd9..a65864b66449ef6b870207712e4651f8899abfde 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-07  Chris Demetriou  <cgd@broadcom.com>
+
+       * igen.c (print_itrace_format): Add support for a new "%#lx" format.
+
 Tue May 23 21:39:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * configure: Regenerated to track ../common/aclocal.m4 changes.
index 094f0cd43bb6f0006e9b5faa0b754826402fc6d2..9e45501086f41dd9f32b12e6b0aaf505bfecb4dc 100644 (file)
@@ -445,6 +445,17 @@ print_itrace_format (lf *file,
                      lf_write (file, param, strlen_param);
                    }
                }
+             else if (strncmp (fmt, "%#lx<", 5) == 0)
+               /* simple hex with 0x prefix*/
+               {
+                 if (pass == 1)
+                   lf_printf (file, "%%#lx");
+                 else
+                   {
+                     lf_printf (file, "(unsigned long) ");
+                     lf_write (file, param, strlen_param);
+                   }
+               }
              else if (strncmp (fmt, "%08lx<", 6) == 0)
                /* simple hex */
                {