binutils-gdb.git
21 years ago* elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): Detect (ctor)
Alexandre Oliva [Wed, 9 Apr 2003 02:55:40 +0000 (02:55 +0000)]
* elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): Detect (ctor)
pointer size from ABI, not arch_bits_per_address.

21 years ago * mips.h: Correct comment typo.
Alan Modra [Wed, 9 Apr 2003 00:12:24 +0000 (00:12 +0000)]
* mips.h: Correct comment typo.

21 years ago*** empty log message ***
gdbadmin [Wed, 9 Apr 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Wed, 9 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
Alan Modra [Tue, 8 Apr 2003 23:01:47 +0000 (23:01 +0000)]
* config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.

21 years ago2003-04-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 8 Apr 2003 21:56:10 +0000 (21:56 +0000)]
2003-04-08  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
(d10v_gdbarch_init): Do not set saved_pc_after_call.
* infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
conditionally, use frame_pc_unwind as an alternative.  Add
comments.
* arch-utils.c (init_frame_pc_default): Only call
SAVED_PC_AFTER_CALL when available.

21 years ago2003-04-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 8 Apr 2003 21:48:40 +0000 (21:48 +0000)]
2003-04-08  Andrew Cagney  <cagney@redhat.com>

* gdb792.exp: Skip when C++.

21 years ago2003-04-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 8 Apr 2003 21:25:33 +0000 (21:25 +0000)]
2003-04-08  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Delete
references to EXTRA_FRAME_INFO.

21 years ago2003-04-08 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 8 Apr 2003 21:20:06 +0000 (21:20 +0000)]
2003-04-08  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Delete
PRINT_TYPELESS_INTEGER.

21 years ago2003-04-08 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 8 Apr 2003 19:21:15 +0000 (19:21 +0000)]
2003-04-08  Elena Zannoni  <ezannoni@redhat.com>

        * infrun.c (stop_soon): Rename from stop_soon_quietly.
(struct inferior_status): Rename stop_soon_quietly field to stop_soon.
(clear_proceed_status): Rename stop_soon_quietly to stop_soon.
(start_remote): Ditto.
(handle_inferior_event): Ditto.
(save_inferior_status): Ditto.
(restore_inferior_status): Ditto.
* infcmd.c (attach_command): Ditto.
* fork-child.c (startup_inferior): Ditto.
        * inferior.h (stop_soon): Rename from stop_soon_quietly.
* alpha-tdep.c (heuristic_proc_start): Ditto.
* mips-tdep.c (heuristic_proc_start): Ditto.
* solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
* solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
* solib-osf.c (osf_solib_create_inferior_hook): Ditto.
* solib-irix.c (irix_solib_create_inferior_hook): Ditto.
* remote-vx.c (vx_create_inferior): Ditto.

21 years ago2003-04-08 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 8 Apr 2003 18:52:04 +0000 (18:52 +0000)]
2003-04-08  Elena Zannoni  <ezannoni@redhat.com>

* infrun.c (stop_soon_quietly): Make it an enum, to better
override the default behavior of handle_inferior_event.
(clear_proceed_status): Update uses of stop_soon_quietly to
reflect that it is now an enum.
(start_remote): Ditto.
(handle_inferior_event): Change logic a bit if stop_soon_quietly
is set to handle the new GNU/Linux kernel behavior for
attach/sigstop.  Update uses of stop_soon_quietly.
* inferior.h (enum stop_kind): New enum.
* infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
Reset normal handle_inferior_event behavior, afterwards.
* fork-child.c (startup_inferior): Update.
* alpha-tdep.c (heuristic_proc_start): Update.
* solib-svr4.c (svr4_solib_create_inferior_hook): Update.
* solib-sunos.c (sunos_solib_create_inferior_hook): Update.
* solib-osf.c (osf_solib_create_inferior_hook): Update.
* solib-irix.c (irix_solib_create_inferior_hook): Update.
* remote-vx.c (vx_create_inferior): Update.
* mips-tdep.c (heuristic_proc_start): Update.

21 years ago* as.c (perform_an_assembly_pass): If using cgen, call gas_cgen_begin.
Nick Clifton [Tue, 8 Apr 2003 12:47:08 +0000 (12:47 +0000)]
* as.c (perform_an_assembly_pass): If using cgen, call gas_cgen_begin.
* cgen.c (gas_cgen_begin): New function.  If flag_signed_overflow_ok is set
call cgen_set_signed_overflow_ok otherwise call cgen_clear_signed_overflow_ok.
* cgen.h: Prototype gas_cgen_begin.
* testsuite/gas/m32r/m32r.exp: Run signed-relocs test.
* testsuite/gas/m32r/signed-relocs.s: New file: Test signed relocs.
* testsuite/gas/m32r/signed-relocs.d: New file: Expected results

21 years ago* ia64-ic.tbl (fr-readers): Add mem-writers-fp.
Nick Clifton [Tue, 8 Apr 2003 09:50:07 +0000 (09:50 +0000)]
* ia64-ic.tbl (fr-readers): Add mem-writers-fp.
* ia64-asmtab.c: Regenerate.
* gas/ia64/dependency-1.s: New file: Test read before write dependency.
* gas/ia64/dependency-1.d: New file: Expected assembly results.
* gas/ia64/ia64.exp: Run the new test.

21 years ago* mips-dis.c (mips_gpr_names_newabi): Reverted previous patch.
Alexandre Oliva [Tue, 8 Apr 2003 07:14:47 +0000 (07:14 +0000)]
* mips-dis.c (mips_gpr_names_newabi): Reverted previous patch.

21 years ago2003-04-04 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Tue, 8 Apr 2003 01:40:31 +0000 (01:40 +0000)]
2003-04-04  Elena Zannoni  <ezannoni@redhat.com>

* disasm.c (dump_insns):  Move variables inside loop, or they will
        be freed more than once, causing wild memory corruptions.
(gdb_disassembly): Look for the substring "-thread",
        instead of "-threads" in the target name, to make sure to find
        the 'multi-thread' target.  Also, make sure we do the right thing
        with the "core" target.

21 years ago* mips-dis.c (mips_gpr_names_newabi): $12-$15 are named $t4-$t7.
Alexandre Oliva [Tue, 8 Apr 2003 00:39:16 +0000 (00:39 +0000)]
* mips-dis.c (mips_gpr_names_newabi): $12-$15 are named $t4-$t7.

21 years ago*** empty log message ***
gdbadmin [Tue, 8 Apr 2003 00:00:31 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Tue, 8 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago * elfn32-mips.c (elf32_mips_grok_prstatus): Adjust core file related
Kevin Buettner [Mon, 7 Apr 2003 20:08:10 +0000 (20:08 +0000)]
* elfn32-mips.c (elf32_mips_grok_prstatus): Adjust core file related
constants for n32 ABI.

21 years ago * mips-tdep.c (mips_print_fp_register): New function, created from
Kevin Buettner [Mon, 7 Apr 2003 18:38:04 +0000 (18:38 +0000)]
* mips-tdep.c (mips_print_fp_register): New function, created from
do_fp_register_row().  Registers are now (also) printed as hex.
Only one register is printed per row.
(mips_print_register, do_fp_register_row): Print floating point
registers with mips_print_fp_register().

21 years agooops - omitted from previous delta
Nick Clifton [Mon, 7 Apr 2003 10:09:54 +0000 (10:09 +0000)]
oops - omitted from previous delta

21 years ago * write.c (write_relocs): Remove unused variable.
Thiemo Seufer [Mon, 7 Apr 2003 03:54:00 +0000 (03:54 +0000)]
* write.c (write_relocs): Remove unused variable.

21 years ago*** empty log message ***
gdbadmin [Mon, 7 Apr 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Mon, 7 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago2003-04-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 19:25:04 +0000 (19:25 +0000)]
2003-04-06  Andrew Cagney  <cagney@redhat.com>

* valprint.h (inspect_it): Add extern declaration.
* objc-lang.c (value_nsstring): Avoid assignment inside of "if".
(selectors_info, classes_info): Ditto.
(find_objc_msgcall): Fix indentation.
(objc_printstr): Delete extern declarations.

21 years ago2003-04-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 19:08:17 +0000 (19:08 +0000)]
2003-04-06  Andrew Cagney  <cagney@redhat.com>

* arm-tdep.c (arm_frameless_function_invocation): Fix typo.

21 years ago2003-04-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 18:36:23 +0000 (18:36 +0000)]
2003-04-06  Andrew Cagney  <cagney@redhat.com>

* frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
Update comment.
* frame.c (legacy_saved_regs_this_id): Update.
(legacy_get_prev_frame): Update.
* xstormy16-tdep.c: Update comment.
* sparc-tdep.c (sparc_frame_chain): Update comment.
* blockframe.c (legacy_frame_chain_valid): Update.

21 years ago2003-04-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 14:50:15 +0000 (14:50 +0000)]
2003-04-06  Andrew Cagney  <cagney@redhat.com>

* valprint.c (val_print_type_code_int): Delete #ifdef
PRINT_TYPELESS_INTEGER code.

21 years ago2003-04-06 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 14:25:07 +0000 (14:25 +0000)]
2003-04-06  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
(CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
multi-arch definition.
* gdbarch.h: Re-generate.

21 years agoAdd notes about the target specific nature of i386 PE command line options.
Nick Clifton [Sun, 6 Apr 2003 09:38:11 +0000 (09:38 +0000)]
Add notes about the target specific nature of i386 PE command line options.

21 years ago* simops.c (OP_40): Delete. Move code to...
Nick Clifton [Sun, 6 Apr 2003 08:51:04 +0000 (08:51 +0000)]
* simops.c (OP_40): Delete.  Move code to...
* v850-igen.c (): ...Here. Sign extend the first operand.
* simops.h (OP_40): Remove prototype.

21 years ago(bfd_simple_get_relocated_section_contents): Disable free that leads to GDB
Nick Clifton [Sun, 6 Apr 2003 08:15:58 +0000 (08:15 +0000)]
(bfd_simple_get_relocated_section_contents): Disable free that leads to GDB
vs BFD memory corruption.

21 years ago* config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
Alexandre Oliva [Sun, 6 Apr 2003 03:16:20 +0000 (03:16 +0000)]
* config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
(macro): Use new macro to decide whether to emit constant address
as 32 or 64 bits if addresses are 32-bit wide but registers are
64-bit wide.

21 years ago2003-04-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sun, 6 Apr 2003 01:13:59 +0000 (01:13 +0000)]
2003-04-05  Andrew Cagney  <cagney@redhat.com>

