GDB (xrefs)
Classes | Functions | Variables
/home/stan/gdb/src/gdb/maint.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include <ctype.h>
#include <signal.h>
#include <sys/time.h>
#include <time.h>
#include "command.h"
#include "gdbcmd.h"
#include "symtab.h"
#include "block.h"
#include "gdbtypes.h"
#include "demangle.h"
#include "gdbcore.h"
#include "expression.h"
#include "language.h"
#include "symfile.h"
#include "objfiles.h"
#include "value.h"
#include "gdb_assert.h"
#include "top.h"
#include "timeval-utils.h"
#include "maint.h"
#include "cli/cli-decode.h"
#include "cli/cli-utils.h"
#include "cli/cli-setshow.h"

Go to the source code of this file.

Classes

struct  cmd_stats

Functions

void _initialize_maint_cmds (void)
static void maintenance_command (char *, int)
static void maintenance_internal_error (char *args, int from_tty)
static void maintenance_demangle (char *, int)
static void maintenance_time_display (char *, int)
static void maintenance_space_display (char *, int)
static void maintenance_info_command (char *, int)
static void maintenance_info_sections (char *, int)
static void maintenance_print_command (char *, int)
static void maintenance_do_deprecate (char *, int)
static void show_watchdog (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void maintenance_dump_me (char *args, int from_tty)
static void maintenance_internal_warning (char *args, int from_tty)
static int match_substring (const char *string, const char *substr)
static int match_bfd_flags (char *string, flagword flags)
static void print_bfd_flags (flagword flags)
static void maint_print_section_info (const char *name, flagword flags, CORE_ADDR addr, CORE_ADDR endaddr, unsigned long filepos, int addr_size)
static void print_bfd_section_info (bfd *abfd, asection *asect, void *arg)
static void print_objfile_section_info (bfd *abfd, struct obj_section *asect, char *string)
static void maintenance_print_statistics (char *args, int from_tty)
static void maintenance_print_architecture (char *args, int from_tty)
static void maintenance_translate_address (char *arg, int from_tty)
static void maintenance_deprecate (char *args, int from_tty)
static void maintenance_undeprecate (char *args, int from_tty)
static void maintenance_set_cmd (char *args, int from_tty)
static void maintenance_show_cmd (char *args, int from_tty)
static void show_maintenance_profile_p (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void maintenance_set_profile_cmd (char *args, int from_tty, struct cmd_list_element *c)
void set_per_command_time (int new_value)
void set_per_command_space (int new_value)
static void count_symtabs_and_blocks (int *nr_symtabs_ptr, int *nr_primary_symtabs_ptr, int *nr_blocks_ptr)
static void report_command_stats (void *arg)
struct cleanupmake_command_stats_cleanup (int msg_type)
static void set_per_command_cmd (char *args, int from_tty)
static void show_per_command_cmd (char *args, int from_tty)

Variables

int watchdog = 0
struct cmd_list_elementmaintenance_set_cmdlist
struct cmd_list_elementmaintenance_show_cmdlist
static int maintenance_profile_p
static int per_command_time
static int per_command_space
static int per_command_symtab
static struct cmd_list_elementper_command_setlist
static struct cmd_list_elementper_command_showlist

Function Documentation

void _initialize_maint_cmds ( void  )
static void count_symtabs_and_blocks ( int nr_symtabs_ptr,
int nr_primary_symtabs_ptr,
int nr_blocks_ptr 
) [static]
static void maint_print_section_info ( const char *  name,
flagword  flags,
CORE_ADDR  addr,
CORE_ADDR  endaddr,
unsigned long  filepos,
int  addr_size 
) [static]
static void maintenance_command ( char *  args,
int  from_tty 
) [static]

Definition at line 87 of file maint.c.

References _, gdb_stdout, help_list(), maintenancelist, and printf_unfiltered().

static void maintenance_demangle ( char *  args,
int  from_tty 
) [static]

Definition at line 143 of file maint.c.

References _, current_language, language_demangle(), printf_unfiltered(), and xfree().

static void maintenance_deprecate ( char *  args,
int  from_tty 
) [static]

Definition at line 535 of file maint.c.

References _, maintenance_do_deprecate(), and printf_unfiltered().

static void maintenance_do_deprecate ( char *  text,
int  deprecate 
) [static]
static void maintenance_dump_me ( char *  args,
int  from_tty 
) [static]

Definition at line 96 of file maint.c.

References _, and query().

static void maintenance_info_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 191 of file maint.c.

References _, gdb_stdout, help_list(), maintenanceinfolist, and printf_unfiltered().

static void maintenance_info_sections ( char *  arg,
int  from_tty 
) [static]
static void maintenance_internal_error ( char *  args,
int  from_tty 
) [static]

Definition at line 118 of file maint.c.

References internal_error().

static void maintenance_internal_warning ( char *  args,
int  from_tty 
) [static]

Definition at line 129 of file maint.c.

References internal_warning().

static void maintenance_print_architecture ( char *  args,
int  from_tty 
) [static]
static void maintenance_print_command ( char *  arg,
int  from_tty 
) [static]

Definition at line 438 of file maint.c.

References _, gdb_stdout, help_list(), maintenanceprintlist, and printf_unfiltered().

static void maintenance_print_statistics ( char *  args,
int  from_tty 
) [static]

Definition at line 407 of file maint.c.

References print_objfile_statistics(), and print_symbol_bcache_statistics().

static void maintenance_set_cmd ( char *  args,
int  from_tty 
) [static]

Definition at line 651 of file maint.c.

References _, gdb_stdout, help_list(), and printf_unfiltered().

static void maintenance_set_profile_cmd ( char *  args,
int  from_tty,
struct cmd_list_element c 
) [static]

Definition at line 730 of file maint.c.

References _, and error().

static void maintenance_show_cmd ( char *  args,
int  from_tty 
) [static]

Definition at line 659 of file maint.c.

References cmd_show_list().

static void maintenance_space_display ( char *  args,
int  from_tty 
) [static]

Definition at line 178 of file maint.c.

References printf_unfiltered(), and set_per_command_space().

static void maintenance_time_display ( char *  args,
int  from_tty 
) [static]

Definition at line 169 of file maint.c.

References _, printf_unfiltered(), and set_per_command_time().

static void maintenance_translate_address ( char *  arg,
int  from_tty 
) [static]
static void maintenance_undeprecate ( char *  args,
int  from_tty 
) [static]

Definition at line 550 of file maint.c.

References _, maintenance_do_deprecate(), and printf_unfiltered().

struct cleanup* make_command_stats_cleanup ( int  msg_type) [read]
static int match_bfd_flags ( char *  string,
flagword  flags 
) [static]

Definition at line 229 of file maint.c.

References match_substring().

Referenced by print_bfd_section_info(), and print_objfile_section_info().

static int match_substring ( const char *  string,
const char *  substr 
) [static]
static void print_bfd_flags ( flagword  flags) [static]

Definition at line 272 of file maint.c.

References printf_filtered().

Referenced by maint_print_section_info().

static void print_bfd_section_info ( bfd *  abfd,
asection *  asect,
void *  arg 
) [static]
static void print_objfile_section_info ( bfd *  abfd,
struct obj_section asect,
char *  string 
) [static]
static void report_command_stats ( void *  arg) [static]
static void set_per_command_cmd ( char *  args,
int  from_tty 
) [static]
void set_per_command_space ( int  new_value)

Definition at line 792 of file maint.c.

Referenced by captured_main(), and maintenance_space_display().

void set_per_command_time ( int  new_value)

Definition at line 783 of file maint.c.

Referenced by captured_main(), and maintenance_time_display().

static void show_maintenance_profile_p ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 668 of file maint.c.

References _, and fprintf_filtered().

static void show_per_command_cmd ( char *  args,
int  from_tty 
) [static]

Definition at line 968 of file maint.c.

References cmd_show_list().

static void show_watchdog ( struct ui_file file,
int  from_tty,
struct cmd_list_element c,
const char *  value 
) [static]

Definition at line 78 of file maint.c.

References _, and fprintf_filtered().


Variable Documentation

Definition at line 666 of file maint.c.

Definition at line 751 of file maint.c.

Definition at line 752 of file maint.c.

Definition at line 743 of file maint.c.

Definition at line 747 of file maint.c.

Definition at line 739 of file maint.c.

Definition at line 76 of file maint.c.

Referenced by getpkt_or_notif_sane_1(), mips_readchar(), and monitor_wait().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines