Commit Graph

50825 Commits

Author SHA1 Message Date
Alan Modra bb2f62c515 daily update 2006-04-01 00:00:05 +00:00
DJ Delorie 8e1e9959c5 merge from gcc 2006-03-31 23:01:16 +00:00
Michael Snyder b620eb07bc 2006-03-31 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo: Update copyright dates.
2006-03-31 19:47:11 +00:00
Eli Zaretskii f8da2bffa0 Fix last change. 2006-03-31 14:17:58 +00:00
Eli Zaretskii 3156cdafc8 * gdb.texinfo (Overview): Add an index entry to "empty response". 2006-03-31 14:14:28 +00:00
Alan Modra 47426b4127 * pdp11-opc.c (pdp11_opcodes): Fix opcode for SEC instruction. 2006-03-31 11:43:14 +00:00
Jakub Jelinek a1c1637964 * ldmisc.c (vfinfo): Revert 2005-10-05 changes. If
bfd_find_nearest_line succeeded for %C or %D, but filename
	is NULL, print section+offset at the end.
2006-03-31 11:23:55 +00:00
Andrew Stubbs d3c139e926 2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
* value.h (struct internalvar): Add field 'endian'.
	* value.c (lookup_internalvar): Initialise endian.
	(value_of_internalvar): Flip the endian of built-in types if required.
	(set_internalvar): Set the endian.
	(show_convenience): Access the value through value_of_internalvar().
2006-03-31 10:36:18 +00:00
Ben Elliston a4ef73e9a2 PR binutils/1860
* configure.in: Require makeinfo 4.4 or higher.
	* configure: Regenerate.
2006-03-31 02:32:20 +00:00
Alan Modra b251c587e2 daily update 2006-03-31 00:00:08 +00:00
gdbadmin b2faffd893 *** empty log message *** 2006-03-31 00:00:04 +00:00
Daniel Jacobowitz bb858e6a2c 2006-03-30 Vladimir Prus <ghost@cs.msu.su>
* remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
	instead of hardcoded integer literals.
2006-03-30 16:56:30 +00:00
Daniel Jacobowitz 61d9b92fc1 gdb/
* cli/cli-script.c (insert_args): Handle NULL user_args.
gdb/testsuite/
	* gdb.base/commands.exp (stray_arg0_test): New test.
2006-03-30 16:51:20 +00:00
Daniel Jacobowitz f7060f859d * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
the function at zero if we have no symbols.
2006-03-30 16:48:47 +00:00
Daniel Jacobowitz 295bf0ffc7 * i386-stub.c (getpacket): Fix array overflow.
* m32r-stub.c (getpacket): Likewise.
	* m68k-stub.c (getpacket): Likewise.
	* sh-stub.c (getpacket): Likewise.
	* sparc-stub.c (getpacket): Likewise.
2006-03-30 16:44:12 +00:00
Daniel Jacobowitz 7abfe01489 * frame.h (set_current_sal_from_frame): New prototype.
* stack.c (set_current_sal_from_frame): Make global.
	* infrun.c (normal_stop): Call set_current_sal_from_frame.
2006-03-30 16:37:13 +00:00
Daniel Jacobowitz 0ec9a092fd * linux-thread-db.c: Include "linux-nat.h".
(check_for_thread_db): New function, split out from
	thread_db_new_objfile.  Remove dead check for active
	thread_db on inapplicable targets.
	(thread_db_new_objfile): Call check_for_thread_db.
	* Makefile.in (linux-thread-db.o): Update.
	* linux-nat.c (child_post_attach): Call check_for_thread_db.
	(linux_child_post_startup_inferior): Likewise.
	(lin_lwp_attach_lwp): Call target_post_attach instead of
	child_post_attach.
	* linux-nat.h (check_for_thread_db): New prototype.
