This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: Add guess_tracepoint_registers hook to gdbarch.


On 18/02/16 16:40, Ulrich Weigand wrote:
Marcin Kościelnicki wrote:

	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
	* gdbarch.sh: Add guess_tracepoint_registers hook, include
	tracepoint.h.
	* tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
	* tracepoint.c (default_guess_tracepoint_registers): New function.
	* tracepoint.h (default_guess_tracepoint_registers): New prototype.

  #include "observer.h"
  #include "regcache.h"
  #include "objfiles.h"
+#include "tracepoint.h"

I don't think you actually need this include, do you?

Otherwise, this patch is OK.

Bye,
Ulrich


I do, the default_guess_tracepoint_registers function is declared there, and gdbarch.c uses it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]