diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-03-27 20:19:37 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-03-27 20:19:37 +0100 |
commit | 1c4ff0802b0c4c8c820dcec503ffea024ea68f45 (patch) | |
tree | f431b79489053e21c1e2f05ccd9b478f4091fee4 /ld | |
parent | e04de5e3b55b9f481ff2b9939995301ba6b1c748 (diff) | |
download | fsf-binutils-gdb-1c4ff0802b0c4c8c820dcec503ffea024ea68f45.zip fsf-binutils-gdb-1c4ff0802b0c4c8c820dcec503ffea024ea68f45.tar.gz fsf-binutils-gdb-1c4ff0802b0c4c8c820dcec503ffea024ea68f45.tar.bz2 |
Revert: Code cleanup: Move print_command_1 expr variable scope
Simon Marchi:
I think this patch is wrong. Starting with that commit (f30d5c7),
some tests (e.g. mi-break.exp) started to fail for me, because
of gdb segfaulting.
The address of expr is passed to the cleanup. When the cleanup is ran,
expr is no longer in scope, so what is at that address is probably not
safe to use anymore. That's my guess.
gdb/ChangeLog
2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
Revert:
2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* printcmd.c (print_command_1): Move expr variable scope.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions