- Merge from gdb-7.3-41.fc15.src.rpm. [fate#310741] * Tue Jul 26 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.3-41.fc15 - Rebase to the final FSF GDB 7.3 release. - Improve gcc-4.6 stdarg false prologue end workaround (GDB PR 12435 + GCC PR 47471). * Sun Jul 3 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110703-40.fc15 - Rebase to FSF GDB 7.2.90.20110703 (which is a 7.3 pre-release). - Adjust the `print errno' patch due to the DW_AT_linkage_name following again. * Fri Jun 24 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110525-39.fc15 - Fix install-info for the gdb-doc subpackage (BZ 715228). - Merge from gdb-7.2.90.20110525-38.fc15.src.rpm. [fate#310741] * Wed May 25 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110525-38.fc15 - Rebase to FSF GDB 7.2.90.20110525 (which is a 7.3 pre-release). - [stap] Fix double free (Sergio Durigan Junior). * Tue May 3 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110429-37.fc15 - Search also for .<seqno> files in /usr/lib/debug/.build-id (BZ 641377). - Merge from gdb-7.2.90.20110429-36.fc15.src.rpm. * Mon May 2 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110429-36.fc15 - Bundle readline-6.2 with a workaround of skipped "ask" (BZ 701131). - Use --without-system-readline, disable Requires and BuildRequires of readline. - Drop gdb-6.5-readline-long-line-crash.patch and gdb-readline-6.0-signal.patch. * Fri Apr 29 2011 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.2.90.20110429-35.fc15 - Rebase to FSF GDB 7.2.90.20110429 (which is a 7.3 pre-release). - Fix -O2 -g breakpoints internal error + prologue skipping (BZ 612253). - Fix case insensitive symbols for Fortran by iFort (BZ 645773). OBS-URL: https://build.opensuse.org/request/show/78265 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=85
58 lines
1.7 KiB
Diff
58 lines
1.7 KiB
Diff
--- a/gdb/stap-probe.c
|
|
+++ b/gdb/stap-probe.c
|
|
@@ -355,9 +355,7 @@ stap_free_args_info (void *args_info_ptr)
|
|
int i;
|
|
|
|
for (i = 0; i < a->n_args; i++)
|
|
- {
|
|
- xfree (a->arg[i].arg_str);
|
|
- }
|
|
+ xfree (a->arg[i].arg_str);
|
|
|
|
xfree (a->arg);
|
|
xfree (a);
|
|
@@ -401,6 +399,7 @@ stap_parse_probe_arguments (struct stap_probe *probe)
|
|
return;
|
|
|
|
args_info = xmalloc (sizeof (struct stap_args_info));
|
|
+ args_info->n_args = 0;
|
|
back_to = make_cleanup (stap_free_args_info, args_info);
|
|
args_info->arg = xcalloc (STAP_MAX_ARGS, sizeof (struct stap_probe_arg));
|
|
|
|
@@ -493,6 +492,7 @@ stap_parse_probe_arguments (struct stap_probe *probe)
|
|
|
|
args_info->arg[current_arg].arg_str
|
|
= savestring (start, cur - start);
|
|
+ ++args_info->n_args;
|
|
/* Start it over again. */
|
|
cur = skip_spaces ((char *) cur);
|
|
current_state = NEW_ARG;
|
|
@@ -513,7 +513,6 @@ stap_parse_probe_arguments (struct stap_probe *probe)
|
|
}
|
|
}
|
|
|
|
- args_info->n_args = current_arg + 1;
|
|
args_info->arg = xrealloc (args_info->arg,
|
|
args_info->n_args
|
|
* sizeof (struct stap_probe_arg));
|
|
@@ -1526,8 +1525,9 @@ stap_free_parsed_args (struct stap_args_info *parsed_args)
|
|
return;
|
|
|
|
for (i = 0; i < parsed_args->n_args; i++)
|
|
- xfree (parsed_args->arg);
|
|
+ xfree (parsed_args->arg[i].arg_str);
|
|
|
|
+ xfree (parsed_args->arg);
|
|
xfree (parsed_args);
|
|
}
|
|
|
|
@@ -1859,7 +1859,7 @@ parse_stap_probe (char **argptr, struct linespec_result *canonical)
|
|
if (canonical)
|
|
{
|
|
canonical->canonical = xrealloc (canonical->canonical,
|
|
- result.nelts * sizeof (char **));
|
|
+ result.nelts * sizeof (char *));
|
|
canonical->canonical[result.nelts - 1] = xstrdup (full_arg);
|
|
}
|
|
}
|