Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Fix build failures for MIPS gdb
Date: Mon, 31 Jul 2006 16:42:00 -0000	[thread overview]
Message-ID: <20060731164214.GK15011@networkno.de> (raw)

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));


             reply	other threads:[~2006-07-31 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 16:42 Thiemo Seufer [this message]
2006-07-31 16:54 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060731164214.GK15011@networkno.de \
    --to=ths@networkno.de \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox