aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-c-interface.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-02-22 19:36:53 -0700
committerTom Tromey <tom@tromey.com>2024-02-29 08:50:06 -0700
commit54137725cfb968803be0f5fa76906839d79a3067 (patch)
tree5d585e952f3ad73016736166528dfcfbfe2a585e /include/gcc-c-interface.h
parentfd846abc2d0b9d7c9d4d2965a63b80ddc300b870 (diff)
downloadgcc-54137725cfb968803be0f5fa76906839d79a3067.zip
gcc-54137725cfb968803be0f5fa76906839d79a3067.tar.gz
gcc-54137725cfb968803be0f5fa76906839d79a3067.tar.bz2
Fix version negotiation in libcc1 plugins
This fixes version negotiation in the libcc1 plugins. It's done in a simple way: the version number from the context object is now passed to base_gdb_plugin. The idea behind this is that when the client (gdb) requests version N, the plugin should respond with the newest version that it knows of that is backward compatible to N. That is, the connection can be upgraded. Note that the protocol does not change much, and no backward incompatibilities have ever been needed. The C plugin is also changed to advertise GCC_C_FE_VERSION_1. The version negotiation approach should of course be documented, but I did that in a subsequent patch, in order to only have one patch touching the 'include' directory and thus needing a merge to binutils-gdb. libcc1 * libcp1.cc (libcp1::libcp1): Use FE version number from context. * libcc1.cc (libcc1::libcc1): Use FE version number from context. (c_vtable): Use GCC_C_FE_VERSION_1.
Diffstat (limited to 'include/gcc-c-interface.h')
0 files changed, 0 insertions, 0 deletions