+2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * gdb.trace/unavailable-dwarf-piece.c (foo): Add foo_start_lbl label.
+ (bar): Add bar_start_lbl label.
+ * gdb.trace/unavailable-dwarf-piece.exp: Use foo/bar_start_lbl instead
+ of foo/bar for emitting DWARF and tracing.
+
2016-03-06 Sergio Durigan Junior <sergiodj@redhat.com>
* analyze-racy-logs.py: Set executable bit.
int
foo (struct s x, struct s y, struct s z)
{
+ asm (".global foo_start_lbl\nfoo_start_lbl:");
dummy ();
asm (".global foo_end_lbl\nfoo_end_lbl:");
return 0;
int
bar (struct t x, struct t y, struct t z)
{
+ asm (".global bar_start_lbl\nbar_start_lbl:");
dummy ();
asm (".global bar_end_lbl\nbar_end_lbl:");
return 0;
DW_TAG_subprogram {
{name foo}
{decl_file 1 sdata}
- {low_pc foo addr}
+ {low_pc foo_start_lbl addr}
{high_pc foo_end_lbl addr}
} {
DW_TAG_formal_parameter {
DW_TAG_subprogram {
{name bar}
{decl_file 1 sdata}
- {low_pc bar addr}
+ {low_pc bar_start_lbl addr}
{high_pc bar_end_lbl addr}
} {
DW_TAG_formal_parameter {
gdb_breakpoint "end"
with_test_prefix "tracing foo" {
- gdb_test "trace foo" ".*"
+ gdb_test "trace *foo_start_lbl" ".*"
gdb_test_no_output "tstart"
gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*"
gdb_test_no_output "tstop"
}
with_test_prefix "tracing bar" {
- gdb_test "trace bar" ".*"
+ gdb_test "trace *bar_start_lbl" ".*"
gdb_test_no_output "tstart"
gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*"
gdb_test_no_output "tstop"