aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-03-24 * valops.c (value_at, value_at_lazy): Give error if we dereferenceJim Kingdon3-8/+22
a pointer to void. * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID. * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1994-03-24 * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.Jeff Law2-2/+30
(som_bfd_ar_write_symbol_stuff, som_write_armap): Likewise.
1994-03-24(NM_FOR_TARGET): Build tree version is now nm.new.David Edelsohn1-0/+8
1994-03-24 * stabsread.c (patch_block_stabs): Add comment about what happensJim Kingdon2-10/+9
if the definition is in another compilation unit from the stab.
1994-03-24 * TODO: Add suggestions for static member function tests, andJim Kingdon1-0/+7
completion tests.
1994-03-24Update for Things-to-lose and lose_these_too.Jim Kingdon1-6/+7
1994-03-24 * stabs.texinfo (Global Variables): Talk about stabs in filesJim Kingdon2-0/+10
where variables are referenced, but not defined.
1994-03-24 * stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUTJim Kingdon2-0/+13
symbols. Reverts change of 2 Apr 1993.
1994-03-24* dbxread.c (end_psymtab): Add comment about empty psymtabs.Jim Kingdon2-22/+204
1994-03-24 * main.c (complete_command): New command, from Rick SladkeyJim Kingdon3-6/+50
<jrs@world.std.com>. (symbol_completion_function): Don't declare rl_point and rl_line_buffer; they are now declared in readline.h. (show_commands): Don't declare history_base; it is declared in history.h. * command.c (lookup_cmd): Don't delete trailing whitespace.
1994-03-24 * minsyms.c (prim_record_minimal_symbol): Move section deductionStu Grossman1-21/+23
code from prim_record_minimal_symbol_and_info() to here. Callers of the latter can legitimately supply a section number of -1.
1994-03-23Updated list of keep-* options.Stan Shebs1-2/+8
1994-03-23 * netbsd386.c (N_SET_FLAGS): Delete the old definition.David MacKenzie1-2/+0
1994-03-23MPW config stuff for GDB.Stan Shebs2-2/+113
1994-03-23Thu Mar 10 15:51:40 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs3-0/+69
* mpw-xconfig.in: New file, mips-targeting config fragment. * mpw-init.c: New file, MPW x mips version of init.c.
1994-03-23Sanitization for MPW and GM additions.Stan Shebs1-2/+55
1994-03-23Thu Mar 10 15:49:05 1994 Stan Shebs (shebs@andros.cygnus.com)Stan Shebs4-0/+1824
* mpw-config.in: New file, MPW configuration fragment. * mpw-make.in: New file, MPW makefile fragment. * config/m68k/xm-mpw.h: New file, MPW host definitions. * ser-mac.c: New file, Mac serial interface.
1994-03-23Simplification of GM-specific config bits.Stan Shebs2-23/+18
1994-03-23 Clean up the relaxing code for the new linker.Ian Lance Taylor1-0/+56
* targets.c (_bfd_relax_section): Take boolean *again argument rather than asymbol list. * bfd.c (bfd_relax_section): Change name of fourth argument from symbols to again. * reloc.c (bfd_generic_relax_section): Take boolean *again argument rather than asymbol list. Always return true. * bout.c: Include genlink.h. (aligncode, perform_slip): Declare. (perform_slip): Take BFD argument rather than asymbol list. Changed all callers. Get the symbols from the BFD. Change the hash table entry value as well as the symbol value. (abs32code): Take BFD argument rather than asymbol list. Changed all callers. (aligncode): Likewise. (b_out_relax_section): Take boolean *again argument rather than asymbol list. Only return false if an error occurred. Set *again to false. Get symbols from BFD. * reloc16.c: Include genlink.h. (bfd_perform_slip): Take BFD argument rather than asymbol list. Get the symbols from the BFD. Change the hash table entry value as well as the symbol value. (bfd_coff_reloc16_relax_section): Take boolean *again argument rather than asymbol list. Only return false if an error occurred. Set *again to false. Get symbols from BFD. * coffcode.h (bfd_coff_backend_data): Change _bfd_coff_reloc16_estimate to take BFD argument rather than asymbol list. (bfd_coff_reloc16_estimate): Corresponding change. (dummy_reloc16_estimate): Corresponding change. * libcoff-in.h (bfd_coff_reloc16_relax_section): Change declaration to take boolean * rather than asymbol list. (bfd_perform_slip): Change declaration to take BFD rather than asymbol list. * coff-h8300.c (h300_reloc16_estimate): Take BFD argument rather than asymbol list. Changed calls to bfd_perform_slip. * bfd-in2.h: Rebuilt. * libbfd.h: Rebuilt. * libcoff.h: Rebuilt. * Makefile.in: Rebuilt dependencies.
1994-03-23 * emultemp/gld960.em: Include libiberty.hIan Lance Taylor1-0/+5
(gld960_before_parse): Pass NULL as final argument to concat.
1994-03-23 * gdbtypes.h, gdbtypes.c: Add comments regarding whether staticJim Kingdon3-1/+9
member functions have an element in args for a (nonexistent) this pointer.
1994-03-23 * stabs.texinfo: Move stuff on @ and # type descriptors from nodeJim Kingdon2-28/+49
Cplusplus to new nodes Member Type Descriptor and Method Type Descriptor. Re-write stuff for #.
1994-03-23 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.Jeff Law3-0/+10
* hppa-tdep.c (hppa_pop_frame): Do not restore the PC space queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1994-03-23 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argumentJeff Law3-5/+23
for the structure's type. All callers changed. * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR for each structure argument rather than assuming it's either true or false for all structure arguments. * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only on the length structure passed, not the compiler used. * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional argument for the structure's type.
1994-03-23Handle .gpword and .cpadd only for SVR4_PIC, not != NO_PIC. StillIan Lance Taylor1-2/+2
covered by last ChangeLog entry.
1994-03-23 * values.c (set_internalvar): Don't set var->value until we areJim Kingdon2-5/+20
sure there won't be an error().
1994-03-22 * scripttempl/aout.sc: Force _end and __end to be aligned to aIan Lance Taylor1-0/+3
four byte boundary.
1994-03-22 * remote.c (get_offsets): Reinstate comment which was inJim Kingdon1-0/+22
remote_wait about use of SECT_OFF_TEXT and so on.
1994-03-22 * config/tc-mips.c (enum mips_pic_level): New enum.Ian Lance Taylor2-124/+340
(mips_pic): Change from int to enum mips_pic_level. Change all uses (0 becomes NO_PIC, 2 becomes SVR4_PIC). (load_address): Handle EMBEDDED_PIC. (macro): Handle EMBEDDED_PIC in all PIC cases. (md_parse_option): Accept -membedded-pic to use EMBEDDED_PIC. If OBJ_ELF, accept -KPIC and -call_shared to use SVR4_PIC and accept -non_shared to use NO_PIC (this is how the Irix 5 assembler works). Do not permit -G with SVR4_PIC. (s_abicalls): Warn if -G was used, and force -G 0. (tc_gen_reloc): Set reloc->addend to 0 for a PC relative reloc for anything but a.out, not just for ELF. For ECOFF, don't generate a BFD_RELOC_16_PCREL_S2 reloc unless using EMBEDDED_PIC.
1994-03-22 * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16Ian Lance Taylor1-0/+6
reloc, used in embedded PIC code. (mips_adjust_reloc_in): Change sanity check to permit new reloc. (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into MIPS_R_PCREL16.
1994-03-22 * config/obj-ecoff.h (obj_sec_sym_ok_for_reloc): Define to be 1.Ian Lance Taylor1-0/+10
1994-03-22 * gprof.c (funcsymbol): Use bfd_get_symbol_info instead ofJeff Law2-2/+10
bfd_decode_symclass.
1994-03-22 * linker.c (_bfd_generic_final_link): Set reloc_count to 0 beforeIan Lance Taylor3-27/+142
counting relocs. Set SEC_RELOC flag for any section which has relocs. * linker.c (_bfd_default_link_order): Handle bfd_data_link_order. * linker.c (_bfd_generic_link_add_symbols): Just call generic_link_add_symbols. (_bfd_generic_link_add_symbols_collect): New function, like _bfd_generic_link_add_symbols but also collect constructors and destructors by name as collect2 does. (generic_link_add_symbols): New function, like old _bfd_generic_link_add_symbols but with collect argument. (generic_link_add_object_symbols): Take collect argument. (generic_link_check_archive_element_no_collect): New function. (generic_link_check_archive_element_collect): New function. (generic_link_check_archive_element): Take collect argument. (generic_link_add_symbol_list): Take collect argument. (_bfd_generic_link_add_one_symbol): Rename constructor argument to collect. * libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare. * libbfd.h: Rebuilt.
1994-03-22 * ldwrite.c (build_link_order): Handle lang_data_statement_enum byIan Lance Taylor1-0/+6
building a bfd_data_link_order, rather than by setting the section contents immediately.
1994-03-22 * archive.c (bfd_construct_extended_name_table): Use ar_padcharJeff Law1-0/+8
for first character in an extended name. (_bfd_write_archive_contents): If ar_padchar == '/', then use "//" as the name of the special archive member holding the extended name table.
1994-03-22 Support for link_order types which generate relocs in order toIan Lance Taylor5-56/+319
support -Ur in the linker. * linker.c (generic_link_add_symbol_list): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (_bfd_generic_link_add_one_symbol): Remove bitsize argument. Don't pass bitsize to constructor call back. Pass BFD_RELOC_CTOR instead of bitsize to add_to_set call back. (_bfd_generic_final_link): Account for link_order relocs when allocating space for relocations. Handle them in link_order loop. (_bfd_generic_reloc_link_order): New function. (_bfd_default_link_order): If a reloc_link_order is seen here, abort. (_bfd_count_link_order_relocs): New function. * libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize argument from declaration. (_bfd_generic_reloc_link_order): Declare. (_bfd_count_link_order_relocs): Declare. * libbfd.h: Rebuilt. * aoutx.h (aout_link_add_symbols): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (NAME(aout,final_link)): Account for link_order relocs when allocating space for relocations. Handle them after handling all input BFDs. (aout_link_reloc_link_order): New function. * ecoff.c (ecoff_link_add_externals): Remove bitsize argument from call to _bfd_generic_link_add_one_symbol. (ecoff_bfd_final_link): Account for link_order relocs when allocating space for relocations. Handle them in link_order loop. (ecoff_link_write_external): Set the storage class of a defined linker created symbol based on the section it is in. Correct bfd_link_hash_weak case to use .sc rather than .st. (ecoff_reloc_link_order): New function. * coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR. * coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.
1994-03-22 Changes to make -Ur work again.Ian Lance Taylor3-6/+208
* ldmain.c (add_to_set): Now takes reloc argument rather than bitsize. Check config.build_constructors here. If an new hash table entry is created, mark it as undefined. (constructor_callback): No longer takes bitsize argument. Pass BFD_RELOC_CTOR to ldctor_add_set_entry, but first make sure the BFD backend supports it. (reloc_overflow): Handle a NULL abfd argument. (reloc_dangerous, unattached_reloc): Likewise. * ldctor.c: Include ldmain.h. (struct set_info): Change bitsize field to reloc. (ldctor_add_set_entry): Now takes reloc argument rather than bitsize. Don't bother to check config.build_constructors here. (ldctor_build_sets): Get the size from the reloc howto. If generating relocateable output, call lang_add_reloc rather than lang_add_data. * ldctor.h (ldctor_add_set_entry): Change declaration to use reloc instead of bitsize. * ldlang.h (statement_enum): Add lang_reloc_statement_enum. (lang_reloc_statement_type): New structure. (lang_statement_union_type): Add reloc_statement field. (lang_add_reloc): Declare new function. * ldlang.c (lang_for_each_statement_worker): Handle lang_reloc_statement_enum. (map_input_to_output_sections, print_statement): Likewise. (lang_size_sections, lang_do_assignments): Likewise. (print_reloc_statement): New function. (lang_add_reloc): New function. * ldwrite.c (build_link_order): Handle lang_reloc_statement_enum.
1994-03-22 * bfdlink.h (struct bfd_link_callbacks): Change bitsize argumentIan Lance Taylor2-0/+410
to add_to_set to reloc. Remove bitsize argument from constructor. Comment that reloc_overflow, reloc_dangerous and unattached_reloc must handle NULL pointers for reloc location. (enum bfd_link_order_type): Add bfd_section_reloc_link_order and bfd_symbol_reloc_link_order. (struct bfd_link_order): Add reloc field to union. (struct bfd_link_order_reloc): Define.
1994-03-21 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,Peter Schauer7-8/+12
config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo. * config/i386/tm-symmetry.h: Make comment inside #if 0 a real comment. * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument to write_memory to avoid warnings from gcc. * config/i386/xm-symmetry.h: Add missing #endif. * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix. * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o. * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1994-03-21 * symmisc.c (maintenance_check_symtabs): New function to checkPeter Schauer1-1/+5
consistency of psymtabs and symtabs. * symtab.h (maintenance_check_symtabs): Add prototype. * maint.c: Add new `maint check-symtabs' command.
1994-03-21Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)Stu Grossman6-236/+450
* alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to improve remote debugging efficiency. Also fixed problems with doing function calls for programs with no entry points. * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of entry_point_address. * inferior.h (PC_IN_CALL_DUMMY): ditto. * mdebugread.c (parse_symbol, parse_procedure, parse_external, parse_lines): Pass section_offsets info to these routines so that we can relocate symbol table entries upon readin. * (psymtab_to_symtab_1): Set symtab->primary to tell objfile_relocate to do relocations for our symbols. * (ecoff_relocate_efi): New routine to relocate adr field of PDRs (which hang off of the symbol table). * Use prim_record_minimal_symbols_and_info instead of prim_record_minimal_symbols to supply section info to make minimal symbol relocations work. * minsyms.c (prim_record_minimal_symbols_and_info): If section is -1, try to deduce it from ms_type. * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where appropriate. Handle relocation of MIPS_EFI symbols special. Also, add code to relocate objfile->sections data structure. * remote.c (get_offsets): Use new protocol message to acquire section offsets from the target. * (remote_wait): Get rid of relocation stuff. That's all handled by objfile_relocate now. * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h. * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and VM_MIN_ADDRESS. * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1994-03-21 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.Jeff Law2-2/+7
(hppa_push_arguments): Likewise.
1994-03-21 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) toStu Grossman2-1/+11
improve remote debugging efficiency. Also fixed problems with doing function calls for programs with no entry points. * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of entry_point_address. * inferior.h (PC_IN_CALL_DUMMY): ditto. * mdebugread.c (parse_symbol, parse_procedure, parse_external, parse_lines): Pass section_offsets info to these routines so that we can relocate symbol table entries upon readin. * (psymtab_to_symtab_1): Set symtab->primary to tell objfile_relocate to do relocations for our symbols. * (ecoff_relocate_efi): New routine to relocate adr field of PDRs (which hang off of the symbol table). * Use prim_record_minimal_symbols_and_info instead of prim_record_minimal_symbols to supply section info to make minimal symbol relocations work. * minsyms.c (prim_record_minimal_symbols_and_info): If section is -1, try to deduce it from ms_type. * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where appropriate. Handle relocation of MIPS_EFI symbols special. Also, add code to relocate objfile->sections data structure. * remote.c (get_offsets): Use new protocol message to acquire section offsets from the target. * (remote_wait): Get rid of relocation stuff. That's all handled by objfile_relocate now. * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h. * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and VM_MIN_ADDRESS. * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1994-03-21 * objdump.c (objdump_print_address): Make static. Declare withIan Lance Taylor1-0/+7
prototype. Change vardiff from int to bfd_signed_vma. Correct binary search termination condition. When looking for same section symbol in relocatable file, handle final symbol correctly.
1994-03-21 * bfd/som.c (som_begin_writing): Fix thinko (off by one error).Jeff Law1-0/+2
1994-03-21 * som.c (bfd_section_from_som_symbol): Only to do the valueJeff Law2-4/+12
comparison for function symbols within executables.
1994-03-20* config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.David Edelsohn1-0/+5
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function. * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles). (TARGET_PTR_BIT): Must be a constant now, fix at 64.
1994-03-20 * Makefile.in: Avoid bug in hpux sed.Jeff Law4-2/+8
1994-03-20(FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles).David Edelsohn1-11/+12
(TARGET_PTR_BIT): Must be a constant now, fix at 64.
1994-03-20(SIMFILES): Use remote-sim.o instead of remote-sp64sim.o.David Edelsohn1-1/+4
(TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.