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

« back to all changes in this revision

Viewing changes to bfd/vms-tir.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:
2305
2305
 
2306
2306
   This is still under construction and therefore not documented.  */
2307
2307
 
2308
 
static void start_etir_record (bfd *abfd, int index, uquad offset,
 
2308
static void start_etir_record (bfd *abfd, int sec_index, uquad offset,
2309
2309
                               bfd_boolean justoffset);
2310
2310
static void start_first_etbt_record (bfd *abfd);
2311
2311
static void start_another_etbt_record (bfd *abfd);
2312
2312
static void sto_imm (bfd *abfd, bfd_size_type, unsigned char *, bfd_vma vaddr,
2313
 
                     int index, const char *name);
 
2313
                     int sec_index, const char *name);
2314
2314
static void end_etir_record (bfd *abfd);
2315
2315
static void etir_output_check (bfd *abfd, asection *section, bfd_vma vaddr,
2316
2316
                               int checklen);
2318
2318
/* Start ETIR record for section #index at virtual addr offset.  */
2319
2319
 
2320
2320
static void
2321
 
start_etir_record (bfd * abfd, int index, uquad offset, bfd_boolean justoffset)
 
2321
start_etir_record (bfd * abfd, int sec_index, uquad offset, bfd_boolean justoffset)
2322
2322
{
2323
2323
  if (!justoffset)
2324
2324
    {
2329
2329
 
2330
2330
  /* Push start offset.  */
2331
2331
  _bfd_vms_output_begin (abfd, ETIR_S_C_STA_PQ, -1);
2332
 
  _bfd_vms_output_long (abfd, (unsigned long) index);
 
2332
  _bfd_vms_output_long (abfd, (unsigned long) sec_index);
2333
2333
  _bfd_vms_output_quad (abfd, (uquad) offset);
2334
2334
  _bfd_vms_output_flush (abfd);
2335
2335
 
2346
2346
}
2347
2347
 
2348
2348
/* Output a STO_IMM command for SSIZE bytes of data from CPR at virtual
2349
 
   address VADDR in section specified by INDEX and NAME.  */
 
2349
   address VADDR in section specified by SEC_INDEX and NAME.  */
2350
2350
 
2351
2351
static void
2352
2352
sto_imm (bfd *abfd, bfd_size_type ssize, unsigned char *cptr, bfd_vma vaddr,
2353
 
         int index, const char *name)
 
2353
         int sec_index, const char *name)
2354
2354
{
2355
2355
  bfd_size_type size;
2356
2356
 
2372
2372
          if (name [0] && name[1] == 'v' && !strcmp (name, ".vmsdebug"))
2373
2373
            start_another_etbt_record (abfd);
2374
2374
          else
2375
 
            start_etir_record (abfd, index, vaddr, FALSE);
 
2375
            start_etir_record (abfd, sec_index, vaddr, FALSE);
2376
2376
 
2377
2377
          size = _bfd_vms_output_check (abfd, 0);       /* get max size */
2378
2378
          if (size > ssize)                     /* more than what's left ? */