~ubuntu-branches/ubuntu/lucid/bug-buddy/lucid

« back to all changes in this revision

Viewing changes to google-breakpad/src/client/linux/handler/exception_handler.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-03-17 11:52:38 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20090317115238-pelki75p8yvl9bw1
Tags: 2.26.0+dfsg-0ubuntu1
* New upstream release: (LP: #344132)
  - Don't hardcode a scrollkeeper check in the configure script.
  - Build correctly with --disable-eds.
  - Fix a segfault (Josseline Mouette).
  - Don't free uninitialized memory.
  - Drop libgnome and libgnomeui dependencies.
  - Make google-breakpad support optional (but enabled by default).
    Thanks to Sjoerd Simons.
  - Obtain the real path of the crashed process by looking in /proc.
    Thanks to Sam Morris and Matt Keenan.
  - Add an option to delete the included file after bug-buddy has
    processed it.
  - Implement a logger for pasting critical and fatal warnings in the
    stacktraces.
  - Include the loaded GTK+ modules in the stacktraces sent to bugzilla.
  - Update google-breakpad to SVN r290.
  - Compile with all the GLib/GTK+ deprecation flags.
* debian/control.in:
  - remove scroolkeeper, libgnome2-dev and libgnomeui-dev b-d
  - bump libgtk2.0-dev to 2.14
  - add libgconf2-dev
  - add Vcs-Bzr tag
  - re-generate debian/control
* debian/patches:
  - remove 01_double-free.patch as taken upstream
  - remove 02_disable_breakpad.patch as upstream handle --disable-*
    (and so, --disable-google-breakpad)
  - refresh 70_automake-autoconf.patch
* debian/rules: remove --disable-scrollkeeper as removed in configure
  file
* Adapt debian/watch to get unstable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
  void set_dump_path(const string &dump_path) {
127
127
    dump_path_ = dump_path;
128
128
    dump_path_c_ = dump_path_.c_str();
 
129
    UpdateNextID();
129
130
  }
130
131
 
131
132
  // Writes a minidump immediately.  This can be used to capture the
160
161
  bool InternalWriteMinidump(int signo, uintptr_t sighandler_ebp,
161
162
                             struct sigcontext **sig_ctx);
162
163
 
 
164
  // Generates a new ID and stores it in next_minidump_id, and stores the
 
165
  // path of the next minidump to be written in next_minidump_path_.
 
166
  void UpdateNextID();
 
167
 
163
168
 private:
164
169
  FilterCallback filter_;
165
170
  MinidumpCallback callback_;
168
173
  // The directory in which a minidump will be written, set by the dump_path
169
174
  // argument to the constructor, or set_dump_path.
170
175
  string dump_path_;
171
 
  // C style dump path. Keep this when setting dump path, since calling
172
 
  // c_str() of std::string when crashing may not be safe.
 
176
 
 
177
  // The basename of the next minidump to be written, without the extension
 
178
  string next_minidump_id_;
 
179
 
 
180
  // The full pathname of the next minidump to be written, including the file
 
181
  // extension
 
182
  string next_minidump_path_;
 
183
 
 
184
  // Pointers to C-string representations of the above. These are set
 
185
  // when the above are set so we can avoid calling c_str during
 
186
  // an exception.
173
187
  const char *dump_path_c_;
 
188
  const char *next_minidump_id_c_;
 
189
  const char *next_minidump_path_c_;
174
190
 
175
191
  // True if the ExceptionHandler installed an unhandled exception filter
176
192
  // when created (with an install_handler parameter set to true).