OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
23 years ago* gdb.base/help.exp: Update pattern to exclue `print-load-map'
Jim Blandy [Tue, 5 Jun 2001 05:03:44 +0000 (05:03 +0000)]
* gdb.base/help.exp: Update pattern to exclue `print-load-map'
command.

23 years ago * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
Alan Modra [Tue, 5 Jun 2001 04:39:31 +0000 (04:39 +0000)]
* elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.

23 years ago* ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
Alexandre Oliva [Mon, 4 Jun 2001 19:33:12 +0000 (19:33 +0000)]
* ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
with_gcc]: Use `gcc -shared' to build a shared library.

23 years ago* ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared
Alexandre Oliva [Mon, 4 Jun 2001 19:25:10 +0000 (19:25 +0000)]
* ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared
archives.

23 years ago * library/srcbar.itcl (constructor): Set the toolbar's initial
Keith Seitz [Mon, 4 Jun 2001 17:19:13 +0000 (17:19 +0000)]
* library/srcbar.itcl (constructor): Set the toolbar's initial
state.

23 years ago * library/interface.tcl (gdb_update_hook): Mark as deprecated.
Keith Seitz [Mon, 4 Jun 2001 15:49:53 +0000 (15:49 +0000)]
* library/interface.tcl (gdb_update_hook): Mark as deprecated.
(gdbtk_update): Dispatch and UpdateEvent, too.
* library/ehandler.ith (update): New event handler.
* library/gdbevent.ith (UpdateEvent): New event.
* library/gdbevent.itb (UpdateEvent::constructor): New method.
(UpdateEvent::get): New method.
* library/kod.ith (udpate): Match event handler definition.
* library/kod.itb (update): Ditto.
(build_win): Pass dummy argument to update method.
(top): Ditto.
(up): Ditto.
(set_variable): Ditto.
* library/memwin.ith (update): Match event handler definition.
* library/memwin.itb (update): Ditto.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
* library/process.ith (update): Match event handler definition.
* library/process.itb (update): Ditto.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
(build_win): Pass dummy argument to update method.
* library/regwin.ith (update): Match event handler definition.
* library/regwin.itb (update): Ditto.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
(build_win): Pass dummy argument to update method.
(but3): Ditto.
(unedit): Ditto.
* library/stackwin.ith (update): Match event handler definition.
* library/stackwin.itb (update): Ditto.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
(build_win): Pass dummy argument to update method.
* library/tdump.tcl (update): Match event handler definition.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
(build_win): Pass dummy argument to update method.
* library/variables.tcl (update): Match event handler definition.
(build_win): Pass dummy argument to update method.
* library/locals.tcl (update): Match event handler definition.
(constructor): Pass dummy argument to update method.
* library/watch.tcl (update): Match event handler definition.
Pass dummy argument to VariableWin::update.
(add): Pass dummy argument to update method.
* library/srcwin.ith (update): New method.
(update_hook_init): Remove.
* library/srcwin.itb (update): New method.
(constructor): Remove gdb_update_hook.
(destructor): Ditto.
* tclIndex: Regenerate.

23 years ago * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
Eli Zaretskii [Mon, 4 Jun 2001 07:53:08 +0000 (07:53 +0000)]
* mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
(mips_set_processor_type_command): Remove unused variable j.
(mips_breakpoint_from_pc): Declare breakpoint instruction
sequences as unsigned char, to avoid compiler warnings.

23 years ago * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
Eli Zaretskii [Mon, 4 Jun 2001 07:45:08 +0000 (07:45 +0000)]
* source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
instead of system-specific define's like _WIN32 and __MSDOS__.
Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
ROOTED_P.
(top-level): #include "filenames.h".

* solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
instead of SLASH_CHAR, ROOTED_P and SLASH_P.
(top-level): #include "filenames.h".

* defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
(SLASH_STRING): Define only for _WIN32.

* completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
__MSDOS_.

* cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P.  Replace
system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
(top-level): #include "filenames.h".

23 years ago*** empty log message ***
Eli Zaretskii [Mon, 4 Jun 2001 07:29:29 +0000 (07:29 +0000)]
*** empty log message ***

23 years ago * go32-nat.c (go32_wait): Change the return value to ptid_t.
Eli Zaretskii [Mon, 4 Jun 2001 07:29:00 +0000 (07:29 +0000)]
* go32-nat.c (go32_wait): Change the return value to ptid_t.

* config/djgpp/fnchange.lst: Add two new files in the
gdb/testsuite/gdb.c++/ directory to the remapped names.

* config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.

23 years ago* sh-opc.h (sh_table): Complete last element entry to avoid
Alexandre Oliva [Mon, 4 Jun 2001 04:10:38 +0000 (04:10 +0000)]
* sh-opc.h (sh_table): Complete last element entry to avoid
compiler warning.

23 years ago2001-06-02 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sun, 3 Jun 2001 02:41:58 +0000 (02:41 +0000)]
2001-06-02  H.J. Lu  <hjl@gnu.org>

* elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
and ELFOSABI_HPUX.
* elf64-hppa.c (elf64_hppa_object_p): Likewise.

23 years ago2001-06-02 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 2 Jun 2001 19:42:40 +0000 (19:42 +0000)]
2001-06-02  H.J. Lu  <hjl@gnu.org>

* aout-cris.c (MACHTYPE_OK): New. Defined.

23 years ago * section.c (_bfd_strip_section_from_output): Handle NULL
Hans-Peter Nilsson [Sat, 2 Jun 2001 19:05:34 +0000 (19:05 +0000)]
* section.c (_bfd_strip_section_from_output): Handle NULL
output_section.

23 years ago2001-06-02 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 2 Jun 2001 17:32:09 +0000 (17:32 +0000)]
2001-06-02  H.J. Lu  <hjl@gnu.org>

* config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
rs6000coff64_vec only if BFD64 is defined.
(powerpc64-*-aix*): Enable only if BFD64 is defined.

23 years ago2001-06-02 H.J. Lu <hjl@gnu.org>
H.J. Lu [Sat, 2 Jun 2001 15:46:43 +0000 (15:46 +0000)]
2001-06-02  H.J. Lu  <hjl@gnu.org>

* coff-ia64.c (ia64coff_object_p): Rewrite with
external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.

23 years agoExpand the gdbarch per-architecture data vector as needed, rather
Jim Blandy [Sat, 2 Jun 2001 03:50:56 +0000 (03:50 +0000)]
Expand the gdbarch per-architecture data vector as needed, rather
than requiring that all per-architecture data be registered before
the first gdbarch object is allocated.
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
declarations and definitions.
(check_gdbarch_data): New function, and declaration.
(gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
zero is good enough.
(free_gdbarch_data): Tolerate a null data pointer.  Free only
those data items gdbarch->data actually has allocated.
(set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
(gdbarch_update_p): No need to call init_gdbarch_data.

23 years agoMake alignment of struct arguments in inferior function calls comply with
Kevin Buettner [Sat, 2 Jun 2001 01:37:20 +0000 (01:37 +0000)]
Make alignment of struct arguments in inferior function calls comply with
the IA-64 Software Conventions and Runtime manual.

23 years ago2001-06-01 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Sat, 2 Jun 2001 00:36:20 +0000 (00:36 +0000)]
2001-06-01  Michael Snyder  <msnyder@redhat.com>

* thread.c (delete_step_resume_breakpoint): New function.
Maintain internal consistency of the thread list while deleting
a step_resume_breakpoint.
* gdbthread.h (delete_step_resume_breakpoint): Export.
* breakpoint.c (bpstat_find_step_resume_breakpoint):
Make thread-aware: don't return a step_resume_breakpoint
for the wrong thread.
* infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
instead of delete_breakpoint_current_contents.
(fetch_inferior_event): Ditto.
(handle_inferior_event): Call delete_step_resume_breakpoint
instead of delete_breakpoint.

23 years ago2001-06-01 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 1 Jun 2001 23:23:19 +0000 (23:23 +0000)]
2001-06-01  Michael Snyder  <msnyder@redhat.com>

* infrun.c (handle_inferior_event): After singlestepping over a
thread-specific breakpoint, use currently_stepping() to decide
whether to step or continue.

23 years ago* gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
Jim Blandy [Fri, 1 Jun 2001 22:22:25 +0000 (22:22 +0000)]
* gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
these static --- there's no reason other files should use these.

23 years ago* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Jim Blandy [Fri, 1 Jun 2001 21:17:50 +0000 (21:17 +0000)]
* partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.

23 years ago* partial-stab.h: New complaint: function_outside_compilation_unit.
Jim Blandy [Fri, 1 Jun 2001 20:37:11 +0000 (20:37 +0000)]
* partial-stab.h: New complaint: function_outside_compilation_unit.
(case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
complain, and don't try to set pst's start address.

23 years ago * library/console.itb (constructor): Pass dummy argument
Keith Seitz [Fri, 1 Jun 2001 20:05:55 +0000 (20:05 +0000)]
* library/console.itb (constructor): Pass dummy argument
to idle method.
(destructor): Ditto.

23 years ago * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
Andreas Jaeger [Fri, 1 Jun 2001 11:52:11 +0000 (11:52 +0000)]
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
relocation, small reformatting.

23 years ago * gdb.base/annota1.exp (info break): Match four or more spaces
Kevin Buettner [Fri, 1 Jun 2001 02:50:17 +0000 (02:50 +0000)]
* gdb.base/annota1.exp (info break): Match four or more spaces
after "Address".

23 years agoPrologue scanner modifications.
Kevin Buettner [Fri, 1 Jun 2001 02:39:51 +0000 (02:39 +0000)]
Prologue scanner modifications.

23 years ago * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
Kevin Buettner [Fri, 1 Jun 2001 02:22:01 +0000 (02:22 +0000)]
* ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET):  Revise to
match the location at which the kernel is placing the sigcontext
struct.

23 years ago * library/interface.tcl (gdbtk_idle): Run hooks, too,
Keith Seitz [Thu, 31 May 2001 22:11:27 +0000 (22:11 +0000)]
* library/interface.tcl (gdbtk_idle): Run hooks, too,
until they're all gone.

23 years ago2001-05-31 Michael Chastain <chastain@redhat.com>
Michael Chastain [Thu, 31 May 2001 22:04:46 +0000 (22:04 +0000)]
2001-05-31  Michael Chastain  <chastain@redhat.com>

* gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
(dm_type_int_star): Likewise.
(dm_type_long_star): Likewise.
(dm_type_void_star): Likewise.

23 years agoChangeLog for the gdb_idle_hook->GDBEventHandler::idle change.
Keith Seitz [Thu, 31 May 2001 20:35:56 +0000 (20:35 +0000)]
ChangeLog for the gdb_idle_hook->GDBEventHandler::idle change.

23 years ago * library/interface.tcl (gdb_idle_hook): Mark as deprecated.
Keith Seitz [Thu, 31 May 2001 20:32:58 +0000 (20:32 +0000)]
* library/interface.tcl (gdb_idle_hook): Mark as deprecated.
(gdbtk_idle): Dispatch an IdleEvent. gdb_idle_hook is gone.
* library/ehandler.ith (idle): New event handler.
* library/gdbevent.ith (IdleEvent): New event.
* library/console.ith (idle): Match event handler definition.
* library/console.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/kod.ith (idle): Match event handler definition.
* library/kod.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/memwin.ith (idle): Match event handler definition.
* library/memwin.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/pluginwin.itcl (stopped): Rename to "idle" and
match event handler definition.
Fix misleading comments.
* library/process.ith (idle): Match event handler definition.
* library/process.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/regwin.ith (idle): Match event handler definition.
* library/regwin.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/srcbar.itcl (idle): New method.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/srcwin.ith (idle): Match event handler definition.
* library/srcwin.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/stackwin.ith (idle): Match event handler definition.
* library/stackwin.itb (idle): Ditto.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/variables.tcl (idle): Match event handler definition.
(constructor): Remove gdb_idle_hook.
(destructor): Ditto.
* library/plugins/rhabout/rhabout.itcl (stopped): Rename
to "idle" and match new event handler definition.
* library/tclIndex: Regenerated.

23 years ago * library/interface.tcl (gdb_busy_hook): Deprecate.
Keith Seitz [Thu, 31 May 2001 15:21:41 +0000 (15:21 +0000)]
* library/interface.tcl (gdb_busy_hook): Deprecate.
(gdbtk_busy): Create and dispatch a BusyEvent instead
of running hooks.
* library/ehandler.ith (busy): New event handler.
* library/gdbevent.ith (BusyEvent): New event class.
* library/console.ith: Inherit from GDBEventHandler.
(busy): Match event handler definition.
* library/console.itb (busy): Ditto.
(constructor): Remove gdb_busy_event.
(destructor): Ditto.
* library/kod.ith (busy): Match event handler definition.
* library/kod.itb (busy): Ditto.
(constructor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/memwin.ith (busy): Match event handler definition.
* library/memwin.itb (busy): Ditto.
(constructor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/pluginwin.itcl (running): Rename to "busy" and
match event handler definition.
(consturctor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/process.ith (busy): Match event handler definition.
* library/process.itb (busy): Ditto.
(constructor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/regwin.ith (busy): Match event handler definition.
* library/regwin.itb (busy): Ditto.
(constructor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/srcbar.itcl (constructor): Remove gdb_busy_hook.
(destructor): Ditto.
(busy): New method.
* library/srcwin.ith (busy): Match event handler definition.
* library/srcwin.itb (busy): Ditto.
Only do the "busy" stuff if do_updates is set.
(toggle_updates): Remove gdb_busy_hook.
(constructor): Ditto.
(destructor): Ditto.
* library/stackwin.ith (busy): Match event handler definition.
* library/stackwin.itb (busy): Ditto.
(constructor): Remove gdb_busy_hook.
(destructor): Ditto.
* library/variables.tcl (constructor): Ditto.
(destructor): Ditto.
(disable_ui): Rename to "busy" and match event handler
definition.
* library/plugins/rhabout/rhabout.itcl (running): Rename
to "busy" and match new event handler definition.
* library/tclIndex: Regenerated.

23 years ago* partial-stab.h: Revert previous patch.
Christopher Faylor [Thu, 31 May 2001 03:41:31 +0000 (03:41 +0000)]
* partial-stab.h: Revert previous patch.

23 years ago* partial-stab.h: Consistently guard against pst being NULL.
Christopher Faylor [Thu, 31 May 2001 02:58:57 +0000 (02:58 +0000)]
* partial-stab.h: Consistently guard against pst being NULL.

23 years ago2001-05-25 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 30 May 2001 22:58:37 +0000 (22:58 +0000)]
2001-05-25  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
to consume the SIGSTOP generated by PTRACE_ATTACH.
(stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
try again to get the SIGSTOP event.
(lin_lwp_wait): Resume all threads when ignoring a signal.
This will insure that newly attached threads get resumed.

23 years ago * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
Andreas Jaeger [Wed, 30 May 2001 18:44:46 +0000 (18:44 +0000)]
* elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
(elf64_x86_64_relocate_section): Likewise.

23 years ago2001-05-25 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 30 May 2001 18:15:45 +0000 (18:15 +0000)]
2001-05-25  Michael Snyder  <msnyder@redhat.com>

* lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.

23 years ago * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
Alan Modra [Wed, 30 May 2001 14:30:33 +0000 (14:30 +0000)]
* elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
millicode.  Don't allocate .got and .rela.got space here..
(elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
(elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
.rela.plt here..
(hppa_handle_PIC_calls): ..nor here..
(allocate_plt_and_got): ..instead do it all here.  New function.
(elf32_hppa_size_dynamic_sections): Allocate local .got space and
call allocate_plt_and_got.  No need to zap .got if not dynamic.
(elf32_hppa_final_link): Call regular bfd_final_link instead of
gc_common_final_link.
(WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
(elf32_hppa_relocate_section): Use it here.
(elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
dynamic_sections_created.
(hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.

23 years ago * gdb.base/completion.exp (INPUTRC): Set this environment variable
Kevin Buettner [Wed, 30 May 2001 02:54:41 +0000 (02:54 +0000)]
* gdb.base/completion.exp (INPUTRC): Set this environment variable
to a known value in order to get consistent results regardless
of the setting of INPUTRC or the presence or contents of .inputrc.

23 years ago* symfile.c (compare_psymbols, compare_symbols): Declare using
Alexandre Oliva [Tue, 29 May 2001 10:45:10 +0000 (10:45 +0000)]
* symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.
* minsyms.c (compare_minimal_symbols): Likewise.
* coffread.c (find_targ_sec): Likewise.
* elfread.c (free_elfinfo, elf_locate_sections): Likewise.
* mipsread.c (alphacoff_locate_sections): Likewise.
* mdebugread.c (compare_blocks): Likewise.

23 years ago* symfile.c (compare_psymbols, compare_symbols): Declare using
Alexandre Oliva [Tue, 29 May 2001 10:20:27 +0000 (10:20 +0000)]
* symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.

23 years ago* ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++ shared
Alexandre Oliva [Mon, 28 May 2001 21:05:35 +0000 (21:05 +0000)]
* ltcf-cxx.sh (osf3/osf4/osf5): Support creation of C++  shared
libraries when using g++ with native linker.

23 years ago* ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256.
Alexandre Oliva [Mon, 28 May 2001 20:56:20 +0000 (20:56 +0000)]
* ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256.

23 years ago * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
Andreas Jaeger [Mon, 28 May 2001 15:45:47 +0000 (15:45 +0000)]
* elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
generic version since we want a hashsize of 4.
(elf_backend_size_info): Likewise.

23 years agoHandle MIPS64 relocs which use a non-1 valued int_rels_per_ext_rel
Nick Clifton [Mon, 28 May 2001 11:57:54 +0000 (11:57 +0000)]
Handle MIPS64 relocs which use a non-1 valued int_rels_per_ext_rel

23 years agoSupport big endian PLT entries.
Nick Clifton [Mon, 28 May 2001 10:50:31 +0000 (10:50 +0000)]
Support big endian PLT entries.

23 years agoFix some entries.
Alan Modra [Mon, 28 May 2001 10:37:50 +0000 (10:37 +0000)]
Fix some entries.

23 years ago * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
Alan Modra [Mon, 28 May 2001 10:12:04 +0000 (10:12 +0000)]
* elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
for symbols forced local that need plabels.
(elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
.plt.rela for local syms if non-shared.
(hppa_build_one_stub): Mask lsb of plt.offset.
(elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
(clobber_millicode_symbols): Correct comment.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.

23 years agoAdd support for .uahword, .uaword and .uaxword pseudo ops
Nick Clifton [Mon, 28 May 2001 09:23:53 +0000 (09:23 +0000)]
Add support for .uahword, .uaword and .uaxword pseudo ops

23 years ago * solib.c (update_solib_list): Move target_resize_to_sections()
Nicholas Duffek [Sat, 26 May 2001 00:55:11 +0000 (00:55 +0000)]
* solib.c (update_solib_list): Move target_resize_to_sections()
into solib_map_sections() loop.
(info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
bfd_get_arch_size() fails.

23 years ago * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
Nicholas Duffek [Sat, 26 May 2001 00:52:15 +0000 (00:52 +0000)]
* Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
solib-osf.o.
* config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
with solib-osf.o and solib.o.
* config/alpha/alpha-osf2.mh: Likewise.
* config/alpha/alpha-osf3.mh: Likewise.
* solib-osf.c: New file, renamed and largely rewritten from
osfsolib.c.

23 years ago2001-05-25 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 25 May 2001 22:50:27 +0000 (22:50 +0000)]
2001-05-25  H.J. Lu  <hjl@gnu.org>

* Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
(BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
(coff-rs6000.lo): Remove the old dependency.
* Makefile.in: Rebuild.

* configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
coff-rs6000.lo.

23 years ago2001-05-25 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 25 May 2001 21:23:48 +0000 (21:23 +0000)]
2001-05-25  H.J. Lu  <hjl@gnu.org>

* coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
rs6000coff_core_file_matches_executable_p,
rs6000coff_core_file_failing_command and
rs6000coff_core_file_failing_signal only if AIX_CORE is
defined.
(pmac_xcoff_vec): Likewise.
* coff64-rs6000.c (rs6000coff64_vec): Likewise.

23 years ago * generic/gdbtk-cmds.c (bin2hex): New function.
Keith Seitz [Fri, 25 May 2001 21:06:18 +0000 (21:06 +0000)]
* generic/gdbtk-cmds.c (bin2hex): New function.
(fromhex): New function.
(gdb_set_mem): New function.
(Gdbtk_Init): Add new command, "gdb_set_mem".
* library/memwin.itb (edit): Use "gdb_set_mem" to set
memory, not some gdb_cmd contrivance.
When sending data to gdb_set_mem, make sure that it
is properly zero-padded.

23 years ago2001-05-25 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 25 May 2001 17:46:33 +0000 (17:46 +0000)]
2001-05-25  Michael Snyder  <msnyder@redhat.com>

* remote.c (remote_write_bytes): Update 'p' packet pointer.

23 years ago* gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
Jim Blandy [Fri, 25 May 2001 17:09:48 +0000 (17:09 +0000)]
* gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
useful value, then we should fix that instead.

23 years agomonterey updates
Timothy Wall [Fri, 25 May 2001 12:42:27 +0000 (12:42 +0000)]
monterey updates

23 years ago2001-05-25 H.J. Lu <hjl@gnu.org>
H.J. Lu [Fri, 25 May 2001 06:29:21 +0000 (06:29 +0000)]
2001-05-25  H.J. Lu  <hjl@gnu.org>

* bfd-in2.h: Regenerated.
* libcoff.h: Likewise.

23 years ago * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
Alan Modra [Fri, 25 May 2001 03:46:49 +0000 (03:46 +0000)]
* elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
undefined millicode syms in shared libs.
(hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
(elf32_hppa_check_relocs): Likewise.
(elf32_hppa_adjust_dynamic_symbol): Likewise.
(elf32_hppa_size_dynamic_sections): Likewise.
(elf32_hppa_relocate_section): Likewise.
(elf32_hppa_finish_dynamic_symbol): Likewise.
(elf32_hppa_finish_dynamic_sections): Likewise.

23 years ago2001-05-24 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 25 May 2001 01:29:01 +0000 (01:29 +0000)]
2001-05-24  Michael Snyder  <msnyder@redhat.com>

* gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
Don't require that the main thread and the manager thread are the
first in the list.

23 years ago * solist.h (struct so_list): Document the requirement that
Nicholas Duffek [Fri, 25 May 2001 01:27:11 +0000 (01:27 +0000)]
* solist.h (struct so_list): Document the requirement that
current_sos initialize some fields to 0.

23 years ago2001-05-24 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Fri, 25 May 2001 01:10:20 +0000 (01:10 +0000)]
2001-05-24  Michael Snyder  <msnyder@redhat.com>

* gdb.threads/pthreads.exp (test_startup): Relax test for thread
debugging.  If test fails, issue an "unsupported" not a "fail".

23 years agoDon't assume that short is shorter than int.
Jim Blandy [Fri, 25 May 2001 00:01:29 +0000 (00:01 +0000)]
Don't assume that short is shorter than int.
* gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
assume that shorts are smaller than ints.  On a 16-bit machine,
this isn't true.
("print unsigned char == (~0)"): Add test that verifies that ~0,
an int, is not equal to ~0 stored in an unsigned char.  This tests
the same thing that the previous test meant to, but works on
16-bit machines, too.
("print unsigned char != (~0)"): Same test, complemented.

23 years agoSupport for xcoff64, enable ld for aix
Tom Rix [Thu, 24 May 2001 21:06:16 +0000 (21:06 +0000)]
Support for xcoff64, enable ld for aix

23 years agoSupport for xcoff64
Tom Rix [Thu, 24 May 2001 20:50:50 +0000 (20:50 +0000)]
Support for xcoff64

23 years ago* gnu-nat.c: Include <ctype.h>.
Mark Kettenis [Thu, 24 May 2001 20:05:07 +0000 (20:05 +0000)]
* gnu-nat.c: Include <ctype.h>.
(gnu_pid_to_exec_file): Add PID parameter.
(set_sig_thread_cmd): Use PIDGET on return value from
thread_id_to_pid.
(proc_string): Use MERGEPID to construct argument to
pid_to_thread_id.

23 years ago2001-05-24 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 24 May 2001 19:54:41 +0000 (19:54 +0000)]
2001-05-24  Michael Snyder  <msnyder@redhat.com>

* gdb.threads/pthreads.exp (all_threads_running): Add an explicit
test for (full_coverage == 0).  This makes the test run faster,
and prevents dejagnu getting out of step.

23 years ago2001-05-21 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Thu, 24 May 2001 18:30:10 +0000 (18:30 +0000)]
2001-05-21  Michael Snyder  <msnyder@redhat.com>

* gdb.base/long_long.exp: Allow for targets with 4-byte short.

23 years ago * gdb.base/finish.exp (finish_void): Revise pattern for
Kevin Buettner [Thu, 24 May 2001 01:14:15 +0000 (01:14 +0000)]
* gdb.base/finish.exp (finish_void): Revise pattern for
stopping on the call statement to not permit stopping at
the start of the instructions comprising the call sequence.

23 years ago* elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
Alexandre Oliva [Wed, 23 May 2001 23:56:22 +0000 (23:56 +0000)]
* elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
s/ENTIRES/ENTRIES/.

23 years ago2001-05-19 Michael Chastain <chastain@redhat.com>
Michael Chastain [Wed, 23 May 2001 19:04:13 +0000 (19:04 +0000)]
2001-05-19  Michael Chastain  <chastain@redhat.com>

* gdb.base/callfuncs.exp: Make all test names unique.
* gdb.base/commands.exp: Make all test names unique.
* gdb.base/condbreak.exp: Make all test names unique.
* gdb.base/dbx.exp: Make all test names unique.
* gdb.base/default.exp: Make all test names unique.
* gdb.base/define.exp: Make all test names unique.  Conform some FAIL
and TIMEOUT messages to their corresponding PASS message.
* gdb.base/ending-run.exp: Make all test names unique.
* gdb.base/long_long.exp: Remove duplicate test.

23 years agoAdd MIPS ELF64 relocs
Nick Clifton [Wed, 23 May 2001 17:36:38 +0000 (17:36 +0000)]
Add MIPS ELF64 relocs

23 years agoAdd MIPS r12k support
Nick Clifton [Wed, 23 May 2001 17:26:40 +0000 (17:26 +0000)]
Add MIPS r12k support

23 years agoChange PLT code to avoid using r2 - it used by GCC to return large startures
Nick Clifton [Wed, 23 May 2001 16:38:36 +0000 (16:38 +0000)]
Change PLT code to avoid using r2 - it used by GCC to return large startures

23 years ago2001-05-23 John Healy <jhealy@redhat.com>
John Healy [Wed, 23 May 2001 15:34:43 +0000 (15:34 +0000)]
2001-05-23  John Healy  <jhealy@redhat.com>

        * cgen.h: Increased CGEN_MAX_SYNTAX_ELEMENTS to 48.

23 years agoReplace sh_size/sh_entsize with NUM_SHDR_ENTRIES
Nick Clifton [Wed, 23 May 2001 08:23:27 +0000 (08:23 +0000)]
Replace sh_size/sh_entsize with NUM_SHDR_ENTRIES

23 years agoMore whitespace fixes.
Alan Modra [Wed, 23 May 2001 03:25:03 +0000 (03:25 +0000)]
More whitespace fixes.

23 years ago * arc-opc.c: Whitespace changes.
Alan Modra [Wed, 23 May 2001 03:12:14 +0000 (03:12 +0000)]
* arc-opc.c: Whitespace changes.

23 years ago * breakpoint.c (breakpoint_address_is_meaningful): New function.
Kevin Buettner [Wed, 23 May 2001 00:52:44 +0000 (00:52 +0000)]
* breakpoint.c (breakpoint_address_is_meaningful): New function.
(check_duplicates): Don't compare non-meaningful addresses.

23 years ago2001-05-22 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Wed, 23 May 2001 00:06:15 +0000 (00:06 +0000)]
2001-05-22  Michael Snyder  <msnyder@redhat.com>

* thread-db.c: Allow for defunct zombie threads.
(attach_thread): Do not attempt to attach zombie thread.
(thread_db_thread_alive): Return false for defunct zombie thread.
(find_new_threads_callback): Don't add defunct zombie thread to list.

23 years agoAdd support for the GNU V3 C++ ABI.
Jim Blandy [Tue, 22 May 2001 21:02:41 +0000 (21:02 +0000)]
Add support for the GNU V3 C++ ABI.
(Includes changes by Dan Berlin.)

* gnu-v3-abi.c: New file.
* minsyms.c: #include "value.h" and "cp-abi.h".
(install_minimal_symbols): Check the minimal symbol table for
symbols that look mangled in the V3 style, and select the V3 ABI
if we find any.
* Makefile.in (SFILES): Add gnu-v3-abi.c.
(COMMON_OBS): Add gnu-v3-abi.o.
(gnu-v3-abi.o): Add new rule.
(minsyms.o): Depend on $(cp_abi_h) and $(value_h).

23 years ago Update copyright info.
Keith Seitz [Tue, 22 May 2001 19:10:06 +0000 (19:10 +0000)]
Update copyright info.

23 years ago * memwin.ith (error_dialog): Declare public method.
Keith Seitz [Tue, 22 May 2001 19:02:54 +0000 (19:02 +0000)]
* memwin.ith (error_dialog): Declare public method.
* memwin.itb (error_dialog): Define.
(edit): When attempting to set memory, post an error dialog
if gdb told us an error occurred while writing the memory.

23 years ago * library/interface.tcl (gdbtk_tcl_file_changed): Handle
Keith Seitz [Tue, 22 May 2001 18:24:18 +0000 (18:24 +0000)]
* library/interface.tcl (gdbtk_tcl_file_changed): Handle
the case of empty-string files, sent by gdb when the
user requests to reset the file.
(_close_file): New proc to deal with closing an exe.
* library/srcbar.itcl (create_file_menu): Add "Close" menu
option.
(create_view_menu): Change key binding for Watch Window to
Ctrl+T to accomodate "Close" going to Ctrl+W.
* library/srctextwin.itb (config_win): Update key binding
for Watch Window.
Add key binding for Close.
(do_key): Add "close".
(_clear_cache): Finally implement. I think this works now.

23 years ago * library/variables.tcl (postMenu): Add mysterious workaround
Keith Seitz [Tue, 22 May 2001 15:46:03 +0000 (15:46 +0000)]
* library/variables.tcl (postMenu): Add mysterious workaround
for popup menu bug in Tk for windows.
Highlight the selection, too.

23 years ago* ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
Alexandre Oliva [Tue, 22 May 2001 10:40:29 +0000 (10:40 +0000)]
* ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag)
[aix4*|aix5*]: Prepend blank.

23 years ago * gdb.base/finish.exp (finish_void): Allow "finish" command to
Kevin Buettner [Tue, 22 May 2001 00:25:27 +0000 (00:25 +0000)]
* gdb.base/finish.exp (finish_void): Allow "finish" command to
stop on the call statement as well as the statement after the
call.

23 years ago* values.c (value_primitive_field): If we're extracting a base
Jim Blandy [Mon, 21 May 2001 20:08:59 +0000 (20:08 +0000)]
* values.c (value_primitive_field): If we're extracting a base
class, then the type of the result should be the base class being
extracted, not the type of which it is a base class.

23 years ago* value.h (struct value): Doc fix, and rearrange members to place
Jim Blandy [Mon, 21 May 2001 20:02:22 +0000 (20:02 +0000)]
* value.h (struct value): Doc fix, and rearrange members to place
them near their explanations.

23 years ago2001-05-21 Michael Snyder <msnyder@redhat.com>
Michael Snyder [Mon, 21 May 2001 18:48:26 +0000 (18:48 +0000)]
2001-05-21  Michael Snyder  <msnyder@redhat.com>

* remote.c (remote_async_wait): Added new variable fieldsize.
Add fieldsize (return value of hex2bin) to string pointer p.

23 years ago * dwarf2.c (decode_line_info): Fix error message.
Andreas Jaeger [Mon, 21 May 2001 11:52:42 +0000 (11:52 +0000)]
* dwarf2.c (decode_line_info): Fix error message.
(read_abbrevs): Fix test for offset as suggested by Alan Modra and
adjust error message.

23 years agoFormatting tweak.
Jim Blandy [Mon, 21 May 2001 05:30:59 +0000 (05:30 +0000)]
Formatting tweak.

23 years ago* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
Alexandre Oliva [Sun, 20 May 2001 19:02:56 +0000 (19:02 +0000)]
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254.  Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.

23 years agoImprove HC11 simulator to support HC12
Stephane Carrez [Sun, 20 May 2001 15:40:27 +0000 (15:40 +0000)]
Improve HC11 simulator to support HC12

23 years ago * dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
Stephane Carrez [Sun, 20 May 2001 15:36:29 +0000 (15:36 +0000)]
* dv-m68hc11sio.c (m68hc11sio_tx_poll): Always check for
pending interrupts.
* interrupts.c (interrupts_process): Keep track of the last number
of masked insn cycles.
(interrupts_initialize): Clear last number of masked insn cycles.
(interrupts_info): Report them.
(interrupts_update_pending): Compute clear and set masks of
interrupts and clear the interrupt bits before setting them
(due to SCI interrupt sharing).
* interrupts.h (struct interrupts): New members last_mask_cycles
and xirq_last_mask_cycles.

23 years ago * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
Stephane Carrez [Sun, 20 May 2001 11:53:42 +0000 (11:53 +0000)]
* m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
(m68hc11_analyze_instruction): Update the pc correctly.
(m68hc11_guess_from_prologue): Take into account the stack correction
for the saving address.

23 years ago2001-05-07 Daniel Berlin <dan@cgsoftware.com>
Daniel Berlin [Sat, 19 May 2001 15:20:14 +0000 (15:20 +0000)]
2001-05-07  Daniel Berlin  <dan@cgsoftware.com>

Changes by Jim Ingham:

* values.c (value_change_enclosing_type): New function.  If the
new enclosing type is larger than the old one, we need to allocate
more space.
* value.h: Add value_change_enclosing_type prototype.
* valops.c (value_cast): Use it.
(value_assign): Use it.
(value_addr): Use it.
(value_ind): Use it.
(value_full_object): Use it.

2001-05-07  Daniel Berlin  <dan@cgsoftware.com>

* values.c (value_static_field): Handle static fields that have a constant value.

23 years ago * library/managedwin.ith (_geometry): Use a protected variable
Keith Seitz [Fri, 18 May 2001 22:57:30 +0000 (22:57 +0000)]
* library/managedwin.ith (_geometry): Use a protected variable
instead of a global from ManagedWin::reveal.
(open): Make arg list reflect managedwin.itb.
* library/managedwin.itb (window_name): Use class variable
_top instead of recomputing the toplevel every time.
(reveal): Ditto.
Use class variable "_geometry" instead of global variable.
(shutdown): Do not save ModalDialogs.
(_create): If centering the new window, use libgui's
center_window to do it.

23 years agoIt appears that I forgot to check this in!
Keith Seitz [Fri, 18 May 2001 22:49:34 +0000 (22:49 +0000)]
It appears that I forgot to check this in!

* generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid
argument to match gdb's new "ptid_t" pids.