Andrey Smirnov
54dc829719
* mi/mi-cmd-var.c (print_varobj): Rename optind' and
optarg' to
...
`oind' and `oarg', respectively(-Wshadow).
2011-12-17 06:06:49 +00:00
Andrey Smirnov
006292124e
* mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
...
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_target_file_put): Ditto.
(mi_cmd_target_file_delete): Ditto.
2011-12-17 06:03:21 +00:00
Andrey Smirnov
7082409d2d
* mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
...
`optarg' to `oind' and `oarg', respectively(-Wshadow).
(mi_cmd_env_dir): Ditto.
2011-12-17 05:58:27 +00:00
Andrey Smirnov
81493c6264
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename optind' and
optarg'
...
to `oind' and `oarg', respectively(-Wshadow).
2011-12-17 05:53:59 +00:00
Andrey Smirnov
f8c000a26c
* mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
...
`optparg' to `oind' and `oparg', respectively(-Wshadow).
(mi_cmd_break_watch): Ditto.
2011-12-17 05:49:34 +00:00
Tom Tromey
07fea4b413
* linespec.c (collect_symbols): Call maybe_add_address after
...
calling symbol_to_sal.
(minsym_found): Call maybe_add_address here.
(search_minsyms_for_name): Don't call maybe_add_address.
2011-12-16 21:39:16 +00:00
Tom Tromey
39b856a4b1
* linespec.c (struct collect_info) <objfile>: Remove field.
...
(decode_objc): Update.
(find_method): Update.
(decode_variable): Update.
(struct minsym_and_objfile): New.
(struct collect_minsyms): New.
(classify_mtype): New function.
(compare_msyms): Likewise.
(add_minsym): Likewise.
(check_minsym): Remove.
(search_minsyms_for_name): Sort minsyms and apply only those with
top priority.
2011-12-16 21:35:57 +00:00
Tom Tromey
ccbac09dc1
* cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
2011-12-16 21:17:42 +00:00
Pedro Alves
77cce10fc2
2011-12-16 Pedro Alves <pedro@codesourcery.com>
...
* inf-loop.c: Include top.h.
(inferior_event_handler): Call check_frame_language.
* top.c (check_frame_language_change): New, factored out from ...
(execute_command): ... this. Use check_frame_language_change.
* top.h (check_frame_language_change): Declare.
2011-12-16 20:29:28 +00:00
Pierre Muller
a961bc186c
* windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
...
prototypes.
2011-12-16 19:55:26 +00:00
Doug Evans
e0f9f06220
* NEWS: Add entry for stdio gdbserver.
...
gdbserver/
* linux-low.c (linux_create_inferior): If stdio connection,
redirect stdin from /dev/null, stdout to stderr.
* remote-utils.c (remote_is_stdio): New static global.
(remote_connection_is_stdio): New function.
(remote_prepare): Handle stdio connection.
(remote_open): Ditto.
(remote_close): Don't close stdin for stdio connections.
(read_prim,write_prim): New functions. Replace all calls to
read/write to these.
* server.c (main): Watch for "-" argument. Move call to
remote_prepare before start_inferior.
* server.h (STDIO_CONNECTION_NAME): New macro.
(remote_connection_is_stdio): Declare.
doc/
* gdb.texinfo (Server): Document -/stdio argument to gdbserver.
testsuite/
* lib/gdbserver-support.exp (gdb_target_cmd): Recognize stdio
gdbserver output.
(gdbserver_default_get_remote_address): New function.
(gdbserver_start): Call gdb,get_remote_address to compute argument
to "target remote" command.
2011-12-16 19:06:38 +00:00
Phil Muldoon
80b6e7564f
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
...
* testsuite/gdb.python/py-function.exp: Change "on" to "full" for
python print-stack. Add set/show python print-stack
off|full|message tests.
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* python/python.c: Define python_excp_enums.
(eval_python_from_control_command): Do not call gdbpy_print_stack.
(python_command): Ditto.
(gdbpy_print_stack): Rewrite to use new enum constants.
(maint_set_python): Remove function.
(maint_show_python): Ditto.
(_initialize_python): Do not add "maint" commands. Add "set/show
python print-stack commands".
* NEWS: Update to reflect removal for "maint set/show
print-stack"
2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
* doc/gdb.texinfo (Python Commands): Remove "maint set/show print
stack". Add documentation for "set/show python print-stack".
2011-12-16 15:55:40 +00:00
Doug Evans
ef1408725d
* exceptions.c (catcher_list_size): New function.
...
(last_message): Delete.
(exception_messages, exception_messages_size): New static globals.
(throw_it): Use exception_messages array to handle nested calls.
2011-12-15 22:15:36 +00:00
Tom Tromey
b5b445a33a
* symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
...
do_cleanups call.
2011-12-15 15:36:55 +00:00
Doug Evans
0b6cb71e50
* defs.h (wait_to_die_with_timeout): Declare.
...
* utils.c: #include "gdb_wait.h".
(sigalrm_handler, wait_to_die_with_timeout): New functions.
* ser-pipe.c: Don't #include "gdb_wait.h".
(pipe_close): Give child a chance to die on its own after closing
its stdin before SIGTERM'ing it.
2011-12-14 20:53:57 +00:00
Joel Brobecker
afaabefa90
Fix latest ChangeLog entry (forgot to give credit to reporter)
2011-12-14 20:27:47 +00:00
Joel Brobecker
6475f2fe1c
fix uninitialized field in ada-lang.c (struct match_data)
...
Field found_sym in add_nonlocal_symbols's struct match_data is
used uninitialized. Rather than adding the initialization of
this field (to zero), we set the entire structure to zero first,
and then set the fields that need to be initialized to non-zero
next.
gdb/ChangeLog:
* ada-lang.c (add_nonlocal_symbols): Initialize data to
all zeros. Remove setting of data.arg_sym to NULL.
2011-12-14 20:24:59 +00:00
Pedro Alves
7b50312ad6
gdb/
...
2011-12-14 Pedro Alves <pedro@codesourcery.com>
PR threads/10729
* linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
pointer.
(linux_nat_prepare_to_resume): New global.
(lwp_free): New.
(purge_lwp_list): Use it.
(add_lwp): Call linux_nat_new_thread even on the first LWP.
Adjust to interface change.
(delete_lwp): Call lwp_free instead of xfree.
(detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
(linux_handle_syscall_trap, linux_handle_extended_wait)
(linux_nat_filter_event, resume_stopped_resumed_lwps): Call
linux_nat_prepare_to_resume before resuming.
(linux_stop_lwp): New.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.
* linux-nat.h (struct arch_lwp_info): Forward declare.
(struct lwp_info) <arch_private>: New field.
(linux_stop_lwp): Declare.
(linux_nat_set_new_thread): Adjust.
(linux_nat_set_prepare_to_resume): New.
* i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
(struct i386_debug_reg_state): Move to i386-nat.h.
(dr_mirror): Comment.
(i386_debug_reg_state): New.
(i386_update_inferior_debug_regs): Simplify.
(i386_stopped_data_address): Use the debug register state from the
inferior, not from the local cache.
* i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
unset_status fields. New get_addr and get_control fields.
(DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
(DR_NADDR, DR_STATUS): New.
(struct i386_debug_reg_state): Moved from i386-nat.c.
* amd64-linux-nat.c (struct arch_lwp_info): New.
(amd64_linux_dr): Delete global.
(amd64_linux_dr_get_addr): New.
(amd64_linux_dr_get_control): New.
(amd64_linux_dr_unset_status): Delete.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_dr_reset_addr): Delete.
(update_debug_registers_callback): New.
(amd64_linux_dr_set_control): Reimplement.
(amd64_linux_dr_set_addr): Reimplement.
(amd64_linux_prepare_to_resume): New.
(amd64_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_amd64_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
amd64_linux_dr_get_control as i386_dr_low.get_control. Install
amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
amd64_linux_prepare_to_resume.
* i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(struct arch_lwp_info): New.
(i386_linux_dr): Delete global.
(i386_linux_dr_set_control): Reimplement.
(i386_linux_dr_get_addr): New.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_dr_get_control): New.
(update_debug_registers_callback): New.
(i386_linux_dr_unset_status): Delete.
(i386_linux_dr_set_addr): Reimplement.
(i386_linux_prepare_to_resume): New.
(i386_linux_new_thread): Change parameter to an lwp pointer.
Reimplement.
(_initialize_i386_linux_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
i386_linux_dr_get_control as i386_dr_low.get_control. Install
i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
i386_linux_prepare_to_resume.
* arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
lwp pointer. Adjust.
* ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
* mips-linux-nat.c (mips_linux_new_thread): Likewise.
* ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
* s390-nat.c (s390_fix_watch_points): Likewise.
* i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
(DR_CONTROL): Delete.
(i386_darwin_dr_reset_addr): Delete.
(i386_darwin_dr_get_addr): New.
(i386_darwin_dr_get_control): New.
* go32-nat.c
(go32_get_dr7, go32_get_dr): New.
(init_go32_ops): No longer install i386_dr_low.reset_addr.
Install go32_get_dr7 as i386_dr_low.get_control. Install
go32_get_dr as i386_dr_low.get_addr.
* i386bsd-nat.c (i386bsd_dr_get): New.
(i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_status): Use i386bsd_dr_get.
(i386bsd_dr_get_control): New.
* i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
(i386bsd_dr_get_addr): New.
(i386bsd_dr_get_control): New.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
i386bsd_dr_get_control as i386_dr_low.get_control. Install
i386bsd_dr_get_addr as i386_dr_low.get_addr.
* windows-nat.c (init_windows_ops): No longer install
i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
as i386_dr_low.get_addr.
(cygwin_get_dr): New.
(cygwin_get_dr7): New.
gdb/testsuite/
2011-12-14 Pedro Alves <pedro@codesourcery.com>
PR threads/10729
* gdb.mi/watch-nonstop.c: New file.
* gdb.mi/mi-watch-nonstop.exp: New file.
2011-12-14 17:20:32 +00:00
Doug Evans
1963ff9682
Add PR gdb/8367 to basenames-may-differ patch.
2011-12-14 16:05:59 +00:00
Doug Evans
37acd67cf7
Add PR # 7200 to: Make "!" an alias for "shell".
2011-12-14 15:31:55 +00:00
Pedro Alves
dd110abf04
2011-12-14 Pedro Alves <pedro@codesourcery.com>
...
* ia64-tdep.c (ia64_memory_remove_breakpoint): Use
target_write_raw_memory.
* m32r-tdep.c (m32r_memory_remove_breakpoint): Use
target_write_raw_memory.
* microblaze-linux-tdep.c
(microblaze_linux_memory_remove_breakpoint): Use
target_write_raw_memory.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
target_write_raw_memory.
2011-12-14 14:55:27 +00:00
Joel Brobecker
ad32032e2e
Make decode_line_internal static.
...
gdb/ChangeLog:
* linespec.c (decode_line_internal): Make static.
2011-12-14 14:34:59 +00:00
Yao Qi
d14c4eb729
gdb/
...
* breakpoint.c (create_breakpoint): Set canonical.addr_string
for static tracepoint.
2011-12-14 07:56:59 +00:00
Joel Brobecker
8837a20f4f
Create new section in NEWS for next release branch
...
gdb/ChangeLog:
* NEWS: Create a new section for the next release branch.
Rename the section of the current branch, now that it has
been cut.
2011-12-13 13:36:38 +00:00
gdbadmin
25564b6672
Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.
2011-12-13 13:06:15 +00:00
Joel Brobecker
7dda8cff78
[Ada] improve message when cannot insert Ada exception catchpoint.
...
gdb/ChangeLog:
* ada-lang.c (ada_exception_support_info_sniffer): Improve
error message.
2011-12-11 17:38:17 +00:00
Joel Brobecker
3eecfa5559
[Ada] Make the exception_support_info data per inferior.
...
The ada-lang module was using a static global called "exception_info"
for all inferiors. But each inferior might be different, and thus
this patch makes this data per-inferior.
gdb/ChangeLog:
* ada-lang.c (struct ada_inferior_data) [exception_info]:
New field.
(exception_info): Delete.
(ada_exception_support_info_sniffer): Get exception_support_info
data from our per-inferior data. Adjust code accordingly.
(ada_unhandled_exception_name_addr_from_raise): Likewise.
(ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
(ada_executable_changed_observer): Delete.
(_initialize_ada_language): Remove call to
observer_attach_executable_changed.
2011-12-11 17:37:56 +00:00
Joel Brobecker
a6af7abe5d
Warn if missing debug info for Ada exception catchpoints
...
This patch should help the user understand why the debugger is not
able to insert Ada exception catchpoints when the Ada runtime was
stripped of debugging info, as is often the case on many GNU/Linux
distros:
(gdb) catch exception
Your Ada runtime appears to be missing some debugging information.
Cannot insert Ada exception catchpoint in this configuration.
gdb/ChangeLog:
* ada-lang.c (ada_has_this_exception_support): Raise an error
if we could find the Ada exception hook in the Ada runtime,
but no debugging info for that hook.
gdb/testsuite/ChangeLog:
* gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust
expected output for unsupported case.
2011-12-11 17:36:10 +00:00
Joel Brobecker
f17011e0cd
Ada exception catchpoint support cleanup.
...
This patch cleans up a bit the way we detect which type of runtime
the program uses with respect to Ada exceptions. It also removes
an unnecessary check in ada_exception_sal which is already performed
by ada_exception_support_info_sniffer.
Some of the changes are preparation work for detecting the situation
where the Ada runtime is found, but lacking debugging info.
gdb/ChangeLog:
* ada-lang.c (ada_has_this_exception_support): New function,
extracted out of ada_exception_sal and ada_exception_sal.
(ada_exception_support_info_sniffer): Simplify by using
ada_has_this_exception_support.
(ada_exception_sal): Replace unnecessary checks by assertions.
Minor simplifications.
2011-12-11 17:35:34 +00:00
Andrey Smirnov
d3fbdd8686
* breakpoint.c (update_global_location_list): Remove nested
...
definition of `b'(-Wshadow).
2011-12-11 03:04:45 +00:00
Andrey Smirnov
eacd795a56
* breakpoint.c (insert_breakpoint_locations): Rename `error' to
...
`error_flag'(-Wshadow).
2011-12-11 02:53:28 +00:00
Andrey Smirnov
ad13d8dfa3
* bfd-target.c (target_bfd_reopen): Rename `bfd' to
...
`abfd'(-Wshadow).
2011-12-11 02:46:54 +00:00
Andrey Smirnov
917793afae
* annotate.c (annotate_array_section_begin): Rename `index' to
...
`idx'(-Wshadow).
2011-12-11 02:44:15 +00:00
Andrey Smirnov
d48ebb5b06
* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
...
`idx'(-Wshadow).
2011-12-11 02:41:31 +00:00
Andrey Smirnov
9ed936ec47
* amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
...
`syscall' to `syscall_number'(-Wshadow).
2011-12-11 02:34:26 +00:00
Andrey Smirnov
a35ddb4476
* ada-lang.c (remove_extra_symbols): Rename `remove' to
...
`remove_p'(-Wshadow).
2011-12-11 02:31:04 +00:00
Andrey Smirnov
e5e61bd728
* ada-exp.y (write_var_or_type): Rename nested `renaming' to
...
`ren_sym'(-Wshadow).
2011-12-11 02:27:24 +00:00
Doug Evans
b0df02fd80
* dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
...
debug_types_section. All uses updated.
(partial_read_comp_unit_head): Rename parameter is_debug_type_section
to is_debug_types_section.
2011-12-10 23:57:40 +00:00
Doug Evans
d200ab1e84
* python/py-auto-load.c (source_section_scripts): Call xfree
...
instead of free.
2011-12-10 22:51:47 +00:00
Yao Qi
4511b1ba87
2011-12-10 Hui Zhu <teawater@gmail.com>
...
Yao Qi <yao@codesourcery.com>
* tracepoint.c (start_tracing): Clear `inserted' flag.
2011-12-10 Yao Qi <yao@codesourcery.com>
* gdb.trace/status-stop.exp: New.
* gdb.trace/status-stop.c: New.
2011-12-10 15:16:35 +00:00
Hui Zhu
df5a4bd3a5
2011-12-10 Hui Zhu <teawater@gmail.com>
...
* tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
2011-12-10 09:41:19 +00:00
Andrey Smirnov
1afeeb75f2
* breakpoint.c (bp_loc_is_permanent): Rename `brk' to
...
`bpoint'(-Wshadow).
2011-12-10 00:22:56 +00:00
Andrey Smirnov
80e1d41794
* breakpoint.c (update_static_tracepoint): Rename nested `sal' and
...
`marker' variables to `sal2' and `tpmarker' respectively
(-Wshadow).
2011-12-10 00:15:54 +00:00
Andrew Pinski
04ca3c2272
2011-12-09 Andrew Pinski <apinski@cavium.com>
...
* linespec.c (hash_address_entry): Use iterative_hash_object on each
field rather than the struct itself.
2011-12-09 19:22:31 +00:00
Tom Tromey
8a2c437bd9
* breakpoint.c (compare_breakpoints): New function.
...
(clear_command): Remove duplicate breakpoints. Properly clean
up.
2011-12-09 18:40:46 +00:00
Maciej W. Rozycki
280711e76c
* mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
...
address chunks retrieved from decoded lui/addiu pairs.
2011-12-08 19:03:24 +00:00
Maciej W. Rozycki
4c2051c6c9
* mips-tdep.c (extended_offset): Correct calculation.
...
(unpack_mips16): Correct bitfield positions used for extraction
of the immediate argument; fix sign-extension of same.
(extended_mips16_next_pc): Correct B instruction's offset
calculation. Correct register decoding of the BEQZ and BNEZ
as well as jump-register instructions. Handle compact jumps.
2011-12-08 18:55:48 +00:00
Tom Tromey
ff011ed785
* objfiles.h (struct objfile): Remove obsolete comment.
...
* objfiles.c (build_objfile_section_table): Remove obsolete
comment.
2011-12-08 18:08:12 +00:00
Stan Shebs
7cd3876c8a
* MAINTAINERS (Responsible Maintainers): Add Yao Qi as
...
maintainer of the tic6x target.
2011-12-08 01:15:36 +00:00
Ulrich Weigand
35f73cfc81
* arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
...
* arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
(arm_deal_with_atomic_sequence_raw): Likewise.
(arm_deal_with_atomic_sequence): Likewise.
(arm_software_single_step): Call it.
* arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
2011-12-07 20:53:08 +00:00