From: Yao Qi Date: Thu, 26 Jun 2014 06:25:22 +0000 (+0800) Subject: Typo fix in signal_pass initialization X-Git-Tag: hjl/linux/release/2.24.51.0.4~1^2~15^2~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4395285e33e6d67c8a82db744ebfd041034b005a;p=thirdparty%2Fbinutils-gdb.git 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 * infrun.c (_initialize_infrun): Replace "signal_program[0]" with "signal_pass[0]" in the initialization of signal_pass. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 462afed1f24..66484b599ab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-06-26 Yao Qi + + * infrun.c (_initialize_infrun): Replace "signal_program[0]" + with "signal_pass[0]" in the initialization of signal_pass. + 2014-06-25 Markus Metzger * record-btrace.c (record_btrace_generating_corefile) diff --git a/gdb/infrun.c b/gdb/infrun.c index bef69a8124b..de5a9389091 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;