https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88745

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Eric Gallager from comment #1)
> I tried to start doing this in my fork of gdb but I didn't get very far;
> here's a brief TODO:
> 
> 1. Get filetype.awk to recognize mach-o binaries
> 2. Add a mach-o case to the switch on libbacktrace_cv_sys_filetype in
> configure.ac
> 3. Add a macho.c file to compile to macho.lo to use as the FORMAT_FILE in
> that case

Of those, it's really (1) where I'm stuck... (2) is easy, it can just look like
this:

mach-o*) FORMAT_FILE="macho.lo" ;;

...and (3) can be just a stub to start with (like unknown.c currently is) until
someone's ready to do the trickier parts of getting it to actually work. But
anyways, back to (1)... how do you even go about adding a new filetype to
filetype.awk, anyways? Is that documented somewhere? I don't get how it
works...

Reply via email to