* linux-thread-db.c (thread_db_get_thread_local_address): Fix type
authorThiemo Seufer <ths@networkno.de>
Wed, 2 Aug 2006 10:24:00 +0000 (10:24 +0000)
committerThiemo Seufer <ths@networkno.de>
Wed, 2 Aug 2006 10:24:00 +0000 (10:24 +0000)
mismatch.
* tui/tui-stack.c (tui_show_frame_info): Likewise.

gdb/ChangeLog
gdb/linux-thread-db.c
gdb/tui/tui-stack.c

index 2aba9bceb831c6ee5d7aa32e0d50427509adbb91..43367f8cd28e0a08434ca00beec706541b26e355 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-02  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.
+
 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * c-exp.y (type): Remove incorrect pointer to member case.
index d91a894166d5cbc6bc84840d133e34c99e4f414b..517dc44d0781e42d0743eb05d393e6496132ea67 100644 (file)
@@ -1080,7 +1080,8 @@ thread_db_get_thread_local_address (ptid_t 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 05230daa48ae7d26365927b800f1c74493feb124..907f00a236418892fbb9e2a8d98c27fbf8a1c83e 100644 (file)
@@ -356,7 +356,7 @@ tui_show_frame_info (struct frame_info *fi)
          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));