target, record: add PTID argument to to_record_is_replaying
[deliverable/binutils-gdb.git] / gdb / msp430-tdep.c
index 6aad2b1996e6552b198f500f94d1153a48a42e19..56276aff298f6d480898c562a7f44080c1fde551 100644 (file)
@@ -1,7 +1,7 @@
 /* Target-dependent code for the Texas Instruments MSP430 for GDB, the
    GNU debugger.
 
-   Copyright (C) 2012-2014 Free Software Foundation, Inc.
+   Copyright (C) 2012-2015 Free Software Foundation, Inc.
 
    Contributed by Red Hat, Inc.
 
@@ -834,8 +834,7 @@ msp430_in_return_stub (struct gdbarch *gdbarch, CORE_ADDR pc,
                       const char *name)
 {
   return (name != NULL
-         && strncmp (msp430_epilog_name_prefix, name,
-                     strlen (msp430_epilog_name_prefix)) == 0);
+         && startswith (name, msp430_epilog_name_prefix));
 }
 
 /* Implement the "skip_trampoline_code" gdbarch method.  */
@@ -952,7 +951,7 @@ msp430_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
   /* None found, create a new architecture from the information
      provided.  */
-  tdep = (struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep));
+  tdep = XNEW (struct gdbarch_tdep);
   gdbarch = gdbarch_alloc (&info, tdep);
   tdep->elf_flags = elf_flags;
   tdep->isa = isa;
This page took 0.024791 seconds and 4 git commands to generate.