aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-11-09Fix badly placed #if 0...Nick Clifton5-8/+15
2001-11-092001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller4-18/+78
* p-lang.c (is_pascal_string_type): New function to determine if a type is a string type. * p-lang.h: Add prototype for is_pascal_string_type. * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function to display strings nicely.
2001-11-092001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller2-10/+49
* p-exp.y (yylex): Only change case of expression if symbol is found. Also check for GPC standard name form.
2001-11-09A simple script to indent GDB source code.Andrew Cagney2-0/+66
2001-11-09* configure.in (--enable-languages): Be more permissive aboutDJ Delorie2-3/+14
syntax. Check for empty lists better. Warn about $LANGUAGES.
2001-11-09*** empty log message ***gdbadmin1-1/+1
2001-11-08* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr andJim Blandy2-1/+6
got_load_len, to placate compiler.
2001-11-08daily updateAlan Modra1-1/+1
2001-11-08* i386-tdep.c (i386_gdbarch_init): Fix typo.Mark Kettenis2-1/+5
2001-11-08 * config/tc-mips.c (mips_force_relocation): Remove duplicate code.Thiemo Seufer2-7/+4
2001-11-082001-11-07 Michael Snyder <msnyder@redhat.com>Michael Snyder2-12/+15
* gdb.c++/templates.exp: Replace "const &" with "const ?&", making the whitespace optional. Also replace "(void) with "((void|)), making the keyword "void" optional.
2001-11-08* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, notJim Blandy2-1/+4
file_frame_chain_valid.
2001-11-082001-11-07 Michael Snyder <msnyder@redhat.com>Michael Snyder2-90/+93
* gdb.c++/virtfunc.exp: Replace "const &" with "const ?&", making the whitespace optional. Also replace "(void) with "((void|)), making the keyword "void" optional.
2001-11-082001-11-07 Michael Snyder <msnyder@redhat.com>Michael Snyder3-14/+22
* gdb.base/callfuncs.c (t_float_values): This function must _not_ be prototyped, and the following function (t_float_values2) must be prototyped (if the compiler supports it), so that GDB can be tested against both cases. Usually one case involves promotion of float to double, while the other does not. * gdb.base/callfwmall.c: Ditto.
2001-11-082001-11-07 Michael Snyder <msnyder@redhat.com>Michael Snyder2-2/+11
* gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that includes a stack frame for "start".
2001-11-08* s390-tdep.c (s390_get_frame_info): If the prologue loads r12Jim Blandy2-4/+38
from the constant pool, but doesn't add in the constant pool's address to it, then this function probably isn't using r12 as a GOT pointer, and that load probably wasn't part of the prologue.
2001-11-08* s390-tdep.c (s390_gdbarch_init): Use the defaultJim Blandy2-3/+6
prepare_to_proceed function established by config/nm-linux.h; don't try to set it to linuxthreads_prepare_to_proceed.
2001-11-08* elf32-s390: Major rework that introduces all recent changes toMartin Schwidefsky3-1742/+2314
the s390 backends. Get a closer match to elf32-i386. (elf_s390_relocate_section): Make use of dynamic section short-cuts. Localise vars, and delay setting. Better error reporting, replace BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the regular object file and tread the weak definition as the normal one. Don't discard relocs for undefweak or undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy relocs. Reinstate fudge for unresolved relocs in debugging sections. (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy reloc processing for weakdefs. Remove redundant casts and aborts. Delay setting of vars until needed. Move creation of dynamic symbols and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace BFD_ASSERT with abort. Discard .plt entries for everything with plt.refcount <= 0. (elf_s390_check_relocs): Don't allocate space for dynamic relocs, .got or .relgot here but do it in allocate_dynrelocs. Reference count possible .plt and .got entries. Don't test input section SEC_READONLY here to try to avoid copy relocs, and keep dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of variables until needed. Remove separate switch stmt for creating .got section. Initialise local_got_refcounts to 0. Cache pointer to "sreloc" section in elf_section_data. Tweak condition under which .got created. Report files with bad relocation section names. (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that have been forced local. Use same test to decide if we can use a relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF comment. Move expressions out of function calls. Replace BFD_ASSERT with abort. (elf_s390_finish_dynamic_sections): Migrate common code out of switch statement. Replace BFD_ASSERT with abort. (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i" to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag instead of looking up section names for DT_TEXTREL. Replace BFD_ASSERT with abort. Zero out the dynamic allocated content space. Add a comment to remind us that one day this ought to be fixed. (struct elf_s390_link_hash_entry): Rename "root" to "elf". (struct elf_s390_link_hash_table): Likewise. (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get rid of unnecessary casts. (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields. Remove "section" field. (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. Reference count possible .plt entries. Don't deallocate .got and .relgot space here. (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs. Update comment. (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to dyn_relocs. (elf_s390_discard_copies): Delete. (elf_s390_link_hash_traverse): Delete. (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link rather than gc variety). (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields. (elf_s390_link_hash_table_create): Init them. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define. (allocate_dynrelocs): New function. (create_got_section): New function. (elf_backend_can_refcount): Define. (elf_backend_copy_indirect_symbol): Define. (elf_s390_copy_indirect_symbol): New function. (elf_s390_create_dynamic_sections): New function. (readonly_dynrelocs): New function. * elf64-s390x: Likewise.
2001-11-08Enable multi-arch for i386.Andrew Cagney4-1/+93
2001-11-08Don't update ``set architecture'' when ``set disassembly-flavor[sic]''Andrew Cagney2-32/+5
2001-11-082001-10-30 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-871/+0
* dbxread.c (set_namestring): New function, replacing the SET_NAMESTRING macro. (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete definitions. (read_dbx_symtab): Don't include partial-stab.h any more. Don't reuse code in partial-stab.h, include the code directly, instead. * Makefile.in (dbxread.o): Remove dependency on partial-stab.h. (HFILES_NO_SRCDIR): Remove partial-stab.h. * partial-stab.h: Remove file.
2001-11-082001-11-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni3-36/+855
* dbxread.c (set_namestring): New function, replacing the SET_NAMESTRING macro. (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete definitions. (read_dbx_symtab): Don't include partial-stab.h any more. Don't reuse code in partial-stab.h, include the code directly, instead. * Makefile.in (dbxread.o): Remove dependency on partial-stab.h. (HFILES_NO_SRCDIR): Remove partial-stab.h.
2001-11-08Whoops, forgot to commit this yesterday:Elena Zannoni1-1/+1
2001-11-06 Elena Zannoni <ezannoni@redhat.com> * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions. (parse_partial_symbols): Don't include partial-stab.h any more. Don't reuse code in partial-stab.h, include the code directly, instead. Simplify code from partial-stab.h eliminating ifdef DBXREAD_ONLY code. * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-08When non-multi-arch, use predefault as the value of a pure-multi-archAndrew Cagney3-2/+22
method.
2001-11-08* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define inMark Kettenis2-1/+7
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of hardcoding the register number.
2001-11-08*** empty log message ***gdbadmin1-1/+1
2001-11-07daily updateAlan Modra1-1/+1
2001-11-07gdbarch.sh provides default for USE_STRUCT_CONVENTION.Andrew Cagney5-9/+16
2001-11-07 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.Jakub Jelinek11-73/+788
(BFD32_BACKENDS_CFILES): Add elf-strtab.c. (elf-strtab.lo): Add rule. * Makefile.in: Rebuilt. * configure.in (elf): Add elf-strtab.lo. * configure: Rebuilt. * elf-bfd.h (elf_strtab_hash): Forward declare. (struct elf_link_hash_table): Change dynstr type to struct elf_strtab_hash *. (struct elf_obj_tdata): Change strtab_ptr type to struct elf_strtab_hash *. (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add, _bfd_elf_strtab_addref, _bfd_elf_strtab_delref, _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size, _bfd_elf_strtab_offset, _bfd_elf_strtab_emit, _bfd_elf_strtab_finalize): New prototypes. * elf-strtab.c: New file. * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add and _bfd_elf_strtab_size instead of _bfd_stringtab calls. Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or when forcing dynamic symbol to local. (elf_link_create_dynamic_sections): Call _bfd_elf_strtab_init instead of elf_stringtab_init. (elf_link_record_local_dynamic_symbol): Likewise, change dynstr type. Use _bfd_elf_strtab functions instead of _bfd_stringtab calls. (size_dynamic_sections): Use _bfd_elf_strtab functions instead of _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields, call _bfd_elf_strtab_addref. Call elf_finalize_dynstr. (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions. (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing dynamic symbol to local. (elf_link_assign_sym_version): Likewise. (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of _bfd_stringtab_emit. * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr type. Call _bfd_elf_strtab functions instead of _bfd_stringtab functions. * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise. * elf.c (_bfd_elf_init_reloc_shdr): Likewise. (elf_fake_sections): Likewise. (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs on shstrtab hash table, call _bfd_elf_strtab_addref on each section name in the output. Call _bfd_elf_strtab_finalize and use _bfd_elf_strtab_offset to finalize sh_name section header fields. (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size instead of _bfd_stringtab_size. (prep_headers): Change shstrtab type. Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
2001-11-07 * readelf.c (debug_str, debug_str_size): New.Jakub Jelinek2-1/+57
(display_debug_abbrev): If no abbrevs were read, skip the CU. Call free_abbrevs. (read_and_display_addr): Handle DW_FORM_strp. (display_debug_info): Read .debug_str section if present, so that DW_FORM_strp can be handled. Fix test for non-existant .debug_abbrev section.
2001-11-07gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.Andrew Cagney3-2/+7
2001-11-07 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): FixAlan Modra2-19/+27
bad symtab segfault. Formatting and warning fixes. Improve error message for internationalisation.
2001-11-07*** empty log message ***gdbadmin1-1/+1
2001-11-06 2001-11-06 Fred Fish <fnf@redhat.com>Fred Fish13-31/+15
* complaints.c (info_verbose): Remove unneeded decl, is in defs.h. * dbxread.c: Ditto * dwarf2read.c: Ditto. * dwarfread.c: Ditto. * exec.c: Ditto. * hpread.c: Ditto. * hpread.h: Ditto. * mdebugread.c: Ditto. * os9kread.c: Ditto. * stack.c: Ditto. * symfile.c: Ditto. * tracepoint.c: Ditto.
2001-11-06daily updateAlan Modra1-1/+1
2001-11-06* MAINTAINERS: Update Andrew Cagney's responsibilities. MentionAndrew Cagney2-8/+12
David Taylor and Nick Duffek in past maintainers.
2001-11-062001-11-06 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni3-12/+555
* mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions. (parse_partial_symbols): Don't include partial-stab.h any more. Don't reuse code in partial-stab.h, include the code directly, instead. Simplify code from partial-stab.h eliminating ifdef DBXREAD_ONLY code. * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-06* s390-nat.c: #include "regcache.h", to get declaration forJim Blandy2-0/+5
`supply_register'. (The last change already added the dependency of s390-nat.o on regcache.h. Oops.)
2001-11-06* Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.Jim Blandy2-0/+10
(s390-tdep.o, s390-nat.o): New rules.
2001-11-062001-11-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>Eric Christopher2-15/+19
* config/tc-mips.c (my_getSmallParser): Fix small parser bug.
2001-11-06Fix typo.Jim Blandy1-1/+1
2001-11-06* gdb/s390-nat.c (s390_register_u_addr): Pass proper arguments toJim Blandy2-4/+10
internal_error.
2001-11-06gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.Andrew Cagney3-2/+7
2001-11-06Zap another #ifdef INIT_EXTRA_FRAME_INFOAndrew Cagney2-3/+7
2001-11-06Add predicate for PUSH_RETURN_ADDRESS.Andrew Cagney5-17/+54
2001-11-062001-11-06 H.J. Lu (hjl@gnu.org)H.J. Lu2-20/+92
* elflink.h (elf_link_input_bfd): Complain relocs against discarded sections.
2001-11-06 * arch-utils.c (generic_in_function_epilogue_p): New function.Corinna Vinschen7-0/+76
* arch-utils.h (generic_in_function_epilogue_p): Declare extern. * breakpoint.c (watchpoint_check): Add test whether the pc is currently in the epilogue of a function. * gdbarch.c: Autogenerated from gdbarch.sh. * gdbarch.h: Ditto. * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
2001-11-06 * gdb.texinfo (gdbarch_in_function_epilogue_p): Add documentation.Corinna Vinschen2-0/+11
2001-11-06 * Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0.Hans-Peter Nilsson2-1/+9
2001-11-06* gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes thatJim Blandy3-60/+9
pointers are 32 bits long, and that offsets of relocs are always stored in the data (REL-style), and not in the reloc entry itself (RELA-style). * gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and stabs.