New common function "startswith"
[deliverable/binutils-gdb.git] / gdb / amd64-windows-tdep.c
index 2aa10a100dbc8c39a1b6c5f7436da1e5e1b674ea..de5d8c7ccf7c059b7d23a77740a03b53bd528caf 100644 (file)
@@ -1157,8 +1157,8 @@ amd64_windows_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
 
       if (symname)
        {
-         if (strncmp (symname, "__imp_", 6) == 0
-             || strncmp (symname, "_imp_", 5) == 0)
+         if (startswith (symname, "__imp_")
+             || startswith (symname, "_imp_"))
            destination
              = read_memory_unsigned_integer (indirect_addr, 8, byte_order);
        }
This page took 0.023729 seconds and 4 git commands to generate.