diff options
author | Pedro Alves <palves@redhat.com> | 2018-04-09 15:34:48 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2018-04-09 15:34:48 +0100 |
commit | 0bee6dd4aa42b928c2a7a496596490b694e5722b (patch) | |
tree | d2ee589c1980095cd9f7ed9f09f70e557c171136 /ld | |
parent | d52e3d06e5db7041913278caace3389504c0478c (diff) | |
download | gdb-0bee6dd4aa42b928c2a7a496596490b694e5722b.zip gdb-0bee6dd4aa42b928c2a7a496596490b694e5722b.tar.gz gdb-0bee6dd4aa42b928c2a7a496596490b694e5722b.tar.bz2 |
Apply "Convert observers to C++" edit to gdbarch.sh
Regenerating gdbarch.c results in:
--- gdbarch.c 2018-03-26 23:18:52.905548891 +0100
+++ new-gdbarch.c 2018-04-09 15:32:30.006712207 +0100
@@ -44,7 +44,7 @@
#include "reggroups.h"
#include "osabi.h"
#include "gdb_obstack.h"
-#include "observable.h"
+#include "observer.h"
#include "regcache.h"
#include "objfiles.h"
#include "auxv.h"
@@ -5457,7 +5457,7 @@
gdb_assert (new_gdbarch != NULL);
gdb_assert (new_gdbarch->initialized_p);
current_inferior ()->gdbarch = new_gdbarch;
- gdb::observers::architecture_changed.notify (new_gdbarch);
+ observer_notify_architecture_changed (new_gdbarch);
registers_changed ();
}
Clearly commit 76727919ceb5 ("Convert observers to C++") edited
gdbarch.c directly instead of gdbarch.sh. This fixes it.
gdb/ChangeLog:
2018-04-09 Pedro Alves <palves@redhat.com>
* gdbarch.sh: Include "observable.h" instead of "observer.h".
(set_target_gdbarch): Call
gdb::observers::architecture_changed.notify instead of
observer_notify_architecture_changed.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions