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

« back to all changes in this revision

Viewing changes to bfd/merge.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:
136
136
sec_merge_hash_lookup (struct sec_merge_hash *table, const char *string,
137
137
                       unsigned int alignment, bfd_boolean create)
138
138
{
139
 
  register const unsigned char *s;
140
 
  register unsigned long hash;
141
 
  register unsigned int c;
 
139
  const unsigned char *s;
 
140
  unsigned long hash;
 
141
  unsigned int c;
142
142
  struct sec_merge_hash_entry *hashp;
143
143
  unsigned int len, i;
144
 
  unsigned int index;
 
144
  unsigned int _index;
145
145
 
146
146
  hash = 0;
147
147
  len = 0;
192
192
      len = table->entsize;
193
193
    }
194
194
 
195
 
  index = hash % table->table.size;
196
 
  for (hashp = (struct sec_merge_hash_entry *) table->table.table[index];
 
195
  _index = hash % table->table.size;
 
196
  for (hashp = (struct sec_merge_hash_entry *) table->table.table[_index];
197
197
       hashp != NULL;
198
198
       hashp = (struct sec_merge_hash_entry *) hashp->root.next)
199
199
    {
263
263
sec_merge_add (struct sec_merge_hash *tab, const char *str,
264
264
               unsigned int alignment, struct sec_merge_sec_info *secinfo)
265
265
{
266
 
  register struct sec_merge_hash_entry *entry;
 
266
  struct sec_merge_hash_entry *entry;
267
267
 
268
268
  entry = sec_merge_hash_lookup (tab, str, alignment, TRUE);
269
269
  if (entry == NULL)