Commit graph

24069 commits

Author SHA1 Message Date
Doug Evans
a411cd0e60 * expprint.c (dump_raw_expression): Print note if non-NULL. 2009-03-18 16:38:18 +00:00
Doug Evans
36dc683c52 * printcmd.c (display_uses_solib_p): Redo loop, scan element list
backwards.
2009-03-18 16:22:50 +00:00
Pedro Alves
51272cf2e9 * return-nodebug.c: Don't include stdio.h.
(init): Delete.
	(func): Delete definition and provide extern declaration.
	(t): New.
	(main): Don't call printf.  Call func and store its result in t.
	* return-nodebug1.c: New.
	* return-nodebug.exp: Don't expect stdio output.  Instead, print
	the global variable t.  Drop printf formatters and cast types from
	foreach loop.  Don't use prepare_for_testing.  Compile
	return-nodebug.c and return-nodebug1.c in separate steps.  Don't
	define FORMAT or CAST.
2009-03-18 15:36:01 +00:00
Nathan Sidwell
5b1ba0e546 * Makefile.in: Update license to GPLv3.
* ada-exp.y: Update license to GPLv3.
	* ada-lex.l: Update license to GPLv3.
	* c-exp.y: Update license to GPLv3.
	* cp-name-parser.y: Update license to GPLv3.
	* darwin-nat-info.c: Update license to GPLv3.
	* f-exp.y: Update license to GPLv3.
	* gdb_thread_db.h: Update license to GPLv3.
	* hppanbsd-nat.c: Update license to GPLv3.
	* hppanbsd-tdep.c: Update license to GPLv3.
	* hppaobsd-tdep.c: Update license to GPLv3.
	* jv-exp.y: Update license to GPLv3.
	* m2-exp.y: Update license to GPLv3.
	* objc-exp.y: Update license to GPLv3.
	* p-exp.y: Update license to GPLv3.
	* reply_mig_hack.awk: Update license to GPLv3.
	* reverse.c: Update license to GPLv3.
	* xtensa-xtregs.c: Update license to GPLv3.
2009-03-18 08:51:11 +00:00
Paul Pluzhnikov
d24948ac99 2009-03-17 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.base/solib-display.exp: Disable test for remote targers.
2009-03-18 05:43:55 +00:00
Pedro Alves
8a2492ee53 * remote.c (remote_close): Don't call generic_mourn_inferior.
(remote_mourn_1): Call generic_mourn_inferior after closing the
	target.
