diff options
author | Yao Qi <yao@codesourcery.com> | 2014-06-26 14:25:22 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-06-26 16:00:17 +0800 |
commit | 4395285e33e6d67c8a82db744ebfd041034b005a (patch) | |
tree | b7afdda0f313f7e48038a8259b17131102abe397 /gdb/infrun.c | |
parent | cbac4466d7e683855ff72897919791442d5ef756 (diff) | |
download | gdb-4395285e33e6d67c8a82db744ebfd041034b005a.zip gdb-4395285e33e6d67c8a82db744ebfd041034b005a.tar.gz gdb-4395285e33e6d67c8a82db744ebfd041034b005a.tar.bz2 |
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index bef69a8..de5a938 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; |