This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: testcase for "absolute source" patch


Hello, Michael!

Attached is the new version.


I've got a couple of questions:

1. Just for my knowledge: I've found the "int main" requirement in C99
   5.1.2.2.1. But I couldn't find anything about function definitions
   without a return type defaulting to int (i.e., should the compiler
   treat the return type as int if it isn't specified?). Does C99 and
   previous standards say anything about that? Is it different for
   declarations and definitions?

2. As far as I could see, remote_exec host starts a new shell each time.
   How should one do the following right?

   remote_exec host cd ...
   remote_exec host gdb_compile ...
   remote_exec host cd ...

   I'm reluctant to write scripts since I have to do the same with
   gdb_test, too.


Changes:

* Remove the obsolete e-mail address.
* Add partial build != host support.
* Add comments before each proc.
* Fix indentation.
* Check for errors on system calls.
* Remove excessive quoting.
* Name the variables better.
* Save openp.c as a file.
* Make openp.c ANSI-compliant.
* Drop removing the test directory hierarchy.


With kind regards,
Baurjan.

Attachment: openp.exp
Description: Text document

int main(){return 0;}

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