资源简介
gdb最新版本,gdb最新版本,gdb最新版本,gdb最新版本gdb最新版本gdb最新版本
代码片段和文件信息
/* BFD back-end for AIX on PS/2 core files.
This was based on trad-core.c which was written by John Gilmore of
Cygnus Support.
Copyright (C) 1988-2017 Free Software Foundation Inc.
Written by Minh Tran-Le .
Converted to back end form by Ian Lance Taylor .
This file is part of BFD the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License or
(at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 51 Franklin Street - Fifth Floor Boston
MA 02110-1301 USA. */
#include “sysdep.h“
#include “bfd.h“
#include “libbfd.h“
#include “coff/i386.h“
#include “coff/internal.h“
#include “libcoff.h“
#include
#if defined (_AIX) && defined (_I386)
#define NOCHECKS /* This is for coredump.h. */
#define _h_USER /* Avoid including user.h from coredump.h. */
#include
#include
#endif /* _AIX && _I386 */
/* Maybe this could work on some other i386 but I have not tried it
* mtranle@paris - Tue Sep 24 12:49:35 1991
*/
#ifndef COR_MAGIC
# define COR_MAGIC “core“
#endif
/* Need this cast because ptr is really void *. */
#define core_hdr(bfd) \
(((bfd->tdata.trad_core_data))->hdr)
#define core_section(bfdn) \
(((bfd)->tdata.trad_core_data)->sections[n])
#define core_regsec(bfd) \
(((bfd)->tdata.trad_core_data)->reg_section)
#define core_reg2sec(bfd) \
(((bfd)->tdata.trad_core_data)->reg2_section)
/* These are stored in the bfd‘s tdata. */
struct trad_core_struct
{
struct corehdr *hdr; /* core file header */
asection *reg_section;
asection *reg2_section;
asection *sections[MAX_CORE_SEGS];
};
static const bfd_target *
aix386_core_file_p (bfd *abfd)
{
int i n;
unsigned char longbuf[4]; /* Raw bytes of various header fields */
bfd_size_type core_size = sizeof (struct corehdr);
bfd_size_type amt;
struct corehdr *core;
struct mergem
{
struct trad_core_struct coredata;
struct corehdr internal_core;
} *mergem;
flagword flags;
amt = sizeof (longbuf);
if (bfd_bread (longbuf amt abfd) != amt)
{
if (bfd_get_error () != bfd_error_system_call)
bfd_set_error (bfd_error_wrong_format);
return 0;
}
if (strncmp (longbuf COR_MAGIC 4))
return 0;
if (bfd_seek (abfd (file_ptr) 0 0) != 0)
return 0;
amt = sizeof (struct mergem);
mergem = (struct mergem *) bfd_zalloc (abfd amt);
if (mergem == NULL)
re
- 上一篇:图书管理系统项目
- 下一篇:SSM学生信息管理系统
相关资源
- springMVC结合webUploader完美实现图片上传
- crazybox最新固件
- 最新骑士人才系统 74cms V4.2.3 单城市商
- tensorflow-master.zip 2018.10.29最新版
- 36个最新微信小程序源码
- Origin2017_最新官方教程图文并茂
- 企业秀源码 H5页面 最新微场景源码
- 2018年统计用区划代码和城乡划分代码
- jdk api 1.8 最新版(中文版
- wireshark-20190407 网络抓包及分析工具
- 微型计算机原理与接口技术第三版P
- 计算机组成原理与系统结构2010最新版
- 最新AnyLogic多方法建模与仿真-官方培
- 2016最新PMBOK第五版中文完整版-带书签
- XtreamPaths2最新版 和谐免注册支持AIC
- VS2015编译好的最新OpenSSL-1.0.2j所有共八
- 最新版的MRT工具及安装文档说明
- noteexpress2.8.1.2024 最新破解版
- 最新hibernate 4.1.1.Final版本
- Skinsharp最新破解版+150个皮肤 SkinH皮肤
- PowerGREPD5.0.2.0汉化版 最新 稳定
- navicat112_premium_cs_x64_最新含破解方法
- 2018年最新FE素材网站
- 致远OA A8 2017最新教程800页
- 《数字信号处理》美Lyons著2011最新第
- VisualAssistX(2331)最新和谐版本
- CCS6.2器,CC6最新版,免破解
- 赞片CMS最新版 ZanPianCms_v8.20181212
- HyperSnap最新8.16.08 简体中文汉化注册版
- 飞天1kND 加密锁最新驱动(支持Win10
评论
共有 条评论