Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace accidental DOS (and mixed) line endings in a few text files
Summary: Similar to rL256704 and rL256707, fix a few text files which were accidentally checked in with DOS line endings, or mixed line endings. Reviewers: jingham, emaste Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D16027 llvm-svn: 257361
- Loading branch information
1 parent
081103a
commit 9a3a6ab
Showing
5 changed files
with
172 additions
and
172 deletions.
There are no files selected for viewing
62 changes: 31 additions & 31 deletions
62
lldb/packages/Python/lldbsuite/test/functionalities/postmortem/minidump/fizzbuzz.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
// A sample program for getting minidumps on Windows. | ||
|
||
#include <iostream> | ||
|
||
bool | ||
fizz(int x) | ||
{ | ||
return x % 3 == 0; | ||
} | ||
|
||
bool | ||
buzz(int x) | ||
{ | ||
return x % 5 == 0; | ||
} | ||
|
||
int | ||
main() | ||
{ | ||
int *buggy = 0; | ||
|
||
for (int i = 1; i <= 100; ++i) | ||
{ | ||
if (fizz(i)) std::cout << "fizz"; | ||
if (buzz(i)) std::cout << "buzz"; | ||
if (!fizz(i) && !buzz(i)) std::cout << i; | ||
std::cout << '\n'; | ||
} | ||
|
||
return *buggy; | ||
} | ||
// A sample program for getting minidumps on Windows. | ||
|
||
#include <iostream> | ||
|
||
bool | ||
fizz(int x) | ||
{ | ||
return x % 3 == 0; | ||
} | ||
|
||
bool | ||
buzz(int x) | ||
{ | ||
return x % 5 == 0; | ||
} | ||
|
||
int | ||
main() | ||
{ | ||
int *buggy = 0; | ||
|
||
for (int i = 1; i <= 100; ++i) | ||
{ | ||
if (fizz(i)) std::cout << "fizz"; | ||
if (buzz(i)) std::cout << "buzz"; | ||
if (!fizz(i) && !buzz(i)) std::cout << i; | ||
std::cout << '\n'; | ||
} | ||
|
||
return *buggy; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
//===-- CommandObjectLanguage.cpp -------------------------------*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "CommandObjectLanguage.h" | ||
|
||
#include "lldb/Host/Host.h" | ||
|
||
#include "lldb/Interpreter/CommandInterpreter.h" | ||
#include "lldb/Interpreter/CommandReturnObject.h" | ||
|
||
#include "lldb/Target/Language.h" | ||
#include "lldb/Target/LanguageRuntime.h" | ||
|
||
using namespace lldb; | ||
using namespace lldb_private; | ||
|
||
CommandObjectLanguage::CommandObjectLanguage (CommandInterpreter &interpreter) : | ||
CommandObjectMultiword (interpreter, | ||
"language", | ||
"A set of commands for managing language-specific functionality.'.", | ||
"language <language-name> <subcommand> [<subcommand-options>]" | ||
) | ||
{ | ||
//Let the LanguageRuntime populates this command with subcommands | ||
LanguageRuntime::InitializeCommands(this); | ||
} | ||
|
||
void | ||
CommandObjectLanguage::GenerateHelpText (Stream &output_stream) { | ||
CommandObjectMultiword::GenerateHelpText(output_stream); | ||
} | ||
|
||
CommandObjectLanguage::~CommandObjectLanguage () | ||
{ | ||
} | ||
//===-- CommandObjectLanguage.cpp -------------------------------*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "CommandObjectLanguage.h" | ||
|
||
#include "lldb/Host/Host.h" | ||
|
||
#include "lldb/Interpreter/CommandInterpreter.h" | ||
#include "lldb/Interpreter/CommandReturnObject.h" | ||
|
||
#include "lldb/Target/Language.h" | ||
#include "lldb/Target/LanguageRuntime.h" | ||
|
||
using namespace lldb; | ||
using namespace lldb_private; | ||
|
||
CommandObjectLanguage::CommandObjectLanguage (CommandInterpreter &interpreter) : | ||
CommandObjectMultiword (interpreter, | ||
"language", | ||
"A set of commands for managing language-specific functionality.'.", | ||
"language <language-name> <subcommand> [<subcommand-options>]" | ||
) | ||
{ | ||
//Let the LanguageRuntime populates this command with subcommands | ||
LanguageRuntime::InitializeCommands(this); | ||
} | ||
|
||
void | ||
CommandObjectLanguage::GenerateHelpText (Stream &output_stream) { | ||
CommandObjectMultiword::GenerateHelpText(output_stream); | ||
} | ||
|
||
CommandObjectLanguage::~CommandObjectLanguage () | ||
{ | ||
} |
92 changes: 46 additions & 46 deletions
92
lldb/source/Plugins/Process/Windows/Live/IDebugDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
//===-- IDebugDelegate.h ----------------------------------------*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef liblldb_Plugins_Process_Windows_IDebugDelegate_H_ | ||
#define liblldb_Plugins_Process_Windows_IDebugDelegate_H_ | ||
|
||
#include "ForwardDecl.h" | ||
#include "lldb/lldb-forward.h" | ||
#include "lldb/lldb-types.h" | ||
#include <string> | ||
|
||
namespace lldb_private | ||
{ | ||
class Error; | ||
class HostThread; | ||
|
||
//---------------------------------------------------------------------- | ||
// IDebugDelegate | ||
// | ||
// IDebugDelegate defines an interface which allows implementors to receive | ||
// notification of events that happen in a debugged process. | ||
//---------------------------------------------------------------------- | ||
class IDebugDelegate | ||
{ | ||
public: | ||
virtual ~IDebugDelegate() {} | ||
|
||
virtual void OnExitProcess(uint32_t exit_code) = 0; | ||
virtual void OnDebuggerConnected(lldb::addr_t image_base) = 0; | ||
virtual ExceptionResult OnDebugException(bool first_chance, const ExceptionRecord &record) = 0; | ||
virtual void OnCreateThread(const HostThread &thread) = 0; | ||
virtual void OnExitThread(lldb::tid_t thread_id, uint32_t exit_code) = 0; | ||
virtual void OnLoadDll(const ModuleSpec &module_spec, lldb::addr_t module_addr) = 0; | ||
virtual void OnUnloadDll(lldb::addr_t module_addr) = 0; | ||
virtual void OnDebugString(const std::string &string) = 0; | ||
virtual void OnDebuggerError(const Error &error, uint32_t type) = 0; | ||
}; | ||
} | ||
|
||
#endif | ||
//===-- IDebugDelegate.h ----------------------------------------*- C++ -*-===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef liblldb_Plugins_Process_Windows_IDebugDelegate_H_ | ||
#define liblldb_Plugins_Process_Windows_IDebugDelegate_H_ | ||
|
||
#include "ForwardDecl.h" | ||
#include "lldb/lldb-forward.h" | ||
#include "lldb/lldb-types.h" | ||
#include <string> | ||
|
||
namespace lldb_private | ||
{ | ||
class Error; | ||
class HostThread; | ||
|
||
//---------------------------------------------------------------------- | ||
// IDebugDelegate | ||
// | ||
// IDebugDelegate defines an interface which allows implementors to receive | ||
// notification of events that happen in a debugged process. | ||
//---------------------------------------------------------------------- | ||
class IDebugDelegate | ||
{ | ||
public: | ||
virtual ~IDebugDelegate() {} | ||
|
||
virtual void OnExitProcess(uint32_t exit_code) = 0; | ||
virtual void OnDebuggerConnected(lldb::addr_t image_base) = 0; | ||
virtual ExceptionResult OnDebugException(bool first_chance, const ExceptionRecord &record) = 0; | ||
virtual void OnCreateThread(const HostThread &thread) = 0; | ||
virtual void OnExitThread(lldb::tid_t thread_id, uint32_t exit_code) = 0; | ||
virtual void OnLoadDll(const ModuleSpec &module_spec, lldb::addr_t module_addr) = 0; | ||
virtual void OnUnloadDll(lldb::addr_t module_addr) = 0; | ||
virtual void OnDebugString(const std::string &string) = 0; | ||
virtual void OnDebuggerError(const Error &error, uint32_t type) = 0; | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters