Commit Graph

24004 Commits

Author SHA1 Message Date
gdbadmin e671f9d32e *** empty log message *** 2009-03-12 00:00:33 +00:00
Daniel Jacobowitz c5bc3a77a2 * breakpoint.c (bpstat_check_breakpoint_conditions): Use
value_mark and value_free_to_mark.
	* objfiles.c (free_objfile): Call objfile_free_data before
	freeing the BFD.
2009-03-11 20:26:02 +00:00
gdbadmin d6b7435fbe *** empty log message *** 2009-03-11 00:00:34 +00:00
Hui Zhu 55518360d8 * disasm.c (gdb_disassembly): Remove unused argument
"line_num".
	* disasm.h (gdb_disassembly): Ditto.
	* cli/cli-cmds.c (print_disassembly): Ditto.
	* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
2009-03-10 08:53:53 +00:00
gdbadmin 47d6e8f1cc *** empty log message *** 2009-03-10 00:00:33 +00:00
Paul Pluzhnikov 5fd1a349f0 2009-03-09 Paul Pluzhnikov <ppluzhnikov@google.com>
* solib.c (solib_contains_address_p): New function.
	(solib_name_from_address): Use it.
	* printcmd.c (display_uses_solib_p): Use it.
	* solib.h (solib_contains_address_p): Declare it.
2009-03-09 22:38:37 +00:00
Jan Kratochvil 36746093bb * varobj.c (free_variable): Call value_free. 2009-03-09 22:35:44 +00:00
Jan Kratochvil 757a13d08a PR gdb/9873:
* dwarf2read.c (dwarf_decode_macros): New variable `at_commandline'.
	Move the variable `macinfo_type' out of the loop.  Create a new
	processing pass before the current one to pre-create `current_file'.
	New complaint on misplaced zero/non-zero definitions/includes.
	Skip first DW_MACINFO_start_file with `at_commandline' set.
2009-03-09 18:53:48 +00:00
Vladimir Prus c8fa6cdda4 * solib.c (reload_shared_libraries): Give
inferior a chance to reset solib breakpoint.
       Reinit frame cache.
2009-03-09 13:19:19 +00:00
Christopher Faylor 14b69f28c0 Minor formatting change 2009-03-09 05:35:56 +00:00
gdbadmin 2622bc9c23 *** empty log message *** 2009-03-09 00:00:32 +00:00
Christopher Faylor 41b4aadcde * windows-nat.c (dr): Redefine to use largest possible integer which holds a
pointer.
(cygwin_set_dr): Avoid coercion.
* windows-nat.c (windows_create_inferior): implement --tty handling on
non-cygwin.
2009-03-08 21:01:52 +00:00
gdbadmin 16a4e45d3f *** empty log message *** 2009-03-08 00:00:03 +00:00
gdbadmin ca4329bda5 *** empty log message *** 2009-03-07 00:00:02 +00:00
Paul Pluzhnikov f5c9a895bc 2009-03-06 Paul Pluzhnikov <ppluzhnikov@google.com>
Rename solib_address to solib_name_from_address.
	* breakpoint.c (insert_bp_location, disable_breakpoints_in_shlibs)
	(disable_breakpoints_in_unloaded_shlib): Update.
	* printcmd.c (display_uses_solib_p): Likewise.
	* stack.c (print_frame): Likewise.
	* solib.c: Rename.
	* solib.h: Rename.
2009-03-06 18:51:05 +00:00
gdbadmin f0da3b538d *** empty log message *** 2009-03-06 00:00:33 +00:00
Paul Pluzhnikov a3247a2213 2009-03-05 Paul Pluzhnikov <ppluzhnikov@google.com>
* printcmd.c (do_one_display): Reparse exp_string.
	(display_uses_solib_p): New function.
	(clear_dangling_display_expressions): New function.
	(_initialize_printcmd): Add observer.
	* solib.c (no_shared_libraries): Swap order of calls to
	clear_solib and objfile_purge_solibs.
2009-03-05 23:45:14 +00:00
Joel Brobecker d36df9c574 Implement the target-specific part of Ada tasking support
on Tru64.

        * dec-thread.c (dec_thread_get_ada_task_ptid): New function.
        (init_dec_thread_ops): Set the to_get_ada_task_ptid method.