2009-03-18 02:24:02 +00:00
Pedro Alves
5338cef16a * remote.c (remote_start_remote): Add missing call to
init_wait_for_inferior in non-stop mode.
2009-03-18 01:29:27 +00:00
Pedro Alves
717a8278b1 * breakpoint.c (bpstat_should_step): Only consider software
watchpoints that have a location.
2009-03-18 01:13:19 +00:00
gdbadmin
5b548f9aa4 *** empty log message *** 2009-03-18 00:00:33 +00:00
Christopher Faylor
f3b6bd6097 Correct typo which gave me an accidental promotion. 2009-03-17 22:57:34 +00:00
Pedro Alves
54a0b537b8 Rename "process" to "lwp" throughout.
* linux-low.c (all_processes): Rename to...
	(all_lwps): ... this.
	(inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
	(add_process): Rename to ...
	(add_lwp): ... this.  Adjust.
	(linux_create_inferior): Adjust.
	(linux_attach_lwp): Adjust.
	(linux_attach): Adjust.
	(linux_kill_one_process): Rename to ...
	(linux_kill_one_lwp): ... this.  Adjust.
	(linux_kill): Adjust.
	(linux_detach_one_process): Rename to ...
	(linux_detach_one_lwp): ... this.  Adjust.
	(linux_detach): Adjust.
	(check_removed_breakpoint): Adjust.
	(status_pending_p): Adjust.
	(linux_wait_for_process): Rename to ...
	(linux_wait_for_lwp): ... this.  Adjust.
	(linux_wait_for_event): Adjust.
	(send_sigstop): Adjust.
	(wait_for_sigstop): Adjust.
	(stop_all_processes): Rename to ...
	(stop_all_lwps): ... this.
	(linux_resume_one_process): Rename to ...
	(linux_resume_one_lwp): ... this.  Adjust.
	(linux_set_resume_request, linux_continue_one_thread)
	(linux_queue_one_thread, resume_status_pending_p)
	(usr_store_inferior_registers, regsets_store_inferior_registers)
	(linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
	Adjust.
	* linux-low.h (get_process): Rename to ...
	(get_lwp): ... this.  Adjust.
	(get_thread_process): Rename to ...
	(get_thread_lwp): ... this.  Adjust.
	(get_process_thread): Rename to ...
	(get_lwp_thread): ... this.  Adjust.
	(struct process_info): Rename to ...
	(struct lwp_info): ... this.
	(all_processes): Rename to ...
	(all_lwps): ... this.
	* proc-service.c (ps_lgetregs): Adjust.
	* thread-db.c (thread_db_create_event, find_one_thread)
	(maybe_attach_thread, thread_db_get_tls_address): Adjust.
2009-03-17 20:25:35 +00:00
Joel Brobecker
7d85a9c0e3 Add a target_ops parameter to the to_kill method in struct target_ops.
* target.h (struct target_ops): Add a "target_ops *" parameter to
        method to_kill.
        (target_kill): Remove macro. Add declaration.
        * target.c (debug_to_kill): Delete, no longer necessary.
        (target_kill): New function.
        (update_current_target):  Stop inheriting the to_kill method.
        Do not de_fault it to no_process either.
        (setup_target_debug): Do not set current_target.to_kill.
        * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
        linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
        remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
        accordingly.
2009-03-17 19:28:09 +00:00
Doug Evans
14064aa202 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
glibc 2.3.2 and earlier.
2009-03-17 18:39:08 +00:00
Joel Brobecker
f06eadd9d4 * frame.c (get_prev_frame_1): Do not perform the inner_frame
sanity check if this_frame is not NORMAL.
        (frame_id_inner): Update the description of this function.
2009-03-17 17:26:52 +00:00
Hui Zhu
b646ddd43a * gdb.texinfo: Change the introduce of "disassemble-next-line". 2009-03-17 06:01:10 +00:00
Hui Zhu
481df73e07 * stack.c: Change the introduce of "disassemble-next-line". 2009-03-17 05:59:34 +00:00
Pedro Alves
6b251945f5 * mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
declare as extern.
2009-03-17 05:18:45 +00:00
Pedro Alves
dafb3b4167 Add missing space. 2009-03-17 05:17:37 +00:00
Hui Zhu
91440f573c * gdb.texinfo: Add documentation for disassemble-next-line. 2009-03-17 05:14:01 +00:00
Hui Zhu
30c33a9f4b *stack.c: Include valprint.h.
(disassemble_next_line): New enum.
	(show_disassemble_next_line): New function.  Show the current
	value of disassemble-next-line.
	(gdb_disassembly_stub_args): New struct for argument passing
	between function do_gdb_disassembly and function
	gdb_disassembly_stub.
	(gdb_disassembly_stub): New function.  Helper for
	gdb_disassembly.
	(do_gdb_disassembly): New function.  Use TRY_CATCH to catch
	the exception from the gdb_disassembly because it will be
	broken by filter sometime.
	(print_frame_info): If disassemble-next-line is set to auto
	or on and doesn't have the line debug messages for $pc,
	output the next instruction.
	If disassemble-next-line is set to on and there is line debug
	messages, output assembly codes for next line.
	(_initialize_stack): Make the "set disassemble-next-line"
	command an auto-boolean command.  Change its class to
	class_stack.  Place it in the top level set list.  Extend help
	to describe the auto mode.
2009-03-17 05:11:40 +00:00
Pedro Alves
fee0be5dee * infrun.c (normal_stop): Don't overwrite old_chain. 2009-03-17 04:49:47 +00:00
gdbadmin
2df6516ba2 *** empty log message *** 2009-03-17 00:00:03 +00:00
Joel Brobecker
a624e1115a * remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
which is undefined, by call to regcache_invalidate, which should
        do what the original author wanted to do.
2009-03-16 21:12:46 +00:00
Joel Brobecker
383c038998 * remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
(mips_create_inferior): Likewise.
2009-03-16 19:38:33 +00:00
Joel Brobecker
267fbcde30 * go32-nat.c (go32_create_inferior): Add missing ops parameter. 2009-03-16 19:00:27 +00:00
Joel Brobecker
da66f6a6bc * darwin-nat.c (darwin_resume): Fix a compiler warning when
building on x86_64-darwin.
2009-03-16 15:57:08 +00:00
Joel Brobecker
58529c0267 * configure.tgt: Add handling for x86_64-darwin. 2009-03-16 15:04:15 +00:00
Jan Kratochvil
ba30a4e951 gdb/
* auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
2009-03-16 09:58:25 +00:00
Thiago Jung Bauermann
8fd4122798 * gdb.texinfo (Commands In Python): Remove tindex entries. 2009-03-16 03:34:45 +00:00
gdbadmin
fc7593dfa0 *** empty log message *** 2009-03-16 00:00:32 +00:00
Joel Brobecker
7fc0c7b58f * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
Use the ops parameter to get to the target beneath, rather than
        using the current_target global.  Using the current_target global
        was an unintended accident.
2009-03-15 21:05:41 +00:00
Joel Brobecker
1ba0a4eebc Fix an error happening while loading symbols from a core file
(on AIX).

        * rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
        to detect whether we're debugging a core file or not.
2009-03-15 20:26:11 +00:00
Joel Brobecker
d30acaa715 Modernize the aix-thread later by getting rid of the base_target
global.  This brings back to life the AIX port which was otherwise
        crashing all the time.

        * aix-thread.c (base_target): Delete.
        (pd_enable): Do not set base_target.
        (aix_thread_attach): Use find_target_beneath instead of base_target.
        (aix_thread_detach, aix_thread_resume, aix_thread_wait)
        (aix_thread_fetch_registers, aix_thread_store_registers),
        (aix_thread_xfer_partial, aix_thread_mourn_inferior)
        (aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
        (aix_thread_kill): Delete. Does not seem necessary.
        (init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
2009-03-15 19:38:42 +00:00
Jan Kratochvil
61ff14c69a gdb/
* stack.c (return_command <retval_exp>): New variables retval_expr
	and old_chain.  Inline parse_and_eval to initialize retval_expr.  Check
	RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
	if RETURN_TYPE is NULL.

gdb/doc/
	* gdb.texinfo (Returning): New description for missing debug info.

gdb/testsuite/
	* gdb.base/return-nodebug.exp, gdb.base/return-nodebug.c: New.
2009-03-15 09:19:40 +00:00
gdbadmin
0d34de9aea *** empty log message *** 2009-03-15 00:00:32 +00:00
Jan Kratochvil
cb4dce936e Fix a racy FAIL.
* gdb.base/multi-forks.exp (continue_to_exit_bp_loc): New function with
	code from `follow parent, print pids'.
	(`follow child, print pids', `follow parent, print pids'): Call it.
	Replace `gdb_test "break..."' by gdb_breakpoint.
2009-03-14 14:25:55 +00:00
Pedro Alves
0b16c5cfaf 2009-03-14 Pedro Alves <pedro@codesourcery.com>
gdb/
	* remote.c (PACKET_qAttached): New.
	(remote_query_attached): New.
	(remote_add_inferior): Add new `attached' argument.  Handle it.
	(remote_notice_new_inferior, remote_start_remote): Adjust to pass
	-1 to remote_add_inferior in new parameter.
	(extended_remote_attach_1): Adjust to pass 1 to
	remote_add_inferior in the new parameter.
	(extended_remote_create_inferior_1): Adjust to pass 0 to
	remote_add_inferior in the new parameter.
	(_initialize_remote): Add "set/show remote query-attached-packet"
	commands.

2009-03-14  Pedro Alves  <pedro@codesourcery.com>

	gdb/gdbserver/
	* server.c (handle_query): Handle "qAttached".

2009-03-14  Pedro Alves  <pedro@codesourcery.com>

	gdb/doc/
	* gdb.texinfo (Remote Configuration): Document query-attached.
        (General Query Packets): Document qAttached.
2009-03-14 01:38:08 +00:00
gdbadmin
eac8f8e089 *** empty log message *** 2009-03-14 00:00:05 +00:00
Tom Tromey
9ee6bb930d * symtab.c (lookup_symbol_in_language): Use a cleanup. 2009-03-13 21:02:58 +00:00
Doug Evans
787274f042 * exceptions.h: Clean up some comments on catch_exceptions usage.
* exceptions.c: Ditto.  Plus mark catch_errors as superseded by
	catch_exceptions.
2009-03-13 17:26:59 +00:00
Vladimir Prus
f7c60c5e2b * gdb.mi/mi-cli.exp: Adjust for output difference in
sync and async modes.
2009-03-13 10:55:08 +00:00
Nathan Sidwell
32de4b9db9 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
GPLv3, update license URL.
2009-03-13 07:57:47 +00:00
Joel Brobecker
24f818742e * source.c (source_full_path_of): Constify parameter filename.
* defs.h (source_full_path_of): Update declaration accordingly.
2009-03-13 02:34:13 +00:00
Joel Brobecker
e15780428b * ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
        Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:30:55 +00:00
Joel Brobecker
383ace49f8 * gdb.ada/ptype_arith_binop.exp: Remove some commented-out code
that was checked in by mistake. Remove loading of ada.exp, since
        this is not necessary in this case.
2009-03-13 02:24:38 +00:00
Joel Brobecker
4ce102af1e * gdb.ada/ptype_arith_binop.exp: New testcase. 2009-03-13 02:15:36 +00:00
Joel Brobecker
9c2be529f5 * ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:15:01 +00:00
Joel Brobecker
2360f94a42 Fix the author name in the last entry. 2009-03-13 01:52:33 +00:00
Joel Brobecker
e22dccb54c * ada-tasks.c (ada_task_is_alive): Move up and make static.
* ada-lang.h (ada_task_is_alive): Remove declaration.
2009-03-13 01:51:17 +00:00
Joel Brobecker
facc390f02 * ada-lang.c (ada_delta): Change the type of numerators and
denominators to DOUBLEST, as they may not fit into a long.
        (scaling_factor): Ditto.
2009-03-13 01:28:05 +00:00