Typo fix in signal_pass initialization
authorYao Qi <yao@codesourcery.com>
Thu, 26 Jun 2014 06:25:22 +0000 (14:25 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 26 Jun 2014 08:00:17 +0000 (16:00 +0800)
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.

gdb/ChangeLog
gdb/infrun.c

index 462afed1f2409cb0b12738d923ecf1a9fd8e5866..66484b599ab708005d05be06336c8dbb247abece 100644 (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)
index bef69a8124b15fbfb85afb151b12a13b1bcca171..de5a93890915bfd539365e23aeac0f182acb1de2 100644 (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;
This page took 0.033311 seconds and 4 git commands to generate.