Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix build failures for MIPS gdb
@ 2006-07-31 16:42 Thiemo Seufer
  2006-07-31 16:54 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Thiemo Seufer @ 2006-07-31 16:42 UTC (permalink / raw)
  To: gdb-patches

Hello All,

the appended patch fixes two minor type mismatches which are handled
as -Werror.


Thiemo


2006-07-31  Thiemo Seufer  <ths@mips.com>

	* linux-thread-db.c (thread_db_get_thread_local_address): Fix type
	mismatch.
	* tui/tui-stack.c (tui_show_frame_info): Likewise.


Index: gdb/linux-thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-thread-db.c,v
retrieving revision 1.18
diff -u -p -r1.18 linux-thread-db.c
--- gdb/linux-thread-db.c	24 Jul 2006 18:57:32 -0000	1.18
+++ gdb/linux-thread-db.c	31 Jul 2006 16:33:37 -0000
@@ -1080,7 +1080,8 @@ thread_db_get_thread_local_address (ptid
       thread_db_map_id2thr (thread_info, 1);
 
       /* Finally, get the address of the variable.  */
-      err = td_thr_tls_get_addr_p (&thread_info->private->th, (void *) lm,
+      err = td_thr_tls_get_addr_p (&thread_info->private->th,
+				   (void *)(size_t) lm,
 				   offset, &address);
 
 #ifdef THREAD_DB_HAS_TD_NOTALLOC
Index: gdb/tui/tui-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-stack.c,v
retrieving revision 1.19
diff -u -p -r1.19 tui-stack.c
--- gdb/tui/tui-stack.c	14 Feb 2006 19:05:40 -0000	1.19
+++ gdb/tui/tui-stack.c	31 Jul 2006 16:33:37 -0000
@@ -356,7 +356,7 @@ tui_show_frame_info (struct frame_info *
 	  else
 	    {
 	      if (find_pc_partial_function (get_frame_pc (fi), (char **) NULL,
-					    &low, (CORE_ADDR) NULL) == 0)
+					    &low, (CORE_ADDR) 0) == 0)
 		error (_("No function contains program counter for selected frame."));
 	      else
 		low = tui_get_low_disassembly_address (low, get_frame_pc (fi));


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix build failures for MIPS gdb
  2006-07-31 16:42 [PATCH] Fix build failures for MIPS gdb Thiemo Seufer
@ 2006-07-31 16:54 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-07-31 16:54 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: gdb-patches

On Mon, Jul 31, 2006 at 05:42:14PM +0100, Thiemo Seufer wrote:
> Hello All,
> 
> the appended patch fixes two minor type mismatches which are handled
> as -Werror.
> 
> 
> Thiemo
> 
> 
> 2006-07-31  Thiemo Seufer  <ths@mips.com>
> 
> 	* linux-thread-db.c (thread_db_get_thread_local_address): Fix type
> 	mismatch.
> 	* tui/tui-stack.c (tui_show_frame_info): Likewise.

OK, thanks!

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-31 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-31 16:42 [PATCH] Fix build failures for MIPS gdb Thiemo Seufer
2006-07-31 16:54 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox