~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to bfd/ptrace-core.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* BFD backend for core files which use the ptrace_user structure
2
 
   Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2002
 
2
   Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2002, 2003, 2004
3
3
   Free Software Foundation, Inc.
4
4
   The structure of this file is based on trad-core.c written by John Gilmore
5
5
   of Cygnus Support.
55
55
  PARAMS ((bfd *core_bfd, bfd *exec_bfd));
56
56
static void swap_abort PARAMS ((void));
57
57
 
58
 
/* ARGSUSED */
59
58
const bfd_target *
60
59
ptrace_unix_core_file_p (abfd)
61
60
     bfd *abfd;
146
145
    return 0;
147
146
}
148
147
 
149
 
/* ARGSUSED */
150
148
int
151
149
ptrace_unix_core_file_failing_signal (abfd)
152
150
     bfd *abfd;
154
152
  return abfd->tdata.trad_core_data->u.pt_sigframe.sig_num;
155
153
}
156
154
 
157
 
/* ARGSUSED */
158
155
bfd_boolean
159
156
ptrace_unix_core_file_matches_executable_p  (core_bfd, exec_bfd)
160
157
     bfd *core_bfd, *exec_bfd;
170
167
{
171
168
  abort (); /* This way doesn't require any declaration for ANSI to fuck up */
172
169
}
173
 
#define NO_GET  ((bfd_vma (*) PARAMS ((   const bfd_byte *))) swap_abort )
174
 
#define NO_PUT  ((void    (*) PARAMS ((bfd_vma, bfd_byte *))) swap_abort )
175
 
#define NO_SIGNED_GET \
176
 
  ((bfd_signed_vma (*) PARAMS ((const bfd_byte *))) swap_abort )
 
170
 
 
171
#define NO_GET ((bfd_vma (*) (const void *)) swap_abort)
 
172
#define NO_PUT ((void (*) (bfd_vma, void *)) swap_abort)
 
173
#define NO_GETS ((bfd_signed_vma (*) (const void *)) swap_abort)
 
174
#define NO_GET64 ((bfd_uint64_t (*) (const void *)) swap_abort)
 
175
#define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort)
 
176
#define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort)
177
177
 
178
178
const bfd_target ptrace_core_vec =
179
179
  {
188
188
    0,                                                     /* symbol prefix */
189
189
    ' ',                                                   /* ar_pad_char */
190
190
    16,                                                    /* ar_max_namelen */
191
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 64 bit data */
192
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 32 bit data */
193
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 16 bit data */
194
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 64 bit hdrs */
195
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 32 bit hdrs */
196
 
    NO_GET, NO_SIGNED_GET, NO_PUT,      /* 16 bit hdrs */
 
191
    NO_GET64, NO_GETS64, NO_PUT64,      /* 64 bit data */
 
192
    NO_GET, NO_GETS, NO_PUT,            /* 32 bit data */
 
193
    NO_GET, NO_GETS, NO_PUT,            /* 16 bit data */
 
194
    NO_GET64, NO_GETS64, NO_PUT64,      /* 64 bit hdrs */
 
195
    NO_GET, NO_GETS, NO_PUT,            /* 32 bit hdrs */
 
196
    NO_GET, NO_GETS, NO_PUT,            /* 16 bit hdrs */
197
197
 
198
198
    {                           /* bfd_check_format */
199
 
     _bfd_dummy_target,         /* unknown format */
200
 
     _bfd_dummy_target,         /* object file */
201
 
     _bfd_dummy_target,         /* archive */
202
 
     ptrace_unix_core_file_p    /* a core file */
 
199
      _bfd_dummy_target,                /* unknown format */
 
200
      _bfd_dummy_target,                /* object file */
 
201
      _bfd_dummy_target,                /* archive */
 
202
      ptrace_unix_core_file_p           /* a core file */
203
203
    },
204
204
    {                           /* bfd_set_format */
205
 
     bfd_false, bfd_false,
206
 
     bfd_false, bfd_false
 
205
      bfd_false, bfd_false,
 
206
      bfd_false, bfd_false
207
207
    },
208
208
    {                           /* bfd_write_contents */
209
 
     bfd_false, bfd_false,
210
 
     bfd_false, bfd_false
 
209
      bfd_false, bfd_false,
 
210
      bfd_false, bfd_false
211
211
    },
212
212
 
213
 
       BFD_JUMP_TABLE_GENERIC (_bfd_generic),
214
 
       BFD_JUMP_TABLE_COPY (_bfd_generic),
215
 
       BFD_JUMP_TABLE_CORE (ptrace_unix),
216
 
       BFD_JUMP_TABLE_ARCHIVE (_bfd_noarchive),
217
 
       BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols),
218
 
       BFD_JUMP_TABLE_RELOCS (_bfd_norelocs),
219
 
       BFD_JUMP_TABLE_WRITE (_bfd_generic),
220
 
       BFD_JUMP_TABLE_LINK (_bfd_nolink),
221
 
       BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
 
213
    BFD_JUMP_TABLE_GENERIC (_bfd_generic),
 
214
    BFD_JUMP_TABLE_COPY (_bfd_generic),
 
215
    BFD_JUMP_TABLE_CORE (ptrace_unix),
 
216
    BFD_JUMP_TABLE_ARCHIVE (_bfd_noarchive),
 
217
    BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols),
 
218
    BFD_JUMP_TABLE_RELOCS (_bfd_norelocs),
 
219
    BFD_JUMP_TABLE_WRITE (_bfd_generic),
 
220
    BFD_JUMP_TABLE_LINK (_bfd_nolink),
 
221
    BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
222
222
 
223
223
    NULL,
224
224
 
225
225
    (PTR) 0                     /* backend_data */
226
 
};
 
226
  };
227
227
 
228
228
#endif /* PTRACE_CORE */