Michael Meissner
ead4a3f157
Add tracing support; Fix some problems with hardwired sizes
1996-09-11 20:54:21 +00:00
Ian Lance Taylor
1decafee51
* ecoff.c (ecoff_stab): Create an expression symbol for a complex
...
stabs expression, rather than giving an error.
1996-09-11 18:40:25 +00:00
Ian Lance Taylor
d7775b4355
* elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
...
rather than SEC_LOAD when aligning the file offset for the first
section in a segment.
Fixes the case in which . is set just before the .bss section in a
linker script.
1996-09-11 15:59:34 +00:00
Fred Fish
d7deed257c
* mips-dis.c (print_insn_arg): Add prototype.
...
(_print_insn_mips): Ditto.
1996-09-11 04:26:58 +00:00
Fred Fish
ea3f058549
* syms.c (coff_section_type): Make arg const.
...
* irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
to make_bfd_asection().
* elf-bfd.h (bfd_section_from_phdr): Add prototype.
* elfcode.h (bfd_section_from_phdr): Remove prototype.
(_bfd_elf_stringtab_init): Remove prototype.
* netbsd-core.c (swap_abort): Add prototype.
* aix386-core.c (swap_abort): Ditto & make static
* hpux-core.c (swap_abort): Ditto & make static.
* irix-core.c (swap_abort): Ditto & make static.
* ptrace-core.c (swap_abort): Ditto & make static.
* trad-core.c (swap_abort): Ditto & make static.
* coffswap.h (coff_swap_reloc_in): Ditto.
(coff_swap_reloc_out): Ditto.
(coff_swap_filehdr_in): Ditto.
(coff_swap_filehdr_out): Ditto.
(coff_swap_sym_in): Ditto.
(coff_swap_sym_out): Ditto.
(coff_swap_aux_in): Ditto.
(coff_swap_aux_out): Ditto.
(coff_swap_lineno_in): Ditto.
(coff_swap_lineno_out): Ditto.
(coff_swap_aouthdr_in): Ditto.
(coff_swap_aouthdr_out): Ditto.
(coff_swap_scnhdr_in): Ditto.
(coff_swap_scnhdr_out): Ditto.
* ihex.c (ihex_sizeof_headers): Ditto.
* tekhex.c (getsym): Ditto.
(find_chunk): Ditto & make static.
(insert_byte): Ditto.
(first_phase): Ditto.
(pass_over): Ditto.
(tekhex_get_symtab): Ditto & make static.
(tekhex_get_symtab_upper_bound): Ditto & make static.
(tekhex_mkobject): Ditto.
(tekhex_object_p): Ditto.
(move_section_contents): Ditto.
(tekhex_get_section_contents): Ditto.
(tekhex_set_arch_mach): Ditto & make static.
(tekhex_set_section_contents): Ditto.
(writevalue): Ditto.
(writesym): Ditto.
(out): Ditto.
(tekhex_write_object_contents): Ditto.
(tekhex_sizeof_headers): Ditto.
(tekhex_make_empty_symbol): Ditto.
(tekhex_get_symbol_info): Ditto.
(tekhex_print_symbol): Ditto.
* irix-core.c (make_bfd_asection): Ditto.
(irix_core_core_file_p): Ditto.
(irix_core_core_file_failing_command): Ditto.
(irix_core_core_file_failing_signal): Ditto.
(irix_core_core_file_matches_executable_p): Ditto.
(irix_core_make_empty_symbol): Ditto.
* coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
* srec.c (srec_new_symbol): Ditto.
(srec_get_section_contents): Ditto.
(srec_set_arch_mach): Ditto.
(srec_set_section_contents): Ditto.
(internal_srec_write_object_contents): Ditto.
(srec_write_object_contents): Ditto.
(symbolsrec_write_object_contents): Ditto.
(srec_sizeof_headers): Ditto.
(srec_make_empty_symbol): Ditto.
(srec_get_symtab_upper_bound): Ditto.
(srec_get_symtab): Ditto.
(srec_print_symbol): Ditto and make static.
* elf.c (elf_read): Ditto
(assign_section_numbers): Ditto.
(elf_fake_sections): Ditto.
(sym_is_global): Ditto.
(elf_map_symbols): Ditto.
(get_program_header_size): Ditto.
* coffgen.c (make_a_section_from_file): Ditto.
(coff_real_object_p): Ditto.
(fixup_symbol_value): Ditto.
(build_debug_section): Ditto.
(copy_name): Ditto.
* syms.c (coff_section_type): Ditto.
1996-09-11 04:25:57 +00:00
Ian Lance Taylor
475c826bb4
* ecoff.c (ecoff_new_file): Don't do anything if we are still in
...
the same file.
PR 10595.
1996-09-11 04:14:35 +00:00
Ian Lance Taylor
8a3bdc3d2a
* config/tc-mips.c (append_insn): Fill in the value for a constant
...
jump, rather than creating a reloc.
PR 10589.
1996-09-10 15:47:16 +00:00
Jeff Law
00d7a64b5f
* bfd-in2.h: Rebuilt after m32r changes.
1996-09-10 04:35:48 +00:00
Jeff Law
9909e232c0
* interp.c (hash): Make this an inline function
...
when compiling with GCC. Simplify.
* simpos.c: Explicitly include "sys/syscall.h". Remove
some #if 0'd code. Enable more emulated syscalls.
Checking in more stuff.
1996-09-10 02:51:07 +00:00
Ian Lance Taylor
ca296aab0e
Don't set interlocks for r5000. Rely on -mips4 settings.
1996-09-10 01:12:35 +00:00
David Edelsohn
f0c12b7340
* config.bfd,configure.in,configure: Add m32r support.
...
* Makefile.in,archures.c,elf.c,targets.c: Likewise.
1996-09-09 22:59:40 +00:00
Michael Meissner
2254cd90a9
Addi needs to set the carry
1996-09-09 21:12:46 +00:00
Michael Meissner
308f64d3ac
Fix ld2w tracing
1996-09-09 20:45:33 +00:00
Michael Meissner
60fc5b7270
Correct tracing of cpfg
1996-09-09 20:10:31 +00:00
David Edelsohn
66e4c22978
* config.bfd,configure.in,configure: Add m32r support.
1996-09-09 19:37:47 +00:00
David Edelsohn
71d7d44f19
* config.bfd: Keep target list alphabetically sorted.
1996-09-09 19:32:40 +00:00
David Edelsohn
8863243604
* config.sub, configure.in: Add entries for m32r.
1996-09-09 19:23:41 +00:00
Ian Lance Taylor
4a9149d501
* gas/mips/mips4.s, gas/mips/mips4.d: Use $fccN for condition code
...
registers.
1996-09-09 18:37:54 +00:00
Ian Lance Taylor
d31a3f5e76
* config/tc-mips.c (append_insn): Don't swap an instruction which
...
sets a condition code with an instruction which uses a condition
code.
(mips_ip): In cases 'N' and 'M', look for $fccN rather than an
immediate value.
1996-09-09 18:37:10 +00:00
Ian Lance Taylor
30b1724cc8
* mips-dis.c (print_insn_arg): Print condition code registers as
...
$fccN.
1996-09-09 18:27:10 +00:00
Michael Meissner
293c76a376
Make ex{f,t}* tests agree with book
1996-09-09 18:24:18 +00:00
Jeff Law
629f776abf
* elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
...
to add in the constant part found in the instruction itself.
(case R_V850_HI16_S): Likewise.
Fixes plumhall/lang.exp failures.
1996-09-09 17:49:30 +00:00
Michael Meissner
069398aaff
Fix accumulator shifts
1996-09-09 17:30:36 +00:00
Ian Lance Taylor
517078c1b3
* config/tc-mips.c (md_begin): Recognize r5000 for cpu. If
...
mips_cpu is 5000, set interlocks and cop_interlocks.
(mips_ip): Give a better error message if the ISA level is wrong.
(md_parse_option): Recognize -mcpu=[v][r]5000.
1996-09-09 15:04:59 +00:00
Fred Fish
0be55272b4
* alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
...
change for core_read_registers in struct core_fns.
* core-regset.c (fetch_core_registers): Ditto & add prototype.
* core-sol2.c (fetch_core_registers): Ditto & add prototype.
* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
* i386b-nat.c (fetch_core_registers): Ditto.
* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
* irix4-nat.c (fetch_core_registers): Ditto.
* irix5-nat.c (fetch_core_registers): Ditto.
* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
* m68knbsd-nat.c (fetch_core_registers): Ditto.
* mips-nat.c (fetch_core_registers): Ditto & add prototype.
* rs6000-nat.c (fetch_core_registers): Ditto.
* sparc-nat.c (fetch_core_registers): Ditto.
* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
* delta68-nat.c (register_addr): Ditto.
* gdbserver/low-linux.c (register_addr): Ditto.
* gdbserver/low-hppabsd.c (register_addr): Ditto.
* i386m3-nat.c (register_addr): Ditto.
* mips-nat.c (register_addr): Ditto.
* ultra3-nat.c (register_addr): Ditto.
1996-09-09 03:14:35 +00:00
Fred Fish
948a9d9233
* alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
...
change for core_read_registers in struct core_fns.
* core-regset.c (fetch_core_registers): Ditto & add prototype.
* core-sol2.c (fetch_core_registers): Ditto & add prototype.
* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
* i386b-nat.c (fetch_core_registers): Ditto.
* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
* irix4-nat.c (fetch_core_registers): Ditto.
* irix5-nat.c (fetch_core_registers): Ditto.
* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
* m68knbsd-nat.c (fetch_core_registers): Ditto.
* mips-nat.c (fetch_core_registers): Ditto & add prototype.
* rs6000-nat.c (fetch_core_registers): Ditto.
* sparc-nat.c (fetch_core_registers): Ditto.
* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
* delta68-nat.c (register_addr): Ditto.
* gdbserver/low-linux.c (register_addr): Ditto.
* gdbserver/low-hppabsd.c (register_addr): Ditto.
* i386m3-nat.c (register_addr): Ditto.
* mips-nat.c (register_addr): Ditto.
* ultra3-nat.c (register_addr): Ditto.
1996-09-09 03:01:49 +00:00
Stu Grossman
fad4a760fd
* erc32.c (port_init): Disable this for __GO32__ (got no pty's
...
there either...).
1996-09-08 23:35:50 +00:00
Stu Grossman
7bd1f0c5f9
* blockframe.c (inside_main_func): Cleanup slightly. Move
...
mainsym def into the block it's used in.
* configure.in configure: Allow NATDEPFILES to be recognized in
.mh files regardless of whitespace.
* cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
keep downloads from hanging.
* remote-wiggler.c: Add support for flash upgrades.
* (wiggler_error): Fix message format. Add new error code.
* (wiggler_write_byets): Error code is hex. Report errors with
proper routine name.
* (wiggler_read_byets): Report errors with proper routine name.
* (get_packet): Add support for new flash commands.
* (wiggler_load): Call clear_symtab_users() to reset things
properly after download.
* (flash_xfer_memory bdm_update_flash_command): New funxtions to
support flash upgrades for Wiggler.
* (_initialize_remote_wiggler): Add `bdm update-flash' command.
1996-09-08 23:33:23 +00:00
Ian Lance Taylor
f39a09c9ad
* configure.in: Do build erc32 for DOS and Windows hosts.
...
* configure: Rebuild.
1996-09-08 21:24:10 +00:00
Jackie Smith Cashion
ff8716f58e
Sat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
...
* config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
leading zeroes.
(load_register): Ensure hi32 bits are not lost during lo32bit
processing. Fix shift offset that was overflowing into the next
instruction field. Add code to generate shorter sequences for
constants with a single contiguous seqeuence of ones.
Fri Sep 6 18:23:54 1996 James G. Smith <jsmith@cygnus.co.uk>
* gas/mips/dli.{s,d}: More test cases added.
NOTE: The COUNT_TOP_ZEROES macro is a bit bulky, and the same result
can be achieved by using a "standard" ffs() routine:
count = ffs(~v);
count = count == 0 ? 0 : 33 - count;
However the following timings (VR4300 CPU clock ticks on a CMA101
board) show the performance gain.
Number of ffs() for loop if/then/else conditional
leading ?:
zeroes
-------------------------------------------------------------------------------
0 167 179 266 251
1 1718 283 263 259
2 1670 379 287 295
3 1622 475 311 311
4 1574 571 295 287
5 1534 667 311 319
6 1478 763 307 299
7 1430 859 323 323
8 1382 962 287 295
9 1334 1051 319 311
10 1286 1154 299 307
11 1238 1250 323 331
12 1183 1346 299 307
13 1135 1442 331 323
14 1087 1546 311 319
15 1039 1642 335 343
16 991 1730 295 287
17 950 1834 311 319
18 895 1922 307 299
19 847 2026 331 323
20 799 2122 307 299
21 751 2218 323 323
22 703 2314 311 311
23 655 2417 343 335
24 599 2506 307 299
25 559 2602 331 331
26 511 2705 311 319
27 463 2801 343 335
28 407 2897 311 319
29 367 2993 343 335
30 311 3097 323 331
31 271 3185 355 355
32 215 3233 379 371
1996-09-07 12:45:19 +00:00
Martin Hunt
ea2155e858
Fri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* simops.c (OP_2600, OP_2601): Changed min and max comparisons
to use signed register values.
1996-09-07 00:58:25 +00:00
Martin Hunt
5e6c6406e6
Fri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* config/tc-d10v.c (d10v_dot_word): New function to support
"@word" with the word pseudo-op.
(md_apply_fix3): Cleanup and changes to support correct sizes
for 16 and 18-bit relocs.
1996-09-07 00:12:56 +00:00
Martin Hunt
9c85b19ddf
Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
and R_D10V_18 to be 1 (word).
1996-09-07 00:06:53 +00:00
David Edelsohn
df4021c176
* configure.in (sparc-*-aout): Set `em'.
...
* configure: Regenerated.
* config/te-sparcaout.h: New file.
* config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
* config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
(SPECIAL_CASE_{SETSW,SETX}): Define.
({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
(md_begin): Delete setting of `target_big_endian'.
(output_insn): New function.
(md_assemble): Rewrite. Add `setx' support.
(sparc_ip): Handle `0' operand char. Recognize setuw, setsw, setx
special cases.
(md_atof): Add little endian support.
(md_number_to_chars): Likewise.
(md_apply_fix): Likewise.
(md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
(md_parse_option): Likewise.
(md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.
1996-09-06 23:05:12 +00:00
Geoffrey Noer
28984bef98
restore the space that need to be present
1996-09-06 22:13:06 +00:00
Geoffrey Noer
94a42c6394
Don't include netinet/tcp.h in ser-tcp.c if __CYGWIN32__ defined
1996-09-06 20:17:26 +00:00
Geoffrey Noer
421fafa29e
build ser-tcp.o for cygwin32 hosted gdb
1996-09-06 00:08:07 +00:00
Tom Tromey
642c85fa17
* Makefile.in (inet-install): Don't run install-gzip.
1996-09-05 20:11:14 +00:00
Ian Lance Taylor
ee0523d5c3
* ldlang.c (section_already_linked): Accept a lang_input_statement
...
as the PTR argument. If the file is symbols only, discard all
input sections.
(ldlang_add_file): Pass entry to bfd_map_over_sections.
PR 10555.
1996-09-05 19:26:12 +00:00
Ian Lance Taylor
4be2140e68
* stabs.c (_bfd_link_section_stabs): If the output_section field
...
of either section is bfd_abs_section, then the linker is
discarding the section and we should not optimize it.
PR 10555.
1996-09-05 19:24:08 +00:00
Per Bothner
9e9358ebab
* value.h (COERCE_REF): Fix previous change.
...
(COERCE_ENUM): Add a check_typedef (this is the real fix).
This re-fixes pr-9946.
1996-09-05 19:11:36 +00:00
Ian Lance Taylor
cfc71c6d3a
* ecoff.c (ecoff_new_file): New function.
...
* ecoff.h (ecoff_new_file): Declare.
* config/obj-ecoff.h (obj_app_file): Define.
PR 10548.
1996-09-05 17:43:06 +00:00
Wilfried Moser
947ca02583
* eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
...
better check of array boundaries.
1996-09-05 10:32:09 +00:00
Wilfried Moser
7cdda733d5
* gch1280.exp: Enhance test case.
1996-09-05 08:55:32 +00:00
Stu Grossman
5819f35dcf
* configure: Update aclocal.m4 and re-run autoconf to get correct
...
defs for BFD stuff.
* remote-wiggler.c (wiggler_error): Error codes are hex. Also,
fix default message generation.
1996-09-05 08:33:28 +00:00
Stu Grossman
0ca4776ee4
Oops!
1996-09-05 01:18:49 +00:00
Stu Grossman
1882bb8ff8
Add remote-wiggler.c.
1996-09-05 01:17:19 +00:00
Stu Grossman
1852b017b8
* Makefile.in erc32/Makefile.in: Don't set srcroot. This should
...
be inherited from the parent. Remove INSTALL_XFORM and
INSTALL_XFORM1. Make INSTALL be set from configure.
1996-09-05 01:16:22 +00:00
Stu Grossman
4a1df52b1b
* rldefs.h: Enable HANDLE_SIGNALS for cygwin32.
1996-09-05 01:07:37 +00:00
Stu Grossman
c1f36721f4
* configure configure.in: Don't default CC to cc. It causes problems
...
when starting a compile in the mmalloc directory.
1996-09-05 01:06:10 +00:00