~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to debuggers/gdb/gdbglobal.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          gdbglobal.h
 
3
                             -------------------
 
4
    begin                : Sun Aug 8 1999
 
5
    copyright            : (C) 1999 by John Birch
 
6
    email                : jbb@kdevelop.org
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef _GDBGLOBAL_H_
 
19
#define _GDBGLOBAL_H_
 
20
 
 
21
#include <QFlags>
 
22
 
 
23
namespace GDBDebugger
 
24
{
 
25
 
 
26
enum DBGStateFlag
 
27
{
 
28
  s_none              = 0,
 
29
  s_dbgNotStarted     = 1,
 
30
  s_appNotStarted     = 2,
 
31
  s_programExited     = 16,
 
32
  s_attached          = 512,
 
33
  s_core              = 1024,
 
34
  s_waitTimer         = 2048,
 
35
  // Set when 'slotStopDebugger' started executing, to avoid
 
36
  // entering that function several times.
 
37
  s_shuttingDown      = 4096,
 
38
  s_explicitBreakInto = (s_shuttingDown << 1),
 
39
  s_dbgBusy           = (s_explicitBreakInto << 1),
 
40
  s_appRunning        = (s_dbgBusy << 1),
 
41
  s_lastDbgState      = (s_appRunning << 1)
 
42
 
 
43
};
 
44
 
 
45
Q_DECLARE_FLAGS(DBGStateFlags, DBGStateFlag)
 
46
Q_DECLARE_OPERATORS_FOR_FLAGS(DBGStateFlags)
 
47
 
 
48
enum QueuePosition {
 
49
    QueueAtEnd,
 
50
    QueueAtFront,
 
51
    QueueWhileInterrupted
 
52
};
 
53
 
 
54
 
 
55
enum DataType { typeUnknown, typeValue, typePointer, typeReference,
 
56
            typeStruct, typeArray, typeQString, typeWhitespace,
 
57
            typeName };
 
58
 
 
59
}
 
60
 
 
61
#endif