From 0baae8dbd38534c0f3dcedc7b9204bbc8f18de1b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 22 May 2018 14:39:24 -0600 Subject: Introduce buildsym-legacy.h This introduces a new header, buildsym-legacy.h, and changes all the symbol readers to use it. The idea is to put the function-based interface, that relies on the buildsym_compunit global, into a separate header. Then when a symbol reader is updated to use the new interface, it can simply not include buildsym-legacy.h, so it's easy to be sure that the new API is used everywhere. gdb/ChangeLog 2018-07-20 Tom Tromey * xcoffread.c: Include buildsym-legacy.h. * windows-nat.c: Include buildsym-legacy.h. * stabsread.c: Include buildsym-legacy.h. * mdebugread.c: Include buildsym-legacy.h. * buildsym-legacy.h: New file. * buildsym-legacy.c: New file, from buildsym.c. * go32-nat.c: Include buildsym-legacy.h. * dwarf2read.c: Include buildsym-legacy.h. * dbxread.c: Include buildsym-legacy.h. * cp-namespace.c: Include buildsym-legacy.h. * coffread.c: Include buildsym-legacy.h. * buildsym.h: Move some contents to buildsym-legacy.h. * buildsym.c: Include buildsym-legacy.h. Move many functions to buildsym-legacy.c. * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. --- gdb/go32-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/go32-nat.c') diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c index 6c0dbf7..cc4b652 100644 --- a/gdb/go32-nat.c +++ b/gdb/go32-nat.c @@ -94,7 +94,7 @@ #include "command.h" #include "gdbcmd.h" #include "floatformat.h" -#include "buildsym.h" +#include "buildsym-legacy.h" #include "i387-tdep.h" #include "i386-tdep.h" #include "nat/x86-cpuid.h" -- cgit v1.1