URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc
- from Rev 523 to Rev 524
- ↔ Reverse comparison
Rev 523 → Rev 524
/trunk/gnu-src/gdb-7.2/gdb/or32-tdep.c
600,13 → 600,13
static char *or32_gdb_reg_names[OR32_TOTAL_NUM_REGS] = |
{ |
/* general purpose registers */ |
"r0", "sp", "fp", "r3", "r4", "r5", "r6", "r7", |
"r8", "lr", "r10", "r11", "r12", "r13", "r14", "r15", |
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", |
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", |
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", |
"r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31", |
|
/* previous program counter, next program counter and status register */ |
"ppc", "pc", "sr" |
"ppc", "npc", "sr" |
|
/* Floating point and vector registers may appear as pseudo registers in |
the future. */ |
971,13 → 971,17
or32_unwind_pc (struct gdbarch *gdbarch, |
struct frame_info *next_frame) |
{ |
if (frame_debug) |
{ |
fprintf_unfiltered (gdb_stdlog, "or32_unwind_pc, next_frame=%d\n", |
frame_relative_level (next_frame)); |
} |
|
CORE_ADDR pc = frame_unwind_register_unsigned (next_frame, OR32_NPC_REGNUM); |
|
if (frame_debug) |
{ |
fprintf_unfiltered (gdb_stdlog, |
"or32_unwind_pc, next_frame = 0x%p, pc = 0x%p\n", |
next_frame, (void *) pc); |
fprintf_unfiltered (gdb_stdlog, "or32_unwind_pc, pc=0x%p\n", (void *) pc); |
} |
|
return pc; |
1000,13 → 1004,17
or32_unwind_sp (struct gdbarch *gdbarch, |
struct frame_info *next_frame) |
{ |
if (frame_debug) |
{ |
fprintf_unfiltered (gdb_stdlog, "or32_unwind_sp, next_frame=%d\n", |
frame_relative_level (next_frame)); |
} |
|
CORE_ADDR sp = frame_unwind_register_unsigned (next_frame, OR32_SP_REGNUM); |
|
if (frame_debug) |
{ |
fprintf_unfiltered (gdb_stdlog, |
"or32_unwind_sp, next_frame = 0x%p, sp = 0x%p\n", |
next_frame, (void *) sp); |
fprintf_unfiltered (gdb_stdlog, "or32_unwind_sp, sp=0x%p\n", (void *) sp); |
} |
|
return sp; |
/trunk/gnu-src/gdb-7.2/gdb/infcmd.c
2050,14 → 2050,20
{ |
/* User registers lie completely outside of the range of |
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) |
+ gdbarch_num_pseudo_regs (gdbarch)) |
{ |
struct value_print_options opts; |
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'); |
print_scalar_formatted (value_contents (val), |
check_typedef (value_type (val)), |
/trunk/gnu-src/gdb-7.2/gdb/ChangeLog.or32
1,3 → 1,12
2011-04-13 Jeremy Bennett <jeremy.bennett@embecosm.com> |
|
* or32-tdep.c (or32_register_name): revert to use r1, r2, r9 and |
npc. |
(or32_unwind_sp, or32_unwind_pc): Added frame debug support. |
* regformats/reg-or32.dat: revert to use npc in lieu of pc. |
* infcmd.c (registers_info): print only the register under |
consideration in a field width of 15. |
|
2011-04-09 Jeremy Bennett <jeremy.bennett@embecosm.com> |
|
* or32-tdep.c (or32_register_name): Use the sp, fp, lr and pc as |
/trunk/gnu-src/boards/or32-linux-sim.exp
161,7 → 161,7
#is used as a regsub pattern (2 lines down), so we replace all "+"s with "." |
regsub -all "\\+" $cmd "." cmd |
regsub -all $cmd "$expect_out(buffer)" {} output |
regsub $shell_prompt $output {} output |
regsub "\(~ \)?$shell_prompt" $output {} output |
regsub -all "\[\r\n\]" $output {} output |
|
#Check the return status. Use a short timeout for this. |
171,7 → 171,7
|
#Regsub the output to get the status number |
regsub -all {echo \$\?} $expect_out(buffer) {} status |
regsub $shell_prompt $status {} status |
regsub "\(~ \)?$shell_prompt" $status {} status |
regsub -all "\[\r\n \]" $status {} status |
|
#This probably isn't neccessary.. |
368,7 → 368,7
set_board_info shell_prompt "# " |
set_board_info telnet_username "root" |
set_board_info telnet_password "" |
set_board_info telnet_exec_timeout 300 |
set_board_info telnet_exec_timeout 1200 |
|
set_board_info file_transfer ftp |
set_board_info ftp_username root |
/trunk/gnu-src/boards/or32-elf-sim.exp
51,7 → 51,7
# It's sufficient just to specify -mnewlib, but we explicitly specify |
# -mboard=or1ksim, althoug at present that is the default anyway. |
set_board_info compiler "[find_gcc]" |
set_board_info cflags "-mnewlib -mboard=or1ksim" |
set_board_info cflags "-mboard=or1ksim" |
|
# No linker script needed. |
set_board_info ldscript "" |