This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb/gdb-8.0-branch] Define an error function in the PPC simulator library.
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 05 Sep 2017 22:52:30 -0400
- Subject: [binutils-gdb/gdb-8.0-branch] Define an error function in the PPC simulator library.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 6854bcdfba43dd3a2058565bbf85868c9914bf39 ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: gdb-8.0-branch
Commit: 6854bcdfba43dd3a2058565bbf85868c9914bf39
Define an error function in the PPC simulator library.
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.
Note that there are also error functions in sim/ppc/main.c and
sim/ppc/misc.c. The ppc libsim.a expects each consumer to provide
several symbols used by the library including "error". sim-calls.c
provides these symbols when the library is linked into gdb. The dgen,
igen, tmp-filter, tmp-ld-decode, tmp-ld-cache, and tmp-ld-insn programs
use the functions from misc.c. psim uses the functions from main.c.
sim/ppc/ChangeLog:
PR sim/20863
* sim_calls.c (error): New function.