2009-03-05 23:42:32 +00:00
Joel Brobecker b254c0b2b1 Get rid of the global "base_target" and use "find_target_beneath"
to find the underlying target.
        * dec-thread.c (base_target): Delete.
        (enable_dec_thread): Remove assignement to base_target.
        (dec_thread_detach, dec_thread_wait, dec_thread_wait)
        (dec_thread_fetch_registers, dec_thread_store_registers)
        (dec_thread_mourn_inferior, dec_thread_pid_to_str):
        Update the function profile if necessary.
        Use find_target_beneath to call the same method but from
        the underlying target, removing the need for "base_target".

        * dec-thread.c (dec_thread_get_regsets, dec_thread_set_regsets):
        Fix a copy/paste error in a few debug traces...

        * solib-osf.c (init_so): Use a simpler method for computing
        the size of lm_info structure. This also gets rid of warning
        emitted by the compiler.
2009-03-05 23:37:20 +00:00
Pedro Alves 32fc0df94f * gdb.texinfo (Background Execution): Better describe the set
target-async command.
	(Maintenance Commands): Delete description of the `maint set/show
	linux-async' and `maint set/show remote-async' commands.
2009-03-05 23:11:11 +00:00
Pedro Alves aae6458789 gdb/
2009-03-05  Pedro Alves  <pedro@codesourcery.com>

	* breakpoint.c (check_duplicates_for): Skip permanent breakpoints
	duplicates of permanent breakpoints.

gdb/testsuite/
2009-03-05  Pedro Alves  <pedro@codesourcery.com>

	* gdb.arch/i386-permbkpt.S, gdb.arch/i386-permbkpt.exp: New.
2009-03-05 22:37:11 +00:00
gdbadmin 022478a8d8 *** empty log message *** 2009-03-05 00:00:33 +00:00
Pedro Alves 237d431546 Wrap long line. 2009-03-04 22:52:00 +00:00
Pedro Alves 1941c569e4 * inferior.h (notice_new_inferior): Declare.
* infcmd.c (notice_new_inferior): New.
	* remote.c (remote_add_inferior, remote_add_thread): New.
	(notice_new_inferiors): Rename to...
	(remote_notice_new_inferior): ... this.  Add RUNNING argument.
	Use remote_add_thread instead of add_thread, passing it the
	RUNNING argument.  Add an inferior with remote_add_inferior.  If
	we just learned about an inferior, call notice_new_inferior.
	(record_currthread): Adjust.
	(remote_threads_info): Adjust to use remote_notice_new_inferior.
	(remote_start_remote, extended_remote_attach_1): Use remote_add_inferior.
	(process_stop_reply): Adjust.  Call remote_notice_new_inferior
	after handling expedited registers and watchpoint state.
	(extended_remote_create_inferior_1): Use remote_add_inferior.
2009-03-04 22:50:59 +00:00
Aleksandar Ristovski 9bde073247 * infcmd.c (registers_info): Remove register number case. 2009-03-04 17:58:34 +00:00
gdbadmin a83a4a994d *** empty log message *** 2009-03-04 00:00:34 +00:00
Pedro Alves 6aa8e5c2ae * top.c (quit_target): Check for target_has_execution before
killing or detaching from inferiors.
2009-03-03 13:35:24 +00:00
Joel Brobecker 1d59cee5ab Remove some unused routines.
* ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
        Delete.
        * ada-lang.c (ada_task_list_iterator_ftype)
        (iterate_over_live_ada_tasks): Delete.
        * ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
        Delete.
