mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-02 10:47:11 +08:00
* dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2012-03-09 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
|
||||||
|
|
||||||
2012-03-08 Joel Brobecker <brobecker@adacore.com>
|
2012-03-08 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
|
* ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
|
||||||
|
@ -10707,6 +10707,8 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu)
|
|||||||
|
|
||||||
static struct attribute *
|
static struct attribute *
|
||||||
dwarf2_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu)
|
dwarf2_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu)
|
||||||
|
{
|
||||||
|
for (;;)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
struct attribute *spec = NULL;
|
struct attribute *spec = NULL;
|
||||||
@ -10720,10 +10722,10 @@ dwarf2_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu)
|
|||||||
spec = &die->attrs[i];
|
spec = &die->attrs[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spec)
|
if (!spec)
|
||||||
{
|
break;
|
||||||
|
|
||||||
die = follow_die_ref (die, spec, &cu);
|
die = follow_die_ref (die, spec, &cu);
|
||||||
return dwarf2_attr (die, name, cu);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user