Is it possible to point gdb or another debugger at hare yet? I know
there's been some work getting stack traces and line number information
working but I don't know the extent of it. If not, what work still needs
to be done to get all that working?
line information and stack traces are working in debuggers. breakpoints
are also (mostly?) working. everything else, which is more complicated,
does not work. this includes printing variables, for example.
i think there has to be some work done both in harec and QBE to
implement the DWARF stuff needed for it. i don't know any specifics
on how to do it but i think you'll be able to figure that out if
you want to implement it.
> Is it possible to point gdb or another debugger at hare yet? I know> there's been some work getting stack traces and line number information> working but I don't know the extent of it. If not, what work still needs> to be done to get all that working?
What Lorenz said, pretty much. Going into a bit more detail, dwarf leaves a lot
up to individual implementations to decide how to store debugging info
efficiently. A suitable representation needs to be picked and implemented in
harec. Then we need to figure out what's the best way to get that data into the
final executable. On one hand QBE could probably benefit from a reasonably
complete and integrated way to handle debugging information, but on the other
hand, that's a lot of work that needs a lot of thought put into interfacing,
and writing the debug infor directly into an assembly file from harec seems
easier and faster to get up and make useful.