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

« back to all changes in this revision

Viewing changes to opcodes/h8500-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:
97
97
      int rd = 0;
98
98
      int rs = 0;
99
99
      int disp = 0;
100
 
      int abs = 0;
 
100
      int abs_val = 0;
101
101
      int imm = 0;
102
102
      int pcrel = 0;
103
103
      int qim = 0;
154
154
                  break;
155
155
                case ABS24:
156
156
                  FETCH_DATA (info, buffer + byte + 3);
157
 
                  abs =
 
157
                  abs_val =
158
158
                    (buffer[byte] << 16)
159
159
                    | (buffer[byte + 1] << 8)
160
160
                    | (buffer[byte + 2]);
161
161
                  break;
162
162
                case ABS16:
163
163
                  FETCH_DATA (info, buffer + byte + 2);
164
 
                  abs = (buffer[byte] << 8) | (buffer[byte + 1]);
 
164
                  abs_val = (buffer[byte] << 8) | (buffer[byte + 1]);
165
165
                  break;
166
166
                case ABS8:
167
 
                  abs = (buffer[byte]);
 
167
                  abs_val = (buffer[byte]);
168
168
                  break;
169
169
                case IMM16:
170
170
                  FETCH_DATA (info, buffer + byte + 2);
265
265
              func (stream, "@-sp");
266
266
              break;
267
267
            case ABS24:
268
 
              func (stream, "@0x%0x:24", abs);
 
268
              func (stream, "@0x%0x:24", abs_val);
269
269
              break;
270
270
            case ABS16:
271
 
              func (stream, "@0x%0x:16", abs & 0xffff);
 
271
              func (stream, "@0x%0x:16", abs_val & 0xffff);
272
272
              break;
273
273
            case ABS8:
274
 
              func (stream, "@0x%0x:8", abs & 0xff);
 
274
              func (stream, "@0x%0x:8", abs_val & 0xff);
275
275
              break;
276
276
            case IMM16:
277
277
              func (stream, "#0x%0x:16", imm & 0xffff);
278
278
              break;
279
279
            case RLIST:
280
280
              {
281
 
                int i;
 
281
                int j;
282
282
                int nc = 0;
283
283
 
284
284
                func (stream, "(");
285
 
                for (i = 0; i < 8; i++)
 
285
                for (j = 0; j < 8; j++)
286
286
                  {
287
 
                    if (imm & (1 << i))
 
287
                    if (imm & (1 << j))
288
288
                      {
289
 
                        func (stream, "r%d", i);
 
289
                        func (stream, "r%d", j);
290
290
                        if (nc)
291
291
                          func (stream, ",");
292
292
                        nc = 1;