This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using directive patch


>>>>> "Sami" == Sami Wagiaalla <swagiaal@redhat.com> writes:

Sami> Here is a second version of the patch after incorporating the
Sami> suggestions and adding a test case.

Looking good.

Sami> +  if (imported_name == NULL)
Sami> +    {
Sami> +      /* C++ imports from std:: DW_TAG_base_type with no DW_AT_name - why?  */
Sami> +      return;

I'm curious about this comment -- could you say more?
Is this a g++ bug?

Sami> +send_gdb "print a\n"
Sami> +gdb_expect {
Sami> +   -re "\\$\[0-9\]* = 1" { pass "print a" }
Sami> +   -re ".*$gdb_prompt $" { fail "print a" }
Sami> +   timeout { fail "(timeout) print a" }
Sami> +}

You might like gdb_test, which makes it somewhat simpler to write a
send-and-response sequence like this.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]