aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-12-14Initialise the disassembler_options field (to NULL).Nick Clifton2-0/+6
2001-12-14 * config/obj-elf.c (obj_elf_init_stab_section): References areAlan Modra2-1/+6
kept to section name strings. Don't alloca them!
2001-12-14 * ldmain.c (main): Initialise link_info.eh_frame_hdr.Alan Modra2-0/+5
2001-12-14 * config/djgpp/fnchange.lst: Add entries for opcodes/xstormy16-* files.Corinna Vinschen2-0/+11
2001-12-14 * elflink.h (elf_bfd_discard_info): Fix segfault when dynobj NULL.Alan Modra2-2/+8
2001-12-14add myself to the write after approval list.Matthew Green1-0/+1
2001-12-14* support sim-fpu.c for correct FP emulation.Matthew Green16-122/+228
* Makefile.in (LIB_OBJ): Add @sim_fpu@. (ICACHE_CFLAGS, SEMANTICS_CFLAGS): New variables. (icache.o, semantics.o): Add new ICACHE_FLAGS & SEMANTICS_FLAGS. (sim-fpu.o, sim-bits.o, tconfig.h): New targets. * configure.in: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS. Add a check for sim/common/sim-fpu.c. Output sim_fpu and sim_fpu_cflags. * configure: Regenerate. * device.h (device_find_integer_array_property): Match function definition. * gen-icache.c (print_icache_internal_function_declaration): Rename INLINE_ICACHE to PSIM_INLINE_ICACHE. * gen-idecode.c (print_idecode_run_function_header): Rename INLINE_IDECODE to PSIM_INLINE_IDECODE. * gen-semantics.c (print_semantic_function_header): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. * gen-support.c (print_support_function_name): Rename INLINE_SUPPORT to PSIM_INLINE_SUPPORT. * igen.c (print_function_name): Also escape `(' and `)'. (gen_semantics_h): Rename EXTERN_SEMANTICS to PSIM_EXTERN_SEMANTICS. (gen_semantics_c): Likewise. Also output includes for "sim-fpu.h" * inline.h (INLINE_SIM_ENDIAN): Renamed INLINE_PSIM_ENDIAN. (EXTERN_SIM_ENDIAN): Renamed EXTERN_PSIM_ENDIAN. (STATIC_INLINE_SIM_ENDIAN): Renamed STATIC_INLINE_PSIM_ENDIAN. (INLINE_LOCALS): Renamed PSIM_INLINE_LOCALS. (EXTERN_SUPPORT): Renamed PSIM_EXTERN_SUPPORT. (INLINE_SUPPORT): Renamed PSIM_INLINE_SUPPORT. (EXTERN_SEMANTICS): Renamed PSIM_EXTERN_SEMANTICS. (INLINE_SEMANTICS): Renamed PSIM_INLINE_SEMANTICS. (EXTERN_IDECODE): Renamed PSIM_EXTERN_IDECODE. (INLINE_IDECODE): Renamed PSIM_INLINE_IDECODE. (EXTERN_ICACHE): Renamed PSIM_EXTERN_ICACHE. (INLINE_ICACHE): Renamed PSIM_INLINE_ICACHE. * options.c (options_inline): Fix names. * sim-endian-n.h: Change INLINE_SIM_ENDIAN to INLINE_PSIM_ENDIAN. * sim-endian.h: Likewise. * sim-main.h: New file. * std-config.h: Rename INLINE_LOCALS to PSIM_INLINE_LOCALS.
2001-12-14*** empty log message ***gdbadmin1-1/+1
2001-12-13 * configure.in (FLAGS_FOR_TARGET): Remove -nostdinc and -isystemThomas Fitzsimmons2-4/+19
options for i[3456]86-pc-linux* native builds.
2001-12-13Return typelength of register virtual type as size.Andrew Cagney2-1/+6
2001-12-13daily updateAlan Modra1-1/+1
2001-12-13gdb/ChangeLogJackie Smith Cashion4-8/+16
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * cli/cli-script.c (print_command_lines): Remove extra "if", "else", "while", and "end" from show user output. testsuite/ChangeLog 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * gdb.base/commands.exp (user_defined_command_test): Make "show user" test expect string more specific.
2001-12-13 * i387-nat.c (i387_fill_fxsave): Change type of ``val'' from charKevin Buettner2-2/+9
to short so that we don't memcpy() beyond the end of this buffer. Also, change shift value used in computing val to account for the fact that only eight bits are used.
2001-12-13 * gdb.asm/asm-source.exp: Add support for xstormy16.Corinna Vinschen5-19/+56
* gdb.asm/configure.in: Ditto. * gdb.asm/configure: Rebuild. * gdb.asm/xstormy16.inc: New file.
2001-12-13 * Makefile.in: Add support for xstormy16.Corinna Vinschen5-1/+1154
* configure.tgt: Ditto. * xstormy16-tdep.c: New file. * config/xstormy16/xstormy16.mt: New file.
2001-12-13 * elf-bfd.h (enum elf_link_info_type): New.Jakub Jelinek22-78/+1367
(struct bfd_elf_section_data): Remove stab_info and merge_info fields, add sec_info and sec_info_type. (struct elf_obj_tdata): Add eh_frame_hdr field. (_bfd_elf_discard_section_eh_frame): New prototype. (_bfd_elf_discard_section_eh_frame_hdr): Likewise. (_bfd_elf_eh_frame_section_offset): Likewise. (_bfd_elf_write_section_eh_frame): Likewise. (_bfd_elf_write_section_eh_frame_hdr): Likewise. * Makefile.am (BFD32_BACKENDS): Add elf-eh-frame.lo. (BFD32_BACKENDS_CFILES): Add elf-eh-frame.c. (elf-eh-frame.lo): New. * Makefile.in: Rebuilt. * configure.in (elf): Add elf-eh-frame.lo. * configure: Rebuilt. * elf.c (_bfd_elf_print_private_bfd_data): Support PT_GNU_EH_FRAME. (map_sections_to_segments): Create PT_GNU_EH_FRAME if requested. (get_program_header_size): Take into account PT_GNU_EH_FRAME segment. (_bfd_elf_rela_local_sym): Use sec_info_type and sec_info. (_bfd_elf_rel_local_sym): Likewise. (_bfd_elf_section_offset): Likewise. Call _bfd_elf_eh_frame_section_offset too. * elfxx-ia64.c (elfNN_ia64_relocate_section): Use sec_info_type and sec_info. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf-eh-frame.c: New file. * elflink.h (elf_link_add_object_symbols): Don't optimize SHF_MERGE .stab sections. Set sec_info_type, use sec_info instead of merge_info and stab_info. (elf_link_create_dynamic_sections): Create .eh_frame_hdr section if --eh-frame-hdr. (elf_bfd_final_link): Write .eh_frame_hdr section. (elf_link_sec_merge_syms): Use sec_info_type and sec_info. (elf_link_input_bfd): Likewise. Call _bfd_elf_write_section_eh_frame to write .eh_frame sections. (elf_bfd_discard_info): Add output_bfd argument. Call _bfd_elf_discard_section_eh_frame and _bfd_elf_discard_section_eh_frame_hdr. (elf_section_ignore_discarded_relocs): Use sec_info_type, not section names. * bfd-in.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Adjust prototypes. * bfd-in2.h (bfd_elf32_discard_info, bfd_elf64_discard_info): Likewise. * elf/common.h (PT_GNU_EH_FRAME): Define. * bfdlink.h (struct bfd_link_info): Add eh_frame_hdr field. * emultempl/elf32.em (finish): Supply output_bfd to bfd_elf*_discard_info. (OPTION_EH_FRAME_HDR): Define. (longopts): Add --eh-frame-hdr. (parse_args): Handle it. (list_options): Add --eh-frame-hdr to help. * emultempl/hppaelf.em (finish): Supply output_bfd to bfd_elf*_discard_info. * scripttempl/elf.sc (.eh_frame_hdr): Add. * readelf.c (get_segment_type): Support PT_GNU_EH_FRAME.
2001-12-13 * MAINTAINERS (write-after-approval): Add myself.Andreas Schwab2-0/+5
2001-12-13 * lexsup.c (parse_args): Don't pass shortopts to second call toAlan Modra2-10/+13
getopt functions. Restore optind rather than decrementing before second call. Remove errind as it now duplicates last_optind.
2001-12-13merge from gccDJ Delorie3-0/+13
2001-12-13*** empty log message ***gdbadmin1-1/+1
2001-12-12daily updateAlan Modra1-1/+1
2001-12-12 * syms.c (_bfd_generic_read_minisymbols): Early return forRichard Henderson2-0/+7
no symbols. Patch from FreeBSD folk; exact origin unknown.
2001-12-12* Makefile.in (c-exp.tab.o): Add missing dependencies.Jim Blandy2-1/+6
2001-12-12* Makefile.in (c_lang_h): New variable. Use it in dependencyJim Blandy2-9/+15
lists, instead of `c-lang.h' itself.
2001-12-12* config/tc-d10v.c (get_operands): Mark OPERAND_PLUS afterAlexandre Oliva2-2/+9
OPERAND_ATSIGN as O_absent.
2001-12-12Approved by Jim Blandy:Fred Fish14-22/+43
2001-12-11 Fred Fish <fnf@redhat.com> * c-typeprint.c (c_type_print_base): Use type flags access macros to test bits. * ch-typeprint.c (chill_type_print_base): Ditto. * ch-valprint.c (chill_val_print): Ditto. * d10v-tdep.c (d10v_pointer_to_address): Ditto. * dwarf2read.c (dwarf2_add_member_fn): Ditto. * dwarfread.c (read_structure_scope): Ditto. * gdbtypes.c (create_range_type): Dittol (create_set_type): Ditto. (check_typedef): Ditto. * jv-typeprint.c (java_type_print_base): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (read_cfront_member_functions): Ditto. (read_member_functions): Ditto. (cleanup_undefined_types): Ditto. * valprint.c (val_print): Ditto. * valops.c (hand_function_call): Remove is_prototyped variable and just use type flag test macro directly.
2001-12-12Approved by Jim Blandy:Fred Fish4-8/+74
2001-12-11 Fred Fish <fnf@redhat.com> * gdbtypes.c (print_bound_type): New function. (recursive_dump_type): Print type struct code values TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE, and TYPE_CODE_TEMPLATE_ARG. (recursive_dump_type): Print type struct members upper_bound_type, lower_bound_type, cv_type, and as_type. Also always print the tagname member, even when it is NULL. * testsuite/gdb.base/maint.exp: Update to match changes in type dumping code.
2001-12-12*** empty log message ***gdbadmin1-1/+1
2001-12-11daily updateAlan Modra1-1/+1
2001-12-112001-12-11 Michael Snyder <msnyder@redhat.com>Michael Snyder4-29/+12
* d10v-tdep.c (d10v_register_virtual_size): Delete. (d10v_gdbarch_init): Use generic_register_virtual_size. * rs6000-tdep.c (rs6000_register_virtual_size): Delete. (rs6000_gdbarch_init): Use generic_register_virtual_size. * x86-64-tdep.c (x86_64_register_virtual_size): Delete. (i386_gdbarch_init): Use generic_register_virtual_size.
2001-12-112001-12-10 Michael Snyder <msnyder@redhat.com>Michael Snyder5-2/+21
* arch-utils.c (generic_register_virtual_size): New function. * arch-utils.h: Export generic version of register_virtual_size. * gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default. * gdbarch.c: Regenerate.
2001-12-11Rearange code to supress -Wuninitialized error.Andrew Cagney2-4/+14
2001-12-11* emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.Christopher Faylor2-1/+14
2001-12-11merge from gccDJ Delorie3-54/+73
2001-12-11 * readelf.c (process_file_header): Print extended e_shnum andAlan Modra2-16/+50
e_shdtrndx values. Set elf_header values for same. (get_32bit_section_headers): Add "num" arg to read "num" headers. (get_64bit_section_headers): Likewise. (process_section_headers): Update calls. (get_file_header): Call get_32bit_section_headers or 64bit variant.
2001-12-11 * elfcode.h (elf_swap_ehdr_out): Adjust value written for e_shnumAlan Modra2-15/+81
and e_shstrndx if out of range. (elf_object_p): Read extended values for e_shnum and e_shstrndx from the first section header. Allocate space in elf_elfsections for reserved sections and set to NULLs. (elf_write_shdrs_and_ehdr): Set overflow fields in first section header. Skip reserved sections in elf_elfsections. Remove duplicate size calculation.
2001-12-11 * common.h (SHN_XINDEX): Comment typo fix.Alan Modra3-7/+13
* internal.h (Elf_Internal_Ehdr): Change existing "unsigned short" size, count and index fields to "unsigned int".
2001-12-11*** empty log message ***gdbadmin1-1/+1
2001-12-10Approved by Jim Blandy:Fred Fish3-11/+33
2001-12-10 Fred Fish <fnf@redhat.com> * values.c (value_fn_field): Add physname variable. Use a minimal symbol if we don't find a full symbol. Remove setting of the new value's type since that was already done by allocate_value(). Remove obsolete commented out error call since callees need to handle a NULL return, which is possible result not an error. * eval.c (evaluate_subexp_standard): Move check for inlined functions to precede attempt to dereference a NULL argvec[0].
2001-12-10daily updateAlan Modra1-1/+1
2001-12-10Approved by Jim Blandy:Fred Fish6-10/+20
2001-12-10 Fred Fish <fnf@redhat.com> * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than zero in args to lookup_minimal_symbol. * linespec.c (decode_line_1): Ditto. * i386-linux-tdep.c (skip_hurd_resolver): Ditto. * minsyms.c (find_stab_function_addr): Ditto. * symfile.c (simple_read_overlay_table): Ditto. (simple_read_overlay_region_table): Ditto.
2001-12-10* gdb.asm/asm-source.exp (info symbol): Anchor the patternJim Blandy2-1/+10
matching the entry point symbol's name at the beginning of the line.
2001-12-10Resolve CVS conflict.Andreas Schwab1-4/+1
2001-12-10 * objcopy.c (setup_section): Copy entsize.Jakub Jelinek2-0/+7
2001-12-10Approved by Jim Blandy:Fred Fish2-2/+52
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these rather than testing the bits directly. (TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED, TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE, TYPE_FLAG_VARARGS): Test for and print these bits as well.
2001-12-10Approved by Jim Blandy:Fred Fish2-2/+7
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass TYPE_FLAG_NOSIGN to init_type() rather than setting it after the type is created.
2001-12-10Approved by Jim Blandy:Fred Fish2-16/+32
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST, TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the bits to location in file where the bits are defined. (TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED, TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
2001-12-10Approved by Jim Blandy:Fred Fish2-4/+7
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (allocate_stub_method): Replace hand crafted type initialization with call to the init_type() function.
2001-12-10* arch-utils.c (generic_register_raw_size): New function.Andrew Cagney7-13/+37
* gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as the static default. * gdbarch.c: Regenerate. * arch-utils.h (generic_register_raw_size): Declare. * config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro. * mips-tdep.c (mips_register_raw_size): Make function static. (mips_gdbarch_init): Initialize register_raw_size.
2001-12-10*** empty log message ***gdbadmin1-1/+1