This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [RFC] pascal: also handle Free Pascal longjump function.


>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:

Pierre>   I suspect that it would at least require some init_abi function
Pierre> to set this... But then the question is, how do we recognize 
Pierre> such executables...

You'll at least need different code to extract the target PC from the
jump buffer.

Tom> What about PC mangling? 

Pierre>   I am not sure what you mean here...
Pierre> There is no operation on pc value.

On some platforms glibc mangles the PC value that is saved in the
buffer.

Tom> and why is it not just
Tom> a simple wrapper for the C library longjmp?

Pierre> Because, by default, Free Pascal compiler generates code that is
Pierre> independent of any library (static code on Linux for instance)
Pierre> with only direct calls to System Calls.

Makes sense.  I guess some deeper change is needed, not just adding
fpc_longjmp to the list.

Tom


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