source: trunk/kStuff/kDbg/kDbgModLdr.cpp@ 3541

Last change on this file since 3541 was 3541, checked in by bird, 18 years ago

errors and stuff.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1/* $Id: kDbgModLdr.cpp 3541 2007-08-25 03:46:14Z bird $ */
2/** @file
3 * kDbg - The Debug Info Reader, kLdr Based.
4 */
5
6/*
7 * Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
8 *
9 * This file is part of kStuff.
10 *
11 * kStuff 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 * kStuff is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kStuff; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */
26
27/*******************************************************************************
28* Header Files *
29*******************************************************************************/
30#include <k/kDbg.h>
31#include "kLdr.h"
32#include "kDbgInternal.h"
33
34
35/*******************************************************************************
36* Structures and Typedefs *
37*******************************************************************************/
38/**
39 * A kLdr based debug reader.
40 */
41typedef struct KDBGMODLDR
42{
43 /** The common module core. */
44 KDBGMOD Core;
45 /** Pointer to the loader module. */
46 PKLDRMOD pLdrMod;
47} KDBGMODLDR, *PKDBGMODLDR;
48
49
50/**
51 * @copydoc KDBGMODOPS::pfnQueryLine
52 */
53static int kDbgModPeQueryLine(PKDBGMOD pMod, int32_t iSegment, KDBGADDR off, PKDBGLINE pLine)
54{
55 //PKDBGMODLDR pThis = (PKDBGMODLDR)pMod;
56 return KERR_NOT_IMPLEMENTED;
57}
58
59
60/**
61 * @copydoc KDBGMODOPS::pfnQuerySymbol
62 */
63static int kDbgModPeQuerySymbol(PKDBGMOD pMod, int32_t iSegment, KDBGADDR off, PKDBGSYMBOL pSym)
64{
65 //PKDBGMODLDR pThis = (PKDBGMODLDR)pMod;
66 return KERR_NOT_IMPLEMENTED;
67}
68
69
70/**
71 * @copydoc KDBGMODOPS::pfnClose
72 */
73static int kDbgModLdrClose(PKDBGMOD pMod)
74{
75 //PKDBGMODLDr pThis = (PKDBGMODLDR)pMod;
76 return KERR_NOT_IMPLEMENTED;
77}
78
79
80/**
81 * @copydocs KDBGMODOPS::pfnOpen.
82 */
83static int kDbgModLdrOpen(PKDBGHLPFILE pFile, KFOFF off, KFOFF cb, PKLDRMOD pLdrMod, PKDBGMOD *ppMod)
84{
85 return KERR_NOT_IMPLEMENTED;
86}
87
88
89/**
90 * Methods for a PE module.
91 */
92const KDBGMODOPS g_kDbgModPeOps =
93{
94 "kLdr",
95 kDbgModLdrOpen,
96 kDbgModLdrClose,
97 kDbgModLdrQuerySymbol,
98 kDbgModLdrQueryLine
99 "kLdr"
100};
101
102
103
104
Note: See TracBrowser for help on using the repository browser.