This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: Don't use lib2funcs.asm on PA


> As to why inferior calls don't work -- no clue.  You might ask Alan M. how
> much GDB stuff was working for PA-linux when he left Linuxcare.  I can tell
> you that getting inferior calls to work on the PA is a major PITA.

It was in a pretty rock state (ie., didn't work at all).  I have worked
out a couple of hacks and now I have at least a partially functional gdb.
It's a little better that hppa64-hpux.  The most important fix was the
initialization of the register cache.  The problem is that it is done before
the arch initialize and the arch needs to be inited for REGISTER_BYTE.
This may be a problem for hppa64-hpux because in a backtrace the
arguments are garbled.  Under, hppa64-hpux I have been using the HP
version of gdb64 but it doesn't recognize debug symbols in a gcc compiled
object (it works for a HP compiled object).  However, it does do backtraces
and print registers ok.

>  > At the moment, I am trying to get frame notes working.  I am still trying
>  > to find out how to handle parallels.  The suggestion from Olivier Hainque
>  > didn't seem to work.  The stack frame adjustment still isn't getting
>  > recorded correctly so it seems.  I believe that ARG_POINTER_CFA_OFFSET(FNDEC
>  > L)
> Hmmm, there is some specific magic to deal with PARALLELS on prologue
> insns.  I think you set RTX_FRAME_RELATED_P on the PARALLEL and each item
> within the PARALLEL.  Or something like that.  You can probably find an
> example in one of the other target config files.

Yes, looked at dwarf2out.c to see what it expects.  I found some more
coding problems with PARALLEL's in the register save code and also that
the EH_RETURN_DATA_REGNO registers need to be saved if the function
calls eh_return.  The code still isn't quite right and needs some
reorganization, but my test code now throws.  However, there is a
problem in the catch.  Another day or two and I think that it will work.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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