aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-29 18:44:15 +0000
committerTom Tromey <tromey@redhat.com>2011-04-29 18:44:15 +0000
commit38a714bb6f2ead72198b2be9e02b48e140715156 (patch)
tree24097d6abee50ed96120d1c36e8363458795f5b5 /gdb/breakpoint.c
parenteb73ad13537571163d9fb6818f0931d71dad141a (diff)
downloadgdb-38a714bb6f2ead72198b2be9e02b48e140715156.zip
gdb-38a714bb6f2ead72198b2be9e02b48e140715156.tar.gz
gdb-38a714bb6f2ead72198b2be9e02b48e140715156.tar.bz2
* mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
(mi_parse): Likewise. * breakpoint.c (break_range_command): Use sizeof char*, not char**. (create_breakpoint): Likewise. (parse_breakpoint_sals): Likewise.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 01bb08c..b9d76c7 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -7698,7 +7698,7 @@ parse_breakpoint_sals (char **address,
}
/* For any SAL that didn't have a canonical string, fill one in. */
if (sals->nelts > 0 && canonical->canonical == NULL)
- canonical->canonical = xcalloc (sals->nelts, sizeof (char **));
+ canonical->canonical = xcalloc (sals->nelts, sizeof (char *));
if (addr_start != (*address))
{
int i;
@@ -7917,7 +7917,7 @@ create_breakpoint (struct gdbarch *gdbarch,
sals = decode_static_tracepoint_spec (&arg);
copy_arg = savestring (addr_start, arg - addr_start);
- canonical.canonical = xcalloc (sals.nelts, sizeof (char **));
+ canonical.canonical = xcalloc (sals.nelts, sizeof (char *));
for (i = 0; i < sals.nelts; i++)
canonical.canonical[i] = xstrdup (copy_arg);
goto done;
@@ -8573,7 +8573,7 @@ break_range_command (char *arg, int from_tty)
/* canonical_end can be NULL if it was of the form "*0xdeadbeef". */
if (canonical_end.canonical == NULL)
- canonical_end.canonical = xcalloc (1, sizeof (char **));
+ canonical_end.canonical = xcalloc (1, sizeof (char *));
/* Add the string if not present. */
if (arg_start != arg && canonical_end.canonical[0] == NULL)
canonical_end.canonical[0] = savestring (arg_start, arg - arg_start);