+2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symfile.c (find_separate_debug_file_by_debuglink): Remove
+ a gdb_assert call, new comment.
+
2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
* NEWS: Mention support for the new ptrace interface and hardware
dir = xstrdup (objfile->name);
/* Strip off the final filename part, leaving the directory name,
- followed by a slash. Objfile names should always be absolute and
- tilde-expanded, so there should always be a slash in there
- somewhere. */
+ followed by a slash. The directory can be relative or absolute. */
for (i = strlen(dir) - 1; i >= 0; i--)
{
if (IS_DIR_SEPARATOR (dir[i]))
break;
}
- gdb_assert (i >= 0 && IS_DIR_SEPARATOR (dir[i]));
+ /* If I is -1 then no directory is present there and DIR will be "". */
dir[i+1] = '\0';
/* Set I to max (strlen (canon_name), strlen (dir)). */
+2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.base/solib-nodir.exp: New file.
+ * lib/gdb.exp (runto): New case for a GDB internal error.
+
2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Ulrich Weigand <uweigand@de.ibm.com>
Tom Tromey <tromey@redhat.com>
unsupported "Non-stop mode not supported"
return 0
}
+ -re ".*A problem internal to GDB has been detected" {
+ fail "running to $function in runto (GDB internal error)"
+ gdb_internal_error_resync
+ return 0
+ }
-re "$gdb_prompt $" {
fail "running to $function in runto"
return 0