This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV] Typo fix in signal_pass initialization
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Thu, 26 Jun 2014 15:54:42 +0800
- Subject: [PATCH OBV] Typo fix in signal_pass initialization
- Authentication-results: sourceware.org; auth=none
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. Patch is pushed in.
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 | 5 +++++
gdb/infrun.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 462afed..66484b5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 5f586c5..3c58ff2 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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;
--
1.9.0