Diff of /libutil++/op_bfd.cpp [9ea7fb] .. [1081b2]  Maximize  Restore

Switch to unified view

a/libutil++/op_bfd.cpp b/libutil++/op_bfd.cpp
...
...
106
    extra_found_images(extra_images),
106
    extra_found_images(extra_images),
107
    file_size(-1),
107
    file_size(-1),
108
    anon_obj(false),
108
    anon_obj(false),
109
    vma_adj(0)
109
    vma_adj(0)
110
{
110
{
111
    int fd =  -1;
111
    fd =  -1;
112
    struct stat st;
112
    struct stat st;
113
    // after creating all symbol it's convenient for user code to access
113
    // after creating all symbol it's convenient for user code to access
114
    // symbols through a vector. We use an intermediate list to avoid a
114
    // symbols through a vector. We use an intermediate list to avoid a
115
    // O(N�) behavior when we will filter vector element below
115
    // O(N�) behavior when we will filter vector element below
116
    symbols_found_t symbols;
116
    symbols_found_t symbols;
...
...
176
176
177
    get_symbols(symbols);
177
    get_symbols(symbols);
178
178
179
out:
179
out:
180
    add_symbols(symbols, symbol_filter);
180
    add_symbols(symbols, symbol_filter);
181
  if (fd != -1)
182
      close(fd);
183
    return;
181
    return;
184
out_fail:
182
out_fail:
185
    ibfd.close();
183
    ibfd.close();
186
    dbfd.close();
184
    dbfd.close();
187
    // make the fake symbol fit within the fake file
185
    // make the fake symbol fit within the fake file
...
...
190
}
188
}
191
189
192
190
193
op_bfd::~op_bfd()
191
op_bfd::~op_bfd()
194
{
192
{
193
  if (fd != -1)
194
      close(fd);
195
}
195
}
196
196
197
197
198
unsigned long op_bfd::get_start_offset(bfd_vma vma) const
198
unsigned long op_bfd::get_start_offset(bfd_vma vma) const
199
{
199
{

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks