breakpad/src/common
jimblandy 073a7f6695 Breakpad unit tests: Add support for clipped-size null-terminated strings
to TestAssembler::Section.

This patch helps the TestAssembler classes generate Mach-O object files for
use as test input.

This patch adds a new AppendCString overloading to TestAssembler::Section
for emitting null-terminated strings in fixed-length buffers, where the
string is truncated and the terminating null character omitted if the
string is too large for the buffer.

The patch includes unit tests for the new AppendCString overloading. It
also provides some for the existing overloading, which had been neglected.

a=jimblandy, r=mark


git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@590 4c0a9323-5329-0410-9bdc-e9ce6186880e
2010-05-05 17:37:58 +00:00
..
dwarf Breakpad test support: Move test_assembler.{h,cc} from src/processor to src/common. 2010-04-27 19:17:59 +00:00
linux Breakpad Linux dumper: Handle STABS-in-symbol-table, and line number records outside functions. 2010-05-05 17:34:19 +00:00
mac Breakpad Mac Dumper: Fix compilation warnings on OS X 10.6 2010-05-05 17:36:16 +00:00
solaris Breakpad: Update copyright notice years on all files changed in 2010. 2010-02-09 17:08:56 +00:00
testdata Breakpad Linux dumper: Make StabsReader independent of endianness and word size. 2010-05-05 17:09:20 +00:00
windows don't output duplicate filenames in PDBSourceLineWriter. r=mark at http://breakpad.appspot.com/43001 2009-11-23 14:50:55 +00:00
byte_cursor.h Breakpad symbol dumper: Define the ByteBuffer and ByteCursor classes. 2010-05-05 17:07:23 +00:00
byte_cursor_unittest.cc Breakpad symbol dumper: Define the ByteBuffer and ByteCursor classes. 2010-05-05 17:07:23 +00:00
convert_UTF.c Add unicode.org UTF-8/16/32 conversion code. 2006-12-15 00:03:27 +00:00
convert_UTF.h Add unicode.org UTF-8/16/32 conversion code. 2006-12-15 00:03:27 +00:00
dwarf_cfi_to_module.cc Breakpad Dumper: Move CFI register names to DwarfCFIToModule class. 2010-04-28 18:14:59 +00:00
dwarf_cfi_to_module.h Breakpad Dumper: Move CFI register names to DwarfCFIToModule class. 2010-04-28 18:14:59 +00:00
dwarf_cfi_to_module_unittest.cc Breakpad Dumper: Move CFI register names to DwarfCFIToModule class. 2010-04-28 18:14:59 +00:00
dwarf_cu_to_module.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
dwarf_cu_to_module.h Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
dwarf_cu_to_module_unittest.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
dwarf_line_to_module.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
dwarf_line_to_module.h Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
dwarf_line_to_module_unittest.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
language.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
language.h Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
md5.c Solaris version of symbol dumper (#207). Patch by Alfred Peng. r=me 2007-09-28 18:14:48 +00:00
md5.h Solaris version of symbol dumper (#207). Patch by Alfred Peng. r=me 2007-09-28 18:14:48 +00:00
module.cc Breakpad symbol dumper: Move Linux dumping classes into src/common. 2010-04-05 19:40:17 +00:00
module.h Breakpad symbol dumper: Promise that Module::SetLoadAddress can be called at any time. 2010-05-05 17:35:10 +00:00
module_unittest.cc Breakpad symbol dumper: Promise that Module::SetLoadAddress can be called at any time. 2010-05-05 17:35:10 +00:00
stabs_reader.cc Breakpad Linux dumper: Handle STABS-in-symbol-table, and line number records outside functions. 2010-05-05 17:34:19 +00:00
stabs_reader.h Breakpad Linux dumper: Handle STABS-in-symbol-table, and line number records outside functions. 2010-05-05 17:34:19 +00:00
stabs_reader_unittest.cc Breakpad Linux dumper: Handle STABS-in-symbol-table, and line number records outside functions. 2010-05-05 17:34:19 +00:00
stabs_to_module.cc Breakpad STABS reader: Properly compute function end addresses. 2010-05-05 17:13:42 +00:00
stabs_to_module.h Breakpad Linux dumper: Rename DumpStabsHandler to StabsToModule. 2010-05-05 17:12:38 +00:00
stabs_to_module_unittest.cc Breakpad Linux dumper: Rename DumpStabsHandler to StabsToModule. 2010-05-05 17:12:38 +00:00
string_conversion.cc issue 238 - missing includes compiling with gcc 4.3. patch by taras glek, r=me 2008-02-24 21:04:51 +00:00
string_conversion.h Solaris port of minidump generator. Port by Alfred Peng. r=me 2007-08-07 21:16:45 +00:00
test_assembler.cc Breakpad Linux dumper: Make StabsReader independent of endianness and word size. 2010-05-05 17:09:20 +00:00
test_assembler.h Breakpad unit tests: Add support for clipped-size null-terminated strings 2010-05-05 17:37:58 +00:00
test_assembler_unittest.cc Breakpad unit tests: Add support for clipped-size null-terminated strings 2010-05-05 17:37:58 +00:00