mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no files.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-05-03 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
|
||||||
|
files.
|
||||||
|
|
||||||
2012-05-03 Yao Qi <yao@codesourcery.com>
|
2012-05-03 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* i386-tdep.c (i386_fetch_pointer_argument): Remove extra
|
* i386-tdep.c (i386_fetch_pointer_argument): Remove extra
|
||||||
|
@ -2833,7 +2833,8 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
|
|||||||
per_cu = dw2_get_cu (MAYBE_SWAP (vec[1]));
|
per_cu = dw2_get_cu (MAYBE_SWAP (vec[1]));
|
||||||
|
|
||||||
file_data = dw2_get_file_names (objfile, per_cu);
|
file_data = dw2_get_file_names (objfile, per_cu);
|
||||||
if (file_data == NULL)
|
if (file_data == NULL
|
||||||
|
|| file_data->num_file_names == 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return file_data->file_names[file_data->num_file_names - 1];
|
return file_data->file_names[file_data->num_file_names - 1];
|
||||||
|
Reference in New Issue
Block a user