* dwarf2read.c (dwarf2_get_section_info): Handle case where no
DWARF data is available.
This commit is contained in:
parent
38963c97b7
commit
a3b2a86bb7
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-17 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_get_section_info): Handle case where no
|
||||||
|
DWARF data is available.
|
||||||
|
|
||||||
2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
|
2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* symfile.c (generic_load): Reset breakpoints after loading.
|
* symfile.c (generic_load): Reset breakpoints after loading.
|
||||||
|
|
|
@ -1397,6 +1397,16 @@ dwarf2_get_section_info (struct objfile *objfile, const char *section_name,
|
||||||
struct dwarf2_per_objfile *data
|
struct dwarf2_per_objfile *data
|
||||||
= objfile_data (objfile, dwarf2_objfile_data_key);
|
= objfile_data (objfile, dwarf2_objfile_data_key);
|
||||||
struct dwarf2_section_info *info;
|
struct dwarf2_section_info *info;
|
||||||
|
|
||||||
|
/* We may see an objfile without any DWARF, in which case we just
|
||||||
|
return nothing. */
|
||||||
|
if (data == NULL)
|
||||||
|
{
|
||||||
|
*sectp = NULL;
|
||||||
|
*bufp = NULL;
|
||||||
|
*sizep = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (section_is_p (section_name, EH_FRAME_SECTION))
|
if (section_is_p (section_name, EH_FRAME_SECTION))
|
||||||
info = &data->eh_frame;
|
info = &data->eh_frame;
|
||||||
else if (section_is_p (section_name, FRAME_SECTION))
|
else if (section_is_p (section_name, FRAME_SECTION))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue