aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
AgeCommit message (Collapse)AuthorFilesLines
1993-10-21 * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflictsJim Kingdon1-0/+1
which no longer occur. gcc -Wall lint: * findvar.c (symbol_read_needs_frame), corelow.c (ignore), inflow.c (gdb_has_a_terminal): Make sure to return a value. * regex.h: Declare re_set_syntax. * printcmd.c: Include valprint.h. * infcmd.c, exec.c, maint.c, core.c: Include language.h. * maint.c: Include expression.h. * infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h. * inftarg.c: Include command.h. * coredep.c: Include value.h. * c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h. * ch-typeprint.c: Include typeprint.h. * ch-valprint.c: Include c-lang.h. * nlmread.c: Include buildsym.h. * environ.c: Include gdbcore.h. Only include defs.h once. (set_in_environ): Cast const char * to char * when passing to set_gnutarget. Remove unused variables: * printcmd.c (printf_command): args_to_vprintf. * coffread.c (coff_symfile_init): strsection. Move variables to within the #ifdefs where they are used: * symtab.c (gdb_mangle_name): opname. * inftarg.c (child_attach): pid and exec_file. * inftarg.c (child_detach): siggnal. * objfiles.c (allocate_objfile): mapto, md, and fd. * objfiles.c (free_objfile): mmfd. * infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch. * infrun.c (wait_for_inferior): Remove unused same_pid label. * inferior.h: Declare set_sigint_trap and clear_sigint_trap. * parser-defs.h: Declare write_exp_elt_block. * stabsread.h: Declare elfstab_offset_sections and coffstab_build_psymtabs.
1993-09-28Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)Jim Kingdon1-2/+4
* symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES. Clean up problems with targets and hosts that have 64 bit longs and pointers and 32 bit ints. * breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c, ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c, expprint.c, gdbtypes.c, infcmd.c, language.c, language.h, m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h, printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c, symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c: Change all printf formats from %x to %lx if outputting an address. Change la_*_format to use long format. local_hex_string, local_hex_string_custom now take an unsigned long argument, change all callers. * coffread.c (read_coff_symtab): Remove superfluous cast for complaint output. * dbxread.c (end_psymtab): Cast MSYMBOL_INFO to long, not int. * findvar.c, value.h (write_register): Change register value to long. * gdbtypes.h (struct type): Change `bitsize' to long as TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer. * inferior.h (struct inferior_status): Change type of stop_pc to CORE_ADDR. * language.h (local_octal_string, local_octal_string_custom): Remove prototype, the functions are neither defined nor used. * mipsread.c (parse_symbol): Use temporary variable for bitsize as f->bitsize is a long now. * objfiles.c (add_to_objfile_sections, build_objfile_section_table): Use unsigned long casts instead of int for abusing sections_end pointer as integer. * stack.c (parse_frame_specification): Change type of `args' to CORE_ADDR for SETUP_ARBITRARY_FRAME. * printcmd.c (make_vasize): Allow redefinition via MAKEVA_SIZE. * mipsread.c (parse_type): Alpha cc now supports the t->continued bit, update algorithm to match the way the compiler uses it.
1993-08-09 * gdbcore.h: New variable gnutarget.Jim Kingdon1-0/+46
* core.c: Add commands to set and show it. * Callers to bfd_*open*: Pass gnutarget instead of NULL as target. * environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not putenv. * symtab.c (decode_line_1): Give error on unmatched single quote.
1993-07-10 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.Jim Kingdon1-4/+2
* h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD * not short *. * findvar.c, defs.h ({extract,store}_{signed_integer,unsigned_integer,address}): New routines to replace SWAP_TARGET_AND_HOST. All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-07-10 * findvar.c, defs.hJim Kingdon1-61/+10
({extract,store}_{signed_integer,unsigned_integer,address}): New routines to replace SWAP_TARGET_AND_HOST. All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-06-14 * main.c, symfile.c, source.c, exec.c, core.c: Use it forJim Kingdon1-5/+6
"directory", "source", "cd", "symbol-file" "add-symbol-file", "load", "file", "exec-file", "core-file" commands.
1993-06-09(read_memory_unsigned_integer): New function.Steve Chamberlain1-0/+38
1993-05-07 * core.c (dis_asm_read_memory): Cast second arg ofFred Fish1-1/+1
target_read_memory to "char *". * breakpoint.c (watchpoint_check): Change arg type from PTR to "char *", to match other functions called by catch_errors().
1993-04-02New print_address for disassemblers, merge a29k and i960 disassemblersJim Kingdon1-3/+10
1993-04-01Fix prototype problems related to recent disassembler changesJim Kingdon1-1/+2
1993-04-01* core.c (dis_asm_read_memory): drop fourth arg which conflicts withK. Richard Pixley1-3/+5
prototype in ../include/dis-asm.h.
1993-03-31provide a new interface (using read_memory_func) to call the disassemblersJim Kingdon1-0/+22
which copes with errors in a plausible way
1992-10-15* Makefile.in (VERSION): Roll to 4.6.8.John Gilmore1-1/+2
(OBS): Put version.o first, so Makefile rebuild happens early. * command.h: Publicize prototype for not_just_help_class_command. * command.c: Remove proto. * maint.c: Mark "mt" as an abbrev, to avoid duplicated help output. Move "maint info" from class info to class maintenance, and improve text. * infrun.c: Move "stop" to class_obscure, and give it a function so it will not be seen as a global help topic. FIXME, it should be possible to set these attributes independently. * core.c (core_command): Make nicer error message for no core support.
1992-09-29Break the direct connection from core_file_command to anyK. Richard Pixley1-3/+8
particular type of core file support. * target.h (find_core_target): new prototype. * target.c (find_core_target): new function. Walks the target list looking for the core target. * core.c (core_file_command): replace calls to core_detach and core_open with find_core_target and direct calls.
1992-09-25 Separate core functions along target vector in preparation forK. Richard Pixley1-244/+3
native support. Functions above vector now live in core.c. Those below in corelow.c. * core.c (solib_add_stub, core_close, core_open, core_detach, get_core_registers, core_files_info, core_ops): moved to corelow.c (_initialize_core): removed addition of core_ops target. * corelow.c: new file. (solib_add_stub, core_close, core_open, core_detach, get_core_registers, core_files_info, core_ops): moved from core.c (_initialize_corelow): new function. * gdbcore.h (core_open, core_detach): added prototypes. (core_ops): add forward declaration. * Makefile.in (SFILES_MAINDIR): add core.c (OBS): add core.o (TSOBS): change core.o to corelow.o
1992-09-22Break the thread of control that implies that a unix childJohn Gilmore1-2/+3
process will be the default target. * target.c (find_default_run_target, find_default_attach, find_default_create_inferior, return_zero): new functions. (cleanup_target): Make return_zero the default for to_can_run. * exec.c (exec_ops), core.c (core_ops): Replace child_attach and child_create_inferior references with find_default_XXX instead. * target.h (struct target_ops): new field, to_can_run. (find_default_attach, find_default_create_inferior): new prototypes. (target_can_run): new macro. * Also added a zero (default) to_can_run element to all static struct target_ops initializations throughout GDB, except: * inftarg.c (child_ops): Use new child_can_run() to enable child runs. * infrun.c (child_create_inferior): Clean up error handling when no exec file is specified. (child_attach): Don't require exec file.
1992-09-18Remove convert_{to,from}_virtual members from target structs.John Gilmore1-1/+1
1992-09-15* breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,Stu Grossman1-5/+5
symfile.c, target.c, valprint.c: Use _filtered form of *printf. defs.h, utils.c: Make vfprintf_filtered global.
1992-07-04 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,Fred Fish1-1/+1
core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c, eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c, i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c, infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c, putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c, sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Remove "(void)" casts from function calls where the return value is ignored, in accordance with GNU coding standards.
1992-04-24Call warning() to print warnings, which deals properly with leading andFred Fish1-5/+5
trailing newlines, as well as presenting a consistent prefix for warnings (IE "warning: ").
1992-04-22Remove now obsolete signame.c and signame.h; functionality is handled byFred Fish1-11/+3
libiberty/strsignal.c. Widespread changes to use libiberty/strerror.c functions for errno manipulations and libiberty/strsignal.c for signo (signals) manipulations.
1992-03-29LintJohn Gilmore1-1/+1
1992-03-03Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)Michael Tiemann1-2/+1
* All GDB files that #include defs.h: Removed stdio.h. (defs.h): #include stdio.h. This has been tested by building GDBs for all targets hosted on Sun4. None of the build problems were related to stdio.h inclusion. (n.b. many configurations don't build for other reasons.)
1992-02-21* core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,John Gilmore1-18/+37
signame.c, sparc-xdep.c: Prototypes for all static functions. Lint.
1992-01-31* exec.c (exec_files_info): Split out into print_section_info.John Gilmore1-16/+2
Print BFD filename of each section if it's not the default one. * core.c (core_files_info): Call print_section_info.
1991-11-21* defs.h: Incorporate param.h. All users changed.John Gilmore1-2/+1
* param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead. * param.h, param-no-tm.h: Removed. * Update copyrights in all changed files. * dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c, solib.c, symtab.h, tm-umax.h, valprint.c: Lint. * tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h, xm-merlin.h: Avoid host include files in target descriptions. * getpagesize.h: Removed, libiberty copes now.
1991-11-12Remove internal gdb definition of fixed arg count concat() function andFred Fish1-1/+1
convert to use of variable arg count concat() in libiberty.
1991-11-12Minor rewording of message containing name of program that generated aFred Fish1-1/+1
core file (core.c), permanently remove the register_addr() stub (elfread.c), move a misplaced #endif (procfs.c), and add fetch_core_registers func for core file support (procfs.c).
1991-10-25* core.c (core_file_info), exec.c (exec_file_info): Print fileJohn Gilmore1-6/+9
type. Use printf_filtered.
1991-10-16* core.c (core_open): Improve error message for bad file.John Gilmore1-8/+9
Pass .reg virtual memory address to fetch_core_registers to help it find the registers in the core-file header. * coredep.c (fetch_core_registers): Take new argument, use it, and pass it to register_addr to locate the block of registers.
1991-10-11Read cross-core files on Mach 386.John Gilmore1-0/+2
1991-09-28* core.c (core_files_info): Shorten output.John Gilmore1-6/+4
* exec.c (exec_files_info): Ditto. (build_section_table): Ignore zero-length sections.
1991-09-19Output hex with local_hex_string for Modula-2 support.John Gilmore1-15/+15
1991-09-11* core.c (core_file_command): Print frame at coredump withJohn Gilmore1-3/+4
its level number, by calling print_stack_frame. * frame.h: Add selected_frame_level, print_stack_frame. * frame.h, stack.c: Remove print_sel_frame, print_selected_frame. * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c: Change print_sel_frame and print_selected_frame callers to print_stack_frame. * dbxread.c (read_ofile_symtab): Avoid empty else clause. * symfile.c (free_named_symtabs): Ditto. * main.c (main): wrap_here needs an arg. * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero. (solib_add): Avoid noise. (solib_create_inferior_hook): Lint. (sharedlibrary_command): Move dont_repeat to here. * utils.c (error): Call wrap_here to force buffered output. Small patches from Peter Schauer: * coffread.c (start_symtab): Free any existing line_vector before malloc-ing new one. (read_coff_symtab): Ditto for type_vector. * source.c (lines_to_list): New variable, replacing function. (all uses): Use as variable. (_initialize_source): Add 'set listsize' and 'show listsize'. * utils.c (lines_to_list): Remove function. * stack.c (print_frame_info): Use as variable. * defs.h (lines_to_list): Remove declaration.
1991-09-04Make writing to files work properly. (Fixes to BFD are also needed.)John Gilmore1-6/+13
* core.c (core_open): Open file ourselves, read or r/w, depending on write_files. Use bfd_fdopenr. * gdbcore.h (write_files): New variable. * exec.c (write_files): Define variable, add set&show for it. (exec_file_command): Use write_files to open for read or r/write. Make shared library reading happen automatically. These changes are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>. * inferior.h (stop_soon_quietly): Add to exported variables. * infrun.c (child_create_inferior): call solib hook, if defined. (child_attach): call solib hook, if defined. * solib.c: Include inferior.h. Add from_tty to so_list as kludge. (find_solib): Use lookup_misc_func rather than hand-rolled. (symbol_add_stub): New stub for catch_errors. (solib_add): Avoid output if !from_tty. Catch errors rather than just calling symbol_file_add and bombing. (solib_create_inferior_hook): Interface with the target process to let it read and alloc shared libs, then figure out what it did. * core.c (validate_files): Fix typo, soften warning. (Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.) * utils.c (fputs_demangled): Avoid duplicate printing if demangling is off. (Fix from J.T. Conklin <jtc@cayenne.com>.) * infrun.c (proceed): Cast -1 to (CORE_ADDR) before comparing. (Fix from pierre@la.tce.com (Pierre Willard).) * main.c (catch_errors): Change argument to a char * from an int, since a char * can point to a struct full of glop, but an int is not guaranteed to be able to hold a pointer. * breakpoint.c (breakpoint_cond_eval, bpstat_stop_status, breakpoint_re_set_one, breakpoint_re_set): Adapt. * core.c (core_open, solib_add_stub): Adapt. * remote-vx.c (symbol_stub, add_symbol_stub, callers): Adapt.
1991-08-19* breakpoint.c (bpstat_do_actions): Use a cleanup to restoreJohn Gilmore1-1/+14
executing_breakpoint_commands if we are interrupted by error. * coffread.c (init_lineno): Avoid problem with zero-sized linetab versus malloc/free. From: john@labtam.labtam.oz.au (John Carey). * core.c (solib_add_stub, core_open): Call SOLIB_ADD inside a catch_errors() so we can setup the frame regardless of whether the shared libs work. * ieee-float.c (double_to_ieee_extended): Get exponent from right place in little-endian systems. From John Carey.
1991-08-14 * core.c (core_open, core_close, core_xfer_memory): MoveJohn Gilmore1-53/+27
section table pointers and bfd* into the target_ops. (core_open): Allow errors in shared lib reading, etc. (core_files_info): Describe shared library sections. * exec.c (exec_open, exec_close, exec_xfer_memory, xfer_memory, exec_files_info, set_section_command): Move section table pointers and bfd* into the target_ops. (add_to_section_table): Add BFD to section table. * target.c (target_xfer_memory, target_info): Pass target to xfer_memory and target_info functions. * target.h: '' * gdbcore.h: Move struct section_table. * target.h: New home of struct section_table.
1991-07-19Eliminate LOC_EXTERNAL. Improve select_source_symtab. Bug fixes.John Gilmore1-1/+1
1991-07-09 * core.c (memory_error): Reword error msg to mislead less.John Gilmore1-1/+1
* mips-pinsn.c (print_insn_arg 'd'): Print $ with reg name. * mipsread.c (read_mips_symtab, read_the_mips_symtab, parse_partial_symbols): Use newer BFD internals (external_filehdr and external_aouthdr), byte-swap the fields that we care about before using them, and make the file header data local to read_the_mips_symtab rather than global.
1991-06-04Change GDB over to GNU General Public License version 2.John Gilmore1-6/+6
1991-05-04Saber C (lint) cleanups, and a few bug fixes. See ChangeLog.John Gilmore1-5/+6
1991-05-02The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1-0/+3
Look at the ChangeLog for Apr 30 and May 1.
1991-04-23Use unpush_target not pop_target in core_open.Jim Kingdon1-1/+1
1991-04-23Restore Schauer's version of ADD_SOLIB in core_open().Jim Kingdon1-3/+1
1991-04-23 * Shared libaray/corefile changes from Peter Schauer:Jim Kingdon1-2/+16
core.c (core_close): Call CLEAR_SOLIB. (core_open): Remove comment about "should deal with shared lib". (core_xfer_memory): If we can't xfer the usual way, try the shared libraries. solib.c (so_list): New fields so_bfd and so_sections{,_end}. (find_solib): Use solib_map_sections to get ld_text. (solib_map_sections, solib_xfer_memory): New functions. (clear_solib): Free so_sections and close so_bfd. tm-sunos.h: Add solib_xfer_memory, solib_add.
1991-04-19 * target.h: Add to_doc and target_preopen.Jim Kingdon1-0/+2
target.c: Add target_preopen and target_command. Remove target_info. (add_target): Call add_cmd and mess with targetlist->doc. core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c, remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct. Call target_preopen from open routine.
1991-04-05*** empty log message ***John Gilmore1-2/+2
1991-03-28Johns releaseK. Richard Pixley1-0/+447
1990-09-05Initial revisionJohn Gilmore1-558/+0
2012-06-03gdb-3.5gdb-3.51-2/+32