Add overrides, fix FreeBSD build
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 27 Jun 2018 14:52:57 +0000 (10:52 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 27 Jun 2018 14:53:29 +0000 (10:53 -0400)
commitbd583225a52f920f71e417ef87092d25553dc85e
tree452aa00ee1ec7c9c5a8fbc98a7ef647f064b8175
parente11078da44268a4813ed81a27853143af86c3e24
Add overrides, fix FreeBSD build

Fix this:

  CXX    fbsd-nat.o
In file included from fbsd-nat.c:44:
./fbsd-nat.h:40:7: error: 'find_memory_regions' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  int find_memory_regions (find_memory_region_ftype func, void *data);
      ^
./target.h:702:17: note: overridden virtual function is here
    virtual int find_memory_regions (find_memory_region_ftype func, void *data)
                ^
In file included from fbsd-nat.c:44:
./fbsd-nat.h:42:8: error: 'info_proc' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
  bool info_proc (const char *, enum info_proc_what);
       ^
./target.h:950:18: note: overridden virtual function is here
    virtual bool info_proc (const char *, enum info_proc_what);
                 ^

gdb/ChangeLog:

* fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
override.
<info_proc>: Likewise.
gdb/ChangeLog
gdb/fbsd-nat.h
This page took 0.025372 seconds and 4 git commands to generate.