diff options
author | Petr Machata <pmachata@redhat.com> | 2015-02-23 15:41:52 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2015-03-31 16:25:07 +0200 |
commit | 6ef37366be4c2445b3efdba8520e0a4e7450581f (patch) | |
tree | d34f1550da90f2853956073fcda7b6963efe7f6d /ld | |
parent | 543b793377eb8c64f8c4e0e68cd3e6b39e857051 (diff) | |
download | gdb-6ef37366be4c2445b3efdba8520e0a4e7450581f.zip gdb-6ef37366be4c2445b3efdba8520e0a4e7450581f.tar.gz gdb-6ef37366be4c2445b3efdba8520e0a4e7450581f.tar.bz2 |
dwarf.exp: Allow generating a stub .debug_line section
Example of use:
Dwarf::assemble "foo.s" {
build_id 0102030405060708
declare_labels L;
cu {is_64 0 version 4 addr_size 8} {
DW_TAG_compile_unit {
{DW_AT_stmt_list $L DW_FORM_sec_offset}
} {
DW_TAG_subprogram {
# We can now reference the source file.
{DW_AT_decl_file 1 DW_FORM_data1}
}
}
}
lines {is_64 0 version 2 addr_size 8} L {
include_dir "foo"
include_dir "bar"
file_name "foo.c" 1
file_name "bar.c" 1
file_name "baz.c" 2
}
}
Signed-off-by: Petr Machata <pmachata@redhat.com>
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions