This is the mail archive of the insight@sourceware.org mailing list for the Insight 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]

[ob]: Get rid of deprecated_print_address_numeric


Hi,

this patch: http://sourceware.org/ml/gdb-patches/2008-05/msg00540.html

gets rid of deprecated_print_address_numeric in GDB. Therefor I propose following
patch for Insight as obvious. This patch is untested. I'll be very happy if someone
with Insight experience could look it over and give it a test.

Thank you very much. Ok to commit as obvious?

ChangeLog:

	* generic/gdbtk-cmds.c (gdbtk_load_asm): Replace
	deprecated_print_address_numeric with paddress.
	* generic/gdbtk-stack.c (get_frame_name): Likewise (comment).


Regards, Markus

--
 Markus Deuling
 GNU Toolchain for Linux on Cell BE
 deuling@de.ibm.com

diff -urpN src/gdb/gdbtk/generic/gdbtk-cmds.c dev/gdb/gdbtk/generic/gdbtk-cmds.c
--- src/gdb/gdbtk/generic/gdbtk-cmds.c	2008-05-12 09:24:54.000000000 +0200
+++ dev/gdb/gdbtk/generic/gdbtk-cmds.c	2008-05-19 10:59:19.000000000 +0200
@@ -1889,7 +1889,7 @@ gdbtk_load_asm (ClientData clientData, C
   for (i = 0; i < 3; i++)
     Tcl_SetObjLength (client_data->result_obj[i], 0);
 
-  deprecated_print_address_numeric (pc, 1, gdb_stdout);
+  fputs_filtered (paddress (pc), gdb_stdout);
   gdb_flush (gdb_stdout);
 
   result_ptr->obj_ptr = client_data->result_obj[1];
diff -urpN src/gdb/gdbtk/generic/gdbtk-stack.c dev/gdb/gdbtk/generic/gdbtk-stack.c
--- src/gdb/gdbtk/generic/gdbtk-stack.c	2008-03-07 09:03:19.000000000 +0100
+++ dev/gdb/gdbtk/generic/gdbtk-stack.c	2008-05-19 11:00:44.000000000 +0200
@@ -594,7 +594,7 @@ get_frame_name (Tcl_Interp *interp, Tcl_
       /* we have no convenient way to deal with this yet... */
       if (fi->pc != sal.pc || !sal.symtab)
 	{
-	  deprecated_print_address_numeric (fi->pc, 1, gdb_stdout);
+	  fputs_filtered (paddress (fi->pc), gdb_stdout);
 	  printf_filtered (" in ");
 	}
       printf_symbol_filtered (gdb_stdout, funname ? funname : "??", funlang,

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