projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
testsuite: Support detection of Intel compilers via test_compiler_version.
[deliverable/binutils-gdb.git]
/
gdb
/
reverse.c
diff --git
a/gdb/reverse.c
b/gdb/reverse.c
index 541355f976ed86dce68dc8c9e7598e2f18d94832..a1b697f4d21ea9dca68d55d3cb83e1a2e1e25ff2 100644
(file)
--- a/
gdb/reverse.c
+++ b/
gdb/reverse.c
@@
-1,6
+1,6
@@
/* Reverse execution and reverse debugging.
/* Reverse execution and reverse debugging.
- Copyright (C) 2006-201
4
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
6
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-142,7
+142,7
@@
save_bookmark_command (char *args, int from_tty)
error (_("target_get_bookmark failed."));
/* Set up a bookmark struct. */
error (_("target_get_bookmark failed."));
/* Set up a bookmark struct. */
- b =
xcalloc (1, sizeof (struct bookmark)
);
+ b =
XCNEW (struct bookmark
);
b->number = ++bookmark_count;
init_sal (&b->sal);
b->pc = regcache_read_pc (get_current_regcache ());
b->number = ++bookmark_count;
init_sal (&b->sal);
b->pc = regcache_read_pc (get_current_regcache ());
@@
-255,9
+255,9
@@
goto_bookmark_command (char *args, int from_tty)
if (args == NULL || args[0] == '\0')
error (_("Command requires an argument."));
if (args == NULL || args[0] == '\0')
error (_("Command requires an argument."));
- if (st
rncmp (args, "start", strlen ("start")) == 0
- || st
rncmp (args, "begin", strlen ("begin")) == 0
- || st
rncmp (args, "end", strlen ("end")) == 0
)
+ if (st
artswith (args, "start")
+ || st
artswith (args, "begin")
+ || st
artswith (args, "end")
)
{
/* Special case. Give target opportunity to handle. */
target_goto_bookmark ((gdb_byte *) args, from_tty);
{
/* Special case. Give target opportunity to handle. */
target_goto_bookmark ((gdb_byte *) args, from_tty);
This page took
0.024366 seconds
and
4
git commands to generate.