[patch/rfc] post-process the `maint print architecture' from gdb_mbuild.sh
Andrew Cagney
ac131313@redhat.com
Wed Jan 8 23:59:00 GMT 2003
> On Tue, Jan 07, 2003 at 10:10:36AM -0500, Andrew Cagney wrote:
>
>> >>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.
>
>
> It's as simple as "sed -e ... -e ... -e ... -e ... < input > output",
> isn't it? Or via -f and a file, the same thing.
Yes - `construct a sed script'. I've done it (attached, committed).
Doesn't make it any faster though. The slow bit is:
+ func="`addr2line -f -e ./gdb/gdb -s ${addr} | sed -n -e 1p`"
enjoy,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030108/4aa0100a/attachment.ksh>
More information about the Gdb-patches
mailing list