Commit Graph

14557 Commits

Author SHA1 Message Date
Daniel Jacobowitz db7429406e * thread.c (info_threads_command): Use get_selected_frame ().
Check that there is at least one non-sentinel frame.
2003-07-28 13:02:12 +00:00
Daniel Jacobowitz 4ee6625b53 * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
pattern.
	* gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
	* gdb.threads/tls.exp: Recognize one case of the host library not
	supporting TLS.
2003-07-28 00:57:29 +00:00
gdbadmin 0473009e8b *** empty log message *** 2003-07-28 00:00:31 +00:00
Stephane Carrez ce7f4371ed * m68hc11-tdep.c (struct frame_extra_info): Remove.
(m68hc11_pop_frame): Remove.
	(m68hc11_frame_saved_pc): Remove.
	(m68hc11_frame_chain): Remove.
	(m68hc11_frame_init_saved_regs): Remove.
	(m68hc11_init_extra_frame_info): Remove.
	(m68hc11_store_struct_return): Remove.
	(m68hc11_saved_pc_after_call): Remove.
	(m68hc11_call_dummy_address): Remove.
2003-07-27 21:39:44 +00:00
Stephane Carrez 1ea653ae0a * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
frame unwind information.
	(m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
	and adapted for frame unwinding.
	(m68hc11_skip_prologue): Update to scan prologue in temporary object.
	(m68hc11_unwind_pc): New function.
	(m68hc11_frame_unwind_cache): New function to analyze frames.
	(m68hc11_frame_this_id): New function to create new frame struct.
	(m68hc11_frame_prev_register): New function to unwind a register from
	the frame.
	(m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
	(m68hc11_frame_p): New function for the above.
	(m68hc11_frame_base_address): New function to return fp of frame.
	(m68hc11_frame_args_address): Update for frame.
	(m68hc11_frame_base): Default 68hc11/68hc12 frame.
	(m68hc11_unwind_sp): New function.
	(m68hc11_unwind_dummy_id): New function.
	(m68hc11_gdbarch_init): Install the above frames; remove deprecated
	calls.
2003-07-27 21:24:41 +00:00
Andrew Cagney 225f2bf663 2003-07-27 Andrew Cagney <cagney@redhat.com>
* gdb.base/fileio.exp: Use SH when running commands using
	remote_exec.
2003-07-27 21:24:09 +00:00
Stephane Carrez c8a7f6ac64 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
(m68hc11_guess_from_prologue): Advance the pc and frame size only
	when we are beyond the current pc.
2003-07-27 20:54:17 +00:00
Stephane Carrez 3dc990bfb6 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
from m68hc11_push_arguments.
	(m68hc11_push_arguments): Remove.
	(m68hc11_push_return_address): Remove.
	(m68hc11_gdbarch_init): Install the above; remove above deprecated
	handlers; remove deprecated_extra_stack_alignment_needed.
2003-07-27 20:27:29 +00:00
Andrew Cagney 222e5d1d25 2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa.h (init_frame_pc_default): Declare.
	* infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
	REAL_PC and not the pointer.
	* hppa-hpux-tdep.c: Include frame.h
2003-07-27 17:27:17 +00:00
Andrew Cagney a7e9a47e42 2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
	GDB_MULTI_ACH_PARTIAL.
2003-07-27 16:38:23 +00:00
Andrew Cagney a5abd0000b Doh! configure.tgt was not part of the change. 2003-07-27 15:42:20 +00:00
Andrew Cagney 7e3dd49eac 2003-07-27 Andrew Cagney <cagney@redhat.com>
Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
	* m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
	operator at start and not end of line.
	(decode_prologue): Ditto.
	(m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
	frame_unwind_register_unsigned instead of
	frame_unwind_unsigned_register.
	(m32r_read_pc): Use regcache_cooked_read_unsigned instead of
	read_register.
	(m32r_push_dummy_call): Use register_size instead of
	REGISTER_RAW_SIZE.
	(m32r_frame_sniffer): Replace m32r_frame_p.
	(m32r_gdbarch_init): Call frame_unwind_append_sniffer.
	* m32r-rom.c (report_transfer_performance): Delete extern
	declaration.
	(m32r_load, m32r_upload_command): Use print_transfer_performance
	instead of report_transfer_performance.
	(_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
	/ add_show_from_set.
2003-07-27 15:38:16 +00:00
gdbadmin 6fbedbbcb6 *** empty log message *** 2003-07-27 00:00:32 +00:00
Andrew Cagney 0880807f72 2003-07-26 Andrew Cagney <cagney@redhat.com>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
	store_return_value and extract_struct_value_address.
2003-07-26 22:49:15 +00:00
Daniel Jacobowitz 64ae926944 PR c++/1267
* minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
	NULL, default to the section containing PC.
2003-07-26 22:03:38 +00:00
Stephane Carrez 72ffddc928 * gdb.texinfo (TUI Keys): Document C-x o key to switch active window. 2003-07-26 07:38:54 +00:00
gdbadmin 05105a9926 *** empty log message *** 2003-07-26 00:00:02 +00:00
gdbadmin dec6218090 *** empty log message *** 2003-07-25 00:00:01 +00:00
Stephane Carrez 3fc14bdbc9 * tui.c (tui_rl_other_window): New function to switch the TUI active
window and give focus to a next window.
	(tui_initialize_readline): Bind it to c-x o.
	(tui_rl_next_keymap): Activate TUI mode when entering SingleKey mode.
2003-07-24 20:23:17 +00:00
Stephane Carrez e286caf282 * NEWS: Mention "regs" deprecated for m68hc11 too.
* m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
	(m68hc11_print_register): New function to print out one register.
	(m68hc11_print_registers_info): New function to print registers.
	(show_regs): Deprecate and use the above.
	(m68hc11_gdbarch_init): Install the print_registers_info.
2003-07-24 19:59:33 +00:00
Daniel Jacobowitz 3b2fc2ea68 * linux-arm-low.c (arm_reinsert_addr): New function.
(the_low_target): Add arm_reinsert_addr.
2003-07-24 19:03:50 +00:00
Daniel Jacobowitz a9f12a31ac * gdbint.texinfo (libgdb components): Correct a GDB to GDBN. 2003-07-24 18:56:37 +00:00
Daniel Jacobowitz b1fe945553 * gdb.texinfo (Server): Mention pidof. 2003-07-24 18:55:04 +00:00
Daniel Jacobowitz bcb27c9f96 From Kei Sakamoto <sakamoto.kei@renesas.com>:
* gdb.base/relocate.c (dummy): New padding array.
2003-07-24 18:45:43 +00:00
Jeff Johnston 705b278bd1 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
* ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
        that we have a SIGTRAP before returning non-zero.
2003-07-24 16:42:54 +00:00
gdbadmin b888c773dc *** empty log message *** 2003-07-24 00:00:02 +00:00
Stephane Carrez 80b9fe0393 * tui.c (tui_enable): Call tuiRefreshAll to make sure the window
is accurate.
2003-07-23 21:40:59 +00:00
Stephane Carrez 6385821035 * tui-interp.c (tui_resume): Enable tui when we expected it.
(tui_suspend): Remember in which TUI mode we are.
	(_initialize_tui_interp): Use the tui interpreter even when no
	other interpreter was set and define in which TUI mode to start.
2003-07-23 21:22:14 +00:00
Elena Zannoni 63cd419876 2003-07-23 Michal Ludvig <mludvig@suse.cz>
Elena Zannoni  <ezannoni@redhat.com>

 	* linespec.c (decode_line_2): Avoid crash if
 	find_function_start_sal() returns empty record.
2003-07-23 19:24:31 +00:00
Michael Snyder 686d097cef 2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.base/return2.exp: Don't test long-long return.
2003-07-23 18:53:34 +00:00
Michael Snyder 57ba3b854e 2003-07-23 Michael Snyder <msnyder@redhat.com>
* gdb.disasm/t01_mov.s: New file, h8300sx disassembly tests.
	* gdb.disasm/t01_mov.exp: Ditto.
	* gdb.disasm/t02_mova.s: Ditto.
	* gdb.disasm/t02_mova.exp: Ditto.
	* gdb.disasm/t03_add.s: Ditto.
	* gdb.disasm/t03_add.exp: Ditto.
	* gdb.disasm/t04_sub.s: Ditto.
	* gdb.disasm/t04_sub.exp: Ditto.
	* gdb.disasm/t05_cmp.s: Ditto.
	* gdb.disasm/t05_cmp.exp: Ditto.
	* gdb.disasm/t06_ari2.s: Ditto.
	* gdb.disasm/t06_ari2.exp: Ditto.
	* gdb.disasm/t07_ari3.s: Ditto.
	* gdb.disasm/t07_ari3.exp: Ditto.
	* gdb.disasm/t08_or.s: Ditto.
	* gdb.disasm/t08_or.exp: Ditto.
	* gdb.disasm/t09_xor.s: Ditto.
	* gdb.disasm/t09_xor.exp: Ditto.
	* gdb.disasm/t10_and.s: Ditto.
	* gdb.disasm/t10_and.exp: Ditto.
	* gdb.disasm/t11_logs.s: Ditto.
	* gdb.disasm/t11_logs.exp: Ditto.
	* gdb.disasm/t12_bit.s: Ditto.
	* gdb.disasm/t12_bit.exp: Ditto.
	* gdb.disasm/t13_otr.s: Ditto.
	* gdb.disasm/t13_otr.exp: Ditto.
2003-07-23 18:46:14 +00:00
Andreas Schwab 6926787d2b * ia64-tdep.c (ia64_print_insn): New function.
(ia64_gdbarch_init): Set print_insn to it.
	(_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
	deprecated_tm_print_insn_info.
2003-07-23 18:32:20 +00:00
Elena Zannoni e00759efb0 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.exp :Add kfail for 'info address' case.
2003-07-23 03:08:26 +00:00
Michael Snyder 708cc1b6ac 2003-07-22 Michael Snyder <msnyder@redhat.com>
* h8300-tdep.c (h8300_extract_return_value): Teach it how to
        handle 8-bit returns (long long).
        (h8300h_extract_return_value): Ditto.
        (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2003-07-23 01:25:55 +00:00
gdbadmin 53946b3266 *** empty log message *** 2003-07-23 00:00:31 +00:00
Andrew Cagney aebd7893d9 2003-07-22 Andrew Cagney <cagney@redhat.com>
* gdbarch.c Include "gdb_obstack.h".
	(struct gdbarch): Add an "obstack".
	(alloc_gdbarch_data): Allocate the gdbarch data using
	GDBARCH_OBSTACK_CALLOC.
	(free_gdbarch_data): Delete function.
	(gdbarch_obstack_zalloc): New function.
	(gdbarch_free): Free the obstack, do not call free_gdbarch_data.
	Assert that the architecture is not initialized.
	(gdbarch_alloc): Allocate an obstack, allocate the architecture
	vector from the obstack.
	(alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
	architecture obstack.
	(GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
	(set_gdbarch_data): Assert that the data is not initialized.
	(struct gdbarch_data): Delete member "free".
	(register_gdbarch_data): Do not initialize "free".
	* gdbarch.h, gdbarch.c: Re-generate.
2003-07-22 19:49:58 +00:00
Elena Zannoni 32ffcbeda5 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* dwarf2loc.c (locexpr_describe_location): Fix typos.
2003-07-22 18:24:42 +00:00
Andrew Cagney 153721e664 2003-07-22 Andrew Cagney <cagney@redhat.com>
* configure.in (build_warnings): Add -Wformat-nonliteral.
	* configure: Re-generate.

2003-07-22  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Coding): Add -Wformat-nonliteral to -Werror
	list.
2003-07-22 18:18:10 +00:00
Elena Zannoni c193f044f3 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
dwarf2loc.c (locexpr_describe_location): Fix typo.
2003-07-22 18:16:05 +00:00
Elena Zannoni 8bc2021fdc 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* gdb.threads/tls.c : New file.
        * gdb.threads/tls.exp : New file.
        * gdb.threads/tls-main.c : New file.
        * gdb.threads/tls-shared.c : New file.
        * gdb.threads/tls-shared.exp : New file.
2003-07-22 15:49:45 +00:00
Elena Zannoni c3228f1238 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
* findvar.c (read_var_value): Remove case for thread local storage
	variables.  It is now entirely handled by the dwarf2 location
	expression code.
	* printcmd.c (address_info): Ditto.
	* symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
	enumeration value.
	(struct symbol): Remove objfile field, which was used by
	LOC_THREAD_LOCAL_STATIC only.
	* dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
	* dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
	usage of objfile pointer.
	* dwarf2loc.c (locexpr_describe_location): Add case to handle
	thread local variables.
	Add include of objfiles.h.
	* dwarf2expr.c (execute_stack_op): Add comments about thread local
	storage variables.
	* Makefile.in (dwarf2loc.o): Update dependencies.
2003-07-22 15:41:59 +00:00
Andrew Cagney aef9bcd2e7 2003-07-22 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
	get_frame_base.
	(FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
	(FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
	(struct value): Add opaque declaration.
	(DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2003-07-22 12:48:23 +00:00
Andreas Schwab 89320c4c5d * gdb.asm/powerpc.inc (gdbasm_startup): Force alignment. 2003-07-22 12:16:37 +00:00
gdbadmin 478a0352b7 *** empty log message *** 2003-07-22 00:00:02 +00:00
Andrew Cagney d95a89033d 2003-07-21 Andrew Cagney <cagney@redhat.com>
From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
	* m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2003-07-21 18:56:05 +00:00
gdbadmin e4b5a1e447 *** empty log message *** 2003-07-21 00:00:01 +00:00
Stephane Carrez 4db73d4977 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
regcache_cooked_read_unsigned instead of read_register.
	(m68hc11_saved_pc_after_call): Likewise.
	(m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
	instead of write_register.
	(m68hc11_register_type): New function.
	(m68hc11_register_virtual_type): Remove.
	(m68hc11_store_return_value): Convert to use the regcache.
	(m68hc11_extract_struct_value_address): Likewise.
	(m68hc11_gdbarch_init): Remove deprecated ops for register to use
	m68hc11_register_type; undeprecate store_return_value and
	extract_struct_value_address.
2003-07-20 18:36:27 +00:00
Andreas Schwab 180dea7cce * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
due to insn reordering.
2003-07-20 17:39:16 +00:00
Stephane Carrez ef2b8fcdd8 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
and translate to use regcache.
	(m68hc11_gdbarch_init): Undeprecate extract_return_value.
2003-07-20 14:18:14 +00:00
gdbadmin 0be6005c96 *** empty log message *** 2003-07-20 00:00:02 +00:00