GDB (API)
|
00001 /* S-record download support for GDB, the GNU debugger. 00002 Copyright (C) 1995-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 struct serial; 00020 00021 void load_srec (struct serial *desc, const char *file, bfd_vma load_offset, 00022 int maxrecsize, int flags, int hashmark, 00023 int (*waitack) (void)); 00024 00025 /* S-record capability flags */ 00026 00027 /* Which record types are supported */ 00028 #define SREC_2_BYTE_ADDR 0x00000001 00029 #define SREC_3_BYTE_ADDR 0x00000002 00030 #define SREC_4_BYTE_ADDR 0x00000004 00031 #define SREC_TERM_SHIFT 3 00032 00033 #define SREC_ALL (SREC_2_BYTE_ADDR | SREC_3_BYTE_ADDR | SREC_4_BYTE_ADDR \ 00034 | ((SREC_2_BYTE_ADDR | SREC_3_BYTE_ADDR | SREC_4_BYTE_ADDR) \ 00035 << SREC_TERM_SHIFT))