2014-03-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
+ * gdb.dwarf2/dw2-ifort-parameter.c (func): Define labels
+ 'func_start' and 'func_end' for the beginning and end of the
+ function code, respectively.
+ * gdb.dwarf2/dw2-ifort-parameter.exp: Use 'func_start' and
+ 'func_end' instead of 'func' and 'main'.
+
+2014-03-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
* gdb.dwarf2/dw2-ifort-parameter-debug.S: Remove.
* gdb.dwarf2/dw2-ifort-parameter.exp: Use Dwarf::assemble to
generate the debug info assembler source.
Dwarf::assemble $asm_file {
declare_labels int_label
- extern main func ptr
+ extern func_start func_end ptr
cu {} {
compile_unit {
{name file1.txt}
{language @DW_LANG_C}
- {low_pc func addr}
- {high_pc main addr}
+ {low_pc func_start addr}
+ {high_pc func_end addr}
} {
int_label: base_type {
{name int}
subprogram {
{external 1 flag}
{name func}
- {low_pc func addr}
- {high_pc main addr}
+ {low_pc func_start addr}
+ {high_pc func_end addr}
} {
formal_parameter {
{name param}