8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 00:03:02 +01:00
firebird-mirror/src/jrd/DebugInterface.h
hvlad 29e58ab686 1. Remove blr_src_info code as it is prevents database downgrade from ODS 11.1
2. Put debug information (mapping between blr offset and source line\column and names of local variables) into new blob field RDB$DEBUG_INFO
This is first step to implement native SQL debugger i believe
2006-10-30 21:04:34 +00:00

55 lines
1.4 KiB
C++

/*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
* http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_idpl.
*
* Software distributed under the License is distributed AS IS,
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
* See the License for the specific language governing rights
* and limitations under the License.
*
* The Original Code was created by Vlad Horsun
* for the Firebird Open Source RDBMS project.
*
* Copyright (c) 2006 Vlad Horsun <hvlad@users.sourceforge.net>
* and all contributors signed below.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
#ifndef DEBUG_INTERFACE_H
#define DEBUG_INTERFACE_H
#include "firebird.h"
#include "../jrd/jrd.h"
#include "../jrd/blb.h"
namespace Firebird {
class MapBlrToSrcItem
{
public:
USHORT mbs_offset;
USHORT mbs_src_line;
USHORT mbs_src_col;
static const USHORT generate(const void*, const MapBlrToSrcItem& Item)
{ return Item.mbs_offset; }
};
typedef Firebird::SortedArray<
MapBlrToSrcItem,
Firebird::EmptyStorage<MapBlrToSrcItem>,
USHORT,
MapBlrToSrcItem> MapBlrToSrc;
}; // namespace Firebird
void DBG_parse_debug_info(Jrd::thread_db*, Jrd::bid*, Firebird::MapBlrToSrc&);
#endif //DEBUG_INTERFACE_H