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: [PATCH v2] Define an error function in the PPC simulator library.


On 04/05/2017 11:33 AM, John Baldwin wrote:
Previously this used the error function from GDB directly when linked
against GDB instead of the error method in the host callbacks
structure.  This was exposed via a link error when GDB was converted
to C++.  The error function invokes the error callback similar to
sim_io_error.


There is another implementation of error (...) in sim/ppc/main.c and sim/ppc/misc.c. Should those be kept as is or should we only use the new function you're providing?

Also, i don't see error being implemented in the other sim backends. I wonder if we should just use whatever is available (sim_io_error?) instead of supplying our own ppc-specific version?


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