Lines 125-131
core_next_thread (Dwfl *dwfl __attribute__ ((unused)), void *dwfl_arg,
Link Here
|
125 |
&desc_offset)) > 0) |
125 |
&desc_offset)) > 0) |
126 |
{ |
126 |
{ |
127 |
/* Do not check NAME for now, help broken Linux kernels. */ |
127 |
/* Do not check NAME for now, help broken Linux kernels. */ |
128 |
const char *name = note_data->d_buf + name_offset; |
128 |
const char *name = (nhdr.n_namesz == 0 |
|
|
129 |
? "" : note_data->d_buf + name_offset); |
129 |
const char *desc = note_data->d_buf + desc_offset; |
130 |
const char *desc = note_data->d_buf + desc_offset; |
130 |
GElf_Word regs_offset; |
131 |
GElf_Word regs_offset; |
131 |
size_t nregloc; |
132 |
size_t nregloc; |
Lines 178-184
core_set_initial_registers (Dwfl_Thread *thread, void *thread_arg_voidp)
Link Here
|
178 |
/* __libdwfl_attach_state_for_core already verified the note is there. */ |
179 |
/* __libdwfl_attach_state_for_core already verified the note is there. */ |
179 |
assert (getnote_err != 0); |
180 |
assert (getnote_err != 0); |
180 |
/* Do not check NAME for now, help broken Linux kernels. */ |
181 |
/* Do not check NAME for now, help broken Linux kernels. */ |
181 |
const char *name = note_data->d_buf + name_offset; |
182 |
const char *name = (nhdr.n_namesz == 0 |
|
|
183 |
? "" : note_data->d_buf + name_offset); |
182 |
const char *desc = note_data->d_buf + desc_offset; |
184 |
const char *desc = note_data->d_buf + desc_offset; |
183 |
GElf_Word regs_offset; |
185 |
GElf_Word regs_offset; |
184 |
size_t nregloc; |
186 |
size_t nregloc; |
Lines 367-373
dwfl_core_file_attach (Dwfl *dwfl, Elf *core)
Link Here
|
367 |
&nhdr, &name_offset, &desc_offset)) > 0) |
369 |
&nhdr, &name_offset, &desc_offset)) > 0) |
368 |
{ |
370 |
{ |
369 |
/* Do not check NAME for now, help broken Linux kernels. */ |
371 |
/* Do not check NAME for now, help broken Linux kernels. */ |
370 |
const char *name = note_data->d_buf + name_offset; |
372 |
const char *name = (nhdr.n_namesz == 0 |
|
|
373 |
? "" : note_data->d_buf + name_offset); |
371 |
const char *desc = note_data->d_buf + desc_offset; |
374 |
const char *desc = note_data->d_buf + desc_offset; |
372 |
GElf_Word regs_offset; |
375 |
GElf_Word regs_offset; |
373 |
size_t nregloc; |
376 |
size_t nregloc; |
374 |
|
377 |
|