1
0
Fork 0

PROJECT: AStyle

This commit is contained in:
Mr. eXoDia 2014-08-02 20:50:03 +02:00
parent 1e8f1928ab
commit a8d9743fa8
23 changed files with 40 additions and 39 deletions

View File

@ -56,7 +56,7 @@ void dbload()
LZ4_compress_file(dbpath, dbpath);
if(!root)
{
dputs("\ninvalid database file (JSON)!");
dputs("\ninvalid database file (JSON)!");
return;
}
commentcacheload(root);

View File

@ -67,7 +67,7 @@ struct MODINFO
uint hash; //full module name hash
char name[MAX_MODULE_SIZE]; //module name (without extension)
char extension[MAX_MODULE_SIZE]; //file extension
std::vector<MODSECTIONINFO> sections;
std::vector<MODSECTIONINFO> sections;
};
typedef std::map<Range, MODINFO, RangeCompare> ModulesInfo;

View File

@ -42,7 +42,7 @@ bool assemble(uint addr, unsigned char* dest, int* size, const char* instruction
memcpy(dest, parse.dest, parse.dest_size);
if(size)
*size=parse.dest_size;
return true;
}

View File

@ -151,7 +151,7 @@ bool bpenumall(BPENUMCALLBACK cbEnum, const char* module)
{
if(!cbEnum(&curBp))
retval=false;
}
}
}
return retval;
}

View File

@ -41,7 +41,7 @@ static DWORD WINAPI memMapThread(void* ptr)
while(!DbgIsDebugging())
Sleep(1);
const SIZE_T PrivateUsage=dbggetprivateusage(fdProcessInfo->hProcess);
if(cachePrivateUsage != PrivateUsage && !dbgisrunning()) //update the memory map when
if(cachePrivateUsage != PrivateUsage && !dbgisrunning()) //update the memory map when
{
cachePrivateUsage = PrivateUsage;
memupdatemap(fdProcessInfo->hProcess);
@ -923,7 +923,7 @@ static void cbUnloadDll(UNLOAD_DLL_DEBUG_INFO* UnloadDll)
SymUnloadModule64(fdProcessInfo->hProcess, (DWORD64)base);
dprintf("DLL Unloaded: "fhex" %s\n", base, modname);
if(bBreakOnNextDll || settingboolget("Events", "DllÙnload"))
if(bBreakOnNextDll || settingboolget("Events", "DllUnload"))
{
bBreakOnNextDll=false;
//update GUI

View File

@ -1336,7 +1336,7 @@ CMDRESULT cbDebugDownloadSymbol(int argc, char* argv[])
{
strcpy(szDefaultStore, "http://msdl.microsoft.com/download/symbols");
BridgeSettingSet("Symbols", "DefaultStore", szDefaultStore);
}
}
if(argc < 2) //no arguments
{
symdownloadallsymbols(szSymbolStore); //download symbols for all modules

View File

@ -37,7 +37,8 @@ extern "C"
/* types */
typedef enum {
typedef enum
{
JSON_OBJECT,
JSON_ARRAY,
JSON_STRING,

View File

@ -8,7 +8,7 @@ typedef enum _LZ4_STATUS
LZ4_FAILED_OPEN_OUTPUT,
LZ4_NOT_ENOUGH_MEMORY,
LZ4_INVALID_ARCHIVE,
LZ4_CORRUPTED_ARCHIVE
LZ4_CORRUPTED_ARCHIVE
} LZ4_STATUS;
#if defined (__cplusplus)

View File

@ -167,7 +167,7 @@ void stackgetcallstack(uint csp, CALLSTACK* callstack)
curEntry.from=basicinfo.addr;
data=basicinfo.addr;
if(data)
{
*label=0;
@ -182,7 +182,7 @@ void stackgetcallstack(uint csp, CALLSTACK* callstack)
if(!*label)
sprintf(label, fhex, data);
strcat(returnFromAddr, label);
sprintf_s(curEntry.comment, "return to %s from %s", returnToAddr, returnFromAddr);
}
else

View File

@ -259,7 +259,7 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
PathAppendA(dbbasepath, "db");
CreateDirectoryA(dbbasepath, 0); //create database directory
strcpy(szSymbolCachePath, dir);
PathAppendA(szSymbolCachePath, "symbols");
PathAppendA(szSymbolCachePath, "symbols");
SetCurrentDirectoryA(dir);
gMsgStack=msgallocstack();
if(!gMsgStack)

View File

@ -5,7 +5,7 @@
#define IDI_ICON1 100
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 105

View File

@ -9,11 +9,11 @@ class HeaderButton : public QWidget
public:
explicit HeaderButton(QWidget *parent = 0);
void setGeometry(int x, int y, int w, int h);
signals:
public slots:
};
#endif // HEADERBUTTON_H

View File

@ -135,7 +135,7 @@ public:
void printDumpAt(int_t parVA, bool select);
uint_t rvaToVa(int_t rva);
public slots:
void printDumpAt(int_t parVA);
void debugStateChanged(DBGSTATE state);
@ -151,7 +151,7 @@ private:
} SelectionData_t;
SelectionData_t mSelection;
GuiState_t mGuiState;
protected:

View File

@ -40,7 +40,7 @@ private:
QAction* mFollowDumpAddress;
QAction* mToggleBreakpoint;
QAction* mToggleBookmark;
bool mFollowDumpDefault;
bool mFollowDumpDefault;
};
#endif // REFERENCEVIEW_H

