Commit Graph

20128 Commits

Author SHA1 Message Date
gdbadmin 0532541186 *** empty log message *** 2006-10-19 00:00:06 +00:00
Daniel Jacobowitz 981c7f5a30 * utils.c (query): Use defaulted_query.
(defaulted_query): Handle having no default answer.  Print out
	messages even if we have no terminal.  Prevent memory corruption.
2006-10-18 22:16:52 +00:00
Daniel Jacobowitz 55feb68948 * frame.c (struct frame_info): Add stop_reason.
(get_prev_frame_1): Set stop_reason.  Don't call error for
	stop reasons.
	(get_frame_unwind_stop_reason, frame_stop_reason_string): New.
	* frame.h (enum unwind_stop_reason): New.
	(get_frame_unwind_stop_reason, frame_stop_reason_string): New
	prototypes.
	* stack.c (frame_info): Print the stop reason.
	(backtrace_command_1): Print the stop reason for errors.
2006-10-18 19:52:05 +00:00
Daniel Jacobowitz 8621d6a944 * inferior.h (start_remote): Update prototype.
* infrun.c (start_remote): Take FROM_TTY.  Call
	post_create_inferior.
	* monitor.c (monitor_open): Update call to start_remote.
	* remote-sds.c (sds_start_remote, sds_open): Likewise.
	* remote.c (remote_start_remote): Likewise.
	(remote_start_remote_dummy): Removed.
	(remote_open): Update call to remote_start_remote.  Do not call
	post_create_inferior here.
2006-10-18 16:56:13 +00:00
Daniel Jacobowitz 2f83a18e2a * lib/gdbserver-support.exp (gdb_target_cmd): Anchor the ends
of patterns.
2006-10-18 16:49:05 +00:00
Daniel Jacobowitz 3443977099 * solib-svr4.c (debug_loader_offset_p, debug_loader_offset)
(debug_loader_name, svr4_default_sos): New.
	(svr4_current_sos): Call svr4_default_sos.
	(enable_break): Add a comment about AT_BASE.  Set the new
	variables and retry solib_add.
	(svr4_clear_solib): Clear the new variables.
2006-10-18 15:34:39 +00:00
Daniel Jacobowitz 7d3d3ece84 * NEWS: Mention support for TLS without debugging information. 2006-10-18 15:29:18 +00:00
gdbadmin 3aafe03c09 *** empty log message *** 2006-10-18 00:00:04 +00:00
Daniel Jacobowitz 52bb452f80 gdb/
* gdbint.texinfo (Target Vector Definition): Move most
	content into Existing Targets.  Add a menu.
	(Existing Targets): New section, moved from Target Vector
	Definition.  Use @subsection.
	(Managing Execution State): New section.
gdb/doc/
	* remote-sim.c (gdbsim_kill): Call target_mourn_inferior.
	(gdbsim_load): Don't bother to adjust inferior_ptid here.
	(gdbsim_create_inferior): Mark the simulator as running.
	(gdbsim_open): Don't bother fetching registers.  Mark
	the target as not running.
	(gdbsim_xfer): When the program is not running, pass memory
	requests down.
	(gdbsim_mourn_inferior): Mark the target as not running.
	* target.c (target_mark_running, target_mark_exited): New.
	* target.h (target_has_execution): Update the comment.
	(target_mark_running, target_mark_exited): New prototypes.
2006-10-17 21:55:24 +00:00
Joel Brobecker b40ce68a77 * breakpoint.c (free_valchain): Minor reformatting. 2006-10-17 21:53:26 +00:00
Bob Wilson 58955e583a * gdb.texinfo (ST2000): Use Ctrl- instead of C-. 2006-10-17 21:08:17 +00:00
Daniel Jacobowitz 79d4c408c4 * solib-svr4.c (LM_ADDR_CHECK): Suggest shared library mismatch. 2006-10-17 20:52:32 +00:00
Daniel Jacobowitz 94277a3898 gdb/
* Makefile.in (symtab.o): Update.
	* symtab.h (matching_bfd_section): New prototype.
	* symtab.c (matching_bfd_section): New.
	(find_pc_sect_psymbol, find_pc_sect_symtab): Use it.
	* minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
	* printcmd.c (sym_info): Ignore separate debug objfiles.
gdb/testsuite/
	* gdb.base/sepdebug.exp: Remove debug format test.
	* lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test.
	Handle no-symtab.
	* gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New.
2006-10-17 20:17:45 +00:00
Daniel Jacobowitz dae5f5cf4b * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
* configure.ac: Use it.  Define HAVE_TD_THR_TLS_GET_ADDR.
	* config.in, configure: Regenerated.
	* inferiors.c (gdb_id_to_thread): New function.
	(gdb_id_to_thread_id): Use it.
	* linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
	* linux-low.h (struct process_info): Add th member.
	(thread_db_get_tls_address): New prototype.
	* remote-utils.c (decode_address): Make non-static.
	* server.c (handle_query): Handle qGetTLSAddr.
	* server.h (gdb_id_to_thread, decode_address): New prototypes.
	* target.h (struct target_ops): Add get_tls_address.
	* thread-db.c (maybe_attach_thread): Save the thread handle.
	(thread_db_get_tls_address): New.
2006-10-17 16:02:27 +00:00
Daniel Jacobowitz 5bd2f6e2a6 * gdb.threads/manythreads.c (thread_function, main): Don't cast
int to pointer or pointer to int.
	* gdb.threads/manythreads.exp: Don't expect the string "LWP".
2006-10-17 15:52:53 +00:00
Daniel Jacobowitz 32a5b2f1dd * remote.c (remote_pid_to_str): Capitalize "Thread". 2006-10-17 15:43:51 +00:00
gdbadmin aac509a07f *** empty log message *** 2006-10-17 00:00:32 +00:00
Daniel Jacobowitz 9b7194bcb4 PR remote/2158
* remote.c (remote_write_bytes): Throttle packet alignment
	for small packets.
