mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-31 00:43:02 +01:00
29e58ab686
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
55 lines
1.4 KiB
C++
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
|