Typo fix in signal_pass initialization

When I read the code, I happen to see this:

   signal_pass = (unsigned char *)
     xmalloc (sizeof (signal_program[0]) * numsigs);
                      ^^^^^^^^^^^^^^
It is a typo, and this patch is to fix it.

gdb:

2014-06-26  Yao Qi  <yao@codesourcery.com>

	* infrun.c (_initialize_infrun): Replace "signal_program[0]"
	with "signal_pass[0]" in the initialization of signal_pass.
This commit is contained in:
Yao Qi 2014-06-26 14:25:22 +08:00
parent cbac4466d7
commit 4395285e33
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-06-26 Yao Qi <yao@codesourcery.com>
* infrun.c (_initialize_infrun): Replace "signal_program[0]"
with "signal_pass[0]" in the initialization of signal_pass.
2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
* record-btrace.c (record_btrace_generating_corefile)

View File

@ -7343,7 +7343,7 @@ leave it stopped or free to run as needed."),
signal_catch = (unsigned char *)
xmalloc (sizeof (signal_catch[0]) * numsigs);
signal_pass = (unsigned char *)
xmalloc (sizeof (signal_program[0]) * numsigs);
xmalloc (sizeof (signal_pass[0]) * numsigs);
for (i = 0; i < numsigs; i++)
{
signal_stop[i] = 1;