diff options
author | Gary Benson <gbenson@redhat.com> | 2014-07-30 14:09:07 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-08-19 10:07:18 +0100 |
commit | ef87c8bbe7d1c4a987578626655f4a15555c7f4a (patch) | |
tree | afeee8eea42eec0227665caf43eda9cdc495b00f /gdb/Makefile.in | |
parent | 196a707b15ab32c29ba021b4f5b9ea202c109fe1 (diff) | |
download | gdb-ef87c8bbe7d1c4a987578626655f4a15555c7f4a.zip gdb-ef87c8bbe7d1c4a987578626655f4a15555c7f4a.tar.gz gdb-ef87c8bbe7d1c4a987578626655f4a15555c7f4a.tar.bz2 |
Introduce common/errors.h
This introduces common/errors.h. This holds some error- and warning-
related declarations that can be used by the code in common, nat and
target. Some of the declared functions must be provided by the client
as documented by the header file comments.
gdb/ChangeLog:
* common/errors.h: New file.
* common/errors.c: Likewise.
* Makefile.in (SFILES): Add common/errors.c.
(HFILES_NO_SRCDIR): Add common/errors.h.
(COMMON_OBS): Add errors.o.
(errors.o): New rule.
* common/common-defs.h: Include errors.h.
* utils.h (perror_with_name, error, verror, warning, vwarning):
Don't declare.
* common/common-utils.h: (malloc_failure, internal_error):
Likewise.
gdb/gdbserver/ChangeLog:
* Makefile.in (SFILES): Add common/errors.c.
(OBS): Add errors.o.
(IPA_OBS): Add errors-ipa.o.
(errors.o): New rule.
(errors-ipa.o): Likewise.
* utils.h (perror_with_name, error, warning): Don't declare.
* utils.c (warning): Renamed and rewritten as...
(vwarning): New function.
(error): Renamed and rewritten as...
(verror): New function.
(internal_error): Renamed and rewritten as...
(internal_verror): New function.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 8361030..fa0dcd4 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -850,7 +850,8 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \ common/gdb_vecs.c common/common-utils.c common/xml-utils.c \ common/ptid.c common/buffer.c gdb-dlfcn.c common/agent.c \ common/format.c common/filestuff.c btrace.c record-btrace.c ctf.c \ - target/waitstatus.c common/print-utils.c common/rsp-low.c + target/waitstatus.c common/print-utils.c common/rsp-low.c \ + common/errors.c LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c @@ -935,7 +936,7 @@ gdb_bfd.h sparc-ravenscar-thread.h ppc-ravenscar-thread.h nat/linux-btrace.h \ ctf.h nat/i386-cpuid.h nat/i386-gcc-cpuid.h target/resume.h \ target/wait.h target/waitstatus.h nat/linux-nat.h nat/linux-waitpid.h \ common/print-utils.h common/rsp-low.h nat/i386-dregs.h x86-linux-nat.h \ -i386-linux-nat.h common/common-defs.h +i386-linux-nat.h common/common-defs.h common/errors.h # Header files that already have srcdir in them, or which are in objdir. @@ -1034,7 +1035,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \ gdb_vecs.o jit.o progspace.o skip.o probe.o \ common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o \ format.o registry.o btrace.o record-btrace.o waitstatus.o \ - print-utils.o rsp-low.o + print-utils.o rsp-low.o errors.o TSOBS = inflow.o @@ -2144,6 +2145,10 @@ rsp-low.o: ${srcdir}/common/rsp-low.c $(COMPILE) $(srcdir)/common/rsp-low.c $(POSTCOMPILE) +errors.o: ${srcdir}/common/errors.c + $(COMPILE) $(srcdir)/common/errors.c + $(POSTCOMPILE) + # # gdb/target/ dependencies # |