Eliminate FRAME_FIND_SAVED_REGS.
* config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
Change FSR parameter to a pointer.
* config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
Assume FSR parameter is a pointer.
* hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
Make fsr a pointer.
* hppa-tdep.c (hppa_frame_find_saved_regs): New function.
(hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
saved_regs a pointer.
(hppa_frame_saved_pc): Ditto.
(find_dummy_frame_regs): Make frame_saved_regs a pointer
(hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
pointer.
(restore_pc_queue): Make fsr a pointer.
(hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
(hppa_frame_chain): Make saved_regs a pointer, call
hppa_frame_init_saved_regs.
* sparc-tdep.c: Include "gdb_assert.h".
(sparc_frame_find_saved_regs): Replace internal_error with
gdb_assert.
* remote-vxsparc.c (vx_read_register): Delete reference to
FRAME_FIND_SAVED_REGS.
* gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
* gdbarch.h: Regenerate.
* frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
(deprecated_get_frame_saved_regs): Delete declaration.
(struct frame_saved_regs): Delete definition.
* frame.c (deprecated_get_frame_saved_regs): Delete function.
* config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
(hppa_frame_find_saved_regs): Delete declaration.
(FRAME_FIND_SAVED_REGS): Delete macro.
(DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
* config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
FRAME_FIND_SAVED_REGS in comment.

21 years agodaily update
Alan Modra [Sun, 6 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sun, 6 Apr 2003 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-04-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 5 Apr 2003 18:54:38 +0000 (18:54 +0000)]
2003-04-05  Andrew Cagney  <cagney@redhat.com>

* frame.c (frame_func_unwind, get_frame_func): New functions.
* frame.h (get_frame_func, frame_func_unwind): Declare.
(struct frame_info): Add field "prev_func" for caching the
previous frame's function address.
* arm-tdep.c (arm_frameless_function_invocation): Combine
get_pc_function_start and get_frame_pc into get_frame_func.
* sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
(sh64_nofp_frame_init_saved_regs): Ditto.
* s390-tdep.c (s390_function_start): Ditto.
* rs6000-tdep.c (rs6000_pop_frame): Ditto.
(rs6000_frameless_function_invocation): Ditto.
(rs6000_frame_saved_pc): Ditto.
* m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
* ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
* i386-tdep.c (i386_frameless_signal_p): Ditto.
(i386_frame_init_saved_regs): Ditto.
* hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
* d10v-tdep.c (d10v_frame_unwind_cache): Combine
get_pc_function_start and frame_pc_unwind into frame_func_unwind.
* cris-tdep.c (cris_frame_init_saved_regs): Ditto.
* blockframe.c (frameless_look_for_prologue): Ditto.

21 years ago2003-04-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 5 Apr 2003 15:49:54 +0000 (15:49 +0000)]
2003-04-05  Andrew Cagney  <cagney@redhat.com>

* frame.c (legacy_get_prev_frame): Link prev to next at the
function start.  Update comments.

21 years ago2003-04-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 5 Apr 2003 15:39:34 +0000 (15:39 +0000)]
2003-04-05  Andrew Cagney  <cagney@redhat.com>

* frame.c (get_frame_id): Update comment.
(legacy_get_prev_frame): Update comment.
* gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
* gdbarch.h: Regenerate.
* config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
* frame.h: Delete #ifdef EXTRA_FRAME_INFO code.

21 years ago2003-04-05 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 5 Apr 2003 15:19:12 +0000 (15:19 +0000)]
2003-04-05  Andrew Cagney  <cagney@redhat.com>

* stack.c (print_frame_info): Use get_frame_pc.

21 years ago * gdb.base/break.exp: marker4() is defined at line 46 when compiled
Stephane Carrez [Sat, 5 Apr 2003 13:35:25 +0000 (13:35 +0000)]
* gdb.base/break.exp: marker4() is defined at line 46 when compiled
with -DPROTOTYPES.

21 years ago * gas/m68hc11/bug-1825.d (_table): Update.
Stephane Carrez [Sat, 5 Apr 2003 13:09:36 +0000 (13:09 +0000)]
* gas/m68hc11/bug-1825.d (_table): Update.
* gas/m68hc11/bug-1825.s (_table): Add tests for 16-bit absolute relocs

21 years ago * gas/m68hc11/insns.s: Add %page and %addr checks.
Stephane Carrez [Sat, 5 Apr 2003 12:54:00 +0000 (12:54 +0000)]
* gas/m68hc11/insns.s: Add %page and %addr checks.
* gas/m68hc11/insns12.s: Likewise.
* gas/m68hc11/insns-dwarf2.d: Update.
* gas/m68hc11/insns.d: Update.

21 years ago * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
Stephane Carrez [Sat, 5 Apr 2003 12:43:45 +0000 (12:43 +0000)]
* config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
(M6811_OP_PAGE_ADDR): New internal define.
(get_operand): New modifier %page and %addr to obtain page and
address part of a far-function.
(fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
relocs.
(fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
(find_opcode): Add comment.
(md_estimate_size_before_relax): Force relocation of
STATE_UNDEXED_OFFSET types when the symbol is not absolute.
(tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
on the symbol itself so that DWARF2 strings are merged correctly.

21 years ago * gdb.base/break.exp: Revert last patch.
Stephane Carrez [Sat, 5 Apr 2003 10:40:59 +0000 (10:40 +0000)]
* gdb.base/break.exp: Revert last patch.

21 years agoAdd -l for compatibility with wrc, and rc. Use the short option as a key for
Nick Clifton [Sat, 5 Apr 2003 08:21:47 +0000 (08:21 +0000)]
Add -l for compatibility with wrc, and rc.  Use the short option as a key for
long options that have a synonymous short option.

21 years ago2003-04-04 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Sat, 5 Apr 2003 03:56:00 +0000 (03:56 +0000)]
2003-04-04  Andrew Cagney  <cagney@redhat.com>

* frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
the frame's type from the unwinder.
(get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
(create_new_frame, legacy_get_prev_frame): When the unwinder's
type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
(get_frame_base_address): Use get_frame_type.
(get_frame_locals_address, get_frame_args_address): Ditto.
(legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
* frame.h (enum frame_type): Add UNKNOWN_FRAME.
(struct frame_info): Add comment explaining why the frame contains
a "type" field.
* dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
* d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
* sentinel-frame.c (sentinel_frame_unwinder): Set the type to
NORMAL_FRAME.
* frame-unwind.h: Include "frame.h".
(struct frame_unwind): Add "type" field.
* Makefile.in (frame_unwind_h): Add $(frame_h).

21 years agodaily update
Alan Modra [Sat, 5 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Sat, 5 Apr 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago * ld-m68hc11/bug-1417.d: Update to take into account jsr->bsr relax.
Stephane Carrez [Fri, 4 Apr 2003 21:17:59 +0000 (21:17 +0000)]
* ld-m68hc11/bug-1417.d: Update to take into account jsr->bsr relax.

21 years ago * elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Also adjust
Stephane Carrez [Fri, 4 Apr 2003 21:17:06 +0000 (21:17 +0000)]
* elf32-m68hc11.c (m68hc11_elf_relax_delete_bytes): Also adjust
symbols that mark the end of the section.
(m68hc11_elf_relax_section): Use R_M68HC11_PCREL_8 relocs when
converting to a relative branch so that the offset is computed after
the relaxation; also relocate a jsr into a bsr if possible but don't
relax them if they are to a far symbol as we need to call the
trampoline code.
(elf_m68hc11_howto_table): Set pcrel_offset to true.

21 years ago2003-04-04 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 4 Apr 2003 21:04:33 +0000 (21:04 +0000)]
2003-04-04  Andrew Cagney  <cagney@redhat.com>

* x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
* dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
* d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
get_frame_base.
(d10v_unwind_dummy_id): Use frame_id_build.
* frame.c (find_frame_sal): Use get_frame_pc.
(create_new_frame): Use deprecated_update_frame_pc_hack and
deprecated_update_frame_base_hack.
(create_sentinel_frame): Add comment about ->pc going away.
(get_prev_frame): Add comment about ->pc going away.
(legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
frame_id_build, deprecated_update_frame_pc_hack and
deprecated_update_frame_base_hack.
(select_frame): Use get_frame_pc.
(legacy_saved_regs_this_id): Use frame_id_build.

21 years ago * gdb.base/break.exp: marker4() is defined at line 46 when compiled
Stephane Carrez [Fri, 4 Apr 2003 20:03:46 +0000 (20:03 +0000)]
* gdb.base/break.exp: marker4() is defined at line 46 when compiled
with -DPROTOTYPES.

21 years ago2003-04-04 Elena Zannoni <ezannoni@redhat.com>
Elena Zannoni [Fri, 4 Apr 2003 19:30:49 +0000 (19:30 +0000)]
2003-04-04  Elena Zannoni  <ezannoni@redhat.com>

        * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
        signed integer case.
        (classify_argument): Handle enumerations and references.

21 years ago2003-04-04 Chris Demetriou <cgd@broadcom.com>
Chris Demetriou [Fri, 4 Apr 2003 17:35:44 +0000 (17:35 +0000)]
2003-04-04  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/mips5.d: New test.
        * gas/mips/mips5.l: New test stderr listing.
        * gas/mips/mips5.s: New test source file.
        * gas/mips/mips.exp: Run the mips5 test.

21 years ago2003-04-04 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Fri, 4 Apr 2003 14:46:00 +0000 (14:46 +0000)]
2003-04-04  Andrew Cagney  <cagney@redhat.com>

* frame.c (create_sentinel_frame): Initialize the sentinel frame's
ID to NULL.

21 years agoFixed wrong entry in the ld/configure.tgt list
Svein Seldal [Fri, 4 Apr 2003 14:13:16 +0000 (14:13 +0000)]
Fixed wrong entry in the ld/configure.tgt list

21 years ago* arm-tdep.c (push_stack_item): Use xmalloc.
Richard Earnshaw [Fri, 4 Apr 2003 12:37:13 +0000 (12:37 +0000)]
* arm-tdep.c (push_stack_item): Use xmalloc.

21 years agoNamespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003...
Svein Seldal [Fri, 4 Apr 2003 08:15:15 +0000 (08:15 +0000)]
Namespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003 copyright update

21 years ago* gdb/objc-lang.c (selectors_info): Replace calls to
Adam Fedor [Fri, 4 Apr 2003 04:29:15 +0000 (04:29 +0000)]
* gdb/objc-lang.c (selectors_info): Replace calls to
SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
SYMBOL_NATURAL_NAME.
(classes_info, find_methods): Likewise.

21 years ago*** empty log message ***
gdbadmin [Fri, 4 Apr 2003 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

21 years agodaily update
Alan Modra [Fri, 4 Apr 2003 00:00:06 +0000 (00:00 +0000)]
daily update

21 years ago * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
Kevin Buettner [Thu, 3 Apr 2003 17:56:25 +0000 (17:56 +0000)]
* rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
``mach'' to the value determined by bfd_default_set_arch_mach().

21 years ago2003-04-02 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Thu, 3 Apr 2003 16:34:48 +0000 (16:34 +0000)]
2003-04-02  Andrew Cagney  <cagney@redhat.com>

* gdb.base/callfuncs.exp: Make "print add" messages unique.
* gdb.base/ending-run.exp: Put spaces around "breakpoint" to stop
matching directories by the name breakpoint.
* gdb.base/pointers.exp: Make "ptype pppC" message consistent.
Make "continue to marker1" consistent.
* gdb.base/call-rt-st.exp: Make "finish out from loop_count"
message consistent.
* lib/gdb.exp: Put "the program is no longer running", and "the
program exited" in parenthesis.
* lib/mi-support.exp: Ditto.

21 years ago * observer.texi (GDB Observers): Adjust the documentation for the
Joel Brobecker [Thu, 3 Apr 2003 15:14:48 +0000 (15:14 +0000)]
    * observer.texi (GDB Observers): Adjust the documentation for the
        normal_stop notification to better describe reality. Fix a couple
        of minor typos.

21 years agoAdd -U for compatibility with wrc, rc, and cpp. Just pass the -U option down
Nick Clifton [Thu, 3 Apr 2003 13:40:51 +0000 (13:40 +0000)]
Add -U for compatibility with wrc, rc, and cpp.  Just pass the -U option down
to the preprocessor.

21 years ago(_bfd_XXi_swap_scnhdr_out): Compute ps and ss differently for object files and
Nick Clifton [Thu, 3 Apr 2003 11:13:27 +0000 (11:13 +0000)]
(_bfd_XXi_swap_scnhdr_out): Compute ps and ss differently for object files and
  executables.
(coff_swap_scnhdr_in): Only set the s_size field for object files or for
  executables who have not already initialised the field.
(bfd_pe_executable_p): New macro.  Return true if the PE format bfd is an
  executable.

21 years agoReplace "Static" with "classname" so that results match the behaviour of the
Nick Clifton [Thu, 3 Apr 2003 10:48:16 +0000 (10:48 +0000)]
Replace "Static" with "classname" so that results match the behaviour of the
Windows' resource compiler.

21 years agoMention support for Xtensa architecture
Nick Clifton [Thu, 3 Apr 2003 07:37:41 +0000 (07:37 +0000)]
Mention support for Xtensa architecture

21 years ago * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): Expand comment.
Alan Modra [Thu, 3 Apr 2003 04:02:02 +0000 (04:02 +0000)]
* elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): Expand comment.

21 years ago * elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
Alan Modra [Thu, 3 Apr 2003 02:54:52 +0000 (02:54 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Don't use SYMBOL_REFERENCES_LOCAL
here as it's too early to reliably determine locality.
(ppc_elf_gc_sweep_hook): Likewise.

21 years ago2003-04-03 Philip Blundell <philb@gnu.org>
Phil Blundell [Thu, 3 Apr 2003 00:25:02 +0000 (00:25 +0000)]
2003-04-03  Philip Blundell  <philb@gnu.org>

* gas/arm/offset.s: New test.
* gas/arm/arm.exp (run_errors_test): Run it.

21 years agoFixing Changelog for Makefile.in that I just committed
Bob Rossi [Thu, 3 Apr 2003 00:09:57 +0000 (00:09 +0000)]
Fixing Changelog for Makefile.in that I just committed

21 years agodaily update
Alan Modra [Thu, 3 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Thu, 3 Apr 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years agoI broke my first ChangeLog :), fixing it.
Bob Rossi [Wed, 2 Apr 2003 23:48:21 +0000 (23:48 +0000)]
I broke my first ChangeLog :), fixing it.

21 years ago2003-04-02 Philip Blundell <philb@gnu.org>
Phil Blundell [Wed, 2 Apr 2003 23:31:25 +0000 (23:31 +0000)]
2003-04-02  Philip Blundell  <philb@gnu.org>

* config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.

21 years agoAdding -file-list-exec-source-file command to MI
Bob Rossi [Wed, 2 Apr 2003 22:10:35 +0000 (22:10 +0000)]
Adding -file-list-exec-source-file command to MI

21 years ago[ gas/ChangeLog ]
Chris Demetriou [Wed, 2 Apr 2003 18:43:16 +0000 (18:43 +0000)]
[ gas/ChangeLog ]
2003-04-02  Chris Demetriou  <cgd@broadcom.com>

        * config/tc-mips.c (macro2): Adjust implementation of
        M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
        in the case where the source and destination registers
        are the same.

[ gas/testsuite/ChangeLog ]
2003-04-02  Chris Demetriou  <cgd@broadcom.com>

        * gas/mips/ulh.d: Adjust for ulh and ulhu macro assembly changes.

        * gas/mips/mips.exp: Define new "gpr_ilocks" architecture
        property, and add it to mips2 (and later) chips and r3900.
        * gas/mips/uld2.s: New test source file.
        * gas/mips/ulh2.s: Likewise.
        * gas/mips/ulw2.s: Likewise.
        * gas/mips/uld2.l: New test stderr listing.
        * gas/mips/ulh2.l: Likewise.
        * gas/mips/ulw2.l: Likewise.
        * gas/mips/uld2-eb.d: New test.
        * gas/mips/uld2-el.d: Likewise.
        * gas/mips/ulh2-eb.d: Likewise.
        * gas/mips/ulh2-el.d: Likewise.
        * gas/mips/ulw2-eb-ilocks.d: Likewise.
        * gas/mips/ulw2-eb.d: Likewise.
        * gas/mips/ulw2-el-ilocks.d: Likewise.
        * gas/mips/ulw2-el.d: Likewise.
        * gas/mips/mips.exp: Run new tests for appropriate architectures.

21 years ago * ld-xtensa/coalesce.exp: Skip if target is not xtensa-*-*.
Bob Wilson [Wed, 2 Apr 2003 18:00:34 +0000 (18:00 +0000)]
* ld-xtensa/coalesce.exp: Skip if target is not xtensa-*-*.
* ld-xtensa/lcall.exp: Likewise.

21 years agope-dll.c (pe_detail_list): arm-pe targets use underscores.
Nick Clifton [Wed, 2 Apr 2003 17:39:24 +0000 (17:39 +0000)]
pe-dll.c (pe_detail_list): arm-pe targets use underscores.
(process_def_file): Don't create an export section if there are no exports and
  we're building an exe.
(pe_dll_build_sections): Ditto
(pe_dll_fill_sections): Conditionalize setting abfd->dll true on info->shared

emultempl/pe.em (gld_${EMULATION_NAME}_after_open): If i386pe or armpe, call
  pe_dll_build_section() for both exe's and dll's, not just dll's.  Don't call
  pe_dll_build_section() if link_info.relocateable.
(gld_${EMULATION_NAME}_finish): For all targets except shpe and mipspe, call
  pe_dll_fill_sections() for both exe's and dll's, not just dll's.  Don't call
  pe_dll_fill_sections() if link_info.relocateable.

21 years ago * emulparams/xtensa-config.sh: Remove comment indicating that this is
Bob Wilson [Wed, 2 Apr 2003 16:56:56 +0000 (16:56 +0000)]
    * emulparams/xtensa-config.sh: Remove comment indicating that this is
        a generated file.

21 years ago * xtensa-config.h: Remove comment indicating that this is a
Bob Wilson [Wed, 2 Apr 2003 16:55:26 +0000 (16:55 +0000)]
* xtensa-config.h: Remove comment indicating that this is a
generated file.

21 years ago * xtensa-modules.c: Remove comment indicating that this is a
Bob Wilson [Wed, 2 Apr 2003 16:53:44 +0000 (16:53 +0000)]
* xtensa-modules.c: Remove comment indicating that this is a
generated file.

21 years ago * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
Kevin Buettner [Wed, 2 Apr 2003 05:12:25 +0000 (05:12 +0000)]
* mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
(mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.

21 years ago* Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
Adam Fedor [Wed, 2 Apr 2003 03:02:46 +0000 (03:02 +0000)]
* Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
* language.h (struct language_defn): Add la_demangle.
(language_demangle): Declare.
* language.c (language_demangle): New function.
(unk_lang_demangle): Likewise.
(unknown_language_defn, auto_language_defn, local_language_defn):
Add ukn_lang_demangle.
* ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
* f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
* c-lang.c (c_language_defn, asm_language_defn): Likewise.
(cplus_language_defn): Add cplus_demangle for la_demangle element.
* jv-lang.c (java_demangle): New function
(java_language_defn): Use it for la_demangle element.
* objc-lang.c (objc_demangle): Add options argument
(objc_language_defn): Use objc_demangle for la_demangle element.
* maint.c (maintenance_demangle): Replace switch with
call to language_demangle.
* utils.c (fprintf_symbol_filtered): Likewise.

21 years agodaily update
Alan Modra [Wed, 2 Apr 2003 00:00:05 +0000 (00:00 +0000)]
daily update

21 years ago*** empty log message ***
gdbadmin [Wed, 2 Apr 2003 00:00:01 +0000 (00:00 +0000)]
*** empty log message ***

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 23:51:17 +0000 (23:51 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

* printcmd.c (print_frame_nameless_args): Delete #ifdef
NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
PRINT_TYPELESS_INTEGER.
* config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
PUSH_RETURN_ADDRESS.

21 years ago * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Test for NULL dynobj.
Alan Modra [Tue, 1 Apr 2003 23:44:45 +0000 (23:44 +0000)]
* elfxx-mips.c (_bfd_mips_elf_hide_symbol): Test for NULL dynobj.

21 years ago* windres.c (usage): Report -r option.
Christopher Faylor [Tue, 1 Apr 2003 23:09:29 +0000 (23:09 +0000)]
* windres.c (usage): Report -r option.
(main): Ignore the -r option.
* doc/binutils.texi: Add -r to the list of options.

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 19:55:03 +0000 (19:55 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

* Makefile.in (d10v-tdep.o): Update dependencies.
* d10v-tdep.c: Include "frame-base.h".
(d10v_frame_unwind): Make constant.
(d10v_frame_base_address): New function.
(d10v_frame_base): New variable.
(d10v_gdbarch_init): Set frame_base default.
(struct d10v_unwind_cache): Add the field "prev_sp".  Update
comment for base.
(d10v_frame_unwind_cache): Set and use "prev_sp".
(d10v_frame_this_id): Use the previous frame's inner most stack
address and this frame's func address for the frame ID.  Use
frame_id_build.  Don't analyze beyond the current instruction.

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 19:26:52 +0000 (19:26 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

* frame.h (get_frame_locals_address, get_frame_args_address):
Refer to the base address, instead of the address of the first
local or parameter.

21 years ago * MAINTAINERS: Add myself as Xtensa maintainer.
Bob Wilson [Tue, 1 Apr 2003 19:14:27 +0000 (19:14 +0000)]
    * MAINTAINERS: Add myself as Xtensa maintainer.

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 19:11:01 +0000 (19:11 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

Add frame debug info addresses:
* frame-base.c: New file.
* frame-base.h: New file.
* frame.h (struct frame_base): Add opaque declaration.
(get_frame_base): Update comment.
(get_frame_base_address): Declare.
(get_frame_locals_address): Declare.
(get_frame_args_address): Declare.
(struct frame_info): Add "base" and "base_cache".  Update
comments on the unwinder.
* frame.c: Include "frame-base.h".
(get_frame_locals_address): New function.
(get_frame_base_address): New function.
(get_frame_args_address): New function.
* findvar.c (read_var_value): Use get_frame_locals_address and
get_frame_args_address.
* stack.c (frame_info): Use get_frame_locals_address and
get_frame_args_address.
(FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
moved to "frame-base.c".
* printcmd.c (print_frame_nameless_args): Ditto.
* symtab.h (address_class): Update comments.
* dwarf2loc.c (dwarf_expr_frame_base): Add note about
get_frame_base_address.
* dwarf2expr.c (execute_stack_op): Ditto.
* Makefile.in (frame_base_h): Define.
(frame.o): Update dependencies.
(frame-base.o): Add dependencies.
(SFILES): Add frame-base.c.
(COMMON_OBS): Add frame-base.o.

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 17:17:29 +0000 (17:17 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
CALL_DUMMY_LENGTH): Ditto.
* gdbarch.c: Re-generate.
* inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
(CALL_DUMMY_LENGTH): Delete macro.
* alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
* arm-tdep.c (arm_gdbarch_init): Ditto.
* avr-tdep.c (avr_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* hppa-tdep.c (hppa_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_gdbarch_init): Ditto.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* vax-tdep.c (vax_gdbarch_init): Ditto.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.

21 years agoAdd Xtensa port (omitted from previous delta)
Nick Clifton [Tue, 1 Apr 2003 15:53:47 +0000 (15:53 +0000)]
Add Xtensa port (omitted from previous delta)

21 years agoAdd Xtensa port
Nick Clifton [Tue, 1 Apr 2003 15:50:31 +0000 (15:50 +0000)]
Add Xtensa port

21 years ago * frame.c (get_prev_frame): Disable call to inside_entry_file().
Corinna Vinschen [Tue, 1 Apr 2003 15:26:08 +0000 (15:26 +0000)]
* frame.c (get_prev_frame): Disable call to inside_entry_file().

21 years ago2003-04-01 Andrew Cagney <cagney@redhat.com>
Andrew Cagney [Tue, 1 Apr 2003 14:38:51 +0000 (14:38 +0000)]
2003-04-01  Andrew Cagney  <cagney@redhat.com>

* gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
(CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
(CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
* config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
* inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
(CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
* infcmd.c (run_stack_dummy): Simplify assuming
CALL_DUMMY_BREAKPOINT_OFFSET_P.
* infrun.c (handle_inferior_event): Ditto.
* alpha-tdep.c (alpha_gdbarch_init): Do not set
call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
* arm-tdep.c (arm_gdbarch_init): Ditto.
* avr-tdep.c (avr_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
* d10v-tdep.c (d10v_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* h8300-tdep.c (h8300_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* m68k-tdep.c (m68k_gdbarch_init): Ditto.
* mcore-tdep.c (mcore_gdbarch_init): Ditto.
* mips-tdep.c (mips_gdbarch_init): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
* ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* s390-tdep.c (s390_gdbarch_init): Ditto.
* sh-tdep.c (sh_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_gdbarch_init): Ditto.
* v850-tdep.c (v850_gdbarch_init): Ditto.
* vax-tdep.c (vax_gdbarch_init): Ditto.
* xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.