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

« back to all changes in this revision

Viewing changes to bfd/vms-hdr.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:
234
234
      _bfd_vms_output_long (abfd, MAX_OUTREC_SIZE);
235
235
    }
236
236
 
 
237
  /* Create module name from filename.  */
237
238
  if (bfd_get_filename (abfd) != 0)
238
239
    {
239
240
      /* Strip path and suffix information.  */
256
257
      if (fptr != NULL)
257
258
        fout = fptr + 1;
258
259
 
259
 
      /* Strip .obj suffix.  */
 
260
      /* Strip suffix.  */
260
261
      fptr = strrchr (fout, '.');
261
 
      if (fptr != 0 && strcasecmp (fptr, ".OBJ") == 0)
 
262
      if (fptr != 0)
262
263
        *fptr = 0;
263
264
 
264
265
      /* Convert to upper case and truncate at 31 characters.
1178
1179
             of debug info in the DST section, as well as the count of
1179
1180
             program sections (i.e. address spans) it contains.  */
1180
1181
          int modbeg = bfd_getl32 (ptr + DBG_S_L_DMT_MODBEG);
1181
 
          int size = bfd_getl32 (ptr + DBG_S_L_DST_SIZE);
 
1182
          int msize = bfd_getl32 (ptr + DBG_S_L_DST_SIZE);
1182
1183
          int count = bfd_getl16 (ptr + DBG_S_W_DMT_PSECT_COUNT);
1183
1184
          ptr += DBG_S_C_DMT_HEADER_SIZE;
1184
1185
 
1185
1186
#if VMS_DEBUG
1186
1187
          _bfd_vms_debug (3, "module: modbeg = %d, size = %d, count = %d\n",
1187
 
                          modbeg, size, count);
 
1188
                          modbeg, msize, count);
1188
1189
#endif
1189
1190
 
1190
1191
          /* We create a 'module' structure for each program section since
1198
1199
              int length = bfd_getl32 (ptr + DBG_S_L_DMT_PSECT_LENGTH);
1199
1200
              module = new_module (abfd);
1200
1201
              module->modbeg = modbeg;
1201
 
              module->size = size;
 
1202
              module->size = msize;
1202
1203
              module->low = start;
1203
1204
              module->high = start + length;
1204
1205
              module->next = list;
1396
1397
_bfd_vms_write_dbg (bfd *abfd ATTRIBUTE_UNUSED, int objtype ATTRIBUTE_UNUSED)
1397
1398
{
1398
1399
#if VMS_DEBUG
1399
 
  _bfd_vms_debug (2, "vms_write_dbg (%p, objtype)\n", abfd, objtype);
 
1400
  _bfd_vms_debug (2, "vms_write_dbg (%p, %d)\n", abfd, objtype);
1400
1401
#endif
1401
1402
 
1402
1403
  return 0;