This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/13160] bfin simulator does not build on Darwin
- From: "vapier at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 10 Mar 2015 04:33:15 +0000
- Subject: [Bug sim/13160] bfin simulator does not build on Darwin
- Auto-submitted: auto-generated
- References: <bug-13160-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13160
--- Comment #5 from Mike Frysinger <vapier at gentoo dot org> ---
(In reply to Chris Johns from comment #4)
my guess is you're copying & pasting the command from your terminal and that
isn't preserving the tabs. instead you're pasting a command that uses spaces.
you want something like:
bfin-elf-objdump -d -z linux-fixed-code.o | \
sed -n -e 's:^[^\t]*\t:0x:' -e '/^0x/{s:\t.*::;s: *$:,:;s: :, 0x:g;p}'
i don't know why that's failing as, afaict, the code is POSIX compliant. maybe
Darwin has a crappy implementation ? i've tried `sed --posix` and `minised`
and `busybox sed` and they all work (well, almost ... minised doesn't handle
tabs correctly).
maybe it can't handle a nested print ? what if you combine it with the s:
bfin-elf-objdump -d -z linux-fixed-code.o | \
sed -n -e 's:^[^\t]*\t:0x:' -e '/^0x/{s:\t.*::;s: *$:,:;s: :, 0x:gp}'
if that still fails, try unrolling it:
bfin-elf-objdump -d -z linux-fixed-code.o | \
sed -n -e 's:^[^\t]*\t:0x:' -e '/^0x/{s:\t.*::;s: *$:,:;s: :, 0x:g;
p
}'
--
You are receiving this mail because:
You are on the CC list for the bug.