RESOLVED FIXED 138564
[GTK] fix up the GDB backtrace report tool
https://bugs.webkit.org/show_bug.cgi?id=138564
Summary [GTK] fix up the GDB backtrace report tool
Philippe Normand
Reported 2014-11-10 05:12:57 PST
See also Bug 128928 but for now I'll only restore the basic functionality without making too many changes.
Attachments
Patch (3.17 KB, patch)
2014-11-10 05:22 PST, Philippe Normand
cgarcia: review+
Philippe Normand
Comment 1 2014-11-10 05:22:41 PST
Carlos Garcia Campos
Comment 2 2014-11-11 00:53:21 PST
Comment on attachment 241286 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241286&action=review LGTM > Tools/Scripts/webkitpy/port/linux_get_crash_log.py:44 > - cmd = ['gdb', '-ex', 'thread apply all bt 1024', '--batch', str(self._path_to_driver()), coredump_path] > + process_name = os.path.join(os.path.dirname(str(self._path_to_driver())), self.name) > + cmd = ['gdb', '-ex', 'thread apply all bt 1024', '--batch', process_name, coredump_path] why do you need str()? the path to driver should be a str already, otherwise it would be None, but in that case gdb will fail anyway. Wouldn't it be easier to pass bin_dir directly to GDBCrashLogGenerator instead of passing the driver only path to get its dirname?
Philippe Normand
Comment 3 2014-11-11 01:02:44 PST
Philippe Normand
Comment 4 2014-11-11 01:05:58 PST
(In reply to comment #2) > Comment on attachment 241286 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241286&action=review > > LGTM > > > Tools/Scripts/webkitpy/port/linux_get_crash_log.py:44 > > - cmd = ['gdb', '-ex', 'thread apply all bt 1024', '--batch', str(self._path_to_driver()), coredump_path] > > + process_name = os.path.join(os.path.dirname(str(self._path_to_driver())), self.name) > > + cmd = ['gdb', '-ex', 'thread apply all bt 1024', '--batch', process_name, coredump_path] > > why do you need str()? the path to driver should be a str already, otherwise > it would be None, but in that case gdb will fail anyway. Wouldn't it be > easier to pass bin_dir directly to GDBCrashLogGenerator instead of passing > the driver only path to get its dirname? Might be for unit-tests purposes. Anyway I didn't want to make too many changes in this patch, perhaps this could be fixed along in bug 128928.
Note You need to log in before you can comment on or make changes to this bug.