diff options
author | Tom Tromey <tromey@adacore.com> | 2022-09-07 08:58:18 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-03 08:45:00 -0700 |
commit | 43f2b4583f95775b2c0fefd71aab4c773c4f7a7e (patch) | |
tree | d824b114c27606dd7023f198aa41e7fe21d3fba3 /gdb/gdbarch.c | |
parent | 4e1d2f5814b29048d1dd1cea2cb50570e6c8f1f8 (diff) | |
download | gdb-43f2b4583f95775b2c0fefd71aab4c773c4f7a7e.zip gdb-43f2b4583f95775b2c0fefd71aab4c773c4f7a7e.tar.gz gdb-43f2b4583f95775b2c0fefd71aab4c773c4f7a7e.tar.bz2 |
Don't emit gdbarch_return_value
The previous patch introduced a new overload of gdbarch_return_value.
The intent here is that this new overload always be called by the core
of gdb -- the previous implementation is effectively deprecated,
because a call to the old-style method will not work with any
converted architectures (whereas calling the new-style method is will
delegate when needed).
This patch changes gdbarch.py so that the old gdbarch_return_value
wrapper function can be omitted. This will prevent any errors from
creeping in.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 353040c..41b71ae 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -2571,16 +2571,6 @@ set_gdbarch_integer_to_address (struct gdbarch *gdbarch, gdbarch->integer_to_address = integer_to_address; } -enum return_value_convention -gdbarch_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) -{ - gdb_assert (gdbarch != NULL); - gdb_assert (gdbarch->return_value != NULL); - if (gdbarch_debug >= 2) - gdb_printf (gdb_stdlog, "gdbarch_return_value called\n"); - return gdbarch->return_value (gdbarch, function, valtype, regcache, readbuf, writebuf); -} - void set_gdbarch_return_value (struct gdbarch *gdbarch, gdbarch_return_value_ftype return_value) |