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: [patch/rfc] post-process the `maint print architecture' fromgdb_mbuild.sh


Thoughts?

The idea sounds good to me.

Instead of ed'ing Gdb.log, how about just naming the first file
Gdb.out or Gdb-raw.log, and then sed'ing into Gdb.log.
I can save the unedited output.

To make sed worthwhile, I'd need to construct a sed script that did all substitutions in a single pass. Otherwize the script ends up repeating:
sed -e ... < input > output
mv output input
which is equivalent to ed. That, I think, is something for a rainy day.

Andrew



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