This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: testcase for "absolute source" patch
Hello Michael,
On Wed, Aug 18, 2004 at 11:31:08AM -0400, Michael Chastain wrote:
> So it's okay to leave your "main" with no return type.
> But take out the "-w" from gdb_compile.
I've already specified the return type and removed the flag. I just
wanted to know what I'm doing.
> You would need a hook inside call_remote to send several commands to
> the same shell. Ick!
What about just having pre_cmd and post_cmd in call_remote? Can the same
technique be applied to whatever gets called from gdb_test?
> Alternatively, you would need to forsake gdb_compile and do everything
> at the "remote_exec host cd ... && gcc ... && cd ...", basically
> duplicating the machinery inside default_target_compile to process
> the options (but you know what your own options are) and to find the
> name of the c compiler.
This would work for the compilation, but I'm not sure about gdb_test. Is
there an introduction about the build and host interaction during
gdb_start, gdb_test and gdb_exit?
With kind regards,
Baurjan.