GDB (API)
Typedefs | Functions | Variables
/home/stan/gdb/src/gdb/corefile.c File Reference
#include "defs.h"
#include "gdb_string.h"
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include "inferior.h"
#include "symtab.h"
#include "command.h"
#include "gdbcmd.h"
#include "bfd.h"
#include "target.h"
#include "gdbcore.h"
#include "dis-asm.h"
#include "gdb_stat.h"
#include "completer.h"
#include "exceptions.h"
#include "observer.h"
#include "cli/cli-utils.h"

Go to the source code of this file.

Typedefs

typedef void(* hook_type )(char *)

Functions

void _initialize_core (void)
void core_file_command (char *filename, int from_tty)
void specify_exec_file_hook (void(*hook)(char *))
void reopen_exec_file (void)
void validate_files (void)
char * get_exec_file (int err)
char * memory_error_message (enum target_xfer_error err, struct gdbarch *gdbarch, CORE_ADDR memaddr)
void memory_error (enum target_xfer_error err, CORE_ADDR memaddr)
void read_memory (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void read_stack (CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
int safe_read_memory_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order, LONGEST *return_value)
LONGEST read_memory_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
ULONGEST read_memory_unsigned_integer (CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
void read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len)
CORE_ADDR read_memory_typed_address (CORE_ADDR addr, struct type *type)
void write_memory (CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
void write_memory_with_notification (CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
void write_memory_unsigned_integer (CORE_ADDR addr, int len, enum bfd_endian byte_order, ULONGEST value)
void write_memory_signed_integer (CORE_ADDR addr, int len, enum bfd_endian byte_order, LONGEST value)
void set_gnutarget (char *newtarget)

Variables

hook_type deprecated_exec_file_display_hook
bfd * core_bfd = NULL
struct target_opscore_target
char * gnutarget

Typedef Documentation

typedef void(* hook_type)(char *)

Definition at line 53 of file corefile.c.


Function Documentation

void _initialize_core ( void  )
void core_file_command ( char *  filename,
int  from_tty 
)

Definition at line 72 of file corefile.c.

char* get_exec_file ( int  err)

Definition at line 183 of file corefile.c.

void memory_error ( enum target_xfer_error  err,
CORE_ADDR  memaddr 
)

Definition at line 221 of file corefile.c.

char* memory_error_message ( enum target_xfer_error  err,
struct gdbarch *  gdbarch,
CORE_ADDR  memaddr 
)

Definition at line 197 of file corefile.c.

void read_memory ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

Definition at line 247 of file corefile.c.

LONGEST read_memory_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 338 of file corefile.c.

void read_memory_string ( CORE_ADDR  memaddr,
char *  buffer,
int  max_len 
)

Definition at line 358 of file corefile.c.

CORE_ADDR read_memory_typed_address ( CORE_ADDR  addr,
struct type type 
)

Definition at line 385 of file corefile.c.

ULONGEST read_memory_unsigned_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order 
)

Definition at line 348 of file corefile.c.

void read_stack ( CORE_ADDR  memaddr,
gdb_byte myaddr,
ssize_t  len 
)

Definition at line 270 of file corefile.c.

void reopen_exec_file ( void  )

Definition at line 136 of file corefile.c.

int safe_read_memory_integer ( CORE_ADDR  memaddr,
int  len,
enum bfd_endian  byte_order,
LONGEST return_value 
)

Definition at line 318 of file corefile.c.

void set_gnutarget ( char *  newtarget)

Definition at line 501 of file corefile.c.

void specify_exec_file_hook ( void(*)(char *)  hook)

Definition at line 102 of file corefile.c.

void validate_files ( void  )

Definition at line 167 of file corefile.c.

void write_memory ( CORE_ADDR  memaddr,
const bfd_byte *  myaddr,
ssize_t  len 
)

Definition at line 396 of file corefile.c.

void write_memory_signed_integer ( CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order,
LONGEST  value 
)

Definition at line 432 of file corefile.c.

void write_memory_unsigned_integer ( CORE_ADDR  addr,
int  len,
enum bfd_endian  byte_order,
ULONGEST  value 
)

Definition at line 419 of file corefile.c.

void write_memory_with_notification ( CORE_ADDR  memaddr,
const bfd_byte *  myaddr,
ssize_t  len 
)

Definition at line 409 of file corefile.c.


Variable Documentation

bfd* core_bfd = NULL

Definition at line 62 of file corefile.c.

Definition at line 66 of file corefile.c.

Definition at line 55 of file corefile.c.

char* gnutarget

Definition at line 444 of file corefile.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines