aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2000-05-26Fix bitrot in tui-file.c.Andrew Cagney2-2/+16
2000-05-26Configure TUI to use <ncurses.h> when available.Andrew Cagney8-331/+359
2000-05-25Replace SKIP_SOLIB_RESOLVER stub with something that works.Scott Bambrough3-4/+100
2000-05-25 Scott Bambrough <scottb@netwinder.org> * arm-linux-tdep.c (find_minsym_and_objfile): New. (skip_hurd_resolver): New. (arm_linux_skip_solib_resolver): New. (arm_skip_solib_resolver): Removed. * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Changed to use arm_linux_skip_solib_resolver.
2000-05-25* acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.Mark Kettenis5-330/+420
* configure.in: Add checks for r_fs and r_gs members of `struct reg'. * config.in, configure: Regenerated.
2000-05-25 * ser-go32.c: Remove PARAMS.Eli Zaretskii2-9/+13
2000-05-25Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h".Andrew Cagney8-192/+257
2000-05-25Re-generate config.in.Andrew Cagney2-3/+7
2000-05-25File rename tweeks.Andrew Cagney2-0/+9
2000-05-25Have TUI use the same configury mechanism as MI.Andrew Cagney7-283/+209
2000-05-25Update JimI's e-mail addres.Andrew Cagney3-16/+18
Update TODO - FreeBSD mostly fixed.
2000-05-24Add support for FreeBSD/i386 ELF.Mark Kettenis7-28/+389
* i386bsd-nat.c: New file. * config/i386/tm-fbsd.h (HAVE_I387_REGS): Define. Include "i386/tm-i386.h" instead of "i386/tm-i386b.h". (NUM_REGS): Remove redefinition. (USE_STRUCT_CONVENTION): Define. (i386_float_info): Remove prototype. (FLOAT_INFO): Remove define. (JB_ELEMENT_SIZE): Define to 4. (JB_PC): Define to 0. (GET_LONGJMP_TARGET): Define. (SIGTRAMP_START, SIGTRAMP_END): Define. (SIGCONTEXT_PC_OFFSET): Define. (IN_SOLIB_CALL_TRAMPOLINE): Only define if !SVR4_SHARED_LIBS * config/i386/nm-fbsd.h (PTRACE_ARG3_TYPE): Define to caddr_t. (FETCH_INFERIOR_REGISTERS): Define. (ATTACH_DETACH): Define. (kernel_u_size): Remove PARAMS. (register_u_addr): Use CORE_ADDR in prototype where appropriate. Remove PARAMS. (SVR4_SHARED_LIBS) [FREEBSD_ELF || __ELF__ && !FREEBSD_AOUT]: Define. [SVR4_SHARED_LIBS]: Include "elf/common.h". Only define aliases for struct members from <link.h> if !SVR4_SHARED_LIBS. * config/i386/xm-fbsd.h: New file. * config/i386/fbsd.mt (TDEPFILES): Remove solib.o. * config/i386/fbsd.mh (NATDEPFILES): Remove i386b-nat.o. Add core-regset.o i387-nat.o i386bsd-nat.o.
2000-05-242000-05-24 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-18/+18
* findvar.c (value_from_register): Factor code, simplify logic.
2000-05-242000-05-17 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-5/+1
* config/sparc/tm-sun4sol2.h: Turn on multi-arch. * sparc-tdep.c (gdb_print_insn_sparc): Remove temp. multi-arch hack.
2000-05-242000-05-18 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-4/+10
* gdb.base/annota1.exp (annotate-signal-handler-caller): Relax the regular expression a little, make it pass on Solaris 8.
2000-05-242000-05-17 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2-1/+7
* config/sparc/tm-sun4sol2.h: Turn on multi-arch. sparc-tdep.c (gdb_print_insn_sparc): Remove temporary multi-arch hack.
2000-05-24 * gdb.texinfo: Remove duplicate @syncodeindex. From BrianEli Zaretskii2-4/+6
Youmans.
2000-05-24et al. not et.al.Andrew Cagney2-2/+7
2000-05-24* config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...J.T. Conklin10-27/+200
* config/i386/nbsd.mh (NATDEPFILES): ...to here. * config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here... * config/m68k/nbsd.mh (NATDEPFILES): ...to here. * config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here... * config/ns32k/nbsd.mh (NATDEPFILES): ...to here. * config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o. * configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs. * gdbserver/low-nbsd.c (initialize_arch): Define for PPC. (fetch_inferior_registers): Likewise. (store_inferior_registers): Likewise. * gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86 floating point registers. (store_inferior_registers): Likewise. -------------------------------------------------------------------
2000-05-24Remove quotes from arround for loop arg.Andrew Cagney2-1/+6
2000-05-23* i387-nat.h, i387-nat.c: New files.Mark Kettenis3-0/+166
2000-05-23* config/sparc/nm-linux.h: Include config/nm-linux.h.Alexandre Oliva3-1/+10
* config/powerpc/nm-linux.h: Likewise.
2000-05-23one line fix by Gregory Lielens <Gregory.Lielens@fft.be> to fix a problemDavid Taylor2-1/+6
with the printing of complex numbers (it would print the real part twice).
2000-05-23Add make_cleanup_close() function.Andrew Cagney3-0/+20
2000-05-23Add -Wuninitialized.Andrew Cagney3-3/+9
2000-05-23IRIX GCC fixes from 5.0 branch.Andrew Cagney4-9/+22
2000-05-23From branch. Bump VERSION number.Andrew Cagney2-1/+6
2000-05-22Purge (almost) make_cleanup_func.Andrew Cagney20-35/+187
2000-05-22Purge procfs.c of make_cleanup_func.Andrew Cagney2-5/+28
2000-05-22Eliminate make_cleanup_func from top.cAndrew Cagney4-20/+69
2000-05-22Replace preg() with phex(). Cleanup monitor.c.Andrew Cagney5-87/+56
2000-05-21* i387-tdep.c (print_i387_value): Cast &value to (char *) inMark Kettenis2-1/+8
pointer arithmetic. Fixes a bug which manifested itself on FreeBSD.
2000-05-20* target.h (target_memory_bfd_section): Removed declaration.J.T. Conklin9-97/+32
* target.c (target_memory_bfd_section): Removed. * exec.c (xfer_memory): Removed #if'ed-out code which referenced target_memory_bfd_section. * target.h (target_read_memory_section): Removed declaration. * target.c (target_read_memory_section): Removed. (target_xfer_memory): Update, removed bfd_section argument. (target_read_string, target_read_memory, target_write_memory): Update for above change. * gdbcore.h (read_memory_section): Removed declaration. * corefile.c (read_memory_section): Removed. * jv-lang.c (get_java_utf8_name): Changed calls to read_memory_section to read_memory. * printcmd.c (printf_command): Likewise. * valops.c (value_at, value_fetch_lazy): Likewise.
2000-05-19updateJimmy Guo1-0/+4
2000-05-19regenerateJimmy Guo1-4/+30
2000-05-18* configure.host, configure.tgt (powerpc-*-netbsd*): New entry.J.T. Conklin9-0/+230
* config/powerpc/nbsd.mh, config/powerpc/nbsd.mt, config/powerpc/tm-nbsd.h, config/powerpc/nm-nbsd.h, config/powerpc/xm-nbsd.h: New files.
2000-05-172000-05-12 Michael Snyder <msnyder@.cygnus.com>Michael Snyder2-2/+36
* gdb.base/break.exp (bp on small function, optimized file): Add a second pass pattern. The behavior differs here between stabs and dwarf for one-line functions. Stabs preserves two line symbols (one before the prologue and one after) with the same line number, but dwarf regards these as duplicates and discards one of them. Therefore the address after the prologue (where the breakpoint is) has no exactly matching line symbol, and GDB reports the breakpoint as if it were in the middle of a line rather than at the beginning.
2000-05-172000-05-12 Michael Snyder <msnyder@.cygnus.com>Michael Snyder2-18/+30
* config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Define.
2000-05-17 * gdb/config/djgpp/README: Fine-tune installation instructionsEli Zaretskii2-12/+24
based on user reports.
2000-05-17 * mmalloc/Makefile.in (install-info): Make sure $(infodir) exists.Eli Zaretskii2-0/+12
Run install-info program on the installed Info files. * gdb/doc/Makefile.in (install-info): Run install-info on installed Info files.
2000-05-17Minor maint et.al. tweeks.Andrew Cagney5-59/+115
2000-05-17Change v850 break-point instruction to loop. Get around lack of 16Andrew Cagney2-1/+8
bit breakpoint.
2000-05-16Review TODO.Andrew Cagney2-201/+436
2000-05-16Rename mi/ChangeLog-mi -> mi/ChangeLogAndrew Cagney17-69/+0
2000-05-16Make free_current_contents more robust. Use in MI.Andrew Cagney4-10/+16
2000-05-16Cleanup discard_minimal_symbols cleanup.Andrew Cagney13-16/+34
2000-05-16Fix signature of add_set_enum_cmd. Change VAR parameter to char**.Andrew Cagney9-33/+48
Cleanup signature of add_set_cmd. Change VAR parameter to void*.
2000-05-16Remove stray extern declaration of wrap_value_subscript().Andrew Cagney2-1/+4
2000-05-16Cleanup bfd_close() cleanups.Andrew Cagney8-6/+30
2000-05-15Add notes on register cache.Andrew Cagney2-13/+146
2000-05-15sh-dsp support, simulator speedup by using host byte order:Joern Rennecke3-7/+98
sim: * Makefile.in (interp.o): Depends on ppi.c . (ppi.c): New rule. * gencode.c (printonmatch, think, genopc): Deleted. (MAX_NR_STUFF): Now 42. (tab): Add SH-DSP CPU instructions. Amalgamate ldc / stc / lds / sts instructions with similar bit patterns. Fix opcodes of stc Rm_BANK,@-<REG_N>. Fix semantics of lds.l @<REG_N>+,MACH (no sign extend). (movsxy_tab): New array. For movs, change MMMM field to GGGG, and mmmm field to MMMM. Added entries for movx, movy and parallel processing insns. (ppi_tab): New array. (qfunc): Stabilize sort. (expand_opcode): Handle [01][01]NN, [01][01]xx and [01][01]yy. Handle 'M', 'G' 's' 'X', 'a', 'Y' and 'A'. (dumptable): Now takes three arguments. Changed all callers. Emit just one contigous jump table. (filltable): Now takes an argument. Changed all callers. Make index static. (ppi_moves, expand_ppi_code, ppi_filltable, ppi_gensim): New functions. (gensim_caselist): New function, broken out of gensim. Handle opcode fields 'x', 'y', 's', 'M', 'G', 'X', 'a', and 'Y'. Handle ref '9'. (gensim): Handle 'N' in code field and '8' in refs field. Call gensim_caselist - twice. (ppi_index): New static variable. (main): Unsupport default action. Add dsp support for -x / -s option. Add -p option. * interp.c (sh_jump_table, sh_dsp_table, ppi_table): Declare. (saved_state_type): Rearrange to allow amalgamated ldc / stc / lds / sts to work efficiently. (target_dsp): New static variable. (GBR, VBR, SSR, SPC, MACH, MACL): Reflect saved_state_type change. (FPUL, Rn_BANK, SET_Rn_BANK, M, Q, S, T, SR_BL, SR_RB): Likewise. (SR_MD, SR_RC, SET_SR_BIT, GET_SR, SET_RC, GET_FPSCR): Likewise. (RS, RE, MOD, MOD_ME, DSP_R): Likewise. (set_fpscr1): Likewise. Use target_dsp to check for dsp. (MOD_MSi, SIG_BUS_FETCH): Deleted. (CREG, SREG, PR, SR_MASK_DMY, SR_MASK_DMX, SR_DMY): New macros. (SR_DMX, DSR, MOD_DELTA, GET_DSP_GRD): Likewise. (SET_MOD): Reflect saved_state_type change. Set MOD_DELTA instead of MOD_MS, and encode SR_DMY / SR_DMX into high word of MOD_ME. (set_sr): Reflect saved_state_type change. Fix SR_RB handling. Use SET_MOD. (MA, L, TL, TB): Now controlled by ACE_FAST. (SEXT32): Just cast to int. (SIGN32): Fixed to only shift by 31. (CHECK_INSN_PTR): SIGBUS at insn fetch now represented by insn_end 0. (ppi_insn): Declare. (ppi.c): Include. (init_dsp): Set target_dsp. When it changes, switch end of sh_jump_table with sh_dsp_table. (sim_resume) Don't declare sh_jump_table0. Use sh_jump_table instead. Don't Declare PR if it's #defined. Fix single-stepping (Was broken in Mar 6 16:59:10 patch). (sim_store_register, sim_read_register): Translate accesses to reflect saved_state_type change. * interp.c (set_sr): Set sr. (SET_RC, MOD, MOD_MS, MOD_ME, SET_MOD, MOD_MS, MOD_ME): New macros. (set_fpscr1): Don't bank-switch fpu registers when simulating sh-dsp. (DSP_R): Fix definition. (sim_resume): Remove outdated SET_SR use. * interp.c (saved_state): New members for struct member asregs: rs, re, insn_end, xram_start, yram_start. (struct loop_bounds): New struct. (SKIP_INSN): New macro. (get_loop_bounds): New function. (endianw): Renamed to global_endianw. (maskw): negated bits. (PC): Now insn_ptr. (SR_MASK_RC, SR_RC_INCREMENT, SR_RC, RAISE_EXCEPTION): New macros. (RS, RE, DSP_R, DSP_GRD, A1, A0, X0, X1, Y0, Y1, M0, A1G): Likewise. (M1, A0G, RIAT, PT2H, PH2T, SET_NIP, CHECK_INSN_PTR): Likewise. (SIG_BUS_FETCH): Likewise (raise_exception, riat_fast): New functions. (raise_buserror, sim_stop): Use raise_exception. (PROCESS_SPECIAL_ADDRESS): Use xram_start / yram_start. (BUSERROR, WRITE_BUSERROR, READ_BUSERROR): Reverse sense of mask argument. (FP_OP, set_dr): Use RAISE_EXCEPTION. (wlat_fast, wwat_fast, wbat_fast, rlat_fast, rwat_fast, rbat_fast): Declare. Remove redundant masking. (wwat_fast, rwat_fast): Add argument endianw. Changed callers. (MA): Updated for change pc -> PC. (Delay_Slot): Use RIAT. (empty): Deleted. (trap): Remove argument little_endian. Add argument endianw. Changed all callers. Use raise_exception. (macw): Add argument endainw. Changed all callers. (init_dsp): New function, extended after broken out of init_pointers. (sim_resume): Replace pc with insn_ptr. Replace little_endian with endianw. Replace nia with nip. Reverse sense of maskb / maskw / maskl. Implement logic for zero-overhead loops. Don't try to interpret garbage when getting a SIGBUS at insn fetch. (sim_open): Call init_dsp. * gencode.c (tab): Use SET_NIP instead of nia = . Use PH2T / PT2H / RAISE_EXCEPTION where appropriate. Add extra cycles for brai, braf , bsr, bsrf, jmp, jsr. * interp.c (sim_store_register, sim_fetch_register): Do proper endianness switch. * interp.c (saved_state_type): New members for struct member asregs: xymem_select, xmem, ymem, xmem_offset, ymem_offset. (special_address): Delete. (BUSERROR): Now a two-argument predicate. (PROCESS_SPECIAL_ADDRESS, WRITE_BUSERROR, READ_BUSERROR): New macros. (wlat_little, wwat_little, wbat_any, wlat_big, wwat_big): Delete. (process_wlat_addr, process_wwat_addr): New functions. (process_wbat_addr, process_rlat_addr, process_rwat_addr): Likewise. (process_rbat_addr): Likewise. (wlat_fast, wwat_fast, wbat_fast): Use WRITE_BUSERROR. (rlat_little, rwat_little, rbat_any, rlat_big, rwat_big): Delete. (rlat_fast, rwat_fast, rbat_fast): Use READ_BUSERROR. (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Delete SLOW versions. (do_rdat, trap): Delete SLOW code. (SEXT32, SIGN32): New macros. (swap, swap16): Now integer in - integer out. Changed all callers. (strswaplen, strnswap): Delete SLOW versions. (init_pointers): Initialize dsp memory selection (preliminary). (sim_store_register, sim_fetch_register): Use swap instead of big / little endian read / write functions. * interp.c (maskl): Deleted. (endianw, endianb): New variables. (special_address): Now inline. (bp_holder): Put raising of buserror there, rename to: (raise_buserror). (BUSERROR): Now yields a value. Changed all users. (wbat_big): Delete. (wlat_fast, wwat_fast, wbat_fast): New functions. (rlat_fast, rwat_fast, rbat_fast): Likewise. (RWAT, RLAT, RBAT, WWAT, WLAT, WBAT): Use new functions. (do_rdat, do_wdat): Likewise. Take maskl argument instead of little_endian one. Changed caller macros. (swap, swap16): Use w[rw]lat_big / w[rw]lat_little directly. (strswaplen, strnswap): New functions. (trap): Use them to fix up endian mismatches; disable SYS_execve and SYS_execv; fix double address translation for SYS_pipe and SYS_stat. (sym_write, sym_read): Add endianness translation. (sym_store_register, sym_fetch_register): Add maskl local variable. (sim_open): Set endianw and endianb. gdb: * sh-tdep.c (sh_dsp_reg_names, sh3_dsp_reg_names): New arrays. (sh_processor_type_table): Add entries for bfd_mach_sh_dsp and bfd_mach_sh3_dsp. (sh_show_regs): Floating point registers are called fr0-fr15. For sh4, display fpul, fpscr and fr0-fr15 / dr0-dr14 as appropriate. Handle sh-dsp and sh3-dsp. config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): sh-dsp / sh3-dsp don't have floating point registers. (DSR_REGNUM, A0G_REGNUM, A0_REGNUM, A1G_REGNUM, A1_REGNUM): Define. (M0_REGNUM, M1_REGNUM, X0_REGNUM, X1_REGNUM, Y0_REGNUM): Likewise. (Y1_REGNUM, MOD_REGNUM, RS_REGNUM, RE_REGNUM, R0B_REGNUM): Likewise.