Rob Savoye [Wed, 11 Jun 1997 20:09:55 +0000 (20:09 +0000)]
* configure: Use '|' instead of ":" as the seperator in
sed. Otherwise sed chokes on NT path names with drive
designators. Also look for "?:*" as the leading characters in an
absolute pathname.
Ian Lance Taylor [Wed, 11 Jun 1997 16:59:00 +0000 (16:59 +0000)]
* elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
for a symbol which is being forced to be local.
* elf32-i386.c (elf_i386_relocate_section): Write out the
relocation value for a GOT reloc for a symbol which is turning
into a local symbol.
(elf_i386_finish_dynamic_symbol): If a symbol is turning into a
local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
reloc.
* elf32-m68k.c, elf32-sparc.c: Corresponding changes.
Ian Lance Taylor [Wed, 11 Jun 1997 16:06:29 +0000 (16:06 +0000)]
Wed Jun 11 12:05:52 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* ar.c (bfd_special_undocumented_glue): Add const.
Ian Lance Taylor [Wed, 11 Jun 1997 04:01:48 +0000 (04:01 +0000)]
* elf32-i386.c (elf_i386_relocate_section): Get the relocation
value if the symbol is turning into a local symbol.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
Jeff Law [Tue, 10 Jun 1997 23:12:45 +0000 (23:12 +0000)]
* config/tc-mn10300.c (md_assemble): Allow an empty register
list for instructions which use register lists.
Jeff Law [Tue, 10 Jun 1997 22:59:13 +0000 (22:59 +0000)]
* simops.c: "call" stores the callee saved registers into the
stack! Update the stack pointer properly when done with
register saves.
Ulrich Drepper [Tue, 10 Jun 1997 21:46:23 +0000 (21:46 +0000)]
(elf_link_add_object_symbols): Also read verneed
information by calling `_bfd_elf_slurp_version_tables'.
(elf_link_add_object_symbols): For undefined symbols look for
version informaiton in the verneed records.
(elf_link_add_object_symbols): Use soname of shared object
for verneed record if it is available.
Jeff Law [Tue, 10 Jun 1997 18:32:40 +0000 (18:32 +0000)]
* simops.c: Fix return address computation for "call" instructions.
Ian Lance Taylor [Tue, 10 Jun 1997 15:27:52 +0000 (15:27 +0000)]
Tue Jun 10 11:26:47 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* arm-dis.c: Add prototypes for arm_decode_shift and
print_insn_arm.
Ian Lance Taylor [Tue, 10 Jun 1997 15:25:05 +0000 (15:25 +0000)]
Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c (md_apply_fix3): Make temp unsigned long.
Ian Lance Taylor [Tue, 10 Jun 1997 15:21:36 +0000 (15:21 +0000)]
Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c (arm_adjust_symtab): Only set storage classes if
OBJ_COFF.
Ian Lance Taylor [Tue, 10 Jun 1997 15:20:05 +0000 (15:20 +0000)]
Tue Jun 10 11:18:09 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config/tc-arm.c: Add prototypes for many static functions.
(struct asm_opcode ): Add prototypes for parms field.
(struct thumb_opcode ): Likewise.
(fp_op2): Remove unused flags parameter.
(output_inst): Make static.
(arm_after_pass_hook): Remove unused ignore parameter.
* config/tc-arm.h (arm_after_pass_hook): Declare.
(arm_start_line_hook): Declare.
(arm_frob_label): Declare.
Ian Lance Taylor [Tue, 10 Jun 1997 15:16:17 +0000 (15:16 +0000)]
Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* cpu-arm.c: Add prototypes for compatible and scan.
* cofflink.c: Add prototype for mark_relocs.
* archive.c (bfd_special_undocumented_glue): Change filename to
const pointer. Add prototype.
Ian Lance Taylor [Mon, 9 Jun 1997 18:05:46 +0000 (18:05 +0000)]
* config/tc-sh.c (md_apply_fix): Check for overflow.
PR 12530.
Ian Lance Taylor [Mon, 9 Jun 1997 16:56:41 +0000 (16:56 +0000)]
Mon Jun 9 12:55:45 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* depend.c (wrap_output): new prototype.
Ian Lance Taylor [Mon, 9 Jun 1997 16:53:45 +0000 (16:53 +0000)]
* config/tc-m68k.c (md_section_align): If a.out and BFD, force
section size to be aligned.
Ian Lance Taylor [Mon, 9 Jun 1997 16:36:08 +0000 (16:36 +0000)]
Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elflink.h (elf_link_add_object_symbols): Ignore relocations of
sections that will be discarded.
Peter Schauer [Sat, 7 Jun 1997 09:38:31 +0000 (09:38 +0000)]
start-sanitize-gdbtk
* gdbtk.c (gdb_get_breakpoint_info): Add string for new
enumeration del_at_next_stop to bpdisp array.
end-sanitize-gdbtk
* eval.c (evaluate_subexp_for_sizeof): Handle dereferencing
of non-pointer values.
* symtab.c (gdb_mangle_name): Improve mangling of nested types,
their physical names already include the class name.
* valops.c (value_cast): Handle upcast of a class pointer.
From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
* corelow.c (get_core_registers): Make secname big enough.
Ian Lance Taylor [Sat, 7 Jun 1997 03:48:00 +0000 (03:48 +0000)]
* scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
the import list.
Keith Seitz [Fri, 6 Jun 1997 21:47:12 +0000 (21:47 +0000)]
Modified Files:
ChangeLog sh-tdep.c config/sh/tm-sh.h
* config/sh/tm-sh.h: add define for FPSCR_REGNUM
* sh-tdep.c (sh_show_regs): print out all registers for
the current processor
Ian Lance Taylor [Fri, 6 Jun 1997 21:36:11 +0000 (21:36 +0000)]
* ld-elfvers/vers6.ver: Update for recent elflink.h patch to
version handling.
Ulrich Drepper [Fri, 6 Jun 1997 21:19:41 +0000 (21:19 +0000)]
(elf_link_find_version_dependencies): When searching
for known version symbol skip non-matching verdef records, not
matching records.
Ian Lance Taylor [Fri, 6 Jun 1997 21:17:46 +0000 (21:17 +0000)]
* config/tc-sh.h (md_cons_align): Define.
(sh_cons_align): Declare.
* config/tc-sh.c (md_pseudo_table): Add .uaword and .ualong.
(sh_no_align_cons): New static variable.
(s_uacons): New static function.
(sh_cons_align): New function.
(sh_handle_align): Warn about misaligned data.
* doc/c-sh.texi: Document .uaword and .ualong.
PR 12528.
Andrew Cagney [Fri, 6 Jun 1997 03:02:51 +0000 (03:02 +0000)]
sim_kill() isn't used.
Andrew Cagney [Fri, 6 Jun 1997 02:34:55 +0000 (02:34 +0000)]
Open in binary mode when available.
Andrew Cagney [Fri, 6 Jun 1997 00:31:08 +0000 (00:31 +0000)]
Clean up formatting of instruction traces.
Andrew Cagney [Thu, 5 Jun 1997 04:51:34 +0000 (04:51 +0000)]
Verify magic number of simulator struct.
Andrew Cagney [Wed, 4 Jun 1997 02:47:49 +0000 (02:47 +0000)]
Initialize the sim-engine module.
Bob Manson [Wed, 4 Jun 1997 00:25:16 +0000 (00:25 +0000)]
Removed global variable "exec_output". remote_load now returns
the output as part of its result.
Nick Clifton [Wed, 4 Jun 1997 00:11:36 +0000 (00:11 +0000)]
Added the Thumb relocations from the armT-970328-branch.
Nick Clifton [Wed, 4 Jun 1997 00:07:07 +0000 (00:07 +0000)]
Merged in changes made in armT-970328-branch
Bob Manson [Wed, 4 Jun 1997 00:04:43 +0000 (00:04 +0000)]
* config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
here. Call gdb_target_exec before rebooting the target, to make
sure the connection to the target is closed.
(gdb_load): Pass the name of the executable to gdb_target_monitor.
Don't call gdb_file_cmd here; let gdb_target_monitor do it.
* config/gdbserver.exp: Pass the executable being loaded to
gdb_target_monitor. Don't call gdb_file_cmd here; let
gdb_target_monitor do it.
* gdb.disasm/hppa.exp: Don't use exec_output.
Michael Snyder [Tue, 3 Jun 1997 23:28:54 +0000 (23:28 +0000)]
* configure.tgt: add mipsr3900-elf target
* config/mips/r3900*.mt config/mips/tm-r3900*.h: ditto
Nick Clifton [Tue, 3 Jun 1997 23:25:43 +0000 (23:25 +0000)]
Merged in the changes from the armT-970328-branch.
Nick Clifton [Tue, 3 Jun 1997 23:15:49 +0000 (23:15 +0000)]
Added support for Thumb architecture from armT-970328-branch.
Andrew Cagney [Tue, 3 Jun 1997 23:03:50 +0000 (23:03 +0000)]
o Fixes to repeated watchpoints
o Add mips ISA instructions needed to handle interrupts
Tom Tromey [Tue, 3 Jun 1997 22:34:23 +0000 (22:34 +0000)]
* Makefile.in (LIB_RUNTIME_DIR): New variable.
Bob Manson [Tue, 3 Jun 1997 22:05:24 +0000 (22:05 +0000)]
Added proelf.
Ian Lance Taylor [Tue, 3 Jun 1997 15:35:47 +0000 (15:35 +0000)]
add c-arm.texi
Nick Clifton [Mon, 2 Jun 1997 23:43:17 +0000 (23:43 +0000)]
Added an enable of the ARM documentation.
Nick Clifton [Mon, 2 Jun 1997 23:28:16 +0000 (23:28 +0000)]
Added ARM documentation from armT-970328-branch
Gavin Romig-Koch [Mon, 2 Jun 1997 16:04:54 +0000 (16:04 +0000)]
End the tests with no-ops.
Gavin Romig-Koch [Mon, 2 Jun 1997 15:56:00 +0000 (15:56 +0000)]
Add r3900 support.
Gavin Romig-Koch [Mon, 2 Jun 1997 15:49:26 +0000 (15:49 +0000)]
Improve messages from regexp_diff
Andrew Cagney [Mon, 2 Jun 1997 15:00:43 +0000 (15:00 +0000)]
o Fix padd insn
o Take an interrupt when an int event occures.
Ian Lance Taylor [Sat, 31 May 1997 01:57:27 +0000 (01:57 +0000)]
* elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
for a section even if it is not loaded.
Otherwise compiling this
static char bar; char *foo() { return &bar; }
without -fpic and then doing ld -shared OBJECT dumps core.
Ian Lance Taylor [Fri, 30 May 1997 16:47:49 +0000 (16:47 +0000)]
* cofflink.c (coff_link_add_symbols): If PE file, don't subtract
section VMA.
(_bfd_coff_link_input_bfd): Separate section VMA handling for
input and output files.
(_bfd_coff_generic_relocate_section): Check whether input file,
not output file, is a PE file.
Andrew Cagney [Fri, 30 May 1997 07:25:13 +0000 (07:25 +0000)]
Add assembler information to igen input files.
Ian Lance Taylor [Thu, 29 May 1997 16:59:46 +0000 (16:59 +0000)]
Thu May 29 12:58:26 1997 Ben Pfaff <pfaffben@pilot.msu.edu>
* as.c: (parse_args) `-t' option requires an argument.
Andrew Cagney [Thu, 29 May 1997 07:25:20 +0000 (07:25 +0000)]
Fix subu immed - was incorrectly using unsigned.
Andrew Cagney [Thu, 29 May 1997 07:06:41 +0000 (07:06 +0000)]
Add a simple dissasembler to igen
Ian Lance Taylor [Wed, 28 May 1997 21:58:27 +0000 (21:58 +0000)]
* Makefile.in: Rebuild dependencies.
Ian Lance Taylor [Wed, 28 May 1997 20:17:55 +0000 (20:17 +0000)]
* config/tc-i386.c (tc_gen_reloc): Don't try to convert the type
of a BFD_RELOC_RVA reloc.
Ian Lance Taylor [Wed, 28 May 1997 20:16:35 +0000 (20:16 +0000)]
* coff-i386.c (coff_i386_reloc): Don't just exit if we see an
R_IMAGEBASE reloc.
Nick Clifton [Wed, 28 May 1997 16:49:25 +0000 (16:49 +0000)]
Added support for ARM architecture supersets in the compatibility function.
Jeff Law [Wed, 28 May 1997 16:48:32 +0000 (16:48 +0000)]
* config/tc-hppa.c (tc_fix_adjustable): Reject absolute calls/jumps.
(hppa_force_relocation): Force a relocation for an absolute
call/jump.
part of gcc/12343.
Bob Manson [Wed, 28 May 1997 02:43:30 +0000 (02:43 +0000)]
* cofflink.c (_bfd_coff_final_link): Initialize global_to_static
member.
Fixes linker bug on hpux-x-i960-vxworks.
Nick Clifton [Tue, 27 May 1997 21:37:16 +0000 (21:37 +0000)]
Made coff-arm_bfd_set_private_flags global as it is called directly from
gas/config/tc-arm.c .
Ian Lance Taylor [Tue, 27 May 1997 20:01:14 +0000 (20:01 +0000)]
Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
* elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
(elf64_alpha_finish_dynamic_symbol): Fill it in properly.
Ian Lance Taylor [Tue, 27 May 1997 15:05:40 +0000 (15:05 +0000)]
Tue May 27 11:02:08 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c (dis386[], dis386_twobyte[]): change pushl/popl
to pushS/popS for segment regs and byte constant so that
pushw/popw printed when in 16 bit data mode.
* i386-dis.c (dis386[]): change cwtl, cltd to cWtS, cStd to
print cbtw, cwtd in 16 bit data mode.
* i386-dis.c (putop): extra case W to support above.
* i386-dis.c (print_insn_x86): print addr32 prefix when given
address size prefix in 16 bit address mode.
Andrew Cagney [Tue, 27 May 1997 11:25:47 +0000 (11:25 +0000)]
Fix watching PC for 64bit (mips) target.
Stop watchpoints corrupting the event queue.
Andrew Cagney [Tue, 27 May 1997 06:48:20 +0000 (06:48 +0000)]
Extend xor-endian and per-cpu support in core module.
Allow negated test when watching value within core.
Ian Lance Taylor [Mon, 26 May 1997 18:09:21 +0000 (18:09 +0000)]
* coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
section VMA.
Fred Fish [Mon, 26 May 1997 18:00:54 +0000 (18:00 +0000)]
* peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
(coff_bfd_copy_private_bfd_data): Ditto.
* coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
(coff_arm_bfd_print_private_bfd_data): Ditto.
(coff_arm_bfd_set_private_flags): Ditto.
(coff_arm_bfd_copy_private_bfd_data): Ditto.
Ian Lance Taylor [Mon, 26 May 1997 17:25:22 +0000 (17:25 +0000)]
* doc/as.texinfo: Don't use @value in section names or index
entries; it confuses texinfo.tex.
Fred Fish [Sat, 24 May 1997 15:30:55 +0000 (15:30 +0000)]
* libcoff-in.h (struct coff_final_link_info): Add boolean
global_to_static member for support of task linking.
(_bfd_coff_write_task_globals): Add prototype.
* libcoff.h: Regenerate.
* coffcode.h (coff_write_object_contents): Use #ifdef to
check RS6000COFF_C, to be consistent with all other uses
in this file.
* cofflink.c (_bfd_coff_final_link): If doing task linking,
call _bfd_coff_write_task_globals.
(_bfd_coff_link_input_bfd): If doing task linking, convert
global functions to static.
(_bfd_coff_write_global_sym): If doing task linking, convert
global variables to static.
(_bfd_coff_write_task_globals): New function.
* coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
(C_AUTOARG): #undef since it clashes with C_UEXT.
(C_LASTENT): #undef since it clashes with C_STATLAB.
* coffcode.h (coff_write_object_contents): Use TIC80COFF
rather than TIC80.
(coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
when TIC80COFF defined (clashes with C_UEXT). Explicitly
recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
PR 12236
Fred Fish [Sat, 24 May 1997 15:28:55 +0000 (15:28 +0000)]
* internal.h (C_UEXT, C_STATLAB, C_EXTLAB, C_SYSTEM):
New storage classes for TIc80.
PR 12236
Bob Manson [Fri, 23 May 1997 22:30:29 +0000 (22:30 +0000)]
* gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
test_calls after restarting.
* lib/gdb.exp(gdb_run_cmd): Send jump command again after
reloading.
* gdb.base/watchpoint.exp: Fix typo.
* gdb.base/setshow.exp: Check for use_gdb_stub.
* gdb.base/break.exp: Fix continue until exit test for the gdb
stub case.
* gdb.base/langs.exp: Ditto.
* config/monitor.exp(gdb_load): Handle gdb_sect_offset and
gdb_load_offset. If we weren't given a file to load, figure out
what the current file is and use it.
Bob Manson [Fri, 23 May 1997 21:49:12 +0000 (21:49 +0000)]
* config/monitor.exp(gdb_load): Handle gdb_sect_offset and
gdb_load_offset.
Bob Manson [Fri, 23 May 1997 21:46:34 +0000 (21:46 +0000)]
* infcmd.c (jump_command): Don't try to dereference sfn if it's
NULL.
Ian Lance Taylor [Fri, 23 May 1997 20:52:06 +0000 (20:52 +0000)]
* sh-dis.c: Reindent. Rename local variable fprintf to
fprintf_fn.
Bob Manson [Fri, 23 May 1997 20:28:54 +0000 (20:28 +0000)]
* config/i386-bozo.exp: New file.
Ian Lance Taylor [Fri, 23 May 1997 20:15:59 +0000 (20:15 +0000)]
add depend.c
Tom Tromey [Fri, 23 May 1997 19:30:41 +0000 (19:30 +0000)]
* doc/as.texinfo: Updated for -MD option.
* Makefile.in (CFILES): Added depend.c.
(OBJS): Added depend.o.
* as.h (start_dependencies, register_dependency,
print_dependencies): New declarations.
* depend.c: New file.
* as.c (parse_args): Added -MD option.
(main): Call print_dependencies.
(show_usage): Added help for -MD.
* read.c (s_app_file): Call register_dependency.
(s_include): Call register_dependency when file is found.
(read_a_source_file): Call register_dependency.
Ian Lance Taylor [Fri, 23 May 1997 16:39:10 +0000 (16:39 +0000)]
* coff-tic80.c (tic80_howto_table): Change overflow check for most
PP relocations to complain_overflow_dont.
Andrew Cagney [Fri, 23 May 1997 09:25:01 +0000 (09:25 +0000)]
Don't restrict the endian commands to BI-ENDIAN gdb.
Andrew Cagney [Fri, 23 May 1997 09:19:43 +0000 (09:19 +0000)]
Preliminary suport for xor-endian suport in core module.
Bob Manson [Fri, 23 May 1997 06:15:46 +0000 (06:15 +0000)]
Make sure we keep the old value of timeout set properly.
Bob Manson [Fri, 23 May 1997 06:10:08 +0000 (06:10 +0000)]
Don't look at timeout unless it exists.
Bob Manson [Fri, 23 May 1997 06:05:12 +0000 (06:05 +0000)]
* lib/gdb.exp(gdb_expect): Look for gdb,timeout target
feature.
Bob Manson [Fri, 23 May 1997 02:06:18 +0000 (02:06 +0000)]
* config/proelf.exp: New entry.
Andrew Cagney [Fri, 23 May 1997 02:01:04 +0000 (02:01 +0000)]
Incorrect test for zero-r0 code gen.
Andrew Cagney [Fri, 23 May 1997 01:29:16 +0000 (01:29 +0000)]
Enumerate longjmp's return type.
Ian Lance Taylor [Fri, 23 May 1997 00:26:58 +0000 (00:26 +0000)]
* coff-tic80.c (tic80_howto_table): Add PP relocations. Change
name of R_RELLONG to "RELLONG". Set rightshift and complain for
M_PPCR.
(ppbase_reloc, glob15_reloc): New static functions.
(glob16_reloc, local16_reloc): New static functions.
(rtype2howto): Handle all relocation types.
(coff_tic80_relocate_section): New static function.
(coff_relocate_section): Define to coff_tic80_relocate_section.
* Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
David Edelsohn [Thu, 22 May 1997 21:12:22 +0000 (21:12 +0000)]
Tweak ChangeLog entry.
David Edelsohn [Thu, 22 May 1997 21:06:57 +0000 (21:06 +0000)]
* m32r-opc.c (m32r_cgen_insn_table, cmpui): Undo patch of May 2.
Gavin Romig-Koch [Thu, 22 May 1997 13:30:01 +0000 (13:30 +0000)]
ifdef out uses of simSTOP, simSTEP and simBE when DEBUG is defined.
Gavin Romig-Koch [Thu, 22 May 1997 13:16:03 +0000 (13:16 +0000)]
Change longjmp param/setjmp return value used for simulator restart from 0 to 2.
Bob Manson [Thu, 22 May 1997 06:00:28 +0000 (06:00 +0000)]
* lib/gdb.exp: Remove spurious .* patterns at the beginning
of regexps.
Bob Manson [Thu, 22 May 1997 05:56:31 +0000 (05:56 +0000)]
* gdb.base/watchpoint.exp: Don't run the test_stepping
tests if gdb can't call functions on the target.
Bob Manson [Thu, 22 May 1997 05:55:41 +0000 (05:55 +0000)]
add new file.
Jeff Law [Thu, 22 May 1997 05:28:34 +0000 (05:28 +0000)]
* interp.c (sim_resume): Add missing case in big switch
statement (for extb instruction).
Andrew Cagney [Thu, 22 May 1997 04:59:25 +0000 (04:59 +0000)]
Restrict simulator commands to an enabled simulator.
Bob Manson [Thu, 22 May 1997 04:24:23 +0000 (04:24 +0000)]
* gdb.base/setshow.exp: Don't run the set prompt tests if
the board has gdb_prompt set.
Michael Snyder [Wed, 21 May 1997 23:33:33 +0000 (23:33 +0000)]
Wed May 21 16:03:25 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* procfs.c (init_procinfo): new function, abstracts some code
shared by create_procinfo and do_attach;
(procfs_set_inferior_syscall_traps): new function, abstracts
some code needed by procfs_init_inferior, do_attach, and
procfs_lwp_creation_handler; (procfs_first_available): new
function, find any LWP that's runnable; (procfs_thread_alive):
replace stub function with real implementation;
(procfs_lwp_creation_handler): fix bug starting new child
threads; (info_proc): bug fixes and enhancements for the
"INFO PROCESSES" command; (close_procinfo_file): call new
function "delete_thread" to cleanup GDB's thread database;
(proc_init_failed): add new argument "kill", to control whether
process is killed (so this function can be shared by
create_procinfo and do_attach); (procfs_exit_handler): handle
exit from an attached process, and cleanup procinfo handles
when the process exits; (procfs_resume, procfs_wait): cleanup
after a thread when it exits; (do_attach, do_detach): handle
attached processes with multiple threads; plus some general
improvements in the diagnostic output.
* sol-thread.c (sol_thread_alive): replace stub with real
implementation; (thread_to_lwp, lwp_to_thread): enhance to
handle threads that may have exited; (sol_thread_attach): add
startup setup stuff; (sol_thread_detach): add unpush_target
call; (sol_thread_mourn_inferior): add unpush_target call;
(sol_thread_wait, sol_thread_resume): enhance to deal with
thread exit cleanly; (sol_thread_new_objfile,
sol_thread_pid_to_str): detect unsuccessful startup and
don't crash; plus some general cleanup.
* thread.c (delete_thread): new function, allows targets to
notify gdb when a thread is no longer valid.
* infrun.c (wait_for_inferior): don't try to detect a new
thread on receiving a TARGET_EXITED event.
Ian Lance Taylor [Wed, 21 May 1997 21:44:47 +0000 (21:44 +0000)]
* ldmain.c (main): Correct check of fclose return value when
handling --force-exe-suffix.
Ian Lance Taylor [Wed, 21 May 1997 21:42:38 +0000 (21:42 +0000)]
* coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
value.
* coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
callers. If PE file, don't add section VMA.
(coff_write_alien_symbol): If PE file, don't add section VMA.
* cofflink.c (_bfd_coff_link_input_bfd): Likewise.
(_bfd_coff_write_global_sym): Likewise.
(_bfd_coff_generic_relocate_section): Likewise.
Ian Lance Taylor [Wed, 21 May 1997 21:40:14 +0000 (21:40 +0000)]
* config/obj-coff.c (symbol_to_chars): If TE_PE, don't add the
section address to the symbol value.
Ian Lance Taylor [Wed, 21 May 1997 21:33:55 +0000 (21:33 +0000)]
* configure.in: Use install-sh, not install.sh.
Ian Lance Taylor [Wed, 21 May 1997 21:17:17 +0000 (21:17 +0000)]
* peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
is 64 bits.