资源简介
官网下载的ruby包,centos6.x种yum自带的版本过低,如果需要安装ruby相关插件,需要安装高版本。
代码片段和文件信息
/**********************************************************************
addr2line.c -
$Author$
Copyright (C) 2010 Shinichiro Hamaji
**********************************************************************/
#include “ruby/config.h“
#include “ruby/missing.h“
#include “addr2line.h“
#include
#include
#ifdef USE_ELF
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifdef __OpenBSD__
#include
#else
#include
#endif
/* Make alloca work the best possible way. */
#ifdef __GNUC__
# ifndef alloca
# define alloca __builtin_alloca
# endif
#else
# ifdef HAVE_ALLOCA_H
# include
# else
# ifdef _AIX
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
void *alloca();
# endif
# endif /* AIX */
# endif /* HAVE_ALLOCA_H */
#endif /* __GNUC__ */
#ifdef HAVE_DLADDR
# include
#endif
#define DW_LNS_copy 0x01
#define DW_LNS_advance_pc 0x02
#define DW_LNS_advance_line 0x03
#define DW_LNS_set_file 0x04
#define DW_LNS_set_column 0x05
#define DW_LNS_negate_stmt 0x06
#define DW_LNS_set_basic_block 0x07
#define DW_LNS_const_add_pc 0x08
#define DW_LNS_fixed_advance_pc 0x09
#define DW_LNS_set_prologue_end 0x0a /* DWARF3 */
#define DW_LNS_set_epilogue_begin 0x0b /* DWARF3 */
#define DW_LNS_set_isa 0x0c /* DWARF3 */
/* Line number extended opcode name. */
#define DW_LNE_end_sequence 0x01
#define DW_LNE_set_address 0x02
#define DW_LNE_define_file 0x03
#define DW_LNE_set_discriminator 0x04 /* DWARF4 */
#ifndef ElfW
# if SIZEOF_VOIDP == 8
# define ElfW(x) Elf64##_##x
# else
# define ElfW(x) Elf32##_##x
# endif
#endif
#ifndef ELF_ST_TYPE
# if SIZEOF_VOIDP == 8
# define ELF_ST_TYPE ELF64_ST_TYPE
# else
# define ELF_ST_TYPE ELF32_ST_TYPE
# endif
#endif
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
int kprintf(const char *fmt ...);
typedef struct {
const char *dirname;
const char *filename;
const char *path; /* object path */
int line;
uintptr_t base_addr;
uintptr_t saddr;
const char *sname; /* function name */
} line_info_t;
typedef struct obj_info obj_info_t;
struct obj_info {
const char *path; /* object path */
int fd;
void *mapped;
size_t mapped_size;
uintptr_t base_addr;
obj_info_t *next;
};
/* Avoid consuming stack as this module may be used from signal handler */
static char binary_filename[PATH_MAX];
static unsigned long
uleb128(char **p)
{
unsigned long r = 0;
int s = 0;
for (;;) {
unsigned char b = *(unsigned char *)(*p)++;
if (b < 0x80) {
r += (unsigned long)b << s;
break;
}
r += (b & 0x7f) << s;
s += 7;
}
return r;
}
static lo
相关资源
- 《Ruby on Rails Tutorial(中文版)》安道
- redis集群所需包,内含redis-3.2.1.gem,
-
me
taprogramming Ruby 2(Pragmatic2014) - Ruby元编程 第2版 中文 佩罗塔著 2015
- Ruby安装包rubyinstaller-devkit-2.5.1-1-x64
- CentOS7.x 离线安装redis-cluster所需包
- 小米Ruby 15.6寸EFI.zip
- Ruby on Rails Tutorial中文版原书第四版
- 优雅的Ruby--张汉东--翻译
- Unity2d RubysAdventrue正式版1.0MacOS平台.
- Ruby编程语言The Ruby Programming Language
- rubyinstaller-devkit-2.7.1-1-x64.zip
- Web开发敏捷之道应用Rails进行敏捷We
- rubyinstaller-devkit-2.6.6-1-x64.exe
- ruby-2.5.3-x64
- rubygems
- Ruby on Rails安装指南.docx
- Ruby中文教程带源码
- cucumber安装
- RUBY API for sketchup (狂刀整理版).
- ruby on rails 视频教程 ruby编程语言从入
- rubygems-2.6.12
- Ruby入门级
- ruby 商场自助停车
-
基于Ruby的MKS reba
se脚本 - 《Ruby on Rails 4 Tutorial 中文版》pdf
评论
共有 条评论