aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1995-07-21 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lfJeff Law1-3/+3
sequences to be echo'd by gdb when using gdb_test. * gdb.chill/chexp.exp: Likewise. * gdb.fortran/exprs.exp: Likewise
1995-07-21 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new (ignored)Jeff Law1-0/+6
argument. * elf32-hppa.h: Corresponding change.
1995-07-21 * somread.c (som_symtab_read): Add unsatisfied common symbols toJeff Law2-0/+23
the minimal symbol table. All common symbols are "unsatisfied" when -E is passed to the linker. mentor-7462
1995-07-20fix some compilation problemsKen Raeburn1-0/+8
1995-07-20 * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_lineFred Fish2-1/+6
to proper type of "unsigned int *".
1995-07-20 * top.c (show_endian): Cast first arg of printf_unfiltered toFred Fish2-1/+6
correct type of "char *".
1995-07-20 * lynx-nat.c (child_wait): A thread_id of zero from wait apparentlyJeff Law2-2/+12
means the process is single threaded, so there's no need to add it to the thread list. Handle case where multi-threaded process reverts back to a single-threaded process.
1995-07-20 * gdbserver/low-hppabsd.c: Remove error declaration.Jeff Law4-3/+13
* gdbserver/low-sparc.c: Likewise. * gdbserver/low-sun3.c: Likewise. * gdbserver/server.h: Remove error and fatal declaration. * gdbserver/utils.c (error): Update to be compatable with recent changes in defs.h. (fatal): Likewise.
1995-07-20ldmain.c (constructor_callback): Allocate set_name in stack frame, rather thanKen Raeburn1-0/+5
always calling alloca with a fixed size.
1995-07-20 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 secondsJeff Law5-100/+234
after the inferior gdb has started. 'cuz lynx may take a couple minutes to start the inferior gdb... * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf after each command. * gdb.base/funcargs.exp: Likewise. * gdb.base/gdbvars.exp: Likewise. * gdb.base/interrupt.exp: Likewise. * gdb.base/list.exp: Likewise. * gdb.base/watchpoint.exp: Likewise. * gdb.c++/demangle.exp: Likewise. * gdb.c++/inherit.exp: Likewise. * gdb.chill/chexp.exp: Likewise. * gdb.fortran/exprs.exp: Likewise. Just in case we can't get a version of expect that sets the tty modes right on lynx to avoid this problem.
1995-07-20 * hosts/i386v4.h (getgid, getuid): Change prototypes to beFred Fish2-2/+8
compatible with Unixware 1.x and Unixware 2.x, and probably other i386 svr4 versions as well.
1995-07-20 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscallJeff Law2-1/+8
test if we can't handle IO to/from the inferior.
1995-07-20 * gdb.c++/misc.exp: Always check for a program already beingJeff Law1-0/+3
started after sending a "run" command to gdb.
1995-07-20 * gdb.base/twice.exp: Start with a fresh gdb.Jeff Law1-0/+2
1995-07-20 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these testsJeff Law2-2/+3
only depend on gdb's expression code, not the chill runtime.
1995-07-20 * gdb.base/return.c: Put return values into variables so weJeff Law1-0/+5
can have gdb print them rather than depending on the program to print them. * gdb.base/return.exp: Corresponding changes.
1995-07-20 * lib/gdb.exp: Provide default value for noinferiorio.Jeff Law2-2/+39
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from the inferior.
1995-07-20* targets.c (bfd_target_vector): Since armpe and armpei have been split intoKen Raeburn1-0/+6
big- and little-endian variants, list all of them, instead of the now-nonexistant armpe[i]_vec.
1995-07-20 * gdb.base/break.exp: Always check for a program already beingJeff Law1-0/+6
started after sending a "run" command to gdb. (text_next_with_recursion): Don't check the output from the program's printf statement. Instead just make sure the program exited.
1995-07-20 * gdb.base/commands.exp: Protect tests which need arguments withJeff Law1-0/+5
$noargs conditionals.
1995-07-20* configure.in (arm-*-riscix*): Don't set emulation.Ken Raeburn1-0/+2
1995-07-20* config/tc-m68k.c (md_convert_frag): Rename argument seg to sec, since seg isKen Raeburn1-0/+5
a macro name in this file.
1995-07-20 * gdb.base/printcmds.exp: Adjust expect patterns for addressesPeter Schauer1-0/+10
of structure member arrays to match gdb/valops.c:value_addr change.
1995-07-20 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define toPeter Schauer1-1/+4
correctly map floating point registers numbers.
1995-07-20 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define toPeter Schauer5-73/+208
correctly map floating point registers numbers. * dwarfread.c (locval, new_symbol): Handle variables that are optimized out. * mdebugread.c: Replace all uses of builtin_type_* with mdebug_type_*. Define and initialize mdebug_type_*. * serial.h (serial_close): Add additional argument `really_close'. (SERIAL_CLOSE): Update serial_close call accordingly. (SERIAL_UN_FDOPEN): Use serial_close to handle refcnt properly. * serial.c (serial_close): Handle `really_close'. * serial.h (scb_base): Moved to serial.c, made static. * valops.c (value_addr): Don't coerce arrays. (typecmp): Coerce arrays instead of calling value_addr if necessary.
1995-07-20 * elf.c (bfd_section_from_phdr): Set lma based on p_paddr.Ian Lance Taylor1-0/+5
(elf_fake_sections): Set sh_addr based on lma, not vma. PR 7478.
1995-07-20 From Richard Earnshaw (rearnsha@armltd.co.uk):Stan Shebs2-2/+20
* gdb.texinfo (convenience variables): Document $_exitcode. (quit): Document optional expression to use as exit code.
1995-07-20 From Richard Earnshaw (rearnsha@armltd.co.uk):Stan Shebs2-22/+44
* infrun.c (wait_for_inferior): Set the convenience variable $_exitcode to the termination code of the inferior. * top.c (quit_command): Accept optional expression to use as parameter to exit().
1995-07-19 * emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.David Edelsohn1-0/+8
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
1995-07-19 * config/obj-coff.h (TE_PE): Delete.David Edelsohn1-0/+13
* config/tc-arm.h (BYTE_ORDER): Delete. (TARGET_FORMAT): Provide value for OBJ_COFF and TE_PE. (ARM_BI_ENDIAN): Define if OBJ_COFF and TE_PE. * config/tc-arm.c (byte_order): Delete. (md_number_to_chars): Reference target_big_endian, not byte_order. (md_chars_to_number): Likewise. (md_longopts): Add -EB/-EL if ARM_BI_ENDIAN. (md_parse_options): Recognize -EB/-EL. (md_show_usage): List -EB/-EL.
1995-07-19 * coff-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM.David Edelsohn2-5/+47
* configure.in (armpe_vec, armpei_vec): Add bi-endian support. * configure: "regenerated". * pe-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME. * pei-arm.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Replaces TARGET_SYM. (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Replaces TARGET_NAME. * targets.c (armpe_vec, armpei_vec): Deleted. (armpe_little_vec, armpe_big_vec, armpei_little_vec, armpei_big_vec): Added. * config/arm-pe.mt (DEFAULT_VECTOR): Default is armpe_little_vec. (SELECT_VECS): Add bi-endian support.
1995-07-19 * remote.c (remote_wait): When getting registers, check endianess andKung Hsu1-1/+5
do conversion if necessary.
1995-07-19 * gasp.c (process_assigns): Use toupper before comparing againstIan Lance Taylor2-29/+42
upper case letter. (whatcond): Likewise. PR 7281.
1995-07-19 * config/tc-sh.c (sh_relax): Rename from relax, and make global.Ian Lance Taylor11-135/+242
Renamed all uses. (insert): Pass a size of 2, not 4. (build_relax): Remove unused len variable. (md_show_usage): Mention -little option. (md_convert_frag): Add segT argument. Rewrite to generate relocs rather than to generate complete instructions here. (md_apply_fix): Adjust and clarify R_SH_PCRELIMM8BY4 case for changes in insert and md_pcrel_from. Add cases for R_SH_PCDISP and R_SH_PCDISP8BY2. (md_pcrel_from): Don't subtract 1, add 2. (tc_coff_fix2rtype): Remove. (sh_coff_reloc_mangle): New function. * config/tc-sh.h (TC_COFF_FIX2RTYPE): Just return fx_r_type. (sh_relax): Declare. (TC_COUNT_RELOC): If relaxing, count PC relative relocs. (TC_RELOC_MANGLE): Define. (sh_coff_reloc_mangle): Declare. (tc_coff_sizemachdep): Declare. * tc.h (md_convert_frag): Add segT parameter to non BFD_ASSEMBLER declaration. * write.c (cvt_frag_to_fill): Add sec argument to non BFD_ASSEMBLER version. Pass it to md_convert_frag. (write_object_file): Pass SEG_TEXT to cvs_frag_to_fill. * config/obj-coff.c (do_relocs_for): Pass segment info to TC_RELOC_MANGLE. (fixup_mdeps): Pass segment type to md_convert_frag. * config/tc-a29k.c (md_convert_frag): Add segT argument. * config/tc-h8300.c (md_convert_frag): Likewise. * config/tc-h8500.c (md_convert_frag): Likewise. * config/tc-i386.c (md_convert_frag): Likewise. * config/tc-i860.c (md_convert_frag): Likewise. * config/tc-i960.c (md_convert_frag): Likewise. * config/tc-m68k.c (md_convert_frag): Likewise. * config/tc-m88k.h (md_convert_frag): Likewise. * config/tc-ns32k.c (md_convert_frag): Likewise. * config/tc-rce.c (md_convert_frag): Likewise. * config/tc-tahoe.c (md_convert_frag): Likewise. * config/tc-vax.c (md_convert_frag): Likewise. * config/tc-w65.c (md_convert_frag): Likewise. * config/tc-z8k.c (md_convert_frag): Likewise. * config/tc-h8300.h (TC_RELOC_MANGLE): Add segment argument. * config/tc-h8500.h (TC_RELOC_MANGLE): Likewise. * config/tc-rce.h (TC_RELOC_MANGLE): Likewise. * config/tc-w65.h (TC_RELOC_MANGLE): Likewise. * config/tc-z8k.h (TC_RELOC_MANGLE): Likewise.
1995-07-18vms fixes from pat rankinKen Raeburn1-110/+84
1995-07-18 * gdbserver/low-hppabsd.c: New file.Jeff Law3-2/+10
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c. * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o (GDBSERVER_DEPFILES): Add low-hppabsd.o * config/hppaosf.mh: LIkewise. Needed this for the gdbserver framework development. Trying to avoid doing development work on lynx for the obvious reasons.
1995-07-18 * gdbserver/low-hppabsd.c: New file.Jeff Law3-0/+386
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c. * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o (GDBSERVER_DEPFILES): Add low-hppabsd.o * config/hppaosf.mh: LIkewise. Needed this for the gdbserver framework development. Trying to avoid doing development work on lynx for the obvious reasons.
1995-07-18 * dache.c (struct dcache_block): Change data member from unsigned charFred Fish15-26/+178
to char, since everything passed in and out of dcache is char or casted to appropriate type anyway. (dcache_alloc): Move assignment of db out of test and combine separate tests into if-else. (dcache_peek_byte): Change ptr from unsigned char* to char*. (dcache_peek_byte): Remove now unnecessary cast in read_memory call. (dcache_peek): Change cast of incoming data arg. (dcache_poke): Change cast of addr of incoming data arg. (dcache_info): Mask data passed to printf_filtered to lsbyte only. (dcache_info): Change printf_filtered arg from "% 2x" to " %2x". * target.c (debug_to_thread_alive): Change return type to int and return zero, for type compatibility with other *_thread_alive funcs. (cleanup_target): Change cast of ignore function to match type of the to_thread_alive member. * defs.h (error_hook): Add ATTR_NORETURN. * defs.h (NORETURN, ATTR_NORETURN): Switch from volatile to __attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug. * remote.c (remote_wait): Cast first arg to strtol, strchr, and strncmp to "const char *" from "unsigned char *". (remote_wait): Cast arg to putpkt and strcpy from "unsigned char *" to "char *". (remote_wait): Change printf format for long arg from "%d" to "%ld". (getpkt): Remove unused variable "bp". (remote_fetch_word, remote_store_word): Ifdef out apparently unused functions. * breakpoint.c (watchpoint_check): Removed unused variables "saved_level" and "saved_frame". * valops.c (value_arg_coerce): Add other enum TYPE_CODE_* and default cases to switch for completeness. * infrun.c (wait_for_inferior): Enclose "have_waited" label in #ifdef that matches the one in which it is referenced. * ser-unix.c (hardwire_noflush_set_tty_state): Enclose otherwise unused variable "state" in #ifdef that matches one in which it is referenced. * eval.c (evaluate_subexp_standard): Remove unused variable "var". * eval.c (evaluate_subexp_standard): Remove unused variable "tmp_symbol". * valarith.c (value_subscript): Remove unused variable "lowerbound", which is redeclared in a nested scope prior to use. * printcmd.c (print_frame_nameless_args): Use "%ld" to print long arg, not "%d". * {mem-break.c, remote-pa.c, remote.c, saber.suppress}: Remove unused static var "check_break_insn_size". * buildsym.c (finish_block): Add other enum LOC_* and default cases to switch for completeness. ch-lang.c (type_lower_upper): Removed unused label "retry". Add other enum TYPE_* and default cases to switch for completeness. * f-typeprint.c (f_type_print_args): Ifdef out unused function that may be used someday when Fortran support is complete. * ch-valprint.c (chill_print_type_scalar): Add other enum TYPE_* and default cases to switch for completeness. (chill_val_print): Remove unused local var "high_bound" that is redeclared in a nested scope prior to use. (chill_var_print): Use "%ld" to print long arg, not "%d". * regex.c (re_compile_fastmap, re_match_2): Add remaining enum types and default to switches for completeness. * minsyms.c (lookup_minimal_symbol_text): Delete unused variable "trampoline_symbol". (prim_record_minimal_symbol_and_info): Return NULL rather than trash. * elfread.c (elf_symtab_read): Don't dereference NULL returns from record_minimal_symbol_and_info. * f-lang.c (saved_function_list_end): Ifdef out unused variable that may be used someday. * f-valprint.c (f_val_print): Remove unused local variable "straddr".
1995-07-17 * ldwrite.c (split_sections): Don't split the first input sectionIan Lance Taylor2-9/+51
into a new output section.
1995-07-17 * stabsread.h (struct stab_section_list): Define.Ian Lance Taylor4-9/+61
(coffstab_build_psymtabs): Remove staboff and stabsize parameters. Add textaddr, textsize, and stabs parameters. * gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field. Add text_addr and text_size fields. (DBX_TEXT_SECT): Don't define. (DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define. * coffread.c: Include <ctype.h>. (struct coff_symfile_info): Remove stabsect and stabindexsect fields. Add textaddr, textsize, and stabsects fields. (coff_locate_sections): Record the address of the .text section, and total the sizes of all sections with names beginning with ".text". Don't bother to record a .stab.index section (COFF doesn't use them). Make a linked list of all sections with names beginning with ".stab". (coff_symfile_read): Adjust call to coffstab_build_psymtabs for new parameters. * dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. (elfstab_build_psymtabs): Likewise. (stabsect_build_psymtabs): Likewise. (symbuf_sections, symbuf_left, symbuf_read): New static variables. (fill_symbuf): If symbuf_sections is not NULL, read symbols from multiple sections. (coffstab_build_psymtabs): Remove staboffset and stabsize parameters. Add textaddr, textsize, and stabsects parameters. Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. Handle multiple stabs sections. * os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT. (os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. PR 7241.
1995-07-17 * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_aliveIan Lance Taylor2-1/+7
field.
1995-07-17 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeoutJeff Law1-5/+5
cases.
1995-07-15 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New filesPeter Schauer1-0/+2
for OSF/1-3.x procfs support.
1995-07-15 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New filesPeter Schauer4-3/+15
for OSF/1-3.x procfs support. * configure.in (alpha-dec-osf): Use them when configuring for OSF/1-3.x. * configure: Updated. * target.c: Include <string.h>.
1995-07-15Use elf config file.Michael Meissner1-0/+5
1995-07-15Allow compiler to mark relocs that are ok for -mrelocatable.Michael Meissner1-0/+10
1995-07-15 Add support for SPARC SunOS PIC:Ian Lance Taylor1-0/+20
* config/tc-sparc.h (sparc_pic_code): Always declare, not just when OBJ_ELF. (TC_RELOC_RTSYM_LOC_FIXUP): Define when OBJ_AOUT. (tc_fix_adjustable): New definition for OBJ_AOUT. * config/tc-sparc.c (sparc_pic_code): Always define, not just when OBJ_ELF. (md_apply_fix): Adjust reloc addend for OBJ_AOUT and PIC. In BFD_RELOC_32_PCREL_S2 case, don't increment val for an external symbol when PIC. (tc_gen_reloc): Generate different PIC relocs when OBJ_AOUT, as well as when OBJ_ELF. (md_shortopts): If OBJ_AOUT, include `k'. (md_parse_option): If OBJ_AOUT, handle 'k'. (md_show_usage): Mention -k if OBJ_AOUT, and -KPIC if OBJ_ELF. (md_pcrel_from): Don't add in size for an external symbol when PIC.
1995-07-14 * aoutx.h (KEEPIT): Change definition to udata.i.Ian Lance Taylor1-0/+11
(KEEPITTYPE): Remove. (NAME(aout,reloc_type_lookup)): Add cases to the extended reloc type switch: SPARC_GOT10, SPARC_GOT13, SPARC_GOT22, SPARC_PC10, SPARC_PC22, SPARC_WPLT30. (NAME(aout,swap_std_reloc_out)): Don't bother to use stoi when retrieving KEEPIT value. (NAME(aout,swap_ext_reloc_out)): Likewise. Also, only add in output section VMA for section symbols, and check BSF_SECTION_SYM to control whether to set r_extern to 1.
1995-07-14* Makefile.in, configure.in: Use one variable, frags, to holdJ.T. Conklin3-34/+39
pathnames of makefile fragments. * configure: regenerated.
1995-07-14* sysdump.c (dh): Changed format of output to be 16 hex digitsJ.T. Conklin2-8/+7
followed by 16 ascii characters, similar to Emacs' hexl-mode, to make it easier to read.