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 | 6225b4b7fc5b7e3e89857093bd7fef2a6aec2fb7 (patch) | |
tree | b7b5bac03e3b3558fa4a970488b53ba63b477be8 /sim/igen/igen.c | |
parent | 8d0a607a9772d3ea561f893604cc751eed138074 (diff) | |
download | gdb-6225b4b7fc5b7e3e89857093bd7fef2a6aec2fb7.zip gdb-6225b4b7fc5b7e3e89857093bd7fef2a6aec2fb7.tar.gz gdb-6225b4b7fc5b7e3e89857093bd7fef2a6aec2fb7.tar.bz2 |
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/igen.c')
-rw-r--r-- | sim/igen/igen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/igen/igen.c b/sim/igen/igen.c index 094f0cd..9e45501 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 */ { |