mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-26 07:19:16 +08:00
* dwarf2read.c (read_func_scope): Re-indent comment.
This commit is contained in:
@ -6,6 +6,8 @@
|
|||||||
(read_func_scope): Use cu->language, not cu_language. Pass 'cu'
|
(read_func_scope): Use cu->language, not cu_language. Pass 'cu'
|
||||||
argument to 'die_specification'.
|
argument to 'die_specification'.
|
||||||
|
|
||||||
|
* dwarf2read.c (read_func_scope): Re-indent comment.
|
||||||
|
|
||||||
2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
|
2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
|
||||||
|
|
||||||
* breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
|
* breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
|
||||||
|
@ -2173,27 +2173,27 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
|
|||||||
{
|
{
|
||||||
struct die_info *spec_die = die_specification (die, cu);
|
struct die_info *spec_die = die_specification (die, cu);
|
||||||
|
|
||||||
/* NOTE: carlton/2004-01-23: We have to be careful in the
|
/* NOTE: carlton/2004-01-23: We have to be careful in the
|
||||||
presence of DW_AT_specification. For example, with GCC
|
presence of DW_AT_specification. For example, with GCC 3.4,
|
||||||
3.4, given the code
|
given the code
|
||||||
|
|
||||||
namespace N {
|
namespace N {
|
||||||
void foo() {
|
void foo() {
|
||||||
// Definition of N::foo.
|
// Definition of N::foo.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
then we'll have a tree of DIEs like this:
|
then we'll have a tree of DIEs like this:
|
||||||
|
|
||||||
1: DW_TAG_compile_unit
|
1: DW_TAG_compile_unit
|
||||||
2: DW_TAG_namespace // N
|
2: DW_TAG_namespace // N
|
||||||
3: DW_TAG_subprogram // declaration of N::foo
|
3: DW_TAG_subprogram // declaration of N::foo
|
||||||
4: DW_TAG_subprogram // definition of N::foo
|
4: DW_TAG_subprogram // definition of N::foo
|
||||||
DW_AT_specification // refers to die #3
|
DW_AT_specification // refers to die #3
|
||||||
|
|
||||||
Thus, when processing die #4, we have to pretend that
|
Thus, when processing die #4, we have to pretend that we're
|
||||||
we're in the context of its DW_AT_specification, namely
|
in the context of its DW_AT_specification, namely the contex
|
||||||
the contex of die #3. */
|
of die #3. */
|
||||||
|
|
||||||
if (spec_die != NULL)
|
if (spec_die != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user