2003-11-13 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 14 Nov 2003 14:16:29 +0000 (14:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 14 Nov 2003 14:16:29 +0000 (14:16 +0000)
* ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
"name_of_malloc" to ".malloc".

gdb/ChangeLog
gdb/ppc-linux-tdep.c

index b9d412cf393f03db4cc13c456f80fa5549c75508..2783ba6a70be768b7758867401cd8818e32fc0de 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-13  Andrew Cagney  <cagney@redhat.com>
+
+       * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
+       "name_of_malloc" to ".malloc".
+
 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
 
        * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
index 2be994360bc26d047cfe53dcd4d0a56d90dce54e..a0bb7607f06dff63340d9e6de638c794fbf23232 100644 (file)
@@ -1083,6 +1083,9 @@ ppc_linux_init_abi (struct gdbarch_info info,
       set_gdbarch_in_solib_call_trampoline
         (gdbarch, ppc64_in_solib_call_trampoline);
       set_gdbarch_skip_trampoline_code (gdbarch, ppc64_skip_trampoline_code);
+
+      /* PPC64 malloc's entry-point is called ".malloc".  */
+      set_gdbarch_name_of_malloc (gdbarch, ".malloc");
     }
 }