diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-12 00:35:54 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-14 00:41:05 -0400 |
commit | df68e12b3b3eb91e54d6d888b73049562566e0b3 (patch) | |
tree | b60781365aba1b34bacad73f34987c22615438a4 /include | |
parent | 183aaaf72a8c0643de1aab1018e23fe020e2ff79 (diff) | |
download | gdb-df68e12b3b3eb91e54d6d888b73049562566e0b3.zip gdb-df68e12b3b3eb91e54d6d888b73049562566e0b3.tar.gz gdb-df68e12b3b3eb91e54d6d888b73049562566e0b3.tar.bz2 |
sim: create header namespace
The gdb/callback.h & gdb/remote-sim.h headers have nothing to do with
gdb and are really definitions for the libsim API under the sim/ tree.
While gdb uses those headers as a client, it's not specific to it. So
create a new sim/ namespace and move the headers there.
Diffstat (limited to 'include')
-rw-r--r-- | include/gdb/ChangeLog | 5 | ||||
-rw-r--r-- | include/sim/ChangeLog | 4 | ||||
-rw-r--r-- | include/sim/callback.h (renamed from include/gdb/callback.h) | 4 | ||||
-rw-r--r-- | include/sim/sim.h (renamed from include/gdb/remote-sim.h) | 6 |
4 files changed, 14 insertions, 5 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index 32a0928..17d9cb6 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,8 @@ +2021-05-14 Mike Frysinger <vapier@gentoo.org> + + * callback.h: Moved to ../sim/callback.h. + * remote-sim.h: Moved to ../sim/sim.h. + 2021-02-04 Mike Frysinger <vapier@gentoo.org> * sim-riscv.h: New file. diff --git a/include/sim/ChangeLog b/include/sim/ChangeLog new file mode 100644 index 0000000..f2aba1e --- /dev/null +++ b/include/sim/ChangeLog @@ -0,0 +1,4 @@ +2021-05-14 Mike Frysinger <vapier@gentoo.org> + + * callback.h: Moved from ../gdb/callback.h. + * sim.h: Moved from ../gdb/remote-sim.h. diff --git a/include/gdb/callback.h b/include/sim/callback.h index a2e0263..f021f4d 100644 --- a/include/gdb/callback.h +++ b/include/sim/callback.h @@ -42,8 +42,8 @@ is ENVIRONMENT_OPERATING. */ -#ifndef CALLBACK_H -#define CALLBACK_H +#ifndef SIM_CALLBACK_H +#define SIM_CALLBACK_H /* ??? The reason why we check for va_start here should be documented. */ diff --git a/include/gdb/remote-sim.h b/include/sim/sim.h index a3ba3aa..72d0a61 100644 --- a/include/gdb/remote-sim.h +++ b/include/sim/sim.h @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#if !defined (REMOTE_SIM_H) -#define REMOTE_SIM_H 1 +#ifndef SIM_SIM_H +#define SIM_SIM_H 1 #ifdef __cplusplus extern "C" { @@ -296,4 +296,4 @@ char **sim_complete_command (SIM_DESC sd, const char *text, const char *word); } #endif -#endif /* !defined (REMOTE_SIM_H) */ +#endif /* !defined (SIM_SIM_H) */ |