2006-03-30 16:34:23 +00:00
Daniel Jacobowitz 6d820c5c12 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
(init_remote_state): Initialize the new fields.
	(get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
	(set_thread, remote_thread_alive, remote_unpack_thread_info_response)
	(remote_get_threadinfo, parse_threadlist_response)
	(remote_get_threadlist, remote_current_thread, remote_threads_info)
	(remote_threads_extra_info, extended_remote_restart, get_offsets)
	(remote_check_symbols, remote_open_1, remote_detach)
	(remove_vcont_probe, remote_vcont_resume, remote_resume)
	(remote_wait, remote_async_wait, fetch_register_using_p)
	(remote_fetch_registers, store_register_using_P)
	(remote_store_registers, check_binary_download, remote_write_bytes)
	(remote_read_bytes, remote_insert_breakpoint)
	(remote_remove_breakpoint, remote_insert_watchpoint)
	(remote_remove_watchpoint, remote_insert_hw_breakpoint)
	(remote_remove_hw_breakpoint, compare_sections_command)
	(remote_xfer_partial, remote_rcmd, packet_command)
	(remote_get_thread_local_address): Use the global incoming buffer
	instead of alloca or xmalloc.  Limit outgoing packets to
	rs->remote_packet_size and incoming packets to rs->buf_size.
	Update calls to getpkt and remote_send.
	(remote_send): Take arguments by reference.
	(putpkt_binary): Eliminate junkbuf.  Use skip_frame.
	(skip_frame): New function.
	(read_frame): Take arguments by reference.  Expand the packet
	buffer instead of issuing an error.
	(getpkt, getpkt_sane): Take arguments by reference.
	* remote.h (getpkt): Update prototype and doc.
	* tracepoint.c (remote_get_noisy_reply): Take arguments by
	reference.
	(target_buf): Change from array to pointer.
	(target_buf_size): New variable.
	(remote_set_transparent_ranges): Update call to getpkt.
	(trace_start_command, trace_stop_command, trace_status_command):
	Update calls to remote_get_noisy_reply.
	(finish_tfind_command): Take arguments by reference.
	(trace_find_command, trace_find_pc_command)
	(trace_find_tracepoint_command, trace_find_line_command):
	(trace_find_range_command, trace_find_outside_command): Update
	calls to finish_tfind_command.
	(_initialize_tracepoint): Initialize target_buf_size and target_buf.
2006-03-30 16:25:06 +00:00
Paul Brook bd717df8b1 2006-03-30 Paul Brook <paul@codesourcery.com>
* gdb.mi/mi-until.exp: kfail broken until command.
	* gdb.mi/mi2-until.exp: Ditto.
2006-03-30 16:21:26 +00:00
Randolph Chung 3d8dcac680 2005-03-30 Randolph Chung <tausq@debian.org>
* hppa-linux-tdep.c: Include regset.h.
	(GR_REGNUM, TR_REGNUM, greg_map): New.
	(hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
	(hppa_linux_regset, hppa_linux_fpregset): New.
	(hppa_linux_regset_from_core_section): New.
	(hppa_linux_init_abi): Set regset_from_core_section.
	(_initialize_hppa_linux_tdep): Register osabi handler for
	64-bit Linux.
	* Makefile.in (hppa-linux-tdep.o): Update dependencies.
	* config/pa/linux.mh: Stop using core-regset.o
2006-03-30 14:27:45 +00:00
Randolph Chung 29d375acb5 2006-03-30 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
	(hppa_frame_cache): Use new function to find unwind entry.
	(hppa_frame_this_id): Likewise.
	(hppa_frame_unwind_sniffer): Likewise.
2006-03-30 14:15:00 +00:00
Andreas Schwab 9dfde49d60 * configure.in: Fix help string for --enable-targets option.
* configure: Regenerate.
2006-03-30 13:35:17 +00:00
Ben Elliston b761a20733 PR ld/2267
* elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
	special section number that exceeds the number of ELF sections
	(eg. SHN_MIPS_SCOMMON).
2006-03-30 00:22:20 +00:00
Alan Modra 2bcb00c460 daily update 2006-03-30 00:00:05 +00:00
gdbadmin 18f085d85b *** empty log message *** 2006-03-30 00:00:02 +00:00
Daniel Jacobowitz f4267320e5 2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
* NEWS: Mention the removal of NLM.

2006-03-29  Steve Ellcey  <sje@cup.hp.com>

	* Makefile.in (nlm): Remove target.
	* configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
	* configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
	* configure: Regenerate.
	* doc/gdb.texinfo: Remove gdbserve.nlm documentation.
	* nlm: Remove directory.
2006-03-29 22:58:55 +00:00
Daniel Jacobowitz 698ba9341e * Makefile.in (utils.o): Update.
* top.c (in_user_command): New.
	(command_line_input): Use input_from_terminal_p.
	(input_from_terminal_p): Don't check caution.  Handle
	stdin == NULL for Insight.
	* top.h (in_user_command, caution): New declarations.
	* utils.c: Include "top.h".
	(query, defaulted_query): Check caution here.  Move the call
	to input_from_terminal_p higher.
	* cli/cli-script.c (do_restore_user_call_depth): Only decrement
	the depth.  Update in_user_command if necessary.
	(execute_user_command): Don't clobber old_chain.  Set
	in_user_command.  Let do_restore_user_call_depth handle
	user_call_depth.
	(read_command_lines): Check whether to prompt before calling
	Insight hooks.
	* tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
	input_from_terminal_p check.
2006-03-29 22:53:33 +00:00
Ulrich Weigand 2f00de94cb * s390-nat.c (s390_insert_watchpoint): Add missing argument.
(s390_remove_watchpoint): Likewise.
2006-03-29 18:27:00 +00:00
Bernd Schmidt 9d6f9a3888 Add missing file that got left out of a previous commit. 2006-03-29 14:17:57 +00:00
Hans-Peter Nilsson b3a3ffefce * configure: Regenerate. 2006-03-29 03:42:03 +00:00
Hans-Peter Nilsson ea696909f3 * aclocal.m4 (SIM_AC_OPTION_HARDWARE): Correct duplicate-
option-contents test.
2006-03-29 03:40:25 +00:00
Ben Elliston db336ea9c9 * resbin.c: Avoid duplicating constants in calls to reswr_alloc. 2006-03-29 00:24:28 +00:00
gdbadmin e9a7b9b5b3 *** empty log message *** 2006-03-29 00:00:33 +00:00
Alan Modra eafe91da7f daily update 2006-03-29 00:00:06 +00:00
Jim Blandy 7d30c22d4c src/gdb/ChangeLog:
2006-03-28  Jim Blandy  <jimb@codesourcery.com>

	* prologue-value.c, prologue-value.h: New files.
	* Makefile.in (prologue_value_h): New variable.
	(HFILES_NO_SRCDIR): List prologue-value.h.
	(SFILES): List prologue-value.c.
	(COMMON_OBS): List prologue-value.o.
	(prologue-value.o): New rule.

src/gdb/doc/ChangeLog:
2006-03-28  Jim Blandy  <jimb@codesourcery.com>

	* gdbint.texinfo (Prologue Analysis): New section.
2006-03-28 19:19:16 +00:00
Michael Snyder 05c6a9a10e 2006-03-27 Michael Snyder <msnyder@redhat.com>
* xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
	xstormy16_pointer_to_address, xstormy16_address_to_pointer,
	xstormy16_frame_prev_register): Change void* to gdb_byte*.
	(xstormy16_push_dummy_call): Add block-local char* val,
	to avoid type conflict with outer scope variable.
2006-03-28 18:58:30 +00:00
Nathan Sidwell 6d89cc8f6b * gas/config/tc-m68k.c (find_cf_chip): Merge into ...
(m68k_ip): ... here.  Use for all chips.  Protect against buffer
	overrun and avoid excessive copying.
2006-03-28 07:21:49 +00:00
Nathan Sidwell 2da12c6027 gas:
* config/tc-m68k.c (m68000_control_regs, m68010_control_regs,
	m68020_control_regs, m68040_control_regs, m68060_control_regs,
	mcf_control_regs, mcf5208_control_regs, mcf5213_control_regs,
	mcf5329_control_regs, mcf5249_control_regs, mcf528x_control_regs,
	mcfv4e_control_regs, m68010_control_regs): Rename and reorder to ...
	(m68000_ctrl, m68010_ctrl, m68020_ctrl, m68040_ctrl, m68060_ctrl,
	mcf_ctrl, mcf5208_ctrl, mcf5213_ctrl, mcf5235_ctrl, mcf5249_ctrl,
	mcf5216_ctrl, mcf5250_ctrl, mcf5271_ctrl, mcf5272_ctrl,
	mcf5282_ctrl, mcfv4e_ctrl): ... these.
	(mcf5275_ctrl, mcf5329_ctrl, mcf5373_ctrl): New.
	(struct m68k_cpu): Change chip field to control_regs.
	(current_chip): Remove.
	(control_regs): New.
	(m68k_archs, m68k_extensions): Adjust.
	(m68k_cpus): Reorder to be in cpu number order.  Adjust.
	(CPU_ALLOW_MC, CPU_ALLOW_NEGATION): Remove.
	(find_cf_chip): Reimplement for new organization of cpu table.
	(select_control_regs): Remove.
	(mri_chip): Adjust.
	(struct save_opts): Save control regs, not chip.
	(s_save, s_restore): Adjust.
	(m68k_lookup_cpu): Give deprecated warning when necessary.
	(m68k_init_arch): Adjust.
	(md_show_usage): Adjust for new cpu table organization.

	include/opcodes:
	* m68k.h (cpu_m68k, cpu_cf, cpu_m68000, cpu_m68008, cpu_m68010,
	cpu_m68020, cpu_m68ec030, cpu_m68040, cpu_m68060, cpu_m68851,
	cpu_m68881, cpu_m68882, cpu_cpu32, cpu_cf5200, cpu_cf5206e,
	cpu_cf5208, cpu_cf521x, cpu_cf5213, cpu_cf5249, cpu_cf528x,
	cpu_cf5307, cpu_cf5329, cpu_cf5407, cpu_cf547x, cpu_cf548x): Remove.
2006-03-28 07:19:16 +00:00
Alan Modra a514e0a787 daily update 2006-03-28 00:00:06 +00:00
gdbadmin 543b2a1257 *** empty log message *** 2006-03-28 00:00:02 +00:00
Andrew Stubbs 4e6cbc38c3 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
* sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2006-03-27 13:15:01 +00:00
Richard Sandiford ead49a57e8 * elfxx-mips.c (mips_got_entry): Add more commentary.
(mips_elf_local_got_index): Use the hash table entry to record
	the GOT index of forced-local symbols.
	(mips_elf_initialize_tls_index): Rearrange code.  Store the index
	in either the hash table entry or the mips_got_entry, not both.
	Add more commentary.
	(mips_elf_multi_got): Make sure the g->next is nonnull when calling
	mips_elf_initialize_tls_index.

	* ld-mips-elf/tls-hidden3a.s, ld-mips-elf/tls-hidden3b.s,
	* ld-mips-elf/tls-hidden3.d, ld-mips-elf/tls-hidden3.got,
	* ld-mips-elf/tls-hidden3.ld, ld-mips-elf/tls-hidden3.r,
	* ld-mips-elf/tls-hidden4a.s, ld-mips-elf/tls-hidden4b.s,
	* ld-mips-elf/tls-hidden4.got, ld-mips-elf/tls-hidden4.r: New tests.
	* ld-mips-elf/mips-elf.exp: Run them.
2006-03-27 11:30:54 +00:00
Nick Roberts 5cc40a5834 New files. 2006-03-27 00:27:09 +00:00
Nick Roberts ec793d3caa *** empty log message *** 2006-03-27 00:22:31 +00:00
Nick Roberts 7a24eb7c24 (c_name_of_child, c_value_of_child): Allow non-zero
offsets for languages like Fortran.
2006-03-27 00:15:22 +00:00
Nick Roberts 75483fbe58 *** empty log message *** 2006-03-27 00:14:34 +00:00
gdbadmin 113ed9bb56 *** empty log message *** 2006-03-27 00:00:32 +00:00
Alan Modra ac7faa501c daily update 2006-03-27 00:00:04 +00:00
Randolph Chung 97ce3a051a 2006-03-26 Randolph Chung <tausq@debian.org>
* config/pa/hppa64.mt: Use HPUX version of the tm file.
2006-03-26 08:18:17 +00:00
Bernd Schmidt 1ac4baeded * config/bfin-defs.h (Expr_Node_Type enum): Add Expr_Node_GOT_Reloc.
* config/bfin-lex.l: Recognize GOT17M4 and FUNCDESC_GOT17M4.
	* config/bfin-parse.y: Include "libbfd.h", "elf/common.h" and
	"elf/bfin.h".
	(GOT17M4, FUNCDESC_GOT17M4): New tokens of type <value>.
	(any_gotrel): New rule.
	(got): Use it, and create Expr_Node_GOT_Reloc nodes.
	* config/tc-bfin.c: Include "libbfd.h", "elf/common.h" and
	"elf/bfin.h".
	(DEFAULT_FLAGS, bfin_flags, bfin_pic_flag): New.
	(bfin_pic_ptr): New function.
	(md_pseudo_table): Add it for ".picptr".
	(OPTION_FDPIC): New macro.
	(md_longopts): Add -mfdpic.
	(md_parse_option): Handle it.
	(md_begin): Set BFD flags.
	(md_apply_fix3, bfin_fix_adjustable): Handle new relocs.
	(bfin_gen_ldstidxi): Adjust to match the trees that the parser gives
	us for GOT relocs.
	* Makefile.am (bfin-parse.o): Update dependencies.
	(DEPTC_bfin_elf): Likewise.
	* Makefile.in: Regenerate.
2006-03-26 01:12:07 +00:00