/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Andrew Bennetts
  • Date: 2010-04-08 07:01:10 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5141.
  • Revision ID: andrew.bennetts@canonical.com-20100408070110-mnvv0kbbyaj6cqdg
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
    exc_type, exc_object, exc_tb = exc_info
144
144
 
145
145
    pr = Report()
146
 
    # add_proc_info gives you the memory map of the process, which is not so
147
 
    # useful for Bazaar but does tell you what binary libraries are loaded.
148
 
    # More importantly it sets the ExecutablePath, InterpreterPath, etc.
 
146
    # add_proc_info gets the executable and interpreter path, which is needed,
 
147
    # plus some less useful stuff like the memory map
149
148
    pr.add_proc_info()
150
149
    pr.add_user_info()
151
150
 
166
165
    pr['PythonLoadedModules'] = _format_module_list()
167
166
    pr['BzrDebugFlags'] = pprint.pformat(debug.debug_flags)
168
167
 
169
 
    # actually we'd rather file directly against the upstream product, but
170
 
    # apport does seem to count on there being one in there; we might need to
171
 
    # redirect it elsewhere anyhow
172
 
    pr['SourcePackage'] = 'bzr'
173
 
    pr['Package'] = 'bzr'
174
 
 
175
 
    # tell apport to file directly against the bzr package using 
176
 
    # <https://bugs.edge.launchpad.net/bzr/+bug/391015>
177
 
    #
178
 
    # XXX: unfortunately apport may crash later if the crashdb definition
179
 
    # file isn't present
180
 
    pr['CrashDb'] = 'bzr'
181
 
 
182
168
    tb_file = StringIO()
183
169
    traceback.print_exception(exc_type, exc_object, exc_tb, file=tb_file)
184
170
    pr['Traceback'] = tb_file.getvalue()