diff options
author | Chris Demetriou <cgd@google.com> | 2002-03-08 00:36:32 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2002-03-08 00:36:32 +0000 |
commit | e836db8ab1609652acdc3ba84b1a0cfff5ae9b47 (patch) | |
tree | 03697ff3ebb87c8a2769e91d0e55c093320762f6 /sim/igen | |
parent | b668c0d26ac423d94aa03e24ed1d7776beeee3cb (diff) | |
download | gdb-e836db8ab1609652acdc3ba84b1a0cfff5ae9b47.tar.gz |
2002-03-07 Chris Demetriou <cgd@broadcom.com>
* igen.c (print_itrace_format): Add support for a new "%#lx" format.
Diffstat (limited to 'sim/igen')
-rw-r--r-- | sim/igen/ChangeLog | 4 | ||||
-rw-r--r-- | sim/igen/igen.c | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog index ea88fb0ad06..a65864b6644 100644 --- a/sim/igen/ChangeLog +++ b/sim/igen/ChangeLog @@ -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. diff --git a/sim/igen/igen.c b/sim/igen/igen.c index 094f0cd43bb..9e45501086f 100644 --- a/sim/igen/igen.c +++ b/sim/igen/igen.c @@ -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 */ { |