View File

@ -20,7 +20,7 @@ public:
void keyPressEvent(QKeyEvent* event);
void enableMultiSelection(bool enabled);
// Selection Management
void expandSelectionUpTo(int to);
void setSingleSelection(int index);
@ -46,7 +46,7 @@ signals:
void keyPressedSignal(QKeyEvent* event);
void doubleClickedSignal();
void contextMenuSignal(const QPoint &pos);
public slots:
void copyLineSlot();
void copyTableSlot();

View File

@ -86,7 +86,7 @@ public:
void* winId;
QWidget* scriptView;
SearchListView* referenceView;
signals:
void disassembleAt(int_t va, int_t eip);
void repaintGui();

View File

@ -27,13 +27,13 @@ public:
ulong DisassembleNext(byte_t *data, uint_t base, uint_t size, uint_t ip, int n);
Instruction_t DisassembleAt(byte_t* data, uint_t size, uint_t instIndex, uint_t origBase, uint_t origInstRVA);
signals:
public slots:
private:
DISASM mDisasmStruct;
};
#endif // QBEAENGINE_H

View File

@ -20,7 +20,7 @@ public:
signals:
void showCpu();
public slots:
void refreshShortcutsSlot();
void reloadData();
@ -62,7 +62,7 @@ private:
QAction* mSoftBPRemoveAction;
QAction* mSoftBPRemoveAllAction;
QAction* mSoftBPEnableDisableAction;
// Memory BP Context Menu
QAction* mMemBPRemoveAction;
QAction* mMemBPRemoveAllAction;

View File

@ -10,9 +10,9 @@ class LogView : public QTextEdit
Q_OBJECT
public:
explicit LogView(QWidget *parent = 0);
signals:
public slots:
void updateStyle();
void addMsgToLogSlot(QString msg);
@ -21,7 +21,7 @@ public slots:
private:
};
#endif // LOGVIEW_H

View File

@ -12,10 +12,10 @@ public:
explicit MemoryMapView(StdTable *parent = 0);
QString paintContent(QPainter *painter, int_t rowBase, int rowOffset, int col, int x, int y, int w, int h);
void setupContextMenu();
signals:
void showCpu();
public slots:
void refreshShortcutsSlot();
void stateChangedSlot(DBGSTATE state);
@ -49,7 +49,7 @@ private:
QAction* mMemoryExecuteRestore;
QAction* mMemoryRemove;
QAction* mMemoryExecuteSingleshootToggle;
};
#endif // MEMORYMAPVIEW_H

View File

@ -25,7 +25,7 @@ public:
private:
uint_t mBase;
uint_t mSize;
uint_t mSize;
};
#endif // MEMORYPAGE_H

View File

@ -16,9 +16,9 @@ public:
QList<MEMORY_BASIC_INFORMATION> BruteForceProcessMemory();
void printVirtualMemoryMap(QList<MEMORY_BASIC_INFORMATION> parList);
signals:
public slots:
private:
@ -28,7 +28,7 @@ private:
QList<QByteArray> mMemoryRegionsDataList;
QList<MEMORY_BASIC_INFORMATION> mMemoryRegionsList;
};
#endif // MEMORYMAP_H

View File

@ -32,14 +32,14 @@ public:
static void toggleBPByDisabling(BPXTYPE type, uint_t va);
static void toggleBPByRemoving(BPXTYPE type, uint_t va);
static BPXSTATE BPState(BPXTYPE type, uint_t va);
signals:
public slots:
private:
};
#endif // BREAKPOINTS_H