URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 330 |
Rev 524 |
Line 2048... |
Line 2048... |
|
|
if (regnum >= 0)
|
if (regnum >= 0)
|
{
|
{
|
/* User registers lie completely outside of the range of
|
/* User registers lie completely outside of the range of
|
normal registers. Catch them early so that the target
|
normal registers. Catch them early so that the target
|
never sees them. */
|
never sees them.
|
|
|
|
13-Apr-11 Jeremy Bennett: Formatting works for multiple
|
|
register names on the command line and matches the default
|
|
register printing. */
|
if (regnum >= gdbarch_num_regs (gdbarch)
|
if (regnum >= gdbarch_num_regs (gdbarch)
|
+ gdbarch_num_pseudo_regs (gdbarch))
|
+ gdbarch_num_pseudo_regs (gdbarch))
|
{
|
{
|
struct value_print_options opts;
|
struct value_print_options opts;
|
struct value *val = value_of_user_reg (regnum, frame);
|
struct value *val = value_of_user_reg (regnum, frame);
|
|
int regname_len = (int) (end - start);
|
|
|
printf_filtered ("%s: ", start);
|
printf_filtered ("%.*s", regname_len, start);
|
|
print_spaces_filtered (15 - regname_len, gdb_stdout);
|
get_formatted_print_options (&opts, 'x');
|
get_formatted_print_options (&opts, 'x');
|
print_scalar_formatted (value_contents (val),
|
print_scalar_formatted (value_contents (val),
|
check_typedef (value_type (val)),
|
check_typedef (value_type (val)),
|
&opts, 0, gdb_stdout);
|
&opts, 0, gdb_stdout);
|
printf_filtered ("\n");
|
printf_filtered ("\n");
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.