2009-03-03 02:10:08 +00:00
gdbadmin 0aafb4df1a *** empty log message *** 2009-03-03 00:00:03 +00:00
Doug Evans 93efd30205 Clean up last entry. 2009-03-02 22:39:44 +00:00
Doug Evans 9af17804e9 * symtab.c: Remove trailing whitespace throughout the file.
(expand_line_sal): Fix some typos and whitespace.
2009-03-02 06:33:24 +00:00
Doug Evans 3c54f1401b * Makefile.in (clean): rm -f $(DEPDIR)/*. 2009-03-02 01:27:35 +00:00
Doug Evans 2aecd87f56 * Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
(init.c): signals/ -> common/.
	(signals.o): Update.
	* target.h (target_signal_to_string,target_signal_to_string)
	(target_signal_from_name,target_signal_to_host_p)
	(target_signal_from_host,target_signal_to_host): Move to ...
	* common/gdb_signals.h: ... here.  New file.
	* common/signals.c: Moved here from signals/signals.c.
	#include gdb_signals.h, remove #include of target.h in gdb case.
	(target_signal_from_command,default_target_signal_to_host)
	(default_target_signal_from_host): Move inside #ifndef GDBSERVER.

	* gdbserver/Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
	(server_h): Add gdb_signals.h.
	(signals.o): Update.
	* server.h (target_signal_from_host,target_signal_to_host_p)
	(target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
2009-03-02 00:45:13 +00:00
gdbadmin 997fb4dd1e *** empty log message *** 2009-03-02 00:00:03 +00:00
Doug Evans 223698f82a Include thread ID in target_wait debugging output.
* infrun.c (print_target_wait_results): New function.
	(wait_for_inferior,fetch_inferior_event): Call it.
2009-03-01 23:18:36 +00:00
gdbadmin 07c026eb82 *** empty log message *** 2009-03-01 00:00:03 +00:00
gdbadmin a5a437df77 *** empty log message *** 2009-02-28 00:00:33 +00:00
Pedro Alves 93a91755bf * gdb_proc_service.h (struct ps_prochandle): Replace pid_t field
with a ptid_t field.
	* linux-thread-db.c (thread_get_info_callback): Build the ptid
	using the pid stored in proc_handle.ptid.
	(thread_from_lwp, thread_db_attach_lwp, enable_thread_event)
	(check_for_thread_db, thread_db_detach, check_event)
	(thread_db_mourn_inferior, find_new_threads_callback)
	(thread_db_find_new_threads_1): Adjust.
	* proc-service.c (ps_xfer_memory, ps_lgetregs, ps_lsetregs)
	(ps_lgetfpregs, ps_lsetfpregs, ps_getpid): Adjust.
2009-02-27 20:34:41 +00:00
Phil Muldoon b5096abe11 2009-02-27 Phil Muldoon <pmuldoon@redhat.com>
* valprint.c (read_string): Rework clean-up logic. Use
	free_current_contents to clean-up buffer.
2009-02-27 19:33:06 +00:00
Andreas Schwab a2f63f5efa Update e-mail address. 2009-02-27 15:03:47 +00:00
gdbadmin 44b157f7b5 *** empty log message *** 2009-02-27 00:00:33 +00:00
Phil Muldoon 83390453c3 2009-02-26 Phil Muldoon <pmuldoon@redhat.com>
* python/python-utils.c (python_string_to_unicode): Always return
        a new reference.
        (python_string_to_target_string): Decrement transient python
        instance.
        (python_string_to_host_string): Likewise.
2009-02-26 20:45:21 +00:00
Pedro Alves a0740d21fa * mips-linux-nat.c (mips64_linux_fetch_registers): Pass `ops' to
call to super_fetch_registers.
	(mips64_linux_store_registers): Pass `ops' to call to
	super_store_registers.
2009-02-26 19:44:39 +00:00
Doug Evans 99361f52eb * breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
error message.
2009-02-26 01:14:03 +00:00
gdbadmin a798e270c7 *** empty log message *** 2009-02-26 00:00:33 +00:00
Doug Evans 1c2af6c43c * breakpoint.c (disable_breakpoints_in_shlibs): Delete local
disabled_shlib_breaks, unused.
2009-02-25 21:43:04 +00:00
Doug Evans 89c83b10fb * printcmd.c (build_address_symbolic): Fix comment. 2009-02-25 18:26:53 +00:00
Hui Zhu 9e2f0ad4e0 2009-02-25 Hui Zhu <teawater@gmail.com>
* cli/cli-script.c (define_command): Add _() to query.
	* gnu-nat.c (inf_validate_task_sc): Ditto.
	* infcmd.c (kill_if_already_running): Ditto.
	(jump_command): Ditto.
	(attach_command): Ditto.
	* inflow.c (kill_command): Ditto.
	* infrun.c (handle_command): Ditto.
	* maint.c (maintenance_dump_me): Ditto.
	* memattr.c (mem_delete_command): Ditto.
	* monitor.c (monitor_interrupt_query): Ditto.
	* nto-procfs.c (interrupt_query): Ditto.
	* printcmd.c (undisplay_command): Ditto.
	* remote-mips.c (mips_kill): Ditto.
	* remote.c (interrupt_query): Ditto.
	* solib-irix.c (irix_open_symbol_file_object): Ditto.
	* solib-osf.c (osf_open_symbol_file_object): Ditto.
	* solib-pa64.c (pa64_open_symbol_file_object): Ditto.
	* solib-som.c (som_open_symbol_file_object): Ditto.
	* solib-svr4.c (open_symbol_file_object): Ditto.
	* symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
	* target.c (kill_or_be_killed): Ditto.
	* tracepoint.c (delete_trace_command): Ditto.
	* top.c (quit_confirm): Add _() to s that will be used
	in query.
2009-02-25 02:14:23 +00:00
gdbadmin 619518c5f6 *** empty log message *** 2009-02-25 00:00:33 +00:00
Pierre Muller 02529b4844 Fix windows-nat.c compilation failure.
* windows-nat.c (windows_thread_alive): Fix forward declaration.
	(get_windows_debug_event): Add ops parameter to call to windows_resume.
2009-02-24 15:27:58 +00:00