diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-27 13:06:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-27 14:36:42 -0600 |
commit | 6317728958287f0876f04941267de5d87eefa578 (patch) | |
tree | cdb86deb4ed8a4803151816edd15e08eae503ac1 /gdb/ChangeLog | |
parent | e76f78a05299f34605fc8ffa8b371a50b9446bab (diff) | |
download | gdb-6317728958287f0876f04941267de5d87eefa578.zip gdb-6317728958287f0876f04941267de5d87eefa578.tar.gz gdb-6317728958287f0876f04941267de5d87eefa578.tar.bz2 |
Fix crash in machoread.c
"./gdb ./gdb" was crashing for me on macOS. Investigating showed that
macho_symfile_read was crashing because "symbol_table" was being freed
too soon. This was introduced by my earlier patch to change
macho_symfile_read to use a std::vector.
Tested on macOS 10.13.5 using "./gdb ./gdb". This should un-break
various already existing tests (testsuite/gdb.gdb at least), so no new
test case.
I'm checking this in as obvious.
gdb/ChangeLog
2018-06-27 Tom Tromey <tom@tromey.com>
* machoread.c (macho_symfile_read): Define "symbol_table" earlier.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be45bc3..a125b72 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-06-27 Tom Tromey <tom@tromey.com> + + * machoread.c (macho_symfile_read): Define "symbol_table" earlier. + 2018-06-27 Simon Marchi <simon.marchi@ericsson.com> * gdb-gdb.py.in: Format using autopep8. |