This is the mail archive of the gdb-patches@sources.redhat.com 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]

[PATCH]: Fix gdb tui build


Hi!

I've committed this patch to fix build of gdb with --enable-tui
(do_registers_info replaced by the gdbarch version).

	Stephane

2002-08-24  Stephane Carrez  <stcarrez@nerim.fr>

	* tuiRegs.c (_tuiRegisterFormat): Use gdbarch_print_registers_info.
Index: tui/tuiRegs.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiRegs.c,v
retrieving revision 1.12
diff -u -p -r1.12 tuiRegs.c
--- tui/tuiRegs.c	1 Mar 2002 06:19:28 -0000	1.12
+++ tui/tuiRegs.c	24 Aug 2002 09:39:54 -0000
@@ -639,7 +639,8 @@ _tuiRegisterFormat (char *buf, int bufLe
   stream = tui_sfileopen (bufLen);
   gdb_stdout = stream;
   cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout);
-  do_registers_info (regNum, 0);
+  gdbarch_print_registers_info (current_gdbarch, stream, selected_frame,
+                                regNum, 1);
 
   /* Save formatted output in the buffer.  */
   p = tui_file_get_strbuf (stream);

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