~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to opcodes/maxq-dis.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Instruction printing code for the MAXQ
2
2
 
3
 
   Copyright 2004, 2005, 2007 Free Software Foundation, Inc.
 
3
   Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4
4
 
5
5
   Written by Vineet Sharma(vineets@noida.hcltech.com) Inderpreet
6
6
   S.(inderpreetb@noida.hcltech.com)
151
151
get_reg_name (unsigned char reg_code, type1 arg_pos)
152
152
{
153
153
  unsigned char module;
154
 
  unsigned char index;
 
154
  unsigned char r_index;
155
155
  int ix = 0;
156
156
  reg_entry const *reg_x;
157
157
  mem_access_syntax const *syntax;
158
158
  mem_access *mem_acc;
159
159
 
160
160
  module = 0;
161
 
  index = 0;
 
161
  r_index = 0;
162
162
  module = (reg_code & MASK_LOW_BYTE);
163
 
  index = (reg_code & MASK_HIGH_BYTE);
164
 
  index = index >> 4;
 
163
  r_index = (reg_code & MASK_HIGH_BYTE);
 
164
  r_index = r_index >> 4;
165
165
 
166
166
  /* Search the system register table.  */
167
167
  for (reg_x = &system_reg_table[0]; reg_x->reg_name != NULL; ++reg_x)
168
 
    if ((reg_x->Mod_name == module) && (reg_x->Mod_index == index))
 
168
    if ((reg_x->Mod_name == module) && (reg_x->Mod_index == r_index))
169
169
      return reg_x->reg_name;
170
170
 
171
171
  /* Serch pheripheral table.  */
173
173
    {
174
174
      reg_x = &new_reg_table[ix];
175
175
 
176
 
      if ((reg_x->Mod_name == module) && (reg_x->Mod_index == index))
 
176
      if ((reg_x->Mod_name == module) && (reg_x->Mod_index == r_index))
177
177
        return reg_x->reg_name;
178
178
    }
179
179
 
195
195
    }
196
196
 
197
197
  memset (unres_reg_name, 0, 20);
198
 
  sprintf (unres_reg_name, "%01x%01xh", index, module);
 
198
  sprintf (unres_reg_name, "%01x%01xh", r_index, module);
199
199
 
200
200
  return unres_reg_name;
201
201
}