aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1998-10-19 * cgen-asm.in (insert_1): New function.Doug Evans1-29/+92
(insert_normal): Progress on handling ! CGEN_INT_INSN_P. (insert_insn_normal): Update handling of CGEN_INT_INSN_P. (@arch@_cgen_assemble_insn): Update type of `buf' arg. * cgen-dis.in (extract_1): New function. (extract_normal): buf_ctrl renamed to ex_info, update type. Progress on handling of CGEN_INT_INSN_P. (extract_insn_normal): buf_ctrl renamed to ex_info, update type. Update handling of CGEN_INT_INSN_P. Handle errors from @arch@_cgen_extract_operand. (print_insn): Renamed from print_int_insn. Handle ! CGEN_INT_INSN_P. (default_print_insn): Renamed from print_insn. Handle ! CGEN_INT_INSN_P. (print_insn_@arch@): Handle error returns from print_insn. * cgen-opc.in (cgen_get_insn_value, cgen_put_insn_value): New fns. (@arch@_cgen_lookup_insn): Update handling of CGEN_INT_INSN_P. (@arch@_cgen_lookup_get_insn_operands): Ditto. * m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
1998-10-19 * cgen.h (CGEN_INSN_INT): New typedef.Doug Evans1-0/+29
(CGEN_INT_INSN_P): Renamed from CGEN_INT_INSN. (CGEN_INSN_BYTES): Renamed from cgen_insn_t. (CGEN_INSN_BYTES_PTR): New typedef. (CGEN_EXTRACT_INFO): New typedef. (cgen_insert_fn,cgen_extract_fn): Update. (cgen_opcode_table): New member `insn_endian'. (assemble_insn,lookup_insn,lookup_get_insn_operands): Update. (insert_operand,extract_operand): Update. (cgen_get_insn_value,cgen_put_insn_value): Add prototypes.
1998-10-19 * cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.Doug Evans1-0/+11
* cgen.h (gas_cgen_finish_insn): Update prototype. * config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P. cgen_insn_t -> CGEN_INSN_INT. (make_parallel): Update handling of CGEN_INT_INSN_P. (assemble_parallel_insn): Ditto. (target_make_parallel): New function. (md_assemble): Use it.
1998-10-19Fix typo.Catherine Moore2-1/+5
1998-10-19 * acinclude.m4: undo previous gettext changeFelix Lee1-0/+5
* aclocal.m4: rebuild with right version of aclocal.
1998-10-19bfd:Felix Lee6-112/+937
* acinclude.m4, aclocal.m4: move gettext-related fragments from aclocal.m4 to acinclude.m4, so they don't get lost. * elfcore.h: rewrite for better corefile support. * elf.c (elfcore_*): new functions. * elf-bfd.h (elf_obj_tdata): new structure members. * acconfig.h, acinclude.m4, configure.in: add feature-tests for flavor of procfs. * aclocal.m4, config.in, configure, Makefile.in: regenerated. include: * common.h (NT_PSTATUS, NT_FPREGS, NT_PSINFO, NT_LWPSTATUS,NT_LWPSINFO): added. * internal.h (Elf_Internal_Note): new structure members.
1998-10-19 * config/tc-sh.c (md_assemble): Make sure the entire opcode isJeff Law2-1/+24
converted into lower case. pr17413
1998-10-19 * config.if (cxx_interface, libstdcxx_interface): Do not try to setJeff Law1-0/+11
these if the appropriate directories and files to not exist.
1998-10-17fix typoFelix Lee1-0/+5
1998-10-17 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.Felix Lee2-0/+5
1998-10-16Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-0/+5
* m32r-tdep.c (decode_prologue): Return failure if we reach the end of the function without finding the end of the prologue.
1998-10-161998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda12-68/+148
* command.c copying.c copying.awk core-aout.c core-regset.c corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c symmisc.c valarith.c: Add prototypes. * defs.h: Add prototype for utils.c::do_run_cleanups. * gdbtypes.c: Add prototypes. (make_pointer_type): Add braces to remove nested if-else ambiguity. (make_reference_type): Ditto. * printcmd.c (printf_command): Initialize 'f' and 'string' at function startup to suppress possibly-used-before-initialized warning. * remote-utils.c: Add prototypes. (sr_pollchar): Add braces to remove nested if-else ambiguity. * ser-tcp.c: Add prototypes. (wait_for): Add braces to remove nested if-else ambiguity. (tcp_readchar): Ditto. * ser-unix.c: Add prototypes. (get_tty_state): Don't define errno here. (get_tty_state): Don't define errno here. (hardwire_readchar): Only define 't' if we are compiling in a Cygwin environment. * symtab.c: Add prototypes. (find_methods): Add braces to remove nested if-else ambiguity. (search_symbols): Set 'i' to an initial value to suppress a possibly-used-before-initialized warning. * valops.c: Add prototypes. (value_cast): Set 'eltype2' to an initial value to suppress a possibly-used-before-initialized warning. (value_of_variable): Add braces to remove nested if-else ambiguity. (value_of_this): Ditto. * valprint.c: Add prototypes. (print_floating): Add braces to remove nested if-else ambiguity. Looks like a big change, but it is really just a lot of small stuff. In the cases where GCC was flagging a possible use-before-initialized warning on variables, it turned out that these were being used properly but GCC couldn't see that.
1998-10-16Add vtable relocs.Catherine Moore1-0/+8
1998-10-16 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERITCatherine Moore1-0/+12
and R_M32R_GNU_VTENTRY. (elf_backend_can_gc_sections): Define. (m32r_elf_check_relocs): New. (m32r_elf_gc_mark_hook): New. (m32r_elf_gc_sweep_hook): New. (m32r_elf_relocate_section): Handle VT relocs.
1998-10-16 * cgen.c (gas_cgen_md_apply_fix3): Handle VTABLE relocs.Catherine Moore3-30/+110
(gas_cgen_tc_gen_reloc): Likewise. * config/tc-m32r.h (obj_fix_adjustable): Define. * config/tc-m32r.c (m32r_fix_adjustable): New. (m32r_force_relocation): Handle VTABLE relocs.
1998-10-16 * tm-sp64.h (SETUP_ARBITRARY_FRAME, RAME_SPECIFICATION_DYADIC):Stan Shebs2-12/+12
Remove, nevermore used.
1998-10-15command.c: Include "wait.h" after, rather than before, <wait.h>.Andrew Cagney2-1/+28
"wait.h" was defining all WIF* macro's instead of filling in those that <wait.h> missed. Stops heaps of warnings from <wait.h> re-defining WIF*s defined in "wait.h".
1998-10-15 * configure.in (enable_cgen_maint): Fix typo.Doug Evans1-1/+1
1998-10-141998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda11-133/+197
* defs.h: Move _initialize_printcmd, _initialize_stack, _initialize_blockframe out of here and in to their respective .c files. * blockframe.c: Move _initialize_blockframe prototype to here. * printcmd.c: Move _initialize_printcmd prototype to here. * stack.c: Move _initialize_stack prototype to here. * source.c, symtab.h: Move _initialize_source prototype to the .c file. * values.c, value.h: Move _initialize_values prototype to the .c file. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c file. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype to the .c file. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c: Standardize comments for the prototype section of these files. * configure.in: Look in libc for wctype before looking for it in libc. The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem where an empty stub library (libw) causes a core dump when we call vasprintf (e.g. `info br') in the final linked gdb.
1998-10-14Updated .Sanitize for qthreadsTom Tromey1-1/+1
1998-10-14Wed Oct 14 10:29:06 1998 Jeffrey A Law (law@cygnus.com)Jeff Law1-0/+4
* Makefile.in (DEVO_SUPPORT): Add config.if.
1998-10-14Results of first-pass at looking for problems with making the targetAndrew Cagney2-1/+1065
architecture a vector.
1998-10-14 * sol-thread.c (ps_pstop, etc): simple test for proc_service.hFelix Lee6-49/+126
version didn't work for sol2.6; pushed it to autoconf. * configure.in (gdb_cv_proc_service_is_old): new test. * acconfig.h (PROC_SERVICE_IS_OLD): new define. * configure, config.in: regenerate.
1998-10-141998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda23-187/+354
* blockframe.c (find_pc_sect_partial_function): Add braces to avoid possible nested-if confusion. * breakpoint.c (breakpoint_here_p): Ditto. (breakpoint_inserted_here_p): Ditto. (breakpoint_thread_match): Ditto. * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined. * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability prototypes. * symtab.h: Add prototype for _initialize_source. * value.h: Add prototype for _initialize_value. * defs.h: Include sys/types.h or stddef.h to get size_t. (make_cleanup): Add make_cleanup_func typedef and switch to using a prototype for this function. (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't using mmalloc. * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c: Cast parameters passed to make_cleanup to use the new make_cleanup_func typedef. More warning cleanups. There are still a bunch of places where the first argument to make_cleanup is not cast to (make_cleanup_func); these are either due to the function fitting the make_cleanup_func specification already (e.g. free()) or they are in files that weren't compiled when I did my make on a Linux native system. Bwahahaha. You can see them like this: grep make_cleanup\ * | grep -v make_cleanup_func I'll surely go back and clean up the remaining suspicious calls in GDB one of these days. :-)
1998-10-14Minor typos.Andrew Cagney1-0/+4
1998-10-13Whoa, somehow this ChangeLog entry didn't get committed along with theJason Molenda1-0/+8
actual changes. Here is the text: 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com) * Makefile.in (AWK): Unused; remove. * configure.in: Remove unused autoconf checks for MINIX, memcpy, poll, select, strings.h. * config.in: Regenerated. * configure: Regenerated.
1998-10-13 * config.sub: Bring back lost sparcv9.Jeff Law1-5/+307
1998-10-13* Doh, backing out premature devo patch re PR 17559.Frank Ch. Eigler1-7/+0
1998-10-13* Patch for PR 17559, devo style.Frank Ch. Eigler2-52/+195
start-sanitize-r5900 Tue Oct 13 12:47:42 EDT 1998 Frank Ch. Eigler <fche@cygnus.com> * mips-opc.c: Update COP2 operand formats for vrnext and vrget instructions. end-sanitize-r5900
1998-10-131998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda3-348/+238
* Makefile.in (AWK): Unused; remove. * configure.in: Remove unused autoconf checks for MINIX, memcpy, poll, select, strings.h. * config.in: Regenerated. * configure: Regenerated.
1998-10-13 * sol-thread.c (ps_pstop, etc): different solaris versions haveFelix Lee2-20/+51
slightly different prototypes in proc_service.h; compensate.
1998-10-13Fix PR17762 - convert second opcode of a parallel insn to lower case beforeNick Clifton1-0/+3
parsing.
1998-10-131998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda5-6/+25
* configure.in: Check for sys/debugreg.h, asm/debugreg.h. * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not present. This is to work around a conflict where the Linux 2.1.x kernel and glibc 2.0.x are not in sync; including <sys/debugreg.h> will result in an error. With luck, these losers will get their act together and we can trash this hack in the near future.
1998-10-12Fix fise of R_M32R_18_PCREL relocation.Nick Clifton1-0/+6
1998-10-12Cope with missing hi or lo relocs.Nick Clifton1-0/+15
1998-10-12Fix for PR 17008 - ignore conflicts when explicitly parallel instructionsNick Clifton1-0/+5
both set bits in the PSW as side effects.
1998-10-12 * m10300-opc.c: DSP instrutions which only write to one generalJeff Law2-96/+101
register have no restrictions on matching operands.
1998-10-12 * m10300-opc.c (lsr_add): Fix typo for "lsr_add imm,reg,reg,reg" case.Jeff Law2-1/+5
pr17742
1998-10-12* configure.in (links): Link gdbtcl2 directory instead of gdbtcl.Andrew Cagney2-10/+10
(ChangeLog entry already checked in).
1998-10-11 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust thePeter Schauer3-11/+22
address range of a compilation unit without children. * mdebugread.c (parse_partial_symbols): Fix handling of stabs continuations, use xmalloc and xrealloc.
1998-10-10 * rs6000-tdep.c: Don't include tm.h twice.Mark Alexander2-1/+4
1998-10-10 * interp.c: #include "itable.h" if WITH_IGEN.Doug Evans1-0/+10
(get_insn_name): New function. (sim_open): Initialize CPU_INSN_NAME,CPU_MAX_INSNS. * sim-main.h (MAX_INSNS,INSN_NAME): Delete.
1998-10-09 Add pseudo-basic-block execution support.Doug Evans8-5612/+1868
* Makefile.in (SIM_OBJS): Add sim-reg.o, cgen-run.o, sim-stop.o. (SIM_EXTRA_DEPS): Add include/opcode/cgen.h. (INCLUDE_DEPS): Delete cpu-sim.h, include/opcode/cgen.h. (mloop.c): Build pseudo-basic-block version. Depend on stamp-cpu. (stamp-decode): Delete, build decode files with other cpu files. * arch.c,arch.h,cpuall.h: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * m32r-sim.h (M32R_MISC_PROFILE): New members load_regs, load_regs_pending. * m32r.c (m32rbf_fetch_register): Renamed from m32rb_fetch_register. (m32rbf_store_register,m32rbf_h_cr_get,m32rbf_h_cr_set, m32rbf_h_psw_get,m32rbf_h_psw_set,m32rbf_h_accum_get, m32rbf_h_accum_set): Likewise. (m32r_model_{init,update}_insn_cycles): Delete. (m32rbf_model_insn_{before,after}): New fns. (m32r_model_record_cti,m32r_model_record_cycles): Delete. (m32rb_model_mark_get_h_gr,m32rb_model_mark_set_h_gr): Delete. (m32rb_model_mark_busy_reg,m32rb_model_mark_unbusy_reg): Delete. (check_load_stall): New fn. (m32rbf_model_m32r_d_u_{exec,cmp,mac,cti,load,store}): New fns. (m32rbf_model_test_u_exec): New fn. * mloop.in: Rewrite, use pbb support. * sim-if.c (sim_stop,sim_sync_stop,sim_resume): Delete. (sim_fetch_register,sim_store_register): Delete. * sim-main.h (CIA_GET,CIA_SET): Fix. (SIM_ENGINE_HALT_HOOK,SIM_ENGINE_RESTART_HOOK): Delete. * tconfig.in (WITH_SCACHE_PBB): Define. (WITH_SCACHE_PBB_M32RBF): Define. * traps.c (sim_engine_invalid_insn): Renamed from ..._illegal_.... (m32r_trap): Pass pc to sim_engine_halt. * configure.in (SIM_AC_OPTION_SCACHE): Change 1024 to 16384. * configure: Regenerate. start-sanitize-m32rx * Makefile.in (M32RX_OBJS): Delete semx.o, add extract.o. (mloopx.c): Build pseudo-basic-block version. Depend on stamp-xcpu. (semx.o): Delete. (extractx.o): Add. (stamp-xdecode): Delete, build decode files with other cpu files. * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c: Regenerate. * readx.c: Delete. * semx.c: Delete. * extractx.c: New file. * semx-switch.c: New file. * m32r-sim.h (BRANCH_NEW_PC): Delete. (SEM_SKIP_INSN): New macro. * m32rx.c (m32rxf_fetch_register): Renamed from m32rx_fetch_register. (m32rxf_store_register,m32rxf_h_cr_get,m32rxf_h_cr_set, m32rxf_h_psw_get,m32rxf_h_psw_set,m32rxf_h_accum_get, m32rxf_h_accum_set,m32rxf_h_accums_get,m32rxf_h_accums_set): Likewise. (m32rxf_model_insn_{before,after}): New fns. (m32rx_model_mark_get_h_gr,m32rx_model_mark_set_h_gr): Delete. (m32rx_model_mark_busy_reg,m32rx_model_mark_unbusy_reg): Delete. (check_load_stall): New fn. (m32rxf_model_m32rx_u_{exec,cmp,mac,cti,load,store}): New fns. * mloopx.in: Rewrite, use pbb support. * tconfig.in (WITH_SCACHE_PBB_M32RXF): Define. (WITH_SEM_SWITCH_FULL): Change from 0 to 1. end-sanitize-m32rx
1998-10-09 * Make-common.in (sim-reg.o): New rule.Doug Evans1-0/+147
(cgen-run.o): New rule. * cgen-ops.h: Delete many BI macros. Change all UBI -> BI. * cgen-run.c (prime_cpu): New function. * cgen-scache.c: Add pseudo-basic-block (pbb) scaching support. (scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly mentioned cpu. (scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns. * cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum. (CGEN_INSN_VIRTUAL_P): New macro. (SEM_PC): New typedef. (SEMANTIC_FN): Change type of result to SEM_PC. (SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros. (IDESC_CTI_P,IDESC_SKIP_P): New macros. (SCACHE_MAP): New typedef. (CPU_SCACHE): Add pbb support. (scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare. (SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros. (CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn, max_slice_insns. (INSN_NAME): Delete. (cgen_insn_name): Declare. (sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn. * cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes. (first_insn_p): Make static. (trace_insn): Handle virtual insns specially. (cgen_trace_printf): Ensure we haven't overflowed the buffer. * cgen-types.h (UBI): Delete. (MODE_TYPE): New enum. (HOSTINT,HOSTUINT,HOSTPTR): Delete. * cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR. (cgen_virtual_opcode_table): New global. (cgen_insn_name): New function. (sim_disassemble_insn): Ignore virtual insns. * genmloop.sh: Delete top level loop generation. Add pbb support. * sim-cpu.h (CPU_INSN_NAME_FN): New typedef. (sim_cpu_base): New members max_insns,insn_name,model_data. (CPU_PC_GET,CPU_PC_SET): New macros. (sim_pc_get,sim_pc_set): Declare. * sim-model.c (model_set): Call model init fn. * sim-model.h (MODEL_FN): New typedef. (INSN_TIMING): New member model_fn. (MODEL): New members num,init. * sim-profile.c (sim_profile_print_bar): Renamed from print_bar. All callers updated. (profile_insn_init): New fn. (profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME. Exit early if insn profiling not supported. (profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX. (profile_install): Record profile_insn_init as init fn. (profile_uninstall): Free PROFILE_INSN_COUNT if non-null. * sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX. (PROFILE_DATA): Delete member exec_time. Change insn_count to pointer to array, rather than the array. (sim_profile_print_bar): Declare.
1998-10-09Merge with egcs-19981008Jeff Law2-10/+21
1998-10-09regenerate m32r-opc.c, m32r-opc.hDoug Evans1-0/+4
1998-10-09Merge egcs-19981008.Jeff Law4-2/+7
1998-10-09 * scripttempl/elf.sc: Merge .sdata.* etc sections.Catherine Moore1-0/+6
* ldctor.c (ldctor_build_sets): Set SEC_KEEP for ctor sections.
1998-10-08 * gdbtk-hooks.c (gdbtk_add_hooks): Install a hook forKeith Seitz2-4/+22
(new) file_changed_hook. (gdbtk_exec_file_changed): Rename to gdbtk_exec_file_display to mimic hook's name. (gdbtk_file_changed): New hook function.
1998-10-08 * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.Keith Seitz2-18/+85
There should be sufficient information/hooks now to eliminate this hack. * exec.c (file_command): Add a new hook here to inform ui's when the exec file has changed. Adding it here allows the ui to be informed after symbol reading. * gdbcore.h: Add declaration of file_changed_hook.