2006-10-16 03:08:37 +00:00
gdbadmin c88c804ea4 *** empty log message *** 2006-10-16 00:00:02 +00:00
Eli Zaretskii 45ac17341e * gdb.texinfo (Signals, Set Breaks, Set Watchpoints): Document optional
arguments to `info signals'  `handle', `info breakpoints', and
	`info watchpoints'.
2006-10-15 21:36:00 +00:00
Eli Zaretskii c8aa23ab92 * gdb.texinfo (Sample Session, Invocation, Quitting GDB)
(Command Syntax, Signals, Backtrace, Connecting)
	(Remote configuration, Renesas Boards, Console I/O): Fix last
	change: use Ctrl- instead of C-, except wrt Emacs.
	(File-I/O Examples): Put Ctrl-c in @kbd.
	(Cygwin Native, File-I/O Overview, The Ctrl-C message)
	(Console I/O): Use @samp with Ctrl-.
2006-10-15 21:19:49 +00:00
Nick Roberts 1111f4aa91 (thread_db_wait): Don't bother continuing if the wait result indicates the
program terminated with a signal (from gdb-6.3-ia64-sigill-20051115.patch, a
patch for Fedora Core 5).
2006-10-15 19:38:45 +00:00
Nick Roberts b255021abc *** empty log message *** 2006-10-15 19:37:49 +00:00
gdbadmin 706bae0be6 *** empty log message *** 2006-10-15 00:00:32 +00:00
Eli Zaretskii e7109c7e3b * gdb.texinfo (Backtrace): Fix last change. 2006-10-14 18:34:03 +00:00
Nick Roberts dd74f6ae66 (Backtrace): Order correctly and add other cases. 2006-10-14 00:21:13 +00:00
Nick Roberts de3aea7bdd *** empty log message *** 2006-10-14 00:20:02 +00:00
gdbadmin 0cd39e2e24 *** empty log message *** 2006-10-14 00:00:09 +00:00
Joel Brobecker 3e4d11fe10 Add in one of the previous entries the fact that the change was to
fix PR symtab/2018.
2006-10-13 02:40:47 +00:00
gdbadmin 81a724a85f *** empty log message *** 2006-10-13 00:00:33 +00:00
Daniel Jacobowitz 8c008720eb * gdb.base/annota1.exp, gdb.base/maint.exp: Use string_to_regexp. 2006-10-12 19:03:22 +00:00
gdbadmin 78af1e2086 *** empty log message *** 2006-10-12 00:00:34 +00:00
Daniel Jacobowitz 366da635ba * dwarf2read.c (dwarf_decode_lines): Call record_line upon
encountering a different subfile.
2006-10-11 15:39:35 +00:00
Frederic Riss 861cf606cb 2006-10-11 Denis Pilat <denis.pilat@st.com>
* tui/tui-source.c (tui_set_source_content): handle source
	files that contain non unix end-of-line.
2006-10-11 10:50:07 +00:00
gdbadmin 505cb5c701 *** empty log message *** 2006-10-11 00:00:03 +00:00
Bob Wilson 7f9087cb30 * gdb.texinfo (Command Syntax, Connecting, Remote configuration,
Renesas Boards, ST2000, TUI Keys, TUI Single Key Mode, TUI Commands,
	Emacs, Console I/O): Fix @key and @kbd usage.
2006-10-10 18:55:55 +00:00
Daniel Jacobowitz 774a49c047 * ser-mingw.c (free_pipe_state, pipe_wait_handle): Update
for changes to pipe_select_thread.
	(pipe_done_wait_handle): New.
	(_initialize_ser_windows): Reference it.
2006-10-10 14:23:11 +00:00
Daniel Jacobowitz 9e35dae425 2006-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.in (expprint.o, parse.o, target.o): Update.
	* dwarf2loc.c (dwarf_expr_tls_address): Move body to
	target_translate_tls_address.  Call it.
	* eval.c (evaluate_subexp_standard): Handle UNOP_MEMVAL_TLS.
	* expprint.c (print_subexp_standard): Likewise.
	(op_name_standard, dump_subexp_body_standard): Likewise.
	* expression.h (enum exp_opcode): Add UNOP_MEMVAL_TLS.
	(union exp_element): Add objfile.
	* parse.c (write_exp_elt_objfile): New function.
	(msym_tls_symbol_type): New.
	(write_exp_msymbol): Handle TLS.
	(operator_length_standard): Handle UNOP_MEMVAL_TLS.
	(build_parse): Initialize msym_tls_symbol_type.
	* parser-defs.h (write_exp_elt_objfile): New prototype.
	* target.c (target_translate_tls_address): New.
	* target.h (target_translate_tls_address): Add prototype.

2006-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* gdb.threads/tls-nodebug.c, gdb.threads/tls-nodebug.exp: New test.
2006-10-10 03:17:53 +00:00
gdbadmin a48251ed04 *** empty log message *** 2006-10-10 00:00:33 +00:00
Daniel Jacobowitz 58dc52c34d * solib.c (solib_open): Handle an empty solib_absolute_prefix like a
missing one.
2006-10-09 20:16:10 +00:00
Daniel Jacobowitz 8bb752867c * solib.c (solib_read_symbols): Stop if the file was not found. 2006-10-09 19:58:07 +00:00
Daniel Jacobowitz d9639e1329 2006-10-09 Paul Pluzhnikov <ppluzhnikov@charter.net>
PR c++/2116
	* valops.c (find_overload_match): Check for a NULL name.

2006-10-09  Daniel Jacobowitz  <dan@codesourcery.com>

	PR c++/2116
	* gdb.cp/call-c.cc, gdb.cp/call-c.exp, gdb.cp/call-c-1.c: New.
2006-10-09 19:28:14 +00:00
gdbadmin d5aff968a1 *** empty log message *** 2006-10-09 00:00:34 +00:00
gdbadmin ea2c415d49 *** empty log message *** 2006-10-08 00:00:03 +00:00
gdbadmin 2eef69ef02 *** empty log message *** 2006-10-07 00:00:02 +00:00
Joel Brobecker 390a1bd069 * gdb.ada/arrayidx.exp: Remove calls to setup_kfail now that
the corresponding bug has been fixed in GDB (PR/2018).
2006-10-06 20:48:42 +00:00
Joel Brobecker 714e295ef0 * dwarf2read.c (read_array_type): Set the type name if the name
attribute is present.
2006-10-06 20:42:02 +00:00
Joel Brobecker dd920c3388 * gdb.base/subst.exp: New testcase. 2006-10-06 18:17:56 +00:00
Joel Brobecker 53bbefe9af * gdb.ada/array_return/pck.ads: Add copyright notice.
* gdb.ada/array_return/pck.adb: Likewise.
        * gdb.ada/array_return/p.adb: Likewise.
        * gdb.ada/exec_changed/first.adb: Likewise.
        * gdb.ada/exec_changed/second.adb: Likewise.
2006-10-06 18:05:58 +00:00
Joel Brobecker 098514179b * gdb.ada/watch_arg/watch.adb: New file.
* gdb.ada/watch_arg.exp: New testcase.
2006-10-06 17:46:56 +00:00