]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid warnings due to implicit conversion between void*, Addr, and fn pointers
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 9 Jun 2014 22:08:45 +0000 (22:08 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 9 Jun 2014 22:08:45 +0000 (22:08 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14018

coregrind/m_gdbserver/server.c

index 2674379800309f7342abcd9ea96c894fb3359266..76e97dd36ca65314313f04c2355497f1fa2cbbf6 100644 (file)
@@ -327,7 +327,7 @@ int handle_gdb_valgrind_command (char *mon, OutputSink *sink_wanted_at_return)
             hostvisibility = True;
          }
          if (hostvisibility) {
-            const DebugInfo *tooldi = VG_(find_DebugInfo) (handle_gdb_valgrind_command);
+            const DebugInfo *tooldi = VG_(find_DebugInfo) ((Addr)handle_gdb_valgrind_command);
             vg_assert(tooldi);
             const NSegment *toolseg = VG_(am_find_nsegment)
                (VG_(DebugInfo_get_text_avma) (tooldi));
@@ -336,7 +336,7 @@ int handle_gdb_valgrind_command (char *mon, OutputSink *sink_wanted_at_return)
                ("Enabled access to Valgrind memory/status by GDB\n"
                 "If not yet done, tell GDB which valgrind file(s) to use, "
                 "typically:\n"
-                "add-symbol-file %s %p\n", VG_(am_get_filename)(toolseg), toolseg->start);
+                "add-symbol-file %s %p\n", VG_(am_get_filename)(toolseg), (void*) toolseg->start);
          } else
             VG_(gdb_printf)
                ("Disabled access to Valgrind memory/status by GDB\n");