1 2011-09-28 Yao Qi <yao@codesourcery.com>
3 * symfile.c (add_symbol_file_command): Update message on usage.
5 2011-09-28 Paul Koning <paul_koning@dell.com>
7 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
8 (typy_length, typy_get, typy_has_key, typy_make_iter)
9 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
10 (typy_iterator_iter, typy_iterator_iternext)
11 (typy_iterator_dealloc): New functions to implement standard
12 Python mapping methods on gdb.Type object.
13 (gdb.TypeIterator): New Python type.
14 * python/python-internal.h (gdbpy_iter_kind): New enum.
15 * doc/gdb.texinfo (gdb.Type): Document field access by dictionary
18 2011-09-28 David S. Miller <davem@davemloft.net>
20 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
21 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
22 * sparc-tdep.c (sparc_complex_floating_p): New function.
23 (sparc32_store_arguments): Handle complex floats.
24 (sparc32_extract_return_value): Likewise.
25 (sparc32_store_return_value): Likewise.
26 (sparc32_stabs_argument_has_addr): Likewise.
27 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
28 (sparc64_store_floating_fields): Handle complex floats.
29 (sparc64_store_arguments): Likewise.
30 (sparc64_store_return_value): Likewise.
32 2011-09-28 Eli Zaretskii <eliz@gnu.org>
34 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
35 before the change on 2006-12-09.
36 (windows_create_inferior) [!__CYGWIN__]: Restore code that
37 generates the environment block for CreateProcessA, modulo the
38 Cygwin-specific parts that are not needed here.
40 2011-09-27 Tristan Gingold <gingold@adacore.com>
42 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
43 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
44 (darwin_solib_get_all_image_info_addr_at_init): New function.
45 (darwin_solib_read_all_image_info_addr): Likewise.
46 (darwin_solib_create_inferior_hook): Use the above two functions.
47 * darwin-nat.c (darwin_execvp): Renames retval to res.
48 (darwin_read_write_inferior): Update comment.
49 (darwin_read_dyld_info): New function.
50 (darwin_xfer_partial): Handle DYLD_INFO.
52 2011-09-27 Stan Shebs <stan@codesourcery.com>
54 Add return address collection for tracepoints.
55 * tracepoint.c (encode_actions_1): Add case for $_ret.
56 (validate_actionline): Check for $_ret.
57 (trace_dump_actions): Ditto.
58 * ax-gdb.h (gen_trace_for_return_address): Declare.
59 * ax-gdb.c: Include arch-utils.h.
60 (gen_trace_for_return_address): New function.
61 (agent_command): Add return address special case.
62 * amd64-tdep.c: Include ax.h and ax-gdb.h.
63 (amd64_gen_return_address): New function.
64 (amd64_init_abi): Call it.
65 * i386-tdep.c: Include ax.h and ax-gdb.h.
66 (i386_gen_return_address): New function.
67 (i386_init_abi): Call it.
68 * arch-utils.h (default_gen_return_address): Declare.
69 * arch-utils.c (default_gen_return_address): New function.
70 * gdbarch.sh (gen_return_address): New method.
71 * gdbarch.h, gdbarch.c: Regenerate.
73 2011-09-23 Joseph Myers <joseph@codesourcery.com>
76 * i386-tdep.c (i386_frame_align): New.
77 (i386_gdbarch_init): Use i386_frame_align.
79 2011-09-23 Yao Qi <yao@codesourcery.com>
81 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
84 2011-09-22 Tristan Gingold <gingold@adacore.com>
86 * fork-child.c (fork_inferior): Add exec_fun parameter.
87 Call exec_fun or execvp.
88 * inferior.h: Adjust prototype.
89 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
90 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
91 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
92 * procfs.c (procfs_create_inferior): Ditto.
93 * darwin-nat.c (darwin_execvp): New function.
94 (darwin_create_inferior): Use it.
96 2011-09-22 Yao Qi <yao@codesourcery.com>
98 * infrun.c (context_switch): Print debug message when switching to
101 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
103 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
104 complex and vector types.
105 (s390_return_value_convention): Likewise.
107 (s390_value_from_register): Call check_typedef.
108 (extend_simple_arg): Likewise.
109 (alignment_of): Likewise.
110 (s390_push_dummy_call): Likewise.
111 (s390_return_value): Likewise.
113 2011-09-21 Joseph Myers <joseph@codesourcery.com>
115 * event-top.c (async_disconnect): If an exception is thrown from
116 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
118 * top.c (quit_cover): Return void and take no arguments.
119 * top.h (quit_cover): Update prototype.
121 2011-09-20 Joseph Myers <joseph@codesourcery.com>
123 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
124 current_uiout, not uiout.
126 2011-09-19 Doug Evans <dje@google.com>
128 * python/py-auto-load.c (source_section_scripts): Fix file
130 * python/python.c (source_python_script_for_objfile): Tweak comments.
132 2011-09-18 Yao Qi <yao@codesourcery.com>
133 Ulrich Weigand <ulrich.weigand@linaro.org>
135 Support displaced stepping for Thumb 16-bit insns.
136 * arm-tdep.c (THUMB_NOP) Define.
137 (thumb_copy_unmodified_16bit): New.
138 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
139 (thumb_copy_alu_reg): New.
140 (arm_copy_svc): Move some common code to ...
141 (install_svc): ... here. New.
142 (thumb_copy_svc): New.
143 (install_pc_relative): New.
144 (thumb_copy_pc_relative_16bit): New.
145 (thumb_decode_pc_relative_16bit): New.
146 (thumb_copy_16bit_ldr_literal): New.
147 (thumb_copy_cbnz_cbz): New.
148 (cleanup_pop_pc_16bit_all): New.
149 (thumb_copy_pop_pc_16bit): New.
150 (thumb_process_displaced_16bit_insn): New.
151 (thumb_process_displaced_32bit_insn): New.
152 (thumb_process_displaced_insn): process thumb instruction.
154 Support displaced stepping for Thumb 32-bit insns.
155 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
156 (thumb2_copy_preload): New.
157 (thumb2_copy_copro_load_store): New.
158 (thumb2_copy_b_bl_blx): New.
159 (thumb2_copy_alu_imm): New.
160 (thumb2_copy_load_reg_imm): New.
161 (thumb2_copy_load_literal): New
162 (thumb2_copy_block_xfer): New.
163 (thumb_32bit_copy_undef): New.
164 (thumb_32bit_copy_unpred): New.
165 (thumb2_decode_ext_reg_ld_st): New.
166 (thumb2_decode_svc_copro): New.
167 (decode_thumb_32bit_store_single_data_item): New.
168 (thumb_copy_pc_relative_32bit): New.
169 (thumb_decode_pc_relative_32bit): New.
170 (decode_thumb_32bit_ld_mem_hints): New.
171 (thumb2_copy_table_branch): New
172 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
175 2011-09-18 Yao Qi <yao@codesourcery.com>
177 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
178 (install_b_bl_blx): Likewise.
180 2011-09-17 Yao Qi <yao@codesourcery.com>
182 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
183 (install_load_store): ... this. New.
184 Change parameter BYTE to SIZE.
185 (arm_copy_ldr_str_ldrb_strb): Update caller.
186 (arm_decode_ld_st_word_ubyte): Update caller.
188 2011-09-17 Yao Qi <yao@codesourcery.com>
190 * infrun.c (displaced_step_fixup): Move some code ...
191 (displaced_step_restore): ... here. New function.
192 (handle_inferior_event): Cleanup displaced stepping state for both
193 child and parent when get forked or vforked event.
194 * regcache.c (get_thread_arch_aspace_regcache): New function.
195 get_thread_arch_regcache (): Call it.
197 2011-09-16 Joel Brobecker <brobecker@adacore.com>
199 * ada-tasks.c (print_ada_task_info): New function, merging
200 short_task_info and info_tasks together. Reimplement using
201 ui-out instead of printing to stdout directly. Move the code
202 building and checking the task list here, instead of leaving it
203 in info_tasks_command.
204 (info_task): Move the code building and checking the task
205 list here, instead of leaving it in info_tasks_command.
206 (info_tasks_command): Delete code building and checking
207 the task list - moved elsewhere. Update calls to info_tasks
210 2011-09-16 Joel Brobecker <brobecker@adacore.com>
212 * ada-tasks.c (info_task): Delete parameter `from_tty'.
214 2011-09-16 Joel Brobecker <brobecker@adacore.com>
216 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
218 2011-09-16 Joel Brobecker <brobecker@adacore.com>
220 * ada-lang.h (ada_build_task_list): Remove parameter
222 * ada-tasks.c (ada_build_task_list): Remove parameter
223 `warn_if_null'. Adjust implementation and documentation.
224 (valid_task_id, ada_get_environment_task)
225 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
226 (info_tasks_command): Adjust implementation.
227 (task_command): Likewise.
228 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
229 to ada_build_task_list.
231 2011-09-16 Joel Brobecker <brobecker@adacore.com>
233 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
234 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
235 (ada_tasks_inferior_data_handle): New static global.
236 (get_ada_tasks_inferior_data): New function.
237 (ada_get_task_number, get_task_number_from_id, valid_task_id)
238 (ada_get_environment_task, iterate_over_live_ada_tasks)
239 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
241 (ada_set_current_inferior_known_tasks_addr): New function.
242 (read_known_tasks, ada_build_task_list, short_task_info)
243 (info_tasks, info_task, info_tasks_command, task_command_1)
244 (task_command, ada_task_list_changed): Adjust.
245 (ada_tasks_invalidate_inferior_data): New function.
246 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
247 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
248 * ada-lang.h (struct inferior): Add declaration.
249 (ada_task_list_changed): Update profile.
250 * remote-wtx-pd.c: #include "inferior.h".
251 (switch_to_pd_internal): Update call to ada_task_list_changed.
253 2011-09-16 Joel Brobecker <brobecker@adacore.com>
255 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
256 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
257 (atcb_fieldno): Delete these static globals.
258 (struct ada_tasks_pspace_data): New struct.
259 (ada_tasks_pspace_data_handle): New static global.
260 (get_ada_tasks_pspace_data): New function.
261 (ada_tasks_invalidate_pspace_data): New function.
262 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
263 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
264 (_initialize_tasks): Create this module's per-progspace
267 2011-09-16 Joel Brobecker <brobecker@adacore.com>
269 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
271 2011-09-16 Tristan Gingold <gingold@adacore.com>
273 * fork-child.c (fork_inferior): Update comment. Use alloca
274 instead of xmalloc for argv. Move len and shell_command
275 declarations in the block where they are used.
276 Only call execvp. Factorize failure code.
278 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
281 * parse.c (write_exp_elt): Change argument to pass a pointer of union
282 `exp_element' instead of an element of the same and make the function
284 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
285 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
286 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
287 Change argument of `write_exp_elt' function call.
288 Remove extra spaces from comments.
289 * parser-defs.h (write_exp_elt): Remove prototype.
291 2011-09-15 Paul Koning <paul_koning@dell.com>
293 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
294 count of item appended to list.
295 * python/py-type.c (typy_fields): Likewise.
297 2011-09-15 Paul Koning <paul_koning@dell.com>
299 * MAINTAINERS (Write After Approval): Add myself to the list.
301 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
304 * linux-fork.c (checkpoint_command): Disallow checkpointing of
305 processes with multiple threads.
306 (inf_has_multiple_thread_cb): New function.
307 (inf_has_multiple_threads): New function.
309 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
311 PR Python/12692 Add gdb.selected_inferior() to Python interface.
312 * python/py-inferior.c (GdbMethods): New Python method definition.
314 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
316 Handle multiple breakpoint hits in Python interface:
317 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
318 variable to breakpoints.
319 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
320 bps instead of single breakpoint. Fix some space typos.
321 * python/py-stopevent.c (create_breakpoint_event_object): Rename
322 variable to breakpoints.
324 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
326 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
327 note if the breakpoint is internal.
329 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
331 * MAINTAINERS (Write After Approval): Add myself to the list
333 2011-09-14 Pedro Alves <pedro@codesourcery.com>
335 * infrun.c (prepare_for_detach, wait_for_inferior)
336 (fetch_inferior_event): Don't flush the register cache.
337 * remote.c (struct stop_reply) <regcache>: Add comment.
339 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
341 Remove excessive DWARF expressions memory duplication.
342 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
344 (indirect_pieced_value): Remove variable result. Remove variable
345 back_to and its use for baton.data.
346 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
348 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
349 Update the function comment.
351 2011-09-13 Pedro Alves <pedro@codesourcery.com>
353 * inferior.h (ALL_INFERIORS): New.
354 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
355 for a stopped thread.
356 (thread_db_find_new_threads): Look for threads in all inferiors.
358 2011-09-13 Pedro Alves <pedro@codesourcery.com>
360 * breakpoint.c (update_watchpoint): Handle the case of the
361 watchpoint to update not being in the breakpoint list yet.
362 (hw_watchpoint_use_count): New, factored out from
363 hw_watchpoint_used_count.
364 (hw_watchpoint_used_count): Rename to ...
365 (hw_watchpoint_used_count_others): ... this. Add `except'
366 parameter. Don't count resources of `except'. Use
367 hw_watchpoint_use_count.
369 2011-09-13 Pedro Alves <pedro@codesourcery.com>
371 * gdbthread.h (enum thread_state): Moved here.
372 (struct thread_info): Rename `executing_' field to `executing' and
374 * thread.c (enum thread_state): Moved to gdbthread.h.
375 (new_thread, add_thread_silent, delete_thread_1)
376 (any_live_thread_of_process, thread_alive, set_running)
377 (set_running, is_thread_state, any_running, is_executing)
378 (set_executing, finish_thread_state, print_thread_info)
379 (do_captured_thread_select): Adjust.
381 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
383 Fix compatibility with gcc < 4.3 and non-gcc compilers.
384 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
386 2011-09-12 Pedro Alves <pedro@codesourcery.com>
387 Matt Rice <ratmice@gmail.com>
391 * interps.c (struct interp) <interpreter_out>: Delete field.
392 (interp_new): Remove the data and uiout parameters and adjust.
393 (interp_set): Only set the current_uiout from the interpreter's
394 uiout after initializing the interpreter. Adjust call to
396 (interp_ui_out): Adjust to call procs->ui_out_proc.
397 (interp_data, interp_name): New.
398 * interps.h (interp_init_ftype): Add `self' parameter.
399 (interp_ui_out_ftype): New typedef.
400 (struct interp_procs) <ui_out_proc>: New method pointer.
401 (interp_new): Remove the data and uiout parameters.
402 (interp_data, interp_name): Declare.
403 * tui/tui-interp.c (tui_init): Adjust prototype.
405 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
406 tui_out here. Adjust call to interp_new.
407 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
408 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
410 (_initialize_cli_interp): Install it. Adjust call to interp_new.
411 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
412 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
413 Initialize mi->uiout depending on the mi_version as extracted from
414 the interpreter's name.
416 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
417 interp_new. Don't allocate the ui_out's of the interpreters here.
419 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
421 * solib.c (solib_used): New function.
422 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
423 by another so_list object before freeing it.
425 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
431 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
434 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
435 (amd64_skip_xmm_prologue): ... this new function. Describe its
436 parameters. No longer use amd64_prologue_line_bug.
437 * defs.h (producer_is_gcc_ge_4): New declaration.
438 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
439 (process_full_comp_unit): Update its caller. Remove
440 amd64_prologue_line_bug initialization.
441 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
442 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
444 2011-09-09 Pedro Alves <pedro@codesourcery.com>
446 * linux-nat.h (enum resume_kind): New.
447 (struct lwp_info) <last_resume_kind>: New field.
448 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
449 resume_stop on the new lwp.
450 (add_lwp): Set last_resume_kind as resume_continue by default.
451 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
452 (resume_lwp): New, factored out from resume_callback. Also check
453 for pending status in lp->waitstatus.
454 (resume_callback): Reimplement.
455 (resume_clear_callback): Set last_resume_kind as resume_stop.
456 (resume_set_callback): Set last_resume_kind as resume_continue.
457 (linux_nat_resume, linux_handle_extended_wait): Set
459 (running_callback): Also check lp->waitstatus for pending events.
460 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
462 (stop_and_resume_callback): Don't re-resume if the core wanted the
463 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
464 using an invalidated pointer.
465 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
466 SIGSTOPs if the core wanted the LWP to stop.
467 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
468 wanted the lwp to stop. If the core wanted the lwp to stop, and
469 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
470 of TARGET_SIGNAL_STOP.
471 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
472 here. Instead, signal the lwp, and set the last_resume_kind to
475 2011-09-09 Pedro Alves <pedro@codesourcery.com>
477 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
478 -1 (error), if the lwp exits right after attaching.
480 2011-09-08 Doug Evans <dje@google.com>
482 * py-cmd.c: Some minor formatting fixes.
483 (gdbpy_parse_command_name): Rename text arg to name, make const.
485 * python-internal.h (gdbpy_parse_command_name): Update.
487 * cli/cli-decode.c (add_cmd): Add comment.
489 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
492 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
493 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
494 * dwarf2read.c (process_full_comp_unit): Initialize
495 amd64_prologue_line_bug.
496 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
498 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
500 Fix TUI screen corruption.
501 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
504 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
506 * findvar.c (read_var_value): Never return NULL, throw an error
507 instead. Update the function comment. State symbol name in the error
509 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
511 * stack.c (print_frame_args): Likewise.
512 * valops.c (value_of_variable): Likewise.
514 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * stack.c (print_frame_args): New variable except. Wrap
517 read_var_value and common_val_print into TRY_CATCH.
519 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
522 caller to value_of_this.
523 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
525 * valops.c (value_of_this): Remove parameter complain and variable ret.
526 Update function comment. Never return NULL by this code.
527 (value_of_this_silent): New function.
528 * value.h (value_of_this): Remove parameter complain.
529 (value_of_this_silent): New declaration.
531 2011-09-07 Yao Qi <yao@codesourcery.com>
533 * gdbthread.h (struct thread_info): Remove fields
534 `stepping_through_solib_after_catch' and
535 `stepping_through_solib_catchpoints'.
536 * infrun.c (init_thread_stepping_state): Update.
537 (process_event_stop_test, currently_stepping): Update.
538 (currently_stepping_or_nexting_callback): Update.
540 2011-09-07 Yao Qi <yao@codesourcery.com>
542 * gdbthread.h (struct thread_info): Comment on field
543 `step_after_step_resume_breakpoint'.
545 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
547 * remote.c (remote_console_output): Reindent.
549 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
551 * frame.c (has_stack_frames): Check for currently selected
554 2011-09-06 Pedro Alves <pedro@codesourcery.com>
556 * event-top.h (MAXPROMPTS, struct prompts): Delete.
557 (set_async_annotation_level, set_async_prompt, pop_prompt)
558 (push_prompt, new_async_prompt): Delete declarations.
559 * top.h (get_prompt, set_prompt): Change prototype.
560 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
562 * top.c (command_loop):
563 (top_prompt): New global.
564 (get_prefix, set_prefix, get_suffix, ): Delete.
565 (get_prompt, set_prompt): Rewrite.
566 (show_new_async_prompt): Rename to ...
567 (show_prompt): ... this.
568 (init_main): Adjust. Don't handle --annotate=2 here.
569 * event-top.c (new_async_prompt): Delete.
570 (the_prompts): Delete.
571 (more_to_come): Make static.
572 (display_gdb_prompt): Use top_level_prompt() to compute the top
573 level prompt, and don't notify the before_prompt observers
574 directly here. Always trick readline into not trying to display
575 the prompt if sync_execution and displaying the primary prompt.
576 If displaying a local/secondary prompt, always show it, even if
577 sync_execution is set.
578 (change_annotation_level): Delete.
579 (top_level_prompt): New, based on change_annotation_level.
580 (push_prompt, pop_prompt): Delete.
581 (async_disable_stdin): No longer pushes prompt.
582 (command_line_handler): No longer pushes or pops prompt. If more
583 input is expected, call display_gdb_prompt with an explicit empty
585 (async_stop_sig): Adjust.
586 (set_async_annotation_level, set_async_prompt): Delete.
587 * python/python.c (before_prompt_hook): Adjust.
589 2011-09-05 Pedro Alves <pedro@codesourcery.com>
593 * infrun.c (fetch_inferior_event): Check if there's a selected
594 thread before checking if the selected thread is executing.
596 2011-09-05 Pedro Alves <pedro@codesourcery.com>
598 * inf-loop.c (execute_command): Don't check if the current thread
599 if running before synchronously waiting for command completion.
600 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
602 (normal_stop): Call async_enable_stdin here.
603 * inf-loop.c (inferior_event_handler): Don't call
604 async_enable_stdin, nor handle "set exec-done-display" here.
606 2011-09-04 Joel Brobecker <brobecker@adacore.com>
610 2011-09-04 Joel Brobecker <brobecker@adacore.com>
612 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
614 2011-09-04 Joel Brobecker <brobecker@adacore.com>
616 * NEWS: Add entry for OpenBSD/NetBSD build failure.
618 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
620 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
622 2011-09-02 Matt Rice <ratmice@gmail.com>
625 * event-top.c (cli_command_loop): Replace readline setup with
626 direct call to display_gdb_prompt.
627 (display_gdb_prompt): Do not call observer mechanism during
628 synchronous execution.
630 2011-09-02 Pedro Alves <pedro@codesourcery.com>
632 * linux-nat.c (in_pid_list_p): New.
633 (linux_record_stopped_pid): Delete.
634 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
635 already attached to the LWP. Return an indication if so.
636 (linux_nat_filter_event): Adjust.
637 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
638 returning an indication to ignore this thread.
640 2011-09-02 Pedro Alves <pedro@codesourcery.com>
642 * top.c: Include interps.h.
643 (execute_command): If the target can async, but the interpreter is
644 in sync mode, synchronously wait for the command to finish before
646 (execute_command_to_string): Force the interpreter to sync mode.
647 * infrun.c: Include interps.h.
648 (fetch_inferior_event): Don't restore the prompt yet if the
649 interpreter is in sync mode.
650 * interps.c (interpreter_async): New global.
651 * interps.h (interpreter_async): Declare.
652 * inf-loop.c: Include interps.h.
653 (inferior_event_handler): Don't print the language change or run
654 breakpoint commands yet if the interpreter in is sync mode.
655 * main.c (captured_command_loop): Flip the interpreter to async
657 * cli/cli-script.c: Include interps.h.
658 (execute_user_command, while_command, if_command): Force the
659 interpreter to sync mode.
660 * python/python.c: Include interps.h.
661 (python_command, execute_gdb_command): Force the interpreter to
664 2011-09-02 Pedro Alves <pedro@codesourcery.com>
666 * value.c (show_convenience): Catch errors thrown while printing
667 each internal variable.
668 * infrun.c (validate_siginfo_access): New function.
669 (siginfo_value_read, siginfo_value_write): Call it.
671 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
674 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
675 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
678 2011-08-29 Yao Qi <yao@codesourcery.com>
680 * solib-dsbt.c (bfd_lookup_symbol): Removed.
682 (enable_break2): Update caller.
683 * solib-frv.c (bfd_lookup_symbol): Removed.
685 (enable_break2): Update caller.
686 * solib-pa64.c (bfd_lookup_symbol): Removed.
688 * solib-svr4.c (bfd_lookup_symbol): Removed.
689 (cmp_name_and_sec_flags): New.
690 (enable_break): Update caller.
691 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
692 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
693 (gdb_bfd_lookup_symbol): New.
694 * solib.h: Functions declarations.
696 2011-08-29 Yao Qi <yao@codesourcery.com>
698 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
701 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
703 Fix TUI stepi on code without symbols.
704 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
707 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
710 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
711 and the static keyword.
712 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
713 Make prefix an array.
714 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
715 * mi/mi-main.c (get_register): Remove stb initialization and the static
718 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
720 Code cleanup - make mi_opt const.
721 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
723 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
724 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
725 (mi_cmd_env_dir): Likewise.
726 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
727 (mi_cmd_target_file_put): Likewise.
728 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
729 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
730 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
731 (mi_valid_noargs): Make opts const.
732 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
733 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
734 (mi_cmd_data_read_memory): Likewise.
735 (mi_cmd_data_read_memory_bytes): Likewise.
736 (mi_cmd_data_write_memory): Likewise.
738 2011-08-26 Matt Rice <ratmice@gmail.com>
740 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
741 bcache_xmalloc, replace bcache_xmalloc with call to
742 psymbol_bcache_init for psymbol_cache.
743 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
745 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
747 * inf-loop.c (inferior_event_handler): Add exception_print in
750 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
752 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
753 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
754 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
755 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
756 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
757 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
758 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
759 * infrun.c (fetch_inferior_event): Call
760 make_bpstat_clear_actions_cleanup.
761 * top.c (execute_command): New variable cleanup_if_error, call
762 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
763 * utils.c (do_bpstat_clear_actions_cleanup)
764 (make_bpstat_clear_actions_cleanup): New functions.
766 2011-08-26 Pedro Alves <pedro@codesourcery.com>
768 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
769 either the parent or the child forks. Rename a couple locals.
771 2011-08-26 Pedro Alves <pedro@codesourcery.com>
773 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
774 library call. Avoid reading the `status' local if all waitpid
777 2011-08-26 Pedro Alves <pedro@codesourcery.com>
779 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
780 opening /proc/PID/task always succeeds.
782 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
784 * linespec.c (symtab_from_filename): Check for the end of string.
786 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
789 * varobj.c (cplus_describe_child): Add the keyword
790 'class' to the output of the method when dealing
791 with a cast to a base class.
793 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
795 No functionality change.
796 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
797 function comment a reference, new variables tp and bs, move here code
798 from throw_exception.
799 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
800 describe it in the comment.
801 * exceptions.c (throw_exception): Remove variable tp, move the code for
802 bpstat_clear_actions to bpstat_clear_actions.
804 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
806 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
807 * linux-nat.c: Include linux-procfs.h.
808 (linux_proc_get_tgid): Move to ...
809 * common/linux-procfs.c: ... here. New file.
810 * common/linux-procfs.h: New file.
811 * linux-thread-db.c: Include linux-procfs.h.
812 * Makefile.in: Update dependencies.
813 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
814 * config/arm/linux.mh: Likewise.
815 * config/i386/linux.mh: Likewise.
816 * config/i386/linux64.mh: Likewise.
817 * config/ia64/linux.mh: Likewise.
818 * config/m32r/linux.mh: Likewise.
819 * config/m68k/linux.mh: Likewise.
820 * config/mips/linux.mh: Likewise.
821 * config/pa/linux.mh: Likewise.
822 * config/pa/linux.mh: Likewise.
823 * config/powerpc/linux.mh: Likewise.
824 * config/powerpc/ppc64-linux.mh: Likewise.
825 * config/powerpc/spu-linux.mh: Likewise.
826 * config/sparc/linux.mh: Likewise.
827 * config/sparc/linux64.mh: Likewise.
828 * config/xtensa/linux.mh: Likewise.
830 2011-08-24 Hui Zhu <teawater@gmail.com>
832 * tracepoint.c (cond_string_is_same): New function.
833 (find_matching_tracepoint): Add condition check
834 by cond_string_is_same.
836 2011-08-23 Josh Matthews <josh@joshmatthews.net>
838 Fix build error in Darwin port.
839 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
841 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
844 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
845 (command_line_is_silent): New function.
846 (bpstat_do_actions_1): No longer use commands_left, use
847 command_line_is_silent for commands.
848 (bpstat_alloc): Remove clearing of commands_left.
849 (bpstat_stop_status): Remove initialization of commands_left, use
850 command_line_is_silent.
851 * breakpoint.h (struct bpstats): Remove commands_left.
853 2011-08-18 Keith Seitz <keiths@redhat.com>
856 * cp-name-parser.y (struct demangle_info): Remove unused
859 (allocate_info): Change return type to struct demangle_info *.
860 Always allocate a new demangle_info.
861 Remove unused PREV pointer.
862 (cp_new_demangle_parse_info): New function.
863 (cp_demangled_name_parse_free): New function.
864 (do_demangled_name_parse_free_cleanup): New function.
865 (make_cleanup_cp_demangled_name_parse_free): New function.
866 (cp_demangled_name_to_comp): Change return type to
867 struct demangle_parse_info *.
868 Allocate a new storage for each call.
869 (main): Update usage for cp_demangled_name_to_comp
871 * cp-support.h (struct demangle_parse_info): New structure.
872 (cp_demangled_name_to_comp): Update API change for
874 (cp_new_demangle_parse_info): Declare.
875 (make_cleanup_cp_demangled_name_parse_free): New declaration.
876 (cp_demangled_name_parse_free): Declare.
877 * cp-support.c (cp_canonicalize_string): Update API
878 change for cp_demangled_name_to_comp.
879 (mangled_name_to_comp): Likewise.
880 Return struct demangle_parse_info, too.
881 (cp_class_name_from_physname): Update mangled_name_to_comp
883 (method_name_from_physname): Likewise.
884 (cp_func_name): Update API change for cp_demangled_name_to_comp.
885 (cp_remove_params): Likewise.
886 * python/py-type.c (typy_legacy_template_argument): Likewise.
888 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
889 (cp_merge_demangle_parse_infos): Declare.
890 * cp-support.c (ignore_typedefs): New file global.
891 (copy_string_to_obstack): New function.
892 (inspect_type): New function.
893 (replace_typedefs): New function.
894 (replace_typedefs_qualified_name): New function.
895 (cp_canonicalize_string_no_typedefs): New function.
896 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
897 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
898 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
899 instead of cp_canonicalize_string.
900 (find_method): Likewise.
901 (decode_compound): Before looking up the name, call
902 cp_canonicalize_string_no_typedefs.
903 (decode_variable): Likewise.
905 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
906 Tom Tromey <tromey@redhat.com>
907 Matt Rice <ratmice@gmail.com>
909 * python/lib/gdb/prompt.py: New file.
910 * python/lib/gdb/command/prompt.py: New file.
911 * NEWS: Document set extended-prompt and gdb.prompt library
913 2011-08-16 Yao Qi <yao@codesourcery.com>
915 * tic6x-linux-tdep.c: Move const arrays definition from here...
916 * tic6x-tdep.c: to here ...
918 2011-08-14 Yao Qi <yao@codesourcery.com>
920 * NEWS: New port to Texas Instruments TMS320C6x.
922 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
923 Bernd Schmidt <bernds@codesourcery.com>
924 Yao Qi <yao@codesourcery.com>
926 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
927 * solib-dsbt.c: New file. Support DSBT shared object.
928 * tic6x-linux-tdep.c: New file.
929 * tic6x-tdep.c: New file.
930 * tic6x-tdep.h: New file.
932 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
933 Yao Qi <yao@codesourcery.com>
935 * remote.c (PACKET_qXfer_fdpic): New enum value.
936 (remote_protocol_features): Add qXfer:fdpic:read packet.
937 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
938 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
939 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
941 2011-08-14 Yao Qi <yao@codesourcery.com>
943 Target description for tic6x.
944 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
945 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
946 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
947 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
948 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
949 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
950 * features/tic6x-c64xp-linux.xml: New.
951 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
952 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
953 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
954 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
955 * regformats/tic6x-c64xp.dat,
956 regformats/tic6x-c62x-linux.dat: Generated.
957 * regformats/tic6x-c64x-linux.dat,
958 regformats/tic6x-c64xp-linux.dat: Generated.
959 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
960 features/tic6x-*.c files.
961 Add regformats/tic6x-*.dat files.
963 2011-08-12 Doug Evans <dje@google.com>
965 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
966 * python/py-symbol.c (sympy_get_type): New function.
967 (symbol_object_getset): Add "type".
969 2011-08-12 Pedro Alves <pedro@codesourcery.com>
973 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
975 (tui_show_register_group): Don't store a byte buffer in the data
977 (tui_register_format): Skip registers with an empty name.
978 (tui_get_register): Store a struct value in the data element's
979 value field instead of a byte buffer holding the raw register
980 contents. Account for optimized-out and unavailable registers
981 when comparing register contents.
983 2011-08-09 Pedro Alves <pedro@codesourcery.com>
985 * printcmd.c (current_display_number): Update comment.
986 (disable_current_display_cleanup): Delete.
987 (do_one_display): Use make_cleanup_restore_integer. Gracefully
988 catch errors thrown while evaluating and printing the display.
990 2011-08-09 Tom Tromey <tromey@redhat.com>
992 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
994 2011-08-09 Pedro Alves <pedro@codesourcery.com>
996 * elfread.c (elf_symtab_read): Rework comments.
997 * maint.c (maintenance_command): Ditto.
998 * somread.c (som_symtab_read): Ditto.
999 * solib.c (solib_find, solib_map_sections, update_solib_list)
1000 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1001 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1002 (sharedlibrary_command, no_shared_libraries): Ditto.
1003 * solib-irix.c (locate_base, disable_break, enable_break)
1004 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1005 (irix_current_sos, irix_open_symbol_file_object)
1006 (irix_special_symbol_handling): Ditto.
1007 * solib-sunos.c (locate_base, first_link_map_member)
1008 (sunos_current_sos, disable_break, enable_break)
1009 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1011 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1012 (open_symbol_file_object, svr4_current_sos, enable_break)
1013 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1015 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1016 (frv_current_sos, enable_break, frv_special_symbol_handling)
1017 (frv_solib_create_inferior_hook): Ditto.
1018 * solist.h (struct target_so_ops): Extend the comments of the
1019 special_symbol_handling, current_sos and open_symbol_file_object
1022 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1024 * python/lib/gdb/__init__.py: Auto-load files in command and
1025 function directories.
1026 * python/python.c (finish_python_initialization): Use
1028 * python/lib/gdb/command/pretty_printers.py: Self register
1030 * NEWS: Document auto-loading.
1032 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1034 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1035 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1036 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1038 2011-08-08 Tom Tromey <tromey@redhat.com>
1040 * breakpoint.c (clean_up_filters): Remove.
1041 (catch_syscall_split_args): Use VEC_cleanup.
1043 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1045 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1046 (main): Uncomment "Demangling error\n".
1048 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1050 * solib-target.c (segment_attributes): Make them static.
1051 (section_attributes, library_children, library_attributes): Likewise.
1052 (library_list_children, library_list_attributes): Likesise.
1053 (library_list_elements): Likewise.
1055 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1057 * exceptions.c (throw_exception): Don't disable the current
1059 * printcmd.c (disable_current_display_cleanup): New function.
1060 (do_one_display): Install a cleanup to disable the current display
1061 if doing the display throws.
1063 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1065 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1066 initialization of the tp_new member to the corresponding
1067 gdbpy_initialize_* function.
1068 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1069 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1070 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1071 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1072 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1074 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1076 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1077 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1078 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1079 references to current_uiout.
1081 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1083 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1084 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1085 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1086 * top.c (gdb_readline_wrapper): Adjust.
1087 * tui/tui-interp.c (tui_command_loop):
1088 (_initialize_tui_interp): Don't install it.
1090 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1092 * ui-out.h (uiout): Rename to ...
1093 (current_uiout): ... this.
1094 * ui-out.c (uiout): Rename to ...
1095 (current_uiout): ... this.
1096 * ada-lang.c (print_it_exception, print_one_exception)
1097 (print_mention_exception): Adjust.
1098 * breakpoint.c (watchpoint_check): Adjust.
1099 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1100 (default_collect_info, watchpoints_info, print_one_catch_fork)
1101 (print_one_catch_vfork, print_one_catch_syscall)
1102 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1103 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1104 (print_it_watchpoint, print_mention_watchpoint)
1105 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1106 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1107 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1108 (bkpt_print_mention, momentary_bkpt_print_it)
1109 (tracepoint_print_mention, update_static_tracepoint)
1110 (tracepoints_info, save_breakpoints): Adjust.
1111 * cli-out.c (field_separator): Adjust.
1112 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1113 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1114 * frame.c (get_current_frame): Adjust.
1115 * infcmd.c (run_command_1, print_return_value): Adjust.
1116 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1117 * infrun.c (print_end_stepping_range_reason): Adjust.
1118 (print_signal_exited_reason, print_exited_reason): Adjust.
1119 (print_signal_received_reason, print_no_history_reason): Adjust.
1120 * interps.c (interp_set): Adjust.
1121 * osdata.c (info_osdata_command): Adjust.
1122 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1123 * remote-fileio.c (remote_fileio_request): Adjust.
1124 * remote.c (show_remote_cmd): Adjust.
1125 * solib.c (info_sharedlibrary_command): Adjust.
1126 * source.c (print_source_lines_base): Adjust.
1127 * stack.c (print_stack_frame): Adjust.
1128 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1129 * symfile-mem.c (add_vsyscall_page): Adjust.
1130 * symfile.c (load_progress, generic_load)
1131 (print_transfer_performance): Adjust.
1132 * thread.c (info_threads_command, restore_selected_frame)
1133 (thread_command): Adjust.
1134 * top.c (make_cleanup_restore_ui_file): Adjust.
1135 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1136 (print_one_static_tracepoint_marker): Adjust.
1137 * cli/cli-cmds.c (print_disassembly): Adjust.
1138 * cli/cli-decode.c (print_doc_line): Adjust.
1139 * cli/cli-interp.c (safe_execute_command): Adjust.
1140 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1141 (handle_redirections): Adjust.
1142 * cli/cli-script.c (show_user_1): Adjust.
1143 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1144 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1145 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1146 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1147 (mi_cmd_env_dir): Adjust.
1148 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1149 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1150 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1151 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1152 (list_args_or_locals): Adjust.
1153 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1154 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1155 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1156 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1157 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1158 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1159 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1160 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1161 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1162 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1163 (list_available_thread_groups, mi_cmd_list_thread_groups)
1164 (mi_cmd_data_list_register_names)
1165 (mi_cmd_data_list_changed_registers)
1166 (mi_cmd_data_list_register_values, get_register)
1167 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1168 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1169 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1170 (mi_execute_command, mi_load_progress): Adjust.
1171 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1172 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1174 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1175 * tui/tui-interp.c (tui_command_loop): Adjust.
1176 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1178 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1180 * exceptions.c (struct catcher): Remove saved_uiout field.
1181 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1182 no longer save/resvore the global ui_out builder.
1183 (catch_exceptions_with_msg): Save/override/restore the global
1184 ui_out builder manually instead of relying on TRY_CATCH to do it.
1185 (catch_errors): Save/restore the global ui_out builder manually
1186 instead of relying on TRY_CATCH to do it.
1187 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1189 (TRY_CATCH): Adjust.
1190 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1191 the global ui_out builder manually instead of relying on TRY_CATCH
1194 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1196 * breakpoint.c (update_global_location_list): Ensure
1197 invariant 'first loc marked not duplicated and inserted,
1198 following locs marked duplicated/not inserted' is respected
1199 for multiple locations at the same address.
1200 (unduplicated_should_be_inserted) New function.
1201 (swap_insertion) New function.
1203 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1205 * stack.c (print_frame_arguments_choices): Comment typo fix.
1207 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1210 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1211 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1212 argument. Update callers.
1214 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1217 * doublest.c (convert_doublest_to_floatformat): Pass correct
1218 mantissa length to put_field.
1220 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1222 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1223 exception_print code path.
1224 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1225 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1226 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1228 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1232 Remove, merge them into ...
1233 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1234 variable args and its initialization.
1235 (struct print_args_args, print_args_stub): Remove, merge them into
1237 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1239 (do_gdb_disassembly): ... here. Remove variable args and its
1241 (print_frame): Remove variable args and its initialization, new
1242 variable gdbarch and numargs (from print_args_stub), inline here
1243 print_args_stub with a TRY_CATCH.
1244 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1246 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1247 New variable e, remove variable btargs and its initialization.
1249 2011-08-01 Tristan Gingold <gingold@adacore.com>
1251 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1253 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1255 * breakpoint.c (insert_bp_location): Document return value.
1256 (insert_breakpoint_locations): Fix documentation.
1257 (remove_breakpoints): Add documentation.
1259 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1261 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1262 argument. Update callers.
1264 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1266 * stack.c (print_frame_info): Comment typo fix.
1268 2011-07-29 Sterling Augustine <saugustine@google.com>
1270 * MAINTAINERS (Write After Approval): Add myself to the list.
1272 2011-07-29 Tom Tromey <tromey@redhat.com>
1274 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1275 (library_list_start_segment): Update.
1276 (library_list_start_section): Update.
1278 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1280 * varobj.c (value_get_print_value): Move hint check later into the
1281 function. Comment function. Free thevalue before reusing it.
1283 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 Pedro Alves <pedro@codesourcery.com>
1286 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1288 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1289 Assert the result kind.
1290 * value.h (value_one): Remove parameter lv.
1292 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1294 Fix crash on lval_computed values.
1295 * valops.c (value_zero): Use not_lval for lval_computed.
1297 2011-07-27 Tom Tromey <tromey@redhat.com>
1299 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1300 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1302 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1305 "ptype" by their typedefs difference.
1307 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1309 * dwarf2expr.c (ctx_no_read_reg): New function.
1310 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1311 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1312 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1313 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1315 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1317 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1318 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1320 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1321 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1322 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1323 (ctx_no_get_base_type): Move the functions here.
1324 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1325 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1326 (ctx_no_get_base_type): New declarations.
1328 2011-07-27 Tom Tromey <tromey@redhat.com>
1330 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1332 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1333 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1335 2011-07-26 Sterling Augustine <saugustine@google.com>
1337 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1339 (dump_bfd_file): Likewise.
1341 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1343 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1344 (remote_hw_watchpoint_length_limit): New variable.
1345 (_initialize_remote) add set,show cmds for this new variable.
1346 * gdb.texinfo: document these new commands.
1347 * NEWS: Mention these new commands.
1349 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1351 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1352 true for software watchpoints.
1354 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1358 2011-07-26 Tom Tromey <tromey@redhat.com>
1360 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1361 * dwarf2read.c (read_indirect_string_at_offset): New function.
1362 (read_indirect_string): Use it.
1363 (dwarf_decode_macro_bytes): New function, taken from
1364 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1365 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1366 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1368 (struct dwarf2_per_objfile) <macro>: New field.
1369 (dwarf2_elf_names): Add .debug_macro.
1370 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1371 (dwarf2_locate_sections): Handle new section.
1372 (read_file_scope): Handle DW_AT_GNU_macros.
1373 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1375 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1377 * NEWS: Mention dcache configuration.
1378 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1379 (dcache_size, dcache_line_size): New variables.
1380 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1381 (struct dcache_block): Make it expandable.
1382 (struct dcache_struct): New field.
1383 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1384 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1385 (dcache_poke_byte, dcache_print_line): Adjust.
1386 (set_dcache_size, set_dcache_line_size): New functions.
1387 (set_dcache_command, show_dcache_command): New functions.
1388 (_initialize_dcache): Add new commands.
1390 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1392 * progspace.h (struct program_space): Add solib_add_generation.
1393 * infcmd.c (post_create_inferior): Only call solib_add if not
1395 * solib.c (solib_add): Increment solib_add_generation.
1397 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1399 Fix implicit pointer offsets.
1400 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1403 2011-07-25 Tom Tromey <tromey@redhat.com>
1405 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1407 (ada_exception_sal): Make 'ops' const.
1408 (ada_decode_exception_location): Likewise.
1409 (ada_decode_assert_location): Likewise.
1410 (catch_assert_command): Update.
1411 (catch_ada_exception_command): Update.
1412 (create_ada_exception_catchpoint): Make 'ops' const.
1413 * breakpoint.c (set_raw_breakpoint_without_location)
1414 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1416 (create_internal_breakpoint): Update.
1417 (init_raw_breakpoint_without_location): Make 'ops' const.
1418 (init_raw_breakpoint, init_catchpoint)
1419 (create_fork_vfork_event_catchpoint)
1420 (create_syscall_event_catchpoint, init_breakpoint_sal)
1421 (create_breakpoint_sal, create_breakpoints_sal)
1422 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1423 * breakpoint.h (struct breakpoint) <ops>: Now const.
1424 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1427 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1429 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1431 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1433 * breakpoint.h (print_recreate_thread): Declare.
1434 (struct breakpoint): Move step_count, pass_count,
1435 number_on_target, static_trace_marker_id,
1436 static_trace_marker_id_idx ...
1437 (struct tracepoint): ... to this new struct.
1438 (get_tracepoint, get_tracepoint_by_number_on_target)
1439 (get_tracepoint_by_number): Change return type to struct
1441 * breakpoint.c (is_tracepoint_type): New, factored out from
1443 (is_tracepoint): Adjust.
1444 (print_one_breakpoint_location): Cast to struct tracepoint as
1445 necessary, and adjust.
1446 (print_recreate_catch_fork, print_recreate_catch_vfork)
1447 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1448 print_recreate_thread.
1449 (init_breakpoint_sal): New, factored out from
1450 create_breakpoint_sal.
1451 (create_breakpoint_sal): Reimplement.
1452 (create_breakpoint): Allocate a struct tracecepoint if the caller
1453 wanted a tracepoint. Use init_breakpoint_sal and
1455 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1456 (print_recreate_masked_watchpoint)
1457 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1458 (tracepoint_print_one_detail): Adjust.
1459 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1460 Dump the pass count here.
1461 (update_static_tracepoint): Adjust.
1462 (addr_string_to_sals): Adjust.
1463 (create_tracepoint_from_upload): Adjust. Change return type to
1464 struct tracepoint pointer.
1465 (trace_pass_set_count): Change parameter type to struct tracepoint
1466 pointer, and adjust.
1467 (trace_pass_command): Adjust.
1468 (get_tracepoint, get_tracepoint_by_number_on_target)
1469 (get_tracepoint_by_number): Change return type to struct
1470 tracepoint pointer, and adjust.
1471 (print_recreate_thread): New, factored out from save_breakpoints.
1472 (save_breakpoints): Don't print thread and task and passcount
1474 * remote.c (remote_download_tracepoint): Adjust.
1475 * tracepoint.c (trace_actions_command, validate_actionline)
1476 (start_tracing, tfind_1, trace_find_tracepoint_command)
1477 (trace_dump_command): Adjust.
1478 (find_matching_tracepoint): Change return type to struct
1479 tracepoint pointer, and adjust.
1480 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1481 (tfile_trace_find, tfile_fetch_registers): Adjust.
1482 * tracepoint.h (create_tracepoint_from_upload): Change return type
1483 to struct tracepoint pointer.
1484 * ada-lang.c (print_recreate_exception): Call
1485 print_recreate_thread.
1486 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1488 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1490 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1491 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1492 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1493 watchpoint_thread, watchpoint_triggered ...
1494 (struct watchpoint): ... to this new struct.
1495 (is_watchpoint): Declare.
1496 (install_breakpoint): Add new `internal' parameter.
1497 * breakpoint.c (is_watchpoint): Delete declaration.
1498 (set_breakpoint_condition): Handle watchpoints.
1499 (is_watchpoint): Make public.
1500 (watchpoint_in_thread_scope): Change parameter type to struct
1502 (watchpoint_del_at_next_stop): Change parameter type to struct
1503 watchpoint. Remove assertion. Adjust.
1504 (update_watchpoint): Ditto.
1505 (insert_breakpoints, breakpoint_init_inferior)
1506 (watchpoints_triggered, watchpoint_check)
1507 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1508 (bpstat_stop_status, print_one_breakpoint_location)
1509 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1510 to struct watchpoint as necessary, and adjust.
1511 (install_breakpoint): Add `internal' argument. If true, don't
1512 mention the new breakpoint. Use set_breakpoint_number.
1513 (create_fork_vfork_event_catchpoint)
1514 (create_syscall_event_catchpoint): Adjust.
1515 (dtor_watchpoint): New.
1516 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1517 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1518 (print_it_watchpoint, print_mention_watchpoint)
1519 (print_recreate_watchpoint, insert_masked_watchpoint)
1520 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1521 (print_one_detail_masked_watchpoint)
1522 (print_mention_masked_watchpoint)
1523 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1524 necessary, and adjust.
1525 (watch_command_1): Allocate and initialize a struct watchpoint
1526 instead of a struct breakpoint. Use install_breakpoint.
1527 (catch_exec_command_1): Adjust.
1528 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1530 (delete_breakpoint, enable_breakpoint_disp)
1531 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1532 as necessary, and adjust.
1533 (initialize_breakpoint_ops): Install dtor_watchpoint as
1534 watchpoints' dtor method.
1535 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1536 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1537 to struct watchpoint as necessary, and adjust.
1539 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1541 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1542 the the base class ops table.
1543 (catch_exception_breakpoint_ops)
1544 (catch_exception_unhandled_breakpoint_ops)
1545 (catch_assert_breakpoint_ops): Don't statically initialize.
1546 (initialize_ada_catchpoint_ops): New.
1547 (_initialize_ada_language): Call it.
1548 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1549 (bkpt_breakpoint_ops): Forward declare.
1550 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1551 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1552 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1553 (masked_watchpoint_breakpoint_ops)
1554 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1555 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1556 base class ops table.
1557 (null_re_set, null_check_status, null_works_in_software_mode)
1558 (null_resources_needed, null_print_one_detail): Delete.
1559 (bkpt_dtor): Rename to ...
1560 (base_breakpoint_dtor): ... this. Make static.
1561 (bkpt_allocate_location): Rename to ...
1562 (base_breakpoint_allocate_location): ... this. Make static.
1563 (base_breakpoint_re_set): New.
1564 (internal_error_pure_virtual_called): New.
1565 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1566 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1567 (base_breakpoint_works_in_software_mode)
1568 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1569 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1570 (base_breakpoint_print_recreate): New functions.
1571 (base_breakpoint_ops): New global.
1572 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1573 (bkpt_breakpoint_hit): Make static.
1574 (bkpt_check_status): Delete.
1575 (bkpt_resources_needed): Make static.
1576 (bkpt_works_in_software_mode): Delete.
1577 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1579 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1580 (momentary_breakpoint_ops): Don't statically initialize.
1581 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1583 (tracepoint_insert_location, tracepoint_remove_location)
1584 (tracepoint_check_status, tracepoint_works_in_software_mode)
1585 (tracepoint_print_it): Delete.
1586 (tracepoint_breakpoint_ops): Don't statically initialize.
1587 (initialize_breakpoint_ops): New.
1588 (_initialize_breakpoint): Call it.
1589 * breakpoint.h (null_re_set, null_works_in_software_mode)
1590 (null_resources_needed, null_check_status, null_print_one_detail):
1591 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1592 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1593 (bkpt_check_status, bkpt_resources_needed)
1594 (bkpt_works_in_software_mode, bkpt_print_it)
1595 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1596 Delete declarations.
1597 (initialize_breakpoint_ops): Declare.
1599 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1601 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1602 (momentary_bkpt_print_it): Simplify.
1604 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1606 Split internal, momentary and user breakpoints breakpoint_ops
1609 * breakpoint.c (internal_breakpoint_ops)
1610 (momentary_breakpoint_ops): Forward declare.
1611 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1612 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1613 (create_overlay_event_breakpoint)
1614 (create_std_terminate_master_breakpoint)
1615 (create_exception_master_breakpoint): Create breakpoints with
1616 internal_breakpoint_ops vtable.
1617 (set_longjmp_breakpoint): Create momentary breakpoints with
1618 momentary_breakpoint_ops vtable, using
1619 momentary_breakpoint_from_master.
1620 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1621 (create_solib_event_breakpoint): Create breakpoints with
1622 internal_breakpoint_ops vtable.
1623 (set_momentary_breakpoint): Create breakpoints with
1624 momentary_breakpoint_ops vtable.
1625 (momentary_breakpoint_from_master): New, factored out from
1626 clone_momentary_breakpoint.
1627 (clone_momentary_breakpoint): Adjust.
1628 (watch_command_1): Create scope breakpoints with
1629 momentary_breakpoint_ops vtable.
1630 (bkpt_re_set): Remove handling of internal and momentary
1632 (bkpt_print_mention, bkpt_print_recreate): New.
1633 (bkpt_breakpoint_ops): Adjust.
1634 (internal_bkpt_re_set, internal_bkpt_check_status)
1635 (internal_bkpt_print_it, internal_bkpt_print_mention)
1636 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1637 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1638 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1639 (momentary_bkpt_print_recreate): New.
1640 (momentary_breakpoint_ops): New.
1642 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1644 Implement most breakpoint_ops methods for all breakpoint types,
1645 and move the default handlings to the proper callbacks.
1647 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1648 works_in_software_mode method.
1649 (insert_bp_location): Go through breakpoint_ops->insert_location
1650 for software and hardware watchpoints.
1651 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1653 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1654 for software and hardware watchpoints.
1655 (print_it_typical): Delete.
1656 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1658 (watchpoint_check): Adjust comment.
1659 (bpstat_check_location): Simply always call the breakpoint's
1660 breakpoint_hit method.
1661 (bpstat_stop_status): Always call the breakpoint's check_status
1662 method. Remove special cases for watchpoints and internal event
1663 breakpoints from here (moved to the check_status implementations).
1664 (print_one_breakpoint_location): Assume b->ops is never NULL.
1665 Remove static tracepoint marker id printing from here (moved to
1666 the print_one_detail callback implementation of tracepoints).
1667 (init_bp_location): Assert OPS is never NULL.
1668 (allocate_bp_location): Always call the breakpoint's
1669 allocate_location method, and remove the default code from here.
1670 (free_bp_location): Always call the location's dtor method, and
1671 remove the default code from here.
1672 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1673 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1674 parameter. Pass it down.
1675 (set_raw_breakpoint): Ditto.
1676 (print_it_catch_fork): Adjust to take a bpstat as argument.
1677 (catch_fork_breakpoint_ops): Install methods.
1678 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1679 (catch_vfork_breakpoint_ops): Install methods.
1680 (dtor_catch_syscall): Call the base dtor.
1681 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1682 (catch_syscall_breakpoint_ops): Install methods.
1683 (dtor_catch_exec): Call the base dtor.
1684 (print_it_catch_exec): Adjust to take a bpstat as argument.
1685 (catch_exec_breakpoint_ops): Install methods.
1686 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1687 the breakpoint's resources_needed method, and remove the default
1689 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1691 (clone_momentary_breakpoint): Clone the original's ops.
1692 (mention): Always call the breakpoint's print_mention method, and
1693 remove the default code from here.
1694 (create_breakpoint_sal): Adjust to pass the ops to
1695 set_raw_breakpoint rather than setting it manually.
1696 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1697 ops to set_raw_breakpoint_without_location rather than setting it
1699 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1700 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1701 (ranged_breakpoint_ops): Install methods.
1702 (break_range_command): Adjust to pass the ops to
1703 set_raw_breakpoint rather than setting it manually.
1704 (re_set_watchpoint, breakpoint_hit_watchpoint)
1705 (check_status_watchpoint, resources_needed_watchpoint)
1706 (works_in_software_mode_watchpoint, print_it_watchpoint)
1707 (print_mention_watchpoint, print_recreate_watchpoint): New
1709 (watchpoint_breakpoint_ops): Install new methods.
1710 (print_it_masked_watchpoint): New function.
1711 (masked_watchpoint_breakpoint_ops): Install new methods.
1712 (watch_command_1): Adjust to pass the right breakpoint_ops to
1713 set_raw_breakpoint_without_location rather than setting it
1714 manually later. Record the current pspace.
1715 (print_it_exception_catchpoint): Adjust to take a bpstat as
1717 (gnu_v3_exception_catchpoint_ops): Install new methods.
1718 (say_where): New function.
1719 (null_re_set, null_check_status, null_works_in_software_mode)
1720 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1722 (bp_location_ops): New global.
1723 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1724 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1725 (bkpt_check_status, bkpt_resources_needed)
1726 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1727 (bkpt_print_recreate): New functions.
1728 (bkpt_breakpoint_ops): New global.
1729 (tracepoint_re_set, tracepoint_insert_location)
1730 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1731 (tracepoint_check_status, tracepoint_works_in_software_mode)
1732 (tracepoint_print_it, tracepoint_print_one_detail)
1733 (tracepoint_print_mention, tracepoint_print_recreate): New
1735 (tracepoint_breakpoint_ops): New global.
1736 (delete_breakpoint): Always call the breakpoint's dtor method, and
1737 remove the default handling from here.
1738 (breakpoint_re_set_default): Make static.
1739 (breakpoint_re_set_one): Always call the breakpoints re_set
1740 method, and remove the default handling from here.
1741 (trace_command, ftrace_command, strace_command)
1742 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1743 to create_breakpoint.
1744 (save_breakpoints): Always call the breakpoint's print_recreate
1745 method, and remove the default handling from here.
1747 * ada-lang.c (dtor_exception): Call the base dtor.
1748 (re_set_exception): Call the base method.
1749 (print_it_exception, print_it_catch_exception): Adjust to take a
1751 (catch_exception_breakpoint_ops): Install methods.
1752 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1754 (catch_exception_unhandled_breakpoint_ops): Install methods.
1755 (print_it_catch_assert): Adjust to take a bpstat as argument.
1756 (catch_assert_breakpoint_ops): Install methods.
1758 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1759 to take a bpstat as argument.
1760 (enum print_stop_action): Add describing comments to each enum
1762 (breakpoint_re_set_default): Delete declaration.
1763 (null_re_set, null_works_in_software_mode, null_resources_needed)
1764 (null_check_status, null_print_one_detail): Declare.
1765 (bkpt_breakpoint_ops): Declare.
1766 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1767 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1768 (bkpt_check_status, bkpt_resources_needed)
1769 (bkpt_works_in_software_mode, bkpt_print_it)
1770 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1773 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1774 bkpt_breakpoint_ops.
1775 * python/py-breakpoint.c (bppy_init): Ditto.
1777 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1779 * MAINTAINERS (Write After Approval): Add myself to the list.
1781 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1783 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1785 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1787 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1788 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1789 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1791 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1792 (struct i386_debug_reg_state): New.
1793 (i386_init_dregs): New.
1795 (i386_cleanup_dregs): Use i386_init_dregs.
1796 (i386_show_dr): Add state parameter and adjust.
1797 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1799 (i386_remove_aligned_watchpoint): Likewise.
1800 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1801 (i386_update_inferior_debug_regs): New.
1802 (i386_insert_watchpoint): Work on a local mirror of the debug
1803 registers, and only update the inferior on success.
1804 (i386_remove_watchpoint): Ditto.
1805 (i386_region_ok_for_watchpoint): Adjust.
1806 (i386_stopped_data_address): Adjust.
1807 (i386_insert_hw_breakpoint): Adjust.
1808 (i386_remove_hw_breakpoint): Adjust.
1810 2011-07-22 Tom Tromey <tromey@redhat.com>
1812 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1813 from amd64_pseudo_register_read. Change arguments. Call
1814 mark_value_bytes_unavailable when needed.
1815 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1816 set_gdbarch_pseudo_register_read.
1817 * sentinel-frame.c (sentinel_frame_prev_register): Use
1818 regcache_cooked_read_value.
1819 * regcache.h (regcache_cooked_read_value): Declare.
1820 * regcache.c (regcache_cooked_read_value): New function.
1821 (regcache_cooked_read): Call
1822 gdbarch_pseudo_register_read_value if available.
1823 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1824 (i386_pseudo_register_read): Remove.
1825 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1826 i386_pseudo_register_read. Change arguments. Call
1827 mark_value_bytes_unavailable when needed.
1828 (i386_pseudo_register_read_value): New function.
1829 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1830 not set_gdbarch_pseudo_register_read.
1831 * gdbarch.sh (pseudo_register_read_value): New method.
1832 * gdbarch.c, gdbarch.h: Rebuild.
1833 * findvar.c (value_from_register): Call get_frame_register_value.
1835 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1837 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1839 (display_gdb_prompt): Likewise.
1840 (change_annotation_level): Likewise.
1841 (push_prompt): Likewise.
1842 (pop_prompt): Likewise.
1843 (handle_stop_sig): Use get_prompt with a level.
1844 * top.c (command_loop): Use get_prompt with a level.
1845 (set_async_annotation_level): Use set_prompt with a level.
1846 (get_prefix): New function.
1847 (set_prefix): Ditto.
1848 (set_suffix): Ditto.
1849 (get_suffix): Ditto.
1850 (get_prompt): Accept a level argument.
1851 (set_prompt): Accept a level argument. Free old prompts. Set
1852 new_async_prompt if level is 0.
1853 (init_main): Use set_prompt with a level. Do not set
1855 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1856 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1857 Modify set_prompt, get_prompt to account for levels.
1858 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1860 * python/python.c (before_prompt_hook): Use set_prompt.
1862 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1864 * defs.h: Add guard against inclusion in gdbserver.
1865 (struct ptid, ptid_t): Move to common/ptid.h.
1866 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1867 xsnprintf, internal_error): Move to common/common-utils.h.
1869 * gdb_assert.h: Move into common/ sub-directory.
1870 * gdb_locale.h: Ditto.
1871 * gdb_dirent.h: Ditto.
1872 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1873 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1874 Move into common/ptid.h.
1875 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1876 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1877 Change nomem to malloc_failure.
1878 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1879 * utils.c (nomem): Rename to malloc_failure.
1880 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1881 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1882 (gdb_buildargv): Change nomem to malloc_failure.
1883 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1884 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1885 ptid_is_pid): Move into common/ptid.c.
1886 (initialize_infrun): Delete initialization of null_ptid and
1888 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1889 linux_common_xfer_osdata.
1890 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1891 common/ptid.c and common/buffer.c.
1892 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1893 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1894 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1895 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1897 * common/gdb_assert.h: New.
1898 * common/gdb_dirent.h: New.
1899 * common/gdb_locale.h: New.
1900 * common/buffer.c: New.
1901 * common/buffer.h: New.
1902 * common/ptid.c: New.
1903 * common/ptid.h: New.
1904 * common/xml-utils.c: New.
1905 * common/xml-utils.h: New.
1906 * common/common-utils.c: New.
1907 * common/common-utils.h: New.
1908 * common/linux-osdata.c: New.
1909 * common/linux-osdata.h: New.
1910 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1911 * config/arm/linux.mh (NATDEPFILES): Ditto.
1912 * config/i386/linux.mh (NATDEPFILES): Ditto.
1913 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1914 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1915 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1916 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1917 * config/mips/linux.mh (NATDEPFILES): Ditto.
1918 * config/pa/linux.mh (NATDEPFILES): Ditto.
1919 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1920 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1921 * config/s390/s390.mh (NATDEPFILES): Ditto.
1922 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1923 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1924 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1926 2011-07-21 Matt Rice <ratmice@gmail.com>
1928 * NEWS: Add info macros and info definitions commands.
1930 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1932 * NEWS: Document Python prompt substitution hook.
1934 2011-07-18 Matt Rice <ratmice@gmail.com>
1937 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1938 * macrotab.c (foreach_macro): Ditto.
1939 (foreach_macro_in_scope): Ditto.
1940 * macrocmd.c (print_macro_callback): New function.
1941 (info_macro_command): Move some code to print_macro_definition.
1942 (print_macro_definition): New function.
1943 (print_one_macro): Add new arguments to callback.
1944 (info_definitions_command): New function.
1945 (info_macros_command): Ditto.
1946 (_initialize_macrocmd): Add info macros and info definitions commands.
1947 * symtab.c (add_macro_name): Add new arguments to callback.
1949 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1950 Tom Tromey <tromey@redhat.com>
1952 * top.c (set_prompt): Rewrite to free previous prompt, free
1953 asynch_new_prompt and set both on new prompts.
1954 * event-top.c (display_gdb_prompt): Add prompt substitution
1956 * python/python.c (before_prompt_hook): New function.
1958 2011-07-20 Matt Rice <ratmice@gmail.com>
1960 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1961 arguments to store_unsigned_integer.
1963 2011-07-20 Tom Tromey <tromey@redhat.com>
1965 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1966 in some declaration-only cases.
1968 2011-07-18 Tom Tromey <tromey@redhat.com>
1971 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1972 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1973 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1974 <debug_type_section>: New field.
1975 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1976 (load_cu): Use appropriate section.
1977 (create_signatured_type_table_from_index): Add 'section'
1979 (dwarf2_read_index): Only allow a single .debug_types section.
1980 (dw2_get_file_names): Use appropriate section.
1981 (read_type_comp_unit_head): Add 'section' argument.
1982 (create_debug_types_hash_table): Loop over all .debug_types
1984 (init_cu_die_reader): Use appropriate section.
1985 (process_psymtab_comp_unit, load_partial_comp_unit)
1986 (load_full_comp_unit, read_die_and_children, find_partial_die)
1987 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1988 (lookup_signatured_type_at_offset): Add 'section' argument.
1989 (read_signatured_type_at_offset): Add 'sect' argument.
1990 (read_signatured_type): Use appropriate section.
1991 (set_die_type, get_die_type_at_offset): Update.
1992 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1994 (write_psymtabs_to_index): Don't allow index with more than one
1995 .debug_types section.
1997 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 Fix crash if referenced CU is aged out.
2000 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2001 xfree of block.data.
2002 (indirect_pieced_value): New variable back_to, use to for xfree of
2004 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2006 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2007 (load_cu): New function from ...
2008 (dw2_do_instantiate_symtab): ... the code here ...
2009 (process_full_comp_unit): ... and here.
2010 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2013 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2018 2011-07-19 Gary Benson <gbenson@redhat.com>
2020 * infrun.c (struct execution_control_state): New member
2021 stop_func_filled_in.
2022 (clear_stop_func, fill_in_stop_func): New functions.
2023 (handle_inferior_event): Call clear_stop_func rather than
2024 manipulating the execution control state directly.
2025 Call fill_in_stop_func lazily as required rather than
2026 directly calling find_pc_partial_function in all cases.
2028 2011-07-18 Tom Tromey <tromey@redhat.com>
2030 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2031 checking for variable-sized array.
2033 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2035 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2036 of supported languages.
2037 * varobj.c: Add top definitions and basic implementation of the
2038 following callbacks: ada_number_of_children, ada_name_of_variable,
2039 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2040 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2041 (languages): Register Ada-specific callbacks.
2042 (variable_language): Add the Ada case in the language setter switch.
2044 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2048 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2052 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2053 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2054 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2055 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2056 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2057 (struct dwarf_expr_context_funcs): New, move here methods from ...
2058 (struct dwarf_expr_context): ... here. New fields funcs.
2059 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2060 (dwarf_expr_ctx_funcs): New.
2061 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2062 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2063 (needs_frame_ctx_funcs): New.
2064 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2066 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2068 * MAINTAINERS (Write After Approval): Add myself to the list.
2070 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2072 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2073 that CIE pointer of an FDE really points to a CIE .
2075 2011-07-15 Hui Zhu <teawater@gmail.com>
2077 * remote.c (remote_get_trace_status): Add comments.
2079 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2081 Code cleanup - constify struct lval_funcs.
2082 * dwarf2loc.c (pieced_value_funcs): Make it const.
2083 * infrun.c (siginfo_value_funcs): Likewise.
2084 * opencl-lang.c (opencl_value_funcs): Likewise.
2085 * valops.c (value_assign, value_ind): Make the funcs variable const.
2086 * value.c (struct value): Make location.computed.funcs target const.
2087 Rearrange the comments.
2088 (allocate_computed_value): Make the funcs parameter target const.
2089 (value_computed_funcs): Return the funcs target const.
2090 (value_free, value_copy, set_value_component_location): Make the funcs
2092 * value.h (allocate_computed_value): Make the funcs parameter target
2094 (value_computed_funcs): Return the funcs target const.
2095 * windows-tdep.c (tlb_value_funcs): Make it const.
2097 2011-07-14 Hui Zhu <teawater@gmail.com>
2099 * remote.c (remote_get_trace_status): Initialize p.
2101 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2104 * remote.c (remote_get_trace_status): New variable ex. Put
2105 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2107 2011-07-13 Tom Tromey <tromey@redhat.com>
2109 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2110 value_from_contents for final conversion.
2112 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2115 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2116 Indent prototypes so they do not get into tags.
2118 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2120 Code cleanup making also optimized out values lazy.
2121 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2122 allocate_optimized_out_value. Twice.
2123 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2124 * findvar.c (read_var_value): Likewise.
2125 * value.c (allocate_optimized_out_value): New function.
2126 * value.h (allocate_optimized_out_value): New declaration.
2128 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 Fix occasional crash of CTRL-C during DWARF read in.
2131 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2133 2011-07-11 Tom Tromey <tromey@redhat.com>
2135 * regcache.c (struct regcache_descr): Fix typo.
2136 * i387-tdep.c (i387_supply_xsave): Fix typo.
2138 2011-07-11 Tom Tromey <tromey@redhat.com>
2140 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2141 (read_file_scope, read_type_unit_scope): Use it.
2143 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2145 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2148 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2151 * python/python.c: Set gdbpy_should_print_stack default to off.
2152 (set_python): Deprecate maint set python print-stack to
2154 (_initialize_python): Deprecate maint set/show python print-stack.
2155 Add new prefix command, python. Add new setting, print-backtrace.
2156 * NEWS: Document set python print-stack. Document default change.
2158 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2160 * python/py-inferior.c (infpy_dealloc): New function.
2161 (inferior_to_inferior_object): Return a new object, or a
2162 new reference to the existing object.
2163 (find_thread_object): Cleanup references to inferior.
2164 (delete_thread_object): Ditto.
2165 * python/py-infthread.c (create_thread_object): Do not increment
2166 inferior reference count.
2168 2011-07-08 Tom Tromey <tromey@redhat.com>
2170 * dwarf2loc.c (locexpr_regname): New function.
2171 (locexpr_describe_location_piece): Use it.
2172 (disassemble_dwarf_expression): Add per_cu argument. Use
2174 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2175 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2177 (locexpr_describe_location_1): Add per_cu argument.
2178 (locexpr_describe_location): Update.
2179 (loclist_describe_location): Update.
2181 2011-07-08 Tom Tromey <tromey@redhat.com>
2183 * dwarf2expr.c (execute_stack_op): Add QUIT.
2185 2011-07-07 Hui Zhu <teawater@gmail.com>
2188 2011-07-06 Hui Zhu <teawater@gmail.com>
2189 * remote.c (remote_start_remote): Add TRY_CATCH for
2190 remote_get_trace_status.
2191 * tracepoint.c (disconnect_tracing): Ditto.
2193 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2195 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2196 variables as signed, not unsigned.
2198 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2200 * jit.c (jit_inferior_init): Reformat forward declaration.
2202 2011-07-06 Matt Rice <ratmice@gmail.com>
2204 * MAINTAINERS (Write After Approval): Add myself to the list.
2206 2011-07-06 Hui Zhu <teawater@gmail.com>
2208 * remote.c (remote_start_remote): Add TRY_CATCH for
2209 remote_get_trace_status.
2210 * tracepoint.c (disconnect_tracing): Ditto.
2212 2011-07-05 Tom Tromey <tromey@redhat.com>
2214 * symtab.c (operator_chars): Now static.
2215 * linespec.c (operator_chars): Don't declare.
2217 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2219 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2221 2011-07-05 Tom Tromey <tromey@redhat.com>
2223 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2224 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2225 (TYPE_CPLUS_REALLY_JAVA): New macro.
2226 * dwarf2read.c (process_structure_scope): Set
2227 TYPE_CPLUS_REALLY_JAVA.
2229 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2231 * ada-lang.c: Fix typos.
2232 * amd64-tdep.c: Likewise.
2233 * breakpoint.c: Likewise.
2234 * cli/cli-decode.c: Likewise.
2235 * findcmd.c: Likewise.
2236 * inline-frame.c: Likewise.
2237 * mi/mi-main.c: Likewise.
2238 * minsyms.c: Likewise.
2239 * monitor.c: Likewise.
2240 * monitor.h: Likewise.
2241 * prologue-value.c: Likewise.
2242 * reverse.c: Likewise.
2243 * s390-tdep.c: Likewise.
2245 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2247 * jit.c (jit_inferior_init): Forward declare.
2248 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2250 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2252 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2254 2011-07-04 Tristan Gingold <gingold@adacore.com>
2256 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2257 (tcb_fieldno): Add activation_link field.
2258 (get_known_tasks_addr): Moved and rewritten.
2259 (get_tcb_types_info): Set activation_link field.
2260 (read_known_tasks_array): Add parameter. Rewritten.
2261 (read_known_tasks_list): New function.
2262 (read_known_tasks): New function.
2263 (ada_build_task_list): Call read_known_tasks instead of
2264 read_known_tasks_array.
2265 * ravenscar-thread.c: Add first_task_name constant.
2266 (has_ravenscar_runtime): Check for task list too.
2268 2011-07-04 Tristan Gingold <gingold@adacore.com>
2270 * ada-tasks.c: Renames fieldno to actb_fieldno.
2271 (ada_get_task_number): Indentation.
2272 (get_tcb_types_info): Remove all parameters. Write directly
2274 (ptid_from_atcb_common): Adjust.
2275 (read_atcb): Adjust.
2277 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2279 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2281 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2283 * ui-out.c (ui_out_field_core_addr): Mention that the function
2284 description is in the header file.
2285 * ui-out.h (ui_out_field_core_addr): Document function.
2287 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2289 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2290 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2292 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2294 * symtab.c (expand_line_sal): Remove empty line.
2296 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2298 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2299 same way as ELFOSABI_NONE.
2300 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2302 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2304 * breakpoint.c: Fix typos in comments.
2305 * linespec.c: Likewise.
2306 * symtab.c: Likewise.
2308 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2310 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2311 section in separate object files.
2313 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2315 Fix false GCC warning.
2316 * linespec.c (decode_line_1): Initialize values.
2318 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2320 * linespec.c (find_method): Accept the function type automatically only
2321 if it was specified with parameter types.
2323 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 Stop on first linespec terminator instead of eating what we can.
2326 * linespec.c (is_linespec_boundary): New function.
2327 (name_end): Remove function.
2328 (keep_name_info): New parameter on_boundary, replace the body.
2329 (decode_line_1): Provide the parameter to keep_name_info.
2330 (decode_compound): Likewise. Drop the trailing java return type
2333 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 Fall back linespec to minimal symbols.
2336 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2337 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2338 (find_method, symbol_found): Change error to cplusplus_error.
2340 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2342 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2344 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2345 Tom Tromey <tromey@redhat.com>
2347 * dwarf2read.c (check_physname): New variable.
2348 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2349 (show_check_physname): New function.
2350 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2352 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2354 * machoread.c (macho_symfile_read): Delete OBE comment.
2356 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2358 * machoread.c (struct macho_oso_data): Delete.
2359 (current_oso): Delete.
2360 (macho_relocate_common_syms): New function, mostly extracted
2362 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2363 Remove code that sets and unset current_oso.
2364 (macho_symfile_relocate): Delete handling of common symbols,
2365 now moved to macho_relocate_common_syms.
2367 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2369 * darwin-nat.c (darwin_ptrace): Add documentation.
2370 Set errno to zero before calling ptrace. If ptrace returns
2371 -1 and errno is zero, then change then return zero.
2372 (darwin_kill_inferior): Issue a warning instead of triggering
2373 a failed assertion when the PT_KILL ptrace operations returned
2376 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2378 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2379 only when inf->private->no_ptrace.
2381 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2383 * ada-lang.c (print_it_exception): Print temporary catchpoints
2384 as "Temporary catchpoint".
2385 (print_mention_exception): Likewise.
2387 2011-07-01 Tom Tromey <tromey@redhat.com>
2389 * jv-lang.c (java_language_defn): Use java_printchar,
2391 (java_get_encoding): New function.
2392 (java_emit_char): Use generic_emit_char.
2393 (java_printchar): New function.
2394 (java_printstr): Likewise.
2396 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2398 * ada-typeprint.c (print_record_type): If unable to decode
2399 the name of the parent type, use the encoded name.
2401 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2403 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2404 pointer to constrained packed array type output.
2405 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2406 packed array output.
2408 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2410 * ada-typeprint.c (print_array_type): removed if condition on show
2411 being negative for bounds printing.
2413 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2415 * ada-lang.c (ada_identical_enum_types_p): New function.
2416 (symbols_are_identical_enums): New function.
2417 (remove_extra_symbols): Do nothing if NSYMS < 2.
2418 Use symbols_are_identical_enums.
2420 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2422 * ada-valprint.c (ada_value_print): Handle typedefs.
2424 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2426 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2428 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2430 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2431 (decode_constrained_packed_array): Likewise.
2432 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2434 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2436 * ada-exp.y (convert_char_literal): Handle typedef types.
2438 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2440 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2442 2011-06-30 Tom Tromey <tromey@redhat.com>
2444 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2445 * valops.c (find_overload_match): Call do_cleanups on early exit
2447 * solib.c (solib_find): Call do_cleanups on early exit path.
2449 2011-06-30 Tom Tromey <tromey@redhat.com>
2451 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2452 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2453 return paths. Defer final do_cleanups until last return.
2454 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2457 2011-06-30 Tom Tromey <tromey@redhat.com>
2459 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2461 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2463 * MAINTAINERS (Write After Approval): Add myself to the list.
2465 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2467 Disable epilogue unwinders on recent GCCs.
2468 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2469 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2470 * dwarf2read.c (process_full_comp_unit): Initialize
2471 EPILOGUE_UNWIND_VALID.
2472 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2473 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2474 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2476 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 Code cleanup - reformatting.
2479 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2480 (producer_is_gcc_ge_4): ... here, change the return value.
2481 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2484 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2486 Fix non-only rename list for Fortran modules import.
2487 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2488 cp_add_using_directive caller.
2489 (cp_add_using_directive): New parameter excludes, describe it. New
2490 variables ix and param. Compare if also excludes match. Allocate NEW
2491 with variable size, initialize EXCLUDES there.
2492 (cp_lookup_symbol_imports): New variable excludep, test
2493 current->EXCLUDES with it.
2494 * cp-support.h: Include vec.h.
2495 (struct using_direct): New field excludes, describe it.
2496 (DEF_VEC_P (const_char_ptr)): New.
2497 (cp_add_using_directive): New parameter excludes.
2498 * defs.h (const_char_ptr): New typedef.
2499 * dwarf2read.c (read_import_statement): New variables child_die,
2500 excludes and cleanups, read in excludes.
2501 (read_namespace): Adjust the cp_add_using_directive caller.
2503 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2507 negative comparisons.
2509 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2511 * mi/mi-main.c (mi_cmd_list_features): Emit
2512 breakpoint-notifications.
2514 2011-06-29 Tom Tromey <tromey@redhat.com>
2517 * valprint.h (generic_emit_char, generic_printstr): Declare.
2518 * valprint.c (wchar_printable, append_string_as_wide)
2519 (print_wchar): Move from c-lang.c.
2520 (generic_emit_char): New function; mostly taken from c_emit_char.
2521 (generic_printstr): New function; mostly taken from c_printstr.
2522 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2523 represented as arrays.
2524 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2526 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2527 identically to TYPE_CODE_INT.
2528 * f-lang.c (f_get_encoding): New function.
2529 (f_emit_char): Use generic_emit_char.
2530 (f_printchar): Replace comment.
2531 (f_printstr): Use generic_printstr.
2532 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2533 "character" types specially.
2534 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2536 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2538 (c_emit_char): Call generic_emit_char.
2539 (c_printstr): Call generic_printstr.
2541 2011-06-29 Gary Benson <gbenson@redhat.com>
2543 * breakpoint.c (bpstat_what): Removed duplicated case.
2545 2011-06-28 Tom Tromey <tromey@redhat.com>
2547 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2549 2011-06-27 Tom Tromey <tromey@redhat.com>
2551 * valops.c (find_overload_match): Call do_cleanups before early
2553 * top.c (execute_command): Call do_cleanups before early return.
2554 (command_loop): Likewise.
2555 * stack.c (backtrace_command): Make a null cleanup early. Don't
2556 conditionally call do_cleanups.
2557 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2559 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2560 so cleanups are always run.
2561 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2562 * findcmd.c (parse_find_args): Call do_cleanups on early return
2564 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2565 Don't conditionally call do_cleanups.
2566 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2569 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2571 * MAINTAINERS (Write After Approval): Use default email address.
2573 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2575 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2577 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2579 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2580 saved_regs_mask and copied_regs_mask fields.
2581 (sparc_record_save_insn): New prototype.
2582 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2583 (sparc_record_save_insn): New function.
2584 (sparc_analyze_prologue): Add head comment. Recognize store insns
2585 of call-saved registers. Use OFFSET consistently. Recognize flat
2586 frames and cache their settings.
2587 (sparc32_skip_prologue): Handle flat frames.
2588 (sparc_frame_cache): Add frame_offset to the base address.
2589 (sparc32_frame_cache): Adjust to new frame description.
2590 (sparc32_frame_prev_register): Likewise.
2591 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2592 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2593 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2594 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2595 frame by calling sparc_record_save_insn.
2596 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2597 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2598 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2600 2011-06-27 Tristan Gingold <gingold@adacore.com>
2602 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2603 field by map_addr and map_len.
2604 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2605 (munmap_section_buffer): Likewise.
2607 2011-06-24 Tom Tromey <tromey@redhat.com>
2609 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2610 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2611 * python/python.c (gdbpy_parameter): Make 'arg' const.
2612 (execute_gdb_command): Likewise.
2613 (gdbpy_decode_line): Likewise. Copy it.
2614 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2615 (gdbpy_write): Make 'arg' const.
2616 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2618 (gdbpy_lookup_type): Likewise.
2619 * python/py-prettyprint.c (print_children): Make 'name' const.
2620 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2621 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2623 * python/py-function.c (fnpy_init): Make 'name' const.
2624 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2625 (gdbpy_string_to_argv): Make 'input' const.
2626 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2628 * gdbtypes.h (lookup_typename): Update.
2629 * gdbtypes.c (lookup_typename): Make 'name' const.
2630 (lookup_struct): Likewise.
2631 (lookup_union): Likewise.
2632 (lookup_enum): Likewise.
2634 2011-06-24 Tom Tromey <tromey@redhat.com>
2636 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2637 gdb_thread_db.h. Move all common/ entries to be together.
2638 (TAGS): Don't depend on DEPFILES.
2640 2011-06-23 Yao Qi <yao@codesourcery.com>
2642 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2643 * remote.c (remote_start_remote): ... here.
2644 * monitor.c (monitor_open): ... here.
2646 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2648 * gdbtypes.c (append_composite_type_field_aligned): Fix
2649 calculation of bit position based on alignment.
2651 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2653 * breakpoint.c (bpstat_stop_status): Call the check_status
2654 breakpoint_ops method.
2655 (print_one_breakpoint_location): Also print the condition for Ada
2656 exception catchpoints.
2657 (allocate_bp_location): New, factored out from
2658 allocate_bp_location.
2659 (allocate_bp_location): Adjust. Call the owner breakpoint's
2660 allocate_location method, if there is one.
2661 (free_bp_location): Call the locations's dtor method, if there is
2663 (init_raw_breakpoint_without_location): New breakpoint_ops
2665 (set_raw_breakpoint_without_location): Adjust.
2666 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2667 (set_raw_breakpoint): Adjust.
2668 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2669 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2670 re_set and check_status methods.
2671 (init_catchpoint): Don't memset, initialize thread, addr_string
2672 and enable_state. Pass the ops down to init_raw_breakpoint.
2673 (install_catchpoint): Rename to ...
2674 (install_breakpoint): ... this, and make extern.
2675 (create_fork_vfork_event_catchpoint): Adjust.
2676 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2677 re_set and check_status methods.
2678 (create_syscall_event_catchpoint): Adjust.
2679 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2680 (masked_watchpoint_breakpoint_ops): Install NULL
2681 allocate_location, re_set and check_status methods.
2682 (catch_exec_command_1): Adjust.
2683 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2684 re_set and check_status methods.
2685 (create_ada_exception_breakpoint): Rename to ...
2686 (init_ada_exception_breakpoint): ... this. Add a struct
2687 breakpoint parameter, and delete the exp_string, cond_string and
2688 cond parameters. Use init_raw_breakpoint, and don't install or
2689 mention the breakpoint yet. Don't clear breakpoint fields that
2690 init_raw_breakpoint already clears.
2691 (re_set_breakpoint): Delete, split into ...
2692 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2694 (breakpoint_re_set_one): Call the breakpoint's
2695 breakpoint_ops->re_set implementation, if there's one. Adjust.
2696 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2697 (struct bp_location_ops): New type.
2698 (struct bp_location): New field `ops'.
2699 (struct breakpoint_ops): New `allocate_location', `re_set' and
2700 `check_status' fields. Make `breakpoint_hit''s description match
2702 (init_bp_location): Declare.
2703 (breakpoint_re_set_default): Declare.
2704 (create_ada_exception_breakpoint): Rename to ...
2705 (init_ada_exception_breakpoint): ... this. Add a struct
2706 breakpoint parameter, and delete the exp_string, cond_string and
2708 (install_breakpoint): Declare.
2709 * ada-lang.c: Include exceptions.h.
2710 <Ada exceptions description>: Update.
2711 (struct ada_catchpoint_location): New type.
2712 (ada_catchpoint_location_dtor): New function.
2713 (ada_catchpoint_location_ops): New global.
2714 (ada_catchpoint): New type.
2715 (create_excep_cond_exprs): New function.
2716 (dtor_exception, allocate_location_exception, re_set_exception)
2717 (should_stop_exception, check_status_exception): New functions.
2718 (print_one_exception, print_mention_exception)
2719 (print_recreate_exception): Adjust.
2720 (dtor_catch_exception, allocate_location_catch_exception)
2721 (re_set_catch_exception, check_status_catch_exception): New
2723 (catch_exception_breakpoint_ops): Install them.
2724 (dtor_catch_exception_unhandled)
2725 (allocate_location_catch_exception_unhandled)
2726 (re_set_catch_exception_unhandled)
2727 (check_status_catch_exception_unhandled): New functions.
2728 (catch_exception_unhandled_breakpoint_ops): Install them.
2729 (dtor_catch_assert, allocate_location_catch_assert)
2730 (re_set_catch_assert, check_status_catch_assert): New functions.
2731 (catch_assert_breakpoint_ops): Install them.
2732 (ada_exception_catchpoint_p): Delete.
2733 (catch_ada_exception_command_split)
2734 (ada_exception_catchpoint_cond_string): Rename exp_string
2735 parameter to excep_string. Adjust.
2736 (ada_parse_catchpoint_condition): Delete.
2737 (ada_exception_sal): Rename the exp_string parameter to
2738 excep_string. Delete the cond_string and cond parameters.
2740 (ada_decode_exception_location): Rename the exp_string parameter
2741 to excep_string. Delete the cond_string and cond parameters.
2743 (create_ada_exception_catchpoint): New function.
2744 (catch_ada_exception_command, ada_decode_assert_location)
2745 (catch_assert_command): Adjust.
2746 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2748 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2750 * ada-lang.c: Include arch-utils.h.
2751 (ada_decode_exception_location): Make static.
2752 (catch_ada_exception_command): Moved here from breakpoint.c.
2753 (ada_decode_assert_location): Make static.
2754 (catch_assert_command): Moved here from breakpoint.c.
2755 (_initialize_ada_lang): Install the exception and assert
2756 catchpoint commands here.
2757 * ada-lang.h (ada_decode_exception_location)
2758 (ada_decode_assert_location): Delete declarations.
2759 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2761 (create_ada_exception_breakpoint): Make extern.
2762 (catch_ada_exception_command, catch_assert_command): Moved to
2764 (add_catch_command): Make extern.
2765 (_initilize_breakpoint): Don't install the exception and assert
2766 catchpoint commands here.
2767 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2769 (add_catch_command, create_ada_exception_breakpoint): Declare.
2771 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2773 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2774 the breakpoint to the breakpoint chain here.
2775 (set_raw_breakpoint_without_location): Add the breakpoint to the
2776 breakpoint chain here.
2777 (init_raw_breakpoint): Adjust comments.
2778 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2780 (init_catchpoint): Don't set the catchpoint's breakpoint number
2782 (install_catchpoint): New function.
2783 (create_fork_vfork_event_catchpoint)
2784 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2785 use install_catchpoint.
2787 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2789 * breakpoint.c (create_catchpoint_without_mention)
2790 (create_catchpoint): Delete.
2792 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2794 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2795 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2796 reference to exec_pathname.
2797 (struct exec_catchpoint): New type.
2798 (dtor_catch_exec): New function.
2799 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2800 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2801 (catch_exec_command_1): Adjust to use init_catchpoint.
2802 (delete_breakpoint): Remove reference to exec_pathname.
2804 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2806 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2807 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2808 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2809 reference to syscalls_to_be_caught.
2810 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2812 (struct syscall_catchpoint): New type.
2813 (dtor_catch_syscall): New function.
2814 (insert_catch_syscall, remove_catch_syscall)
2815 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2816 (print_recreate_catch_syscall): Adjust.
2817 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2818 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2819 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2820 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2821 (masked_watchpoint_breakpoint_ops)
2822 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2823 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2824 there is one. Remove references to syscalls_to_be_caught.
2825 (catching_syscall_number): Adjust.
2826 * ada-lang.c (catch_exception_breakpoint_ops)
2827 (catch_exception_unhandled_breakpoint_ops)
2828 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2830 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2832 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2834 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2835 reference to forked_inferior_pid.
2836 (struct fork_catchpoint): New type.
2837 (breakpoint_hit_catch_fork, print_it_catch_fork)
2838 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2839 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2840 (create_fork_vfork_event_catchpoint): Adjust to use
2843 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2845 * breakpoint.c (add_to_breakpoint_chain)
2846 (init_raw_breakpoint_without_location): New functions, factored
2848 (set_raw_breakpoint_without_location): ... this one.
2849 (init_raw_breakpoint): New function, factored out from
2850 set_raw_breakpoint and adjusted to use
2851 init_raw_breakpoint_without_location.
2852 (set_raw_breakpoint): Adjust.
2853 (init_catchpoint): New function, factored out from
2854 create_catchpoint_without_mention and adjusted to use
2855 init_raw_breakpoint.
2856 (create_catchpoint_without_mention): Adjust.
2858 2011-06-22 Tom Tromey <tromey@redhat.com>
2860 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2861 argument of 0 specially.
2863 2011-06-22 Yao Qi <yao@codesourcery.com>
2865 * infrun.c (handle_inferior_event): Remove write-only local variable
2866 `sw_single_step_trap_p'.
2868 2011-06-20 Tom Tromey <tromey@redhat.com>
2870 * symtab.c (lookup_language_this): End loop if block is NULL.
2872 2011-06-17 Tom Tromey <tromey@redhat.com>
2874 * valops.c (value_of_this): Use lookup_language_this.
2875 * symtab.h (lookup_language_this): Declare.
2876 * symtab.c (lookup_language_this): New function.
2877 (lookup_symbol_aux): Use lookup_language_this.
2878 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2880 2011-06-17 Tom Tromey <tromey@redhat.com>
2882 * value.h (value_of_this): Update.
2883 (value_of_local): Remove.
2884 * valops.c (value_of_this): Rename from value_of_local. Change
2886 * p-exp.y (exp): Update.
2887 (variable): Likewise.
2888 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2890 2011-06-17 Tom Tromey <tromey@redhat.com>
2892 * valops.c (value_of_local): Complain if NAME is NULL.
2893 * std-operator.def (OP_OBJC_SELF): Remove.
2894 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2895 * objc-exp.y (name_not_typename): Use OP_THIS.
2896 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2898 <OP_OBJC_SELF>: Remove.
2899 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2901 2011-06-16 Tristan Gingold <gingold@adacore.com>
2903 * python/py-events.h (gdb_py_events): Make it extern.
2904 * python/py-evtregistry.c (gdb_py_events): Declare.
2906 2011-06-16 Hui Zhu <teawater@gmail.com>
2908 * remote.c (remote_trace_set_readonly_regions): Add check for
2909 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2912 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2914 * arm-linux-tdep.c: Include "auxv.h".
2916 (ARM_LINUX_SIZEOF_VFP): Define.
2917 (arm_linux_supply_vfp): New function.
2918 (arm_linux_collect_vfp): Likewise.
2919 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2920 (arm_linux_fpa_regset_sections): New variable.
2921 (arm_linux_vfp_regset_sections): Likewise.
2922 (arm_linux_core_read_description): New function.
2923 (arm_linux_init_abi): Install arm_linux_core_read_description and
2924 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2925 appropriate for the architecture.
2926 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2927 (tdesc_arm_with_m): Declare.
2928 (tdesc_arm_with_iwmmxt): Likewise.
2929 (tdesc_arm_with_vfpv2): Likewise.
2930 (tdesc_arm_with_vfpv3): Likewise.
2931 (tdesc_arm_with_neon): Likewise.
2932 * arm-linux-nat.c: Move features/*.c includes ...
2933 * arm-tdep.c: ... here.
2934 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2935 target description data structures ...
2936 * arm-tdep.c (_initialize_arm_tdep): ... here.
2937 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2938 HWCAP_VFPv3D16): Move definitions ...
2939 * arm-linux-tdep.h: ... here.
2941 2011-06-15 Hui Zhu <teawater@gmail.com>
2943 * remote.c (remote_trace_set_readonly_regions): Add a check for
2946 2011-06-14 Tom Tromey <tromey@redhat.com>
2948 * coffread.c (coffread_objfile): Rename from current_objfile.
2949 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2950 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2952 2011-06-14 Tom Tromey <tromey@redhat.com>
2954 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2955 (class_symtab): Remove.
2956 (jv_dynamics_progspace_key): New global.
2957 (jv_per_objfile_free): Reset program space data. Update assert.
2958 Don't clear globals.
2959 (get_dynamics_objfile): Use and set program space data.
2960 (get_java_class_symtab): Use get_dynamics_objfile.
2961 (add_class_symbol): Likewise.
2962 (java_link_class_type): Likewise.
2963 (java_object_type, jv_clear_object_type, set_java_object_type):
2965 (get_java_object_type): Update. Don't cache result.
2966 (is_object_type): Don't call set_java_object_type.
2967 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2968 initialize jv_dynamics_progspace_key.
2970 2011-06-14 Tom Tromey <tromey@redhat.com>
2972 * symtab.h (current_objfile): Don't declare.
2973 * objfiles.h (current_objfile): Don't declare.
2974 * objfiles.c (current_objfile): Remove.
2975 * mdebugread.c (current_objfile): New file-scope global.
2976 * dbxread.c (current_objfile): New file-scope global.
2977 * coffread.c (current_objfile): New file-scope global.
2979 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2981 * top.h (line): Rename to ...
2982 (saved_command_line): ... this.
2983 (linesize): Rename to ...
2984 (saved_command_line_size): ... this.
2985 * top.c (line): Rename to ...
2986 (saved_command_line): ... this.
2987 (linesize): Rename to ...
2988 (saved_command_line_size): ... this.
2989 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2990 * event-top.c (command_line_handler): Adjust.
2991 * main.c (captured_main): Adjust.
2993 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2995 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2996 get_frame_func instead of get_frame_pc to determine the code
2997 address used to construct the frame ID.
2998 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2999 (i386_epilogue_frame_this_id): Likewise.
3000 (i386_epilogue_frame_prev_register): New function.
3001 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3002 (i386_stack_tramp_frame_sniffer): Fix coding style.
3003 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3004 (i386_gdbarch_init): Fix comments.
3006 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3008 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3009 instruction when walking back through the instruction stream.
3011 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3013 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3014 fullname parameters order.
3016 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3019 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3021 * psymtab.c (map_symbol_filenames_psymtab)
3022 (map_partial_symbol_filenames): Likewise.
3023 * psymtab.h: Include symfile.h.
3024 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3025 * symfile.h (symbol_filename_ftype): New.
3026 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3027 map_symbol_filenames, clarify more the naming in comment.
3029 2011-06-07 Doug Evans <dje@google.com>
3031 * cc-with-index.sh: Fix typos in comment.
3032 Look for ../../gdb, for fullname.exp.
3034 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3035 Pedro Alves <pedro@codesourcery.com>
3037 * cli/cli-cmds.c (shell_escape): Use waitpid.
3038 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3040 2011-06-07 Tristan Gingold <gingold@adacore.com>
3042 * xcoffread.c (dwarf2_xcoff_names): New variable.
3043 (aix_process_linenos): Add a guard.
3044 (xcoff_symfile_finish): Free dwarf2.
3045 (xcoff_initial_scan): Add dwarf2 support.
3047 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3049 * infcall.c (run_inferior_call): Don't mask async. Instead force
3050 a synchronous wait, if the target can async.
3052 * target.h (struct target_ops): Delete to_async_mask.
3053 (target_async_mask): Delete.
3054 * target.c (update_current_target): Delete references to to_async_mask.
3055 * linux-nat.c (linux_nat_async_mask_value): Delete.
3056 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3057 to linux_nat_async_mask_value.
3058 (linux_nat_async_mask): Delete.
3059 (linux_nat_async, linux_nat_close): Remove references to
3060 linux_nat_async_mask_value.
3061 * record.c (record_async_mask_value): Delete.
3062 (record_async): Remove references to record_async_mask_value.
3063 (record_async_mask): Delete.
3064 (record_can_async_p, record_is_async_p): Remove references to
3065 record_async_mask_value.
3066 (init_record_ops, init_record_core_ops): Remove references to
3068 * remote.c (remote_async_mask_value): Delete.
3069 (init_remote_ops): Remove reference to remote_async_mask.
3070 (remote_can_async_p, remote_is_async_p): Remove references to
3071 remote_async_mask_value.
3072 (remote_async): Remove references to remote_async_mask_value.
3073 (remote_async_mask): Delete.
3075 * infrun.c (fetch_inferior_event): Don't claim registers changed
3076 if the current thread is already not executing.
3078 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3080 From Stephen Kitt <steve@sk2.org>
3081 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3082 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3084 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3086 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3087 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3089 2011-06-03 Tom Tromey <tromey@redhat.com>
3091 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3093 * python/py-exitedevent.c (create_exited_event_object): Change
3094 type of 'exit_code'. Optionally add exit_code attribute.
3095 (emit_exited_event): Change type of 'exit_code'.
3096 * python/py-event.h (emit_exited_event): Update.
3097 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3098 * infrun.c (handle_inferior_event): Set exit code fields on
3100 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3102 * inferior.c (exit_inferior_1): Initialize new fields.
3104 2011-06-03 Tom Tromey <tromey@redhat.com>
3106 * dwarf2expr.c (get_signed_type): New function.
3107 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3109 2011-06-02 Keith Seitz <keiths@redhat.com>
3111 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3113 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3115 * top.h (simplified_command_loop): Delete declaration.
3117 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3119 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3120 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3122 2011-06-01 Yao Qi <yao@codesourcery.com>
3124 * objfiles.h (obj_section_addr): Update reference to objfile from
3126 (obj_section_endaddr): Likewise.
3128 2011-06-01 Daniel Jacobowitz <drow@false.org>
3130 * MAINTAINERS: Update my email address and affiliation. Also
3131 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3133 2010-05-31 Keith Seitz <keiths@redhat.com>
3136 * linespec.c (get_search_block): New function.
3137 (find_methods): Add FILE_SYMTATB parameter and use it and
3138 get_search_block to pass an appropriate block to
3139 lookup_symbol_in_namespace.
3140 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3141 Check if *ARGPTR starts with a filename first.
3142 If it does, call locate_first_half again to locate the next
3143 "first half" of the linespec.
3144 Pass FILE_SYMTATB to decode_objc and decode_compound.
3145 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3146 (locate_first_half): Stop on the first colon seen.
3147 (decode_compound): Add FILE_SYMTAB parameter.
3148 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3149 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3150 get_search_block with lookup_symbol.
3151 (find_method): Add FILE_SYMTAB parameter and pass it to
3153 (decode_objc): Use get_search_block.
3155 2010-05-31 Keith Seitz <keiths@redhat.com>
3158 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3159 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3160 and CP_ANONYMOUS_NAMESPACE_LEN.
3161 (cp_is_anonymous): Likewise.
3162 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3163 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3164 * dwarf2read.c (namespace_name): Likewise.
3165 (fixup_partial_die): Likewise.
3166 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3167 seen in the input, keep it.
3169 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3171 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3172 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3173 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3174 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3175 * remote.c (_initialize_remote): Register
3176 async_remote_interrupt_twice directly as
3177 sigint_remote_twice_token event.
3179 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3181 * target.h (enum inferior_event_type): Delete INF_ERROR.
3182 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3184 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3186 * interps.c (interp_set): Don't cancel continuations.
3188 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3190 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3192 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3194 * continuations.h (continuation_ftype): Add `err' parameter.
3195 Document parameters.
3196 (do_all_continuations, do_all_continuations_thread)
3197 (do_all_intermediate_continuations)
3198 (do_all_intermediate_continuations_thread)
3199 (do_all_inferior_continuations): Add `err' parameter.
3200 * continuations.c (do_my_continuations_1, do_my_continuations)
3201 (do_all_inferior_continuations, do_all_continuations_ptid)
3202 (do_all_continuations_thread_callback)
3203 (do_all_continuations_thread, do_all_continuations)
3204 (do_all_intermediate_continuations_thread_callback)
3205 (do_all_intermediate_continuations_thread)
3206 (do_all_intermediate_continuations): Add `err' parameter, and pass
3207 it down all the way to the continuations proper.
3208 * inf-loop.c (inferior_event_handler): If fetching an inferior
3209 event throws an error, don't pop the target, and still call the
3210 continuations, but with `err' set. Adjust all other continuation
3212 * breakpoint.c (until_break_command_continuation): Add `err'
3214 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3215 issue another step if `err' is set.
3216 (struct until_next_continuation_args): New.
3217 (until_next_continuation): Add `err' parameter. Adjust.
3218 (until_next_command): Adjust.
3219 (struct finish_command_continuation_args): Add `thread' field.
3220 (finish_command_continuation): Add `err' parameter. Handle it.
3221 (finish_forward): Adjust.
3222 (attach_command_continuation): Add `err' parameter. Handle it.
3223 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3224 cancel the continuations.
3225 * interps.c (interp_set): Adjust to cancel the continuations.
3226 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3227 continuations rather than discarding.
3228 (free_thread): Don't clear thread inferior resources here.
3229 (delete_thread_1): Do it here instead. And do it before removing
3230 the thread from the threads list. Tag the thread as exited before
3231 clearing thread inferior resources.
3233 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3235 * infcall.c (call_function_by_hand): Rephrase error message.
3237 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3239 * defs.h (struct thread_info, struct inferior): Delete forward
3241 * breakpoint.h (struct thread_info): New forward declaration.
3242 * observer.sh (struct inferior): New forward declaration.
3243 * python/python-internal.h (struct inferior): New forward
3246 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3248 * defs.h (struct continuation, continuation_ftype)
3249 (continuation_free_arg_ftype, add_continuation)
3250 (do_all_continuations, do_all_continuations_thread)
3251 (discard_all_continuations, discard_all_continuations_thread)
3252 (add_intermediate_continuation, do_all_intermediate_continuations)
3253 (do_all_intermediate_continuations_thread)
3254 (discard_all_intermediate_continuations)
3255 (discard_all_intermediate_continuations_thread)
3256 (add_inferior_continuation, do_all_inferior_continuations)
3257 (discard_all_inferior_continuations): Move to ...
3258 * continuations.h: ... this new file.
3259 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3260 infcmd.c, inferior.c, infrun.c, interps.c: Include
3263 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3264 Doug Evans <dje@google.com>
3266 Fix PR 10970, PR 12702.
3267 * linux-nat.c (linux_lwp_is_zombie): New function.
3268 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3269 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3271 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3273 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3275 (add_continuation, add_intermediate_continuation)
3276 (add_inferior_continuation): Use them.
3277 * continuations.c (struct continuation): Use them.
3278 (make_continuation_ftype): Delete.
3279 (make_continuation, add_inferior_continuation, add_continuation)
3280 (add_intermediate_continuation): Use continuation_ftype and
3281 continuation_free_arg_ftype. Rename parameters to shorter names.
3283 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3285 * continuations.c (make_continuation): Make it return void.
3286 (do_my_continuations): Rename to ...
3287 (do_my_continuations_1): ... this. Remove old_chain parameter and
3289 (do_my_continuations): New.
3290 (discard_my_continuations): Rename to ...
3291 (discard_my_continuations_1): ... this. Remove old_chain
3292 parameter and adjust.
3293 (discard_my_continuations): New.
3294 (add_inferior_continuation): Simplify.
3295 (do_all_inferior_continuations): Reimplement on top
3296 do_my_continuations.
3297 (discard_all_inferior_continuations): Simplify.
3298 (add_continuation): Simplify.
3299 (do_all_continuations_ptid): Simplify.
3300 (discard_all_continuations_thread_callback): Simplify.
3301 (add_intermediate_continuation): Simplify.
3302 (discard_all_intermediate_continuations_thread_callback):
3305 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3307 * utils.c (struct continuation, add_continuation)
3308 (add_inferior_continuation)
3309 (do_all_inferior_continuations, discard_all_inferior_continuations)
3310 (restore_thread_cleanup, do_all_continuations_ptid)
3311 (do_all_continuations_thread_callback)
3312 (do_all_continuations_thread, do_all_continuations)
3313 (discard_all_continuations_thread_callback)
3314 (discard_all_continuations_thread, discard_all_continuations)
3315 (add_intermediate_continuation)
3316 (do_all_intermediate_continuations_thread_callback)
3317 (do_all_intermediate_continuations_thread)
3318 (do_all_intermediate_continuations)
3319 (discard_all_intermediate_continuations_thread_callback)
3320 (discard_all_intermediate_continuations_thread)
3321 (discard_all_intermediate_continuations): Move to ...
3322 * continuations.c: ... this new file, and adjust to no longer
3323 implement continuations on top of cleanups.
3324 * Makefile.in (SFILES): Add continuations.c.
3325 (COMMON_OBS): Add continuations.o.
3327 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3329 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3330 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3331 Internal error on invalid values.
3332 * reverse.c: Don't handle EXEC_ERROR.
3333 * mi/mi-main.c: Don't handle EXEC_ERROR.
3335 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3337 * record.c: Include event-loop.h, inf-loop.h.
3338 (record_beneath_to_async): New global.
3339 (tmp_to_async): New global.
3340 (record_async_inferior_event_token): New global.
3341 (record_open_1): Don't error out if async is enabled.
3342 (record_open): Handle to_async. Create an async event source in
3344 (record_close): Delete the async event source.
3345 (record_resumed): New global.
3346 (record_execution_dir): New global.
3347 (record_resume, record_core_resume): Set them. Register the
3348 target on the event loop.
3349 (record_wait): Rename to ...
3350 (record_wait_1): ... this. Add more debug output. Handle
3351 TARGET_WNOHANG, and the target beneath returning
3352 TARGET_WAITKIND_IGNORE.
3353 (record_wait): Reimplement on top of record_wait_1.
3354 (record_async_mask_value): New global.
3355 (record_async, record_async_mask, record_can_async_p)
3356 (record_is_async_p, record_execution_direction): New functions.
3357 (init_record_ops, init_record_core_ops): Install new methods.
3358 * infrun.c (fetch_inferior_event): Temporarily switch the global
3359 execution direction to the direction the target was going.
3360 (execution_direction): Change type to int.
3361 * target.c (default_execution_direction): New function.
3362 (update_current_target): Inherit and de_fault
3363 to_execution_direction.
3364 * target.h (struct target_ops) <to_execution_direction>: New
3366 (target_execution_direction): New macro.
3367 * inferior.h (execution_direction): Change type to int.
3369 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3371 * infcall.c (call_function_by_hand): Don't allow calling functions
3372 in reverse execution mode.
3374 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3376 * infcmd.c (finish_command): Allow async finish in reverse.
3378 2011-05-26 Yao Qi <yao@codesourcery.com>
3380 * gdb_thread_db.h: Delete. Move to ...
3381 * common/gdb_thread_db.h: ... here.
3383 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3385 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3386 function's entry point instead of a manually managed momentary
3387 breakpoint, and only ever issue one proceed call.
3388 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3389 doing a reverse-finish, switch to stepi mode, to do another step.
3390 (insert_step_resume_breakpoint_at_sal): Make public.
3391 (normal_stop): No need to save function value return registers if
3393 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3395 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3397 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3398 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3399 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3401 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3402 step-resume breakpoints.
3403 (print_it_typical): Handle bp_hp_step_resume.
3404 (bpstat_what): Ditto.
3405 (bptype_string): Ditto.
3406 (print_one_breakpoint_location): Ditto.
3407 (allocate_bp_location): Ditto.
3409 (breakpoint_re_set_one): Ditto.
3410 * infrun.c (handle_inferior_event): Adjust. Split
3411 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3412 BPSTAT_WHAT_HP_STEP_RESUME.
3413 (insert_step_resume_breakpoint_at_sal): Rename to ...
3414 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3415 parameter. Handle it.
3416 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3417 insert_step_resume_breakpoint_at_sal_1.
3418 (insert_step_resume_breakpoint_at_frame): Rename to ...
3419 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3420 set a high-priority step-resume breakpoint.
3421 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3422 (insert_step_resume_breakpoint_at_caller): Ditto.
3424 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3426 * breakpoint.c (iterate_over_related_breakpoints): New.
3427 (do_map_delete_breakpoint): New.
3428 (delete_command): Pass do_map_delete_breakpoint to
3429 map_breakpoint_numbers.
3430 (do_disable_breakpoint): New.
3431 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3433 (do_enable_breakpoint): Rename to ...
3434 (enable_breakpoint_disp): ... this.
3435 (enable_breakpoint): Adjust.
3436 (do_enable_breakpoint): New.
3437 (enable_once_breakpoint): Delete.
3438 (do_map_enable_breakpoint): New.
3439 (do_map_enable_once_breakpoint): New.
3440 (enable_once_command, enable_delete_command)
3441 (delete_trace_command): Iterate over the breakpoint's related
3444 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3446 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3447 for ALPHA_ZERO_REGNUM.
3448 (alpha_supply_int_regs): Explicitly supply zero as the value for
3449 ALPHA_ZERO_REGNUM in the register cache.
3450 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3452 2011-05-26 Yao Qi <yao@codesourcery.com>
3454 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3456 2011-05-26 Tristan Gingold <gingold@adacore.com>
3458 * symfile.h (struct dwarf2_section_names): New type.
3459 (struct dwarf2_debug_sections): New type.
3460 (dwarf2_has_info): Add parameter.
3461 * dwarf2read.c (dwarf2_elf_names): New variable.
3462 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3463 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3464 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3465 (dwarf2_has_info): Add names parameter. Pass names
3466 to dwarf2_locate_sections.
3467 (section_is_p): Rewrite using the names parameter.
3468 (dwarf2_locate_sections): Use section names from the names parameter.
3469 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3470 * elfread.c (read_psyms): Ditto.
3471 * machoread.c (macho_symfile_read): Ditto.
3473 2011-05-25 Andreas Schwab <schwab@redhat.com>
3476 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3478 2011-05-24 Keith Seitz <keiths@redhat.com>
3481 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3482 (decode_compound): Unconditionally call keep_name_info.
3484 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3486 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3487 scope, clear its command list.
3488 (map_breakpoint_numbers): Don't walk the related breakpoints list
3491 2011-05-24 Tom Tromey <tromey@redhat.com>
3493 * MAINTAINERS: Move Jim Blandy to past maintainers.
3495 2011-05-24 Tristan Gingold <gingold@adacore.com>
3497 * symfile.h (enum dwarf2_section_enum): New type.
3498 (dwarf2_get_section_info): New prototype.
3499 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3500 section_name by sect. Use a switch to select the info.
3501 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3502 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3504 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3506 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3507 shared library event breakpoint if there's no execution.
3509 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3511 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3512 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3514 2011-05-23 Tom Tromey <tromey@redhat.com>
3516 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3519 2011-05-23 Doug Evans <dje@google.com>
3521 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3522 entry for RuntimeError to doc string.
3524 2011-05-23 Jerome Guitton <guitton@adacore.com>
3526 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3527 sequence for probing loops.
3529 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3531 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3534 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3536 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3537 zero as the value for %g0 in the register cache.
3538 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3539 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3541 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3543 * infrun.c (proceed): Set previous_inferior_ptid here.
3544 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3545 inferior_ptid, not null_ptid.
3546 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3547 (fetch_inferior_event): Nor here.
3549 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3551 * inf-loop.c (inferior_event_handler): Only output a message if
3554 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3556 * MAINTAINERS: Update my e-mail address.
3558 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3560 * infrun.c (proceed): Switch the inferior event loop to
3561 INF_EXEC_COMPLETE if the target refused to resume from a
3564 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3566 * infcmd.c: Include "inf-loop.h".
3567 (step_once): When stepping into an inline subroutine, pretend the
3568 target has run. If the target can async, switch the inferior
3569 event loop to INF_EXEC_COMPLETE.
3570 * inferior.h (user_visible_resume_ptid): Declare.
3571 * infrun.c (user_visible_resume_ptid): New function, factored out
3574 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3575 that the current thread is running. Merge async and sync
3578 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3580 * infcmd.c (step_1): Simplify synchronous case.
3582 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3584 * tracepoint.c: Include exceptions.h.
3585 (TFILE_PID): Move higher in file.
3586 (tfile_open): Delay pushing the tfile target until we're assured
3587 the tfile header is present in the file. Wrap reading the initial
3588 newline-terminated lines in TRY_CATCH. Pop the target if the
3589 initial setup failed. Add the tfile's thread immediately
3590 aftwards, before any non-essential setup. Don't skip
3591 post_create_inferior if there are no traceframes present in the
3593 (tfile_close): Remove redundant check for null before xfree call.
3594 (tfile_thread_alive): New function.
3595 (init_tfile_ops): Register it as to_thread_alive callback.
3597 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3599 * tracepoint.c (tfile_open): Delete #if 0'd code.
3601 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3603 Fix -readnow for -gdwarf-4 unused type units.
3604 * dwarf2read.c (struct signatured_type): Remove the field offset.
3605 (create_signatured_type_table_from_index): Remove its initialization.
3606 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3607 instead. Add a complaint call.
3608 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3609 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3610 (lookup_signatured_type_at_offset, read_signatured_type)
3611 (write_one_signatured_type): Update the field for per_cu.
3613 2011-05-19 Tom Tromey <tromey@redhat.com>
3615 * python/py-inferior.c (python_inferior_exit): Use
3617 (python_on_resume): Likewise.
3619 2011-05-19 Matt Rice <ratmice@gmail.com>
3621 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3623 2011-05-19 Hui Zhu <teawater@gmail.com>
3625 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3627 2011-05-19 Hui Zhu <teawater@gmail.com>
3629 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3631 2011-05-18 Tom Tromey <tromey@redhat.com>
3633 * dwarf2read.c (dwarf2_add_field): Constify.
3634 * value.c (value_static_field): Constify.
3635 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3637 * ax-gdb.c (gen_static_field): Constify
3639 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3641 * linux-nat.c (kill_callback): Use SIGKILL first.
3643 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3645 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3647 2011-05-18 Tom Tromey <tromey@redhat.com>
3649 * value.c (value_fn_field): Constify.
3650 * symtab.c (gdb_mangle_name): Constify.
3651 * stabsread.c (update_method_name_from_physname): Make 'physname'
3653 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3654 const. Use explicit fputc_filtered loop.
3655 (pascal_type_print_base): Constify.
3656 * p-lang.h (pascal_type_print_method_args): Update.
3657 * linespec.c (add_matching_methods): Constify.
3658 (add_constructors): Likewise.
3659 * jv-typeprint.c (java_type_print_base): Constify.
3660 * gdbtypes.h (struct cplus_struct_type)
3661 <fn_fieldlist.fn_field.physname>: Now const.
3662 * dwarf2read.c (compute_delayed_physnames): Constify.
3663 (dwarf2_add_member_fn): Likewise.
3664 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3666 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3668 * infrun.c (resume): Mention which is the current thread, and its
3669 current PC in debug output.
3670 (prepare_to_proceed): Mention the thread switching in debug
3673 2011-05-18 Tom Tromey <tromey@redhat.com>
3675 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3676 path check. Use xmalloc and cleanups.
3677 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3679 2011-05-17 Tom Tromey <tromey@redhat.com>
3681 * cp-valprint.c (cp_print_value_fields): Catch errors from
3684 2011-05-17 Tom Tromey <tromey@redhat.com>
3686 * dwarf2read.c (dwarf2_get_die_type): Call
3687 get_die_type_at_offset.
3688 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3689 get_base_type function.
3691 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3693 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3696 2011-05-16 Doug Evans <dje@google.com>
3698 * python/py-auto-load.c (source_section_scripts): Mention objfile
3701 2011-05-15 Doug Evans <dje@google.com>
3703 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3704 (try_thread_db_load_from_pdir): Call it. If unable to find
3705 libthread_db in directory of libpthread, see if we're looking at
3706 the separate-debug-info copy.
3708 * python/py-autoload.c (print_script): Print "Missing" instead of
3709 "No" for missing scripts.
3710 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3712 2011-05-13 Doug Evans <dje@google.com>
3714 * ui-file.c (stdio_file_write_async_safe): Add comment.
3716 2011-05-14 Hui Zhu <teawater@gmail.com>
3718 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3720 2011-05-13 Doug Evans <dje@google.com>
3722 Support $pdir and $sdir in libthread-db-search-path.
3723 * NEWS: Mention $sdir,$pdir.
3724 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3725 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3726 (try_thread_db_load_from_sdir): New function.
3727 (try_thread_db_load_from_dir): New function.
3728 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3729 system directories if search of libthread-db-search-path fails,
3730 that is now done via $sdir.
3731 (has_libpthread): New function.
3732 (thread_db_load): Remove search for libthread_db in directory of
3733 libpthread, that is now done via $pdir.
3735 * NEWS: Mention "info auto-load-scripts".
3736 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3737 script_not_found_warning_printed.
3738 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3739 all callers updated. Initialize script_not_found_warning_printed.
3740 (get_auto_load_pspace_data_for_loading): New function.
3741 (maybe_add_script): New function.
3742 (source_section_scripts): Simplify. Only print one warning regardless
3743 of the number of auto-load scripts not found.
3744 (clear_section_scripts): Clear script_not_found_warning_printed.
3745 (auto_load_objfile_script): Record script in hash table.
3746 (count_matching_scripts): New function.
3747 (maybe_print_script): Renamed from maybe_print_section_script, all
3748 callers updated. Rewrite to use ui_out_*.
3749 (info_auto_load_scripts): Renamed from
3750 maintenance_print_section_scripts, all callers updated.
3751 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3752 renamed as "info auto-load-scripts".
3754 2011-05-13 Tom Tromey <tromey@redhat.com>
3756 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3757 (read_sleb128): Likewise.
3759 2011-05-13 Tom Tromey <tromey@redhat.com>
3761 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3764 2011-05-13 Doug Evans <dje@google.com>
3766 * linux-nat.c (debug_linux_nat_async): Delete.
3767 Replace all references to use debug_linux_nat instead.
3768 (show_debug_linux_nat_async): Delete.
3769 (sigchld_handler): Call ui_file_write_async_safe instead of
3771 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3772 * ui-file.c (struct ui_file): New member to_write_async_safe.
3773 (null_file_write_async_safe): New function.
3774 (ui_file_write_async_safe): New function.
3775 (set_ui_file_write_async_safe): New function.
3776 (ui_file_new): Initialize to_write_async_safe.
3777 (stdio_file_write_async_safe): New function.
3778 (struct stdio_file): New member fd.
3779 (stdio_file_new): Initialize to_write_async_safe, fd.
3780 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3782 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3783 (set_ui_file_write_async_safe): Declare.
3784 (ui_file_write_async_safe): Declare.
3786 2011-05-13 Tom Tromey <tromey@redhat.com>
3788 * utils.c (do_value_free): New function.
3789 (make_cleanup_value_free): Likewise.
3790 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3792 (dwarf2_loc_desc_needs_frame): Call
3793 make_cleanup_value_free_to_mark.
3794 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3795 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3797 (new_dwarf_expr_context): Don't call value_mark.
3798 * dwarf2-frame.c (execute_stack_op): Call
3799 make_cleanup_value_free_to_mark.
3800 * defs.h (make_cleanup_value_free): Declare.
3802 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3804 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3805 prepare_execute_command.
3806 * top.c (prepare_execute_command): Return cleanup.
3807 (execute_command): Use cleanup from prepare_execute_command.
3808 * top.h (prepare_execute_command): Change prototype to return
3810 * defs.h (struct value): Add opaque declaration.
3811 (make_cleanup_value_free_to_mark): Add prototype.
3812 * utils.c (do_value_free_to_mark): New function.
3813 (make_cleanup_value_free_to_mark): Likewise.
3815 2011-05-12 Tom Tromey <tromey@redhat.com>
3817 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3818 cast left-hand-side to unsigned.
3820 2011-05-12 Tom Tromey <tromey@redhat.com>
3823 * value.h (value_from_contents): Declare.
3824 * value.c (value_from_contents): New function.
3825 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3826 (dwarf2_get_die_type): New function.
3827 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3828 (allocate_piece_closure): Acquire reference to values.
3829 (read_pieced_value): Update for value-based expressions.
3830 (write_pieced_value): Likewise.
3831 (free_pieced_value_closure): Call value_free as needed.
3832 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3833 Update for value-based expressions.
3834 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3835 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3836 <get_base_type>: New field.
3837 (struct dwarf_expr_piece) <v.value>: Change type.
3838 <v.regno>: New field.
3839 (struct dwarf_expr_context) <mark>: New field.
3840 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3841 (dwarf_expr_pop, dwarf_expr_push): Remove.
3842 (dwarf_expr_push_address): Declare.
3843 * dwarf2expr.c (dwarf_arch_cookie): New global.
3844 (struct dwarf_gdbarch_types): New.
3845 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3847 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3849 (dwarf_expr_push_address): New function.
3850 (dwarf_expr_pop): Now static.
3851 (dwarf_expr_fetch): Change return type.
3852 (dwarf_require_integral): New function.
3853 (dwarf_expr_fetch): Simplify.
3854 (add_piece): Update.
3855 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3857 (execute_stack_op) <sign_ext>: Remove.
3858 Use values for DWARF stack.
3859 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3860 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3862 (_initialize_dwarf2expr): New function.
3863 (add_piece): Update.
3864 (new_dwarf_expr_context): Set new field.
3865 (free_dwarf_expr_context): Call value_free_to_mark.
3866 * dwarf2-frame.c (no_base_type): New function.
3867 (execute_stack_op): Set get_base_type field. Update.
3869 2011-05-12 Tom Tromey <tromey@redhat.com>
3871 * dwarf2read.c (read_common_block): Fix formatting.
3873 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3875 * breakpoint.c (disable_breakpoint): Disable all locations
3876 associated with a tracepoint on target if a trace experiment is
3878 (disable_command): Disable a specific tracepoint location on target if
3879 a trace experiment is running.
3880 (do_enable_breakpoint): Enable all locations associated with a
3881 tracepoint on target if a trace experiment is running.
3882 (enable_command) Enable a specific tracepoint location on target if a
3883 trace experiment is running.
3884 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3885 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3886 to_disable_tracepoint.
3887 * target.h: Add declaration of struct bp_location.
3888 (struct target_ops): Add new functions
3889 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3890 to_disable_tracepoint to target operations.
3891 (target_supports_enable_disable_tracepoint): New macro.
3892 (target_enable_tracepoint): New macro.
3893 (target_disable_tracepoint): New macro.
3894 * remote.c (struct remote_state): Add new field.
3895 (remote_enable_disable_tracepoint_feature): New.
3896 (remote_protocol_features): Add new entry.
3897 (remote_supports_enable_disable_tracepoint): New.
3898 (remote_enable_tracepoint): New.
3899 (remote_disable_tracepoint): New.
3900 (init_remote_ops): Add remote_enable_tracepoint,
3901 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3902 to remote operations.
3903 * tracepoint.c (start_tracing): Allow tracing to start without any
3904 tracepoints enabled with just a warning if they can be re-enabled
3906 * NEWS: Add news item for the new behaviour of the enable and disable
3907 GDB commands when applied to tracepoints.
3908 Add news items for the new remote packets QTEnable and QTDisable.
3910 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3912 * config.in: Regenerate.
3913 * configure: Regenerate.
3914 * configure.ac <--with-system-readline> (for readline_echoing_p):
3916 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3917 (tui_old_rl_echoing_p): ... here.
3918 (tui_setup_io): Rename extern declaration readline_echoing_p to
3919 _rl_echoing_p. Adjust assignments for the both renames.
3921 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3923 * symtab.c (lookup_symtab): Run cleanup before returning.
3925 2011-05-11 Tom Tromey <tromey@redhat.com>
3927 * dwarf2read.c (handle_data_member_location): New function.
3928 (dwarf2_add_field): Use it.
3929 (read_common_block): Likewise.
3931 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3933 Make addrs->SECTINDEX always defined.
3934 * symfile.c (relative_addr_info_to_section_offsets): Check for
3935 SECTINDEX -1, not for zero ADDR.
3936 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3937 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3938 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3941 2011-05-10 Doug Evans <dje@google.com>
3943 * linux-thread-db.c: Whitespace cleanup.
3944 (try_thread_db_load_1): Fix comment.
3946 * linux-thread-db.c (set_libthread_db_search_path): New function.
3947 (_initialize_thread_db): Add setter for libthread-db-search-path.
3949 2011-05-09 Doug Evans <dje@google.com>
3951 * NEWS: Mention --with-iconv-bin.
3952 * configure.ac: New option --with-iconv-bin.
3953 * configure: Regenerate.
3954 * config.in: Regenerate.
3955 * defs.h (relocate_gdb_directory): Declare.
3956 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3957 removed progname parameter, and exported. All callers updated.
3958 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3960 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3961 adding missing call to restore_child_signals_mask.
3963 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3965 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3967 * infrun.c (proceed, start_remote): Adjust.
3968 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3969 and adjust to not handle it.
3970 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3971 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3972 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3973 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3974 * windows-nat.c (do_initial_windows_stuff): Adjust.
3975 * infcmd.c (attach_command): Adjust.
3976 (notice_new_inferior): Adjust.
3978 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3980 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3981 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3982 * spu-tdep.c (op_selb): Use correct value.
3984 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3986 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3987 "parent" parameter to symbol_file_add_from_bfd call.
3989 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3990 Thiago Jung Bauermann <bauerman@br.ibm.com>
3992 Implement support for PowerPC BookE masked watchpoints.
3993 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3995 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3996 method. Initialize to NULL in all existing breakpoint_ops instances.
3997 (struct breakpoint) <hw_wp_mask>: New field.
3998 * breakpoint.c (is_masked_watchpoint): Add prototype.
3999 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4000 breakpoint's breakpoint_ops.works_in_software_mode if available.
4001 (watchpoints_triggered): Handle the case of a hardware masked
4003 (watchpoint_check): Likewise.
4004 (works_in_software_mode_watchpoint): New function.
4005 (insert_masked_watchpoint, remove_masked_watchpoint)
4006 (resources_needed_masked_watchpoint)
4007 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4008 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4009 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4011 (masked_watchpoint_breakpoint_ops): New structure.
4012 (watch_command_1): Check for the existence of the `mask' parameter.
4013 Set b->ops according to the type of hardware watchpoint being created.
4014 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4015 (ppc_linux_remove_mask_watchpoint)
4016 (ppc_linux_masked_watch_num_registers): New functions.
4017 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4018 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4019 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4020 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4021 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4022 (target_masked_watch_num_registers): New functions.
4023 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4024 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4026 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4027 (target_masked_watch_num_registers): Add prototypes.
4029 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4032 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4033 (producer_is_gcc_ge_4_0): New function.
4034 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4035 symtab->language code.
4036 (var_decode_location): Set cu->has_loclist.
4037 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4038 skip. Intialize force_skip from locations_valid. Move the prologue
4039 skipping code into two passes.
4040 * symtab.h (struct symtab): Make the primary field a bitfield. New
4041 field locations_valid.
4043 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4045 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4046 (classify_inner_name): Call cp_lookup_nested_type with
4048 * cp-namespace.c (cp_lookup_nested_type): New variable
4049 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4050 type_name_no_tag_or_error with saved_parent_type.
4051 * dwarf2read.c (load_partial_dies): Read in any children of
4052 DW_TAG_typedef with complaint in such case.
4053 * gdbtypes.c (type_name_no_tag_or_error): New function.
4054 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4055 * valops.c (destructor_name_p): New comment for parameter type. Remove
4056 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4057 * value.h (destructor_name_p): Remove type const.
4059 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4061 * symtab.c (compare_symbol_name): New function.
4062 (completion_list_add_name, expand_partial_symbol_name): Call it,
4063 remove the variable ncmp.
4064 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4067 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4069 Demote to sw watchpoint only in update_watchpoint.
4070 * breakpoint.c (update_watchpoint): Change between software and
4071 hardware watchpoint for all kinds of watchpoints, not just
4072 read/write ones. Determine b->exact value here instead of
4073 in watch_command_1. Error out if there are not enough resources
4074 for a read or access hardware watchpoint.
4075 (watch_command_1): Remove logic of checking whether there are
4076 enough resources available, since update_watchpoint will do that
4077 work now. Don't set b->exact here. Catch exceptions thrown by
4078 update_watchpoint and delete the watchpoint.
4079 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4080 Use target_exact_watchpoints instead.
4081 (delete_breakpoint): Notify observers only if deleted watchpoint
4082 has a breakpoint number assigned to it.
4084 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4086 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4088 2011-05-05 Jerome Guitton <guitton@adacore.com>
4090 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4092 (i386_stack_tramp_frame_unwind): New static global.
4093 (i386_match_pattern): New function, extracted from i386_match_insn.
4094 (i386_match_insn): Use i386_match_pattern.
4095 (i386_match_insn_block): New function.
4096 (i386_tramp_chain_in_reg_insns)
4097 (i386_tramp_chain_on_stack_insns): New static variables.
4098 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4101 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4103 * configure.host (xscale*): Don't handle target.
4104 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4107 2011-05-04 Yao Qi <yao@codesourcery.com>
4109 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4111 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4114 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4115 | * elfread.c (elf_symtab_read): Stop memory leak.
4117 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4119 * nto-tdep.c (nto_target): Replace deprecated call to
4120 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4122 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4124 Fix false GCC warning.
4125 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4127 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4129 * breakpoint.c (update_watchpoint): Move code to change
4130 the enable state of breakpoint from here ...
4131 (do_enable_breakpoint): ... to here.
4133 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4135 * valprint.c (val_print_array_elements): Fixed poor performance
4136 of printing very large arrays with repeat_count_threshold set
4137 to unlimited. New comment.
4139 2011-04-29 Tom Tromey <tromey@redhat.com>
4141 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4142 (mi_parse): Likewise.
4143 * breakpoint.c (break_range_command): Use sizeof char*, not
4145 (create_breakpoint): Likewise.
4146 (parse_breakpoint_sals): Likewise.
4148 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4150 * linux-nat.c (linux_child_remove_fork_catchpoint)
4151 (linux_child_remove_vfork_catchpoint)
4152 (linux_child_remove_exec_catchpoint): New functions.
4153 (linux_target_install_ops): Install them.
4155 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4159 * varobj.c (install_default_visualizer): Do not install a
4160 visualizer if the varobj is CPLUS_FAKE_CHILD.
4161 (construct_visualizer): Likewise.
4163 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4165 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4166 case insensitive comparison.
4168 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4170 * infrun.c (proceed): Revert previous change.
4171 (resume): Instead, handle the case of signal delivery while stepping
4172 off a breakpoint location here, and only if software single-stepping
4173 is used. Handle nested signals.
4175 2011-04-28 Yao Qi <yao@codesourcery.com>
4177 * arm-tdep.c (copy_unmodified): Rename to ...
4178 (arm_copy_unmodified): .. this. New.
4179 (copy_preload): Move common part to ...
4180 (install_preload): .. this. New.
4181 (arm_copy_preload): New.
4182 (copy_preload_reg): Move common part to ...
4183 (install_preload_reg): ... this. New.
4184 (arm_copy_preload_reg): New.
4185 (copy_b_bl_blx): Move common part to ...
4186 (install_b_bl_blx): .. this. New.
4187 (arm_copy_b_bl_blx): New.
4188 (copy_bx_blx_reg): Move common part to ...
4189 (install_bx_blx_reg): ... this. New.
4190 (arm_copy_bx_blx_reg): New.
4191 (copy_alu_reg): Move common part to ...
4192 (install_alu_reg): ... this. New.
4193 (arm_copy_alu_reg): New.
4194 (copy_alu_shifted_reg): Move common part to ...
4195 (install_alu_shifted_reg): ... this. New.
4196 (copy_ldr_str_ldrb_strb): Move common part to ...
4197 (install_ldr_str_ldrb_strb): ... this. New.
4198 (arm_copy_ldr_str_ldrb_strb): New.
4199 (copy_copro_load_store): Move some common part to ...
4200 (install_copy_copro_load_store): ... this. New.
4201 (arm_copy_copro_load_store): New.
4203 (arm_copy_svc): Renamed from copy_svc.
4204 (copy_undef): Delete.
4205 (arm_copy_undef): Renamed from copy_undef.
4206 (decode_ext_reg_ld_st): Delete.
4207 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4208 (decode_svc_copro): Delete.
4209 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4210 (copy_copro_load_store, copy_alu_imm): update callers.
4211 (copy_extra_ld_st, copy_block_xfer): Likewise.
4212 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4213 (decode_miscellaneous, decode_dp_misc): Likewise.
4214 (decode_ld_st_word_ubyte, decode_media): Likewise.
4215 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4216 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4217 (decode_unconditional, decode_miscellaneous): Likewise.
4218 (decode_media, decode_b_bl_ldmstm): Likewise.
4219 (arm_process_displaced_insn): Likewise..
4220 (decode_misc_memhint_neon): Delete.
4221 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4222 (decode_miscellaneous): Delete.
4223 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4224 (decode_dp_misc): Delete.
4225 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4226 (decode_ld_st_word_ubyte): Delete.
4227 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4228 (decode_media): Delete.
4229 (arm_decode_media): Renamed from decode_media.
4230 (decode_b_bl_ldmstm): Delete.
4231 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4232 (decode_ext_reg_ld_st): Delete.
4233 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4234 (decode_unconditional): Delete.
4235 (arm_decode_unconditional): Renamed from decode_unconditional.
4237 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4239 Case insensitive lookups implementation.
4240 * dwarf2read.c: Include ctype.h.
4241 (struct mapped_index): New field version.
4242 (mapped_index_string_hash): New parameter index_version. New comment
4243 for it. Call tolower appropriately.
4244 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4245 Choose the right index version for mapped_index_string_hash.
4246 (dwarf2_read_index): Support also the index version 5. Initialize the
4247 new struct mapped_index field version.
4248 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4249 (find_slot): Explain the version needs. Pass INT_MAX for the new
4251 (write_psymtabs_to_index): Produce version 5.
4252 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4253 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4254 * psymtab.c (lookup_partial_symbol): Find the
4255 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4257 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4259 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4260 (completion_list_add_name): New variable ncmp, initialize it, use it.
4261 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4262 * utils.c (strcmp_iw): Support case_sensitive_off.
4263 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4264 New function comment part. New variables saved_string1,
4265 saved_string2 and case_pass. Add a proper second pass.
4267 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4269 Replace re_comp/re_exec by regcomp/regexec.
4270 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4271 (search_symbols_name_matches): Use them, use regexec.
4272 (search_symbols): New variable retval_chain, adjust the use of
4273 old_chain against it. Replace re_comp by regcomp. Use the new struct
4274 search_symbols_data fields, use regexec instead of re_exec.
4276 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4278 Format the code for the next patch.
4279 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4280 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4281 New variables c1 and c2.
4283 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4285 * infrun.c (proceed): Do not single-step into signal delivery
4286 when stepping off a breakpoint location.
4287 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4288 (insert_step_resume_breakpoint_at_caller): Likewise.
4289 (insert_step_resume_breakpoint_at_sal): Likewise.
4290 (insert_longjmp_resume_breakpoint): Likewise.
4292 2011-04-27 Yao Qi <yao@codesourcery.com>
4294 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4296 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4298 * procfs.c (procfs_pass_signals): Fix advance declaration.
4300 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4302 * target.h (struct target_ops): Remove to_notice_signals;
4303 add to_pass_signals.
4304 (target_notice_signals): Remove.
4305 (target_pass_signals): Add prototype.
4306 * target.c (update_current_target): Remove to_notice_signals;
4307 mention to_pass_signals.
4308 (target_pass_signals): New function.
4309 (debug_to_notice_signals): Remove.
4310 (setup_target_debug): Do not install debug_to_notice_signals.
4312 * infrun.c (signal_pass): New global.
4313 (resume): Call target_pass_signals.
4314 (handle_inferior_event): Report all signals while stepping over
4315 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4316 are re-inserted when stepping over a signal handler.
4317 (signal_cache_update): New function.
4318 (signal_stop_update): Call it.
4319 (signal_print_update): Likewise.
4320 (signal_pass_update): Likewise.
4321 (handle_command): Call signal_cache_update and target_pass_signals
4322 instead of target_notice_signals.
4323 (_initialize_infrun): Initialize signal_pass.
4325 * linux-nat.c (pass_mask): New global.
4326 (linux_nat_pass_signals): New function.
4327 (linux_nat_create_inferior): Report all signals initially.
4328 (linux_nat_attach): Likewise.
4329 (linux_nat_resume): Use pass_mask to decide whether to directly
4330 handle an inferior signal.
4331 (linux_nat_wait_1): Likewise.
4332 (linux_nat_add_target): Install to_pass_signals callback.
4334 * nto-procfs.c (notice_signals): Remove.
4335 (procfs_resume): Do not call notice_signals.
4336 (procfs_notice_signals): Remove.
4337 (procfs_pass_signals): New function.
4338 (init_procfs_ops): Install to_pass_signals callback instead of
4339 to_notice_signals callback.
4340 (_initialize_procfs): Report all signals initially.
4342 * procfs.c (procfs_notice_signals): Remove.
4343 (procfs_pass_signals): New function.
4344 (procfs_target): Install to_pass_signals callback instead of
4345 to_notice_signals callback.
4346 (register_gdb_signals): Remove.
4347 (procfs_debug_inferior): Report all signals initially.
4348 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4350 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4351 parameters; use them instead of calling signal_..._state routines.
4352 (remote_notice_signals): Remove.
4353 (remote_start_remote): Report all signals initially.
4354 (remote_resume): Do not call remote_pass_signals.
4355 (_initialize_remote): Install to_pass_signals callback instead of
4356 to_notice_signals callback.
4358 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4360 * breakpoint.c (user_settable_breakpoint): Delete.
4361 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4362 (delete_command): Check user_breakpoint_p instead of looking at
4363 the breakpoint's type.
4364 (disable_command): Ditto.
4365 (enable_command): Ditto.
4366 (delete_trace_command): Use user_breakpoint_p instead of looking
4367 at the breakpoint number directly. When checking if there are
4368 user visible tracepoints, in order to know whether to ask the user
4369 for confirmation, check whether the breakpoint is actually a
4372 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4374 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4377 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4379 MI breakpoint notifications.
4381 * annotate.c (breakpoint_changed): Adjust parameter type.
4382 * breakpoint.c (set_breakpoint_condition): Adjust to change
4383 in breakpoint_modified type.
4384 (breakpoint_set_commands): Likewise.
4385 (do_map_commands_command): Likewise.
4386 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4387 changed after bumping hit count.
4388 (bpstat_stop_status): Likewise.
4389 (print_one_breakpoint_location): Don't wrap in tuple here.
4390 (print_one_breakpoint): Always print individual locations.
4391 For locations, use unnamed tuple.
4392 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4394 (create_catchpoint, create_syscall_event_catchpoint): Call
4395 breakpoint_created obsever.
4396 (mention): Don't call breakpoint_created observer.
4397 (create_breakpoint_sal): Call breakpoint_created observer.
4398 (create_breakpoint, watch_command_1): Likewise.
4399 (create_ada_exception_breakpoint): Likewise.
4400 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4401 (locations_are_equal): New.
4402 (update_breakpoint_locations): If locations were changed, notify.
4403 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4404 Call breakpoint_modified observer.
4406 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4407 (mi_cmd_break_insert): Don't set observers for modify and delete.
4408 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4409 (mi_breakpoint_created, mi_breakpoint_deleted)
4410 (mi_breakpoint_modified): New.
4411 (mi_interpreter_init): Hook the above.
4412 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4413 while -break-* commands are executing.
4414 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4415 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4417 (mi_ui_out_impl): Hook in mi_redirect.
4418 (mi_field_skip): True to the name, skip the field, don't output
4419 a field with an empty value.
4421 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4422 (gdbpy_breakpoint_deleted): Adjust.
4423 * tui/tui-hooks.c (tui_event_create_breakpoint)
4424 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4426 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4428 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4429 (procfs_remove_hw_watchpoint): Likewise.
4431 2011-04-26 Michael Walle <michael@walle.cc>
4433 * remote.c (remote_start_remote): Ack packet after sending the
4436 2011-04-26 Yao Qi <yao@codesourcery.com>
4438 * linux-nat.c: Move common macros to ...
4439 Include linux-ptrace.h.
4440 * common/linux-ptrace.h: ... here. New.
4442 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4445 !objfile_has_partial_symbols. New comment.
4446 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4447 SYM_READ_PSYMBOLS is not present. Extend the comment.
4448 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4450 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4452 * defs.h (ENUM_BITFIELD): Remove.
4454 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 Eli Zaretskii <eliz@gnu.org>
4457 * NEWS: Document the new gdbserver --once option.
4459 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4461 * MAINTAINERS: Update my email address.
4463 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4465 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4466 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4467 function call if __STDC_ISO_10646__ macro is defined.
4468 (intermediate_encoding): New prototype.
4469 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4470 to generate compile time error for unsupported gdb_wchar_t size.
4471 (ENDIAN_SUFFIX): New macro.
4472 (intermediate_encoding): New function.
4474 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4476 * ada-lang.c (struct add_partial_datum): Update the comment for
4477 expand_partial_symbol_name.
4478 (ada_add_partial_symbol_completions): Rename to ...
4479 (ada_expand_partial_symbol_name): ... here, change return type, update
4480 function comment, call symbol_completion_match instead of
4481 symbol_completion_add.
4482 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4483 and ada_expand_partial_symbol_name.
4484 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4486 (dw2_map_symbol_names): Remove.
4487 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4488 * psymtab.c (map_symbol_names_psymtab): Remove.
4489 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4490 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4492 (psym_functions): Unlist map_symbol_names_psymtab.
4493 (map_partial_symbol_names): Rename to ...
4494 (expand_partial_symbol_names): ... here, change the FUN type, call
4495 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4496 * psymtab.h (map_partial_symbol_names): Rename to ...
4497 (expand_partial_symbol_names): ... here, change the FUN type.
4498 * symfile.h (struct quick_symbol_functions): Update the description of
4499 expand_symtabs_matching. Remove map_symbol_names.
4500 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4501 (struct add_name_data): Update the comment for
4502 expand_partial_symbol_name.
4503 (add_partial_symbol_name): Rename to ...
4504 (expand_partial_symbol_name): ... here. Replace
4505 completion_list_add_name call by strncmp.
4506 (default_make_symbol_completion_list_break_on): Use now
4507 expand_partial_symbol_names and expand_partial_symbol_name.
4508 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4510 2011-04-20 Tom Tromey <tromey@redhat.com>
4512 * dwarf2read.c (save_gdb_index_command): Replace format
4513 documentation with a pointer to the manual.
4515 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4517 * regcache.c: Include remote.h.
4518 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4519 (regcache_dump): Handle regcache_dump_remote.
4520 (maintenance_print_remote_registers): New function.
4521 (_initialize_regcache): Install "maint print remote-registers"
4523 * remote.c (map_regcache_remote_table): New function, factored out
4525 (init_remote_state): ... here.
4526 (remote_register_number_and_offset): New.
4527 * remote.h (remote_register_number_and_offset): Declare.
4529 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4531 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4532 null_ptid, assume and allow a NULL address space, instead of
4533 asking the target for the ptid's address space.
4534 * infrun.c (ptid_is_pid): Remove assertion.
4536 2011-04-19 Tom Tromey <tromey@redhat.com>
4538 * windows-tdep.c (windows_xfer_shared_library):
4539 * windows-nat.c (get_module_name, windows_make_so):
4540 * v850-tdep.c (v850_handle_pushm):
4541 * utils.c (null_cleanup, gdb_realpath):
4542 * ui-out.c (get_next_header):
4543 * tracepoint.c (clear_traceframe_info):
4544 * symtab.c (lookup_symtab):
4545 * serial.h (struct serial_ops):
4546 * mipsread.c (read_alphacoff_dynamic_symtab):
4547 * infcmd.c (print_return_value):
4548 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4549 * f-exp.y (parse_number):
4550 * exceptions.c (catch_exceptions):
4551 * dummy-frame.c (dummy_frame_this_id):
4552 * defs.h (struct cleanup):
4553 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4554 * arm-tdep.c (arm_push_dummy_call):
4555 * amd64-tdep.h (amd64_collect_xsave):
4556 * amd64-tdep.c (amd64_collect_xsave):
4557 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4558 * README (typing): Remove duplicate words.
4559 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4560 * infrun.c (siginfo_value_read): Fix typo.
4561 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4562 * top.c (source_line_number): Add comma.
4564 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4566 * thread.c (any_live_thread_of_process): Prioritize threads
4567 that are not executing.
4568 * gdbthread.h (any_live_thread_of_process): Update comment
4569 as per above change.
4571 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4573 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4574 (scan_xcoff_symtab): Likewise.
4576 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4578 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4581 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4582 Pedro Alves <pedro@codesourcery.com>
4584 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4585 variables to simplify code and avoid == operator at end of
4586 line as this is against GNU coding standards.
4588 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4590 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4591 lm_name to name_lm to avoid conflict with lm_name function.
4593 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4595 ARI fixes: Use only lowercase function name for static functions.
4596 * nto-tdep.c (LM_ADDR): Rename to...
4597 (lm_addr): New function name.
4598 (nto_relocate_section_addresses): Adapt to change above.
4599 * solib-sunos.c (LM_ADDR): Rename to...
4600 (lm_addr): New function name.
4601 (LM_NEXT): Rename to...
4602 (lm_next): New function name.
4603 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4604 function name changes above.
4605 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4606 (lm_addr_from_link_map): New function name.
4607 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4608 (has_lm_dynamic_from_link_map): New function name.
4609 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4610 (lm_dynamic_from_link_map): New function name.
4611 (LM_ADDR_CHECK): Rename to...
4612 (lm_addr_check): New function name.
4613 (LM_NEXT): Rename to...
4614 (lm_next): New function name.
4615 (LM_PREV): Rename to...
4616 (lm_prev): New function name.
4617 (LM_NAME): Rename to...
4618 (lm_name): New function name.
4619 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4620 (ignore_first_link_map_entry): New function name.
4621 (svr4_keep_data_in_core): Adapt to function name changes above.
4622 (svr4_current_sos): Likewise.
4623 (enable_break): Likewise.
4624 (svr4_relocate_section_addresses): Likewise.
4626 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4629 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4630 sprintf. Simplify code and avoid loosing memory.
4631 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4632 (call0_frame_cache): Remove && operator from end of line.
4634 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 Fix libraries displacement if they change whether they were prelinked.
4637 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4638 does not match. Comment why.
4640 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 * corelow.c: Include wrapper.h.
4643 (core_open): Call now gdb_target_find_new_threads.
4644 * wrapper.c: Include target.h.
4645 (gdb_target_find_new_threads): New.
4646 * wrapper.h (gdb_target_find_new_threads): New declaration.
4648 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4650 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4651 even if !TARGET_HAS_EXECUTION.
4653 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4655 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4656 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4657 bfd_get_synthetic_symtab.
4658 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4659 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4660 parameter parent, remove the call to add_separate_debug_objfile.
4661 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4662 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4663 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4664 parent, new comment for it, call add_separate_debug_objfile for it.
4665 (symbol_file_add_separate): Pass objfile as the parameter parent,
4666 remove the call to add_separate_debug_objfile.
4667 (symbol_file_add_from_bfd): New parameter parent, pass it.
4668 (symbol_file_add): Pass NULL to the new parameter parent.
4669 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4671 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4673 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4676 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4678 Fix Python access to inlined frames.
4679 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4680 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4682 2011-04-15 Tom Tromey <tromey@redhat.com>
4684 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4686 2011-04-15 Gary Benson <gbenson@redhat.com>
4688 * MAINTAINERS: Add myself to write-after-approval section.
4690 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4692 * remote-sim.c (sim_command_completer): New function.
4693 (_initialize_remote_sim): Set completer to sim_command_completer.
4695 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4697 * breakpoint.c (print_exception_catchpoint): Rename to ...
4698 (print_it_exception_catchpoint): ... this.
4699 (gnu_v3_exception_catchpoint_ops): Update with new name
4700 for print_it_exception_catchpoint.
4702 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4704 * MAINTAINERS: Add myself for write after approval privileges.
4706 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4708 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4710 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4712 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4714 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4716 * breakpoint.c (save_breakpoints): Verify whether
4717 breakpoint_ops.print_recreate is defined before calling it.
4719 2011-04-11 Gary Benson <gbenson@redhat.com>
4721 Fix failure with --enable-maintainer-mode.
4722 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4724 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4727 * symtab.c (search_symbols): Reorder the KIND description in the
4728 function comment. Remove the unused 4th element of types, types2,
4729 types3 and types4. New gdb_assert on KIND.
4730 (symtab_symbol_info): Remove the unused 4th element of classnames.
4731 New gdb_assert on KIND.
4732 * symtab.h (enum search_domain): New warning in the enum comment.
4733 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4736 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 Fix crash of gdb save-index on a STABS file.
4739 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4742 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4744 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4745 * dwarf2read.c: Include ctype.h.
4746 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4748 (dwarf2_add_field): Fix new_field->accessibility by calling
4749 dwarf2_default_access_attribute. Restructure setting accessibility
4751 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4752 is_private and is_protected by calling
4753 dwarf2_default_access_attribute.
4755 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4757 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4758 to the initialization.
4760 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4762 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4765 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4767 Remove support for old Cygwin 1.5 versions.
4768 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4769 function on old Cygwin version.
4770 * windows-nat.c: Remove cygwin version check and always define
4771 __USEWIDE for Cygwin compilation.
4773 2011-04-07 Yao Qi <yao@codesourcery.com>
4775 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4777 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4778 (arm_copy_svc): Remove parameters INSN and TO.
4779 (decode_svc_copro): Update caller.
4780 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4781 from function pointer `copy_svc_os'.
4783 2011-04-07 Yao Qi <yao@codesourcery.com>
4785 * arm-tdep.c (cleanup_branch): Set a correct return address in
4786 LR for ARM and Thumb.
4788 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4791 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4792 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4793 in the function comment, a new note on values compatibility.
4794 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4795 * symtab.h (SYMBOL_HASH_NEXT): New.
4797 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4799 * ppc-linux-nat.c (check_condition): Add len output parameter.
4800 Set it based on the memory region referenced in the condition
4801 expression. Update all callers.
4803 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4805 Fix crash regression on systems featuring .gdb_index.
4806 * objfiles.c (free_objfile): Move the
4807 forget_cached_source_info_for_objfile call earlier. Comment it.
4808 Extend the comment for objfile_free_data.
4810 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 Fix regression of displaying the debug format.
4813 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4816 2011-04-04 Tom Tromey <tromey@redhat.com>
4818 * cli/cli-interp.c (struct captured_execute_command_args):
4820 (do_captured_execute_command): Remove.
4821 (safe_execute_command): Use TRY_CATCH.
4822 * cli/cli-script.c (struct wrapped_read_command_file_args):
4824 (wrapped_read_command_file): Remove.
4825 (script_from_file): Use TRY_CATCH.
4826 * exceptions.c (catch_exception): Remove.
4827 * exceptions.h (catch_exception): Remove.
4828 (deprecated_throw_reason): Update comment.
4829 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4830 argument to 'context'.
4831 (mi_execute_command): Use TRY_CATCH.
4832 * remote.c (struct start_remote_args): Remove.
4833 (remote_start_remote): Update; change arguments.
4834 (remote_open_1): Use TRY_CATCH.
4836 2011-04-04 Tom Tromey <tromey@redhat.com>
4838 * tracepoint.c (scope_info): Update.
4839 * symtab.c (decode_line_spec): Update.
4840 * python/python.c (gdbpy_decode_line): Update.
4841 * linespec.h (decode_line_1): Update.
4842 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4843 (decode_compound, find_method, symtab_from_filename)
4844 (decode_variable): Likewise.
4845 * cli/cli-cmds.c (edit_command): Update.
4846 (list_command): Update.
4847 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4849 (create_breakpoint): Update.
4850 (until_break_command): Update.
4851 (addr_string_to_sals): Update.
4852 (decode_line_spec_1): Update.
4854 2011-04-04 Tom Tromey <tromey@redhat.com>
4856 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4857 (do_captured_parse_breakpoint): Remove.
4858 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4859 Use TRY_CATCH directly.
4861 2011-04-04 Tom Tromey <tromey@redhat.com>
4863 * symtab.h (free_symtab): Remove.
4864 (forget_cached_source_info_for_objfile): Declare.
4865 * symmisc.c (free_symtab): Remove.
4866 * source.c (forget_cached_source_info_for_objfile): New function.
4867 (forget_cached_source_info): Use it.
4868 * objfiles.c (free_objfile): Simplify check before calling
4869 clear_current_source_symtab_and_line. Call
4870 forget_cached_source_info_for_objfile.
4872 2011-04-04 Tom Tromey <tromey@redhat.com>
4874 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4875 (new_symtab): Don't set `free_code' on symtab.
4876 (new_linetable): Properly handle size==0.
4877 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4878 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4880 * jv-lang.c (struct jv_per_objfile_data): New.
4881 (jv_per_objfile_free): Free the data.
4882 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4883 (get_java_class_symtab): Set the `dict' field on the
4884 jv_per_objfile_data.
4885 (free_class_block): Remove.
4886 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4889 2011-04-04 Tom Tromey <tromey@redhat.com>
4891 * symfile.c (reread_symbols): Update.
4892 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4894 * objfiles.c (allocate_objfile): Update.
4895 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4897 * cp-namespace.c (lookup_symbol_file): Don't call
4898 lookup_possible_namespace_symbol.
4899 (initialize_namespace_symtab, get_possible_namespace_block)
4900 (free_namespace_block, cp_check_possible_namespace_symbols)
4901 (check_possible_namespace_symbols_loop)
4902 (check_one_possible_namespace_symbol)
4903 (lookup_possible_namespace_symbol): Remove.
4904 (maintenance_cplus_namespace): Replace with notice.
4905 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4907 2011-04-04 Tom Tromey <tromey@redhat.com>
4909 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4910 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4911 * symmisc.c (free_symtab): Don't free debugformat.
4912 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4913 (record_debugformat, record_producer): Document.
4914 * buildsym.c (end_symtab): Don't save debugformat and producer
4916 (end_symtab): Don't free debugformat and producer fields.
4917 (record_debugformat): Don't call xstrdup.
4918 (record_producer): Likewise.
4920 2011-04-04 Tom Tromey <tromey@redhat.com>
4922 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4923 (source_line_charpos, source_charpos_line): Remove.
4925 2011-04-04 Tom Tromey <tromey@redhat.com>
4927 * symtab.h (domain_enum): Split in two...
4928 (enum search_domain): New.
4929 (search_symbols): Update.
4930 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4931 redundant declarations.
4932 (search_symbols): Change 'kind' argument to search_domain.
4934 (print_symbol_info): Likewise.
4935 (symtab_symbol_info): Likewise.
4936 * symfile.h (struct quick_symbol_functions)
4937 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4938 <expand_symtabs_matching>: Likewise.
4939 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4940 (expand_symtabs_matching_via_partial): Update.
4941 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4942 (dw2_expand_symtabs_for_function): Update.
4943 * block.h: Moved anonymous enum...
4944 * defs.h (enum block_enum): ... here. Now named.
4946 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4948 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4949 * version.in: Bump version to 7.3.50.20110403-cvs.
4951 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4953 * NEWS: Create a new section for the next release branch.
4954 Rename the section of the current branch, now that it has
4957 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4959 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4960 for "fpscr" in target description.
4962 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4964 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4965 initialize it. Delay HASH initialization. Strip the part after open
4966 parenthesis for languages with qualifiers. Call do_cleanups.
4968 2011-04-01 Tom Tromey <tromey@redhat.com>
4970 * utils.c (report_command_stats): Don't print `-' for negative
4973 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4975 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4976 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4979 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4981 * breakpoint.h (bpdisp_text): Add declaration.
4982 * breakpoint.c (bpdisp_text): Make non-static.
4983 * ada-lang.c: #include "mi/mi-common.h".
4984 (print_it_exception): Rewrite to improve GDB/MI output.
4986 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4988 * arm-tdep.h (struct address_space): Add forward declaration.
4990 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4992 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4993 * arm-tdep.c (arm_override_mode): New global.
4994 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4995 execution mode heuristics.
4996 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4997 second single-step breakpoint if needed, using
4998 arm_insert_single_step_breakpoint.
4999 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5000 ARM execution mode, do not call thumb_get_next_pc_raw.
5001 (arm_get_next_pc): Encode execution mode in return value. Call
5002 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5003 (arm_insert_single_step_breakpoint): New function.
5004 (arm_software_single_step): Call it.
5005 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5006 argument to return execution mode of sigreturn target.
5007 (arm_linux_syscall_next_pc): Use it.
5008 (arm_linux_copy_svc): Update call.
5009 (arm_linux_software_single_step): Call
5010 arm_insert_single_step_breakpoint.
5012 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5014 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5017 2011-03-31 Tom Tromey <tromey@redhat.com>
5019 * varobj.c (update_dynamic_varobj_children): Properly handle
5020 errors from iterator.
5022 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5024 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5025 struct linkage name twice.
5027 2011-03-31 Tom Tromey <tromey@redhat.com>
5029 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5030 missing ">" to message.
5032 2011-03-31 Tom Tromey <tromey@redhat.com>
5034 * varobj.c (instantiate_pretty_printer): Remove duplicate
5037 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5039 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5040 if neither saved value nor register available (e.g. signal frame).
5042 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5044 * macroexp.c (expand): Avoid uninitialized variable
5047 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5049 * breakpoint.c (break_range_command): Fix typo in comment.
5051 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5052 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5054 Implement support for PowerPC BookE ranged breakpoints.
5055 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5056 * breakpoint.h (struct bp_target_info) <length>: New member
5058 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5059 instead of struct breakpoint as argument, and also add ASPACE
5060 and BP_ADDR arguments. Update all callers.
5061 (struct breakpoint_ops) <print_one_detail>: New method.
5062 (struct breakpoint) <addr_string_range_end>: New member variable.
5063 * breakpoint.c (breakpoint_location_address_match): Add function
5065 (insert_bp_location): Set bl->target_info.length.
5066 (breakpoint_here_p): Call breakpoint_location_address_match.
5067 (moribund_breakpoint_here_p): Likewise.
5068 (regular_breakpoint_inserted_here_p): Likewise.
5069 (breakpoint_thread_match): Likewise.
5070 (bpstat_stop_status): Likewise.
5071 (bpstat_check_location): Move call to
5072 breakpoint_ops.breakpoint_hit to the top.
5073 (print_one_breakpoint_location): Call
5074 breakpoint_ops.print_one_detail if available.
5075 (breakpoint_address_match_range): New function.
5076 (breakpoint_location_address_match): Likewise.
5077 (breakpoint_locations_match): Compare the length field of the
5079 (hw_breakpoint_used_count): Count resources used by all locations
5080 in a breakpoint, and use breakpoint_ops.resources_needed if
5082 (breakpoint_hit_ranged_breakpoint): New function.
5083 (resources_needed_ranged_breakpoint): Likewise.
5084 (print_it_ranged_breakpoint): Likewise.
5085 (print_one_ranged_breakpoint): Likewise.
5086 (print_one_detail_ranged_breakpoint): Likewise.
5087 (print_mention_ranged_breakpoint): Likewise.
5088 (print_recreate_ranged_breakpoint): Likewise.
5089 (ranged_breakpoint_ops): New structure.
5090 (find_breakpoint_range_end): New function.
5091 (break_range_command): Likewise.
5092 (delete_breakpoint): Free addr_string_range_end.
5093 (update_breakpoint_locations): Add SALS_END argument. Update
5094 all callers. Calculate breakpoint length if a non-zero SALS_END
5095 is given. Call breakpoint_locations_match instead of
5096 breakpoint_address_match.
5097 (reset_breakpoint): Find SaL of the end of the range if B is a
5099 (_initialize_breakpoint): Register break-range command.
5100 * defs.h (print_core_address): Add function prototype.
5101 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5103 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5104 (ppc_linux_remove_hw_breakpoint): Likewise.
5105 (_initialize_ppc_linux_nat): Initialize
5106 to_ranged_break_num_registers.
5107 * target.c (update_current_target): Add comment about
5108 to_ranged_break_num_registers.
5109 (target_ranged_break_num_registers): New function.
5110 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5112 (target_ranged_break_num_registers): Add function prototype.
5113 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5114 * utils.c (print_core_address): ... here.
5116 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5118 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5119 variable compiler warning.
5121 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5123 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5125 (re_set_breakpoint): ... to here ...
5126 (addr_string_to_sals): ... and here.
5128 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5130 * Makefile.in (SFILES): Add missing C sources.
5131 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5132 Add missing headers.
5134 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5136 * .gitignore: New file.
5138 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5140 * NEWS: Mention new cfi device simulation.
5142 2011-03-29 Tom Tromey <tromey@redhat.com>
5144 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5145 otherwise anonymous types.
5146 (dwarf2_name): Likewise.
5147 * valops.c (value_struct_elt_for_reference): Refine artificial
5148 type logic. Call error if j==-1.
5150 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5152 Fix false GCC warning.
5153 * infcall.c (find_function_addr): Initialize funaddr.
5155 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5157 Fix mingw compilation with --enable-targets=all.
5158 * remote-mips.c (gdb_usleep.h): Include header.
5159 (mips_enter_debug): Use gdb_usleep instead of sleep.
5161 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5163 Support resolution of STT_GNU_IFUNC via breakpoints.
5164 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5165 bp_gnu_ifunc_resolver_return.
5166 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5167 the loop. Support bp_gnu_ifunc_resolver and
5168 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5169 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5171 (bptype_string, print_one_breakpoint_location): Support
5172 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5173 (user_settable_breakpoint): Return true also for
5174 bp_gnu_ifunc_resolver.
5175 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5176 bp_gnu_ifunc_resolver_return.
5177 (set_breakpoint_location_function): New parameter explicit_loc,
5178 describe it. Call find_pc_partial_function_gnu_ifunc with new
5179 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5180 EXPLICIT_LOC is not set.
5181 (set_raw_breakpoint): Set EXPLICIT_LOC for
5182 set_breakpoint_location_function.
5183 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5184 set_breakpoint_location_function.
5185 (mention): Support bp_gnu_ifunc_resolver and
5186 bp_gnu_ifunc_resolver_return.
5187 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5188 set_breakpoint_location_function.
5189 (update_breakpoint_locations): Remove static.
5190 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5191 bp_gnu_ifunc_resolver_return.
5192 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5193 bp_gnu_ifunc_resolver_return.
5194 (update_breakpoint_locations): New declaration.
5195 * elfread.c: Include gdbthread.h and regcache.h.
5196 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5198 (elf_gnu_ifunc_fns): Install them.
5199 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5200 (stub_gnu_ifunc_resolver_return_stop): New functions.
5201 (stub_gnu_ifunc_fns): Install them.
5202 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5203 and gnu_ifunc_resolver_return_stop.
5204 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5206 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5208 STT_GNU_IFUNC reader implementation.
5209 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5210 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5211 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5212 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5213 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5214 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5215 (elf_gnu_ifunc_resolve_addr): New.
5216 (elf_symfile_read): Call elf_rel_plt_read.
5217 (elf_gnu_ifunc_fns): New.
5218 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5219 Install elf_gnu_ifunc_fns.
5220 * infcall.c (find_function_return_type): New function.
5221 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5222 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5223 (stub_gnu_ifunc_resolve_name): New functions.
5224 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5225 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5226 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5228 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5230 Code cleanup for later STT_GNU_IFUNC support.
5231 * infcall.c (find_function_addr): Remove variable code, use explicit
5232 dereferences for it. Move VALUE_TYPE initialization later.
5234 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5237 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5238 (clear_pc_function_cache): Clear it.
5239 (find_pc_partial_function): Rename to ...
5240 (find_pc_partial_function_gnu_ifunc): ... this function. New
5241 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5242 (find_pc_partial_function): New wrapper for this function.
5243 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5245 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 GDB internal type support for STT_GNU_IFUNC.
5248 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5249 (elf_symtab_read): Set mst_text_gnu_ifunc for
5250 BSF_GNU_INDIRECT_FUNCTION.
5251 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5252 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5253 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5254 nodebug_got_plt_symbol.
5255 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5256 (TYPE_GNU_IFUNC): New.
5257 (struct main_type): New field flag_gnu_ifunc.
5258 (struct builtin_type): New field builtin_func_func.
5259 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5260 nodebug_got_plt_symbol.
5261 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5262 (in_gnu_ifunc_stub): New.
5263 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5265 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5266 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5267 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5269 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5270 * symtab.c (search_symbols): Likewise.
5271 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5272 and mst_slot_got_plt.
5273 (in_gnu_ifunc_stub): New declaration.
5275 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5277 Support a ring of related breakpoints.
5278 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5279 other functions, add gdb_assert.
5280 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5281 watchpoint_del_at_next_stop.
5282 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5283 (bpstat_stop_status): Handle ring in related_breakpoint.
5284 (set_raw_breakpoint_without_location): Initialize ring in
5286 (delete_breakpoint): Handle ring in related_breakpoint, use
5287 watchpoint_del_at_next_stop.
5288 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5290 2011-03-28 Tom Tromey <tromey@redhat.com>
5293 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5294 with `language_minimal'.
5296 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5298 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5299 instead of checking for STT_ARM_TFUNC symbol type.
5301 2011-03-25 Tom Tromey <tromey@redhat.com>
5303 * linespec.c (symbol_found): Restore line-based result for
5304 non-LOC_LABEL symbols.
5306 2011-03-25 Kai Tietz <ktietz@redhat.com>
5308 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5309 instead of strcmp for comparison.
5310 (tui_source_is_displayed): Likewise.
5311 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5313 2011-03-24 Mark Wielaard <mjw@redhat.com>
5315 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5317 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5318 (find_partial_die_in_comp_unit): Likewise in comment.
5319 (read_attribute_value): Likewise.
5320 (lookup_die_type): Likewise.
5321 (dwarf_form_name): Likewise.
5322 (dump_die_shallow): Likewise.
5323 (follow_die_ref_or_sig): Likewise.
5325 2011-03-24 Tom Tromey <tromey@redhat.com>
5327 PR breakpoints/11816:
5328 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5329 (decode_compound): Update.
5330 (find_function_symbol): New function.
5331 (decode_dollar): Update.
5332 (decode_label): Add 'function_symbol' parameter. Handle
5333 function-relative labels.
5334 (decode_variable): Update.
5335 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5336 not its line. Set `special_display' and canonical name for
5339 2011-03-24 Tom Tromey <tromey@redhat.com>
5341 * linespec.h (struct linespec_result) <special_display>: New
5343 * breakpoint.h (struct breakpoint) <display_canonical>: New
5345 * breakpoint.c (print_breakpoint_location): Respect
5347 (create_breakpoint_sal): Add 'display_canonical' parameter.
5348 (create_breakpoints_sal): Update.
5349 (create_breakpoint): Update.
5351 2011-03-24 Tom Tromey <tromey@redhat.com>
5353 * symtab.c (decode_line_spec): Update.
5354 * linespec.c (build_canonical_line_spec): Change type of
5356 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5357 (find_method, decode_all_digits, decode_dollar, decode_label)
5358 (symbol_found): Likewise.
5359 (init_linespec_result): New function.
5360 * breakpoint.c (struct captured_parse_breakpoint_args)
5361 <canonical_p>: New field, replaces addr_string_p.
5362 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5364 (parse_breakpoint_sals): Likewise.
5365 (do_captured_parse_breakpoint): Update.
5366 (create_breakpoint): Use struct linespec_result.
5367 (until_break_command): Update.
5368 (breakpoint_re_set_one): Update.
5369 (decode_line_spec_1): Update.
5370 * linespec.h (struct linespec_result): New.
5371 (init_linespec_result): Declare.
5373 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5375 * regcache.c (regcache_raw_read): If the target didn't supply a
5376 given raw register, mark it as unavailable.
5378 2011-03-23 Kai Tietz <ktietz@redhat.com>
5380 * breakpoint.c (clear_command): Use filename_cmp
5381 instead of strcmp for comparison.
5382 * buildsym.c (watch_main_source_file_lossage): Likewise.
5383 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5384 checking just for slash.
5385 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5386 strrchr and filename_cmp instead of strcmp for filenames.
5387 (add_old_header_file): Use filename_cmp
5388 instead of strcmp for comparison.
5389 * exec.c (exec_set_section_address): Likewise.
5390 * macrotab.c (macro_lookup_inclusion): Likewise.
5391 (macro_lookup_inclusion): Likewise.
5392 * elfread.c (_initialize_elfread): Likewise.
5393 (elfstab_offset_sections): Likewise.
5394 (elfstab_offset_sections): Use lbasename instead of
5396 * mdebugread.c (parse_partial_symbols): Likewise.
5397 (arse_partial_symbols): Use filename_(n)cmp instead of
5398 str(n)cmp for comparison.
5399 * minsyms.c (lookup_minimal_symbol): Likewise.
5400 * psymtab.c (read_psymtabs_with_filename): Likewise.
5401 * solib.c (solib_read_symbols): Likewise.
5402 (reload_shared_libraries_1): Likewise.
5403 * symmisc.c (maintenance_print_symbols): Likewise.
5404 * symfile.c (separate_debug_file_exists): Likewise.
5405 (reread_symbols): Likewise.
5406 (find_separate_debug_file_by_debuglink): Likewise.
5407 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5408 * source.c (add_path): Likewise.
5409 * symtab.c (filename_seen): Likewise.
5410 (file_matches): Likewise.
5411 (print_symbol_info): Likewise.
5412 (maybe_add_partial_symtab_filename): Likewise.
5413 (make_source_files_completion_list): Likewise.
5414 * xml-syscall.c (init_sysinfo): Likewise.
5415 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5416 IS_DIR_SEPARATOR for checking for trailing path separator.
5418 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5420 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5421 label abort_expression.
5422 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5423 DWARF_VALUE_OPTIMIZED_OUT.
5425 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5428 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5429 to linkage_name. Invert its value. Update the function comment.
5430 (c_type_print_varspec_suffix): Invert it at the caller.
5431 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5433 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5435 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5436 errors when reading the `stop_pc'.
5437 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5440 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5442 * NEWS: Document gdb.Write stream keyword.
5444 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5447 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5448 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5449 (dwarf2_add_field): Fix new_field->accessibility for
5450 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5452 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5456 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5457 other error classes. Do not print stack trace.
5459 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5461 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5462 (dwarf2_add_field): Fix new_field->accessibility for
5463 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5465 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5467 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5468 encountering a load via a non-SP register.
5470 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5472 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5473 field in returned unwinder.
5475 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5477 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5479 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5481 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5484 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5486 * frame.c (frame_unwind_register): Throw an error if unwinding the
5488 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5489 an unwind stop reason.
5490 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5491 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5492 UNWIND_UNAVAILABLE>: New.
5493 * inline-frame.c (inline_frame_unwind): Install
5494 default_frame_unwind_stop_reason.
5495 * frame-unwind.c: Include "exceptions.h".
5496 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5497 (default_frame_unwind_stop_reason): New.
5498 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5499 (default_frame_unwind_stop_reason): Declare.
5500 (struct frame_unwind) <stop_reason>: New function pointer.
5502 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5503 * dwarf2-frame.c: Include exceptions.h.
5504 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5505 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5506 computing the CFA. If such an error was thrown, set
5507 unavailable_retaddr.
5508 (dwarf2_frame_unwind_stop_reason): New.
5509 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5511 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5512 (dwarf2_signal_frame_unwind): Ditto.
5514 * amd64-tdep.c: Include "exceptions.h".
5515 (struct amd64_frame_cache): New field "base_p".
5516 (amd64_init_frame_cache): Clear it.
5517 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5518 Avoid reading registers with functions that throw if the register
5519 is not necessary to compute the frame base.
5520 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5521 swallowing NOT_AVAILABLE_ERROR.
5522 (amd64_frame_unwind_stop_reason): New.
5523 (amd64_frame_this_id): Don't build a frame id if the frame base
5525 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5526 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5527 base_p if the frame base was computable.
5528 (amd64_sigtramp_frame_unwind_stop_reason): New.
5529 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5530 frame base was unavailable.
5531 (amd64_sigtramp_frame_unwind): Install
5532 amd64_sigtramp_frame_unwind_stop_reason.
5533 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5534 base_p if the frame base was computable.
5535 (amd64_epilogue_frame_unwind_stop_reason): New.
5536 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5537 frame base was unavailable.
5538 (amd64_epilogue_frame_unwind): Install
5539 amd64_epilogue_frame_unwind_stop_reason.
5540 * i386-tdep.c: Include "exceptions.h".
5541 (struct i386_frame_cache): New field "base_p".
5542 (i386_init_frame_cache): Clear it.
5543 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5544 Avoid reading registers with functions that throw if the register
5545 is not necessary to compute the frame base.
5546 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5547 swallowing NOT_AVAILABLE_ERROR.
5548 (i386_frame_unwind_stop_reason): New.
5549 (i386_frame_this_id): Don't build a frame id if the frame base was
5551 (i386_frame_prev_register): Handle unavailable SP.
5552 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5553 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5554 base_p if the frame base was computable.
5555 (i386_epilogue_frame_unwind_stop_reason): New.
5556 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5557 base was unavailable.
5558 (i386_epilogue_frame_unwind): Install
5559 i386_epilogue_frame_unwind_stop_reason.
5560 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5561 base_p if the frame base was computable.
5562 (i386_sigtramp_frame_unwind_stop_reason): New.
5563 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5564 base was unavailable.
5565 (i386_sigtramp_frame_unwind): Install
5566 i386_sigtramp_frame_unwind_stop_reason.
5567 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5568 type's size, not the register's.
5569 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5571 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5572 default_frame_unwind_stop_reason.
5573 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5574 (alpha_heuristic_frame_unwind): Ditto.
5575 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5576 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5577 * avr-tdep.c (avr_frame_unwind): Ditto.
5578 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5580 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5581 * frv-tdep.c (frv_frame_unwind): Ditto.
5582 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5583 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5584 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5585 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5586 (hppa_stub_frame_unwind): Ditto.
5587 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5588 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5589 (ia64_libunwind_frame_unwind)
5590 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5591 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5592 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5593 * m32c-tdep.c (m32c_unwind): Ditto.
5594 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5595 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5596 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5597 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5598 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5599 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5600 * mep-tdep.c (mep_frame_unwind): Ditto.
5601 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5602 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5603 (mips_stub_frame_unwind): Ditto.
5604 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5605 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5606 * mt-tdep.c (mt_frame_unwind): Ditto.
5607 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5608 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5609 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5610 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5611 (s390_sigtramp_frame_unwind): Ditto.
5612 * score-tdep.c (score_prologue_unwind): Ditto.
5613 * sh-tdep.c (sh_frame_unwind): Ditto.
5614 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5615 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5616 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5617 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5618 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5619 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5620 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5621 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5622 (sparc64obsd_trapframe_unwind): Ditto.
5623 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5624 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5625 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5626 * v850-tdep.c (v850_frame_unwind): Ditto.
5627 * vax-tdep.c (vax_frame_unwind): Ditto.
5628 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5629 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5630 * xtensa-tdep.c (xtensa_unwind): Ditto.
5632 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5634 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5635 there's always a frame. Use get_frame_pc_if_available instead of
5636 get_frame_pc, and if there's no PC available, don't look up a
5639 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5641 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5644 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5646 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5649 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5651 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5652 * frame.c (frame_unwind_caller_pc_if_available): New.
5653 * stack.c (frame_info): Handle unavailable PC.
5655 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5657 * frame.c (frame_unwind_pc): Rename to ...
5658 (frame_unwind_pc_if_available): ... this. New `pc' output
5659 parameter. Change return type to int. Gracefully handle
5660 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5661 happened, or 1 otherwise.
5662 (frame_unwind_pc): Reimplement on top of
5663 frame_unwind_pc_if_available.
5664 (get_frame_func): Rename to ...
5665 (get_frame_func_if_available): New `pc' output parameter. Change
5666 return type to int. Gracefully handle the PC not being available.
5667 (get_frame_func): Reimplement on top of
5668 get_frame_func_if_available.
5669 (select_frame): Handle the PC being unavailable.
5670 (get_prev_frame): Handle the PC being unavailable.
5671 (get_frame_pc_if_available): New.
5672 (get_frame_address_in_block_if_available): New.
5673 (find_frame_sal): Handle the frame PC not being available.
5674 * frame.h (get_frame_pc_if_available): Declare.
5675 (get_frame_address_in_block_if_available): Declare.
5676 (get_frame_func_if_available): Declare.
5677 * stack.c (print_frame_info): Handle the PC being unavailable.
5678 (find_frame_funname): Ditto.
5679 (print_frame): Handle the PC being unavailable.
5680 (get_frame_language): Ditto.
5681 * blockframe.c (get_frame_block): Ditto.
5682 * macroscope.c (default_macro_scope): Ditto.
5683 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5685 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5687 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5688 NOT_AVAILABLE_ERROR when evaluating the location expression.
5690 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5692 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5693 returning that the register piece is unavailable/optimized out.
5694 (write_pieced_value): Handle get_frame_register_bytes returning
5695 that the register piece is unavailable/optimized out when doing a
5696 read-modify write of a bitfield.
5697 * findvar.c (value_from_register): Handle get_frame_register_bytes
5698 returning that the register piece is unavailable/optimized out.
5699 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5700 and `unavailablep'. Throw error on bad debug info. Use
5701 frame_register instead of frame_register_read, to fill in the new
5703 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5705 * valops.c: (value_assign): Adjust, and handle
5706 get_frame_register_bytes failing.
5707 * spu-tdep.c: Include exceptions.h.
5708 (spu_software_single_step): Adjust, and handle
5709 get_frame_register_bytes failing.
5710 (spu_get_longjmp_target): Ditto.
5711 * gdbarch.sh (register_to_value): Change to return int. New
5712 parameters `optimizedp' and `unavailablep'.
5713 * gdbarch.h, gdbarch.c: Regenerate.
5714 * i386-tdep.c (i386_register_to_value): Adjust to new
5715 gdbarch_register_to_value interface.
5716 * i387-tdep.c (i387_register_to_value): Ditto.
5717 * i387-tdep.h (i387_register_to_value): Ditto.
5718 * alpha-tdep.c (alpha_register_to_value): Ditto.
5719 * ia64-tdep.c (ia64_register_to_value): Ditto.
5720 * m68k-tdep.c (m68k_register_to_value): Ditto.
5721 * mips-tdep.c (mips_register_to_value): Ditto.
5722 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5724 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5726 * findvar.c (value_of_register): Mark the value as unavailable, if
5727 the register is unavailable.
5728 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5729 (frame_register): New `unavailablep' parameter.
5730 (frame_register_read): Update comment.
5731 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5732 Set it if the register is unavailable. If the register is
5733 unavailable, clear the output buffer.
5734 (frame_register): New `unavailablep' parameter. Pass it down.
5735 (frame_unwind_register): Adjust.
5736 (put_frame_register): Adjust.
5737 (frame_register_read): Adjust. Also return false if the register
5739 (frame_register_unwind_location): Adjust.
5740 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5741 is unavailable, mark the value accordingly.
5742 * stack.c (frame_info): Handle unavailable registers.
5744 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5746 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5747 simplify, using regcache_cooked_read.
5749 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5751 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5752 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5753 (regcache_raw_read_unsigned, regcache_raw_read_part)
5754 (regcache_cooked_read, regcache_cooked_read_signed)
5755 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5756 (regcache_cooked_read_ftype): Change return to enum
5758 * regcache.c: Include exceptions.h
5759 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5760 (do_cooked_read): Change return to enum register_status. Always
5761 forward to regcache_cooked_read.
5762 (regcache_raw_read): Change return to enum register_status. If
5763 the register is not REG_VALID, memset the buffer. Return the
5765 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5766 return the register's status.
5767 (regcache_raw_read_unsigned): Ditto.
5768 (regcache_cooked_read): Change return to enum register_status.
5769 Assert that with read-only regcaches, the register's status must
5770 be known. If the regcache is read-only, and the register is not
5771 REG_VALID, memset the buffer. Return the register's status.
5772 (regcache_cooked_read_signed): Change return to enum
5773 register_status. Handle non-REG_VALID registers and return the
5775 (regcache_cooked_read_unsigned): Change return to enum
5776 register_status. Handle non-REG_VALID registers and return the
5778 (regcache_xfer_part, regcache_raw_read_part)
5779 (regcache_cooked_read_part): Change return to enum
5780 register_status. Return the register's status.
5781 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5783 (regcache_dump): Handle unavailable cooked registers.
5784 * frame.c (do_frame_register_read): Adjust interface to match
5785 regcache_cooked_read_ftype.
5786 * gdbarch.sh (pseudo_register_read): Change return to enum
5788 * gdbarch.h, gdbarch.c: Regenerate.
5790 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5792 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5793 register_status. If reading a raw register indicates the raw
5794 register is not valid, return the raw register's status,
5795 otherwise, return REG_VALID.
5796 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5797 register_status. Handle non-REG_VALID raw registers and return
5798 the register's status.
5799 * arm-tdep.c (arm_neon_quad_read)
5800 (arm_pseudo_read): Change return to enum register_status. Handle
5801 non-REG_VALID raw registers and return the register's status.
5802 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5803 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5804 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5805 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5806 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5808 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5809 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5810 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5811 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5812 (m32c_pseudo_register_read): Change return to enum
5813 register_status. Adjust.
5814 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5815 enum register_status. Return the register's status.
5816 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5817 register_status. Return the register's status.
5818 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5819 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5820 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5821 * rs6000-tdep.c (move_ev_register_func): New typedef.
5822 (e500_move_ev_register): Use it. Change return to enum
5823 register_status. Return the register's status.
5824 (do_regcache_raw_read): New function.
5825 (do_regcache_raw_write): New function.
5826 (e500_pseudo_register_read): Change return to enum
5827 register_status. Return the register's status. Use
5828 do_regcache_raw_read.
5829 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5830 (dfp_pseudo_register_read): Change return to enum register_status.
5831 Return the register's status.
5832 (vsx_pseudo_register_read): Ditto.
5833 (efpr_pseudo_register_read): Ditto.
5834 (rs6000_pseudo_register_read): Ditto.
5835 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5836 register_status. Return the register's status.
5837 * sh64-tdep.c (pseudo_register_read_portions): New function.
5838 (sh64_pseudo_register_read): Change return to enum
5839 register_status. Use pseudo_register_read_portions. Return the
5841 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5842 register_status. Return the register's status.
5843 * sh-tdep.c (pseudo_register_read_portions): New function.
5844 (sh_pseudo_register_read): Change return to enum register_status.
5845 Use pseudo_register_read_portions. Return the register's status.
5846 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5847 enum register_status. Return the register's status.
5848 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5849 * spu-tdep.c (spu_pseudo_register_read_spu)
5850 (spu_pseudo_register_read): Ditto.
5851 * xtensa-tdep.c (xtensa_register_read_masked)
5852 (xtensa_pseudo_register_read): Ditto.
5853 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5855 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5857 * python/py-value.c (valpy_getitem): Fix formatting of error function
5860 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5862 ARI fixes: Add missing internationalization markups throughout
5864 * darwin-nat-info.c: Ditto.
5867 * mi/mi-main.c: Ditto.
5869 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5871 ARI fixes: Add missing internationalization markups throughout
5874 * cp-name-parser.y: Ditto.
5877 * objc-exp.y: Ditto.
5880 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5882 ARI fixes: Messages should have no trailing new lines.
5883 * darwin-nat.c (mach_check_error): Remove trailing new line from
5884 warning function call message.
5885 * record.c (bfdcore_read): Idem for error call.
5887 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5889 * common/signals.c (target_signal_from_host): Add _ markup to error
5890 function call message.
5891 (target_signal_to_host): Add _ markup and remove trailing new line
5892 from warning call message.
5893 (target_signal_from_command): Add _ markup to error function call
5896 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5900 * python/python.c (gdbpy_write): Accept a stream argument and
5901 operate to the appropriate stream.
5902 (gdbpy_flush): Likewise.
5903 (_initialize_python): Add stream constants.
5904 (finish_python_initialization): Add GdbOutputErrorFile class.
5906 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5908 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5910 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5912 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5913 to store_signed_integer. Add debug message when relocating CALL
5914 instructions. Fix formatting of debug message.
5915 * i386-tdep.c (i386_relocate_instruction): Ditto.
5917 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5919 * target.h (struct target_ops): Remove to_lookup_symbol field.
5920 (target_lookup_symbol): Delete macro.
5921 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5922 (update_current_target, setup_target_debug): Remove handling
5923 of to_lookup_symbol target_ops field.
5924 * ada-tasks.c (get_known_tasks_addr): Remove use of
5925 target_lookup_symbol.
5926 * coffread.c (coff_symtab_read): Likewise.
5927 * dbxread.c (read_dbx_symtab): Ditto.
5929 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5932 * configure.ac: Add getthrds declaration check.
5933 * configure, config.in: Regenerate.
5934 * aix-thread.c (getthrds): Declare only if not already declared
5935 in procinfo.h. More declaration out of get_signaled_thread to
5938 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5940 * python/py-symtab.c: Populate symtab_object_methods,
5942 (stpy_is_valid): New function.
5943 (salpy_is_valid): Ditto.
5944 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5945 (sympy_is_valid): New function.
5946 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5947 (objfpy_is_valid): New function.
5948 * python/py-inferior.c: Populate inferior_object_methods.
5949 (infpy_is_valid): New function.
5950 * python/py-infthread.c: Populate thread_object_methods.
5951 (thpy_is_valid): New function.
5952 * python/py-block.c: Declare block_object_methods. Populate. Declare
5953 block_iterator_object_methods. Populate.
5954 (blpy_is_valid): New function.
5955 (blpy_iter_is_valid): Ditto.
5957 2011-03-16 Keith Seitz <keiths@redhat.com>
5959 * linespec.c (find_methods): Canonicalize NAME before looking
5961 (name_end): New function.
5962 (keep_name_info): New function.
5963 (decode_line_1): Use keep_name_info.
5964 (decode_compound): Likewise.
5965 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5966 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5969 * linespec.c (locate_first_half): Keep overload information, too.
5970 (decode_compound): Use a string to represent break characters
5972 If P points to a break character, do not increment it.
5973 For C++ and Java, keep overload information and relevant keywords.
5974 If we cannot find a symbol, search the minimal symbols.
5977 * linespec.c (decode_compound): Rename SAVED_ARG to
5979 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5981 Pass a valid block to lookup_symbol.
5982 (lookup_prefix_sym): Likewise.
5983 (find_method): Construct search name based on SYM_CLASS instead
5985 * psymtab.c (lookup_partial_symbol): Add language parameter.
5986 (lookup_symbol_aux_psymtabs): Likewise.
5987 Don't assume that the psymtab we found was the right one. Search
5988 for the desired symbol in the symtab to be certain.
5989 (psymtab_search_name): New function.
5990 (lookup_partial_symbol): Use psymtab_search_name.
5991 Add language parameter.
5992 (read_symtabs_for_function): Add language parameter and pass to
5993 lookup_partial_symbol.
5994 (find_symbol_file_from_partial): Likewise.
5996 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5999 * dwarf2read.c (noop_record_line): New function.
6000 (dwarf_decode_lines): Ignore line tables for GCd functions.
6002 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6004 Fix ARI warnings about new lines at the end of messages, which
6005 are unneeded as there is a new line added at the end of the message
6007 * darwin-nat.c (darwin_stop_inferior): Ditto.
6008 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6009 * dfp.c (decimal_to_number): Ditto.
6010 * exec.c (print_section_info): Ditto.
6011 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6012 * osdata.c (get_osdata): Ditto.
6013 * record.c (bfdcore_write): Ditto.
6014 * remote-mips.c (mips_readchar): Ditto.
6015 * remote.c (read_ptid): Ditto.
6016 * ser-mingw.c (ser_windows_raw): Ditto.
6017 * tracepoint.c (add_local_symbols): Ditto.
6018 * windows-nat.c (fake_create_process): Ditto.
6020 2011-03-16 Tom Tromey <tromey@redhat.com>
6022 * tracepoint.c (stop_tracing): Don't declare.
6023 * event-top.c (after_char_processing_hook): Add `(void)'.
6025 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6027 * NEWS: Add Parameter sub-classing description.
6029 2011-03-16 Kai Tietz <ktietz@redhat.com>
6031 * MAINTAINERS: Update my e-mail address.
6033 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6035 * MAINTAINERS: Add myself for write after approval privileges.
6037 2011-03-15 Michael Snyder <msnyder@vmware.com>
6039 * frame.c (find_frame_sal): Assert sym is not null.
6041 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6043 * objc-lang.c (selectors_info): Check strchr for null result.
6045 * stabsread.c (define_symbol): Guard against bad stabstring input.
6047 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6049 Remove trailing spaces and tabulations from pascal language
6054 p-valprint.c: Ditto.
6056 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6058 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6059 than LOW. Comment it.
6060 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6061 HIGHPC not strictly higher than LOWPC.
6063 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6065 Fix formatting of function declarations returning a pointer in
6067 * varobj.c (varobj_add_child): Ditto.
6068 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6069 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6071 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6073 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6074 for the "generic" vector ABI used with GCC 4.3 and later.
6075 (ppc64_sysv_abi_return_value): Likewise.
6077 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6079 * infcall.c (call_function_by_hand): Function return value is
6080 always a non_lval, even when using struct_return.
6082 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6084 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6085 (map_display_numbers): New.
6086 (do_delete_display): New.
6087 (undisplay_command): Use map_display_numbers.
6088 (do_enable_disable_display): New.
6089 (enable_disable_display_command): New function.
6090 (enable_display): Delete.
6091 (enable_display_command): New.
6092 (disable_display_command): Reimplement.
6093 (_initialize_printcmd): Adjust "enable display" command to use
6094 `enable_display_command' as callback.
6096 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6098 * NEWS: Add Python breakpoint 'stop' operation.
6100 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6102 * NEWS: Delete duplicate entry. Fix typo.
6104 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6106 Fix ARI warning about function names in first column.
6107 Put prototype declaration on same line as return type.
6108 * objc-exp.y: Ditto.
6110 * python/py-stopevent.h: Ditto.
6111 For long function names, split parameters to
6112 allow function name on same line as return type.
6113 * solib-pa64.c: Ditto.
6116 For long function declaration, use single line.
6117 * hppa-tdep.h: Ditto.
6118 * inferior.h: Ditto.
6120 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6122 * python/python.h: Declare gdbpy_should_stop and
6123 gdbpy_breakpoint_has_py_cond.
6124 * python/python.c: Add python.h to includes. Remove python.h from
6125 HAVE_PYTHON definition
6126 (gdbpy_should_stop): New dummy function.
6127 (gdbpy_breakpoint_has_py_cond): New dummy function.
6128 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6129 sub-classing capabilities.
6130 (gdbpy_should_stop): New function.
6131 (gdbpy_breakpoint_has_py_cond): New function.
6132 (local_setattro): New function.
6133 * breakpoint.c (condition_command): Add check for Python 'stop'
6135 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6136 operation function as part of stop/continue tests.
6138 2011-03-14 Tom Tromey <tromey@redhat.com>
6141 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6142 (needs_frame_dwarf_call): Likewise.
6144 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6146 Fix ARI warning about functions without parameters that do not
6148 * breakpoint.c (all_tracepoints): Replace () by (void).
6149 * f-exp.y (match_string_literal): Ditto.
6151 * m2-exp.y (yylex): Ditto.
6152 * mep-tdep.c (current_me_module): Ditto.
6153 (current_options): Ditto.
6154 (current_cop_data_bus_width): Ditto.
6155 (current_cr_names): Ditto.
6156 (current_cr_is_float): Ditto.
6157 (current_ccr_names): Ditto.
6158 * objc-exp.y (yylex): Ditto.
6159 * p-exp.y (yylex): Ditto.
6160 * remote.c (send_interrupt_sequence): Ditto.
6161 * tracepoint.c (current_trace_status): Ditto.
6162 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6163 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6165 2011-03-11 Michael Snyder <msnyder@vmware.com>
6167 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6168 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6169 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6170 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6171 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6173 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6174 (delete_async_event_handler): Ditto.
6176 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6178 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6180 * top.c (set_verbose): Assert showcmd was found.
6182 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6184 * xtensa-tdep.c (warning_once): Correct style issues.
6186 2011-03-11 Yao Qi <yao@codesourcery.com>
6188 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6190 2011-03-11 Andreas Schwab <schwab@redhat.com>
6192 * common/aclocal.m4: Remove.
6194 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6196 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6197 (xtensa_write_register, xtensa_read_register): Likewise.
6198 (xtensa_hextochar): Removed.
6199 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6201 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6203 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6204 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6205 (xtensa_alloc_frame_cache): Add initialization for new fields.
6206 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6207 (warning_once): New function.
6208 (xtensa_insn_kind): New item c0opc_and.
6209 (call0_classify_opcode): Add the case for AND instruction.
6210 (call0_track_op): Change arguments. New local variable litbase.
6211 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6212 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6214 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6215 (call0_analyze_prologue): Update the comments. Change arguments.
6216 Add the variety of updates to handle extended prologues, which now can
6217 conduct dynamic stack adjustments.
6218 (call0_frame_cache): Likewise.
6219 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6220 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6222 2011-03-10 Michael Snyder <msnyder@vmware.com>
6224 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6225 (cmd_qtframe): Ditto.
6226 (cmd_qtbuffer): Ditto.
6227 (cmd_bigqtbuffer): Ditto.
6229 2011-03-10 Tom Tromey <tromey@redhat.com>
6231 * tracepoint.c (trace_actions_command): Update.
6232 * thread.c (thread_apply_command): Update.
6233 * reverse.c (delete_bookmark_command): Update.
6234 (bookmarks_info): Update.
6235 * printcmd.c (undisplay_command): Update.
6236 * memattr.c (mem_enable_command): Update.
6237 (mem_disable_command): Update.
6238 (mem_delete_command): Update.
6239 * inferior.c (detach_inferior_command): Update.
6240 (kill_inferior_command): Update.
6241 (remove_inferior_command): Update.
6242 * cli/cli-utils.h (struct get_number_or_range_state): New.
6243 (init_number_or_range): Declare.
6244 (get_number_or_range): Update.
6245 * cli/cli-utils.c (init_number_or_range): New function.
6246 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6248 (number_is_in_list): Update.
6249 * breakpoint.h (get_tracepoint_by_number): Update.
6250 * breakpoint.c (map_breakpoint_numbers): Update for change to
6251 get_number_or_range.
6252 (find_location_by_number): Use get_number, not
6253 get_number_or_range.
6254 (trace_pass_set_count): New function.
6255 (trace_pass_command): Update for change to get_number_or_range.
6257 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6260 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6262 * python/py-param.c (add_setshow_generic): Add set/show callback
6263 parameters. Register Python object context.
6264 (get_show_value): New function.
6265 (get_set_value): New function.
6266 (call_doc_function): New function.
6267 (get_doc_string): Move behind get_show_value/get_set_value.
6269 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6271 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6273 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6275 * xtensa-tdep.c (xtensa_read_register): Add comment.
6276 (xtensa_write_register): Likewise.
6277 (xtensa_hextochar): Add comment and update to match coding conventions.
6278 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6279 (execute_l32e, execute_s32e, execute_code): Update comments.
6280 (xtensa_exception_handler_t): Update to match coding conventions.
6281 (xtensa_insn_kind): Likewise.
6283 2011-03-09 Michael Snyder <msnyder@vmware.com>
6285 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6287 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6289 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6291 2011-03-09 Tom Tromey <tromey@redhat.com>
6293 * thread.c (restore_selected_frame): Handle frame_level == -1.
6294 (make_cleanup_restore_current_thread): Use
6295 get_selected_frame_if_set.
6296 * frame.h (get_selected_frame_if_set): Declare.
6297 * frame.c (get_selected_frame_if_set): New function.
6299 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6301 * cli/cli-cmds.c (shell_escape): Use lbasename.
6302 * coffread.c (coff_start_symtab): Constify parameter.
6303 (complete_symtab): Constify `name' parameter.
6304 (coff_symtab_read): Constify `filestring' local.
6305 (coff_getfilename): Constify return and `result' local.
6307 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6308 * linux-fork.c (info_checkpoints_command): Use lbasename.
6309 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6310 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6311 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6312 * procfs.c (procfs_make_note_section): Use lbasename.
6313 * tui/tui-io.c (printable_part): Constity return and parameter.
6315 (print_filename): Constify parameters, and local `s'.
6316 (tui_rl_display_match_list): Constify local `temp'.
6318 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6321 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6322 Fix DWARF-3+ DW_AT_accessibility default assumption.
6323 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6324 cu->header.version >= 3.
6326 2011-03-09 Yao Qi <yao@codesourcery.com>
6328 * common/Makefile.in: Remove.
6329 * common/configure: Remove.
6330 * common/configure.ac: Remove.
6332 2011-03-09 Yao Qi <yao@codesourcery.com>
6335 2011-02-11 Yao Qi <yao@codesourcery.com>
6337 * common/Makefile.in: Add copyright header.
6339 2011-02-11 Yao Qi <yao@codesourcery.com>
6341 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6343 * configure.ac: Add common to sub dir.
6344 * configure: Regenerate.
6346 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6348 * xtensa-tdep.c (call0_ret): New function.
6349 (xtensa_skip_prologue): Speed up analysis.
6351 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6353 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6354 while executing MI command -data-list-changed-registers.
6356 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6358 * xtensa-tdep.c (xtensa_read_register): New function.
6359 (xtensa_write_register): New function.
6360 (xtensa_find_register_by_name): New function.
6361 (xtensa_windowed_frame_cache): Update comments in type description.
6362 (xtensa_frame_cache): Likewise.
6363 (xtensa_window_interrupt_insn): New function.
6364 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6365 (xtensa_insn_kind): Add new instructions.
6366 (rwx_special_register): New function.
6367 (call0_classify_opcode): Add new instructions to the analysis.
6368 (a0_saved, a7_saved, a11_saved): New variables.
6369 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6370 (execute_l32e): New function.
6371 (execute_s32e): New function.
6372 (xtensa_exception_handler_t): New type.
6373 (execute_code): New function.
6374 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6375 analysis for Xtensa Window Exception handlers.
6377 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6379 * xtensa-tdep.c (TX_PS): New.
6380 (windowing_enabled): Update to count for Call0 ABI.
6381 (xtensa_hextochar): New.
6382 (xtensa_init_reggroups): Make algorithm generic.
6383 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6385 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6387 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6389 2011-03-08 Michael Snyder <msnyder@vmware.com>
6391 * i386-tdep.c (i386_follow_jump): Check return value of
6393 (i386_analyze_struct_return): Ditto.
6394 (i386_skip_probe): Ditto.
6395 (i386_match_insn): Ditto.
6396 (i386_skip_noop): Ditto.
6397 (i386_analyze_frame_setup): Ditto.
6398 (i386_analyze_register_saves): Ditto.
6399 (i386_skip_prologue): Ditto.
6400 (i386_skip_main_prologue): Ditto.
6402 * target.c (read_whatever_is_readable): Fix memory leak.
6404 * i386-tdep.c (i386_process_record): Document fall through.
6406 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6408 Fix DWARF-3+ DW_AT_accessibility default assumption.
6409 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6410 cu->header.version >= 3.
6412 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6414 * remote.c (remote_check_symbols): Skip if the target has no
6417 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6419 * target.c (read_whatever_is_readable): Reformat comment,
6420 with a minor typo fix. Minor reformatting of the code.
6422 2011-03-08 Yao Qi <yao@codesourcery.com>
6424 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6425 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6426 Use cached result instead of calling displaced_in_arm_mode again.
6427 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6428 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6429 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6430 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6431 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6432 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6433 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6434 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6435 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6436 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6437 (arm_catch_kernel_helper_return): Likewise.
6438 * gdb/arm-tdep.h : Update function declarations.
6440 2011-03-07 Michael Snyder <msnyder@vmware.com>
6442 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6444 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6446 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6448 * elfread.c (elf_symtab_read): Stop memory leak.
6450 * main.c (captured_main): Fix memory leak.
6452 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6454 * ada-lang.c (compare_names): Call is_name_suffix with string1
6457 2011-03-07 Tom Tromey <tromey@redhat.com>
6459 * xcoffread.c (xcoff_sym_fns): Update.
6460 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6461 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6462 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6463 (symbol_file_add_with_addrs_or_offsets): Likewise.
6464 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6465 * somread.c (som_sym_fns): Update.
6466 * psymtab.h (require_partial_symbols): Declare.
6467 * psymtab.c (require_partial_symbols): New function.
6468 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6469 (ALL_OBJFILE_PSYMTABS): Undef.
6470 (ALL_PSYMTABS): Move from psympriv.h.
6471 (lookup_partial_symtab, find_pc_sect_psymtab)
6472 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6473 (find_last_source_symtab_from_partial)
6474 (forget_cached_source_info_partial)
6475 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6476 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6477 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6478 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6479 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6480 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6481 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6482 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6483 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6485 * mipsread.c (ecoff_sym_fns): Update.
6486 * machoread.c (macho_sym_fns): Update.
6487 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6488 (read_psyms): New function.
6489 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6490 (elf_sym_fns_lazy_psyms): New global.
6491 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6492 dwarf2_build_psymtabs.
6493 * dbxread.c (aout_sym_fns): Update.
6494 * coffread.c (coff_sym_fns): Update.
6496 2011-03-07 Tom Tromey <tromey@redhat.com>
6498 * infrun.c (print_exited_reason): Include inferior id and pid in
6501 2011-03-07 Tom Tromey <tromey@redhat.com>
6503 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6505 (target_has_execution_1): Update.
6506 (target_has_execution_current): Declare.
6507 (target_has_execution): Call target_has_execution_current.
6508 (default_child_has_execution): Update.
6509 * target.c (default_child_has_execution): Add 'the_ptid'
6511 (target_has_execution_1): Likewise.
6512 (target_has_execution_current): New function.
6513 (add_target): Update.
6514 (init_dummy_target): Update.
6515 * remote-m32r-sdi.c (m32r_has_execution): New function.
6516 (init_m32r_ops): Use it.
6517 * record.c (record_core_has_execution): Now static. Add
6518 'the_ptid' parameter.
6519 * inferior.c (have_live_inferiors): Don't save current thread.
6520 Use target_has_execution_1.
6522 2011-03-07 Yao Qi <yao@codesourcery.com>
6524 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6526 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6528 * elfread.c (elf_symtab_read): Minor reformatting.
6530 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6532 * objc-lang.c (selectors_info): Minor reformatting.
6534 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6536 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6538 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6539 Michael Snyder <msnyder@vmware.com>
6541 * ada-valprint.c (ada_val_print_array): Move the declaration of
6542 "byte_order" and "elttype" inside the block where these variables
6543 are actually used. Remove some special handling for the case
6544 where "elttype" and "eltlen" are null. Replace by a comment
6545 and a couple of assertion checks.
6547 2011-03-05 Michael Snyder <msnyder@vmware.com>
6549 * source.c (add_path): Replace semicolon at end of block.
6550 * dwarf2expr.c (execute_stack_op): Ditto.
6552 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6554 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6555 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6556 (bfin-*-*): Likewise.
6558 2011-03-05 Michael Snyder <msnyder@vmware.com>
6560 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6561 * mdebugread.c (parse_symbol): Ditto.
6562 * parse.c (parse_exp_in_context): Ditto.
6563 * source.c (add_path): Ditto.
6564 * utils.c (gnu_debuglink_crc32): Ditto.
6565 * varobj.c (variable_language): Ditto.
6567 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6569 2011-03-04 Michael Snyder <msnyder@vmware.com>
6571 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6573 * symfile.c (simple_overlay_update): Check for null return value
6574 from lookup_minimal_symbol.
6576 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6578 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6580 * eval.c (parse_and_eval_address_1): Remove function.
6581 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6582 instead of parse_and_eval_address_1.
6583 * value.h (parse_and_eval_address_1): Remove prototype.
6585 2011-03-04 Michael Snyder <msnyder@vmware.com>
6587 * remote.c (putpkt_binary): Document that case stmt falls through.
6589 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6591 * breakpointc (print_it_typical): Move NULL check from here...
6592 (print_bp_stop_message): ... to here.
6594 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6596 * breakpoint.c (enable_command): Use break instead of continue,
6597 and fill in a missing break.
6598 (disable_command): Ditto.
6600 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6602 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6603 (terminal_save_ours): Remove misleading comment.
6604 (inflow_inferior_data_cleanup): Free ttystate.
6605 (inflow_inferior_exit): Likewise.
6606 (copy_terminal_info): Copy ttystate.
6608 * serial.c (serial_copy_tty_state): New function.
6609 * serial.h (serial_copy_tty_state): Add prototype.
6610 (struct serial_ops): Add copy_tty_state callback.
6611 * ser-base.c (ser_base_copy_tty_state): New function.
6612 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6613 * ser-go32.c (dos_copy_tty_state): New function.
6614 (dos_ops): Install copy_tty_state callback.
6615 * ser-mingw.c (_initialize_ser_windows): Likewise.
6616 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6617 * ser-unix.c (hardwire_copy_tty_state): New function.
6618 (_initialize_ser_hardwire): Install it.
6620 2011-03-04 Michael Snyder <msnyder@vmware.com>
6622 * breakpoint.c (create_breakpoint): Add missing break statement.
6624 Reverting this patch:
6625 * infcall.c (call_function_by_hand): Add break statements for lint.
6627 Reverting this patch:
6628 * cli/cli-script.c (script_from_file): Add break for lint.
6630 2011-03-04 Michael Snyder <msnyder@vmware.com>
6632 * solib.c (reload_shared_libraries_1): Close memory leak.
6634 2011-03-03 Tom Tromey <tromey@redhat.com>
6637 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6640 2011-03-03 Michael Snyder <msnyder@vmware.com>
6642 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6643 fields of struct 'st' to zero.
6645 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6646 sal.pspace before calling set_current_source_symtab_and_line.
6648 2011-03-03 Yao Qi <yao@codesourcery.com>
6650 * Makefile.in (configure-common): Remove. Let Makefile
6651 in dir common to rebuild itself.
6652 (common/Makefile): Likewise.
6654 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6656 * utils.c (parse_escape): Add i18n markup in error message.
6658 2011-03-03 Yao Qi <yao@codesourcery.com>
6660 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6662 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6663 (displaced_write_reg, displaced_read_reg): Likewise.
6664 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6665 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6666 (cleanup_branch): Replace magic number 14 and 15 with
6667 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6669 2011-03-02 Michael Snyder <msnyder@vmware.com>
6671 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6673 * cli/cli-script.c (script_from_file): Add break for lint.
6675 * mdebugread.c (parse_partial_symbols): Fix indent.
6677 * target-descriptions.c (tdesc_gdb_type): No need to call
6678 xstrdup, callee saves a copy.
6680 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6682 * infcall.c (call_function_by_hand): Add break statements for lint.
6684 * utils.c (parse_escape): Escape the escape char.
6686 * python/py-inferior.c (build_inferior_list): Error out if
6687 PyList_Append fails.
6688 (gdbpy_inferiors): Error out if build_inferior_list fails.
6690 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6693 * record.c (record_restore): Move printf to before error return.
6695 2011-03-02 Yao Qi <yao@codesourcery.com>
6697 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6698 is_thumb and insn_size.
6699 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6700 on both ARM and Thumb mode.
6701 (arm_process_displaced_insn): Set is_thumb and insn_size.
6702 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6703 (arm_displaced_step_fixup): Likewise.
6705 2011-03-01 Michael Snyder <msnyder@vmware.com>
6707 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6709 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6711 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6713 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6715 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6718 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6719 which shadows function parameter.
6721 * tracepoint.c (create_tsv_from_upload): Superfluous call
6722 to xstrdup. Callee already calls xstrdup.
6724 * linespec.c (decode_line_1): Remove unnecessary null check.
6726 * tracepoint.c (scope_info): Fix mem leak, remove underused
6729 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6730 superfluous null check.
6732 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6733 (value_of_builtin_frame_fp_reg): Ditto.
6735 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6737 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6740 * linespec.c (decode_line_1): Check for null before dereference.
6742 * reverse.c (record_restore): Move null-check to before pointer
6745 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6747 * objc-lang.c (selectors_info): Add explanitory comment.
6748 (classes_info): Ditto.
6750 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6752 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6753 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6754 versions of the trampoline. Handle Thumb vs. ARM addresses.
6755 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6756 (arm_linux_init_abi): Install it.
6757 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6758 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6760 2011-02-28 Michael Snyder <msnyder@vmware.com>
6762 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6763 a little bigger, to avoid possibility of an overflow.
6765 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6766 buffers a little bigger, to avoid possibility of an overflow.
6768 * coffread.c (coff_getfilename): Add check to avoid overflow.
6770 * objc-lang.c (selectors_info): Add a small safety margin to
6772 (classes_info): Error out on too long REGEXP.
6774 * infrun.c (handle_inferior_event): Remove unused function call.
6776 * fork-child.c (fork_inferior): Remove ifdef'd code and
6779 * linux-thread-db.c (attach_thread): Discard unused value.
6781 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6783 * remote.c (remote_get_noisy_reply): Discard unused value.
6784 (remote_vcont_resume): Ditto.
6785 (remote_stop_ns): Ditto.
6787 * linespec.c (decode_objc): Delete unused variable.
6789 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6791 * dwarf2read.c (add_partial_symbol): Discard unused values.
6792 (read_base_type): Delete unused variable.
6794 * dbxread.c (read_dbx_symtab): Discard unused value.
6796 * eval.c (evaluate_subexp_standard): Delete unused variable,
6797 and discard unused values.
6799 * infcmd.c (_initialize_infcmd): Discard unused values.
6801 * stabsread.c (rs6000_builtin_type): Missing break statement.
6803 * dbxread.c (process_one_symbol): Discard unused value.
6805 * coffread.c (coff_end_symtab): Delete unused variable.
6807 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6808 (dwarf2_add_typedef): Delete unused variable.
6809 (read_namespace): Ditto.
6810 (dwarf_decode_macros): Ditto.
6812 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6814 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6816 * p-valprint.c (pascal_val_print): Discard unused value.
6818 * utils.c (nquery): Call va_end before return;
6822 * proc-service.c (ps_plog): Call va_end before return.
6824 2011-02-28 Tom Tromey <tromey@redhat.com>
6826 * python/python.c (gdbpy_value_cst): New global.
6827 (_initialize_python): Initialize it.
6828 * python/python-internal.h (gdbpy_value_cst): Declare.
6829 * python/py-value.c (convert_value_from_python): Use
6832 2011-02-28 Michael Snyder <msnyder@vmware.com>
6834 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6836 * breakpoint.c (catch_syscall_completer): Free malloced list.
6838 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6840 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6841 (lval_func_check_synthetic_pointer): Ditto.
6842 (lval_func_free_closure): Fix use-after-free.
6844 2011-02-28 Tom Tromey <tromey@redhat.com>
6846 * psymtab.c (expand_partial_symbol_tables): Use
6847 ALL_OBJFILE_PSYMTABS.
6849 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6851 * objc-lang.c (selectors_info): Error on too long REGEXP.
6853 2011-02-28 Michael Snyder <msnyder@vmware.com>
6855 * python/py-param.c (set_parameter_value): Add missing
6858 * linux-record.c (record_linux_system_call): Add missing
6861 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6863 * breakpoint.c (print_one_breakpoint_location): Remove unused
6864 argument PRINT_ADDRESS_BITS. Update callers.
6865 (print_one_breakpoint): Likewise.
6867 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6869 * breakpoint.c (wrap_indent_at_field): New function.
6870 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6871 Allocate ui_stream locally instead of using STB argument.
6872 (print_one_breakpoint_location): Update call.
6873 * ui-out.c (ui_out_query_field): New function.
6874 * ui-out.h (ui_out_query_field): Add prototype.
6876 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6878 From Michael Snyder <msnyder@vmware.com>
6879 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6881 2011-02-27 Michael Snyder <msnyder@vmware.com>
6883 * objc-lang.c (selectors_info): Prevent string overrun.
6885 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6888 * symtab.c (rbreak_command): Move variable 'file_name' to
6891 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6892 param with a local variable of the same name.
6894 2011-02-27 Michael Snyder <msnyder@vmware.com>
6896 * value.c (value_from_history_ref): New function.
6897 * value.h (value_from_history_ref): Export.
6898 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6899 to parse value history references.
6900 * cli/cli-utils.h (get_number_trailer): Update comment.
6902 2011-02-27 Michael Snyder <msnyder@vmware.com>
6904 * inferior.c (detach_inferior_command): Use get_number_or_range.
6905 (kill_inferior_command): Ditto.
6906 (remove_inferior_command): Ditto.
6907 (initialize_inferiors): Make command names plural.
6908 Update help strings.
6910 2011-02-27 Michael Snyder <msnyder@vmware.com>
6912 * darwin-nat-info.c: Fix comment typo.
6913 * dwarf2expr.h: Ditto.
6914 * fbsd-nat.c: Ditto.
6915 * fbsd-nat.h: Ditto.
6916 * frame-unwind.h: Ditto.
6918 * hppa-hpux-tdep.c: Ditto.
6919 * i386-linux-nat.c: Ditto.
6920 * linux-nat.c: Ditto.
6921 * nbsd-nat.c: Ditto.
6922 * nbsd-nat.h: Ditto.
6923 * ppc-linux-tdep.c: Ditto.
6926 * tui/tui-winsource.c: Ditto.
6928 2011-02-26 Michael Snyder <msnyder@vmware.com>
6930 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6932 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6934 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6935 with a local variable of the same name.
6937 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6938 param with a local variable of the same name.
6939 (i387_supply_xsave): Ditto.
6941 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6942 that it does not shadow a function parameter.
6944 * i386-nat.c (i386_length_and_rw_bits): Document that case
6945 statement is meant to fall through.
6947 * expprint.c (dump_subexp_body_standard): Document that case
6948 statement is meant to fall through.
6950 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6951 dead if statement. Condition can't be false.
6953 2011-02-25 Michael Snyder <msnyder@vmware.com>
6955 * arm-tdep.c: Fix typos in comments.
6956 * bsd-uthread.c: Ditto.
6957 * completer.c: Ditto.
6959 * cp-namespace.c: Ditto.
6960 * cp-support.c: Ditto.
6961 * cris-tdep.c: Ditto.
6963 * dwarf2read.c: Ditto.
6965 * gdbtypes.h: Ditto.
6966 * inferior.h: Ditto.
6967 * mdebugread.c: Ditto.
6968 * mips-tdep.c: Ditto.
6969 * ppc-linux-nat.c: Ditto.
6970 * ppc-linux-tdep.c: Ditto.
6971 * printcmd.c: Ditto.
6972 * sol-thread.c: Ditto.
6973 * solib-frv.c: Ditto.
6975 * sparc64-tdep.c: Ditto.
6976 * spu-tdep.c: Ditto.
6977 * stabsread.c: Ditto.
6982 * python/py-block.c: Ditto.
6983 * python/py-symbol.c: Ditto.
6984 * python/py-symtab.c: Ditto.
6985 * python/py-value.c: Ditto.
6986 * tui/tui-win.c: Ditto.
6988 2011-02-25 Michael Snyder <msnyder@vmware.com>
6990 * inferior.c (print_inferior): Accept a string instead of an int
6991 for requested_inferiors, and use get_number_or_range to parse it.
6992 (info_inferiors_command): Pass args string to print_inferior.
6993 (initialize_inferiors): Change help string for info inferiors.
6994 * inferior.h (print_inferior): Export prototype change.
6996 2011-02-25 Tom Tromey <tromey@redhat.com>
6998 * common/ax.def (invalid2): Set to 0x31.
7000 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7002 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7004 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7006 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7008 2011-02-24 Michael Snyder <msnyder@vmware.com>
7010 * Makefile.in (clean): Make clean should remove generated files
7011 observer.h and observer.inc.
7013 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7015 Revert the following patch (not approved yet):
7016 2011-02-21 Hui Zhu <teawater@gmail.com>
7017 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7018 * ax-gdb.c (gen_printf_expr_callback): New function.
7019 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7020 * ax-general.c (ax_memcpy): New function.
7021 (ax_print): Handle "printf".
7023 * ax.h (ax_memcpy): Forward declare.
7024 * common/ax.def (invalid2): Removed.
7025 (printf): New entry.
7026 * printcmd.c (printcmd.h): New include.
7027 (string_printf): New function.
7028 (ui_printf): Removed.
7029 (printf_command): Remove static. Call string_printf.
7030 (eval_command): Call string_printf.
7031 * printcmd.h: New file.
7032 * tracepoint.c (validate_actionline,
7033 encode_actions_1): handle printf_command.
7035 2011-02-23 Tom Tromey <tromey@redhat.com>
7037 * ax-general.c (ax_pick): Add missing newline.
7039 2011-02-23 Michael Snyder <msnyder@vmware.com>
7041 * breakpoint.c (breakpoint_1): Change first argument from an int
7042 to a char pointer, so that the function now accepts a list of
7043 breakpoints rather than just one. Use new function
7044 'number_is_in_list' to implement.
7045 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7046 (watchpoints_info): Ditto.
7047 (tracepoints_info): Ditto.
7048 (maintenance_info_breakpoints): Ditto.
7049 (_initialize_breakpoint): Update help strings to reflect the fact
7050 that these functions can now take more than one argument.
7051 * cli/cli-utils.c (number_is_in_list): New function.
7052 * cli/cli-utils.h (number_is_in_list): Export.
7054 2011-02-23 Michael Snyder <msnyder@vmware.com>
7056 * memattr.c (mem_enable_command): Use get_number_or_range.
7057 (mem_disable_command): Ditto.
7058 (mem_delete_command): Ditto.
7059 (_initialize_mem): Tweak usage message to reflect multiple
7062 2011-02-22 Doug Evans <dje@google.com>
7064 Add gdb.lookup_global_symbol python function.
7066 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7067 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7068 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7070 2011-02-22 Tom Tromey <tromey@redhat.com>
7072 * language.c (language_class_name_from_physname): Rename
7073 'curr_language' argument to 'lang'; use in body.
7075 2011-02-22 Michael Snyder <msnyder@vmware.com>
7077 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7079 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7081 * frame-unwind.h: Fix comment to mention the this frame, not the
7084 2011-02-22 Tom Tromey <tromey@redhat.com>
7086 * symfile.c (auto_solib_limit): Remove.
7087 * symfile.h (auto_solib_limit): Remove.
7089 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7091 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7093 2011-02-21 Michael Snyder <msnyder@vmware.com>
7095 * gdbthread.h (print_thread_info): Change prototype.
7096 * thread.c (print_thread_info): Accept char* instead of int for
7097 requested_threads argument. Use new function number_is_in_list
7098 to determine which threads to list.
7099 (info_threads_command): Pass char* to print_thread_info.
7100 * cli/cli-utils.c (number_is_in_list): New function.
7101 * cli/cli-utils.h (number_is_in_list): Export.
7102 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7104 (print_one_inferior): Ditto.
7105 (mi_cmd_list_thread_groups): Ditto.
7107 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7109 * common/Makefile.in (CFLAGS): New.
7110 (COMPILE): Add $(CFLAGS).
7112 2011-02-21 Tom Tromey <tromey@redhat.com>
7114 * breakpoint.c (catch_syscall_command_1): Fix typo.
7116 2011-02-21 Tom Tromey <tromey@redhat.com>
7118 * reverse.c: Include cli-utils.h.
7119 * printcmd.c: Include cli-utils.h.
7120 (string_printf): Use skip_spaces.
7121 * cli/cli-utils.h: New file.
7122 * cli/cli-utils.c: New file.
7123 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7124 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7125 * breakpoint.h (get_number, get_number_or_range): Move to
7127 * breakpoint.c: Include cli-utils.h.
7128 (get_number_trailer, get_number, get_number_or_range)
7129 (ep_skip_leading_whitespace): Move to cli-utils.c.
7130 (create_breakpoint_sal, find_condition_and_thread)
7131 (decode_static_tracepoint_spec, watch_command_1)
7132 (watch_maybe_just_location, ep_parse_optional_if_clause)
7133 (catch_fork_command_1, catch_exec_command_1)
7134 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7135 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7136 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7137 (HFILES_NO_SRCDIR): Add cli-utils.h.
7138 (cli-utils.o): New target.
7140 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7142 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7143 before calling discard_all_inferiors.
7145 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7147 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7148 (struct builtin_opencl_type): Remove.
7149 (builtin_opencl_type): Change return type to "struct type **".
7150 (lookup_opencl_vector_type): Update caller.
7151 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7152 (build_opencl_types): Install plain array of "struct type *"
7153 instead of "struct builtin_opencl_type".
7155 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7156 Ulrich Weigand <uweigand@de.ibm.com>
7158 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7159 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7160 (struct arm_linux_hwbp_cap): New type.
7161 (arm_linux_get_hwbp_cap): New function.
7162 (arm_linux_get_hw_breakpoint_count): Likewise.
7163 (arm_linux_get_hw_watchpoint_count): Likewise.
7164 (arm_linux_can_use_hw_breakpoint): Likewise.
7165 (arm_hwbp_type): New type.
7166 (arm_hwbp_control_t): Likewise.
7167 (struct arm_linux_hw_breakpoint): Likewise.
7168 (struct arm_linux_thread_points): Likewise.
7169 (arm_threads): New global variable.
7170 (arm_linux_find_breakpoints_by_tid): New function.
7171 (arm_hwbp_control_initialize): Likewise.
7172 (arm_hwbp_control_is_enabled): Likewise.
7173 (arm_hwbp_control_disable): Likewise.
7174 (arm_linux_hw_breakpoint_initialize): Likewise.
7175 (arm_linux_get_hwbp_type): Likewise.
7176 (arm_linux_hw_watchpoint_initialize): Likewise.
7177 (arm_linux_hw_breakpoint_equal): Likewise.
7178 (arm_linux_insert_hw_breakpoint1): Likewise.
7179 (arm_linux_remove_hw_breakpoint1): Likewise.
7180 (arm_linux_insert_hw_breakpoint): Likewise.
7181 (arm_linux_remove_hw_breakpoint): Likewise.
7182 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7183 (arm_linux_insert_watchpoint): Likewise.
7184 (arm_linux_remove_watchpoint): Likewise.
7185 (arm_linux_stopped_data_address): Likewise.
7186 (arm_linux_stopped_by_watchpoint): Likewise.
7187 (arm_linux_watchpoint_addr_within_range): Likewise.
7188 (arm_linux_new_thread): Likewise.
7189 (arm_linux_thread_exit): Likewise.
7190 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7191 related target callbacks. Register arm_linux_new_thread and
7192 arm_linux_thread_exit.
7193 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7194 * arm-tdep.c (arm_pc_is_thumb): Make global.
7195 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7197 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7199 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7200 per-frame locations while within a function epilogue.
7202 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7204 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7205 to GNU coding standards.
7207 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7209 Allow use of mingw native on Windows 95 OS.
7210 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7211 (ser_windows_close): Only call CancelIo if function exists.
7212 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7213 to check for existence of CancelIo function in kernel32 DLL.
7215 2011-02-21 Hui Zhu <teawater@gmail.com>
7217 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7218 * ax-gdb.c (gen_printf_expr_callback): New function.
7219 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7220 * ax-general.c (ax_memcpy): New function.
7221 (ax_print): Handle "printf".
7223 * ax.h (ax_memcpy): Forward declare.
7224 * common/ax.def (invalid2): Removed.
7225 (printf): New entry.
7226 * printcmd.c (printcmd.h): New include.
7227 (string_printf): New function.
7228 (ui_printf): Removed.
7229 (printf_command): Remove static. Call string_printf.
7230 (eval_command): Call string_printf.
7231 * printcmd.h: New file.
7232 * tracepoint.c (validate_actionline,
7233 encode_actions_1): handle printf_command.
7235 2011-02-19 Michael Snyder <msnyder@vmware.com>
7237 * reverse.c (delete_one_bookmark): Argument is now bookmark
7238 id rather than pointer to bookmark struct.
7239 (delete_bookmark_command): Use get_number_or_range.
7240 (goto_bookmark_command): Parse with get_number instead of strtoul.
7241 (bookmark_1): New function. Print info for one bookmark.
7242 (bookmarks_info): Use get_number_or_range and bookmark_1.
7244 2011-02-18 Michael Snyder <msnyder@vmware.com>
7246 * thread.c (info_threads_command): Re-implement using
7247 get_number_or_range.
7248 (thread_apply_command): Ditto.
7250 2011-02-18 Tom Tromey <tromey@redhat.com>
7252 * common/ax.def: New file.
7253 * ax.h (enum agent_op): Use ax.def.
7254 * ax-general.c (aop_map): Use ax.def.
7256 2011-02-18 Tom Tromey <tromey@redhat.com>
7258 * ax-general.c (aop_map): Add pick and rot.
7259 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7260 <DW_OP_rot>: Implement.
7261 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7263 * ax-general.c (ax_pick): New function.
7265 2011-02-18 Tom Tromey <tromey@redhat.com>
7267 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7269 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 Tom Tromey <tromey@redhat.com>
7272 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7273 make_symbol_overload_list_block with NULL BLOCK.
7274 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7276 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7278 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7279 * breakpoint.h (get_number_or_range): Declare.
7280 * printcmd.c (ALL_DISPLAYS): Declare.
7281 (delete_display): Reimplement taking a display pointer.
7282 (undisplay_command): Accept a range of displays to delete, using
7283 get_number_or_range.
7285 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7287 * c-valprint.c (c_val_print): Add embedded_offset to address
7288 for arrays of unspecified length.
7289 * p-valprint.c (pascal_val_print): Likewise.
7291 2011-02-18 Yao Qi <yao@codesourcery.com>
7293 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7294 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7295 (thumb_process_displaced_insn): New.
7296 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7297 call to arm_process_displaced_insn.
7298 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7300 2011-02-17 Tom Tromey <tromey@redhat.com>
7302 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7303 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7304 compile_dwarf_to_ax. No longer static. Call
7305 dwarf2_compile_cfa_to_ax.
7306 (locexpr_tracepoint_var_ref): Update.
7307 (loclist_tracepoint_var_ref): Update.
7308 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7309 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7310 argument; add 'gdbarch' and 'pc'.
7311 (dwarf2_compile_cfa_to_ax): New function.
7312 (dwarf2_frame_cache): Update.
7314 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7316 * ada-lang.c (ada_type_of_array): Fix the size of the array
7317 in the case of an unconstrained packed array.
7319 2011-02-17 Yao Qi <yao@codesourcery.com>
7321 * common/Makefile.in: Add more targets for make.
7323 2011-02-16 Tom Tromey <tromey@redhat.com>
7325 * dwarf2loc.c (unimplemented): Fix typo.
7327 2011-02-16 Tom Tromey <tromey@redhat.com>
7329 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7330 (compile_dwarf_to_ax) <default>: Use unimplemented.
7331 <DW_OP_deref>: Update.
7332 (disassemble_dwarf_expression): Update.
7333 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7334 (decode_locdesc): Update.
7335 * dwarf2expr.h (dwarf_stack_op_name): Update.
7337 2011-02-16 Tom Tromey <tromey@redhat.com>
7339 * ax.h (struct aop_map) <name>: Now const.
7341 2011-02-16 Tom Tromey <tromey@redhat.com>
7343 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7346 2011-02-16 Yao Qi <yao@codesourcery.com>
7348 * infrun.c (get_displaced_step_closure_by_addr): New.
7349 * inferior.h: Declare it.
7350 * arm-tdep.c: (arm_pc_is_thumb): Call
7351 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7354 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7355 Jan Kratochvil <jan.kratochvil@redhat.com>
7358 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7360 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7361 Jan Kratochvil <jan.kratochvil@redhat.com>
7363 * value.c (value_contents_copy_raw): Extend describing comment.
7364 Assert that the destination contents we're overwriting are wholly
7366 (value_contents_copy): Extend describing comment.
7368 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7369 Jan Kratochvil <jan.kratochvil@redhat.com>
7371 * value.c (value_available_contents_eq): Remove redundant local
7372 variables. Fix available contents comparision.
7373 * value.h (value_available_contents_eq): Extend describing
7376 2011-02-16 Yao Qi <yao@codesourcery.com>
7378 * thread.c (info_threads_command): Add missing i18n markup and remove
7381 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7383 * breakpoint.c (longjmp_names): New variable.
7384 (struct breakpoint_objfile_data): New type.
7385 (breakpoint_objfile_key): New variable.
7386 (msym_not_found): New variable.
7387 (msym_not_found_p): New predicate.
7388 (get_breakpoint_objfile_data): New function.
7389 (create_overlay_event_breakpoint): Check per-objfile cache for
7391 (create_longjmp_master_breakpoint): Likewise.
7392 (create_std_terminate_master_breakpoint): Likewise.
7393 (create_exception_master_breakpoint): Likewise.
7394 (_initialize_breakpoint): Register per-objfile data key.
7396 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7398 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7400 (create_longjmp_master_breakpoint): Loop over longjmp names.
7401 (create_std_terminate_master_breakpoint): Const-propagate parameter
7403 (update_breakpoints_after_exec): Adjust.
7404 (breakpoint_re_set): Adjust.
7406 2011-02-15 Michael Snyder <msnyder@vmware.com>
7408 * thread.c (info_threads_command): Process arg as thread id,
7409 or list of thread ids.
7410 (thread_find_command): New command.
7411 (_initialize_thread): Document argument for info threads.
7412 Document 'thread find' command.
7413 * NEWS: Document new command "thread find".
7415 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7417 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7418 * aclocal.m4: Regenerated with aclocal-1.11.1.
7419 * common/configure: Regenerate with autoconf-2.64.
7421 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7423 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7424 bool data type to a size of one byte.
7426 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7427 Jan Kratochvil <jan.kratochvil@redhat.com>
7429 * target.c (memory_xfer_live_readonly_partial): Document where to
7430 look for interface description.
7432 2011-02-15 Yao Qi <yao@codesourcery.com>
7435 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7436 order to store PC value on stack instead of text section.
7438 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7440 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7441 the EFP register set size.
7442 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7443 data from the VMX register.
7444 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7445 and write data from/to the VMX register.
7447 2011-02-14 Michael Snyder <msnyder@vmware.com>
7449 * command.h (enum command_class): New class 'no_set_class', for
7450 "show" commands without a corresponding "set" command.
7451 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7452 * copying.c (_initialize_copying): Ditto for "show copying" and
7454 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7456 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7457 which there is no corresponding "set" command (eg. "show copying").
7459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7460 Jan Kratochvil <jan.kratochvil@redhat.com>
7462 * exec.c (section_table_available_memory): Change `len' parameter
7464 * exec.h (section_table_available_memory): Ditto.
7465 * value.h (read_value_memory): Rename the `offset' parameter to
7468 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7469 Jan Kratochvil <jan.kratochvil@redhat.com>
7471 * memrange.c (compare_mem_ranges): Mention sort order in
7473 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7474 * tracepoint.c (traceframe_available_memory): Extend comment to
7475 mention what happens to RESULT when the target does not support
7478 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7479 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7484 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7486 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7487 No longer handle NULL values.
7489 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7491 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7492 * value.c: Include "exceptions.h".
7493 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7495 * cp-abi.c: Include gdb_assert.h.
7496 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7497 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7499 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7500 parameters. No longer returns -1 on error.
7501 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7503 * cp-valprint.c: Include exceptions.h.
7504 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7505 the baseclass_offset. Handle unavailable base classes. Use
7506 val_print_invalid_address.
7507 * p-valprint.c: Include exceptions.h.
7508 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7509 when fetching the baseclass_offset. No longer expect
7510 baseclass_offset returning -1. Handle unavailable base classes.
7511 Use val_print_invalid_address.
7512 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7513 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7514 `embedded_offset' and `val' parameters. Adjust.
7515 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7516 parameter, and change its type to gdb_byte pointer. Add
7517 `embedded_offset' and `val' parameters. Adjust. No longer expect
7518 baseclass_offset returning -1.
7519 (value_dynamic_cast): Use value_contents_for_printing rather than
7520 value_contents. Adjust.
7521 (search_struct_field): No longer expect baseclass_offset returning
7523 (search_struct_method): If reading memory from the target is
7524 necessary, wrap it in a new value to pass to baseclass_offset. No
7525 longer expect baseclass_offset returning -1.
7526 (find_method_list): No longer expect baseclass_offset returning
7527 -1. Use value_contents_for_printing rather than value_contents.
7528 * valprint.c (val_print_invalid_address): New function.
7529 * valprint.h (val_print_invalid_address): Declare.
7530 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7531 and `val' parameters. No longer expect baseclass_offset returning
7533 * gnu-v2-abi.c: Include "exceptions.h".
7534 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7535 parameters. Handle unavailable memory. Recurse through
7536 gnuv2_baseclass_offset directly, rather than through
7537 baseclass_offset. No longer returns -1 on not found, instead
7539 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7540 `val' parameters. Adjust.
7542 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7544 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7545 almost but not quite adjacent.
7547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7549 * value.h (value_entirely_available): Declare.
7550 * value.c (value_entirely_available): New function.
7551 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7552 real type if the pointer is unavailable.
7554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7556 * valops.c (value_repeat): Use read_value_memory instead of
7559 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7561 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7562 * value.c (value_contents_copy_raw, value_contents_copy): New
7564 (value_primitive_field): Use value_contents_copy_raw instead of
7566 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7568 (value_array, value_slice): Ditto.
7569 * valarith.c (value_subscripted_rvalue): Use
7570 value_contents_copy_raw instead of memcpy.
7572 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7574 <unavailable> references.
7576 * valops.c (get_value_at): Use value_from_contents_and_address,
7577 avoiding read_memory.
7579 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7581 * c-valprint.c (c_val_print): Print a string with unavailable
7582 contents as an array.
7584 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7586 * value.h (unpack_bits_as_long): Delete declaration.
7587 (unpack_value_bits_as_long): Declare.
7588 (unpack_value_field_as_long): Declare.
7589 (value_field_bitfield): Declare.
7590 * value.c (unpack_bits_as_long): Rename to...
7591 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7592 value parameters. Return the extracted result in a new output
7593 parameter. If the value contents are unavailable, return false,
7594 otherwise return true.
7595 (unpack_value_bits_as_long): New.
7596 (unpack_field_as_long): Rename to...
7597 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7598 Add embedded_offset and value parameters. Return the extracted
7599 result in a new output parameter. If the value contents are
7600 unavailable, return false, otherwise return true.
7601 (unpack_value_field_as_long): New.
7602 (unpack_field_as_long_1): New.
7603 (unpack_field_as_long): Reimplement as wrapper around
7604 unpack_value_field_as_long_1.
7605 (value_field_bitfield): New function.
7606 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7607 unpack_value_bits_as_long. Mark the value as unavailable, if it
7609 * jv-valprint.c (java_print_value_fields): Use
7610 value_field_bitfield.
7611 * p-valprint.c (pascal_object_print_value_fields): Use
7612 value_field_bitfield.
7613 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7615 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7617 * value.c (get_internalvar_integer): Also return the int value of
7618 TYPE_CODE_INT INTERNALVAR_VALUE values.
7619 (set_internalvar): Don't special case TYPE_CODE_INT.
7621 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7623 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7624 INTERNALVAR_POINTER.
7626 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7627 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7628 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7630 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7632 * value.h (value_available_contents_eq): Declare.
7633 * value.c (find_first_range_overlap): New function.
7634 (value_available_contents_eq): New function.
7635 * valprint.c (val_print_array_elements): Use
7636 value_available_contents_eq.
7637 * ada-valprint.c (val_print_packed_array_elements): Use
7638 value_available_contents_eq.
7639 * jv-valprint.c (java_value_print): Use
7640 value_available_contents_eq.
7642 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7644 * target.c (target_read_live_memory): New function.
7645 (memory_xfer_live_readonly_partial): New.
7646 (memory_xfer_partial): If reading from a traceframe, fallback to
7647 reading unavailable read-only memory from read-only regions of
7649 * tracepoint.c (disconnect_tracing): Adjust.
7650 (set_current_traceframe): New, factored out from
7651 set_traceframe_number.
7652 (set_traceframe_number): Reimplement to only change the traceframe
7653 number on the GDB side.
7654 (do_restore_current_traceframe_cleanup): Adjust.
7655 (make_cleanup_restore_traceframe_number): New.
7656 (cur_traceframe_number): New global.
7657 (tfile_open): Set cur_traceframe_number to no traceframe.
7658 (set_tfile_traceframe): New function.
7659 (tfile_trace_find): If looking up a traceframe using any method
7660 other than by number, make sure the current tfile traceframe
7661 matches gdb's current traceframe. Update the current tfile
7662 traceframe if the lookup succeeded.
7663 (tfile_fetch_registers, tfile_xfer_partial)
7664 (tfile_get_trace_state_variable_value): Make sure the remote
7665 traceframe matches gdb's current traceframe.
7666 * remote.c (remote_traceframe_number): New global.
7667 (remote_open_1): Set it to -1.
7668 (set_remote_traceframe): New function.
7669 (remote_fetch_registers, remote_store_registers)
7670 (remote_xfer_memory, remote_xfer_partial)
7671 (remote_get_trace_state_variable_value): Make sure the remote
7672 traceframe matches gdb's current traceframe.
7673 (remote_trace_find): If looking up a traceframe using any method
7674 other than by number, make sure the current remote traceframe
7675 matches gdb's current traceframe. Update the current remote
7676 traceframe if the lookup succeeded.
7677 * infrun.c (fetch_inferior_event): Adjust.
7678 * tracepoint.h (set_current_traceframe): Declare.
7679 (get_traceframe_number, set_traceframe_number): Add describing
7682 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7684 Mark pieces of values as unavailable if the corresponding memory
7687 * valops.c: Include tracepoint.h.
7688 (value_fetch_lazy): Use read_value_memory.
7689 (read_value_memory): New.
7690 * value.h (read_value_memory): Declare.
7691 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7692 * exec.c (section_table_available_memory): New function.
7693 * exec.h (section_table_available_memory): Declare.
7695 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7697 * Makefile.in (SFILES): Add memrange.c.
7698 (HFILES_NO_SRCDIR): Add memrange.h.
7699 (COMMON_OBS): Add memrange.o.
7700 * memrange.c: New file.
7701 * memrange.h: New file.
7702 * tracepoint.c: Include memrange.h.
7703 (struct mem_range): Delete.
7704 (mem_range_s): Delete.
7705 (traceframe_available_memory): New function.
7706 * tracepoint.h (traceframe_available_memory): Declare.
7708 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7710 * target.h (struct traceframe_info): Forward declare.
7711 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7712 (struct target_ops) <to_traceframe_info>: New field.
7713 (target_traceframe_info): New.
7714 * target.c (update_current_target): Inherit and default
7716 * remote.c (PACKET_qXfer_traceframe_info): New.
7717 (remote_protocol_features): Register qXfer:traceframe-info:read.
7718 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7719 (remote_traceframe_info): New.
7720 (init_remote_ops): Install it.
7721 (_initialize_remote): Install "set/show remote traceframe-info"
7723 * tracepoint.h (parse_traceframe_info): Declare.
7724 * tracepoint.c (struct mem_range): New.
7725 (mem_range_s): New typedef.
7726 (struct traceframe_info): New.
7727 (traceframe_info): New global.
7728 (free_traceframe_info): New function.
7729 (clear_traceframe_info): New function.
7730 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7732 (build_traceframe_info): New function.
7733 (tfile_traceframe_info): New function.
7734 (init_tfile_ops): Install tfile_traceframe_info.
7735 (traceframe_info_start_memory, free_result): New functions.
7736 (memory_attributes, traceframe_info_elements): New globals.
7737 (parse_traceframe_info, get_traceframe_info): New functions.
7738 * features/traceframe-info.dtd: New file.
7739 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7741 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7743 Base support for <unavailable> value contents.
7745 * value.h (value_bytes_available): Declare.
7746 (mark_value_bytes_unavailable): Declare.
7747 * value.c (struct range): New struct.
7748 (range_s): New typedef.
7749 (ranges_overlap): New function.
7750 (range_lessthan): New function.
7751 (ranges_contain_p): New function.
7752 (struct value) <unavailable>: New field.
7753 (value_bytes_available): New function.
7754 (mark_value_bytes_unavailable): New function.
7755 (require_not_optimized_out): Constify parameter.
7756 (require_available): New function.
7757 (value_contents_all, value_contents): Require all bytes be
7759 (value_free): Free `unavailable'.
7760 (value_copy): Copy `unavailable'.
7761 * valprint.h (val_print_unavailable): Declare.
7762 * valprint.c (valprint_check_validity): Rename `offset' parameter
7763 to `embedded_offset'. If printing a scalar, check whether the
7764 value chunk is available.
7765 (val_print_unavailable): New.
7766 (val_print_scalar_formatted): Check whether the value is
7768 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7769 pretty-printing unavailable values.
7771 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7773 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7774 * c-typeprint.c (c_type_print_args): Update the function comment. New
7775 variable param_type, initialize it. Remove const/volatile qualifiers
7776 for language_cplus and !show_artificial. Use param_type.
7778 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7780 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7781 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7782 * symtab.h (struct symtab) <next>: Comment extension.
7784 2011-02-12 Yao Qi <yao@codesourcery.com>
7786 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7788 2011-02-11 Yao Qi <yao@codesourcery.com>
7790 * common/Makefile.in: Add copyright header.
7792 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7794 * infrun.c (proceed): Move switching out and in of tfind mode from
7796 (fetch_inferior_event): ... to here.
7798 2011-02-11 Yao Qi <yao@codesourcery.com>
7800 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7802 * configure.ac: Add common to sub dir.
7803 * configure: Regenerate.
7805 2011-02-11 Yao Qi <yao@codesourcery.com>
7809 * common/Makefile.in: New.
7810 * common/configure.ac: New.
7811 * common/aclocal.m4: New.
7812 * common/configure: Generate.
7814 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7816 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7817 side of the parenthesis.
7820 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7821 * vec.h (VEC_block_remove): Fix comment.
7823 2011-02-08 Michael Snyder <msnyder@vmware.com>
7825 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7827 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7829 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7830 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7833 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7838 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7839 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7841 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7843 * dwarf2read.c (read_subroutine_type): Set special calling
7844 convention flag for functions compiled by IBM XL C for OpenCL.
7845 * ppc-sysv-tdep.c: Include "dwarf2.h"
7846 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7848 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7849 IBM OpenCL vector types calling convention.
7850 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7851 (ppc_sysv_abi_broken_return_value): Likewise.
7852 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7853 types calling convention.
7854 (ppc64_sysv_abi_return_value): Likewise.
7855 * spu-tdep.c: Include "dwarf2.h"
7856 (spu_return_value): Implement IBM OpenCL vector types calling
7859 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7861 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7862 correct ABI for AltiVec vector arguments.
7864 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7866 * valprint.c (val_print): Extend comment.
7867 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7868 interface explanation to val_print.
7869 (ada_val_print_array): Adjust comment to current interface.
7870 (print_field_values): Adjust comment to current interface.
7871 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7872 explanation to val_print.
7873 * f-valprint.c (f_val_print): Ditto.
7874 * jv-valprint.c (java_val_print): Ditto.
7875 * m2-valprint.c (m2_val_print): Ditto.
7876 * p-valprint.c (pascal_val_print): Ditto.
7878 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7880 * breakpoint.c (parse_breakpoint_sals): Fix description.
7882 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7883 Oguz Kayral <oguzkayral@gmail.com>
7885 * python/py-inferior.c (python_on_normal_stop): New function.
7886 (python_on_resume): New function.
7887 (python_inferior_exit): New function.
7888 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7889 inferior_exit observers.
7890 * python/py-evtregistry.c: New file.
7891 * python/py-threadevent.c : New file.
7892 * python/py-event.c: New file.
7893 * python/py-evts.c: New file.
7894 * python/py-continueevent.c: New file.
7895 * python/py-bpevent.c: New file.
7896 * python/py-signalevent.c: New file.
7897 * python/py-exetiedevent.c: New file.
7898 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7899 Move struct breakpoint_object from here...
7900 * python/python-internal.h: ... to here.
7901 * python/py-event.h: New file.
7902 * python/py-events.h: New file.
7903 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7904 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7905 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7906 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7907 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7908 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7909 Add build rules for all the above.
7911 2011-02-04 Tom Tromey <tromey@redhat.com>
7913 * dwarf2read.c (dwarf2_section_empty_p): New function.
7914 (dwarf2_read_section): Use dwarf2_section_empty_p.
7915 (dwarf2_section_size): New function.
7916 (dwarf2_get_section_info): Unconditionally read section.
7917 (dwarf2_read_index): Use dwarf2_section_empty_p.
7918 (partial_read_comp_unit_head): Use dwarf2_section_size.
7919 (dwarf2_symbol_mark_computed): Likewise.
7921 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7923 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7925 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7927 * mips-linux-tdep.c: Include xml-syscall.h.
7928 (mips_linux_get_syscall_number): New function.
7929 (mips_linux_init_abi): Add calls to
7930 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7931 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7932 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7933 * syscalls/mips-n32-linux.xml: New file.
7934 * syscalls/mips-n64-linux.xml: New file.
7935 * syscalls/mips-o32-linux.xml: New file.
7937 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7939 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7940 Complain about inverted range entries.
7941 (dwarf2_record_block_ranges): Likewise.
7943 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7946 * breakpoint.c (update_watchpoint): Fix name of the
7947 update_global_location_list function.
7948 (print_one_breakpoint): Fix typo.
7949 (_initialize_breakpoint): Remove extra space in hbreak help
7951 * breakpoint.h (struct bp_location) <length>: Fix field
7954 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7956 * regcache.c (registers_changed_ptid): Don't explictly always
7957 clear `current_regcache'. Only clear current_thread_ptid and
7958 current_thread_arch when PTID matches. Only reinit the frame
7959 cache if PTID matches the current inferior_ptid. Move alloca(0)
7961 (registers_changed): ... here.
7963 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7965 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7966 starts with __stack_chk_guard as stack guard symbol.
7968 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7970 * disasm.c (compare_lines): Handle the end of sequence markers
7971 within the line table to better support disassembling over
7972 compilation unit boundaries.
7974 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7976 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7977 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7978 implementation even if no symbols are available.
7979 (thumb_analyze_prologue): Update call to skip_prologue_function.
7980 (arm_analyze_prologue): Likewise.
7982 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7984 * arm-tdep.c: Include "observer.h".
7985 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7986 (arm_exidx_data_key): New static variable.
7987 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7988 (struct arm_exidx_data): Likewise.
7989 (arm_exidx_data_free): New function.
7990 (arm_compare_exidx_entries): Likewise.
7991 (arm_obj_section_from_vma): Likewise.
7992 (arm_exidx_new_objfile): Likewise.
7993 (arm_find_exidx_entry): Likewise.
7994 (arm_exidx_fill_cache): Likewise.
7995 (arm_exidx_unwind_sniffer): Likewise.
7996 (arm_exidx_unwind): New global variable.
7997 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7998 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7999 observer. Register arm_exidx_data_key as objfile data.
8001 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8003 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8004 due to accessing uninitialized variable. Fix indentation.
8006 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8008 * c-valprint.c (c_value_print): When doing virtual base pointer
8009 adjustment, create a new value with adjusted contents rather than
8010 changing the contents of the value being printed (and getting it
8013 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8015 * xml-support.c (xml_find_attribute): New.
8016 (xinclude_start_include): Use it.
8017 * xml-support.h (xml_find_attribute): Declare.
8018 * memory-map.c (memory_map_start_memory)
8019 (memory_map_start_property): Use xml_find_attribute.
8020 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8022 * remote.c (start_thread): Use xml_find_attribute.
8023 * solib-target.c (library_list_start_segment)
8024 (library_list_start_section, library_list_start_library)
8025 (library_list_start_list): Use xml_find_attribute.
8026 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8027 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8028 (tdesc_start_field): Use xml_find_attribute.
8030 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8032 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8033 (BUILD_OCL_VTYPES): Update.
8035 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8037 * configure.ac: Work around non-GNU sed limitation when computing
8038 python version number.
8039 * configure: Regenerate.
8041 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8043 Fix debug printing of TYPE_INSTANCE.
8044 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8045 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8047 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8049 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8050 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8051 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8052 * ada-operator.inc: Rename the file to ...
8053 * ada-operator.def: ... here, wrap all the entries by macro OP.
8054 * expprint.c (op_name_standard): Remove all the entries. Include
8055 "std-operator.def" instead.
8056 * expression.h (enum exp_opcode): Include "std-operator.def" and
8057 "ada-operator.def". Move all the entries ...
8058 * std-operator.def: ... here, wrap all the entries by macro OP.
8060 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8062 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8063 * breakpoint.c (remove_jit_event_breakpoints): New function.
8064 * jit.c (jit_descriptor_addr): Delete.
8065 (registering_code): Delete.
8066 (clear_int): Delete.
8067 (jit_inferior_data): New variable.
8068 (struct jit_inferior_data): New type.
8069 (get_jit_inferior_data): New function.
8070 (jit_inferior_data_cleanup): New function.
8071 (jit_read_descriptor): Adjust.
8072 (jit_register_code): Adjust.
8073 (jit_breakpoint_re_set_internal): New function; move code here ...
8074 (jit_inferior_init): ... from here.
8075 (jit_breakpoint_re_set): Adjust.
8076 (jit_reset_inferior_data_and_breakpoints): New function.
8077 (jit_inferior_created_observer): Adjust.
8078 (jit_inferior_exit_hook): Adjust.
8079 (jit_executable_changed_observer): New function.
8080 (jit_event_handler): Adjust.
8081 (_initialize_jit): Adjust.
8083 2011-01-31 Michael Snyder <msnyder@vmware.com>
8085 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8088 2011-01-31 Tom Tromey <tromey@redhat.com>
8091 * python/python.c (execute_gdb_command): Call
8092 prevent_dont_repeat.
8093 * top.c (suppress_dont_repeat): New global.
8094 (dont_repeat): Use it.
8095 (prevent_dont_repeat): New function.
8096 * command.h (prevent_dont_repeat): Declare.
8098 2011-01-31 Tom Tromey <tromey@redhat.com>
8100 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8101 * python/py-breakpoint.c (bppy_set_silent): Use
8102 breakpoint_set_silent.
8103 (bppy_set_thread): Use breakpoint_set_thread.
8104 (bppy_set_task): Use breakpoint_set_task.
8105 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8106 (breakpoint_set_task): Declare.
8107 (make_breakpoint_silent): Remove.
8108 * breakpoint.c (breakpoint_set_silent): New function.
8109 (breakpoint_set_thread): Likewise.
8110 (breakpoint_set_task): Likewise.
8111 (make_breakpoint_silent): Remove.
8113 2011-01-31 Tom Tromey <tromey@redhat.com>
8115 * breakpoint.h (user_breakpoint_p): Declare.
8116 * breakpoint.c (user_breakpoint_p): New function.
8117 (breakpoint_1): Use it.
8118 (save_breakpoints): Likewise.
8120 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8122 * configure.ac: Add handling of Python distribution on Windows.
8123 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8124 sysconfig variables are not defined, then do not use them.
8125 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8126 instead. On Windows, return all paths using forward-slashes
8127 rather than backslashes.
8129 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8131 * configure.ac: Remove fallback behavior for building
8132 against Python. Remove tweaking of Python include path.
8133 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8134 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8135 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8136 Always restore CPPFLAGS and LIBS after linking test.
8137 * configure: Regenerated.
8138 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8139 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8140 * python/python-internal.h: Adjust includes of Python .h files.
8142 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8144 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8147 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8149 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8152 2011-01-31 Yao Qi <yao@codesourcery.com>
8154 * arm-linux-nat.c: Update calls to regcache_register_status
8155 instead of regcache_valid_p.
8156 * aix-thread.c: Likewise.
8157 * i386gnu-nat.c: Likewise.
8159 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8162 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8163 touching TYPE_FIELD_ARTIFICIAL.
8165 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8167 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8170 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8172 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8173 selected, don't try iterating over the traceframe's blocks.
8174 (tfile_has_stack): If there's no traceframe selected, then there's
8176 (tfile_has_registers): If there's no traceframe selected, then
8177 there's no registers.
8179 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8181 * target.c (memory_xfer_partial): No need to restore shadows if we
8182 haven't read anything.
8184 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8186 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8187 and val_print_scalar_formatted.
8189 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8191 * tracepoint.c (tfile_read): New.
8192 (tfile_open): Use it.
8193 (tfile_get_traceframe_address): Use it.
8194 (tfile_trace_find): Use it.
8195 (walk_blocks_callback_func): New typedef.
8196 (match_blocktype): New function.
8197 (traceframe_walk_blocks): New function.
8198 (traceframe_find_block_type): New function.
8199 (tfile_fetch_registers, tfile_xfer_partial)
8200 (tfile_get_trace_state_variable_value): Use
8201 traceframe_find_block_type and tfile_read.
8203 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8205 * remote-mips.c: Add internationalization mark ups. Remove
8206 trailing \n from already marked up strings.
8208 2011-01-26 Tom Tromey <tromey@redhat.com>
8210 * python/py-prettyprint.c (print_string_repr): Clear
8211 'addressprint' option when calling val_print_string.
8212 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8213 option when calling val_print_string.
8215 2011-01-26 Tom Tromey <tromey@redhat.com>
8217 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8219 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8221 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8222 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8223 (gdb_py_long_as_ulongest): New defines.
8224 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8225 (gdb_py_int_as_long): Declare.
8226 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8227 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8228 (valpy_long): Add comment.
8229 * python/py-utils.c (get_addr_from_python): Use
8230 gdb_py_long_as_ulongest. Handle overflow properly.
8231 (gdb_py_object_from_longest): New function.
8232 (gdb_py_object_from_ulongest): Likewise.
8233 (gdb_py_int_as_long): Likewise.
8234 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8235 * python/py-symtab.c (salpy_get_pc): Use
8236 gdb_py_long_from_ulongest.
8237 (salpy_get_line): Use PyInt_FromLong.
8238 * python/py-param.c (set_parameter_value): Use
8240 * python/py-lazy-string.c (stpy_get_address): Use
8241 gdb_py_long_from_ulongest.
8242 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8243 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8244 * python/py-breakpoint.c (bppy_set_thread): Use
8246 (bppy_set_task): Likewise.
8247 (bppy_set_ignore_count): Likewise.
8248 (bppy_set_hit_count): Likewise.
8249 * python/py-block.c (blpy_get_start): Use
8250 gdb_py_object_from_ulongest.
8251 (blpy_get_end): Likewise.
8252 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8254 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8257 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8258 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8259 equality test for objfile, initialize addr_low if needed.
8261 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8263 * tui/tui-regs.c (tui_register_format): Remove dead code.
8265 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8267 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8268 instead of print_scalar_formatted.
8269 (print_scalar_formatted): Don't handle 's' format strings here,
8270 and add an assertion that we never see such format here.
8271 * valprint.h (val_print_scalar_formatted): Declare.
8272 * valprint.c (val_print_scalar_formatted): New.
8273 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8274 instead of print_scalar_formatted.
8275 * jv-valprint.c (java_val_print): Ditto.
8276 * p-valprint.c (pascal_val_print): Ditto.
8277 * ada-valprint.c (ada_val_print_1): Ditto.
8278 * f-valprint.c (f_val_print): Ditto.
8279 * infcmd.c (registers_info): Ditto.
8280 * m2-valprint.c (m2_val_print): Ditto.
8282 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8284 * m2-valprint.c (print_unbounded_array): Pass
8285 value_contents_for_printing rather than value_contents, to
8286 m2_print_array_contents. Also pass in the value.
8288 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8290 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8291 (save_gdb_index_command): Switch to .gdb_index version 4.
8293 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8295 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8296 than frame_register, and always pass a valid value to val_print.
8298 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8300 Centralize printing "<optimized out>".
8302 * valprint.h (val_print_optimized_out): Declare.
8303 * cp-valprint.c (cp_print_value_fields): Use
8304 val_print_optimized_out.
8305 * jv-valprint.c (java_print_value_fields): Ditto.
8306 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8307 * printcmd.c (print_formatted): Ditto.
8308 * valprint.c (valprint_check_validity): Ditto.
8309 (value_check_printable): Ditto.
8310 (val_print_optimized_out): New.
8312 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8314 * infcmd.c (default_print_registers_info): Allocate values so to
8315 never pass a NULL value to val_print.
8317 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8319 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8320 boolean. Make sure to always pass a value that matches the
8321 contents buffer to callees. Preserve `address' for following
8323 * value.c (value_contents_for_printing_const): New.
8324 (value_address): Constify value argument.
8325 * value.h (value_contents_for_printing_const): Declare.
8326 (value_address): Constify value argument.
8328 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8330 * regcache.c (struct regcache_descr): Rename
8331 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8332 and sizeof_cooked_register_valid_p to
8333 sizeof_cooked_register_status.
8334 (init_regcache_descr): Adjust.
8335 (struct regcache): Rename register_valid_p field to
8337 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8338 (do_cooked_read): Adjust.
8339 (regcache_valid_p): Rename to ...
8340 (regcache_register_status): ... this. Adjust.
8341 (regcache_invalidate): Adjust.
8342 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8344 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8345 as unavailable, not valid.
8346 (regcache_dump): Adjust.
8347 * regcache.h (enum register_status): New.
8348 (regcache_register_status): Declare.
8349 (regcache_invalidate): Delete declaration.
8350 * corelow.c (get_core_registers): Adjust.
8351 * tracepoint.c (tfile_fetch_registers): Adjust.
8352 * trad-frame.c (REG_VALUE): Rename to ...
8353 (TF_REG_VALUE): ... this.
8354 (REG_UNKNOWN): Rename to ...
8355 (TF_REG_UNKNOWN): ... this.
8356 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8357 * mi/mi-main.c (register_changed_p): Adjust.
8359 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8361 * regcache.c (struct regcache_descr): Remove outdated comment.
8362 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8364 (regcache_xmalloc): Rename to ...
8365 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8366 Allocate the regcache type accordingly.
8367 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8368 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8369 cooked registers, not raw.
8370 (regcache_dup_no_passthrough): Delete.
8371 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8372 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8373 mention obsolete write_register_bytes.
8374 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8376 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8378 Stop remote_read_bytes from handling partial reads itself.
8380 * remote-fileio.c: Include target.h.
8381 (remote_fileio_write_bytes): Delete.
8382 (remote_fileio_func_open, remote_fileio_func_write)
8383 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8385 (remote_fileio_func_stat): Use target_read_memory and
8386 target_write_memory.
8387 (remote_fileio_func_gettimeofday): Use target_write_memory.
8388 (remote_fileio_func_system): Use target_read_memory.
8389 * remote.c (remote_write_bytes): Make it static.
8390 (remote_read_bytes): Don't handle partial reads here.
8391 * remote.h (remote_read_bytes): Delete declaration.
8393 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8395 Simplify XML parsing a bit.
8397 * xml-support.h (gdb_xml_parse_quick): Declare.
8398 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8399 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8401 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8402 gdb_xml_create_parser_and_cleanup_1.
8403 (gdb_xml_parse_quick): New.
8404 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8405 * osdata.c (osdata_parse): Ditto.
8406 * remote.c (remote_threads_info): Ditto.
8407 * solib-target.c (solib_target_parse_libraries): Ditto.
8408 * xml-syscall.c (syscall_parse_xml): Ditto.
8409 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8411 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8413 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8414 with remote-mips.o added to gdb_target_obs.
8415 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8417 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8419 * ada-valprint.c (val_print_packed_array_elements): Pass the
8420 correct struct value to val_print.
8421 (ada_val_print_1): Ditto.
8423 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8425 Don't lose embedded_offset in printing routines throughout.
8427 * valprint.h (val_print_array_elements): Change prototype.
8428 * valprint.c (val_print_array_elements): Add `embedded_offset'
8429 parameter, and adjust to pass it down to val_print, while passing
8430 `valaddr' or `address' unmodified. Take embedded_offset into
8431 account when checking repetitions.
8432 * c-valprint.c (c_val_print): Pass embedded_offset to
8433 val_print_array_elements instead of adjusting `valaddr' and
8435 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8436 embedded_offset to val_print_array_elements instead of adjusting
8438 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8439 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8440 val_print_array_elements and pascal_object_print_value_fields
8441 instead of adjusting `valaddr'.
8442 (pascal_object_print_value_fields): Add `offset' parameter, and
8444 (pascal_object_print_value): Add `offset' parameter, and adjust to
8446 (pascal_object_print_static_field): Use
8447 value_contents_for_printing/value_embedded_offset, rather than
8449 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8450 parameter, and adjust to use it. Use
8451 value_contents_for_printing/value_embedded_offset, rather than
8453 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8454 (ada_val_print_array): Add `offset' parameter, and adjust to use
8456 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8457 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8458 Instead work with offsets. Use
8459 value_contents_for_printing/value_embedded_offset, rather than
8460 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8461 and use value_from_pointer to extract a target pointer, rather
8462 than value_from_longest.
8463 (print_variant_part): Add `offset' parameter. Replace
8464 `outer_valaddr' parameter by a new `outer_offset' parameter.
8465 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8466 (ada_value_print): Use
8467 value_contents_for_printing/value_embedded_offset, rather than
8469 (print_record): Add `offset' parameter, and adjust to pass it
8471 (print_field_values): Add `offset' parameter. Replace
8472 `outer_valaddr' parameter by a new `outer_offset' parameter.
8473 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8474 Use value_contents_for_printing/value_embedded_offset, rather than
8476 * d-valprint.c (dynamic_array_type): Use
8477 value_contents_for_printing/value_embedded_offset, rather than
8479 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8480 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8481 (java_print_value_fields): Take `offset' into account. Don't
8482 re-adjust `valaddr'. Instead pass down adjusted offsets.
8483 (java_val_print): Take `embedded_offset' into account. Pass it to
8484 java_print_value_fields.
8485 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8486 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8487 down adjusted offsets.
8488 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8489 (f_val_print): Take `embedded_offset' into account.
8491 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8493 * inflow.c: Include "gdbcmd.h".
8494 (interactive_mode): New static global, moved here from top.c.
8495 (show_interactive_mode): New function, moved here from top.c.
8496 use gdb_has_a_terminal instead of input_from_terminal_p to
8497 determine the current mode.
8498 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8500 (_initialize_inflow): Add the "set/show interactive-mode"
8501 commands. Moved here from top.c, after having adjusted slightly
8503 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8505 (input_from_terminal_p): Remove handling of "interactive-mode"
8506 setting, moved to infow.c.
8507 (init_main): Remove creation of the "set/show interactive-mode"
8508 commands, moved to inflow.c.
8510 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8512 * NEWS: Add entry for native ia64-hpux support.
8514 2011-01-19 Tom Tromey <tromey@redhat.com>
8517 * thread.c (free_thread): Free 'name'.
8518 (print_thread_info): Emit thread name. Change CLI output.
8519 (thread_name_command): New function.
8520 (do_captured_thread_select): Emit newline.
8521 (_initialize_thread): Register 'thread name' command.
8522 * target.h (struct target_ops) <to_thread_name>: New field.
8523 (target_thread_name): New macro.
8524 * target.c (update_current_target): Handle to_thread_name.
8525 * python/py-infthread.c (thpy_get_name): New function.
8526 (thpy_set_name): Likewise.
8527 (thread_object_getset): Add "name".
8528 * linux-nat.c (linux_nat_thread_name): New function.
8529 (linux_nat_add_target): Set to_thread_name.
8530 * gdbthread.h (struct thread_info) <name>: New field.
8532 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8534 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8535 (ada_val_print_1): Likewise.
8537 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8539 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8540 upper limit address is not greater than the function end address
8541 when the upper limit could not be computed using the debugging
8544 2011-01-17 Tom Tromey <tromey@redhat.com>
8546 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8548 * utils.c: Include gdb_regex.h.
8549 (do_regfree_cleanup): New function.
8550 (make_regfree_cleanup): Likewise.
8551 (get_regcomp_error): Likewise.
8552 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8554 2011-01-17 Tom Tromey <tromey@redhat.com>
8556 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8559 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8561 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8562 for internal variables.
8563 (last_was_structop): New static variable.
8564 (COMPLETE): New token.
8565 (field_exp): New rule to group all '.' suffix handling.
8566 Add mark_struct_expression calls when approriate to be able
8567 to correctly find fields for completion.
8568 (yylex): Adapt to handle field completion and set INTVAR when
8571 2011-01-14 Yao Qi <yao@codesourcery.com>
8573 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8574 save_reggroup, restore_reggroup and all_reggroup.
8576 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8578 * ada-valprint. (ada_printchar): Use the correct type length
8579 in call to ada_emit_char.
8580 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8582 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8584 * solib-som.h (hpux_major_release): Declare variable here.
8585 * solib-som.c: Remove <sys/utsname.h> header.
8586 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8587 (hpux_major_release): Make global, change default value to
8588 DEFAULT_HPUX_MAJOR_RELEASE.
8589 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8590 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8591 Add "solib-som.h" header.
8592 (set_hpux_major_release): New function.
8593 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8595 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8597 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8599 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8601 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8602 new-line at end of warning message.
8603 (ia64_hpux_store_register): Remove trailing new-line at end of
8605 * ia64-hpux-tdep.c: Rephrase comment.
8606 * solib-ia64-hpux.c (struct dld_info): Change type of field
8607 dld_flags from "long long" to ULONGEST.
8609 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8611 * target.h (deprecated_child_ops): Delete declaration.
8612 * target.c (deprecated_child_ops): Delete definition.
8614 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8616 * Makefile.in (hpux-thread.o): Delete rule.
8617 * configure.ac: Don't check for HPUX DCE threads support.
8618 * configure, config.in: Regenerate.
8619 * hppa-hpux-nat.c (child_suppress_run): Delete.
8620 (hppa_hpux_child_can_run): Delete.
8621 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8622 * hpux-thread.c: Delete.
8624 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8626 * hpux-thread.c (hpux_pid_to_str): Delete.
8628 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8630 * ada-valprint.c (ada_emit_char): Remove strange code.
8631 Check that c is <= UCHAR_MAX before passing it to isascii.
8632 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8634 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8636 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8637 to the case where instream is stdin.
8639 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8641 * ia64-tdep.h (struct regcache): Forward declare.
8642 (struct ia64_infcall_ops): New struct type.
8643 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8645 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8646 Renames ia64_find_global_pointer.
8647 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8648 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8649 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8651 (ia64_infcall_ops): New static global constant.
8652 (ia64_gdbarch_init): Set tdep->infcall_ops.
8653 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8654 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8655 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8656 (ia64_hpux_dummy_code): New static global constant.
8657 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8658 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8659 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8661 (ia64_hpux_infcall_ops): New static global constant.
8662 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8663 for inferior function calls to work properly on ia64-hpux.
8665 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8667 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8668 * ia64-tdep.h (struct frame_info): forward declaration.
8669 (struct gdbarch_tdep): Add field size_of_register_frame.
8670 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8671 to determine the size of the register frame.
8672 (ia64_size_of_register_frame): New function.
8673 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8674 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8675 (IA64_HPUX_UREG_REASON): New macro.
8676 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8678 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8679 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8680 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8683 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8685 Add support for ia64-hpux.
8686 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8687 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8689 * configure.host: Add handling for ia64-hpux hosts. Add associated
8691 * configure.tgt: Add handling for ia64-hpux targets.
8692 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8693 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8694 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8696 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8698 [ttrace] Compute thread list immediately after attach.
8699 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8701 (inf_ttrace_attach): Use it.
8703 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8705 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8706 if we could not determine the frame's function address. Instead,
8707 use the frame's PC, and then continue.
8709 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8711 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8712 not already defined.
8714 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8716 * ia64-tdep.c (ia64_struct_type_p): New function.
8717 (ia64_extract_return_value): Handle integral values that are
8718 less than 8 bytes long.
8719 (ia64_push_dummy_call): Likewise.
8721 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8723 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8724 floatformat_ia64_ext.
8725 (floatformat_ia64_ext_big): New static const.
8726 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8728 2011-01-12 Tom Tromey <tromey@redhat.com>
8730 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8732 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8733 (mi_cmd_thread_list_ids): Likewise.
8734 (mi_cmd_data_list_changed_registers): Likewise.
8735 (mi_cmd_data_list_register_values): Likewise.
8736 (mi_cmd_data_write_register_values): Likewise.
8737 (mi_cmd_data_evaluate_expression): Likewise.
8738 (mi_cmd_data_read_memory): Likewise.
8739 (mi_cmd_data_read_memory_bytes): Likewise.
8740 (mi_cmd_data_write_memory): Likewise.
8741 (mi_cmd_enable_timings): Likewise.
8742 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8743 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8744 (mi_cmd_var_delete): Likewise.
8745 (mi_cmd_var_set_format): Likewise.
8746 (mi_cmd_var_show_format): Likewise.
8747 (mi_cmd_var_info_num_children): Likewise.
8748 (mi_cmd_var_list_children): Likewise.
8749 (mi_cmd_var_info_type): Likewise.
8750 (mi_cmd_var_info_expression): Likewise.
8751 (mi_cmd_var_show_attributes): Likewise.
8752 (mi_cmd_var_assign): Likewise.
8753 (mi_cmd_var_update): Likewise.
8754 (mi_cmd_enable_pretty_printing): Likewise.
8755 (mi_cmd_var_set_update_range): Likewise.
8756 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8758 (mi_cmd_target_file_put): Likewise.
8759 (mi_cmd_target_file_delete): Likewise.
8760 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8762 (mi_cmd_stack_info_depth): Likewise.
8763 (mi_cmd_stack_list_locals): Likewise.
8764 (mi_cmd_stack_list_args): Likewise.
8765 (mi_cmd_stack_select_frame): Likewise.
8766 (mi_cmd_stack_select_frame): Likewise.
8767 (mi_cmd_stack_info_frame): Likewise.
8768 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8770 (mi_cmd_file_list_exec_source_files): Likewise.
8771 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8772 (mi_cmd_env_cd): Likewise.
8773 (mi_cmd_env_path): Likewise.
8774 (mi_cmd_env_dir): Likewise.
8775 (mi_cmd_inferior_tty_show): Likewise.
8776 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8777 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8778 (mi_cmd_break_watch): Likewise.
8780 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8782 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8783 (ppc_linux_insert_hw_breakpoint): Likewise.
8784 (ppc_linux_remove_hw_breakpoint): Likewise.
8785 (ppc_linux_insert_watchpoint): Likewise.
8787 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8788 Jan Kratochvil <jan.kratochvil@redhat.com>
8790 PR fortran/11104 and DWARF unbound arrays detection.
8791 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8792 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8793 unspecified upper bound.
8794 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8795 variables array_size_array, tmp_type and offset_item. New variable
8796 array. Remove call to f77_get_upperbound. New variables array_type
8797 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8798 the final call to deprecated_set_value_type.
8800 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8802 Make value allocations more lazy.
8803 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8804 instead of allocate_value and set_value_lazy when possible.
8805 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8806 instead of allocate_value and set_value_lazy.
8807 * findvar.c (value_of_register_lazy): Likewise.
8808 (read_var_value): Remove V preallocation, call just check_typedef in
8809 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8810 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8811 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8812 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8813 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8814 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8815 the end, remove set_value_lazy there.
8816 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8817 instead of allocate_value and set_value_lazy when possible.
8818 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8819 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8820 of allocate_value and set_value_lazy.
8821 (value_from_contents_and_address): Use allocate_value_lazy instead of
8822 allocate_value and set_value_lazy when possible.
8824 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8826 * disasm.c (dump_insns): Support dumping opcodes for MI.
8827 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8828 dumping of instruction opcodes.
8830 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8832 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8835 2011-01-11 Tom Tromey <tromey@redhat.com>
8837 * thread.c (do_captured_thread_select): Emit newline before
8840 2011-01-11 Michael Snyder <msnyder@vmware.com>
8842 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8843 * score-tdep.c: Ditto.
8844 * score-tdep.h: Ditto.
8845 * ser-base.c: Ditto.
8846 * ser-go32.c: Ditto.
8849 * ser-mingw.c: Ditto.
8850 * ser-pipe.c: Ditto.
8852 * ser-unix.c: Ditto.
8853 * sh64-tdep.c: Ditto.
8854 * shnbsd-nat.c: Ditto.
8858 * solib-darwin.c: Ditto.
8859 * solib-frv.c: Ditto.
8861 * solib-irix.c: Ditto.
8862 * solib-osf.c: Ditto.
8863 * solib-pa64.c: Ditto.
8864 * solib-som.c: Ditto.
8865 * solib-spu.c: Ditto.
8866 * solib-sunos.c: Ditto.
8867 * solib-svr4.c: Ditto.
8869 * sol-thread.c: Ditto.
8873 * sparc64-linux-tdep.c: Ditto.
8874 * sparc64-tdep.c: Ditto.
8875 * sparc-linux-nat.c: Ditto.
8876 * sparc-linux-tdep.c: Ditto.
8877 * sparc-sol2-nat.c: Ditto.
8878 * sparc-sol2-tdep.c: Ditto.
8879 * sparc-tdep.c: Ditto.
8880 * sparc-tdep.h: Ditto.
8881 * spu-tdep.c: Ditto.
8882 * stabsread.c: Ditto.
8883 * stabsread.h: Ditto.
8891 * target-descriptions.c: Ditto.
8892 * target-descriptions.h: Ditto.
8894 * target-memory.c: Ditto.
8895 * terminal.h: Ditto.
8898 * tracepoint.c: Ditto.
8899 * tracepoint.h: Ditto.
8900 * trad-frame.h: Ditto.
8901 * typeprint.c: Ditto.
8903 2011-01-11 Michael Snyder <msnyder@vmware.com>
8905 * ui-file.c: Comment cleanup, mostly periods and spaces.
8910 * v850-tdep.c: Ditto.
8911 * valarith.c: Ditto.
8913 * valprint.c: Ditto.
8914 * valprint.h: Ditto.
8919 * vax-tdep.c: Ditto.
8923 * windows-nat.c: Ditto.
8924 * windows-tdep.c: Ditto.
8925 * xcoffread.c: Ditto.
8926 * xcoffsolib.c: Ditto.
8927 * xml-support.c: Ditto.
8928 * xstormy16-tdep.c: Ditto.
8929 * xtensa-tdep.c: Ditto.
8930 * xtensa-tdep.h: Ditto.
8932 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8934 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8935 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8937 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8938 Thiago Jung Bauermann <bauerman@br.ibm.com>
8940 Implement support for PowerPC BookE ranged watchpoints.
8942 (struct breakpoint_ops) <resources_needed>: New method.
8943 Initialize to NULL in all existing breakpoint_ops instances.
8944 (struct breakpoint) <exact>: New field.
8945 (target_exact_watchpoints): Declare external global.
8946 * breakpoint.c (target_exact_watchpoints): New global flag.
8947 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8948 b->enable_state to bp_enabled before calling
8949 hw_watchpoint_used_count.
8950 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8951 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8953 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8954 if the watchpoint is exact.
8955 (resources_needed_watchpoint): New function.
8956 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8957 (watch_command_1): Set b->exact if the user asked for an exact
8958 watchpoint and one can be set.
8959 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8960 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8961 the user asks for an exact watchpoint and one can be set. Return
8962 number of needed debug registers to watch the expression.
8963 * gdbtypes.c (is_scalar_type): New function, based on
8964 valprint.c:scalar_type_p.
8965 (is_scalar_type_recursive): New function.
8966 * gdbtypes.h (is_scalar_type_recursive): Declare.
8967 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8968 handle regions when ranged watchpoints are available.
8969 (create_watchpoint_request): New function.
8970 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8971 create_watchpoint_request.
8972 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8973 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8974 `set powerpc' and `show powerpc' commands.
8975 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8976 Mention documentation comment in the target macro.
8977 (target_region_ok_for_hw_watchpoint): Document return value.
8979 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8981 * breakpoint.c (update_watchpoint): Decide on using a software or
8982 hardware watchpoint after the bp_locations are created.
8984 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8986 Convert hardware watchpoints to use breakpoint_ops.
8987 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8988 <insert_location>: ... this. Return int instead of void.
8989 Accept pointer to struct bp_location instead of pointer to
8990 struct breakpoint. Adapt all implementations.
8991 (breakpoint_ops) <remove>: Rename to...
8992 <remove_location>: ... this. Accept pointer to struct bp_location
8993 instead of pointer to struct breakpoint. Adapt all implementations.
8994 * breakpoint.c (insert_catchpoint): Delete function.
8995 (insert_bp_location): Call the watchpoint or catchpoint's
8996 breakpoint_ops.insert method.
8997 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8998 breakpoint_ops.remove method.
8999 (insert_watchpoint, remove_watchpoint): New functions.
9000 (watchpoint_breakpoint_ops): New structure.
9001 (watch_command_1): Initialize the OPS field.
9002 * inf-child.c (inf_child_insert_fork_catchpoint)
9003 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9004 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9005 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9007 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9008 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9009 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9010 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9011 * target.c (update_current_target): Change default implementation of
9012 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9013 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9014 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9015 to_set_syscall_catchpoint to return_one.
9016 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9017 (debug_to_insert_exec_catchpoint): Report return value.
9018 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9019 (to_insert_exec_catchpoint): Change declaration to return int instead
9022 2011-01-11 Michael Snyder <msnyder@vmware.com>
9024 * arm-tdep.c: Internationalization.
9027 * fork-child.c: Ditto.
9028 * nto-procfs.c: Ditto.
9029 * ppc-sysv-tdep.c: Ditto.
9031 * remote-mips.c: Ditto.
9033 * rs6000-nat.c: Ditto.
9034 * rs6000-tdep.c: Ditto.
9038 * xml-support.c: Ditto.
9039 * mi/mi-cmd-break.c: Ditto.
9040 * mi/mi-cmd-var.c: Ditto.
9041 * mi/mi-interp.c: Ditto.
9042 * mi/mi-main.c: Ditto.
9044 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9046 * remote-sim.c (gdbsim_store_register): Update API to
9047 sim_store_register to check more error conditions.
9049 2011-01-10 Michael Snyder <msnyder@vmware.com>
9051 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9052 * nto-tdep.c: Ditto.
9053 * nto-tdep.h: Ditto.
9054 * objc-exp.y: Ditto.
9055 * objc-lang.c: Ditto.
9056 * objfiles.c: Ditto.
9057 * objfiles.h: Ditto.
9058 * observer.c: Ditto.
9059 * opencl-lang.c: Ditto.
9062 * parser-defs.h: Ditto.
9065 * posix-hdep.c: Ditto.
9066 * ppcbug-rom.c: Ditto.
9067 * ppc-linux-nat.c: Ditto.
9068 * ppc-linux-tdep.c: Ditto.
9069 * ppc-linux-tdep.h: Ditto.
9070 * ppcnbsd-tdep.c: Ditto.
9071 * ppcobsd-tdep.c: Ditto.
9072 * ppcobsd-tdep.h: Ditto.
9073 * ppc-sysv-tdep.c: Ditto.
9074 * ppc-tdep.h: Ditto.
9075 * printcmd.c: Ditto.
9076 * proc-abi.c: Ditto.
9077 * proc-flags.c: Ditto.
9079 * proc-utils.h: Ditto.
9080 * progspace.h: Ditto.
9081 * prologue-value.c: Ditto.
9082 * prologue-value.h: Ditto.
9083 * psympriv.h: Ditto.
9085 * p-typeprint.c: Ditto.
9086 * p-valprint.c: Ditto.
9087 * ravenscar-sparc-thread.c: Ditto.
9088 * ravenscar-thread.c: Ditto.
9089 * ravenscar-thread.h: Ditto.
9091 * regcache.c: Ditto.
9092 * regcache.h: Ditto.
9094 * remote-fileio.c: Ditto.
9095 * remote-fileio.h: Ditto.
9097 * remote-m32r-sdi.c: Ditto.
9098 * remote-mips.c: Ditto.
9099 * remote-sim.c: Ditto.
9100 * rs6000-aix-tdep.c: Ditto.
9101 * rs6000-nat.c: Ditto.
9102 * rs6000-tdep.c: Ditto.
9104 2011-01-10 Michael Snyder <msnyder@vmware.com>
9106 * charset.c (validate): Internationalization.
9107 * coffread.c (read_one_sym): Ditto.
9108 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9109 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9110 * inflow.c (new_tty): Ditto.
9111 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9112 * m32c-tdep.c (m32c_return_value): Ditto.
9113 * mep-tdep.c (mep_store_return_value): Ditto.
9114 * score-tdep.c (score7_fetch_insn): Ditto.
9115 * ser-mingw.c (pipe_windows_open): Ditto.
9116 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9117 * spu-tdep.c (spu_register_type): Ditto.
9118 * tracepoint.c (trace_find_command): Ditto.
9119 * valarith.c (value_pos): Ditto.
9121 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9123 * ada-valprint.c (printstr): Minor comment reformatting.
9125 2011-01-08 Michael Snyder <msnyder@vmware.com>
9127 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9130 2011-01-08 Michael Snyder <msnyder@vmware.com>
9132 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9133 * hppa-hpux-tdep.c: Ditto.
9134 * hppa-linux-nat.c: Ditto.
9135 * hppa-linux-tdep.c: Ditto.
9136 * hppanbsd-tdep.c: Ditto.
9137 * hppa-tdep.c: Ditto.
9138 * hppa-tdep.h: Ditto.
9139 * hpux-thread.c: Ditto.
9140 * i386-cygwin-tdep.c: Ditto.
9141 * i386-darwin-nat.c: Ditto.
9142 * i386gnu-nat.c: Ditto.
9143 * i386-linux-nat.c: Ditto.
9144 * i386-linux-tdep.c: Ditto.
9145 * i386-nat.c: Ditto.
9146 * i386-nat.h: Ditto.
9147 * i386nbsd-tdep.c: Ditto.
9148 * i386-sol2-nat.c: Ditto.
9149 * i386-stub.c: Ditto.
9150 * i386-tdep.c: Ditto.
9151 * i386-tdep.h: Ditto.
9152 * i387-tdep.c: Ditto.
9153 * ia64-linux-nat.c: Ditto.
9154 * ia64-linux-tdep.c: Ditto.
9155 * ia64-tdep.c: Ditto.
9159 * inferior.c: Ditto.
9160 * inferior.h: Ditto.
9166 * iq2000-tdep.c: Ditto.
9167 * irix5-nat.c: Ditto.
9173 * jv-typeprint.c: Ditto.
9174 * jv-valprint.c: Ditto.
9175 * language.c: Ditto.
9176 * language.h: Ditto.
9177 * linespec.c: Ditto.
9178 * linux-fork.c: Ditto.
9179 * linux-nat.c: Ditto.
9180 * linux-thread-db.c: Ditto.
9181 * lm32-tdep.c: Ditto.
9183 2011-01-08 Michael Snyder <msnyder@vmware.com>
9185 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9187 * m2-typeprint.c: Ditto.
9188 * m2-valprint.c: Ditto.
9189 * m32c-tdep.c: Ditto.
9190 * m32r-linux-nat.c: Ditto.
9191 * m32r-rom.c: Ditto.
9192 * m32r-tdep.c: Ditto.
9193 * m32r-tdep.h: Ditto.
9194 * m68hc11-tdep.c: Ditto.
9195 * m58klinux-nat.c: Ditto.
9196 * m68k-tdep.c: Ditto.
9197 * m88k-tdep.c: Ditto.
9198 * m88k-tdep.h: Ditto.
9199 * machoread.c: Ditto.
9200 * macrocmd.c: Ditto.
9201 * macroexp.c: Ditto.
9202 * macrotab.c: Ditto.
9205 * mdebugread.c: Ditto.
9206 * mdebugread.h: Ditto.
9209 * memory-map.h: Ditto.
9210 * mep-tdep.c: Ditto.
9211 * microblaze-rom.c: Ditto.
9212 * microblaze-tdep.c: Ditto.
9214 * mips-irix-tdep.c: Ditto.
9215 * mips-linux-nat.c: Ditto.
9216 * mips-linux-tdep.c: Ditto.
9217 * mips-linux-tdep.h: Ditto.
9218 * mipsnbsd-nat.c: Ditto.
9219 * mipsnbsd-tdep.c: Ditto.
9220 * mipsread.c: Ditto.
9221 * mips-tdep.c: Ditto.
9222 * mips-tdep.h: Ditto.
9223 * mn10300-linux-tdep.c: Ditto.
9224 * mn10300-tdep.c: Ditto.
9225 * mn10300-tdep.h: Ditto.
9228 * moxie-tdep.c: Ditto.
9229 * moxie-tdep.h: Ditto.
9232 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9234 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9236 2011-01-08 Robert Millan <rmh@gnu.org>
9238 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9240 2011-01-07 Michael Snyder <msnyder@vmware.com>
9242 * charset.c (_initialize_charset): Fix typo in string.
9244 2011-01-07 Michael Snyder <msnyder@vmware.com>
9246 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9248 * tui/tui-layout.c (tui_set_layout_for_display_command):
9249 Split line so that operator goes to beginning of line.
9250 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9251 assignment out of if statement.
9253 2011-01-07 Michael Snyder <msnyder@vmware.com>
9255 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9256 * ada-lang.h: Ditto.
9257 * ada-tasks.c: Ditto.
9258 * ada-valprint.c: Ditto.
9259 * aix-threads.c: Ditto.
9260 * alpha-linux-nat.c: Ditto.
9261 * alpha-linux-tdep.c: Ditto.
9262 * alpha-mdebug-tdep.c: Ditto.
9263 * alpha-nat.c: Ditto.
9264 * alpha-osf1-tdep.c: Ditto.
9265 * alpha-tdep.c: Ditto.
9266 * alphabsd-nat.c: Ditto.
9267 * alphabsd-tdep.c: Ditto.
9268 * amd64-darwin-tdep.c: Ditto.
9269 * amd64-linux-nat.c: Ditto.
9270 * amd64-linux-tdep.c: Ditto.
9271 * amd64-sol2-tdep.c: Ditto.
9272 * amd64-tdep.c: Ditto.
9273 * amd64-fbsd-tdep.c: Ditto.
9274 * amd64-nbsd-tdep.c: Ditto.
9275 * amd64-obsd-tdep.c: Ditto.
9276 * amd64-linux-nat.c: Ditto.
9277 * amd64-linux-tdep.c: Ditto.
9278 * arm-tdep.c: Ditto.
9279 * arm-tdep.h: Ditto.
9280 * armnbsd-nat.c: Ditto.
9281 * avr-tdep.c: Ditto.
9282 * bfin-tdep.c: Ditto.
9284 * c-typeprintc: Ditto.
9285 * c-valprint.c: Ditto.
9286 * coff-pe-read.h: Ditto.
9287 * coffreead.c: Ditto.
9288 * cris-tdep.c: Ditto.
9290 * darwin-nat-info.c: Ditto.
9291 * darwin-nat.c: Ditto.
9292 * dbug-rom.c: Ditto.
9296 * dec-thread.c: Ditto.
9298 * demangle.c: Ditto.
9299 * dicos-tdep.c: Ditto.
9300 * dictionary.c: Ditto.
9301 * dictionary.h: Ditto.
9302 * dink32-rom.c: Ditto.
9304 * doublest.c: Ditto.
9306 * dummy-frame.c: Ditto.
9307 * dwarf2-frame.c: Ditto.
9308 * dwarf2expr.c: Ditto.
9309 * dwarf2loc.c: Ditto.
9310 * dwarf2read.c: Ditto.
9314 * event-top.h: Ditto.
9315 * exceptions.c: Ditto.
9316 * exceptions.h: Ditto.
9318 * expprint.c: Ditto.
9319 * expression.h: Ditto.
9323 * f-typeprint.c: Ditto.
9324 * f-valprint.c: Ditto.
9325 * fbsd-nat.c: Ditto.
9327 * fork-child.c: Ditto.
9330 * frv-linux-tdep.c: Ditto.
9331 * frv-tdep.c: Ditto.
9333 * gdb-stabs.h: Ditto.
9334 * gdb_assert.h: Ditto.
9335 * gdb_string.h: Ditto.
9336 * gdb_thread_db.h: Ditto.
9337 * gdb_wait.h: Ditto.
9338 * gdbarch.sh: Ditto.
9340 * gdbthread.h: Ditto.
9341 * gdbtypes.c: Ditto.
9342 * gdbtypes.h: Ditto.
9345 * gnu-v2-abi.c: Ditto.
9346 * gnu-v3-abi.c: Ditto.
9347 * go32-nat.c: Ditto.
9348 * gdbarch.c: Regenerate.
9349 * gdbarch.h: Regenerate.
9351 2011-01-07 Michael Snyder <msnyder@vmware.com>
9353 * ax-gdb.c: Adjust some long output strings.
9354 * breakpoint.c: Ditto.
9359 * linux-nat.c: Ditto.
9360 * solib-pa64.c: Ditto.
9361 * solib-som.c: Ditto.
9363 2011-01-06 Tom Tromey <tromey@redhat.com>
9367 * python/python.c (GdbMethods): Add "newest_frame" method.
9368 * python/python-internal.h (gdbpy_newest_frame): Declare.
9369 * python/py-frame.c (gdbpy_newest_frame): New function.
9371 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9373 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9374 * jit.c (jit_debug): New variable.
9375 (show_jit_debug): New function.
9376 (struct target_buffer): Use ULONGEST.
9377 (bfd_open_from_target_memory): Likewise.
9378 (jit_register_code, jit_inferior_init): Add debug output.
9379 (_initialize_jit): Register "debug jit" command.
9381 2011-01-06 Tom Tromey <tromey@redhat.com>
9383 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9384 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9387 2011-01-06 Tom Tromey <tromey@redhat.com>
9389 * python/py-frame.c (frapy_block): Use get_frame_block.
9391 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9393 Do not stop on SIGPRIO signals by default
9394 * infrun.c (_initialize_infrun): Unset signal_stop and
9395 signal_print for TARGET_SIGNAL_PRIO.
9397 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9399 * ada-tasks.c: Fix style violation in comment.
9401 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9403 * linespec.c (decode_compound, find_method): Remove trailing \n
9404 at end of error string.
9405 * solib-irix.c (irix_current_sos): Likewise.
9406 * varobj.c (uninstall_variable): Likewise.
9408 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9410 * copyright.py: New script.
9411 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9412 Launch emacs without exec'ing. Call copyright.py afterwards.
9414 2011-01-05 Michael Snyder <msnyder@vmware.com>
9416 * addrmap.c: Shorten lines of >= 80 columns.
9417 * arch-utils.c: Ditto.
9418 * arch-utils.h: Ditto.
9420 * ax-general.c: Ditto.
9422 * blockframe.c: Ditto.
9423 * breakpoint.c: Ditto.
9424 * buildsym.c: Ditto.
9426 * c-typeprint.c: Ditto.
9428 * coffread.c: Ditto.
9432 * cp-namespace.c: Ditto.
9433 * cp-support.c: Ditto.
9434 * dbug-rom.c: Ditto.
9439 * dictionary.c: Ditto.
9441 * doublest.c: Ditto.
9442 * dwarf2-frame.c: Ditto.
9443 * dwarf2expr.c: Ditto.
9444 * dwarf2loc.c: Ditto.
9445 * dwarf2read.c: Ditto.
9448 * event-loop.c: Ditto.
9449 * event-loop.h: Ditto.
9450 * exceptions.h: Ditto.
9452 * expprint.c: Ditto.
9453 * expression.h: Ditto.
9455 * f-valprint.c: Ditto.
9457 * frame-base.c: Ditto.
9458 * frame-unwind.c: Ditto.
9459 * frame-unwind.h: Ditto.
9463 * gdb-stabs.h: Ditto.
9464 * gdb_assert.h: Ditto.
9465 * gdb_dirent.h: Ditto.
9466 * gdb_obstack.h: Ditto.
9468 * gdbtypes.c: Ditto.
9469 * gdbtypes.h: Ditto.
9470 * inf-ttrace.c: Ditto.
9475 * inline-frame.h: Ditto.
9476 * language.c: Ditto.
9477 * language.h: Ditto.
9478 * libunwind-frame.c: Ditto.
9479 * libunwind-frame.h: Ditto.
9480 * linespec.c: Ditto.
9481 * linux-nat.c: Ditto.
9482 * linux-nat.h: Ditto.
9483 * linux-thread-db.c: Ditto.
9484 * machoread.c: Ditto.
9485 * macroexp.c: Ditto.
9486 * macrotab.c: Ditto.
9489 * mdebugread.c: Ditto.
9494 * objfiles.c: Ditto.
9495 * objfiles.h: Ditto.
9497 * p-typeprint.c: Ditto.
9498 * p-valprint.c: Ditto.
9500 * printcmd.c: Ditto.
9501 * proc-events.c: Ditto.
9503 * progspace.c: Ditto.
9504 * progspace.h: Ditto.
9505 * psympriv.h: Ditto.
9508 * regcache.c: Ditto.
9509 * regcache.h: Ditto.
9510 * remote-fileio.c: Ditto.
9512 * ser-mingw.c: Ditto.
9514 * ser-unix.c: Ditto.
9517 * solib-frv.c: Ditto.
9518 * solib-irix.c: Ditto.
9519 * solib-osf.c: Ditto.
9520 * solib-pa64.c: Ditto.
9521 * solib-som.c: Ditto.
9522 * solib-sunos.c: Ditto.
9523 * solib-svr4.c: Ditto.
9524 * solib-target.c: Ditto.
9528 * stabsread.c: Ditto.
9529 * stabsread.c: Ditto.
9532 * symfile-mem.c: Ditto.
9538 * target-descriptions.c: Ditto.
9539 * target-memory.c: Ditto.
9542 * terminal.h: Ditto.
9545 * tracepoint.c: Ditto.
9546 * tracepoint.h: Ditto.
9550 * user-regs.c: Ditto.
9551 * user-regs.h: Ditto.
9553 * valarith.c: Ditto.
9555 * valprint.c: Ditto.
9556 * valprint.h: Ditto.
9561 * xcoffread.c: Ditto.
9562 * xcoffsolib.c: Ditto.
9563 * xcoffsolib.h: Ditto.
9564 * xml-syscall.c: Ditto.
9565 * xml-tdesc.c: Ditto.
9567 2011-01-05 Michael Snyder <msnyder@vmware.com>
9569 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9570 * cli/cli-decode.c: Ditto.
9571 * cli/cli-dump.c: Ditto.
9572 * cli/cli-logging.c: Ditto.
9573 * cli/cli-script.c: Ditto.
9574 * cli/cli-setshow.c: Ditto.
9575 * common/signals.c: Ditto.
9576 * mi/mi-cmd-break.c: Ditto.
9577 * mi/mi-cmd-disas.c: Ditto.
9578 * mi/mi-cmd-stack.c: Ditto.
9579 * mi/mi-cmd-var.c: Ditto.
9580 * mi/mi-cmds.c: Ditto.
9581 * mi/mi-common.h: Ditto.
9582 * mi/mi-console.c: Ditto.
9583 * mi/mi-interp.c: Ditto.
9584 * mi/mi-main.c: Ditto.
9585 * osf-share/cma_attr.c: Ditto.
9586 * osf-share/cma_deb_core.h: Ditto.
9587 * osf-share/cma_debug_client.h: Ditto.
9588 * osf-share/cma_handle.h: Ditto.
9589 * osf-share/cma_mutex.h: Ditto.
9590 * osf-share/cma_stack_int.h: Ditto.
9591 * osf-share/cma_tcb_defs.h: Ditto.
9592 * python/py-auto-load.c: Ditto.
9593 * python/py-breakpoint.c: Ditto.
9594 * python/py-cmd.c: Ditto.
9595 * python/py-frame.c: Ditto.
9596 * python/py-objfile.c: Ditto.
9597 * python/py-param.c: Ditto.
9598 * python/py-progspace.c: Ditto.
9599 * python/py-symbol.c: Ditto.
9600 * python/py-value.c: Ditto.
9601 * python/python-internal.h: Ditto.
9602 * python/python.c: Ditto.
9603 * tui/tui-data.c: Ditto.
9604 * tui/tui-disasm.c: Ditto.
9605 * tui/tui-hooks.c: Ditto.
9606 * tui/tui-io.c: Ditto.
9607 * tui/tui-layout.c: Ditto.
9608 * tui/tui-regs.c: Ditto.
9609 * tui/tui-source.c: Ditto.
9610 * tui/tui-stack.c: Ditto.
9611 * tui/tui-win.c: Ditto.
9612 * tui/tui-windata.c: Ditto.
9613 * tui/tui-winsource.c: Ditto.
9615 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9617 * configure.ac, gdb.1: Copyright year update.
9619 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9621 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9622 this_pc_in_block, morestack_msym and morestack_name. Check for
9623 "__morestack" minimal symbol there.
9625 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9627 * symfile.c (find_sym_fns): Add call to dont_repeat.
9629 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9631 Copyright year update in most files (performed by copyright.sh).
9633 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9635 * top.c (print_gdb_version): Update copyright year in version output.
9637 For older changes see ChangeLog-2010.
9643 version-control: never