Stu Grossman [Mon, 12 Dec 1994 20:50:08 +0000 (20:50 +0000)]
* gdbtk.c: New tcl commands: gdb_fetch_registers,
gdb_changed_register_list, and gdb_regnames.
* gdbtk.tcl: Use monochrome color model for now.
* (delete_breakpoint_tag create_file_win): Add breakdot support.
* (create_file_win create_asm_win update_listing build_framework
create_source_window create_command_window): Re-org window
creation to give all windows consistent look and feel.
* (update_listing update_asm): Change pc pointer to '->'.
* (registers_command reg_config_menu create_registers_window
populate_reg_window update_registers): Revamp register window.
Allow selection of registers to be displayed. Highlight changed
registers.
Ken Raeburn [Sat, 10 Dec 1994 02:06:26 +0000 (02:06 +0000)]
* config/tc-alpha.c (alpha_ip, case 'B', subcase 'c'): Use opcode value from
pattern instead of assuming jsr.
* config/alpha-opcode.h (jmp): Add a "1,Bc" form.
* scripttempl/elf.sc: Move .ctors and .dtors from .text segment to
.data segment. They must be writable when creating a shared
library. From H.J. Lu <[email protected]>.
* elfcode.h (elf_bfd_link_add_symbols): If the first object in the
archive is not an ELF object, pass the archive to the add_symbols
entry point appropriate for the first object. From Eric Youngdale
<[email protected]>.
* elf32-i386.c (elf_i386_relocate_section): Don't compute
relocation in cases where we won't use it.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
Jim Kingdon [Thu, 8 Dec 1994 23:20:11 +0000 (23:20 +0000)]
* frame.h: Restore pre-Nov 3 comments about FRAME_FP with minor
changes. They are correct, unlike the post-Nov 3 comment
(FRAME_FP doesn't have any machine-independent relationship with
FP_REGNUM or any other such notion of a "frame pointer").
Jim Kingdon [Thu, 8 Dec 1994 22:54:33 +0000 (22:54 +0000)]
* gdbserver/remote-utils.c (write_ok): Write "OK", not "Ok", to
match stubs and protocol spec.
* gdbserver/remote-utils.c (remote_open): Cast to struct sockaddr
when passing to function which expects that.
The following changes aren't quite enough to make things work with
LynxOS (apprently kernel problems).
* infrun.c (wait_for_inferior): When resuming new thread, pass pid
not -1 for remote case.
* thread.c (info_threads_command): Give error if !target_has_stack.
* infrun.c (start_remote): Call init_thread_list.
* thread.c (info_threads_command): Don't call kill for remote
debugging target.
* target.c (normal_pid_to_str): Print "thread" not "process" for
remote.
* remote.c, gdbserver/*: Add 'H', 'S', and 'C' requests, 'X'
response, and `thread' part of 'T' response.
* gdbserver/*: If program exits, send packet to GDB before
exiting. Handle termination with a signal the same as exiting
with an exitstatus.
* remote.c: Don't try to kill program after getting an 'X'
response.
* infrun.c (wait_for_inferior): Add comment about kill versus mourn.
Ken Raeburn [Thu, 8 Dec 1994 20:47:46 +0000 (20:47 +0000)]
* pc532-mach.c (NAME): Define to use ns32kaout prefix.
* ns32knetbsd.c (NAME): Ditto.
(ns32kaout_32_get_section_contents): Define to standard aout-32 version.
Stan Shebs [Thu, 8 Dec 1994 03:05:49 +0000 (03:05 +0000)]
* gdb.base/list.exp: Adjust expectations to reflect changes in
list1.c.
(test_forward_search): New test proc.
* gdb.base/list1.c (long_line): New function, has long source line.
Rob Savoye [Wed, 7 Dec 1994 21:47:22 +0000 (21:47 +0000)]
* hppa-tdep.c: Use GDB_TARGET_IS_PA_ELF so SOM target support will
stop being linked in.
* config/pa/tm-hppap.h: New file. Set GDB_TARGET_IS_PA_ELF,
otherwise it looks like BSD-ELF.
Rob Savoye [Wed, 7 Dec 1994 21:26:22 +0000 (21:26 +0000)]
* hppa-tdep.c: Use GDB_TARGET_IS_PA_ELF so SOM target support will
stop being linked in.
* config/pa/tm-hppap.h: New file. Set GDB_TARGET_IS_PA_ELF,
otherwise it looks like BSD-ELF.
Stan Shebs [Sat, 3 Dec 1994 00:19:03 +0000 (00:19 +0000)]
* solib.c (auto_solib_add_at_startup): New global.
(solib_create_inferior_hook): Call solib_add only if
auto_solib_add_at_startup is nonzero.
(_initialize_solib): New command "set auto-solib-add".
* emultempl/miposecoff.em: New file.
* emulparams/mipsidt.sh (TEMPLATE_NAME): Set to mipsecoff.
* emulparams/mipsidtl.sh (TEMPLATE_NAME): Likewise.
* scripttempl/mips.sc: Put .rel.sdata sections in .text, and
provide __runtime_reloc_start and __runtime_reloc_stop if they are
used. Align _fdata to a 16 byte boundary.
* Makefile.in (emipsidt.c): Depend upon mipsecoff.em rather than
generic.em.
(emipsidtl.c): Likewise.
(check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
Jeff Law [Thu, 1 Dec 1994 05:34:30 +0000 (05:34 +0000)]
* somsolib.c (som_solib_get_got_by_pc): New function.
* somsolib.h (som_solib_get_got_by_pc): Add extern decl.
* hppa-tdep.c (hppa_fix_call_dummy): Handle case where FUN is the
function's export stub or real address in a shared library.
Jeff Law [Thu, 1 Dec 1994 04:08:29 +0000 (04:08 +0000)]
* gdb.disasm/hppa.s: Break the large branching tests into smaller
tests so as not to overflow expect's input buffers.
* gdb.disasm/hppa.exp: Corresponding changes.
Ken Raeburn [Tue, 29 Nov 1994 20:31:40 +0000 (20:31 +0000)]
* tc-alpha.c (in_range_signed, in_range_unsigned): New routines, split from
in_range.
(in_range): Deleted. All calls changed to in_range_*signed.
(create_lita_section): Macro deleted. Single use expanded in place.
(alpha_ip): Handle `t' and `8' operand types.
(md_apply_fix): Handle BFD_RELOC_12_PCREL. Print name of unhandled relocation
types.
* alpha-opcode.h: Added HALT and DRAINA. Disabled MOVI, since it doesn't work,
and isn't supported by the native assembler.
Stan Shebs [Mon, 28 Nov 1994 23:26:58 +0000 (23:26 +0000)]
* top.c (command_line_input): If annotation suffix is NULL,
replace it with an empty string.
(read_next_line): Pass "command" as annotation suffix to
command_line_input.
Ian Lance Taylor [Mon, 28 Nov 1994 16:21:59 +0000 (16:21 +0000)]
* gas/mips/ld.d: Adjust to work for both big and little endian
code.
* gas/mips/ld.s, gas/mips/lif-empic.d: Likewise.
* gas/mips/lifloat.d, gas/mips/ulh-empic.d: Likewise.
* gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d: Likewise.
* gas/mips/usw.d: Likewise.
Jeff Law [Mon, 28 Nov 1994 07:54:07 +0000 (07:54 +0000)]
* config/tc-hppa.h (pa_check_eof): Declare new extern function.
(tc_frob_file): Define to call pa_check_eof.
* config/tc-hppa.c (pa_check_current_space_and_subspace): New
function to verify the current space and subspace are reasonable.
Call for the appropriate pseudo-ops and before instruction parsing.
(pa_check_eof): New function to verify enter/exit and proc/procend
pairs match at EOF.
(pa_code): Simplify.
Jeff Law [Sat, 26 Nov 1994 04:39:07 +0000 (04:39 +0000)]
* tm-hppa.h (skip_trampoline_code): Add extern decl.
* hppa-tdep.c (hppa_pop_frame): Silently restart the inferior and
allow it to execute any return path trampoline code. Stop the
inferior and give the user control when the trampoline has
finished executing.
(in_solib_call_trampoline): Handle export stubs which also perform
parameter relocations.
(in_solib_return_trampoline): Likewise.
Peter Schauer [Fri, 25 Nov 1994 21:48:02 +0000 (21:48 +0000)]
Beginnings of template debugging tests.
* gdb.c++/templ-info.cc: New file to test for template
debugging capability of the compiler.
* gdb.c++/Makefile.in: Add rule to build templ-info.exp from
templ-info.cc.
* gdb.c++/templates.cc: Add explicit template instantiations
to enable compiling with -fno-implicit-templates. Add destructor
and 'value' method to T5 class for template tests.
* gdb.c++/templates.exp: Add testcases for printing of template
types, setting breakpoints on template methods and calling a
template method.
Peter Schauer [Fri, 25 Nov 1994 21:46:52 +0000 (21:46 +0000)]
* coffread.c, symfile.h (coff_getfilename): Make it static again.
* xcoffread.c (coff_getfilename): Use a static copy from
coffread.c, modified for accessing the static xcoff strtbl.
Jeff Law [Fri, 25 Nov 1994 09:21:49 +0000 (09:21 +0000)]
* hppa-tdep.c (in_solib_call_trampoline): Recognize calls through
_sr4export and $$dyncall as trampolines. Likewise for long-call
stubs and parameter relocation stubs.
(in_solib_return_trampoline): Recognize a return trampoline for
return value relocation stubs.
Jeff Law [Fri, 25 Nov 1994 07:32:51 +0000 (07:32 +0000)]
* hp-symtab.h: New file describing the debug symbols emitted
by the HP C compilers.
* hpux-symtab.h: Deleted.
NOTE: hpux-symtab.h was the HP copyrighted description and data structures
for the debug symbols emitted by the various HP compilers (C, C++, Fortran,
Cobol, Pascal, Modula-2, Cobol, etc).
hp-symtab.h is my rewritten version which only describes the debug symbols
used by the HP C compiler. hp-symtab.h is intended to be copyrighted
by the FSF as part of GDB.