aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1993-09-17 * remote-sim.h: New file.Jim Kingdon6-631/+337
* remote-sim.c: Add remote debug feature. Rename stuff to distinguish interface to simulator from gdb-specific stuff. Other changes. start-sanitize-v9 * remote-sp64sim.c: Renamed to remote-sim.c. Use sr_get_debug instead of our own sim_verbose/simif_snoop. Use gnutarget in call to bfd_openr. Rename simif_* to gdbsim_*. * config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c. end-sanitize-v9
1993-09-17 * gdb.stabs/ecoff.mt: Remove STABSCC hack.Peter Schauer2-4/+11
* gdb.stabs/weird.exp: Handle the case where weird.o is compiled by mips cc and contains no stabs entries.
1993-09-17 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, usePeter Schauer1-2/+3
info->fprintf_func for printing and info->print_address_func for address output.
1993-09-17 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doingPeter Schauer3-5/+21
the xor and subtract. Otherwise it will not sign extend if the type of LONGEST is larger than int. * cp-valprint.c (cp_print_class_method): Inhibit core dump if domain is an undefined cross reference. * valops.c (call_function_by_hand): Set real_pc to correct
1993-09-17* hosts/{alphaosf.h, amix.h, apollo68.h, apollov68.h,John Gilmore1-0/+11
decstation.h, delta88.h, dgux.h, dose.h, go32.h, harris.h, hp300.h, hp300bsd.h, hppabsd.h, hppahpux.h, i386aix.h, i386bsd.h, i386linux.h, i386lynx.h, i386v.h, i386v4.h, irix3.h, irix4.h, mipsbsd.h, ncr3000.h, rs6000.h, rtbsd.h, solaris2.h, sparc-ll.h, std-host.h, stratus.h, sun3.h, sysv4.h, tahoe.h, ultra3.h, vaxult.h, vaxult2.h, we32k.h}: Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.
1993-09-17Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.John Gilmore29-46/+154
1993-09-17* config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.Jim Kingdon2-1/+10
1993-09-17 * sym.h, symconst.h: Add comment stating these files are not partJim Kingdon1-0/+10
of GDB, GAS, etc. In 1991, when we asked rms whether we could include these files in GDB (although they are copyrighted by someone besides the FSF), he said it was OK if they were not considered part of GDB.
1993-09-17 * stabs.texinfo (Negative Type Numbers): Re-write discussions ofJim Kingdon2-18/+62
names, sizes, and formats to suggest how not to lose.
1993-09-16 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_typeJim Kingdon6-95/+79
to tm-a29k.h and a29k-tdep.c and make it an enum. * a29k-tdep.c (a29k_get_processor_type): New function. Fix many aspects of how we detected the processor type. * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it rather than figuring out the type ourselves.
1993-09-16 * config/vx-gdb.exp: Use fake device to load files rather thanRob Savoye1-0/+7
NFS. * lib/gdb.exp: New proc to do "file" command. * config/unix-gdb.exp: Use new "file" proc.
1993-09-16Use new proc for "file" command to load symbol tables.Rob Savoye1-56/+1
1993-09-16 * elfcode.h (elf_map_symbols): Create section symbols for allIan Lance Taylor2-48/+110
sections, not just allocated sections; debugging sections can have relocs. (elf_symbol_from_bfd_symbol): If there is an output section, use the section index from that rather than the input section.
1993-09-16* infrun.c (wait_for_inferior): Allow user to single step withinStu Grossman2-8/+16
a stack dummy.
1993-09-16 * dbxread.c (copy_pending): Deal with END NULL.Jim Kingdon1-0/+5
(process_one_symbol): Add comments about what common_block NULL means.
1993-09-16* sparc-stub.c (_trap_low): Do restore/save sequence afterStu Grossman2-3/+10
setting sp to ensure that we load the previous window from the right place on the stack.
1993-09-16 * tc.h: Declare tc_gen_reloc differently depending upongIan Lance Taylor2-11/+50
RELOC_EXPANSION_POSSIBLE. * config/obj-elf.c (obj_elf_section): Only set flags when first creating the section.
1993-09-16 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.Ian Lance Taylor3-10/+44
Rework board rebooting slightly. (gdb_exit): Don't exit from the remote shell; there isn't one. * gdb.stabs/weird.exp: If a program is being debugged already, kill it. * gdb.t04/setvar.exp: Stop and restart gdb. * gdb.t05/expr.exp: Likewise. * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and restart gdb and reload the program. * gdb.t08/opaque.exp: Likewise. * gdb.t12/scope.exp: Likewise. * gdb.t13/bitfields.exp: Likewise. * gdb.t15/funcargs.exp: Likewise. * gdb.t20/classes.exp: Likewise. * gdb.t03/ptype.exp: Increase timeout. * gdb.t16/printcmds.exp (test_print_string_constants, test_print_array_constants): Likewise. * gdb.t17/callfuncs.exp (do_function_calls): Likewise. * gdb.t20/classes.exp (do_tests): Likewise. * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
1993-09-16 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.Peter Schauer1-0/+4
1993-09-16 * mipsread.c: Many changes for alpha ecoff format:Peter Schauer3-162/+309
Correct sizeof(int) == sizeof(long) assumptions. Replace stParsed hack by putting the parsed types on the pending chain. Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro, provide default for cross debugging. Swapping the symbol back is no longer needed as the symbol is not modified anymore. Add new alpha basic types, handle btTypedef, handle stStaticProc external symbols . Update and clean up cross_ref for alpha cc cross ref variations. Allocate types on the type_obstack to inhibit storage leaks. * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define. * gdbtypes.c (recursive_dump_type): Dump TYPE_TAG_NAME if it is set.
1993-09-15Change wierd to weirdIan Lance Taylor12-684/+124
1993-09-15 * libbfd.h (COERCExx): Cast x to bfd_signed_vma before doing theIan Lance Taylor1-0/+4
xor and subtract. Otherwise it will not sign extend if the type of bfd_vma is larger than int.
1993-09-15 * remote-utils.[ch]: new files of functions collected from severalJim Kingdon1-0/+2
different remote targets.
1993-09-15 * gdb.t13/bitfields.exp: Test for bad output rather than waitingJim Kingdon1-0/+5
for timeout. Add "known gcc 2.4.5 bug" to failure message.
1993-09-15 * paread.c, coffread.c, elfread.c, dwarfread.c:Jim Kingdon4-1/+4
Include <time.h> and <sys/types.h> before libbfd.h.
1993-09-15 * ecoffswap.h (ecoff_swap_pdr_in): Get regoffset, iopt, fregoffsetIan Lance Taylor1-0/+5
and frameoffset as signed numbers. From Peter Schauer.
1993-09-15fix replacement of multiline values for CC and CXXDavid D. Zuhn1-0/+23
1993-09-15 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.Jim Kingdon2-9/+27
(do_tests): Remove xfail for whatis on one_var and two_var.
1993-09-15 * stabsread.c (read_type): Process "s" (size) type attribute.Jim Kingdon2-14/+57
If type is defined to another type, copy the type.
1993-09-14 * paread.c, coffread.c, elfread.c, dwarfread.c:Jim Kingdon1-0/+1
Include <time.h> before libbfd.h.
1993-09-14 * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...Ian Lance Taylor2-1/+6
* config/i386/i386v4.mt (TDEPFILES): ...to here.
1993-09-14 * elf32-i386.c (elf_howto_table): Add bfd_elf_generic_relocIan Lance Taylor3-5/+10
special function for all reloc entries. * elf32-target.h (TARGET_LITTLE_SYM): Add SEC_CODE to section_flags. * libelf.h (elf_symbol_type): Remove desc, type and other fields. * Makefile.in (elf32-*.o): These depend upon elf32-target.h.
1993-09-14 * config/obj-elf.c (obj_elf_data, obj_elf_text): New functions;Ian Lance Taylor1-0/+9
set previous_section and previous_subsection and then call s_data and s_text, respectively. (obj_pseudo_table): Add data and text. (obj_elf_section): Add SEC_LOAD to default initialization of flags. Treat .rodata1 like .rodata. Set SEC_LOAD as well as SEC_ALLOC for "alloc" string. Don't bother trying to find the section; just use subseg_new.
1993-09-14 Tue Sep 14 14:34:45 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)Steve Chamberlain2-41/+13
* libbfd-in.h (struct artdata): Add armap_timestamp and armap_datepos here too.
1993-09-14fix serial.h inclusionK. Richard Pixley4-6/+24
1993-09-14use remote-utils facilities for baud_rateK. Richard Pixley5-26/+26
1993-09-14* paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.Jim Kingdon3-3/+10
1993-09-14Some more gcc lint, and:Ian Lance Taylor9-821/+116
* read.c (change_to_section): Removed. This is now done by subseg_new. (get_stab_string_offset): Rearranged somewhat. Create the section using subseg_new. Store the string index in seg_info, rather than in a static variable. Force the first string to be empty. Use frag_more rather than FRAG_APPEND_1_CHAR. (s_stab_generic): Rewrote. * subsegs.h (segment_info_type): Added stabu union. * subsegs.c (subseg_new): Initialize stab_string_size to 0. * config/obj-aout.c: Don't include aout/stab_gnu.h. (obj_aout_stab, obj_aout_desc): Removed. (obj_pseudo_table): Removed desc and stabX entries. * config/obj-bout.c: Same changes as config/obj-aout.c. * config/obj-bout.h (S_SET_TYPE): Define. (tc_bout_fix_to_chars): Declare. * config/obj-coff.c (obj_coff_stab): Removed. (obj_pseudo_table): Removed desc and stabX entries. * config/obj-coff.h (SEPARATE_STAB_SECTIONS): Define. * config/obj-coffbfd.c (current_stab_symbol): Removed. * config/obj-coffbfd.h (obj_symbol_type): Removed n_strx, n_type, n_other, n_desc and n_value fields. (S_{S,G}ET_{OFFSET,OTHER,TYPE,DESC}): Removed. (MAKE_STAB_SYMBOL): Removed. * config/obj-ecoff.c (obj_ecoff_stab): Renamed to ecoff_stab. Changed arguments and removed parsing code. (obj_pseudo_table): Removed stabX entries. * config/obj-ecoff.h (ecoff_stab): Declare. (OBJ_PROCESS_STAB): Define. * config/obj-elf.c: Don't include aout/stab_gnu.h. (obj_elf_stab, obj_elf_xstab, obj_elf_desc, elf_stab_symbol_string, elf_stab_symbol, obj_elf_stab_generic): Removed. (obj_pseudo_table): Removed desc, stabX and xstabs entries. (obj_elf_version): Use subseg_new, not bfd_make_section. Don't set SEC_LOAD for .note section. (adjust_stab_sections): Get frag pointer from seg_info, rather than looking through frags. * config/obj-elf.h (S_{S,G}ET_{OTHER,TYPE,DESC}): Removed. (SEPARATE_STAB_SECTIONS, INIT_STAB_SECTION, OBJ_PROCESS_STAB): Define. * config/obj-vms.c (obj_aout_stab): Removed. (obj_pseudo_table): Removed stabX entries. * config/obj-vms.h (S_SET_TYPE): Define.
1993-09-14 * paread.c: Include <time.h> before libbfd.h.Jim Kingdon2-0/+12
* paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
1993-09-14 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).Jim Kingdon3-2/+20
* config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0 if this is a transparent procedure.
1993-09-14* remote-udi.c (udi_wait): Return inferior_pid not 0.Jim Kingdon1-1/+1
1993-09-14Avoid minor warning in archive.c change.John Gilmore1-0/+2
1993-09-14* hosts/std-host.h (offsetof): Define, if not already, for archive.c.John Gilmore1-0/+5
1993-09-14Improve timestamp support in BSD archive files to avoid linkerJohn Gilmore4-125/+388
warnings. * libbfd.h (struct artdata): Add armap_timestamp and armap_datepos. (bfd_flush, bfd_stat): Add prototypes. * libbfd.c (bfd_flush): Add, does fflush on a BFD. (bfd_stat): Add, does fstat on a BFD. * archive.c (_bfd_write_archive_contents): At end of file writing, verify and possibly update the timestamp in the armap, if a BSD archive. FIXME! Kludge recognizes BSD archive, rather than vectoring properly. Should add to xvec. (compute_and_write_armap): Move prototype to top, avoid PROTO. (bsd_write_armap): Save timestamp and file location thereof, when writing the armap in a BSD file. (bsd_update_armap_timestamp): New function to check and rewrite the timestamp.
1993-09-14 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. TemporaryJim Kingdon3-5/+49
hack so this file compiles again. * remote-utils.c (gr_multi_scan): Cast return value from alloca. (gr_multi_scan): #if 0 never-reached return(-1).
1993-09-13add commentJim Kingdon1-0/+1
1993-09-13add som.c and som.hJim Kingdon1-0/+2
1993-09-13collect some remote things into remote-utilsK. Richard Pixley6-630/+1056
1993-09-13 * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set.Ian Lance Taylor16-547/+729
Wrote non-BFD_ASSEMBLER subseg_new. Now subseg_new always takes a section name, and subseg_set always takes a segT. Changed all callers as appropriate. * config/obj-coffbfd.c (change_to_section): Renamed to obj_coff_add_segment. Corrected. Made callers use subseg_new. * config/obj-coffbfd.h (obj_segment_name, obj_add_segment): Define. Also some more gcc warning removal.
1993-09-13 * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses ofJim Kingdon4-48/+147
pc_changed. If it was ever set to a non-zero value, it was before GDB 2.8. It doesn't seem to have any useful function.