aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2002-04-072002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-11/+17
* remote-e7000.c (write_small, e7000_read_inferior_memory, e7000_read_inferior_memory_large, e7000_insert_breakpoint, e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2002-04-07I believe Jeff Law denies responsability for this one:Andrew Cagney4-3/+23
* config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork. * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork. * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork. Work-around for PR gdb/366.
2002-04-072002-04-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-2/+8
* sh-tdep.c (sh_fp_frame_init_saved_regs, sh_nofp_frame_init_saved_regs): Use alloca() for 'where' information.
2002-04-07* MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVERAndrew Cagney2-0/+7
maintainer.
2002-04-07* README (Reporting Bugs in GDB): Document the bug web page as theAndrew Cagney4-30/+40
prefered way of submitting bugs. Fix PR gdb/402. * gdb.texinfo (Bug Reporting): Document that the web is the prefered way of submitting bug reports. (Bug Reporting): Delete the s-mail address as the last resort.
2002-04-07* gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default ofAndrew Cagney4-30/+35
-1. Update comment. * gdbarch.h, gdbarch.c: Re-generate.
2002-04-07*** empty log message ***gdbadmin1-1/+1
2002-04-06 * m68klinux-nat.c (fill_fpregset): Properly pass address ofAndreas Schwab2-1/+6
buffer to regcache_collect.
2002-04-06* gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.Andrew Cagney4-0/+62
* gdbarch.c, gdbarch.h: Re-generate.
2002-04-06* symtab.c (lookup_symtab): Remove ``const'' from ``rp''Andrew Cagney2-1/+6
declaration. Fix -Werror.
2002-04-06Correct bad checkin (missing semicolon somehow)Daniel Jacobowitz2-2/+2
2002-04-062002-04-05 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz3-0/+7
* gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap. * gdbarch.c: Regenerate.
2002-04-062002-04-05 Michael Snyder <msnyder@redhat.com>Michael Snyder2-5/+9
* cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2002-04-062002-04-05 H.J. Lu (hjl@gnu.org)H.J. Lu2-0/+5
* solib-svr4.c (bkpt_names): Add "__start".
2002-04-06* sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64Andrew Cagney2-1/+6
as test for 64 bit target.
2002-04-06* h8500-tdep.c (h8500_write_fp): Delete function.Andrew Cagney21-129/+47
* dwarf2cfi.c (cfi_write_fp): Document as not used. * mips-tdep.c (mips_gdbarch_init): Do not set write_fp. * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp. * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp. * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp. * s390-tdep.c (s390_gdbarch_init): Do not set write_fp. (s390_write_fp): * sh-tdep.c (sh_gdbarch_init): Do not set write_fp. * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp. * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp. (d10v_write_fp): Delete function. * inferior.h (write_fp, generic_target_write_fp): Delete declarations. * regcache.c (generic_target_write_fp): Delete function. (write_fp): Delete function. * gdbarch.sh (TARGET_WRITE_FP): Delete. * gdbarch.h, gdbarch.c: Regenerate. * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro. * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro. (sparc64_write_fp): Delete declaration. * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro. (h8500_write_fp): Delete declaration.
2002-04-06*** empty log message ***gdbadmin1-1/+1
2002-04-05* sparc-tdep.c (sparc64_write_fp): Delete.Andrew Cagney2-14/+27
(sparc_push_dummy_frame): Replace write_fp call with code to store the FP directly. (sparc_gdbarch_init): Do not initialize write_fp.
2002-04-05 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachableKevin Buettner2-9/+5
clause.
2002-04-05gdb/ChangeLog:Jim Blandy13-25/+68
* stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
2002-04-052002-04-05 Michael Snyder <msnyder@redhat.com>Michael Snyder2-1/+6
* breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in warning message.
2002-04-05Document the addition of the new xfullpath.exp testcase.Joel Brobecker1-0/+5
2002-04-05New testcase.Joel Brobecker1-0/+198
2002-04-05Document changes relative to the new xfullpath function.Joel Brobecker1-0/+14
2002-04-05(lookup_symtab): Use the new xfullpath function, in order to be able toJoel Brobecker1-13/+46
match a filename with either the real filename, or the name of any symbolic link to this file. (lookup_partial_symtab): Ditto.
2002-04-05(openp): Use xfullpath in place of gdb_realpath to avoid resolving theJoel Brobecker1-3/+8
basename part of filenames when the associated file is a symbolic link. This fixes a potential inconsistency between the filenames known to GDB and the filenames it prints in the annotations.