public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: drop unused CORE_ADDR_TYPE
@ 2022-11-08  7:10 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2022-11-08  7:10 UTC (permalink / raw)
  To: gdb-patches

This hasn't been used by gdb in decades, and doesn't make sense with
a standalone sim program/library where the ABI is fixed.  So punt it
to simplify the code.
---
 include/sim/sim.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/include/sim/sim.h b/include/sim/sim.h
index 5569481da991..20a667cab7d3 100644
--- a/include/sim/sim.h
+++ b/include/sim/sim.h
@@ -27,14 +27,7 @@ extern "C" {
 /* This file is used when building stand-alone simulators, so isolate this
    file from gdb.  */
 
-/* Pick up CORE_ADDR_TYPE if defined (from gdb), otherwise use same value as
-   gdb does (unsigned int - from defs.h).  */
-
-#ifndef CORE_ADDR_TYPE
 typedef unsigned int SIM_ADDR;
-#else
-typedef CORE_ADDR_TYPE SIM_ADDR;
-#endif
 
 
 /* Semi-opaque type used as result of sim_open and passed back to all
-- 
2.38.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-08  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-08  7:10 [PATCH] sim: drop unused CORE_ADDR_TYPE Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).