aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-02-19* arm-linux-nat.c: Linux -> GNU/Linux when not talking about theRichard Earnshaw4-34/+45
kernel. * arm-linux-tdep.c: Likewise. * config/arm/tm-linux.h: Likewise.
2002-02-19* configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.Richard Earnshaw4-31/+8
* config/arm/nbsd.mt (TM_FILE): Delete. * config/arm/tm-nbsd.h: Delete.
2002-02-19* arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.Richard Earnshaw2-6/+15
Initialize CALL_DUMMY_LENGTH.
2002-02-19* armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): NewRichard Earnshaw3-6/+21
function. (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE. * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only defines one thing and that is incorrect for this port. (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2002-02-19 * fix compilation failure by adding #include "i386-tdep.h"Pierre Muller2-0/+5
2002-02-192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller3-0/+266
* win32-nat.c (display_selector): New function. Displays information about the information returned by GetThreadSelectorEntry API function. (display_selectors): New function. Displays the infomation of the selector given as argument, or of CS, DS ans FS selectors if no argument is given. ( _initialize_inftarg): Add "w32" as info prefix command. Add "info w32 selector" as command calling display_selectors.
2002-02-19 * i386-tdep.c (get_longjmp_target): Fix compilation failurePierre Muller2-0/+16
by setting dummy values to JB_PC and JB_ELEMENT_SIZE if not defined.
2002-02-19*** empty log message ***gdbadmin1-1/+1
2002-02-182002-02-18 Michael Chastain <mec@shout.net>Michael Chastain2-1/+5
* gdb.c++/userdef.exp: Update copyright year.
2002-02-182002-02-18 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-273/+63
* gdb.c++/userdef.exp: Test overloaded operators properly. Remove xfails.
2002-02-18* config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.Richard Earnshaw2-1/+5
2002-02-18* arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.Richard Earnshaw3-20/+31
(arm_fix_call_dummy): Call it. (arm_call_dummy_breakpoint_offset): Delete. (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset. * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2002-02-18* gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.Andrew Cagney5-22/+31
Default to func_frame_chain_valid. * gdbarch.h, gdbarch.c: Re-generate. * frame.h (FRAME_CHAIN_VALID): Delete definition.
2002-02-182002-02-18 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-38/+46
* ppc-linux-nat.c: Update copyright. (fetch_register, store_register): Add tid parameter, don't compute tid here. (fetch_ppc_registers, store_ppc_registers): Add tid parameter. Pass it along to callees. (fetch_inferior_registers, store_inferior_registers): Compute tid here, and pass it to calleed functions. (fill_gregset, supply_fpregset): Clean up formatting.
2002-02-18* arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.Richard Earnshaw3-7/+12
* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2002-02-18* gdbarch.sh (GET_LONGJMP_TARGET): Add rule.Richard Earnshaw13-85/+159
* gdbarch.c gdbarch.h: Regenerate. * breakpoint.c (create_longjmp_breakpoint): Always compile this function. (breakpoint_reset): Test GET_LONGJMP_TARGET_P(). * infrun.c (GET_LONGJMP_TARGET): Delete default definition. (handle_inferior_event): Test GET_LONGJMP_TARGET_P(). * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields. * arm-tdep.c (arm_get_longjmp_target): New function. (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes this to a positive value register arm_get_longjmp_target as the longjmp handler. * arm-linux-tdep.c (arm_get_longjmp_target): Delete. (arm_linux_init_abi): Set up longjmp description in tdep. * armnbsd-nat.c (get_longjmp_target): Delete. * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp description in tdep. * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete. (get_longjmp_target): Delete declaration. (GET_LONGJMP_TARGET): Delete. * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration. (GET_LONGJMP_TARGET): Delete.
2002-02-18 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:Kevin Buettner2-3/+9
* ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use of ``current_gdbarch''.
2002-02-18 * cli/cli-cmds.c (compare_strings): New function.Tom Tromey4-200/+261
(complete_command): Only print each unique item once. * completer.h (complete_line): Declare. * completer.c (complete_line): New function. (line_completion_function): Use it.
2002-02-18*** empty log message ***gdbadmin1-1/+1
2002-02-17*** empty log message ***gdbadmin1-1/+1
2002-02-16* gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.Andrew Cagney4-3/+8
* gdbarch.h, gdbarch.c: Re-generate.
2002-02-162002-02-16 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz3-6/+26
* valarith.c (value_x_unop): Fix decrement; support post-decrement. 2002-02-16 Daniel Jacobowitz <drow@mvista.com> From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>: * valops.c (value_arg_coerce): Don't take the address of a reference to convert an argument to a reference.
2002-02-16* win32-nat.c (get_image_name): New function.Christopher Faylor3-176/+297
(handle_load_dll): Use get_image_name function. (get_child_debug_event): Avoid registering debug events until possibly execed process is started. (child_create_inferior): Allow invocation via shell so that command line redirection, etc. works ok. (_initialize_inftarg): Add new command: "set shell" to control whether a shell is used to start a process.
2002-02-16*** empty log message ***gdbadmin1-1/+1
2002-02-152002-02-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-13/+11
* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno instead of find_register_by_number. (cannot_store_register): Likewise.
2002-02-152002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-13/+18
* dwarf2read.c: Replace fprintf (stderr, ...) by fprintf_unfiltered (gdb_stderr, ...).
2002-02-152002-02-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-0/+17
* gdbserver/gdbserver.1: Document --attach.
2002-02-152002-02-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-1/+15
* gdb.texinfo: Document gdbserver ``--attach'' command.
2002-02-15* arm-tdep.h (struct gdbarch_tdep): Add fields for breakpointRichard Earnshaw8-77/+165
descriptions. * arm-tdep.c (arm_default_arm_le_breakpoint) (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint) (arm_default_thumb_be_breakpoint): New. Initialize them from traditional breakpoint defines. (arm_breakpoint_from_pc): Use new gdbarch_tdep entries. (arm_gdbarch_init): Initialize new breakpoint variables. * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New. (arm_linux_init_abi): Initialize linux-specific breakpoint. * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New. (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common code out to ... (arm_netbsd_init_abi_common): ... here; new function. * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT) (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete. * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete. * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2002-02-15* arm-tdep.h (enum arm_abi): New enum.Richard Earnshaw9-19/+453
(struct gdbarch_tdep): New structure. (LOWEST_PC): Provide a default. (arm_gdbarch_register_os_abi): Declare new function. * arm-tdep.c (arm_abi_names): New array. (process_note_abi_tag_sections): New function. (get_elfosabi): New function. (arm_gdbarch_register_os_abi): New function. (arm_gdbarch_init): Try to determine the ABI of the inferior. If support for that ABI has been built in, then call the appropriate configuration routine. Use gdbarch_num_regs() to get the number of registers. (arm_dump_tdep): New function. (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New place-holder functions. (_initialize_arm_tdep): Register them. * config/arm/tm-arm.h (LOWEST_PC): Delete. * armnbsd-tdep.c: New file. * Makefile.in (armnbsd-tdep.o): Add dependencies. * config/arm/nbsd.mt (TDEPFILES): Add it. * config/arm/tm-nbsd.h (LOWEST_PC): Delete. * armnbsd-nat.c: Include regcache.h. * Makefile.in (armnbsd-nat.o): Update dependency list. * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2002-02-152002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-6/+10
* gdbserver/Makefile.in: Fix typos in target rules.
2002-02-15*** empty log message ***gdbadmin1-1/+1
2002-02-14Revert accidental commit.Daniel Jacobowitz1-1/+1
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-1/+39
Fix part of PR gdb/267. * linespec.c (find_methods): Handle constructors specially for now.
2002-02-14 * arm-tdep.c (arm_push_arguments): Eliminate special float typeCorinna Vinschen3-21/+10
handling. * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call standard_coerce_float_to_double().
2002-02-14* config/i386/xm-cygwin.h: Revert inadvertent reinclusion of GDBINIT_FILENAME.Christopher Faylor2-2/+5
2002-02-142002-02-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-16/+11
* rs6000-tdep.c (rs6000_gdbarch_init): Don't call find_variant_by_name, because it confuses the multiarch framework. Return NULL if there isn't an architecture with the user supplied name, instead of forcing a different one without recording the change with the multiarch machinery. (find_variant_by_name): Delete.
2002-02-14 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed byPeter Schauer2-2/+7
i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2002-02-142002-02-13 Martin M. Hunt <hunt@redhat.com>Martin Hunt2-1/+9
* stack.c (print_frame_info_base): When calling print_frame_info_listing_hook, set current_source_symtab.
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz9-13/+26
* gdb.base/a2-run.exp: Check for a remote target properly. * gdb.base/annota1.exp: Likewise. * gdb.base/list.exp: Likewise. * gdb.base/reread.exp: Likewise. * gdb.base/scope.exp: Likewise. * gdb.base/shlib-call.exp: Likewise. * gdb.base/term.exp: Likewise. * gdb.c++/annota2.exp: Likewise.
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz19-1302/+1060
* gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS, and remove unused $(INCLUDE_DIR). Add regcache.c to OBS. Add generated register protocol files to clean target. Update dependencies for new objects, obsolete old target code. * gdbserver/linux-low.c: Remove all platform-specific code to new files. Remove various dead code. Update to use regcache functionality. * gdbserver/remote-utils.c (fromhex): Add return statement to quiet warning. (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer constant. (input_interrupt): Add integer parameter to match prototype of a signal handler. (outreg): Use register_data (). (prepare_resume_reply): Use gdbserver_expedite_regs. * gdbserver/server.c (main): Dynamically allocate own_buf because PBUFSIZ is no longer constant. Use registers_to_string () and registers_from_string (). * gdbserver/server.h: No longer include "defs.h". Add prototypes for error (), fatal (), and warning (). Update definition of PBUFSIZ to use regcache functionality. Add include guard. * gdbserver/utils.c (fatal): Add missing ``const''. (warning): New function. * regformats/regdat.sh: Include "regcache.h" in generated files. Provide init_registers () function. * regformats/regdef.h: Add prototype for set_register_cache (). Add include guard. * gdbserver/linux-arm-low.c: New file. * gdbserver/linux-i386-low.c: New file. * gdbserver/linux-ia64-low.c: New file. * gdbserver/linux-m68k-low.c: New file. * gdbserver/linux-mips-low.c: New file. * gdbserver/linux-ppc-low.c: New file. * gdbserver/linux-sh-low.c: New file. * gdbserver/regcache.c: New file. * gdbserver/regcache.h: New file. * gdbserver/low-linux.c: Removed obsolete file.
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz27-31/+74
* config/arm/linux.mt: Update GDBSERVER_DEPFILES. * config/i386/linux.mt: Likewise. * config/ia64/linux.mt: Likewise. * config/m68k/linux.mh: Likewise. * config/powerpc/linux.mh: Likewise. * config/mips/linux.mt: Likewise. * config/sh/linux.mt: Add GDBSERVER_DEPFILES. * config/i386/i386lynx.mh: Mark gdbserver variables as (currently) obsolete for this target. * config/i386/nbsd.mt: Likewise. * config/i386/nbsdelf.mt: Likewise. * config/m32r/m32r.mt: Likewise. * config/m68k/m68klynx.mh: Likewise. * config/m68k/nbsd.mt: Likewise. * config/m68k/sun3os4.mh: Likewise. * config/mips/vr5000.mt: Likewise. * config/ns32k/nbsd.mt: Likewise. * config/pa/hppabsd.mh: Likewise. * config/pa/hppaosf.mh: Likewise. * config/powerpc/nbsd.mt: Likewise. * config/rs6000/rs6000lynx.mh: Likewise. * config/s390/s390.mt: Likewise. * config/s390/s390x.mt: Likewise. * config/sparc/sparclynx.mh: Likewise. * config/sparc/sun4os4.mh: Likewise. * config/i386/x86-64linux.mt: Likewise. * config/sparc/linux.mh: Likewise.
2002-02-142002-02-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz4-63/+79
* configure.tgt: Configure gdbserver only for known working targets. Set ${build_gdbserver} instead of modifying ${configdirs}. * configure.in: Check ${build_gdbserver}. Put gdbserver/ into SUBDIRS if it is configured. Update comment for ${nativefile}. * configure: Regenerated.
2002-02-142002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder3-10/+28
* gcore.c (gcore_command): Use gcore_default_target instead of NULL. (default_gcore_mach): Just return 0, work around a problem in bfd. (default_gcore_target): OK to return NULL if exec_bfd is null. (make_mem_sec): Use a cast, avoid a warning. * procfs.c (find_memory_regions_callback): Use a cast instead of calling host_pointer_to_address (which complains if sizeof (host pointer) != sizeof (target pointer)). (procfs_make_note_section): Avoid overflow in psargs string.
2002-02-14*** empty log message ***gdbadmin1-1/+1
2002-02-132002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder2-14/+61
* procfs.c (procfs_make_note_section): Make the default implementation return an error. 2002-02-13 Rodney Brown <rbrown64@csc.com.au> * procfs.c (procfs_make_note_section): Provide a default definition (for alpha-dec-osf4.0f). Fix typos. 2002-02-11 Michael Snyder <msnyder@redhat.com> * procfs.c: Include elf-bfd.h (for elfcore_write functions). (gcore section): Ifdef for Solaris and Unixware only. (procfs_do_thread_registers): Unixware needs one lwpstatus per thread (not one prstatus or pstatus). (procfs_make_note_section): Iterate only over kernel threads (lwps), not over all gdb threads. For unixware, call elfcore_write_pstatus once before iterating over threads.
2002-02-132002-02-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni3-1/+7
* linux-proc.c: Add include of regcache.h. * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2002-02-13add missing filenameGreg McGary1-2/+2
2002-02-13* MAINTAINERS: Add myself to "Write After Approval" list.Greg McGary1-0/+1
2002-02-13From 2002-01-18 Greg McGary <greg@mcgary.org>:Andrew Cagney2-4/+11
* (create_mem_region): Disallow useless empty region. Regions are half-open intervals, so allow [A..B) [B..C) as non-overlapping.