aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2002-04-122002-04-12 Don Howard <dhoward@redhat.com>Don Howard5-0/+51
* cli/cli-cmds.c (init_cli_cmds): Add new user settable value: max_user_call_depth. (init_cmd_lists): Initialize the new value; * cli/cli-script.c (execute_user_command): Limit the call depth of user defined commands. This avoids a core-dump when user commands are infinitly recursive.
2002-04-12Delete DEFAULT_LR_SAVE.Kevin Buettner5-9/+23
2002-04-122002-04-12 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* source.c: White space fix-up.
2002-04-12* defs.h (read_relative_register_raw_bytes): Delete declaration.Andrew Cagney17-82/+97
* frame.c (frame_register_read): New function. Return non-zero on success. (read_relative_register_raw_bytes_for_frame): Delete. (read_relative_register_raw_bytes): Delete. * frame.h (frame_register_read): Declare. * d30v-tdep.c: Update Copyright. Use frame_register_read. * sh-tdep.c: Ditto. * infcmd.c (do_registers_info): Ditto. * hppa-tdep.c: Ditto. * rs6000-tdep.c: Ditto. * h8500-tdep.c: Ditto. * mips-tdep.c: Ditto. * h8300-tdep.c: Ditto. * z8k-tdep.c: Ditto.
2002-04-12 From Jimi X <jimix@watson.ibm.com>:Kevin Buettner2-2/+17
* rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for 64-bit SysV ABI.
2002-04-12 From Jimi X <jimix@watson.ibm.com>:Kevin Buettner2-1/+11
* rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from bfd info.
2002-04-12 From Jimi X <jimix@watson.ibm.com>:Kevin Buettner2-1/+17
* rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define register sets for these processor variants.
2002-04-12*** empty log message ***gdbadmin1-1/+1
2002-04-112002-04-11 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz5-11/+29
* gdbserver/linux-low.c (usr_store_inferior_registers): Support registers which are allowed to fail to store. * gdbserver/linux-low.h (linux_target_ops): Likewise. * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR. (ppc_cannot_store_register): FPSCR may not be storable. * regformats/reg-ppc.dat: Support FPSCR.
2002-04-11Add support for the fpscr register for Power / PowerPC targets.Kevin Buettner5-8/+54
2002-04-112002-04-11 Michael Snyder <msnyder@redhat.com>Michael Snyder7-108/+125
* configure.in: Autoconfiscate _SYSCALL32 define for solaris. * configure: Regenerate. * config.in: Regenerate. * acconfig.h: Add define for _SYSCALL32. * core-sol2.c: Remove #define _SYSCALL32. * solib-legacy.c: Remove #define _SYSCALL32.
2002-04-112002-02-14 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* gdb.base/gcore.exp: Relax recognition of function breakpoint.
2002-04-112002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+5
* config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2002-04-112002-04-10 Martin M. Hunt <hunt@redhat.com>Martin Hunt2-0/+9
* gdb.base/ending-run.exp: Fix pattern for Mips targets stepping out of main.
2002-04-11*** empty log message ***gdbadmin1-1/+1
2002-04-10* stack.c (select_frame): Cleanup internal error message, do notAndrew Cagney2-2/+8
use %p.
2002-04-10* stack.c (select_frame): Check that selected_frame and theAndrew Cagney4-6/+63
specified level are as expected. * blockframe.c (get_prev_frame): Set the `level' from next_frame. Update copyright. * frame.h (struct frame_info): Add field `level'. Update copyright. Work-in-progress PR gdb/464.
2002-04-10* maint.c (maint_print_section_info): Rename print_section_info.Andrew Cagney5-5/+19
(print_bfd_section_info, print_objfile_section_info): Update. * inferior.h (struct gdbarch): Add opaque declaration. * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh. * gdbarch.h: Regenerate.
2002-04-10 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.Michal Ludvig3-165/+16
(PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h. (kernel_u_size): Added. * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete. (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2002-04-102002-04-09 Michael Chastain <mec@shout.net>Michael Chastain2-7/+5
* gdbint.texinfo (Obsolete Conditionals): Remove references to PYRAMID_* macros.
2002-04-102002-04-09 Michael Chastain <mec@shout.net>Michael Chastain3-56/+104
* gdb.c++/local.cc (main): Move call to marker1() inside nested scope so that the nested scope tests will make sense. * gdb.c++/local.exp: Write patterns that actually work with gcc (the HP patterns "were never known to work with gcc"). Keep the old aCC patterns too.
2002-04-102002-04-04 Jim Ingham <jingham@apple.com>Jim Ingham2-6/+52
* valarith.c (find_size_for_pointer_math): New function, either returns the size for a pointer's target, returns 1 for void *, or errors for incomplete types. (value_add, value_sub): use find_size_for_pointer_math.
2002-04-10*** empty log message ***gdbadmin1-1/+1
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz6-7/+85
* linux-low.c (linux_look_up_symbols): New hook. (linux_target_ops): Add linux_look_up_symbols. * remote-utils.c (decode_address): New function. (look_up_one_symbol): New function. * server.c (handle_query): Call target look_up_symbols hook. * server.h (look_up_one_symbol): Add prototype. * target.h (struct target_ops): Add look_up_symbols hook.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-11/+20
* gdbserver/server.h: Include <string.h> if HAVE_STRING_H. * ChangeLog: Correct paths in last ChangeLog entry.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz12-86/+218
* linux-low.h: Remove obsolete prototypes. (struct linux_target_ops): New. (extern the_low_target): New. * linux-low.c (num_regs, regmap): Remove declarations. (register_addr): Use the_low_target explicitly. (fetch_register): Likewise. (usr_fetch_inferior_registers): Likewise. (usr_store_inferior_registers): Likewise. * linux-arm-low.c (num_regs): Remove. (arm_num_regs): Define. (arm_regmap): Renamed from regmap, made static. (arm_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (arm_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-i386-low.c (num_regs): Remove. (i386_num_regs): Define. (i386_regmap): Renamed from regmap, made static. (i386_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (i386_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-ia64-low.c (num_regs): Remove. (ia64_num_regs): Define. (ia64_regmap): Renamed from regmap, made static. (ia64_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (ia64_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-m68k-low.c (num_regs): Remove. (m68k_num_regs): Define. (m68k_regmap): Renamed from regmap, made static. (m68k_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (m68k_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-mips-low.c (num_regs): Remove. (mips_num_regs): Define. (mips_regmap): Renamed from regmap, made static. (mips_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (mips_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-ppc-low.c (num_regs): Remove. (ppc_num_regs): Define. (ppc_regmap): Renamed from regmap, made static. (ppc_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (ppc_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-s390-low.c (num_regs): Remove. (s390_num_regs): Define. (s390_regmap): Renamed from regmap, made static. (s390_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (s390_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-sh-low.c (num_regs): Remove. (sh_num_regs): Define. (sh_regmap): Renamed from regmap, made static. (sh_cannot_fetch_register): Renamed from cannot_fetch_register, made static. (sh_cannot_store_register): Renamed from cannot_store_register, made static. (the_low_target): New. * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap. (the_low_target): New.
2002-04-092002-04-05 Michael Snyder <msnyder@redhat.com>Michael Snyder2-76/+72
* breakpoint.c (clear_command): Rewrite middle section to combine two loops with identical control conditions. Add a cleanup to eliminate a memory leak.
2002-04-09* frame.c (read_relative_register_raw_bytes_for_frame): Do notAndrew Cagney4-101/+29
override FP_REGNUM with frame->fp. Update copyright. * parse.c (num_std_regs, std_regs): Delete. (target_map_name_to_register): Do not search std_regs. Update function description. * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete declarations. Update copyright. Fix PR gdb/251.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz4-2/+18
* gdbserver/Makefile.in: Add stamp-h target. * gdbserver/configure.in: Create stamp-h. * gdbserver/configure: Regenerated.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz9-40/+407
* gdbserver/inferiors.c: New file. * gdbserver/target.c: New file. * gdbserver/target.h: New file. * gdbserver/Makefile.in: Add target.o and inferiors.o. Update dependencies. * gdbserver/linux-low.c (inferior_pid): New static variable, moved from server.c. (linux_create_inferior): Renamed from create_inferior. Call add_inferior. Return 0 on success instead of a PID. (linux_attach): Renamed from myattach. (linux_kill): Renamed from kill_inferior. Call clear_inferiors (). (linux_thread_alive): Renamed from mythread_alive. (linux_wait): Renamed from mywait. Call clear_inferiors () if the child dies. (linux_resume): Renamed from myresume. Add missing ``return 0''. (regsets_store_inferior_registers): Correct error message. Add missing ``return 0''. (linux_fetch_registers): Renamed from fetch_inferior_registers. (linux_store_registers): Renamed from store_inferior_registers. (linux_read_memory): Renamed from read_inferior_memory. (linux_write_memory): Renamed from write_inferior_memory. (linux_target_ops): New structure. (initialize_low): Call set_target_ops (). * gdbserver/remote-utils.c (unhexify): New function. (hexify): New function. (input_interrupt): Send signals to ``signal_pid''. * gdbserver/server.c (inferior_pid): Remove. (start_inferior): Update create_inferior call. (attach_inferior): Call add_inferior. (handle_query): New function. (main): Call handle_query for `q' packets. * gdbserver/server.h: Include "target.h". Remove obsolete prototypes. Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz13-23/+88
* gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury dependencies. * gdbserver/configure.in: Check for <string.h> * gdbserver/configure: Regenerate. * gdbserver/config.in: Regenerate. * gdbserver/gdbreplay.c: Include needed system headers. (remote_open): Remove strchr prototype. * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS. * gdbserver/regcache.c (supply_register): Change buf argument to const void *. (supply_register_by_name): Likewise. (collect_register): Change buf argument to void *. (collect_register_by_name): Likewise. * gdbserver/regcache.h: Add missing prototypes. * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa. * gdbserver/server.c (handle_query): New function. (attached): New static variable, moved out of main. (main): Quiet longjmp clobber warnings. * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes. * gdbserver/utils.c (error): Remove NORETURN. (fatal): Likewise.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-2/+11
* symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer after the last symbol in a block.
2002-04-092002-04-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2-1/+5
* gdb.base/attach.exp: Correct target board test.
2002-04-092002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-4/+9
* p-exp.y (yylex): Handle also the fact that is_a_field_of_this is non zero as a found symbol.
2002-04-09* findvar.c: Include "builtin-regs.h".Andrew Cagney7-1/+304
(value_of_register): Call value_of_builtin_reg when applicable. * parse.c: Include "builtin-regs.h" and "gdb_assert.h". (target_map_name_to_register): Call builtin_reg_map_name_to_regnum. * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c. (COMMON_OBS): Add builtin-regs.o and std-regs.o. (builtin_regs_h): Define. (builtin-regs.o): New target. (findvar.o): Add $(builtin_regs_h). * builtin-regs.c, builtin-regs.h: New files. * std-regs.c: New file. Partial fix for PR gdb/251.
2002-04-09 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;Kevin Buettner2-7/+14
it's no longer required.
2002-04-09* Makefile.in (gdbtk-wrapper.o): Add missing dependencies.Andrew Cagney2-1/+6
2002-04-09 * rs6000-tdep.c (rs6000_software_single_step): UseKevin Buettner2-13/+16
rs6000_breakpoint_from_pc() to fetch breakpoint instruction and size. Use target_insert_breakpoint() and target_remove_breakpoint() to insert and remove breakpoints instead of explicit memory reads and writes.
2002-04-09 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.Kevin Buettner3-5/+7
* rs6000-tdep.c (rs6000_push_arguments): Eliminate ELF_OBJECT_FORMAT ifdef.
2002-04-09 From Jimi X <jimix@watson.ibm.com>:Kevin Buettner2-5/+13
* rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2002-04-09*** empty log message ***gdbadmin1-1/+1
2002-04-08 From Jimi X <jimix@watson.ibm.com>:Kevin Buettner2-3/+6
* rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2002-04-082002-04-08 Michael Chastain <mec@shout.net>Michael Chastain2-3/+29
* gdb.c++/method.exp: Require "const ... A * ..." for "ptype this" in a const method. Add some xfail and fail cases for configurations that do not emit the "const ...".
2002-04-08* fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):Mark Kettenis2-3/+9
s/asprintf/xasprintf/. (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2002-04-082002-04-07 Michael Chastain <mec@shout.net>Michael Chastain2-127/+45
* gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect. Accept "A * const" and "const A * const" as type of "this". Fix spelling of getFunky throughout. Make messages uniform.
2002-04-082002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-33/+32
* mi-cmd-disas.c: Run through indent.
2002-04-082002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-291/+305
* mi-cmd-disas.c (dump_insns): New function. (do_mixed_source_and_assembly): New function. (do_assembly_only): New function. (do_disassembly): New function. (mi_cmd_disassemble): Rewrite using smaller, more modular functions.
2002-04-082002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+20
Work around for PR gdb/285: * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
2002-04-08*** empty log message ***gdbadmin1-1/+1
2002-04-072002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-83/+33
* gdb.asm/asm-source.exp: Build symbolic link to arch specific instructions file at run time instead of configure time. Sometimes we run the test in a directory that is not the one we configured in. * gdb.asm/configure.in: Delete creation of symlink. * gdb.asm/configure: Regenerate.