1 2011-10-02 Joel Brobecker <brobecker@adacore.com>
3 * breakpoint.c (bkpt_print_recreate): Add call to
6 2011-09-29 Mike Frysinger <vapier@gentoo.org>
8 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
9 PTRACE_GETFDPIC_INTERP): Define.
11 2011-09-28 Yao Qi <yao@codesourcery.com>
13 * symfile.c (add_symbol_file_command): Update message on usage.
15 2011-09-28 Paul Koning <paul_koning@dell.com>
17 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
18 (typy_length, typy_get, typy_has_key, typy_make_iter)
19 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
20 (typy_iterator_iter, typy_iterator_iternext)
21 (typy_iterator_dealloc): New functions to implement standard
22 Python mapping methods on gdb.Type object.
23 (gdb.TypeIterator): New Python type.
24 * python/python-internal.h (gdbpy_iter_kind): New enum.
25 * doc/gdb.texinfo (gdb.Type): Document field access by dictionary
28 2011-09-28 David S. Miller <davem@davemloft.net>
30 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
31 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
32 * sparc-tdep.c (sparc_complex_floating_p): New function.
33 (sparc32_store_arguments): Handle complex floats.
34 (sparc32_extract_return_value): Likewise.
35 (sparc32_store_return_value): Likewise.
36 (sparc32_stabs_argument_has_addr): Likewise.
37 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
38 (sparc64_store_floating_fields): Handle complex floats.
39 (sparc64_store_arguments): Likewise.
40 (sparc64_store_return_value): Likewise.
42 2011-09-28 Eli Zaretskii <eliz@gnu.org>
44 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
45 before the change on 2006-12-09.
46 (windows_create_inferior) [!__CYGWIN__]: Restore code that
47 generates the environment block for CreateProcessA, modulo the
48 Cygwin-specific parts that are not needed here.
50 2011-09-27 Tristan Gingold <gingold@adacore.com>
52 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
53 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
54 (darwin_solib_get_all_image_info_addr_at_init): New function.
55 (darwin_solib_read_all_image_info_addr): Likewise.
56 (darwin_solib_create_inferior_hook): Use the above two functions.
57 * darwin-nat.c (darwin_execvp): Renames retval to res.
58 (darwin_read_write_inferior): Update comment.
59 (darwin_read_dyld_info): New function.
60 (darwin_xfer_partial): Handle DYLD_INFO.
62 2011-09-27 Stan Shebs <stan@codesourcery.com>
64 Add return address collection for tracepoints.
65 * tracepoint.c (encode_actions_1): Add case for $_ret.
66 (validate_actionline): Check for $_ret.
67 (trace_dump_actions): Ditto.
68 * ax-gdb.h (gen_trace_for_return_address): Declare.
69 * ax-gdb.c: Include arch-utils.h.
70 (gen_trace_for_return_address): New function.
71 (agent_command): Add return address special case.
72 * amd64-tdep.c: Include ax.h and ax-gdb.h.
73 (amd64_gen_return_address): New function.
74 (amd64_init_abi): Call it.
75 * i386-tdep.c: Include ax.h and ax-gdb.h.
76 (i386_gen_return_address): New function.
77 (i386_init_abi): Call it.
78 * arch-utils.h (default_gen_return_address): Declare.
79 * arch-utils.c (default_gen_return_address): New function.
80 * gdbarch.sh (gen_return_address): New method.
81 * gdbarch.h, gdbarch.c: Regenerate.
83 2011-09-23 Joseph Myers <joseph@codesourcery.com>
86 * i386-tdep.c (i386_frame_align): New.
87 (i386_gdbarch_init): Use i386_frame_align.
89 2011-09-23 Yao Qi <yao@codesourcery.com>
91 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
94 2011-09-22 Tristan Gingold <gingold@adacore.com>
96 * fork-child.c (fork_inferior): Add exec_fun parameter.
97 Call exec_fun or execvp.
98 * inferior.h: Adjust prototype.
99 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
100 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
101 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
102 * procfs.c (procfs_create_inferior): Ditto.
103 * darwin-nat.c (darwin_execvp): New function.
104 (darwin_create_inferior): Use it.
106 2011-09-22 Yao Qi <yao@codesourcery.com>
108 * infrun.c (context_switch): Print debug message when switching to
111 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
113 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
114 complex and vector types.
115 (s390_return_value_convention): Likewise.
117 (s390_value_from_register): Call check_typedef.
118 (extend_simple_arg): Likewise.
119 (alignment_of): Likewise.
120 (s390_push_dummy_call): Likewise.
121 (s390_return_value): Likewise.
123 2011-09-21 Joseph Myers <joseph@codesourcery.com>
125 * event-top.c (async_disconnect): If an exception is thrown from
126 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
128 * top.c (quit_cover): Return void and take no arguments.
129 * top.h (quit_cover): Update prototype.
131 2011-09-20 Joseph Myers <joseph@codesourcery.com>
133 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
134 current_uiout, not uiout.
136 2011-09-19 Doug Evans <dje@google.com>
138 * python/py-auto-load.c (source_section_scripts): Fix file
140 * python/python.c (source_python_script_for_objfile): Tweak comments.
142 2011-09-18 Yao Qi <yao@codesourcery.com>
143 Ulrich Weigand <ulrich.weigand@linaro.org>
145 Support displaced stepping for Thumb 16-bit insns.
146 * arm-tdep.c (THUMB_NOP) Define.
147 (thumb_copy_unmodified_16bit): New.
148 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
149 (thumb_copy_alu_reg): New.
150 (arm_copy_svc): Move some common code to ...
151 (install_svc): ... here. New.
152 (thumb_copy_svc): New.
153 (install_pc_relative): New.
154 (thumb_copy_pc_relative_16bit): New.
155 (thumb_decode_pc_relative_16bit): New.
156 (thumb_copy_16bit_ldr_literal): New.
157 (thumb_copy_cbnz_cbz): New.
158 (cleanup_pop_pc_16bit_all): New.
159 (thumb_copy_pop_pc_16bit): New.
160 (thumb_process_displaced_16bit_insn): New.
161 (thumb_process_displaced_32bit_insn): New.
162 (thumb_process_displaced_insn): process thumb instruction.
164 Support displaced stepping for Thumb 32-bit insns.
165 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
166 (thumb2_copy_preload): New.
167 (thumb2_copy_copro_load_store): New.
168 (thumb2_copy_b_bl_blx): New.
169 (thumb2_copy_alu_imm): New.
170 (thumb2_copy_load_reg_imm): New.
171 (thumb2_copy_load_literal): New
172 (thumb2_copy_block_xfer): New.
173 (thumb_32bit_copy_undef): New.
174 (thumb_32bit_copy_unpred): New.
175 (thumb2_decode_ext_reg_ld_st): New.
176 (thumb2_decode_svc_copro): New.
177 (decode_thumb_32bit_store_single_data_item): New.
178 (thumb_copy_pc_relative_32bit): New.
179 (thumb_decode_pc_relative_32bit): New.
180 (decode_thumb_32bit_ld_mem_hints): New.
181 (thumb2_copy_table_branch): New
182 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
185 2011-09-18 Yao Qi <yao@codesourcery.com>
187 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
188 (install_b_bl_blx): Likewise.
190 2011-09-17 Yao Qi <yao@codesourcery.com>
192 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
193 (install_load_store): ... this. New.
194 Change parameter BYTE to SIZE.
195 (arm_copy_ldr_str_ldrb_strb): Update caller.
196 (arm_decode_ld_st_word_ubyte): Update caller.
198 2011-09-17 Yao Qi <yao@codesourcery.com>
200 * infrun.c (displaced_step_fixup): Move some code ...
201 (displaced_step_restore): ... here. New function.
202 (handle_inferior_event): Cleanup displaced stepping state for both
203 child and parent when get forked or vforked event.
204 * regcache.c (get_thread_arch_aspace_regcache): New function.
205 get_thread_arch_regcache (): Call it.
207 2011-09-16 Joel Brobecker <brobecker@adacore.com>
209 * ada-tasks.c (print_ada_task_info): New function, merging
210 short_task_info and info_tasks together. Reimplement using
211 ui-out instead of printing to stdout directly. Move the code
212 building and checking the task list here, instead of leaving it
213 in info_tasks_command.
214 (info_task): Move the code building and checking the task
215 list here, instead of leaving it in info_tasks_command.
216 (info_tasks_command): Delete code building and checking
217 the task list - moved elsewhere. Update calls to info_tasks
220 2011-09-16 Joel Brobecker <brobecker@adacore.com>
222 * ada-tasks.c (info_task): Delete parameter `from_tty'.
224 2011-09-16 Joel Brobecker <brobecker@adacore.com>
226 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
228 2011-09-16 Joel Brobecker <brobecker@adacore.com>
230 * ada-lang.h (ada_build_task_list): Remove parameter
232 * ada-tasks.c (ada_build_task_list): Remove parameter
233 `warn_if_null'. Adjust implementation and documentation.
234 (valid_task_id, ada_get_environment_task)
235 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
236 (info_tasks_command): Adjust implementation.
237 (task_command): Likewise.
238 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
239 to ada_build_task_list.
241 2011-09-16 Joel Brobecker <brobecker@adacore.com>
243 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
244 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
245 (ada_tasks_inferior_data_handle): New static global.
246 (get_ada_tasks_inferior_data): New function.
247 (ada_get_task_number, get_task_number_from_id, valid_task_id)
248 (ada_get_environment_task, iterate_over_live_ada_tasks)
249 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
251 (ada_set_current_inferior_known_tasks_addr): New function.
252 (read_known_tasks, ada_build_task_list, short_task_info)
253 (info_tasks, info_task, info_tasks_command, task_command_1)
254 (task_command, ada_task_list_changed): Adjust.
255 (ada_tasks_invalidate_inferior_data): New function.
256 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
257 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
258 * ada-lang.h (struct inferior): Add declaration.
259 (ada_task_list_changed): Update profile.
260 * remote-wtx-pd.c: #include "inferior.h".
261 (switch_to_pd_internal): Update call to ada_task_list_changed.
263 2011-09-16 Joel Brobecker <brobecker@adacore.com>
265 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
266 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
267 (atcb_fieldno): Delete these static globals.
268 (struct ada_tasks_pspace_data): New struct.
269 (ada_tasks_pspace_data_handle): New static global.
270 (get_ada_tasks_pspace_data): New function.
271 (ada_tasks_invalidate_pspace_data): New function.
272 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
273 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
274 (_initialize_tasks): Create this module's per-progspace
277 2011-09-16 Joel Brobecker <brobecker@adacore.com>
279 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
281 2011-09-16 Tristan Gingold <gingold@adacore.com>
283 * fork-child.c (fork_inferior): Update comment. Use alloca
284 instead of xmalloc for argv. Move len and shell_command
285 declarations in the block where they are used.
286 Only call execvp. Factorize failure code.
288 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
291 * parse.c (write_exp_elt): Change argument to pass a pointer of union
292 `exp_element' instead of an element of the same and make the function
294 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
295 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
296 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
297 Change argument of `write_exp_elt' function call.
298 Remove extra spaces from comments.
299 * parser-defs.h (write_exp_elt): Remove prototype.
301 2011-09-15 Paul Koning <paul_koning@dell.com>
303 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
304 count of item appended to list.
305 * python/py-type.c (typy_fields): Likewise.
307 2011-09-15 Paul Koning <paul_koning@dell.com>
309 * MAINTAINERS (Write After Approval): Add myself to the list.
311 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
314 * linux-fork.c (checkpoint_command): Disallow checkpointing of
315 processes with multiple threads.
316 (inf_has_multiple_thread_cb): New function.
317 (inf_has_multiple_threads): New function.
319 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
321 PR Python/12692 Add gdb.selected_inferior() to Python interface.
322 * python/py-inferior.c (GdbMethods): New Python method definition.
324 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
326 Handle multiple breakpoint hits in Python interface:
327 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
328 variable to breakpoints.
329 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
330 bps instead of single breakpoint. Fix some space typos.
331 * python/py-stopevent.c (create_breakpoint_event_object): Rename
332 variable to breakpoints.
334 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
336 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
337 note if the breakpoint is internal.
339 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
341 * MAINTAINERS (Write After Approval): Add myself to the list
343 2011-09-14 Pedro Alves <pedro@codesourcery.com>
345 * infrun.c (prepare_for_detach, wait_for_inferior)
346 (fetch_inferior_event): Don't flush the register cache.
347 * remote.c (struct stop_reply) <regcache>: Add comment.
349 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
351 Remove excessive DWARF expressions memory duplication.
352 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
354 (indirect_pieced_value): Remove variable result. Remove variable
355 back_to and its use for baton.data.
356 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
358 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
359 Update the function comment.
361 2011-09-13 Pedro Alves <pedro@codesourcery.com>
363 * inferior.h (ALL_INFERIORS): New.
364 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
365 for a stopped thread.
366 (thread_db_find_new_threads): Look for threads in all inferiors.
368 2011-09-13 Pedro Alves <pedro@codesourcery.com>
370 * breakpoint.c (update_watchpoint): Handle the case of the
371 watchpoint to update not being in the breakpoint list yet.
372 (hw_watchpoint_use_count): New, factored out from
373 hw_watchpoint_used_count.
374 (hw_watchpoint_used_count): Rename to ...
375 (hw_watchpoint_used_count_others): ... this. Add `except'
376 parameter. Don't count resources of `except'. Use
377 hw_watchpoint_use_count.
379 2011-09-13 Pedro Alves <pedro@codesourcery.com>
381 * gdbthread.h (enum thread_state): Moved here.
382 (struct thread_info): Rename `executing_' field to `executing' and
384 * thread.c (enum thread_state): Moved to gdbthread.h.
385 (new_thread, add_thread_silent, delete_thread_1)
386 (any_live_thread_of_process, thread_alive, set_running)
387 (set_running, is_thread_state, any_running, is_executing)
388 (set_executing, finish_thread_state, print_thread_info)
389 (do_captured_thread_select): Adjust.
391 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
393 Fix compatibility with gcc < 4.3 and non-gcc compilers.
394 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
396 2011-09-12 Pedro Alves <pedro@codesourcery.com>
397 Matt Rice <ratmice@gmail.com>
401 * interps.c (struct interp) <interpreter_out>: Delete field.
402 (interp_new): Remove the data and uiout parameters and adjust.
403 (interp_set): Only set the current_uiout from the interpreter's
404 uiout after initializing the interpreter. Adjust call to
406 (interp_ui_out): Adjust to call procs->ui_out_proc.
407 (interp_data, interp_name): New.
408 * interps.h (interp_init_ftype): Add `self' parameter.
409 (interp_ui_out_ftype): New typedef.
410 (struct interp_procs) <ui_out_proc>: New method pointer.
411 (interp_new): Remove the data and uiout parameters.
412 (interp_data, interp_name): Declare.
413 * tui/tui-interp.c (tui_init): Adjust prototype.
415 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
416 tui_out here. Adjust call to interp_new.
417 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
418 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
420 (_initialize_cli_interp): Install it. Adjust call to interp_new.
421 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
422 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
423 Initialize mi->uiout depending on the mi_version as extracted from
424 the interpreter's name.
426 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
427 interp_new. Don't allocate the ui_out's of the interpreters here.
429 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
431 * solib.c (solib_used): New function.
432 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
433 by another so_list object before freeing it.
435 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
438 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
441 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
444 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
445 (amd64_skip_xmm_prologue): ... this new function. Describe its
446 parameters. No longer use amd64_prologue_line_bug.
447 * defs.h (producer_is_gcc_ge_4): New declaration.
448 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
449 (process_full_comp_unit): Update its caller. Remove
450 amd64_prologue_line_bug initialization.
451 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
452 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
454 2011-09-09 Pedro Alves <pedro@codesourcery.com>
456 * linux-nat.h (enum resume_kind): New.
457 (struct lwp_info) <last_resume_kind>: New field.
458 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
459 resume_stop on the new lwp.
460 (add_lwp): Set last_resume_kind as resume_continue by default.
461 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
462 (resume_lwp): New, factored out from resume_callback. Also check
463 for pending status in lp->waitstatus.
464 (resume_callback): Reimplement.
465 (resume_clear_callback): Set last_resume_kind as resume_stop.
466 (resume_set_callback): Set last_resume_kind as resume_continue.
467 (linux_nat_resume, linux_handle_extended_wait): Set
469 (running_callback): Also check lp->waitstatus for pending events.
470 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
472 (stop_and_resume_callback): Don't re-resume if the core wanted the
473 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
474 using an invalidated pointer.
475 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
476 SIGSTOPs if the core wanted the LWP to stop.
477 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
478 wanted the lwp to stop. If the core wanted the lwp to stop, and
479 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
480 of TARGET_SIGNAL_STOP.
481 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
482 here. Instead, signal the lwp, and set the last_resume_kind to
485 2011-09-09 Pedro Alves <pedro@codesourcery.com>
487 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
488 -1 (error), if the lwp exits right after attaching.
490 2011-09-08 Doug Evans <dje@google.com>
492 * py-cmd.c: Some minor formatting fixes.
493 (gdbpy_parse_command_name): Rename text arg to name, make const.
495 * python-internal.h (gdbpy_parse_command_name): Update.
497 * cli/cli-decode.c (add_cmd): Add comment.
499 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
502 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
503 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
504 * dwarf2read.c (process_full_comp_unit): Initialize
505 amd64_prologue_line_bug.
506 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
508 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Fix TUI screen corruption.
511 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
514 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * findvar.c (read_var_value): Never return NULL, throw an error
517 instead. Update the function comment. State symbol name in the error
519 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
521 * stack.c (print_frame_args): Likewise.
522 * valops.c (value_of_variable): Likewise.
524 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
526 * stack.c (print_frame_args): New variable except. Wrap
527 read_var_value and common_val_print into TRY_CATCH.
529 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
531 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
532 caller to value_of_this.
533 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
535 * valops.c (value_of_this): Remove parameter complain and variable ret.
536 Update function comment. Never return NULL by this code.
537 (value_of_this_silent): New function.
538 * value.h (value_of_this): Remove parameter complain.
539 (value_of_this_silent): New declaration.
541 2011-09-07 Yao Qi <yao@codesourcery.com>
543 * gdbthread.h (struct thread_info): Remove fields
544 `stepping_through_solib_after_catch' and
545 `stepping_through_solib_catchpoints'.
546 * infrun.c (init_thread_stepping_state): Update.
547 (process_event_stop_test, currently_stepping): Update.
548 (currently_stepping_or_nexting_callback): Update.
550 2011-09-07 Yao Qi <yao@codesourcery.com>
552 * gdbthread.h (struct thread_info): Comment on field
553 `step_after_step_resume_breakpoint'.
555 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
557 * remote.c (remote_console_output): Reindent.
559 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
561 * frame.c (has_stack_frames): Check for currently selected
564 2011-09-06 Pedro Alves <pedro@codesourcery.com>
566 * event-top.h (MAXPROMPTS, struct prompts): Delete.
567 (set_async_annotation_level, set_async_prompt, pop_prompt)
568 (push_prompt, new_async_prompt): Delete declarations.
569 * top.h (get_prompt, set_prompt): Change prototype.
570 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
572 * top.c (command_loop):
573 (top_prompt): New global.
574 (get_prefix, set_prefix, get_suffix, ): Delete.
575 (get_prompt, set_prompt): Rewrite.
576 (show_new_async_prompt): Rename to ...
577 (show_prompt): ... this.
578 (init_main): Adjust. Don't handle --annotate=2 here.
579 * event-top.c (new_async_prompt): Delete.
580 (the_prompts): Delete.
581 (more_to_come): Make static.
582 (display_gdb_prompt): Use top_level_prompt() to compute the top
583 level prompt, and don't notify the before_prompt observers
584 directly here. Always trick readline into not trying to display
585 the prompt if sync_execution and displaying the primary prompt.
586 If displaying a local/secondary prompt, always show it, even if
587 sync_execution is set.
588 (change_annotation_level): Delete.
589 (top_level_prompt): New, based on change_annotation_level.
590 (push_prompt, pop_prompt): Delete.
591 (async_disable_stdin): No longer pushes prompt.
592 (command_line_handler): No longer pushes or pops prompt. If more
593 input is expected, call display_gdb_prompt with an explicit empty
595 (async_stop_sig): Adjust.
596 (set_async_annotation_level, set_async_prompt): Delete.
597 * python/python.c (before_prompt_hook): Adjust.
599 2011-09-05 Pedro Alves <pedro@codesourcery.com>
603 * infrun.c (fetch_inferior_event): Check if there's a selected
604 thread before checking if the selected thread is executing.
606 2011-09-05 Pedro Alves <pedro@codesourcery.com>
608 * inf-loop.c (execute_command): Don't check if the current thread
609 if running before synchronously waiting for command completion.
610 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
612 (normal_stop): Call async_enable_stdin here.
613 * inf-loop.c (inferior_event_handler): Don't call
614 async_enable_stdin, nor handle "set exec-done-display" here.
616 2011-09-04 Joel Brobecker <brobecker@adacore.com>
620 2011-09-04 Joel Brobecker <brobecker@adacore.com>
622 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
624 2011-09-04 Joel Brobecker <brobecker@adacore.com>
626 * NEWS: Add entry for OpenBSD/NetBSD build failure.
628 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
630 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
632 2011-09-02 Matt Rice <ratmice@gmail.com>
635 * event-top.c (cli_command_loop): Replace readline setup with
636 direct call to display_gdb_prompt.
637 (display_gdb_prompt): Do not call observer mechanism during
638 synchronous execution.
640 2011-09-02 Pedro Alves <pedro@codesourcery.com>
642 * linux-nat.c (in_pid_list_p): New.
643 (linux_record_stopped_pid): Delete.
644 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
645 already attached to the LWP. Return an indication if so.
646 (linux_nat_filter_event): Adjust.
647 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
648 returning an indication to ignore this thread.
650 2011-09-02 Pedro Alves <pedro@codesourcery.com>
652 * top.c: Include interps.h.
653 (execute_command): If the target can async, but the interpreter is
654 in sync mode, synchronously wait for the command to finish before
656 (execute_command_to_string): Force the interpreter to sync mode.
657 * infrun.c: Include interps.h.
658 (fetch_inferior_event): Don't restore the prompt yet if the
659 interpreter is in sync mode.
660 * interps.c (interpreter_async): New global.
661 * interps.h (interpreter_async): Declare.
662 * inf-loop.c: Include interps.h.
663 (inferior_event_handler): Don't print the language change or run
664 breakpoint commands yet if the interpreter in is sync mode.
665 * main.c (captured_command_loop): Flip the interpreter to async
667 * cli/cli-script.c: Include interps.h.
668 (execute_user_command, while_command, if_command): Force the
669 interpreter to sync mode.
670 * python/python.c: Include interps.h.
671 (python_command, execute_gdb_command): Force the interpreter to
674 2011-09-02 Pedro Alves <pedro@codesourcery.com>
676 * value.c (show_convenience): Catch errors thrown while printing
677 each internal variable.
678 * infrun.c (validate_siginfo_access): New function.
679 (siginfo_value_read, siginfo_value_write): Call it.
681 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
684 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
685 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
688 2011-08-29 Yao Qi <yao@codesourcery.com>
690 * solib-dsbt.c (bfd_lookup_symbol): Removed.
692 (enable_break2): Update caller.
693 * solib-frv.c (bfd_lookup_symbol): Removed.
695 (enable_break2): Update caller.
696 * solib-pa64.c (bfd_lookup_symbol): Removed.
698 * solib-svr4.c (bfd_lookup_symbol): Removed.
699 (cmp_name_and_sec_flags): New.
700 (enable_break): Update caller.
701 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
702 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
703 (gdb_bfd_lookup_symbol): New.
704 * solib.h: Functions declarations.
706 2011-08-29 Yao Qi <yao@codesourcery.com>
708 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
711 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
713 Fix TUI stepi on code without symbols.
714 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
717 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
720 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
721 and the static keyword.
722 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
723 Make prefix an array.
724 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
725 * mi/mi-main.c (get_register): Remove stb initialization and the static
728 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
730 Code cleanup - make mi_opt const.
731 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
733 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
734 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
735 (mi_cmd_env_dir): Likewise.
736 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
737 (mi_cmd_target_file_put): Likewise.
738 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
739 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
740 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
741 (mi_valid_noargs): Make opts const.
742 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
743 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
744 (mi_cmd_data_read_memory): Likewise.
745 (mi_cmd_data_read_memory_bytes): Likewise.
746 (mi_cmd_data_write_memory): Likewise.
748 2011-08-26 Matt Rice <ratmice@gmail.com>
750 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
751 bcache_xmalloc, replace bcache_xmalloc with call to
752 psymbol_bcache_init for psymbol_cache.
753 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
755 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * inf-loop.c (inferior_event_handler): Add exception_print in
760 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
762 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
763 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
764 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
765 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
766 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
767 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
768 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
769 * infrun.c (fetch_inferior_event): Call
770 make_bpstat_clear_actions_cleanup.
771 * top.c (execute_command): New variable cleanup_if_error, call
772 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
773 * utils.c (do_bpstat_clear_actions_cleanup)
774 (make_bpstat_clear_actions_cleanup): New functions.
776 2011-08-26 Pedro Alves <pedro@codesourcery.com>
778 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
779 either the parent or the child forks. Rename a couple locals.
781 2011-08-26 Pedro Alves <pedro@codesourcery.com>
783 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
784 library call. Avoid reading the `status' local if all waitpid
787 2011-08-26 Pedro Alves <pedro@codesourcery.com>
789 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
790 opening /proc/PID/task always succeeds.
792 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
794 * linespec.c (symtab_from_filename): Check for the end of string.
796 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
799 * varobj.c (cplus_describe_child): Add the keyword
800 'class' to the output of the method when dealing
801 with a cast to a base class.
803 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
805 No functionality change.
806 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
807 function comment a reference, new variables tp and bs, move here code
808 from throw_exception.
809 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
810 describe it in the comment.
811 * exceptions.c (throw_exception): Remove variable tp, move the code for
812 bpstat_clear_actions to bpstat_clear_actions.
814 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
816 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
817 * linux-nat.c: Include linux-procfs.h.
818 (linux_proc_get_tgid): Move to ...
819 * common/linux-procfs.c: ... here. New file.
820 * common/linux-procfs.h: New file.
821 * linux-thread-db.c: Include linux-procfs.h.
822 * Makefile.in: Update dependencies.
823 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
824 * config/arm/linux.mh: Likewise.
825 * config/i386/linux.mh: Likewise.
826 * config/i386/linux64.mh: Likewise.
827 * config/ia64/linux.mh: Likewise.
828 * config/m32r/linux.mh: Likewise.
829 * config/m68k/linux.mh: Likewise.
830 * config/mips/linux.mh: Likewise.
831 * config/pa/linux.mh: Likewise.
832 * config/pa/linux.mh: Likewise.
833 * config/powerpc/linux.mh: Likewise.
834 * config/powerpc/ppc64-linux.mh: Likewise.
835 * config/powerpc/spu-linux.mh: Likewise.
836 * config/sparc/linux.mh: Likewise.
837 * config/sparc/linux64.mh: Likewise.
838 * config/xtensa/linux.mh: Likewise.
840 2011-08-24 Hui Zhu <teawater@gmail.com>
842 * tracepoint.c (cond_string_is_same): New function.
843 (find_matching_tracepoint): Add condition check
844 by cond_string_is_same.
846 2011-08-23 Josh Matthews <josh@joshmatthews.net>
848 Fix build error in Darwin port.
849 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
851 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
854 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
855 (command_line_is_silent): New function.
856 (bpstat_do_actions_1): No longer use commands_left, use
857 command_line_is_silent for commands.
858 (bpstat_alloc): Remove clearing of commands_left.
859 (bpstat_stop_status): Remove initialization of commands_left, use
860 command_line_is_silent.
861 * breakpoint.h (struct bpstats): Remove commands_left.
863 2011-08-18 Keith Seitz <keiths@redhat.com>
866 * cp-name-parser.y (struct demangle_info): Remove unused
869 (allocate_info): Change return type to struct demangle_info *.
870 Always allocate a new demangle_info.
871 Remove unused PREV pointer.
872 (cp_new_demangle_parse_info): New function.
873 (cp_demangled_name_parse_free): New function.
874 (do_demangled_name_parse_free_cleanup): New function.
875 (make_cleanup_cp_demangled_name_parse_free): New function.
876 (cp_demangled_name_to_comp): Change return type to
877 struct demangle_parse_info *.
878 Allocate a new storage for each call.
879 (main): Update usage for cp_demangled_name_to_comp
881 * cp-support.h (struct demangle_parse_info): New structure.
882 (cp_demangled_name_to_comp): Update API change for
884 (cp_new_demangle_parse_info): Declare.
885 (make_cleanup_cp_demangled_name_parse_free): New declaration.
886 (cp_demangled_name_parse_free): Declare.
887 * cp-support.c (cp_canonicalize_string): Update API
888 change for cp_demangled_name_to_comp.
889 (mangled_name_to_comp): Likewise.
890 Return struct demangle_parse_info, too.
891 (cp_class_name_from_physname): Update mangled_name_to_comp
893 (method_name_from_physname): Likewise.
894 (cp_func_name): Update API change for cp_demangled_name_to_comp.
895 (cp_remove_params): Likewise.
896 * python/py-type.c (typy_legacy_template_argument): Likewise.
898 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
899 (cp_merge_demangle_parse_infos): Declare.
900 * cp-support.c (ignore_typedefs): New file global.
901 (copy_string_to_obstack): New function.
902 (inspect_type): New function.
903 (replace_typedefs): New function.
904 (replace_typedefs_qualified_name): New function.
905 (cp_canonicalize_string_no_typedefs): New function.
906 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
907 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
908 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
909 instead of cp_canonicalize_string.
910 (find_method): Likewise.
911 (decode_compound): Before looking up the name, call
912 cp_canonicalize_string_no_typedefs.
913 (decode_variable): Likewise.
915 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
916 Tom Tromey <tromey@redhat.com>
917 Matt Rice <ratmice@gmail.com>
919 * python/lib/gdb/prompt.py: New file.
920 * python/lib/gdb/command/prompt.py: New file.
921 * NEWS: Document set extended-prompt and gdb.prompt library
923 2011-08-16 Yao Qi <yao@codesourcery.com>
925 * tic6x-linux-tdep.c: Move const arrays definition from here...
926 * tic6x-tdep.c: to here ...
928 2011-08-14 Yao Qi <yao@codesourcery.com>
930 * NEWS: New port to Texas Instruments TMS320C6x.
932 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
933 Bernd Schmidt <bernds@codesourcery.com>
934 Yao Qi <yao@codesourcery.com>
936 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
937 * solib-dsbt.c: New file. Support DSBT shared object.
938 * tic6x-linux-tdep.c: New file.
939 * tic6x-tdep.c: New file.
940 * tic6x-tdep.h: New file.
942 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
943 Yao Qi <yao@codesourcery.com>
945 * remote.c (PACKET_qXfer_fdpic): New enum value.
946 (remote_protocol_features): Add qXfer:fdpic:read packet.
947 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
948 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
949 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
951 2011-08-14 Yao Qi <yao@codesourcery.com>
953 Target description for tic6x.
954 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
955 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
956 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
957 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
958 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
959 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
960 * features/tic6x-c64xp-linux.xml: New.
961 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
962 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
963 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
964 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
965 * regformats/tic6x-c64xp.dat,
966 regformats/tic6x-c62x-linux.dat: Generated.
967 * regformats/tic6x-c64x-linux.dat,
968 regformats/tic6x-c64xp-linux.dat: Generated.
969 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
970 features/tic6x-*.c files.
971 Add regformats/tic6x-*.dat files.
973 2011-08-12 Doug Evans <dje@google.com>
975 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
976 * python/py-symbol.c (sympy_get_type): New function.
977 (symbol_object_getset): Add "type".
979 2011-08-12 Pedro Alves <pedro@codesourcery.com>
983 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
985 (tui_show_register_group): Don't store a byte buffer in the data
987 (tui_register_format): Skip registers with an empty name.
988 (tui_get_register): Store a struct value in the data element's
989 value field instead of a byte buffer holding the raw register
990 contents. Account for optimized-out and unavailable registers
991 when comparing register contents.
993 2011-08-09 Pedro Alves <pedro@codesourcery.com>
995 * printcmd.c (current_display_number): Update comment.
996 (disable_current_display_cleanup): Delete.
997 (do_one_display): Use make_cleanup_restore_integer. Gracefully
998 catch errors thrown while evaluating and printing the display.
1000 2011-08-09 Tom Tromey <tromey@redhat.com>
1002 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
1004 2011-08-09 Pedro Alves <pedro@codesourcery.com>
1006 * elfread.c (elf_symtab_read): Rework comments.
1007 * maint.c (maintenance_command): Ditto.
1008 * somread.c (som_symtab_read): Ditto.
1009 * solib.c (solib_find, solib_map_sections, update_solib_list)
1010 (solib_add, info_sharedlibrary_command, solib_name_from_address)
1011 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1012 (sharedlibrary_command, no_shared_libraries): Ditto.
1013 * solib-irix.c (locate_base, disable_break, enable_break)
1014 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
1015 (irix_current_sos, irix_open_symbol_file_object)
1016 (irix_special_symbol_handling): Ditto.
1017 * solib-sunos.c (locate_base, first_link_map_member)
1018 (sunos_current_sos, disable_break, enable_break)
1019 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
1021 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
1022 (open_symbol_file_object, svr4_current_sos, enable_break)
1023 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
1025 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
1026 (frv_current_sos, enable_break, frv_special_symbol_handling)
1027 (frv_solib_create_inferior_hook): Ditto.
1028 * solist.h (struct target_so_ops): Extend the comments of the
1029 special_symbol_handling, current_sos and open_symbol_file_object
1032 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
1034 * python/lib/gdb/__init__.py: Auto-load files in command and
1035 function directories.
1036 * python/python.c (finish_python_initialization): Use
1038 * python/lib/gdb/command/pretty_printers.py: Self register
1040 * NEWS: Document auto-loading.
1042 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
1045 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
1046 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
1048 2011-08-08 Tom Tromey <tromey@redhat.com>
1050 * breakpoint.c (clean_up_filters): Remove.
1051 (catch_syscall_split_args): Use VEC_cleanup.
1053 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
1056 (main): Uncomment "Demangling error\n".
1058 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
1060 * solib-target.c (segment_attributes): Make them static.
1061 (section_attributes, library_children, library_attributes): Likewise.
1062 (library_list_children, library_list_attributes): Likesise.
1063 (library_list_elements): Likewise.
1065 2011-08-05 Pedro Alves <pedro@codesourcery.com>
1067 * exceptions.c (throw_exception): Don't disable the current
1069 * printcmd.c (disable_current_display_cleanup): New function.
1070 (do_one_display): Install a cleanup to disable the current display
1071 if doing the display throws.
1073 2011-08-05 Eli Zaretskii <eliz@gnu.org>
1075 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
1076 initialization of the tp_new member to the corresponding
1077 gdbpy_initialize_* function.
1078 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
1079 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1080 * python/py-function.c (gdbpy_initialize_functions): Likewise.
1081 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
1082 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
1084 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1087 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1088 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1089 references to current_uiout.
1091 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1093 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1094 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1095 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1096 * top.c (gdb_readline_wrapper): Adjust.
1097 * tui/tui-interp.c (tui_command_loop):
1098 (_initialize_tui_interp): Don't install it.
1100 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1102 * ui-out.h (uiout): Rename to ...
1103 (current_uiout): ... this.
1104 * ui-out.c (uiout): Rename to ...
1105 (current_uiout): ... this.
1106 * ada-lang.c (print_it_exception, print_one_exception)
1107 (print_mention_exception): Adjust.
1108 * breakpoint.c (watchpoint_check): Adjust.
1109 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1110 (default_collect_info, watchpoints_info, print_one_catch_fork)
1111 (print_one_catch_vfork, print_one_catch_syscall)
1112 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1113 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1114 (print_it_watchpoint, print_mention_watchpoint)
1115 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1116 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1117 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1118 (bkpt_print_mention, momentary_bkpt_print_it)
1119 (tracepoint_print_mention, update_static_tracepoint)
1120 (tracepoints_info, save_breakpoints): Adjust.
1121 * cli-out.c (field_separator): Adjust.
1122 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1123 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1124 * frame.c (get_current_frame): Adjust.
1125 * infcmd.c (run_command_1, print_return_value): Adjust.
1126 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1127 * infrun.c (print_end_stepping_range_reason): Adjust.
1128 (print_signal_exited_reason, print_exited_reason): Adjust.
1129 (print_signal_received_reason, print_no_history_reason): Adjust.
1130 * interps.c (interp_set): Adjust.
1131 * osdata.c (info_osdata_command): Adjust.
1132 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1133 * remote-fileio.c (remote_fileio_request): Adjust.
1134 * remote.c (show_remote_cmd): Adjust.
1135 * solib.c (info_sharedlibrary_command): Adjust.
1136 * source.c (print_source_lines_base): Adjust.
1137 * stack.c (print_stack_frame): Adjust.
1138 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1139 * symfile-mem.c (add_vsyscall_page): Adjust.
1140 * symfile.c (load_progress, generic_load)
1141 (print_transfer_performance): Adjust.
1142 * thread.c (info_threads_command, restore_selected_frame)
1143 (thread_command): Adjust.
1144 * top.c (make_cleanup_restore_ui_file): Adjust.
1145 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1146 (print_one_static_tracepoint_marker): Adjust.
1147 * cli/cli-cmds.c (print_disassembly): Adjust.
1148 * cli/cli-decode.c (print_doc_line): Adjust.
1149 * cli/cli-interp.c (safe_execute_command): Adjust.
1150 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1151 (handle_redirections): Adjust.
1152 * cli/cli-script.c (show_user_1): Adjust.
1153 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1154 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1155 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1156 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1157 (mi_cmd_env_dir): Adjust.
1158 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1159 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1160 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1161 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1162 (list_args_or_locals): Adjust.
1163 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1164 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1165 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1166 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1167 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1168 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1169 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1170 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1171 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1172 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1173 (list_available_thread_groups, mi_cmd_list_thread_groups)
1174 (mi_cmd_data_list_register_names)
1175 (mi_cmd_data_list_changed_registers)
1176 (mi_cmd_data_list_register_values, get_register)
1177 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1178 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1179 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1180 (mi_execute_command, mi_load_progress): Adjust.
1181 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1182 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1184 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1185 * tui/tui-interp.c (tui_command_loop): Adjust.
1186 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1188 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1190 * exceptions.c (struct catcher): Remove saved_uiout field.
1191 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1192 no longer save/resvore the global ui_out builder.
1193 (catch_exceptions_with_msg): Save/override/restore the global
1194 ui_out builder manually instead of relying on TRY_CATCH to do it.
1195 (catch_errors): Save/restore the global ui_out builder manually
1196 instead of relying on TRY_CATCH to do it.
1197 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1199 (TRY_CATCH): Adjust.
1200 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1201 the global ui_out builder manually instead of relying on TRY_CATCH
1204 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1206 * breakpoint.c (update_global_location_list): Ensure
1207 invariant 'first loc marked not duplicated and inserted,
1208 following locs marked duplicated/not inserted' is respected
1209 for multiple locations at the same address.
1210 (unduplicated_should_be_inserted) New function.
1211 (swap_insertion) New function.
1213 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1215 * stack.c (print_frame_arguments_choices): Comment typo fix.
1217 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1220 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1221 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1222 argument. Update callers.
1224 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1227 * doublest.c (convert_doublest_to_floatformat): Pass correct
1228 mantissa length to put_field.
1230 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1233 exception_print code path.
1234 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1235 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1236 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1238 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1242 Remove, merge them into ...
1243 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1244 variable args and its initialization.
1245 (struct print_args_args, print_args_stub): Remove, merge them into
1247 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1249 (do_gdb_disassembly): ... here. Remove variable args and its
1251 (print_frame): Remove variable args and its initialization, new
1252 variable gdbarch and numargs (from print_args_stub), inline here
1253 print_args_stub with a TRY_CATCH.
1254 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1256 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1257 New variable e, remove variable btargs and its initialization.
1259 2011-08-01 Tristan Gingold <gingold@adacore.com>
1261 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1263 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1265 * breakpoint.c (insert_bp_location): Document return value.
1266 (insert_breakpoint_locations): Fix documentation.
1267 (remove_breakpoints): Add documentation.
1269 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1271 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1272 argument. Update callers.
1274 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1276 * stack.c (print_frame_info): Comment typo fix.
1278 2011-07-29 Sterling Augustine <saugustine@google.com>
1280 * MAINTAINERS (Write After Approval): Add myself to the list.
1282 2011-07-29 Tom Tromey <tromey@redhat.com>
1284 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1285 (library_list_start_segment): Update.
1286 (library_list_start_section): Update.
1288 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1290 * varobj.c (value_get_print_value): Move hint check later into the
1291 function. Comment function. Free thevalue before reusing it.
1293 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1294 Pedro Alves <pedro@codesourcery.com>
1296 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1298 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1299 Assert the result kind.
1300 * value.h (value_one): Remove parameter lv.
1302 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1304 Fix crash on lval_computed values.
1305 * valops.c (value_zero): Use not_lval for lval_computed.
1307 2011-07-27 Tom Tromey <tromey@redhat.com>
1309 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1310 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1312 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1315 "ptype" by their typedefs difference.
1317 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1319 * dwarf2expr.c (ctx_no_read_reg): New function.
1320 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1321 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1322 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1323 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1325 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1327 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1328 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1330 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1331 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1332 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1333 (ctx_no_get_base_type): Move the functions here.
1334 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1335 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1336 (ctx_no_get_base_type): New declarations.
1338 2011-07-27 Tom Tromey <tromey@redhat.com>
1340 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1342 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1343 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1345 2011-07-26 Sterling Augustine <saugustine@google.com>
1347 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1349 (dump_bfd_file): Likewise.
1351 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1353 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1354 (remote_hw_watchpoint_length_limit): New variable.
1355 (_initialize_remote) add set,show cmds for this new variable.
1356 * gdb.texinfo: document these new commands.
1357 * NEWS: Mention these new commands.
1359 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1361 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1362 true for software watchpoints.
1364 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1368 2011-07-26 Tom Tromey <tromey@redhat.com>
1370 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1371 * dwarf2read.c (read_indirect_string_at_offset): New function.
1372 (read_indirect_string): Use it.
1373 (dwarf_decode_macro_bytes): New function, taken from
1374 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1375 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1376 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1378 (struct dwarf2_per_objfile) <macro>: New field.
1379 (dwarf2_elf_names): Add .debug_macro.
1380 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1381 (dwarf2_locate_sections): Handle new section.
1382 (read_file_scope): Handle DW_AT_GNU_macros.
1383 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1385 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1387 * NEWS: Mention dcache configuration.
1388 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1389 (dcache_size, dcache_line_size): New variables.
1390 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1391 (struct dcache_block): Make it expandable.
1392 (struct dcache_struct): New field.
1393 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1394 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1395 (dcache_poke_byte, dcache_print_line): Adjust.
1396 (set_dcache_size, set_dcache_line_size): New functions.
1397 (set_dcache_command, show_dcache_command): New functions.
1398 (_initialize_dcache): Add new commands.
1400 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1402 * progspace.h (struct program_space): Add solib_add_generation.
1403 * infcmd.c (post_create_inferior): Only call solib_add if not
1405 * solib.c (solib_add): Increment solib_add_generation.
1407 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 Fix implicit pointer offsets.
1410 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1413 2011-07-25 Tom Tromey <tromey@redhat.com>
1415 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1417 (ada_exception_sal): Make 'ops' const.
1418 (ada_decode_exception_location): Likewise.
1419 (ada_decode_assert_location): Likewise.
1420 (catch_assert_command): Update.
1421 (catch_ada_exception_command): Update.
1422 (create_ada_exception_catchpoint): Make 'ops' const.
1423 * breakpoint.c (set_raw_breakpoint_without_location)
1424 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1426 (create_internal_breakpoint): Update.
1427 (init_raw_breakpoint_without_location): Make 'ops' const.
1428 (init_raw_breakpoint, init_catchpoint)
1429 (create_fork_vfork_event_catchpoint)
1430 (create_syscall_event_catchpoint, init_breakpoint_sal)
1431 (create_breakpoint_sal, create_breakpoints_sal)
1432 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1433 * breakpoint.h (struct breakpoint) <ops>: Now const.
1434 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1437 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1439 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1441 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1443 * breakpoint.h (print_recreate_thread): Declare.
1444 (struct breakpoint): Move step_count, pass_count,
1445 number_on_target, static_trace_marker_id,
1446 static_trace_marker_id_idx ...
1447 (struct tracepoint): ... to this new struct.
1448 (get_tracepoint, get_tracepoint_by_number_on_target)
1449 (get_tracepoint_by_number): Change return type to struct
1451 * breakpoint.c (is_tracepoint_type): New, factored out from
1453 (is_tracepoint): Adjust.
1454 (print_one_breakpoint_location): Cast to struct tracepoint as
1455 necessary, and adjust.
1456 (print_recreate_catch_fork, print_recreate_catch_vfork)
1457 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1458 print_recreate_thread.
1459 (init_breakpoint_sal): New, factored out from
1460 create_breakpoint_sal.
1461 (create_breakpoint_sal): Reimplement.
1462 (create_breakpoint): Allocate a struct tracecepoint if the caller
1463 wanted a tracepoint. Use init_breakpoint_sal and
1465 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1466 (print_recreate_masked_watchpoint)
1467 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1468 (tracepoint_print_one_detail): Adjust.
1469 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1470 Dump the pass count here.
1471 (update_static_tracepoint): Adjust.
1472 (addr_string_to_sals): Adjust.
1473 (create_tracepoint_from_upload): Adjust. Change return type to
1474 struct tracepoint pointer.
1475 (trace_pass_set_count): Change parameter type to struct tracepoint
1476 pointer, and adjust.
1477 (trace_pass_command): Adjust.
1478 (get_tracepoint, get_tracepoint_by_number_on_target)
1479 (get_tracepoint_by_number): Change return type to struct
1480 tracepoint pointer, and adjust.
1481 (print_recreate_thread): New, factored out from save_breakpoints.
1482 (save_breakpoints): Don't print thread and task and passcount
1484 * remote.c (remote_download_tracepoint): Adjust.
1485 * tracepoint.c (trace_actions_command, validate_actionline)
1486 (start_tracing, tfind_1, trace_find_tracepoint_command)
1487 (trace_dump_command): Adjust.
1488 (find_matching_tracepoint): Change return type to struct
1489 tracepoint pointer, and adjust.
1490 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1491 (tfile_trace_find, tfile_fetch_registers): Adjust.
1492 * tracepoint.h (create_tracepoint_from_upload): Change return type
1493 to struct tracepoint pointer.
1494 * ada-lang.c (print_recreate_exception): Call
1495 print_recreate_thread.
1496 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1498 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1500 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1501 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1502 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1503 watchpoint_thread, watchpoint_triggered ...
1504 (struct watchpoint): ... to this new struct.
1505 (is_watchpoint): Declare.
1506 (install_breakpoint): Add new `internal' parameter.
1507 * breakpoint.c (is_watchpoint): Delete declaration.
1508 (set_breakpoint_condition): Handle watchpoints.
1509 (is_watchpoint): Make public.
1510 (watchpoint_in_thread_scope): Change parameter type to struct
1512 (watchpoint_del_at_next_stop): Change parameter type to struct
1513 watchpoint. Remove assertion. Adjust.
1514 (update_watchpoint): Ditto.
1515 (insert_breakpoints, breakpoint_init_inferior)
1516 (watchpoints_triggered, watchpoint_check)
1517 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1518 (bpstat_stop_status, print_one_breakpoint_location)
1519 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1520 to struct watchpoint as necessary, and adjust.
1521 (install_breakpoint): Add `internal' argument. If true, don't
1522 mention the new breakpoint. Use set_breakpoint_number.
1523 (create_fork_vfork_event_catchpoint)
1524 (create_syscall_event_catchpoint): Adjust.
1525 (dtor_watchpoint): New.
1526 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1527 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1528 (print_it_watchpoint, print_mention_watchpoint)
1529 (print_recreate_watchpoint, insert_masked_watchpoint)
1530 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1531 (print_one_detail_masked_watchpoint)
1532 (print_mention_masked_watchpoint)
1533 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1534 necessary, and adjust.
1535 (watch_command_1): Allocate and initialize a struct watchpoint
1536 instead of a struct breakpoint. Use install_breakpoint.
1537 (catch_exec_command_1): Adjust.
1538 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1540 (delete_breakpoint, enable_breakpoint_disp)
1541 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1542 as necessary, and adjust.
1543 (initialize_breakpoint_ops): Install dtor_watchpoint as
1544 watchpoints' dtor method.
1545 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1546 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1547 to struct watchpoint as necessary, and adjust.
1549 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1551 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1552 the the base class ops table.
1553 (catch_exception_breakpoint_ops)
1554 (catch_exception_unhandled_breakpoint_ops)
1555 (catch_assert_breakpoint_ops): Don't statically initialize.
1556 (initialize_ada_catchpoint_ops): New.
1557 (_initialize_ada_language): Call it.
1558 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1559 (bkpt_breakpoint_ops): Forward declare.
1560 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1561 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1562 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1563 (masked_watchpoint_breakpoint_ops)
1564 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1565 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1566 base class ops table.
1567 (null_re_set, null_check_status, null_works_in_software_mode)
1568 (null_resources_needed, null_print_one_detail): Delete.
1569 (bkpt_dtor): Rename to ...
1570 (base_breakpoint_dtor): ... this. Make static.
1571 (bkpt_allocate_location): Rename to ...
1572 (base_breakpoint_allocate_location): ... this. Make static.
1573 (base_breakpoint_re_set): New.
1574 (internal_error_pure_virtual_called): New.
1575 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1576 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1577 (base_breakpoint_works_in_software_mode)
1578 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1579 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1580 (base_breakpoint_print_recreate): New functions.
1581 (base_breakpoint_ops): New global.
1582 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1583 (bkpt_breakpoint_hit): Make static.
1584 (bkpt_check_status): Delete.
1585 (bkpt_resources_needed): Make static.
1586 (bkpt_works_in_software_mode): Delete.
1587 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1589 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1590 (momentary_breakpoint_ops): Don't statically initialize.
1591 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1593 (tracepoint_insert_location, tracepoint_remove_location)
1594 (tracepoint_check_status, tracepoint_works_in_software_mode)
1595 (tracepoint_print_it): Delete.
1596 (tracepoint_breakpoint_ops): Don't statically initialize.
1597 (initialize_breakpoint_ops): New.
1598 (_initialize_breakpoint): Call it.
1599 * breakpoint.h (null_re_set, null_works_in_software_mode)
1600 (null_resources_needed, null_check_status, null_print_one_detail):
1601 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1602 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1603 (bkpt_check_status, bkpt_resources_needed)
1604 (bkpt_works_in_software_mode, bkpt_print_it)
1605 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1606 Delete declarations.
1607 (initialize_breakpoint_ops): Declare.
1609 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1611 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1612 (momentary_bkpt_print_it): Simplify.
1614 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1616 Split internal, momentary and user breakpoints breakpoint_ops
1619 * breakpoint.c (internal_breakpoint_ops)
1620 (momentary_breakpoint_ops): Forward declare.
1621 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1622 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1623 (create_overlay_event_breakpoint)
1624 (create_std_terminate_master_breakpoint)
1625 (create_exception_master_breakpoint): Create breakpoints with
1626 internal_breakpoint_ops vtable.
1627 (set_longjmp_breakpoint): Create momentary breakpoints with
1628 momentary_breakpoint_ops vtable, using
1629 momentary_breakpoint_from_master.
1630 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1631 (create_solib_event_breakpoint): Create breakpoints with
1632 internal_breakpoint_ops vtable.
1633 (set_momentary_breakpoint): Create breakpoints with
1634 momentary_breakpoint_ops vtable.
1635 (momentary_breakpoint_from_master): New, factored out from
1636 clone_momentary_breakpoint.
1637 (clone_momentary_breakpoint): Adjust.
1638 (watch_command_1): Create scope breakpoints with
1639 momentary_breakpoint_ops vtable.
1640 (bkpt_re_set): Remove handling of internal and momentary
1642 (bkpt_print_mention, bkpt_print_recreate): New.
1643 (bkpt_breakpoint_ops): Adjust.
1644 (internal_bkpt_re_set, internal_bkpt_check_status)
1645 (internal_bkpt_print_it, internal_bkpt_print_mention)
1646 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1647 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1648 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1649 (momentary_bkpt_print_recreate): New.
1650 (momentary_breakpoint_ops): New.
1652 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1654 Implement most breakpoint_ops methods for all breakpoint types,
1655 and move the default handlings to the proper callbacks.
1657 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1658 works_in_software_mode method.
1659 (insert_bp_location): Go through breakpoint_ops->insert_location
1660 for software and hardware watchpoints.
1661 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1663 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1664 for software and hardware watchpoints.
1665 (print_it_typical): Delete.
1666 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1668 (watchpoint_check): Adjust comment.
1669 (bpstat_check_location): Simply always call the breakpoint's
1670 breakpoint_hit method.
1671 (bpstat_stop_status): Always call the breakpoint's check_status
1672 method. Remove special cases for watchpoints and internal event
1673 breakpoints from here (moved to the check_status implementations).
1674 (print_one_breakpoint_location): Assume b->ops is never NULL.
1675 Remove static tracepoint marker id printing from here (moved to
1676 the print_one_detail callback implementation of tracepoints).
1677 (init_bp_location): Assert OPS is never NULL.
1678 (allocate_bp_location): Always call the breakpoint's
1679 allocate_location method, and remove the default code from here.
1680 (free_bp_location): Always call the location's dtor method, and
1681 remove the default code from here.
1682 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1683 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1684 parameter. Pass it down.
1685 (set_raw_breakpoint): Ditto.
1686 (print_it_catch_fork): Adjust to take a bpstat as argument.
1687 (catch_fork_breakpoint_ops): Install methods.
1688 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1689 (catch_vfork_breakpoint_ops): Install methods.
1690 (dtor_catch_syscall): Call the base dtor.
1691 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1692 (catch_syscall_breakpoint_ops): Install methods.
1693 (dtor_catch_exec): Call the base dtor.
1694 (print_it_catch_exec): Adjust to take a bpstat as argument.
1695 (catch_exec_breakpoint_ops): Install methods.
1696 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1697 the breakpoint's resources_needed method, and remove the default
1699 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1701 (clone_momentary_breakpoint): Clone the original's ops.
1702 (mention): Always call the breakpoint's print_mention method, and
1703 remove the default code from here.
1704 (create_breakpoint_sal): Adjust to pass the ops to
1705 set_raw_breakpoint rather than setting it manually.
1706 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1707 ops to set_raw_breakpoint_without_location rather than setting it
1709 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1710 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1711 (ranged_breakpoint_ops): Install methods.
1712 (break_range_command): Adjust to pass the ops to
1713 set_raw_breakpoint rather than setting it manually.
1714 (re_set_watchpoint, breakpoint_hit_watchpoint)
1715 (check_status_watchpoint, resources_needed_watchpoint)
1716 (works_in_software_mode_watchpoint, print_it_watchpoint)
1717 (print_mention_watchpoint, print_recreate_watchpoint): New
1719 (watchpoint_breakpoint_ops): Install new methods.
1720 (print_it_masked_watchpoint): New function.
1721 (masked_watchpoint_breakpoint_ops): Install new methods.
1722 (watch_command_1): Adjust to pass the right breakpoint_ops to
1723 set_raw_breakpoint_without_location rather than setting it
1724 manually later. Record the current pspace.
1725 (print_it_exception_catchpoint): Adjust to take a bpstat as
1727 (gnu_v3_exception_catchpoint_ops): Install new methods.
1728 (say_where): New function.
1729 (null_re_set, null_check_status, null_works_in_software_mode)
1730 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1732 (bp_location_ops): New global.
1733 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1734 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1735 (bkpt_check_status, bkpt_resources_needed)
1736 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1737 (bkpt_print_recreate): New functions.
1738 (bkpt_breakpoint_ops): New global.
1739 (tracepoint_re_set, tracepoint_insert_location)
1740 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1741 (tracepoint_check_status, tracepoint_works_in_software_mode)
1742 (tracepoint_print_it, tracepoint_print_one_detail)
1743 (tracepoint_print_mention, tracepoint_print_recreate): New
1745 (tracepoint_breakpoint_ops): New global.
1746 (delete_breakpoint): Always call the breakpoint's dtor method, and
1747 remove the default handling from here.
1748 (breakpoint_re_set_default): Make static.
1749 (breakpoint_re_set_one): Always call the breakpoints re_set
1750 method, and remove the default handling from here.
1751 (trace_command, ftrace_command, strace_command)
1752 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1753 to create_breakpoint.
1754 (save_breakpoints): Always call the breakpoint's print_recreate
1755 method, and remove the default handling from here.
1757 * ada-lang.c (dtor_exception): Call the base dtor.
1758 (re_set_exception): Call the base method.
1759 (print_it_exception, print_it_catch_exception): Adjust to take a
1761 (catch_exception_breakpoint_ops): Install methods.
1762 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1764 (catch_exception_unhandled_breakpoint_ops): Install methods.
1765 (print_it_catch_assert): Adjust to take a bpstat as argument.
1766 (catch_assert_breakpoint_ops): Install methods.
1768 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1769 to take a bpstat as argument.
1770 (enum print_stop_action): Add describing comments to each enum
1772 (breakpoint_re_set_default): Delete declaration.
1773 (null_re_set, null_works_in_software_mode, null_resources_needed)
1774 (null_check_status, null_print_one_detail): Declare.
1775 (bkpt_breakpoint_ops): Declare.
1776 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1777 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1778 (bkpt_check_status, bkpt_resources_needed)
1779 (bkpt_works_in_software_mode, bkpt_print_it)
1780 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1783 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1784 bkpt_breakpoint_ops.
1785 * python/py-breakpoint.c (bppy_init): Ditto.
1787 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1789 * MAINTAINERS (Write After Approval): Add myself to the list.
1791 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1793 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1795 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1797 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1798 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1799 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1801 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1802 (struct i386_debug_reg_state): New.
1803 (i386_init_dregs): New.
1805 (i386_cleanup_dregs): Use i386_init_dregs.
1806 (i386_show_dr): Add state parameter and adjust.
1807 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1809 (i386_remove_aligned_watchpoint): Likewise.
1810 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1811 (i386_update_inferior_debug_regs): New.
1812 (i386_insert_watchpoint): Work on a local mirror of the debug
1813 registers, and only update the inferior on success.
1814 (i386_remove_watchpoint): Ditto.
1815 (i386_region_ok_for_watchpoint): Adjust.
1816 (i386_stopped_data_address): Adjust.
1817 (i386_insert_hw_breakpoint): Adjust.
1818 (i386_remove_hw_breakpoint): Adjust.
1820 2011-07-22 Tom Tromey <tromey@redhat.com>
1822 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1823 from amd64_pseudo_register_read. Change arguments. Call
1824 mark_value_bytes_unavailable when needed.
1825 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1826 set_gdbarch_pseudo_register_read.
1827 * sentinel-frame.c (sentinel_frame_prev_register): Use
1828 regcache_cooked_read_value.
1829 * regcache.h (regcache_cooked_read_value): Declare.
1830 * regcache.c (regcache_cooked_read_value): New function.
1831 (regcache_cooked_read): Call
1832 gdbarch_pseudo_register_read_value if available.
1833 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1834 (i386_pseudo_register_read): Remove.
1835 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1836 i386_pseudo_register_read. Change arguments. Call
1837 mark_value_bytes_unavailable when needed.
1838 (i386_pseudo_register_read_value): New function.
1839 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1840 not set_gdbarch_pseudo_register_read.
1841 * gdbarch.sh (pseudo_register_read_value): New method.
1842 * gdbarch.c, gdbarch.h: Rebuild.
1843 * findvar.c (value_from_register): Call get_frame_register_value.
1845 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1847 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1849 (display_gdb_prompt): Likewise.
1850 (change_annotation_level): Likewise.
1851 (push_prompt): Likewise.
1852 (pop_prompt): Likewise.
1853 (handle_stop_sig): Use get_prompt with a level.
1854 * top.c (command_loop): Use get_prompt with a level.
1855 (set_async_annotation_level): Use set_prompt with a level.
1856 (get_prefix): New function.
1857 (set_prefix): Ditto.
1858 (set_suffix): Ditto.
1859 (get_suffix): Ditto.
1860 (get_prompt): Accept a level argument.
1861 (set_prompt): Accept a level argument. Free old prompts. Set
1862 new_async_prompt if level is 0.
1863 (init_main): Use set_prompt with a level. Do not set
1865 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1866 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1867 Modify set_prompt, get_prompt to account for levels.
1868 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1870 * python/python.c (before_prompt_hook): Use set_prompt.
1872 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1874 * defs.h: Add guard against inclusion in gdbserver.
1875 (struct ptid, ptid_t): Move to common/ptid.h.
1876 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1877 xsnprintf, internal_error): Move to common/common-utils.h.
1879 * gdb_assert.h: Move into common/ sub-directory.
1880 * gdb_locale.h: Ditto.
1881 * gdb_dirent.h: Ditto.
1882 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1883 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1884 Move into common/ptid.h.
1885 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1886 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1887 Change nomem to malloc_failure.
1888 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1889 * utils.c (nomem): Rename to malloc_failure.
1890 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1891 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1892 (gdb_buildargv): Change nomem to malloc_failure.
1893 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1894 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1895 ptid_is_pid): Move into common/ptid.c.
1896 (initialize_infrun): Delete initialization of null_ptid and
1898 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1899 linux_common_xfer_osdata.
1900 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1901 common/ptid.c and common/buffer.c.
1902 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1903 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1904 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1905 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1907 * common/gdb_assert.h: New.
1908 * common/gdb_dirent.h: New.
1909 * common/gdb_locale.h: New.
1910 * common/buffer.c: New.
1911 * common/buffer.h: New.
1912 * common/ptid.c: New.
1913 * common/ptid.h: New.
1914 * common/xml-utils.c: New.
1915 * common/xml-utils.h: New.
1916 * common/common-utils.c: New.
1917 * common/common-utils.h: New.
1918 * common/linux-osdata.c: New.
1919 * common/linux-osdata.h: New.
1920 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1921 * config/arm/linux.mh (NATDEPFILES): Ditto.
1922 * config/i386/linux.mh (NATDEPFILES): Ditto.
1923 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1924 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1925 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1926 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1927 * config/mips/linux.mh (NATDEPFILES): Ditto.
1928 * config/pa/linux.mh (NATDEPFILES): Ditto.
1929 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1930 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1931 * config/s390/s390.mh (NATDEPFILES): Ditto.
1932 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1933 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1934 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1936 2011-07-21 Matt Rice <ratmice@gmail.com>
1938 * NEWS: Add info macros and info definitions commands.
1940 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1942 * NEWS: Document Python prompt substitution hook.
1944 2011-07-18 Matt Rice <ratmice@gmail.com>
1947 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1948 * macrotab.c (foreach_macro): Ditto.
1949 (foreach_macro_in_scope): Ditto.
1950 * macrocmd.c (print_macro_callback): New function.
1951 (info_macro_command): Move some code to print_macro_definition.
1952 (print_macro_definition): New function.
1953 (print_one_macro): Add new arguments to callback.
1954 (info_definitions_command): New function.
1955 (info_macros_command): Ditto.
1956 (_initialize_macrocmd): Add info macros and info definitions commands.
1957 * symtab.c (add_macro_name): Add new arguments to callback.
1959 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1960 Tom Tromey <tromey@redhat.com>
1962 * top.c (set_prompt): Rewrite to free previous prompt, free
1963 asynch_new_prompt and set both on new prompts.
1964 * event-top.c (display_gdb_prompt): Add prompt substitution
1966 * python/python.c (before_prompt_hook): New function.
1968 2011-07-20 Matt Rice <ratmice@gmail.com>
1970 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1971 arguments to store_unsigned_integer.
1973 2011-07-20 Tom Tromey <tromey@redhat.com>
1975 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1976 in some declaration-only cases.
1978 2011-07-18 Tom Tromey <tromey@redhat.com>
1981 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1982 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1983 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1984 <debug_type_section>: New field.
1985 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1986 (load_cu): Use appropriate section.
1987 (create_signatured_type_table_from_index): Add 'section'
1989 (dwarf2_read_index): Only allow a single .debug_types section.
1990 (dw2_get_file_names): Use appropriate section.
1991 (read_type_comp_unit_head): Add 'section' argument.
1992 (create_debug_types_hash_table): Loop over all .debug_types
1994 (init_cu_die_reader): Use appropriate section.
1995 (process_psymtab_comp_unit, load_partial_comp_unit)
1996 (load_full_comp_unit, read_die_and_children, find_partial_die)
1997 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1998 (lookup_signatured_type_at_offset): Add 'section' argument.
1999 (read_signatured_type_at_offset): Add 'sect' argument.
2000 (read_signatured_type): Use appropriate section.
2001 (set_die_type, get_die_type_at_offset): Update.
2002 (dwarf2_per_objfile_free): Free all .debug_types sections, and
2004 (write_psymtabs_to_index): Don't allow index with more than one
2005 .debug_types section.
2007 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 Fix crash if referenced CU is aged out.
2010 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
2011 xfree of block.data.
2012 (indirect_pieced_value): New variable back_to, use to for xfree of
2014 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
2016 * dwarf2read.c (dwarf2_find_base_address): New prototype.
2017 (load_cu): New function from ...
2018 (dw2_do_instantiate_symtab): ... the code here ...
2019 (process_full_comp_unit): ... and here.
2020 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
2023 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
2028 2011-07-19 Gary Benson <gbenson@redhat.com>
2030 * infrun.c (struct execution_control_state): New member
2031 stop_func_filled_in.
2032 (clear_stop_func, fill_in_stop_func): New functions.
2033 (handle_inferior_event): Call clear_stop_func rather than
2034 manipulating the execution control state directly.
2035 Call fill_in_stop_func lazily as required rather than
2036 directly calling find_pc_partial_function in all cases.
2038 2011-07-18 Tom Tromey <tromey@redhat.com>
2040 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
2041 checking for variable-sized array.
2043 2011-07-18 Jean-Charles Delay <delay@adacore.com>
2045 * varobj.h (varobj_languages): Add vlang_ada definition to the list
2046 of supported languages.
2047 * varobj.c: Add top definitions and basic implementation of the
2048 following callbacks: ada_number_of_children, ada_name_of_variable,
2049 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
2050 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
2051 (languages): Register Ada-specific callbacks.
2052 (variable_language): Add the Ada case in the language setter switch.
2054 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2056 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
2058 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
2062 (execute_stack_op): Use dwarf2_frame_ctx_funcs
2063 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
2064 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
2065 get_frame_cfa, get_tls_address and dwarf_call via funcs.
2066 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
2067 (struct dwarf_expr_context_funcs): New, move here methods from ...
2068 (struct dwarf_expr_context): ... here. New fields funcs.
2069 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
2070 (dwarf_expr_ctx_funcs): New.
2071 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
2072 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
2073 (needs_frame_ctx_funcs): New.
2074 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
2076 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2078 * MAINTAINERS (Write After Approval): Add myself to the list.
2080 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
2082 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
2083 that CIE pointer of an FDE really points to a CIE .
2085 2011-07-15 Hui Zhu <teawater@gmail.com>
2087 * remote.c (remote_get_trace_status): Add comments.
2089 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2091 Code cleanup - constify struct lval_funcs.
2092 * dwarf2loc.c (pieced_value_funcs): Make it const.
2093 * infrun.c (siginfo_value_funcs): Likewise.
2094 * opencl-lang.c (opencl_value_funcs): Likewise.
2095 * valops.c (value_assign, value_ind): Make the funcs variable const.
2096 * value.c (struct value): Make location.computed.funcs target const.
2097 Rearrange the comments.
2098 (allocate_computed_value): Make the funcs parameter target const.
2099 (value_computed_funcs): Return the funcs target const.
2100 (value_free, value_copy, set_value_component_location): Make the funcs
2102 * value.h (allocate_computed_value): Make the funcs parameter target
2104 (value_computed_funcs): Return the funcs target const.
2105 * windows-tdep.c (tlb_value_funcs): Make it const.
2107 2011-07-14 Hui Zhu <teawater@gmail.com>
2109 * remote.c (remote_get_trace_status): Initialize p.
2111 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2114 * remote.c (remote_get_trace_status): New variable ex. Put
2115 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2117 2011-07-13 Tom Tromey <tromey@redhat.com>
2119 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2120 value_from_contents for final conversion.
2122 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2125 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2126 Indent prototypes so they do not get into tags.
2128 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 Code cleanup making also optimized out values lazy.
2131 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2132 allocate_optimized_out_value. Twice.
2133 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2134 * findvar.c (read_var_value): Likewise.
2135 * value.c (allocate_optimized_out_value): New function.
2136 * value.h (allocate_optimized_out_value): New declaration.
2138 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2140 Fix occasional crash of CTRL-C during DWARF read in.
2141 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2143 2011-07-11 Tom Tromey <tromey@redhat.com>
2145 * regcache.c (struct regcache_descr): Fix typo.
2146 * i387-tdep.c (i387_supply_xsave): Fix typo.
2148 2011-07-11 Tom Tromey <tromey@redhat.com>
2150 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2151 (read_file_scope, read_type_unit_scope): Use it.
2153 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2158 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2161 * python/python.c: Set gdbpy_should_print_stack default to off.
2162 (set_python): Deprecate maint set python print-stack to
2164 (_initialize_python): Deprecate maint set/show python print-stack.
2165 Add new prefix command, python. Add new setting, print-backtrace.
2166 * NEWS: Document set python print-stack. Document default change.
2168 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2170 * python/py-inferior.c (infpy_dealloc): New function.
2171 (inferior_to_inferior_object): Return a new object, or a
2172 new reference to the existing object.
2173 (find_thread_object): Cleanup references to inferior.
2174 (delete_thread_object): Ditto.
2175 * python/py-infthread.c (create_thread_object): Do not increment
2176 inferior reference count.
2178 2011-07-08 Tom Tromey <tromey@redhat.com>
2180 * dwarf2loc.c (locexpr_regname): New function.
2181 (locexpr_describe_location_piece): Use it.
2182 (disassemble_dwarf_expression): Add per_cu argument. Use
2184 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2185 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2187 (locexpr_describe_location_1): Add per_cu argument.
2188 (locexpr_describe_location): Update.
2189 (loclist_describe_location): Update.
2191 2011-07-08 Tom Tromey <tromey@redhat.com>
2193 * dwarf2expr.c (execute_stack_op): Add QUIT.
2195 2011-07-07 Hui Zhu <teawater@gmail.com>
2198 2011-07-06 Hui Zhu <teawater@gmail.com>
2199 * remote.c (remote_start_remote): Add TRY_CATCH for
2200 remote_get_trace_status.
2201 * tracepoint.c (disconnect_tracing): Ditto.
2203 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2205 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2206 variables as signed, not unsigned.
2208 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2210 * jit.c (jit_inferior_init): Reformat forward declaration.
2212 2011-07-06 Matt Rice <ratmice@gmail.com>
2214 * MAINTAINERS (Write After Approval): Add myself to the list.
2216 2011-07-06 Hui Zhu <teawater@gmail.com>
2218 * remote.c (remote_start_remote): Add TRY_CATCH for
2219 remote_get_trace_status.
2220 * tracepoint.c (disconnect_tracing): Ditto.
2222 2011-07-05 Tom Tromey <tromey@redhat.com>
2224 * symtab.c (operator_chars): Now static.
2225 * linespec.c (operator_chars): Don't declare.
2227 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2229 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2231 2011-07-05 Tom Tromey <tromey@redhat.com>
2233 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2234 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2235 (TYPE_CPLUS_REALLY_JAVA): New macro.
2236 * dwarf2read.c (process_structure_scope): Set
2237 TYPE_CPLUS_REALLY_JAVA.
2239 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2241 * ada-lang.c: Fix typos.
2242 * amd64-tdep.c: Likewise.
2243 * breakpoint.c: Likewise.
2244 * cli/cli-decode.c: Likewise.
2245 * findcmd.c: Likewise.
2246 * inline-frame.c: Likewise.
2247 * mi/mi-main.c: Likewise.
2248 * minsyms.c: Likewise.
2249 * monitor.c: Likewise.
2250 * monitor.h: Likewise.
2251 * prologue-value.c: Likewise.
2252 * reverse.c: Likewise.
2253 * s390-tdep.c: Likewise.
2255 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2257 * jit.c (jit_inferior_init): Forward declare.
2258 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2260 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2262 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2264 2011-07-04 Tristan Gingold <gingold@adacore.com>
2266 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2267 (tcb_fieldno): Add activation_link field.
2268 (get_known_tasks_addr): Moved and rewritten.
2269 (get_tcb_types_info): Set activation_link field.
2270 (read_known_tasks_array): Add parameter. Rewritten.
2271 (read_known_tasks_list): New function.
2272 (read_known_tasks): New function.
2273 (ada_build_task_list): Call read_known_tasks instead of
2274 read_known_tasks_array.
2275 * ravenscar-thread.c: Add first_task_name constant.
2276 (has_ravenscar_runtime): Check for task list too.
2278 2011-07-04 Tristan Gingold <gingold@adacore.com>
2280 * ada-tasks.c: Renames fieldno to actb_fieldno.
2281 (ada_get_task_number): Indentation.
2282 (get_tcb_types_info): Remove all parameters. Write directly
2284 (ptid_from_atcb_common): Adjust.
2285 (read_atcb): Adjust.
2287 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2289 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2291 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2293 * ui-out.c (ui_out_field_core_addr): Mention that the function
2294 description is in the header file.
2295 * ui-out.h (ui_out_field_core_addr): Document function.
2297 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2299 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2300 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2302 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2304 * symtab.c (expand_line_sal): Remove empty line.
2306 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2308 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2309 same way as ELFOSABI_NONE.
2310 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2312 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2314 * breakpoint.c: Fix typos in comments.
2315 * linespec.c: Likewise.
2316 * symtab.c: Likewise.
2318 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2320 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2321 section in separate object files.
2323 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 Fix false GCC warning.
2326 * linespec.c (decode_line_1): Initialize values.
2328 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 * linespec.c (find_method): Accept the function type automatically only
2331 if it was specified with parameter types.
2333 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 Stop on first linespec terminator instead of eating what we can.
2336 * linespec.c (is_linespec_boundary): New function.
2337 (name_end): Remove function.
2338 (keep_name_info): New parameter on_boundary, replace the body.
2339 (decode_line_1): Provide the parameter to keep_name_info.
2340 (decode_compound): Likewise. Drop the trailing java return type
2343 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2345 Fall back linespec to minimal symbols.
2346 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2347 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2348 (find_method, symbol_found): Change error to cplusplus_error.
2350 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2352 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2354 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Tom Tromey <tromey@redhat.com>
2357 * dwarf2read.c (check_physname): New variable.
2358 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2359 (show_check_physname): New function.
2360 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2362 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2364 * machoread.c (macho_symfile_read): Delete OBE comment.
2366 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2368 * machoread.c (struct macho_oso_data): Delete.
2369 (current_oso): Delete.
2370 (macho_relocate_common_syms): New function, mostly extracted
2372 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2373 Remove code that sets and unset current_oso.
2374 (macho_symfile_relocate): Delete handling of common symbols,
2375 now moved to macho_relocate_common_syms.
2377 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2379 * darwin-nat.c (darwin_ptrace): Add documentation.
2380 Set errno to zero before calling ptrace. If ptrace returns
2381 -1 and errno is zero, then change then return zero.
2382 (darwin_kill_inferior): Issue a warning instead of triggering
2383 a failed assertion when the PT_KILL ptrace operations returned
2386 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2388 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2389 only when inf->private->no_ptrace.
2391 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2393 * ada-lang.c (print_it_exception): Print temporary catchpoints
2394 as "Temporary catchpoint".
2395 (print_mention_exception): Likewise.
2397 2011-07-01 Tom Tromey <tromey@redhat.com>
2399 * jv-lang.c (java_language_defn): Use java_printchar,
2401 (java_get_encoding): New function.
2402 (java_emit_char): Use generic_emit_char.
2403 (java_printchar): New function.
2404 (java_printstr): Likewise.
2406 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2408 * ada-typeprint.c (print_record_type): If unable to decode
2409 the name of the parent type, use the encoded name.
2411 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2413 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2414 pointer to constrained packed array type output.
2415 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2416 packed array output.
2418 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2420 * ada-typeprint.c (print_array_type): removed if condition on show
2421 being negative for bounds printing.
2423 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2425 * ada-lang.c (ada_identical_enum_types_p): New function.
2426 (symbols_are_identical_enums): New function.
2427 (remove_extra_symbols): Do nothing if NSYMS < 2.
2428 Use symbols_are_identical_enums.
2430 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2432 * ada-valprint.c (ada_value_print): Handle typedefs.
2434 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2436 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2438 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2440 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2441 (decode_constrained_packed_array): Likewise.
2442 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2444 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2446 * ada-exp.y (convert_char_literal): Handle typedef types.
2448 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2450 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2452 2011-06-30 Tom Tromey <tromey@redhat.com>
2454 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2455 * valops.c (find_overload_match): Call do_cleanups on early exit
2457 * solib.c (solib_find): Call do_cleanups on early exit path.
2459 2011-06-30 Tom Tromey <tromey@redhat.com>
2461 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2462 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2463 return paths. Defer final do_cleanups until last return.
2464 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2467 2011-06-30 Tom Tromey <tromey@redhat.com>
2469 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2471 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2473 * MAINTAINERS (Write After Approval): Add myself to the list.
2475 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2477 Disable epilogue unwinders on recent GCCs.
2478 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2479 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2480 * dwarf2read.c (process_full_comp_unit): Initialize
2481 EPILOGUE_UNWIND_VALID.
2482 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2483 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2484 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2486 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2488 Code cleanup - reformatting.
2489 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2490 (producer_is_gcc_ge_4): ... here, change the return value.
2491 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2494 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2496 Fix non-only rename list for Fortran modules import.
2497 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2498 cp_add_using_directive caller.
2499 (cp_add_using_directive): New parameter excludes, describe it. New
2500 variables ix and param. Compare if also excludes match. Allocate NEW
2501 with variable size, initialize EXCLUDES there.
2502 (cp_lookup_symbol_imports): New variable excludep, test
2503 current->EXCLUDES with it.
2504 * cp-support.h: Include vec.h.
2505 (struct using_direct): New field excludes, describe it.
2506 (DEF_VEC_P (const_char_ptr)): New.
2507 (cp_add_using_directive): New parameter excludes.
2508 * defs.h (const_char_ptr): New typedef.
2509 * dwarf2read.c (read_import_statement): New variables child_die,
2510 excludes and cleanups, read in excludes.
2511 (read_namespace): Adjust the cp_add_using_directive caller.
2513 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2516 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2517 negative comparisons.
2519 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2521 * mi/mi-main.c (mi_cmd_list_features): Emit
2522 breakpoint-notifications.
2524 2011-06-29 Tom Tromey <tromey@redhat.com>
2527 * valprint.h (generic_emit_char, generic_printstr): Declare.
2528 * valprint.c (wchar_printable, append_string_as_wide)
2529 (print_wchar): Move from c-lang.c.
2530 (generic_emit_char): New function; mostly taken from c_emit_char.
2531 (generic_printstr): New function; mostly taken from c_printstr.
2532 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2533 represented as arrays.
2534 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2536 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2537 identically to TYPE_CODE_INT.
2538 * f-lang.c (f_get_encoding): New function.
2539 (f_emit_char): Use generic_emit_char.
2540 (f_printchar): Replace comment.
2541 (f_printstr): Use generic_printstr.
2542 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2543 "character" types specially.
2544 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2546 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2548 (c_emit_char): Call generic_emit_char.
2549 (c_printstr): Call generic_printstr.
2551 2011-06-29 Gary Benson <gbenson@redhat.com>
2553 * breakpoint.c (bpstat_what): Removed duplicated case.
2555 2011-06-28 Tom Tromey <tromey@redhat.com>
2557 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2559 2011-06-27 Tom Tromey <tromey@redhat.com>
2561 * valops.c (find_overload_match): Call do_cleanups before early
2563 * top.c (execute_command): Call do_cleanups before early return.
2564 (command_loop): Likewise.
2565 * stack.c (backtrace_command): Make a null cleanup early. Don't
2566 conditionally call do_cleanups.
2567 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2569 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2570 so cleanups are always run.
2571 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2572 * findcmd.c (parse_find_args): Call do_cleanups on early return
2574 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2575 Don't conditionally call do_cleanups.
2576 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2579 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2581 * MAINTAINERS (Write After Approval): Use default email address.
2583 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2585 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2587 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2589 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2590 saved_regs_mask and copied_regs_mask fields.
2591 (sparc_record_save_insn): New prototype.
2592 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2593 (sparc_record_save_insn): New function.
2594 (sparc_analyze_prologue): Add head comment. Recognize store insns
2595 of call-saved registers. Use OFFSET consistently. Recognize flat
2596 frames and cache their settings.
2597 (sparc32_skip_prologue): Handle flat frames.
2598 (sparc_frame_cache): Add frame_offset to the base address.
2599 (sparc32_frame_cache): Adjust to new frame description.
2600 (sparc32_frame_prev_register): Likewise.
2601 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2602 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2603 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2604 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2605 frame by calling sparc_record_save_insn.
2606 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2607 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2608 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2610 2011-06-27 Tristan Gingold <gingold@adacore.com>
2612 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2613 field by map_addr and map_len.
2614 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2615 (munmap_section_buffer): Likewise.
2617 2011-06-24 Tom Tromey <tromey@redhat.com>
2619 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2620 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2621 * python/python.c (gdbpy_parameter): Make 'arg' const.
2622 (execute_gdb_command): Likewise.
2623 (gdbpy_decode_line): Likewise. Copy it.
2624 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2625 (gdbpy_write): Make 'arg' const.
2626 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2628 (gdbpy_lookup_type): Likewise.
2629 * python/py-prettyprint.c (print_children): Make 'name' const.
2630 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2631 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2633 * python/py-function.c (fnpy_init): Make 'name' const.
2634 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2635 (gdbpy_string_to_argv): Make 'input' const.
2636 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2638 * gdbtypes.h (lookup_typename): Update.
2639 * gdbtypes.c (lookup_typename): Make 'name' const.
2640 (lookup_struct): Likewise.
2641 (lookup_union): Likewise.
2642 (lookup_enum): Likewise.
2644 2011-06-24 Tom Tromey <tromey@redhat.com>
2646 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2647 gdb_thread_db.h. Move all common/ entries to be together.
2648 (TAGS): Don't depend on DEPFILES.
2650 2011-06-23 Yao Qi <yao@codesourcery.com>
2652 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2653 * remote.c (remote_start_remote): ... here.
2654 * monitor.c (monitor_open): ... here.
2656 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2658 * gdbtypes.c (append_composite_type_field_aligned): Fix
2659 calculation of bit position based on alignment.
2661 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2663 * breakpoint.c (bpstat_stop_status): Call the check_status
2664 breakpoint_ops method.
2665 (print_one_breakpoint_location): Also print the condition for Ada
2666 exception catchpoints.
2667 (allocate_bp_location): New, factored out from
2668 allocate_bp_location.
2669 (allocate_bp_location): Adjust. Call the owner breakpoint's
2670 allocate_location method, if there is one.
2671 (free_bp_location): Call the locations's dtor method, if there is
2673 (init_raw_breakpoint_without_location): New breakpoint_ops
2675 (set_raw_breakpoint_without_location): Adjust.
2676 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2677 (set_raw_breakpoint): Adjust.
2678 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2679 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2680 re_set and check_status methods.
2681 (init_catchpoint): Don't memset, initialize thread, addr_string
2682 and enable_state. Pass the ops down to init_raw_breakpoint.
2683 (install_catchpoint): Rename to ...
2684 (install_breakpoint): ... this, and make extern.
2685 (create_fork_vfork_event_catchpoint): Adjust.
2686 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2687 re_set and check_status methods.
2688 (create_syscall_event_catchpoint): Adjust.
2689 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2690 (masked_watchpoint_breakpoint_ops): Install NULL
2691 allocate_location, re_set and check_status methods.
2692 (catch_exec_command_1): Adjust.
2693 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2694 re_set and check_status methods.
2695 (create_ada_exception_breakpoint): Rename to ...
2696 (init_ada_exception_breakpoint): ... this. Add a struct
2697 breakpoint parameter, and delete the exp_string, cond_string and
2698 cond parameters. Use init_raw_breakpoint, and don't install or
2699 mention the breakpoint yet. Don't clear breakpoint fields that
2700 init_raw_breakpoint already clears.
2701 (re_set_breakpoint): Delete, split into ...
2702 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2704 (breakpoint_re_set_one): Call the breakpoint's
2705 breakpoint_ops->re_set implementation, if there's one. Adjust.
2706 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2707 (struct bp_location_ops): New type.
2708 (struct bp_location): New field `ops'.
2709 (struct breakpoint_ops): New `allocate_location', `re_set' and
2710 `check_status' fields. Make `breakpoint_hit''s description match
2712 (init_bp_location): Declare.
2713 (breakpoint_re_set_default): Declare.
2714 (create_ada_exception_breakpoint): Rename to ...
2715 (init_ada_exception_breakpoint): ... this. Add a struct
2716 breakpoint parameter, and delete the exp_string, cond_string and
2718 (install_breakpoint): Declare.
2719 * ada-lang.c: Include exceptions.h.
2720 <Ada exceptions description>: Update.
2721 (struct ada_catchpoint_location): New type.
2722 (ada_catchpoint_location_dtor): New function.
2723 (ada_catchpoint_location_ops): New global.
2724 (ada_catchpoint): New type.
2725 (create_excep_cond_exprs): New function.
2726 (dtor_exception, allocate_location_exception, re_set_exception)
2727 (should_stop_exception, check_status_exception): New functions.
2728 (print_one_exception, print_mention_exception)
2729 (print_recreate_exception): Adjust.
2730 (dtor_catch_exception, allocate_location_catch_exception)
2731 (re_set_catch_exception, check_status_catch_exception): New
2733 (catch_exception_breakpoint_ops): Install them.
2734 (dtor_catch_exception_unhandled)
2735 (allocate_location_catch_exception_unhandled)
2736 (re_set_catch_exception_unhandled)
2737 (check_status_catch_exception_unhandled): New functions.
2738 (catch_exception_unhandled_breakpoint_ops): Install them.
2739 (dtor_catch_assert, allocate_location_catch_assert)
2740 (re_set_catch_assert, check_status_catch_assert): New functions.
2741 (catch_assert_breakpoint_ops): Install them.
2742 (ada_exception_catchpoint_p): Delete.
2743 (catch_ada_exception_command_split)
2744 (ada_exception_catchpoint_cond_string): Rename exp_string
2745 parameter to excep_string. Adjust.
2746 (ada_parse_catchpoint_condition): Delete.
2747 (ada_exception_sal): Rename the exp_string parameter to
2748 excep_string. Delete the cond_string and cond parameters.
2750 (ada_decode_exception_location): Rename the exp_string parameter
2751 to excep_string. Delete the cond_string and cond parameters.
2753 (create_ada_exception_catchpoint): New function.
2754 (catch_ada_exception_command, ada_decode_assert_location)
2755 (catch_assert_command): Adjust.
2756 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2758 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2760 * ada-lang.c: Include arch-utils.h.
2761 (ada_decode_exception_location): Make static.
2762 (catch_ada_exception_command): Moved here from breakpoint.c.
2763 (ada_decode_assert_location): Make static.
2764 (catch_assert_command): Moved here from breakpoint.c.
2765 (_initialize_ada_lang): Install the exception and assert
2766 catchpoint commands here.
2767 * ada-lang.h (ada_decode_exception_location)
2768 (ada_decode_assert_location): Delete declarations.
2769 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2771 (create_ada_exception_breakpoint): Make extern.
2772 (catch_ada_exception_command, catch_assert_command): Moved to
2774 (add_catch_command): Make extern.
2775 (_initilize_breakpoint): Don't install the exception and assert
2776 catchpoint commands here.
2777 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2779 (add_catch_command, create_ada_exception_breakpoint): Declare.
2781 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2783 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2784 the breakpoint to the breakpoint chain here.
2785 (set_raw_breakpoint_without_location): Add the breakpoint to the
2786 breakpoint chain here.
2787 (init_raw_breakpoint): Adjust comments.
2788 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2790 (init_catchpoint): Don't set the catchpoint's breakpoint number
2792 (install_catchpoint): New function.
2793 (create_fork_vfork_event_catchpoint)
2794 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2795 use install_catchpoint.
2797 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2799 * breakpoint.c (create_catchpoint_without_mention)
2800 (create_catchpoint): Delete.
2802 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2804 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2805 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2806 reference to exec_pathname.
2807 (struct exec_catchpoint): New type.
2808 (dtor_catch_exec): New function.
2809 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2810 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2811 (catch_exec_command_1): Adjust to use init_catchpoint.
2812 (delete_breakpoint): Remove reference to exec_pathname.
2814 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2816 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2817 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2818 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2819 reference to syscalls_to_be_caught.
2820 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2822 (struct syscall_catchpoint): New type.
2823 (dtor_catch_syscall): New function.
2824 (insert_catch_syscall, remove_catch_syscall)
2825 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2826 (print_recreate_catch_syscall): Adjust.
2827 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2828 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2829 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2830 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2831 (masked_watchpoint_breakpoint_ops)
2832 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2833 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2834 there is one. Remove references to syscalls_to_be_caught.
2835 (catching_syscall_number): Adjust.
2836 * ada-lang.c (catch_exception_breakpoint_ops)
2837 (catch_exception_unhandled_breakpoint_ops)
2838 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2840 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2842 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2844 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2845 reference to forked_inferior_pid.
2846 (struct fork_catchpoint): New type.
2847 (breakpoint_hit_catch_fork, print_it_catch_fork)
2848 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2849 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2850 (create_fork_vfork_event_catchpoint): Adjust to use
2853 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2855 * breakpoint.c (add_to_breakpoint_chain)
2856 (init_raw_breakpoint_without_location): New functions, factored
2858 (set_raw_breakpoint_without_location): ... this one.
2859 (init_raw_breakpoint): New function, factored out from
2860 set_raw_breakpoint and adjusted to use
2861 init_raw_breakpoint_without_location.
2862 (set_raw_breakpoint): Adjust.
2863 (init_catchpoint): New function, factored out from
2864 create_catchpoint_without_mention and adjusted to use
2865 init_raw_breakpoint.
2866 (create_catchpoint_without_mention): Adjust.
2868 2011-06-22 Tom Tromey <tromey@redhat.com>
2870 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2871 argument of 0 specially.
2873 2011-06-22 Yao Qi <yao@codesourcery.com>
2875 * infrun.c (handle_inferior_event): Remove write-only local variable
2876 `sw_single_step_trap_p'.
2878 2011-06-20 Tom Tromey <tromey@redhat.com>
2880 * symtab.c (lookup_language_this): End loop if block is NULL.
2882 2011-06-17 Tom Tromey <tromey@redhat.com>
2884 * valops.c (value_of_this): Use lookup_language_this.
2885 * symtab.h (lookup_language_this): Declare.
2886 * symtab.c (lookup_language_this): New function.
2887 (lookup_symbol_aux): Use lookup_language_this.
2888 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2890 2011-06-17 Tom Tromey <tromey@redhat.com>
2892 * value.h (value_of_this): Update.
2893 (value_of_local): Remove.
2894 * valops.c (value_of_this): Rename from value_of_local. Change
2896 * p-exp.y (exp): Update.
2897 (variable): Likewise.
2898 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2900 2011-06-17 Tom Tromey <tromey@redhat.com>
2902 * valops.c (value_of_local): Complain if NAME is NULL.
2903 * std-operator.def (OP_OBJC_SELF): Remove.
2904 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2905 * objc-exp.y (name_not_typename): Use OP_THIS.
2906 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2908 <OP_OBJC_SELF>: Remove.
2909 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2911 2011-06-16 Tristan Gingold <gingold@adacore.com>
2913 * python/py-events.h (gdb_py_events): Make it extern.
2914 * python/py-evtregistry.c (gdb_py_events): Declare.
2916 2011-06-16 Hui Zhu <teawater@gmail.com>
2918 * remote.c (remote_trace_set_readonly_regions): Add check for
2919 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2922 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2924 * arm-linux-tdep.c: Include "auxv.h".
2926 (ARM_LINUX_SIZEOF_VFP): Define.
2927 (arm_linux_supply_vfp): New function.
2928 (arm_linux_collect_vfp): Likewise.
2929 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2930 (arm_linux_fpa_regset_sections): New variable.
2931 (arm_linux_vfp_regset_sections): Likewise.
2932 (arm_linux_core_read_description): New function.
2933 (arm_linux_init_abi): Install arm_linux_core_read_description and
2934 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2935 appropriate for the architecture.
2936 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2937 (tdesc_arm_with_m): Declare.
2938 (tdesc_arm_with_iwmmxt): Likewise.
2939 (tdesc_arm_with_vfpv2): Likewise.
2940 (tdesc_arm_with_vfpv3): Likewise.
2941 (tdesc_arm_with_neon): Likewise.
2942 * arm-linux-nat.c: Move features/*.c includes ...
2943 * arm-tdep.c: ... here.
2944 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2945 target description data structures ...
2946 * arm-tdep.c (_initialize_arm_tdep): ... here.
2947 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2948 HWCAP_VFPv3D16): Move definitions ...
2949 * arm-linux-tdep.h: ... here.
2951 2011-06-15 Hui Zhu <teawater@gmail.com>
2953 * remote.c (remote_trace_set_readonly_regions): Add a check for
2956 2011-06-14 Tom Tromey <tromey@redhat.com>
2958 * coffread.c (coffread_objfile): Rename from current_objfile.
2959 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2960 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2962 2011-06-14 Tom Tromey <tromey@redhat.com>
2964 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2965 (class_symtab): Remove.
2966 (jv_dynamics_progspace_key): New global.
2967 (jv_per_objfile_free): Reset program space data. Update assert.
2968 Don't clear globals.
2969 (get_dynamics_objfile): Use and set program space data.
2970 (get_java_class_symtab): Use get_dynamics_objfile.
2971 (add_class_symbol): Likewise.
2972 (java_link_class_type): Likewise.
2973 (java_object_type, jv_clear_object_type, set_java_object_type):
2975 (get_java_object_type): Update. Don't cache result.
2976 (is_object_type): Don't call set_java_object_type.
2977 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2978 initialize jv_dynamics_progspace_key.
2980 2011-06-14 Tom Tromey <tromey@redhat.com>
2982 * symtab.h (current_objfile): Don't declare.
2983 * objfiles.h (current_objfile): Don't declare.
2984 * objfiles.c (current_objfile): Remove.
2985 * mdebugread.c (current_objfile): New file-scope global.
2986 * dbxread.c (current_objfile): New file-scope global.
2987 * coffread.c (current_objfile): New file-scope global.
2989 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2991 * top.h (line): Rename to ...
2992 (saved_command_line): ... this.
2993 (linesize): Rename to ...
2994 (saved_command_line_size): ... this.
2995 * top.c (line): Rename to ...
2996 (saved_command_line): ... this.
2997 (linesize): Rename to ...
2998 (saved_command_line_size): ... this.
2999 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
3000 * event-top.c (command_line_handler): Adjust.
3001 * main.c (captured_main): Adjust.
3003 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3005 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
3006 get_frame_func instead of get_frame_pc to determine the code
3007 address used to construct the frame ID.
3008 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
3009 (i386_epilogue_frame_this_id): Likewise.
3010 (i386_epilogue_frame_prev_register): New function.
3011 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
3012 (i386_stack_tramp_frame_sniffer): Fix coding style.
3013 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
3014 (i386_gdbarch_init): Fix comments.
3016 2011-06-12 Mark Kettenis <kettenis@gnu.org>
3018 * i386-tdep.c (i386_match_insn_block): Use length of the proper
3019 instruction when walking back through the instruction stream.
3021 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3023 * symtab.c (output_partial_symbol_filename): Exchange the filename and
3024 fullname parameters order.
3026 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
3031 * psymtab.c (map_symbol_filenames_psymtab)
3032 (map_partial_symbol_filenames): Likewise.
3033 * psymtab.h: Include symfile.h.
3034 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
3035 * symfile.h (symbol_filename_ftype): New.
3036 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
3037 map_symbol_filenames, clarify more the naming in comment.
3039 2011-06-07 Doug Evans <dje@google.com>
3041 * cc-with-index.sh: Fix typos in comment.
3042 Look for ../../gdb, for fullname.exp.
3044 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3045 Pedro Alves <pedro@codesourcery.com>
3047 * cli/cli-cmds.c (shell_escape): Use waitpid.
3048 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
3050 2011-06-07 Tristan Gingold <gingold@adacore.com>
3052 * xcoffread.c (dwarf2_xcoff_names): New variable.
3053 (aix_process_linenos): Add a guard.
3054 (xcoff_symfile_finish): Free dwarf2.
3055 (xcoff_initial_scan): Add dwarf2 support.
3057 2011-06-06 Pedro Alves <pedro@codesourcery.com>
3059 * infcall.c (run_inferior_call): Don't mask async. Instead force
3060 a synchronous wait, if the target can async.
3062 * target.h (struct target_ops): Delete to_async_mask.
3063 (target_async_mask): Delete.
3064 * target.c (update_current_target): Delete references to to_async_mask.
3065 * linux-nat.c (linux_nat_async_mask_value): Delete.
3066 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
3067 to linux_nat_async_mask_value.
3068 (linux_nat_async_mask): Delete.
3069 (linux_nat_async, linux_nat_close): Remove references to
3070 linux_nat_async_mask_value.
3071 * record.c (record_async_mask_value): Delete.
3072 (record_async): Remove references to record_async_mask_value.
3073 (record_async_mask): Delete.
3074 (record_can_async_p, record_is_async_p): Remove references to
3075 record_async_mask_value.
3076 (init_record_ops, init_record_core_ops): Remove references to
3078 * remote.c (remote_async_mask_value): Delete.
3079 (init_remote_ops): Remove reference to remote_async_mask.
3080 (remote_can_async_p, remote_is_async_p): Remove references to
3081 remote_async_mask_value.
3082 (remote_async): Remove references to remote_async_mask_value.
3083 (remote_async_mask): Delete.
3085 * infrun.c (fetch_inferior_event): Don't claim registers changed
3086 if the current thread is already not executing.
3088 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3090 From Stephen Kitt <steve@sk2.org>
3091 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3092 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3094 2011-06-03 Joel Brobecker <brobecker@adacore.com>
3096 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3097 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3099 2011-06-03 Tom Tromey <tromey@redhat.com>
3101 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3103 * python/py-exitedevent.c (create_exited_event_object): Change
3104 type of 'exit_code'. Optionally add exit_code attribute.
3105 (emit_exited_event): Change type of 'exit_code'.
3106 * python/py-event.h (emit_exited_event): Update.
3107 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3108 * infrun.c (handle_inferior_event): Set exit code fields on
3110 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3112 * inferior.c (exit_inferior_1): Initialize new fields.
3114 2011-06-03 Tom Tromey <tromey@redhat.com>
3116 * dwarf2expr.c (get_signed_type): New function.
3117 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3119 2011-06-02 Keith Seitz <keiths@redhat.com>
3121 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3123 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3125 * top.h (simplified_command_loop): Delete declaration.
3127 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3129 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3130 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3132 2011-06-01 Yao Qi <yao@codesourcery.com>
3134 * objfiles.h (obj_section_addr): Update reference to objfile from
3136 (obj_section_endaddr): Likewise.
3138 2011-06-01 Daniel Jacobowitz <drow@false.org>
3140 * MAINTAINERS: Update my email address and affiliation. Also
3141 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3143 2010-05-31 Keith Seitz <keiths@redhat.com>
3146 * linespec.c (get_search_block): New function.
3147 (find_methods): Add FILE_SYMTATB parameter and use it and
3148 get_search_block to pass an appropriate block to
3149 lookup_symbol_in_namespace.
3150 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3151 Check if *ARGPTR starts with a filename first.
3152 If it does, call locate_first_half again to locate the next
3153 "first half" of the linespec.
3154 Pass FILE_SYMTATB to decode_objc and decode_compound.
3155 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3156 (locate_first_half): Stop on the first colon seen.
3157 (decode_compound): Add FILE_SYMTAB parameter.
3158 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3159 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3160 get_search_block with lookup_symbol.
3161 (find_method): Add FILE_SYMTAB parameter and pass it to
3163 (decode_objc): Use get_search_block.
3165 2010-05-31 Keith Seitz <keiths@redhat.com>
3168 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3169 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3170 and CP_ANONYMOUS_NAMESPACE_LEN.
3171 (cp_is_anonymous): Likewise.
3172 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3173 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3174 * dwarf2read.c (namespace_name): Likewise.
3175 (fixup_partial_die): Likewise.
3176 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3177 seen in the input, keep it.
3179 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3181 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3182 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3183 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3184 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3185 * remote.c (_initialize_remote): Register
3186 async_remote_interrupt_twice directly as
3187 sigint_remote_twice_token event.
3189 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3191 * target.h (enum inferior_event_type): Delete INF_ERROR.
3192 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3194 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3196 * interps.c (interp_set): Don't cancel continuations.
3198 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3200 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3202 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3204 * continuations.h (continuation_ftype): Add `err' parameter.
3205 Document parameters.
3206 (do_all_continuations, do_all_continuations_thread)
3207 (do_all_intermediate_continuations)
3208 (do_all_intermediate_continuations_thread)
3209 (do_all_inferior_continuations): Add `err' parameter.
3210 * continuations.c (do_my_continuations_1, do_my_continuations)
3211 (do_all_inferior_continuations, do_all_continuations_ptid)
3212 (do_all_continuations_thread_callback)
3213 (do_all_continuations_thread, do_all_continuations)
3214 (do_all_intermediate_continuations_thread_callback)
3215 (do_all_intermediate_continuations_thread)
3216 (do_all_intermediate_continuations): Add `err' parameter, and pass
3217 it down all the way to the continuations proper.
3218 * inf-loop.c (inferior_event_handler): If fetching an inferior
3219 event throws an error, don't pop the target, and still call the
3220 continuations, but with `err' set. Adjust all other continuation
3222 * breakpoint.c (until_break_command_continuation): Add `err'
3224 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3225 issue another step if `err' is set.
3226 (struct until_next_continuation_args): New.
3227 (until_next_continuation): Add `err' parameter. Adjust.
3228 (until_next_command): Adjust.
3229 (struct finish_command_continuation_args): Add `thread' field.
3230 (finish_command_continuation): Add `err' parameter. Handle it.
3231 (finish_forward): Adjust.
3232 (attach_command_continuation): Add `err' parameter. Handle it.
3233 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3234 cancel the continuations.
3235 * interps.c (interp_set): Adjust to cancel the continuations.
3236 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3237 continuations rather than discarding.
3238 (free_thread): Don't clear thread inferior resources here.
3239 (delete_thread_1): Do it here instead. And do it before removing
3240 the thread from the threads list. Tag the thread as exited before
3241 clearing thread inferior resources.
3243 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3245 * infcall.c (call_function_by_hand): Rephrase error message.
3247 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3249 * defs.h (struct thread_info, struct inferior): Delete forward
3251 * breakpoint.h (struct thread_info): New forward declaration.
3252 * observer.sh (struct inferior): New forward declaration.
3253 * python/python-internal.h (struct inferior): New forward
3256 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3258 * defs.h (struct continuation, continuation_ftype)
3259 (continuation_free_arg_ftype, add_continuation)
3260 (do_all_continuations, do_all_continuations_thread)
3261 (discard_all_continuations, discard_all_continuations_thread)
3262 (add_intermediate_continuation, do_all_intermediate_continuations)
3263 (do_all_intermediate_continuations_thread)
3264 (discard_all_intermediate_continuations)
3265 (discard_all_intermediate_continuations_thread)
3266 (add_inferior_continuation, do_all_inferior_continuations)
3267 (discard_all_inferior_continuations): Move to ...
3268 * continuations.h: ... this new file.
3269 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3270 infcmd.c, inferior.c, infrun.c, interps.c: Include
3273 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3274 Doug Evans <dje@google.com>
3276 Fix PR 10970, PR 12702.
3277 * linux-nat.c (linux_lwp_is_zombie): New function.
3278 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3279 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3281 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3283 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3285 (add_continuation, add_intermediate_continuation)
3286 (add_inferior_continuation): Use them.
3287 * continuations.c (struct continuation): Use them.
3288 (make_continuation_ftype): Delete.
3289 (make_continuation, add_inferior_continuation, add_continuation)
3290 (add_intermediate_continuation): Use continuation_ftype and
3291 continuation_free_arg_ftype. Rename parameters to shorter names.
3293 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3295 * continuations.c (make_continuation): Make it return void.
3296 (do_my_continuations): Rename to ...
3297 (do_my_continuations_1): ... this. Remove old_chain parameter and
3299 (do_my_continuations): New.
3300 (discard_my_continuations): Rename to ...
3301 (discard_my_continuations_1): ... this. Remove old_chain
3302 parameter and adjust.
3303 (discard_my_continuations): New.
3304 (add_inferior_continuation): Simplify.
3305 (do_all_inferior_continuations): Reimplement on top
3306 do_my_continuations.
3307 (discard_all_inferior_continuations): Simplify.
3308 (add_continuation): Simplify.
3309 (do_all_continuations_ptid): Simplify.
3310 (discard_all_continuations_thread_callback): Simplify.
3311 (add_intermediate_continuation): Simplify.
3312 (discard_all_intermediate_continuations_thread_callback):
3315 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3317 * utils.c (struct continuation, add_continuation)
3318 (add_inferior_continuation)
3319 (do_all_inferior_continuations, discard_all_inferior_continuations)
3320 (restore_thread_cleanup, do_all_continuations_ptid)
3321 (do_all_continuations_thread_callback)
3322 (do_all_continuations_thread, do_all_continuations)
3323 (discard_all_continuations_thread_callback)
3324 (discard_all_continuations_thread, discard_all_continuations)
3325 (add_intermediate_continuation)
3326 (do_all_intermediate_continuations_thread_callback)
3327 (do_all_intermediate_continuations_thread)
3328 (do_all_intermediate_continuations)
3329 (discard_all_intermediate_continuations_thread_callback)
3330 (discard_all_intermediate_continuations_thread)
3331 (discard_all_intermediate_continuations): Move to ...
3332 * continuations.c: ... this new file, and adjust to no longer
3333 implement continuations on top of cleanups.
3334 * Makefile.in (SFILES): Add continuations.c.
3335 (COMMON_OBS): Add continuations.o.
3337 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3339 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3340 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3341 Internal error on invalid values.
3342 * reverse.c: Don't handle EXEC_ERROR.
3343 * mi/mi-main.c: Don't handle EXEC_ERROR.
3345 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3347 * record.c: Include event-loop.h, inf-loop.h.
3348 (record_beneath_to_async): New global.
3349 (tmp_to_async): New global.
3350 (record_async_inferior_event_token): New global.
3351 (record_open_1): Don't error out if async is enabled.
3352 (record_open): Handle to_async. Create an async event source in
3354 (record_close): Delete the async event source.
3355 (record_resumed): New global.
3356 (record_execution_dir): New global.
3357 (record_resume, record_core_resume): Set them. Register the
3358 target on the event loop.
3359 (record_wait): Rename to ...
3360 (record_wait_1): ... this. Add more debug output. Handle
3361 TARGET_WNOHANG, and the target beneath returning
3362 TARGET_WAITKIND_IGNORE.
3363 (record_wait): Reimplement on top of record_wait_1.
3364 (record_async_mask_value): New global.
3365 (record_async, record_async_mask, record_can_async_p)
3366 (record_is_async_p, record_execution_direction): New functions.
3367 (init_record_ops, init_record_core_ops): Install new methods.
3368 * infrun.c (fetch_inferior_event): Temporarily switch the global
3369 execution direction to the direction the target was going.
3370 (execution_direction): Change type to int.
3371 * target.c (default_execution_direction): New function.
3372 (update_current_target): Inherit and de_fault
3373 to_execution_direction.
3374 * target.h (struct target_ops) <to_execution_direction>: New
3376 (target_execution_direction): New macro.
3377 * inferior.h (execution_direction): Change type to int.
3379 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3381 * infcall.c (call_function_by_hand): Don't allow calling functions
3382 in reverse execution mode.
3384 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3386 * infcmd.c (finish_command): Allow async finish in reverse.
3388 2011-05-26 Yao Qi <yao@codesourcery.com>
3390 * gdb_thread_db.h: Delete. Move to ...
3391 * common/gdb_thread_db.h: ... here.
3393 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3395 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3396 function's entry point instead of a manually managed momentary
3397 breakpoint, and only ever issue one proceed call.
3398 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3399 doing a reverse-finish, switch to stepi mode, to do another step.
3400 (insert_step_resume_breakpoint_at_sal): Make public.
3401 (normal_stop): No need to save function value return registers if
3403 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3405 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3407 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3408 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3409 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3411 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3412 step-resume breakpoints.
3413 (print_it_typical): Handle bp_hp_step_resume.
3414 (bpstat_what): Ditto.
3415 (bptype_string): Ditto.
3416 (print_one_breakpoint_location): Ditto.
3417 (allocate_bp_location): Ditto.
3419 (breakpoint_re_set_one): Ditto.
3420 * infrun.c (handle_inferior_event): Adjust. Split
3421 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3422 BPSTAT_WHAT_HP_STEP_RESUME.
3423 (insert_step_resume_breakpoint_at_sal): Rename to ...
3424 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3425 parameter. Handle it.
3426 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3427 insert_step_resume_breakpoint_at_sal_1.
3428 (insert_step_resume_breakpoint_at_frame): Rename to ...
3429 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3430 set a high-priority step-resume breakpoint.
3431 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3432 (insert_step_resume_breakpoint_at_caller): Ditto.
3434 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3436 * breakpoint.c (iterate_over_related_breakpoints): New.
3437 (do_map_delete_breakpoint): New.
3438 (delete_command): Pass do_map_delete_breakpoint to
3439 map_breakpoint_numbers.
3440 (do_disable_breakpoint): New.
3441 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3443 (do_enable_breakpoint): Rename to ...
3444 (enable_breakpoint_disp): ... this.
3445 (enable_breakpoint): Adjust.
3446 (do_enable_breakpoint): New.
3447 (enable_once_breakpoint): Delete.
3448 (do_map_enable_breakpoint): New.
3449 (do_map_enable_once_breakpoint): New.
3450 (enable_once_command, enable_delete_command)
3451 (delete_trace_command): Iterate over the breakpoint's related
3454 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3456 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3457 for ALPHA_ZERO_REGNUM.
3458 (alpha_supply_int_regs): Explicitly supply zero as the value for
3459 ALPHA_ZERO_REGNUM in the register cache.
3460 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3462 2011-05-26 Yao Qi <yao@codesourcery.com>
3464 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3466 2011-05-26 Tristan Gingold <gingold@adacore.com>
3468 * symfile.h (struct dwarf2_section_names): New type.
3469 (struct dwarf2_debug_sections): New type.
3470 (dwarf2_has_info): Add parameter.
3471 * dwarf2read.c (dwarf2_elf_names): New variable.
3472 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3473 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3474 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3475 (dwarf2_has_info): Add names parameter. Pass names
3476 to dwarf2_locate_sections.
3477 (section_is_p): Rewrite using the names parameter.
3478 (dwarf2_locate_sections): Use section names from the names parameter.
3479 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3480 * elfread.c (read_psyms): Ditto.
3481 * machoread.c (macho_symfile_read): Ditto.
3483 2011-05-25 Andreas Schwab <schwab@redhat.com>
3486 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3488 2011-05-24 Keith Seitz <keiths@redhat.com>
3491 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3492 (decode_compound): Unconditionally call keep_name_info.
3494 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3496 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3497 scope, clear its command list.
3498 (map_breakpoint_numbers): Don't walk the related breakpoints list
3501 2011-05-24 Tom Tromey <tromey@redhat.com>
3503 * MAINTAINERS: Move Jim Blandy to past maintainers.
3505 2011-05-24 Tristan Gingold <gingold@adacore.com>
3507 * symfile.h (enum dwarf2_section_enum): New type.
3508 (dwarf2_get_section_info): New prototype.
3509 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3510 section_name by sect. Use a switch to select the info.
3511 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3512 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3514 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3516 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3517 shared library event breakpoint if there's no execution.
3519 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3521 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3522 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3524 2011-05-23 Tom Tromey <tromey@redhat.com>
3526 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3529 2011-05-23 Doug Evans <dje@google.com>
3531 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3532 entry for RuntimeError to doc string.
3534 2011-05-23 Jerome Guitton <guitton@adacore.com>
3536 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3537 sequence for probing loops.
3539 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3541 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3544 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3546 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3547 zero as the value for %g0 in the register cache.
3548 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3549 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3551 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3553 * infrun.c (proceed): Set previous_inferior_ptid here.
3554 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3555 inferior_ptid, not null_ptid.
3556 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3557 (fetch_inferior_event): Nor here.
3559 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3561 * inf-loop.c (inferior_event_handler): Only output a message if
3564 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3566 * MAINTAINERS: Update my e-mail address.
3568 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3570 * infrun.c (proceed): Switch the inferior event loop to
3571 INF_EXEC_COMPLETE if the target refused to resume from a
3574 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3576 * infcmd.c: Include "inf-loop.h".
3577 (step_once): When stepping into an inline subroutine, pretend the
3578 target has run. If the target can async, switch the inferior
3579 event loop to INF_EXEC_COMPLETE.
3580 * inferior.h (user_visible_resume_ptid): Declare.
3581 * infrun.c (user_visible_resume_ptid): New function, factored out
3584 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3585 that the current thread is running. Merge async and sync
3588 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3590 * infcmd.c (step_1): Simplify synchronous case.
3592 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3594 * tracepoint.c: Include exceptions.h.
3595 (TFILE_PID): Move higher in file.
3596 (tfile_open): Delay pushing the tfile target until we're assured
3597 the tfile header is present in the file. Wrap reading the initial
3598 newline-terminated lines in TRY_CATCH. Pop the target if the
3599 initial setup failed. Add the tfile's thread immediately
3600 aftwards, before any non-essential setup. Don't skip
3601 post_create_inferior if there are no traceframes present in the
3603 (tfile_close): Remove redundant check for null before xfree call.
3604 (tfile_thread_alive): New function.
3605 (init_tfile_ops): Register it as to_thread_alive callback.
3607 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3609 * tracepoint.c (tfile_open): Delete #if 0'd code.
3611 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3613 Fix -readnow for -gdwarf-4 unused type units.
3614 * dwarf2read.c (struct signatured_type): Remove the field offset.
3615 (create_signatured_type_table_from_index): Remove its initialization.
3616 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3617 instead. Add a complaint call.
3618 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3619 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3620 (lookup_signatured_type_at_offset, read_signatured_type)
3621 (write_one_signatured_type): Update the field for per_cu.
3623 2011-05-19 Tom Tromey <tromey@redhat.com>
3625 * python/py-inferior.c (python_inferior_exit): Use
3627 (python_on_resume): Likewise.
3629 2011-05-19 Matt Rice <ratmice@gmail.com>
3631 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3633 2011-05-19 Hui Zhu <teawater@gmail.com>
3635 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3637 2011-05-19 Hui Zhu <teawater@gmail.com>
3639 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3641 2011-05-18 Tom Tromey <tromey@redhat.com>
3643 * dwarf2read.c (dwarf2_add_field): Constify.
3644 * value.c (value_static_field): Constify.
3645 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3647 * ax-gdb.c (gen_static_field): Constify
3649 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3651 * linux-nat.c (kill_callback): Use SIGKILL first.
3653 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3655 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3657 2011-05-18 Tom Tromey <tromey@redhat.com>
3659 * value.c (value_fn_field): Constify.
3660 * symtab.c (gdb_mangle_name): Constify.
3661 * stabsread.c (update_method_name_from_physname): Make 'physname'
3663 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3664 const. Use explicit fputc_filtered loop.
3665 (pascal_type_print_base): Constify.
3666 * p-lang.h (pascal_type_print_method_args): Update.
3667 * linespec.c (add_matching_methods): Constify.
3668 (add_constructors): Likewise.
3669 * jv-typeprint.c (java_type_print_base): Constify.
3670 * gdbtypes.h (struct cplus_struct_type)
3671 <fn_fieldlist.fn_field.physname>: Now const.
3672 * dwarf2read.c (compute_delayed_physnames): Constify.
3673 (dwarf2_add_member_fn): Likewise.
3674 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3676 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3678 * infrun.c (resume): Mention which is the current thread, and its
3679 current PC in debug output.
3680 (prepare_to_proceed): Mention the thread switching in debug
3683 2011-05-18 Tom Tromey <tromey@redhat.com>
3685 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3686 path check. Use xmalloc and cleanups.
3687 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3689 2011-05-17 Tom Tromey <tromey@redhat.com>
3691 * cp-valprint.c (cp_print_value_fields): Catch errors from
3694 2011-05-17 Tom Tromey <tromey@redhat.com>
3696 * dwarf2read.c (dwarf2_get_die_type): Call
3697 get_die_type_at_offset.
3698 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3699 get_base_type function.
3701 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3703 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3706 2011-05-16 Doug Evans <dje@google.com>
3708 * python/py-auto-load.c (source_section_scripts): Mention objfile
3711 2011-05-15 Doug Evans <dje@google.com>
3713 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3714 (try_thread_db_load_from_pdir): Call it. If unable to find
3715 libthread_db in directory of libpthread, see if we're looking at
3716 the separate-debug-info copy.
3718 * python/py-autoload.c (print_script): Print "Missing" instead of
3719 "No" for missing scripts.
3720 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3722 2011-05-13 Doug Evans <dje@google.com>
3724 * ui-file.c (stdio_file_write_async_safe): Add comment.
3726 2011-05-14 Hui Zhu <teawater@gmail.com>
3728 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3730 2011-05-13 Doug Evans <dje@google.com>
3732 Support $pdir and $sdir in libthread-db-search-path.
3733 * NEWS: Mention $sdir,$pdir.
3734 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3735 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3736 (try_thread_db_load_from_sdir): New function.
3737 (try_thread_db_load_from_dir): New function.
3738 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3739 system directories if search of libthread-db-search-path fails,
3740 that is now done via $sdir.
3741 (has_libpthread): New function.
3742 (thread_db_load): Remove search for libthread_db in directory of
3743 libpthread, that is now done via $pdir.
3745 * NEWS: Mention "info auto-load-scripts".
3746 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3747 script_not_found_warning_printed.
3748 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3749 all callers updated. Initialize script_not_found_warning_printed.
3750 (get_auto_load_pspace_data_for_loading): New function.
3751 (maybe_add_script): New function.
3752 (source_section_scripts): Simplify. Only print one warning regardless
3753 of the number of auto-load scripts not found.
3754 (clear_section_scripts): Clear script_not_found_warning_printed.
3755 (auto_load_objfile_script): Record script in hash table.
3756 (count_matching_scripts): New function.
3757 (maybe_print_script): Renamed from maybe_print_section_script, all
3758 callers updated. Rewrite to use ui_out_*.
3759 (info_auto_load_scripts): Renamed from
3760 maintenance_print_section_scripts, all callers updated.
3761 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3762 renamed as "info auto-load-scripts".
3764 2011-05-13 Tom Tromey <tromey@redhat.com>
3766 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3767 (read_sleb128): Likewise.
3769 2011-05-13 Tom Tromey <tromey@redhat.com>
3771 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3774 2011-05-13 Doug Evans <dje@google.com>
3776 * linux-nat.c (debug_linux_nat_async): Delete.
3777 Replace all references to use debug_linux_nat instead.
3778 (show_debug_linux_nat_async): Delete.
3779 (sigchld_handler): Call ui_file_write_async_safe instead of
3781 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3782 * ui-file.c (struct ui_file): New member to_write_async_safe.
3783 (null_file_write_async_safe): New function.
3784 (ui_file_write_async_safe): New function.
3785 (set_ui_file_write_async_safe): New function.
3786 (ui_file_new): Initialize to_write_async_safe.
3787 (stdio_file_write_async_safe): New function.
3788 (struct stdio_file): New member fd.
3789 (stdio_file_new): Initialize to_write_async_safe, fd.
3790 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3792 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3793 (set_ui_file_write_async_safe): Declare.
3794 (ui_file_write_async_safe): Declare.
3796 2011-05-13 Tom Tromey <tromey@redhat.com>
3798 * utils.c (do_value_free): New function.
3799 (make_cleanup_value_free): Likewise.
3800 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3802 (dwarf2_loc_desc_needs_frame): Call
3803 make_cleanup_value_free_to_mark.
3804 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3805 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3807 (new_dwarf_expr_context): Don't call value_mark.
3808 * dwarf2-frame.c (execute_stack_op): Call
3809 make_cleanup_value_free_to_mark.
3810 * defs.h (make_cleanup_value_free): Declare.
3812 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3814 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3815 prepare_execute_command.
3816 * top.c (prepare_execute_command): Return cleanup.
3817 (execute_command): Use cleanup from prepare_execute_command.
3818 * top.h (prepare_execute_command): Change prototype to return
3820 * defs.h (struct value): Add opaque declaration.
3821 (make_cleanup_value_free_to_mark): Add prototype.
3822 * utils.c (do_value_free_to_mark): New function.
3823 (make_cleanup_value_free_to_mark): Likewise.
3825 2011-05-12 Tom Tromey <tromey@redhat.com>
3827 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3828 cast left-hand-side to unsigned.
3830 2011-05-12 Tom Tromey <tromey@redhat.com>
3833 * value.h (value_from_contents): Declare.
3834 * value.c (value_from_contents): New function.
3835 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3836 (dwarf2_get_die_type): New function.
3837 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3838 (allocate_piece_closure): Acquire reference to values.
3839 (read_pieced_value): Update for value-based expressions.
3840 (write_pieced_value): Likewise.
3841 (free_pieced_value_closure): Call value_free as needed.
3842 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3843 Update for value-based expressions.
3844 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3845 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3846 <get_base_type>: New field.
3847 (struct dwarf_expr_piece) <v.value>: Change type.
3848 <v.regno>: New field.
3849 (struct dwarf_expr_context) <mark>: New field.
3850 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3851 (dwarf_expr_pop, dwarf_expr_push): Remove.
3852 (dwarf_expr_push_address): Declare.
3853 * dwarf2expr.c (dwarf_arch_cookie): New global.
3854 (struct dwarf_gdbarch_types): New.
3855 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3857 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3859 (dwarf_expr_push_address): New function.
3860 (dwarf_expr_pop): Now static.
3861 (dwarf_expr_fetch): Change return type.
3862 (dwarf_require_integral): New function.
3863 (dwarf_expr_fetch): Simplify.
3864 (add_piece): Update.
3865 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3867 (execute_stack_op) <sign_ext>: Remove.
3868 Use values for DWARF stack.
3869 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3870 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3872 (_initialize_dwarf2expr): New function.
3873 (add_piece): Update.
3874 (new_dwarf_expr_context): Set new field.
3875 (free_dwarf_expr_context): Call value_free_to_mark.
3876 * dwarf2-frame.c (no_base_type): New function.
3877 (execute_stack_op): Set get_base_type field. Update.
3879 2011-05-12 Tom Tromey <tromey@redhat.com>
3881 * dwarf2read.c (read_common_block): Fix formatting.
3883 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3885 * breakpoint.c (disable_breakpoint): Disable all locations
3886 associated with a tracepoint on target if a trace experiment is
3888 (disable_command): Disable a specific tracepoint location on target if
3889 a trace experiment is running.
3890 (do_enable_breakpoint): Enable all locations associated with a
3891 tracepoint on target if a trace experiment is running.
3892 (enable_command) Enable a specific tracepoint location on target if a
3893 trace experiment is running.
3894 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3895 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3896 to_disable_tracepoint.
3897 * target.h: Add declaration of struct bp_location.
3898 (struct target_ops): Add new functions
3899 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3900 to_disable_tracepoint to target operations.
3901 (target_supports_enable_disable_tracepoint): New macro.
3902 (target_enable_tracepoint): New macro.
3903 (target_disable_tracepoint): New macro.
3904 * remote.c (struct remote_state): Add new field.
3905 (remote_enable_disable_tracepoint_feature): New.
3906 (remote_protocol_features): Add new entry.
3907 (remote_supports_enable_disable_tracepoint): New.
3908 (remote_enable_tracepoint): New.
3909 (remote_disable_tracepoint): New.
3910 (init_remote_ops): Add remote_enable_tracepoint,
3911 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3912 to remote operations.
3913 * tracepoint.c (start_tracing): Allow tracing to start without any
3914 tracepoints enabled with just a warning if they can be re-enabled
3916 * NEWS: Add news item for the new behaviour of the enable and disable
3917 GDB commands when applied to tracepoints.
3918 Add news items for the new remote packets QTEnable and QTDisable.
3920 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3922 * config.in: Regenerate.
3923 * configure: Regenerate.
3924 * configure.ac <--with-system-readline> (for readline_echoing_p):
3926 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3927 (tui_old_rl_echoing_p): ... here.
3928 (tui_setup_io): Rename extern declaration readline_echoing_p to
3929 _rl_echoing_p. Adjust assignments for the both renames.
3931 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3933 * symtab.c (lookup_symtab): Run cleanup before returning.
3935 2011-05-11 Tom Tromey <tromey@redhat.com>
3937 * dwarf2read.c (handle_data_member_location): New function.
3938 (dwarf2_add_field): Use it.
3939 (read_common_block): Likewise.
3941 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3943 Make addrs->SECTINDEX always defined.
3944 * symfile.c (relative_addr_info_to_section_offsets): Check for
3945 SECTINDEX -1, not for zero ADDR.
3946 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3947 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3948 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3951 2011-05-10 Doug Evans <dje@google.com>
3953 * linux-thread-db.c: Whitespace cleanup.
3954 (try_thread_db_load_1): Fix comment.
3956 * linux-thread-db.c (set_libthread_db_search_path): New function.
3957 (_initialize_thread_db): Add setter for libthread-db-search-path.
3959 2011-05-09 Doug Evans <dje@google.com>
3961 * NEWS: Mention --with-iconv-bin.
3962 * configure.ac: New option --with-iconv-bin.
3963 * configure: Regenerate.
3964 * config.in: Regenerate.
3965 * defs.h (relocate_gdb_directory): Declare.
3966 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3967 removed progname parameter, and exported. All callers updated.
3968 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3970 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3971 adding missing call to restore_child_signals_mask.
3973 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3975 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3977 * infrun.c (proceed, start_remote): Adjust.
3978 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3979 and adjust to not handle it.
3980 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3981 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3982 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3983 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3984 * windows-nat.c (do_initial_windows_stuff): Adjust.
3985 * infcmd.c (attach_command): Adjust.
3986 (notice_new_inferior): Adjust.
3988 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3990 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3991 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3992 * spu-tdep.c (op_selb): Use correct value.
3994 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3996 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3997 "parent" parameter to symbol_file_add_from_bfd call.
3999 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4000 Thiago Jung Bauermann <bauerman@br.ibm.com>
4002 Implement support for PowerPC BookE masked watchpoints.
4003 * NEWS: Mention masked watchpoint support. Create "Changed commands"
4005 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
4006 method. Initialize to NULL in all existing breakpoint_ops instances.
4007 (struct breakpoint) <hw_wp_mask>: New field.
4008 * breakpoint.c (is_masked_watchpoint): Add prototype.
4009 (update_watchpoint): Don't set b->val for masked watchpoints. Call
4010 breakpoint's breakpoint_ops.works_in_software_mode if available.
4011 (watchpoints_triggered): Handle the case of a hardware masked
4013 (watchpoint_check): Likewise.
4014 (works_in_software_mode_watchpoint): New function.
4015 (insert_masked_watchpoint, remove_masked_watchpoint)
4016 (resources_needed_masked_watchpoint)
4017 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
4018 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
4019 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
4021 (masked_watchpoint_breakpoint_ops): New structure.
4022 (watch_command_1): Check for the existence of the `mask' parameter.
4023 Set b->ops according to the type of hardware watchpoint being created.
4024 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
4025 (ppc_linux_remove_mask_watchpoint)
4026 (ppc_linux_masked_watch_num_registers): New functions.
4027 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
4028 to_remove_mask_watchpoint and to_masked_watch_num_registers.
4029 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
4030 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
4031 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4032 (target_masked_watch_num_registers): New functions.
4033 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
4034 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
4036 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
4037 (target_masked_watch_num_registers): Add prototypes.
4039 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4042 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
4043 (producer_is_gcc_ge_4_0): New function.
4044 (process_full_comp_unit): Set also symtab->locations_valid. Move the
4045 symtab->language code.
4046 (var_decode_location): Set cu->has_loclist.
4047 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
4048 skip. Intialize force_skip from locations_valid. Move the prologue
4049 skipping code into two passes.
4050 * symtab.h (struct symtab): Make the primary field a bitfield. New
4051 field locations_valid.
4053 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4055 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
4056 (classify_inner_name): Call cp_lookup_nested_type with
4058 * cp-namespace.c (cp_lookup_nested_type): New variable
4059 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
4060 type_name_no_tag_or_error with saved_parent_type.
4061 * dwarf2read.c (load_partial_dies): Read in any children of
4062 DW_TAG_typedef with complaint in such case.
4063 * gdbtypes.c (type_name_no_tag_or_error): New function.
4064 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
4065 * valops.c (destructor_name_p): New comment for parameter type. Remove
4066 type const. Make dname and cp const. Call type_name_no_tag_or_error.
4067 * value.h (destructor_name_p): Remove type const.
4069 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4071 * symtab.c (compare_symbol_name): New function.
4072 (completion_list_add_name, expand_partial_symbol_name): Call it,
4073 remove the variable ncmp.
4074 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
4077 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4079 Demote to sw watchpoint only in update_watchpoint.
4080 * breakpoint.c (update_watchpoint): Change between software and
4081 hardware watchpoint for all kinds of watchpoints, not just
4082 read/write ones. Determine b->exact value here instead of
4083 in watch_command_1. Error out if there are not enough resources
4084 for a read or access hardware watchpoint.
4085 (watch_command_1): Remove logic of checking whether there are
4086 enough resources available, since update_watchpoint will do that
4087 work now. Don't set b->exact here. Catch exceptions thrown by
4088 update_watchpoint and delete the watchpoint.
4089 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4090 Use target_exact_watchpoints instead.
4091 (delete_breakpoint): Notify observers only if deleted watchpoint
4092 has a breakpoint number assigned to it.
4094 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
4096 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4098 2011-05-05 Jerome Guitton <guitton@adacore.com>
4100 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4102 (i386_stack_tramp_frame_unwind): New static global.
4103 (i386_match_pattern): New function, extracted from i386_match_insn.
4104 (i386_match_insn): Use i386_match_pattern.
4105 (i386_match_insn_block): New function.
4106 (i386_tramp_chain_in_reg_insns)
4107 (i386_tramp_chain_on_stack_insns): New static variables.
4108 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4111 2011-05-04 Joseph Myers <joseph@codesourcery.com>
4113 * configure.host (xscale*): Don't handle target.
4114 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4117 2011-05-04 Yao Qi <yao@codesourcery.com>
4119 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4121 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4124 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4125 | * elfread.c (elf_symtab_read): Stop memory leak.
4127 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4129 * nto-tdep.c (nto_target): Replace deprecated call to
4130 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4132 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4134 Fix false GCC warning.
4135 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4137 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4139 * breakpoint.c (update_watchpoint): Move code to change
4140 the enable state of breakpoint from here ...
4141 (do_enable_breakpoint): ... to here.
4143 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4145 * valprint.c (val_print_array_elements): Fixed poor performance
4146 of printing very large arrays with repeat_count_threshold set
4147 to unlimited. New comment.
4149 2011-04-29 Tom Tromey <tromey@redhat.com>
4151 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4152 (mi_parse): Likewise.
4153 * breakpoint.c (break_range_command): Use sizeof char*, not
4155 (create_breakpoint): Likewise.
4156 (parse_breakpoint_sals): Likewise.
4158 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4160 * linux-nat.c (linux_child_remove_fork_catchpoint)
4161 (linux_child_remove_vfork_catchpoint)
4162 (linux_child_remove_exec_catchpoint): New functions.
4163 (linux_target_install_ops): Install them.
4165 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4169 * varobj.c (install_default_visualizer): Do not install a
4170 visualizer if the varobj is CPLUS_FAKE_CHILD.
4171 (construct_visualizer): Likewise.
4173 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4175 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4176 case insensitive comparison.
4178 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4180 * infrun.c (proceed): Revert previous change.
4181 (resume): Instead, handle the case of signal delivery while stepping
4182 off a breakpoint location here, and only if software single-stepping
4183 is used. Handle nested signals.
4185 2011-04-28 Yao Qi <yao@codesourcery.com>
4187 * arm-tdep.c (copy_unmodified): Rename to ...
4188 (arm_copy_unmodified): .. this. New.
4189 (copy_preload): Move common part to ...
4190 (install_preload): .. this. New.
4191 (arm_copy_preload): New.
4192 (copy_preload_reg): Move common part to ...
4193 (install_preload_reg): ... this. New.
4194 (arm_copy_preload_reg): New.
4195 (copy_b_bl_blx): Move common part to ...
4196 (install_b_bl_blx): .. this. New.
4197 (arm_copy_b_bl_blx): New.
4198 (copy_bx_blx_reg): Move common part to ...
4199 (install_bx_blx_reg): ... this. New.
4200 (arm_copy_bx_blx_reg): New.
4201 (copy_alu_reg): Move common part to ...
4202 (install_alu_reg): ... this. New.
4203 (arm_copy_alu_reg): New.
4204 (copy_alu_shifted_reg): Move common part to ...
4205 (install_alu_shifted_reg): ... this. New.
4206 (copy_ldr_str_ldrb_strb): Move common part to ...
4207 (install_ldr_str_ldrb_strb): ... this. New.
4208 (arm_copy_ldr_str_ldrb_strb): New.
4209 (copy_copro_load_store): Move some common part to ...
4210 (install_copy_copro_load_store): ... this. New.
4211 (arm_copy_copro_load_store): New.
4213 (arm_copy_svc): Renamed from copy_svc.
4214 (copy_undef): Delete.
4215 (arm_copy_undef): Renamed from copy_undef.
4216 (decode_ext_reg_ld_st): Delete.
4217 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4218 (decode_svc_copro): Delete.
4219 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4220 (copy_copro_load_store, copy_alu_imm): update callers.
4221 (copy_extra_ld_st, copy_block_xfer): Likewise.
4222 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4223 (decode_miscellaneous, decode_dp_misc): Likewise.
4224 (decode_ld_st_word_ubyte, decode_media): Likewise.
4225 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4226 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4227 (decode_unconditional, decode_miscellaneous): Likewise.
4228 (decode_media, decode_b_bl_ldmstm): Likewise.
4229 (arm_process_displaced_insn): Likewise..
4230 (decode_misc_memhint_neon): Delete.
4231 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4232 (decode_miscellaneous): Delete.
4233 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4234 (decode_dp_misc): Delete.
4235 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4236 (decode_ld_st_word_ubyte): Delete.
4237 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4238 (decode_media): Delete.
4239 (arm_decode_media): Renamed from decode_media.
4240 (decode_b_bl_ldmstm): Delete.
4241 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4242 (decode_ext_reg_ld_st): Delete.
4243 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4244 (decode_unconditional): Delete.
4245 (arm_decode_unconditional): Renamed from decode_unconditional.
4247 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4249 Case insensitive lookups implementation.
4250 * dwarf2read.c: Include ctype.h.
4251 (struct mapped_index): New field version.
4252 (mapped_index_string_hash): New parameter index_version. New comment
4253 for it. Call tolower appropriately.
4254 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4255 Choose the right index version for mapped_index_string_hash.
4256 (dwarf2_read_index): Support also the index version 5. Initialize the
4257 new struct mapped_index field version.
4258 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4259 (find_slot): Explain the version needs. Pass INT_MAX for the new
4261 (write_psymtabs_to_index): Produce version 5.
4262 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4263 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4264 * psymtab.c (lookup_partial_symbol): Find the
4265 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4267 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4269 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4270 (completion_list_add_name): New variable ncmp, initialize it, use it.
4271 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4272 * utils.c (strcmp_iw): Support case_sensitive_off.
4273 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4274 New function comment part. New variables saved_string1,
4275 saved_string2 and case_pass. Add a proper second pass.
4277 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4279 Replace re_comp/re_exec by regcomp/regexec.
4280 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4281 (search_symbols_name_matches): Use them, use regexec.
4282 (search_symbols): New variable retval_chain, adjust the use of
4283 old_chain against it. Replace re_comp by regcomp. Use the new struct
4284 search_symbols_data fields, use regexec instead of re_exec.
4286 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4288 Format the code for the next patch.
4289 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4290 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4291 New variables c1 and c2.
4293 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4295 * infrun.c (proceed): Do not single-step into signal delivery
4296 when stepping off a breakpoint location.
4297 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4298 (insert_step_resume_breakpoint_at_caller): Likewise.
4299 (insert_step_resume_breakpoint_at_sal): Likewise.
4300 (insert_longjmp_resume_breakpoint): Likewise.
4302 2011-04-27 Yao Qi <yao@codesourcery.com>
4304 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4306 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4308 * procfs.c (procfs_pass_signals): Fix advance declaration.
4310 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4312 * target.h (struct target_ops): Remove to_notice_signals;
4313 add to_pass_signals.
4314 (target_notice_signals): Remove.
4315 (target_pass_signals): Add prototype.
4316 * target.c (update_current_target): Remove to_notice_signals;
4317 mention to_pass_signals.
4318 (target_pass_signals): New function.
4319 (debug_to_notice_signals): Remove.
4320 (setup_target_debug): Do not install debug_to_notice_signals.
4322 * infrun.c (signal_pass): New global.
4323 (resume): Call target_pass_signals.
4324 (handle_inferior_event): Report all signals while stepping over
4325 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4326 are re-inserted when stepping over a signal handler.
4327 (signal_cache_update): New function.
4328 (signal_stop_update): Call it.
4329 (signal_print_update): Likewise.
4330 (signal_pass_update): Likewise.
4331 (handle_command): Call signal_cache_update and target_pass_signals
4332 instead of target_notice_signals.
4333 (_initialize_infrun): Initialize signal_pass.
4335 * linux-nat.c (pass_mask): New global.
4336 (linux_nat_pass_signals): New function.
4337 (linux_nat_create_inferior): Report all signals initially.
4338 (linux_nat_attach): Likewise.
4339 (linux_nat_resume): Use pass_mask to decide whether to directly
4340 handle an inferior signal.
4341 (linux_nat_wait_1): Likewise.
4342 (linux_nat_add_target): Install to_pass_signals callback.
4344 * nto-procfs.c (notice_signals): Remove.
4345 (procfs_resume): Do not call notice_signals.
4346 (procfs_notice_signals): Remove.
4347 (procfs_pass_signals): New function.
4348 (init_procfs_ops): Install to_pass_signals callback instead of
4349 to_notice_signals callback.
4350 (_initialize_procfs): Report all signals initially.
4352 * procfs.c (procfs_notice_signals): Remove.
4353 (procfs_pass_signals): New function.
4354 (procfs_target): Install to_pass_signals callback instead of
4355 to_notice_signals callback.
4356 (register_gdb_signals): Remove.
4357 (procfs_debug_inferior): Report all signals initially.
4358 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4360 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4361 parameters; use them instead of calling signal_..._state routines.
4362 (remote_notice_signals): Remove.
4363 (remote_start_remote): Report all signals initially.
4364 (remote_resume): Do not call remote_pass_signals.
4365 (_initialize_remote): Install to_pass_signals callback instead of
4366 to_notice_signals callback.
4368 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4370 * breakpoint.c (user_settable_breakpoint): Delete.
4371 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4372 (delete_command): Check user_breakpoint_p instead of looking at
4373 the breakpoint's type.
4374 (disable_command): Ditto.
4375 (enable_command): Ditto.
4376 (delete_trace_command): Use user_breakpoint_p instead of looking
4377 at the breakpoint number directly. When checking if there are
4378 user visible tracepoints, in order to know whether to ask the user
4379 for confirmation, check whether the breakpoint is actually a
4382 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4384 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4387 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4389 MI breakpoint notifications.
4391 * annotate.c (breakpoint_changed): Adjust parameter type.
4392 * breakpoint.c (set_breakpoint_condition): Adjust to change
4393 in breakpoint_modified type.
4394 (breakpoint_set_commands): Likewise.
4395 (do_map_commands_command): Likewise.
4396 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4397 changed after bumping hit count.
4398 (bpstat_stop_status): Likewise.
4399 (print_one_breakpoint_location): Don't wrap in tuple here.
4400 (print_one_breakpoint): Always print individual locations.
4401 For locations, use unnamed tuple.
4402 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4404 (create_catchpoint, create_syscall_event_catchpoint): Call
4405 breakpoint_created obsever.
4406 (mention): Don't call breakpoint_created observer.
4407 (create_breakpoint_sal): Call breakpoint_created observer.
4408 (create_breakpoint, watch_command_1): Likewise.
4409 (create_ada_exception_breakpoint): Likewise.
4410 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4411 (locations_are_equal): New.
4412 (update_breakpoint_locations): If locations were changed, notify.
4413 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4414 Call breakpoint_modified observer.
4416 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4417 (mi_cmd_break_insert): Don't set observers for modify and delete.
4418 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4419 (mi_breakpoint_created, mi_breakpoint_deleted)
4420 (mi_breakpoint_modified): New.
4421 (mi_interpreter_init): Hook the above.
4422 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4423 while -break-* commands are executing.
4424 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4425 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4427 (mi_ui_out_impl): Hook in mi_redirect.
4428 (mi_field_skip): True to the name, skip the field, don't output
4429 a field with an empty value.
4431 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4432 (gdbpy_breakpoint_deleted): Adjust.
4433 * tui/tui-hooks.c (tui_event_create_breakpoint)
4434 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4436 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4438 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4439 (procfs_remove_hw_watchpoint): Likewise.
4441 2011-04-26 Michael Walle <michael@walle.cc>
4443 * remote.c (remote_start_remote): Ack packet after sending the
4446 2011-04-26 Yao Qi <yao@codesourcery.com>
4448 * linux-nat.c: Move common macros to ...
4449 Include linux-ptrace.h.
4450 * common/linux-ptrace.h: ... here. New.
4452 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4454 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4455 !objfile_has_partial_symbols. New comment.
4456 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4457 SYM_READ_PSYMBOLS is not present. Extend the comment.
4458 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4460 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4462 * defs.h (ENUM_BITFIELD): Remove.
4464 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4465 Eli Zaretskii <eliz@gnu.org>
4467 * NEWS: Document the new gdbserver --once option.
4469 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4471 * MAINTAINERS: Update my email address.
4473 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4475 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4476 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4477 function call if __STDC_ISO_10646__ macro is defined.
4478 (intermediate_encoding): New prototype.
4479 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4480 to generate compile time error for unsupported gdb_wchar_t size.
4481 (ENDIAN_SUFFIX): New macro.
4482 (intermediate_encoding): New function.
4484 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 * ada-lang.c (struct add_partial_datum): Update the comment for
4487 expand_partial_symbol_name.
4488 (ada_add_partial_symbol_completions): Rename to ...
4489 (ada_expand_partial_symbol_name): ... here, change return type, update
4490 function comment, call symbol_completion_match instead of
4491 symbol_completion_add.
4492 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4493 and ada_expand_partial_symbol_name.
4494 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4496 (dw2_map_symbol_names): Remove.
4497 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4498 * psymtab.c (map_symbol_names_psymtab): Remove.
4499 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4500 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4502 (psym_functions): Unlist map_symbol_names_psymtab.
4503 (map_partial_symbol_names): Rename to ...
4504 (expand_partial_symbol_names): ... here, change the FUN type, call
4505 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4506 * psymtab.h (map_partial_symbol_names): Rename to ...
4507 (expand_partial_symbol_names): ... here, change the FUN type.
4508 * symfile.h (struct quick_symbol_functions): Update the description of
4509 expand_symtabs_matching. Remove map_symbol_names.
4510 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4511 (struct add_name_data): Update the comment for
4512 expand_partial_symbol_name.
4513 (add_partial_symbol_name): Rename to ...
4514 (expand_partial_symbol_name): ... here. Replace
4515 completion_list_add_name call by strncmp.
4516 (default_make_symbol_completion_list_break_on): Use now
4517 expand_partial_symbol_names and expand_partial_symbol_name.
4518 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4520 2011-04-20 Tom Tromey <tromey@redhat.com>
4522 * dwarf2read.c (save_gdb_index_command): Replace format
4523 documentation with a pointer to the manual.
4525 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4527 * regcache.c: Include remote.h.
4528 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4529 (regcache_dump): Handle regcache_dump_remote.
4530 (maintenance_print_remote_registers): New function.
4531 (_initialize_regcache): Install "maint print remote-registers"
4533 * remote.c (map_regcache_remote_table): New function, factored out
4535 (init_remote_state): ... here.
4536 (remote_register_number_and_offset): New.
4537 * remote.h (remote_register_number_and_offset): Declare.
4539 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4541 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4542 null_ptid, assume and allow a NULL address space, instead of
4543 asking the target for the ptid's address space.
4544 * infrun.c (ptid_is_pid): Remove assertion.
4546 2011-04-19 Tom Tromey <tromey@redhat.com>
4548 * windows-tdep.c (windows_xfer_shared_library):
4549 * windows-nat.c (get_module_name, windows_make_so):
4550 * v850-tdep.c (v850_handle_pushm):
4551 * utils.c (null_cleanup, gdb_realpath):
4552 * ui-out.c (get_next_header):
4553 * tracepoint.c (clear_traceframe_info):
4554 * symtab.c (lookup_symtab):
4555 * serial.h (struct serial_ops):
4556 * mipsread.c (read_alphacoff_dynamic_symtab):
4557 * infcmd.c (print_return_value):
4558 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4559 * f-exp.y (parse_number):
4560 * exceptions.c (catch_exceptions):
4561 * dummy-frame.c (dummy_frame_this_id):
4562 * defs.h (struct cleanup):
4563 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4564 * arm-tdep.c (arm_push_dummy_call):
4565 * amd64-tdep.h (amd64_collect_xsave):
4566 * amd64-tdep.c (amd64_collect_xsave):
4567 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4568 * README (typing): Remove duplicate words.
4569 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4570 * infrun.c (siginfo_value_read): Fix typo.
4571 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4572 * top.c (source_line_number): Add comma.
4574 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4576 * thread.c (any_live_thread_of_process): Prioritize threads
4577 that are not executing.
4578 * gdbthread.h (any_live_thread_of_process): Update comment
4579 as per above change.
4581 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4583 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4584 (scan_xcoff_symtab): Likewise.
4586 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4588 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4591 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4592 Pedro Alves <pedro@codesourcery.com>
4594 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4595 variables to simplify code and avoid == operator at end of
4596 line as this is against GNU coding standards.
4598 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4600 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4601 lm_name to name_lm to avoid conflict with lm_name function.
4603 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4605 ARI fixes: Use only lowercase function name for static functions.
4606 * nto-tdep.c (LM_ADDR): Rename to...
4607 (lm_addr): New function name.
4608 (nto_relocate_section_addresses): Adapt to change above.
4609 * solib-sunos.c (LM_ADDR): Rename to...
4610 (lm_addr): New function name.
4611 (LM_NEXT): Rename to...
4612 (lm_next): New function name.
4613 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4614 function name changes above.
4615 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4616 (lm_addr_from_link_map): New function name.
4617 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4618 (has_lm_dynamic_from_link_map): New function name.
4619 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4620 (lm_dynamic_from_link_map): New function name.
4621 (LM_ADDR_CHECK): Rename to...
4622 (lm_addr_check): New function name.
4623 (LM_NEXT): Rename to...
4624 (lm_next): New function name.
4625 (LM_PREV): Rename to...
4626 (lm_prev): New function name.
4627 (LM_NAME): Rename to...
4628 (lm_name): New function name.
4629 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4630 (ignore_first_link_map_entry): New function name.
4631 (svr4_keep_data_in_core): Adapt to function name changes above.
4632 (svr4_current_sos): Likewise.
4633 (enable_break): Likewise.
4634 (svr4_relocate_section_addresses): Likewise.
4636 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4639 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4640 sprintf. Simplify code and avoid loosing memory.
4641 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4642 (call0_frame_cache): Remove && operator from end of line.
4644 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4646 Fix libraries displacement if they change whether they were prelinked.
4647 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4648 does not match. Comment why.
4650 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 * corelow.c: Include wrapper.h.
4653 (core_open): Call now gdb_target_find_new_threads.
4654 * wrapper.c: Include target.h.
4655 (gdb_target_find_new_threads): New.
4656 * wrapper.h (gdb_target_find_new_threads): New declaration.
4658 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4660 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4661 even if !TARGET_HAS_EXECUTION.
4663 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4665 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4666 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4667 bfd_get_synthetic_symtab.
4668 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4669 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4670 parameter parent, remove the call to add_separate_debug_objfile.
4671 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4672 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4673 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4674 parent, new comment for it, call add_separate_debug_objfile for it.
4675 (symbol_file_add_separate): Pass objfile as the parameter parent,
4676 remove the call to add_separate_debug_objfile.
4677 (symbol_file_add_from_bfd): New parameter parent, pass it.
4678 (symbol_file_add): Pass NULL to the new parameter parent.
4679 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4681 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4683 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4686 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4688 Fix Python access to inlined frames.
4689 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4690 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4692 2011-04-15 Tom Tromey <tromey@redhat.com>
4694 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4696 2011-04-15 Gary Benson <gbenson@redhat.com>
4698 * MAINTAINERS: Add myself to write-after-approval section.
4700 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4702 * remote-sim.c (sim_command_completer): New function.
4703 (_initialize_remote_sim): Set completer to sim_command_completer.
4705 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4707 * breakpoint.c (print_exception_catchpoint): Rename to ...
4708 (print_it_exception_catchpoint): ... this.
4709 (gnu_v3_exception_catchpoint_ops): Update with new name
4710 for print_it_exception_catchpoint.
4712 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4714 * MAINTAINERS: Add myself for write after approval privileges.
4716 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4718 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4720 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4722 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4724 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4726 * breakpoint.c (save_breakpoints): Verify whether
4727 breakpoint_ops.print_recreate is defined before calling it.
4729 2011-04-11 Gary Benson <gbenson@redhat.com>
4731 Fix failure with --enable-maintainer-mode.
4732 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4734 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4737 * symtab.c (search_symbols): Reorder the KIND description in the
4738 function comment. Remove the unused 4th element of types, types2,
4739 types3 and types4. New gdb_assert on KIND.
4740 (symtab_symbol_info): Remove the unused 4th element of classnames.
4741 New gdb_assert on KIND.
4742 * symtab.h (enum search_domain): New warning in the enum comment.
4743 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4746 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 Fix crash of gdb save-index on a STABS file.
4749 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4752 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4754 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4755 * dwarf2read.c: Include ctype.h.
4756 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4758 (dwarf2_add_field): Fix new_field->accessibility by calling
4759 dwarf2_default_access_attribute. Restructure setting accessibility
4761 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4762 is_private and is_protected by calling
4763 dwarf2_default_access_attribute.
4765 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4767 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4768 to the initialization.
4770 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4772 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4775 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4777 Remove support for old Cygwin 1.5 versions.
4778 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4779 function on old Cygwin version.
4780 * windows-nat.c: Remove cygwin version check and always define
4781 __USEWIDE for Cygwin compilation.
4783 2011-04-07 Yao Qi <yao@codesourcery.com>
4785 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4787 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4788 (arm_copy_svc): Remove parameters INSN and TO.
4789 (decode_svc_copro): Update caller.
4790 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4791 from function pointer `copy_svc_os'.
4793 2011-04-07 Yao Qi <yao@codesourcery.com>
4795 * arm-tdep.c (cleanup_branch): Set a correct return address in
4796 LR for ARM and Thumb.
4798 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4802 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4803 in the function comment, a new note on values compatibility.
4804 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4805 * symtab.h (SYMBOL_HASH_NEXT): New.
4807 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4809 * ppc-linux-nat.c (check_condition): Add len output parameter.
4810 Set it based on the memory region referenced in the condition
4811 expression. Update all callers.
4813 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4815 Fix crash regression on systems featuring .gdb_index.
4816 * objfiles.c (free_objfile): Move the
4817 forget_cached_source_info_for_objfile call earlier. Comment it.
4818 Extend the comment for objfile_free_data.
4820 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4822 Fix regression of displaying the debug format.
4823 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4826 2011-04-04 Tom Tromey <tromey@redhat.com>
4828 * cli/cli-interp.c (struct captured_execute_command_args):
4830 (do_captured_execute_command): Remove.
4831 (safe_execute_command): Use TRY_CATCH.
4832 * cli/cli-script.c (struct wrapped_read_command_file_args):
4834 (wrapped_read_command_file): Remove.
4835 (script_from_file): Use TRY_CATCH.
4836 * exceptions.c (catch_exception): Remove.
4837 * exceptions.h (catch_exception): Remove.
4838 (deprecated_throw_reason): Update comment.
4839 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4840 argument to 'context'.
4841 (mi_execute_command): Use TRY_CATCH.
4842 * remote.c (struct start_remote_args): Remove.
4843 (remote_start_remote): Update; change arguments.
4844 (remote_open_1): Use TRY_CATCH.
4846 2011-04-04 Tom Tromey <tromey@redhat.com>
4848 * tracepoint.c (scope_info): Update.
4849 * symtab.c (decode_line_spec): Update.
4850 * python/python.c (gdbpy_decode_line): Update.
4851 * linespec.h (decode_line_1): Update.
4852 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4853 (decode_compound, find_method, symtab_from_filename)
4854 (decode_variable): Likewise.
4855 * cli/cli-cmds.c (edit_command): Update.
4856 (list_command): Update.
4857 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4859 (create_breakpoint): Update.
4860 (until_break_command): Update.
4861 (addr_string_to_sals): Update.
4862 (decode_line_spec_1): Update.
4864 2011-04-04 Tom Tromey <tromey@redhat.com>
4866 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4867 (do_captured_parse_breakpoint): Remove.
4868 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4869 Use TRY_CATCH directly.
4871 2011-04-04 Tom Tromey <tromey@redhat.com>
4873 * symtab.h (free_symtab): Remove.
4874 (forget_cached_source_info_for_objfile): Declare.
4875 * symmisc.c (free_symtab): Remove.
4876 * source.c (forget_cached_source_info_for_objfile): New function.
4877 (forget_cached_source_info): Use it.
4878 * objfiles.c (free_objfile): Simplify check before calling
4879 clear_current_source_symtab_and_line. Call
4880 forget_cached_source_info_for_objfile.
4882 2011-04-04 Tom Tromey <tromey@redhat.com>
4884 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4885 (new_symtab): Don't set `free_code' on symtab.
4886 (new_linetable): Properly handle size==0.
4887 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4888 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4890 * jv-lang.c (struct jv_per_objfile_data): New.
4891 (jv_per_objfile_free): Free the data.
4892 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4893 (get_java_class_symtab): Set the `dict' field on the
4894 jv_per_objfile_data.
4895 (free_class_block): Remove.
4896 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4899 2011-04-04 Tom Tromey <tromey@redhat.com>
4901 * symfile.c (reread_symbols): Update.
4902 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4904 * objfiles.c (allocate_objfile): Update.
4905 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4907 * cp-namespace.c (lookup_symbol_file): Don't call
4908 lookup_possible_namespace_symbol.
4909 (initialize_namespace_symtab, get_possible_namespace_block)
4910 (free_namespace_block, cp_check_possible_namespace_symbols)
4911 (check_possible_namespace_symbols_loop)
4912 (check_one_possible_namespace_symbol)
4913 (lookup_possible_namespace_symbol): Remove.
4914 (maintenance_cplus_namespace): Replace with notice.
4915 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4917 2011-04-04 Tom Tromey <tromey@redhat.com>
4919 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4920 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4921 * symmisc.c (free_symtab): Don't free debugformat.
4922 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4923 (record_debugformat, record_producer): Document.
4924 * buildsym.c (end_symtab): Don't save debugformat and producer
4926 (end_symtab): Don't free debugformat and producer fields.
4927 (record_debugformat): Don't call xstrdup.
4928 (record_producer): Likewise.
4930 2011-04-04 Tom Tromey <tromey@redhat.com>
4932 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4933 (source_line_charpos, source_charpos_line): Remove.
4935 2011-04-04 Tom Tromey <tromey@redhat.com>
4937 * symtab.h (domain_enum): Split in two...
4938 (enum search_domain): New.
4939 (search_symbols): Update.
4940 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4941 redundant declarations.
4942 (search_symbols): Change 'kind' argument to search_domain.
4944 (print_symbol_info): Likewise.
4945 (symtab_symbol_info): Likewise.
4946 * symfile.h (struct quick_symbol_functions)
4947 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4948 <expand_symtabs_matching>: Likewise.
4949 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4950 (expand_symtabs_matching_via_partial): Update.
4951 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4952 (dw2_expand_symtabs_for_function): Update.
4953 * block.h: Moved anonymous enum...
4954 * defs.h (enum block_enum): ... here. Now named.
4956 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4958 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4959 * version.in: Bump version to 7.3.50.20110403-cvs.
4961 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4963 * NEWS: Create a new section for the next release branch.
4964 Rename the section of the current branch, now that it has
4967 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4969 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4970 for "fpscr" in target description.
4972 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4974 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4975 initialize it. Delay HASH initialization. Strip the part after open
4976 parenthesis for languages with qualifiers. Call do_cleanups.
4978 2011-04-01 Tom Tromey <tromey@redhat.com>
4980 * utils.c (report_command_stats): Don't print `-' for negative
4983 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4985 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4986 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4989 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4991 * breakpoint.h (bpdisp_text): Add declaration.
4992 * breakpoint.c (bpdisp_text): Make non-static.
4993 * ada-lang.c: #include "mi/mi-common.h".
4994 (print_it_exception): Rewrite to improve GDB/MI output.
4996 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4998 * arm-tdep.h (struct address_space): Add forward declaration.
5000 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5002 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
5003 * arm-tdep.c (arm_override_mode): New global.
5004 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
5005 execution mode heuristics.
5006 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
5007 second single-step breakpoint if needed, using
5008 arm_insert_single_step_breakpoint.
5009 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
5010 ARM execution mode, do not call thumb_get_next_pc_raw.
5011 (arm_get_next_pc): Encode execution mode in return value. Call
5012 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
5013 (arm_insert_single_step_breakpoint): New function.
5014 (arm_software_single_step): Call it.
5015 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
5016 argument to return execution mode of sigreturn target.
5017 (arm_linux_syscall_next_pc): Use it.
5018 (arm_linux_copy_svc): Update call.
5019 (arm_linux_software_single_step): Call
5020 arm_insert_single_step_breakpoint.
5022 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5024 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
5027 2011-03-31 Tom Tromey <tromey@redhat.com>
5029 * varobj.c (update_dynamic_varobj_children): Properly handle
5030 errors from iterator.
5032 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5034 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
5035 struct linkage name twice.
5037 2011-03-31 Tom Tromey <tromey@redhat.com>
5039 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
5040 missing ">" to message.
5042 2011-03-31 Tom Tromey <tromey@redhat.com>
5044 * varobj.c (instantiate_pretty_printer): Remove duplicate
5047 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
5049 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
5050 if neither saved value nor register available (e.g. signal frame).
5052 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5054 * macroexp.c (expand): Avoid uninitialized variable
5057 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5059 * breakpoint.c (break_range_command): Fix typo in comment.
5061 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5062 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5064 Implement support for PowerPC BookE ranged breakpoints.
5065 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
5066 * breakpoint.h (struct bp_target_info) <length>: New member
5068 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
5069 instead of struct breakpoint as argument, and also add ASPACE
5070 and BP_ADDR arguments. Update all callers.
5071 (struct breakpoint_ops) <print_one_detail>: New method.
5072 (struct breakpoint) <addr_string_range_end>: New member variable.
5073 * breakpoint.c (breakpoint_location_address_match): Add function
5075 (insert_bp_location): Set bl->target_info.length.
5076 (breakpoint_here_p): Call breakpoint_location_address_match.
5077 (moribund_breakpoint_here_p): Likewise.
5078 (regular_breakpoint_inserted_here_p): Likewise.
5079 (breakpoint_thread_match): Likewise.
5080 (bpstat_stop_status): Likewise.
5081 (bpstat_check_location): Move call to
5082 breakpoint_ops.breakpoint_hit to the top.
5083 (print_one_breakpoint_location): Call
5084 breakpoint_ops.print_one_detail if available.
5085 (breakpoint_address_match_range): New function.
5086 (breakpoint_location_address_match): Likewise.
5087 (breakpoint_locations_match): Compare the length field of the
5089 (hw_breakpoint_used_count): Count resources used by all locations
5090 in a breakpoint, and use breakpoint_ops.resources_needed if
5092 (breakpoint_hit_ranged_breakpoint): New function.
5093 (resources_needed_ranged_breakpoint): Likewise.
5094 (print_it_ranged_breakpoint): Likewise.
5095 (print_one_ranged_breakpoint): Likewise.
5096 (print_one_detail_ranged_breakpoint): Likewise.
5097 (print_mention_ranged_breakpoint): Likewise.
5098 (print_recreate_ranged_breakpoint): Likewise.
5099 (ranged_breakpoint_ops): New structure.
5100 (find_breakpoint_range_end): New function.
5101 (break_range_command): Likewise.
5102 (delete_breakpoint): Free addr_string_range_end.
5103 (update_breakpoint_locations): Add SALS_END argument. Update
5104 all callers. Calculate breakpoint length if a non-zero SALS_END
5105 is given. Call breakpoint_locations_match instead of
5106 breakpoint_address_match.
5107 (reset_breakpoint): Find SaL of the end of the range if B is a
5109 (_initialize_breakpoint): Register break-range command.
5110 * defs.h (print_core_address): Add function prototype.
5111 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5113 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5114 (ppc_linux_remove_hw_breakpoint): Likewise.
5115 (_initialize_ppc_linux_nat): Initialize
5116 to_ranged_break_num_registers.
5117 * target.c (update_current_target): Add comment about
5118 to_ranged_break_num_registers.
5119 (target_ranged_break_num_registers): New function.
5120 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5122 (target_ranged_break_num_registers): Add function prototype.
5123 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5124 * utils.c (print_core_address): ... here.
5126 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5128 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5129 variable compiler warning.
5131 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5133 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5135 (re_set_breakpoint): ... to here ...
5136 (addr_string_to_sals): ... and here.
5138 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5140 * Makefile.in (SFILES): Add missing C sources.
5141 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5142 Add missing headers.
5144 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5146 * .gitignore: New file.
5148 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5150 * NEWS: Mention new cfi device simulation.
5152 2011-03-29 Tom Tromey <tromey@redhat.com>
5154 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5155 otherwise anonymous types.
5156 (dwarf2_name): Likewise.
5157 * valops.c (value_struct_elt_for_reference): Refine artificial
5158 type logic. Call error if j==-1.
5160 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5162 Fix false GCC warning.
5163 * infcall.c (find_function_addr): Initialize funaddr.
5165 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5167 Fix mingw compilation with --enable-targets=all.
5168 * remote-mips.c (gdb_usleep.h): Include header.
5169 (mips_enter_debug): Use gdb_usleep instead of sleep.
5171 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5173 Support resolution of STT_GNU_IFUNC via breakpoints.
5174 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5175 bp_gnu_ifunc_resolver_return.
5176 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5177 the loop. Support bp_gnu_ifunc_resolver and
5178 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5179 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5181 (bptype_string, print_one_breakpoint_location): Support
5182 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5183 (user_settable_breakpoint): Return true also for
5184 bp_gnu_ifunc_resolver.
5185 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5186 bp_gnu_ifunc_resolver_return.
5187 (set_breakpoint_location_function): New parameter explicit_loc,
5188 describe it. Call find_pc_partial_function_gnu_ifunc with new
5189 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5190 EXPLICIT_LOC is not set.
5191 (set_raw_breakpoint): Set EXPLICIT_LOC for
5192 set_breakpoint_location_function.
5193 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5194 set_breakpoint_location_function.
5195 (mention): Support bp_gnu_ifunc_resolver and
5196 bp_gnu_ifunc_resolver_return.
5197 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5198 set_breakpoint_location_function.
5199 (update_breakpoint_locations): Remove static.
5200 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5201 bp_gnu_ifunc_resolver_return.
5202 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5203 bp_gnu_ifunc_resolver_return.
5204 (update_breakpoint_locations): New declaration.
5205 * elfread.c: Include gdbthread.h and regcache.h.
5206 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5208 (elf_gnu_ifunc_fns): Install them.
5209 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5210 (stub_gnu_ifunc_resolver_return_stop): New functions.
5211 (stub_gnu_ifunc_fns): Install them.
5212 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5213 and gnu_ifunc_resolver_return_stop.
5214 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5216 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 STT_GNU_IFUNC reader implementation.
5219 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5220 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5221 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5222 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5223 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5224 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5225 (elf_gnu_ifunc_resolve_addr): New.
5226 (elf_symfile_read): Call elf_rel_plt_read.
5227 (elf_gnu_ifunc_fns): New.
5228 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5229 Install elf_gnu_ifunc_fns.
5230 * infcall.c (find_function_return_type): New function.
5231 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5232 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5233 (stub_gnu_ifunc_resolve_name): New functions.
5234 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5235 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5236 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5238 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5240 Code cleanup for later STT_GNU_IFUNC support.
5241 * infcall.c (find_function_addr): Remove variable code, use explicit
5242 dereferences for it. Move VALUE_TYPE initialization later.
5244 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5246 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5247 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5248 (clear_pc_function_cache): Clear it.
5249 (find_pc_partial_function): Rename to ...
5250 (find_pc_partial_function_gnu_ifunc): ... this function. New
5251 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5252 (find_pc_partial_function): New wrapper for this function.
5253 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5255 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5257 GDB internal type support for STT_GNU_IFUNC.
5258 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5259 (elf_symtab_read): Set mst_text_gnu_ifunc for
5260 BSF_GNU_INDIRECT_FUNCTION.
5261 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5262 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5263 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5264 nodebug_got_plt_symbol.
5265 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5266 (TYPE_GNU_IFUNC): New.
5267 (struct main_type): New field flag_gnu_ifunc.
5268 (struct builtin_type): New field builtin_func_func.
5269 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5270 nodebug_got_plt_symbol.
5271 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5272 (in_gnu_ifunc_stub): New.
5273 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5275 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5276 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5277 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5279 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5280 * symtab.c (search_symbols): Likewise.
5281 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5282 and mst_slot_got_plt.
5283 (in_gnu_ifunc_stub): New declaration.
5285 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5287 Support a ring of related breakpoints.
5288 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5289 other functions, add gdb_assert.
5290 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5291 watchpoint_del_at_next_stop.
5292 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5293 (bpstat_stop_status): Handle ring in related_breakpoint.
5294 (set_raw_breakpoint_without_location): Initialize ring in
5296 (delete_breakpoint): Handle ring in related_breakpoint, use
5297 watchpoint_del_at_next_stop.
5298 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5300 2011-03-28 Tom Tromey <tromey@redhat.com>
5303 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5304 with `language_minimal'.
5306 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5308 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5309 instead of checking for STT_ARM_TFUNC symbol type.
5311 2011-03-25 Tom Tromey <tromey@redhat.com>
5313 * linespec.c (symbol_found): Restore line-based result for
5314 non-LOC_LABEL symbols.
5316 2011-03-25 Kai Tietz <ktietz@redhat.com>
5318 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5319 instead of strcmp for comparison.
5320 (tui_source_is_displayed): Likewise.
5321 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5323 2011-03-24 Mark Wielaard <mjw@redhat.com>
5325 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5327 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5328 (find_partial_die_in_comp_unit): Likewise in comment.
5329 (read_attribute_value): Likewise.
5330 (lookup_die_type): Likewise.
5331 (dwarf_form_name): Likewise.
5332 (dump_die_shallow): Likewise.
5333 (follow_die_ref_or_sig): Likewise.
5335 2011-03-24 Tom Tromey <tromey@redhat.com>
5337 PR breakpoints/11816:
5338 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5339 (decode_compound): Update.
5340 (find_function_symbol): New function.
5341 (decode_dollar): Update.
5342 (decode_label): Add 'function_symbol' parameter. Handle
5343 function-relative labels.
5344 (decode_variable): Update.
5345 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5346 not its line. Set `special_display' and canonical name for
5349 2011-03-24 Tom Tromey <tromey@redhat.com>
5351 * linespec.h (struct linespec_result) <special_display>: New
5353 * breakpoint.h (struct breakpoint) <display_canonical>: New
5355 * breakpoint.c (print_breakpoint_location): Respect
5357 (create_breakpoint_sal): Add 'display_canonical' parameter.
5358 (create_breakpoints_sal): Update.
5359 (create_breakpoint): Update.
5361 2011-03-24 Tom Tromey <tromey@redhat.com>
5363 * symtab.c (decode_line_spec): Update.
5364 * linespec.c (build_canonical_line_spec): Change type of
5366 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5367 (find_method, decode_all_digits, decode_dollar, decode_label)
5368 (symbol_found): Likewise.
5369 (init_linespec_result): New function.
5370 * breakpoint.c (struct captured_parse_breakpoint_args)
5371 <canonical_p>: New field, replaces addr_string_p.
5372 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5374 (parse_breakpoint_sals): Likewise.
5375 (do_captured_parse_breakpoint): Update.
5376 (create_breakpoint): Use struct linespec_result.
5377 (until_break_command): Update.
5378 (breakpoint_re_set_one): Update.
5379 (decode_line_spec_1): Update.
5380 * linespec.h (struct linespec_result): New.
5381 (init_linespec_result): Declare.
5383 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5385 * regcache.c (regcache_raw_read): If the target didn't supply a
5386 given raw register, mark it as unavailable.
5388 2011-03-23 Kai Tietz <ktietz@redhat.com>
5390 * breakpoint.c (clear_command): Use filename_cmp
5391 instead of strcmp for comparison.
5392 * buildsym.c (watch_main_source_file_lossage): Likewise.
5393 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5394 checking just for slash.
5395 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5396 strrchr and filename_cmp instead of strcmp for filenames.
5397 (add_old_header_file): Use filename_cmp
5398 instead of strcmp for comparison.
5399 * exec.c (exec_set_section_address): Likewise.
5400 * macrotab.c (macro_lookup_inclusion): Likewise.
5401 (macro_lookup_inclusion): Likewise.
5402 * elfread.c (_initialize_elfread): Likewise.
5403 (elfstab_offset_sections): Likewise.
5404 (elfstab_offset_sections): Use lbasename instead of
5406 * mdebugread.c (parse_partial_symbols): Likewise.
5407 (arse_partial_symbols): Use filename_(n)cmp instead of
5408 str(n)cmp for comparison.
5409 * minsyms.c (lookup_minimal_symbol): Likewise.
5410 * psymtab.c (read_psymtabs_with_filename): Likewise.
5411 * solib.c (solib_read_symbols): Likewise.
5412 (reload_shared_libraries_1): Likewise.
5413 * symmisc.c (maintenance_print_symbols): Likewise.
5414 * symfile.c (separate_debug_file_exists): Likewise.
5415 (reread_symbols): Likewise.
5416 (find_separate_debug_file_by_debuglink): Likewise.
5417 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5418 * source.c (add_path): Likewise.
5419 * symtab.c (filename_seen): Likewise.
5420 (file_matches): Likewise.
5421 (print_symbol_info): Likewise.
5422 (maybe_add_partial_symtab_filename): Likewise.
5423 (make_source_files_completion_list): Likewise.
5424 * xml-syscall.c (init_sysinfo): Likewise.
5425 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5426 IS_DIR_SEPARATOR for checking for trailing path separator.
5428 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5430 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5431 label abort_expression.
5432 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5433 DWARF_VALUE_OPTIMIZED_OUT.
5435 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5438 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5439 to linkage_name. Invert its value. Update the function comment.
5440 (c_type_print_varspec_suffix): Invert it at the caller.
5441 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5443 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5445 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5446 errors when reading the `stop_pc'.
5447 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5450 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5452 * NEWS: Document gdb.Write stream keyword.
5454 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5457 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5458 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5459 (dwarf2_add_field): Fix new_field->accessibility for
5460 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5462 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5466 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5467 other error classes. Do not print stack trace.
5469 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5471 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5472 (dwarf2_add_field): Fix new_field->accessibility for
5473 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5475 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5477 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5478 encountering a load via a non-SP register.
5480 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5482 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5483 field in returned unwinder.
5485 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5487 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5489 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5491 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5494 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5496 * frame.c (frame_unwind_register): Throw an error if unwinding the
5498 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5499 an unwind stop reason.
5500 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5501 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5502 UNWIND_UNAVAILABLE>: New.
5503 * inline-frame.c (inline_frame_unwind): Install
5504 default_frame_unwind_stop_reason.
5505 * frame-unwind.c: Include "exceptions.h".
5506 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5507 (default_frame_unwind_stop_reason): New.
5508 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5509 (default_frame_unwind_stop_reason): Declare.
5510 (struct frame_unwind) <stop_reason>: New function pointer.
5512 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5513 * dwarf2-frame.c: Include exceptions.h.
5514 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5515 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5516 computing the CFA. If such an error was thrown, set
5517 unavailable_retaddr.
5518 (dwarf2_frame_unwind_stop_reason): New.
5519 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5521 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5522 (dwarf2_signal_frame_unwind): Ditto.
5524 * amd64-tdep.c: Include "exceptions.h".
5525 (struct amd64_frame_cache): New field "base_p".
5526 (amd64_init_frame_cache): Clear it.
5527 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5528 Avoid reading registers with functions that throw if the register
5529 is not necessary to compute the frame base.
5530 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5531 swallowing NOT_AVAILABLE_ERROR.
5532 (amd64_frame_unwind_stop_reason): New.
5533 (amd64_frame_this_id): Don't build a frame id if the frame base
5535 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5536 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5537 base_p if the frame base was computable.
5538 (amd64_sigtramp_frame_unwind_stop_reason): New.
5539 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5540 frame base was unavailable.
5541 (amd64_sigtramp_frame_unwind): Install
5542 amd64_sigtramp_frame_unwind_stop_reason.
5543 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5544 base_p if the frame base was computable.
5545 (amd64_epilogue_frame_unwind_stop_reason): New.
5546 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5547 frame base was unavailable.
5548 (amd64_epilogue_frame_unwind): Install
5549 amd64_epilogue_frame_unwind_stop_reason.
5550 * i386-tdep.c: Include "exceptions.h".
5551 (struct i386_frame_cache): New field "base_p".
5552 (i386_init_frame_cache): Clear it.
5553 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5554 Avoid reading registers with functions that throw if the register
5555 is not necessary to compute the frame base.
5556 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5557 swallowing NOT_AVAILABLE_ERROR.
5558 (i386_frame_unwind_stop_reason): New.
5559 (i386_frame_this_id): Don't build a frame id if the frame base was
5561 (i386_frame_prev_register): Handle unavailable SP.
5562 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5563 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5564 base_p if the frame base was computable.
5565 (i386_epilogue_frame_unwind_stop_reason): New.
5566 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5567 base was unavailable.
5568 (i386_epilogue_frame_unwind): Install
5569 i386_epilogue_frame_unwind_stop_reason.
5570 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5571 base_p if the frame base was computable.
5572 (i386_sigtramp_frame_unwind_stop_reason): New.
5573 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5574 base was unavailable.
5575 (i386_sigtramp_frame_unwind): Install
5576 i386_sigtramp_frame_unwind_stop_reason.
5577 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5578 type's size, not the register's.
5579 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5581 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5582 default_frame_unwind_stop_reason.
5583 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5584 (alpha_heuristic_frame_unwind): Ditto.
5585 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5586 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5587 * avr-tdep.c (avr_frame_unwind): Ditto.
5588 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5590 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5591 * frv-tdep.c (frv_frame_unwind): Ditto.
5592 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5593 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5594 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5595 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5596 (hppa_stub_frame_unwind): Ditto.
5597 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5598 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5599 (ia64_libunwind_frame_unwind)
5600 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5601 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5602 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5603 * m32c-tdep.c (m32c_unwind): Ditto.
5604 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5605 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5606 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5607 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5608 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5609 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5610 * mep-tdep.c (mep_frame_unwind): Ditto.
5611 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5612 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5613 (mips_stub_frame_unwind): Ditto.
5614 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5615 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5616 * mt-tdep.c (mt_frame_unwind): Ditto.
5617 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5618 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5619 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5620 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5621 (s390_sigtramp_frame_unwind): Ditto.
5622 * score-tdep.c (score_prologue_unwind): Ditto.
5623 * sh-tdep.c (sh_frame_unwind): Ditto.
5624 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5625 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5626 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5627 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5628 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5629 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5630 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5631 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5632 (sparc64obsd_trapframe_unwind): Ditto.
5633 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5634 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5635 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5636 * v850-tdep.c (v850_frame_unwind): Ditto.
5637 * vax-tdep.c (vax_frame_unwind): Ditto.
5638 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5639 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5640 * xtensa-tdep.c (xtensa_unwind): Ditto.
5642 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5644 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5645 there's always a frame. Use get_frame_pc_if_available instead of
5646 get_frame_pc, and if there's no PC available, don't look up a
5649 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5651 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5654 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5656 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5659 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5661 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5662 * frame.c (frame_unwind_caller_pc_if_available): New.
5663 * stack.c (frame_info): Handle unavailable PC.
5665 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5667 * frame.c (frame_unwind_pc): Rename to ...
5668 (frame_unwind_pc_if_available): ... this. New `pc' output
5669 parameter. Change return type to int. Gracefully handle
5670 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5671 happened, or 1 otherwise.
5672 (frame_unwind_pc): Reimplement on top of
5673 frame_unwind_pc_if_available.
5674 (get_frame_func): Rename to ...
5675 (get_frame_func_if_available): New `pc' output parameter. Change
5676 return type to int. Gracefully handle the PC not being available.
5677 (get_frame_func): Reimplement on top of
5678 get_frame_func_if_available.
5679 (select_frame): Handle the PC being unavailable.
5680 (get_prev_frame): Handle the PC being unavailable.
5681 (get_frame_pc_if_available): New.
5682 (get_frame_address_in_block_if_available): New.
5683 (find_frame_sal): Handle the frame PC not being available.
5684 * frame.h (get_frame_pc_if_available): Declare.
5685 (get_frame_address_in_block_if_available): Declare.
5686 (get_frame_func_if_available): Declare.
5687 * stack.c (print_frame_info): Handle the PC being unavailable.
5688 (find_frame_funname): Ditto.
5689 (print_frame): Handle the PC being unavailable.
5690 (get_frame_language): Ditto.
5691 * blockframe.c (get_frame_block): Ditto.
5692 * macroscope.c (default_macro_scope): Ditto.
5693 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5695 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5697 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5698 NOT_AVAILABLE_ERROR when evaluating the location expression.
5700 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5702 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5703 returning that the register piece is unavailable/optimized out.
5704 (write_pieced_value): Handle get_frame_register_bytes returning
5705 that the register piece is unavailable/optimized out when doing a
5706 read-modify write of a bitfield.
5707 * findvar.c (value_from_register): Handle get_frame_register_bytes
5708 returning that the register piece is unavailable/optimized out.
5709 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5710 and `unavailablep'. Throw error on bad debug info. Use
5711 frame_register instead of frame_register_read, to fill in the new
5713 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5715 * valops.c: (value_assign): Adjust, and handle
5716 get_frame_register_bytes failing.
5717 * spu-tdep.c: Include exceptions.h.
5718 (spu_software_single_step): Adjust, and handle
5719 get_frame_register_bytes failing.
5720 (spu_get_longjmp_target): Ditto.
5721 * gdbarch.sh (register_to_value): Change to return int. New
5722 parameters `optimizedp' and `unavailablep'.
5723 * gdbarch.h, gdbarch.c: Regenerate.
5724 * i386-tdep.c (i386_register_to_value): Adjust to new
5725 gdbarch_register_to_value interface.
5726 * i387-tdep.c (i387_register_to_value): Ditto.
5727 * i387-tdep.h (i387_register_to_value): Ditto.
5728 * alpha-tdep.c (alpha_register_to_value): Ditto.
5729 * ia64-tdep.c (ia64_register_to_value): Ditto.
5730 * m68k-tdep.c (m68k_register_to_value): Ditto.
5731 * mips-tdep.c (mips_register_to_value): Ditto.
5732 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5734 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5736 * findvar.c (value_of_register): Mark the value as unavailable, if
5737 the register is unavailable.
5738 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5739 (frame_register): New `unavailablep' parameter.
5740 (frame_register_read): Update comment.
5741 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5742 Set it if the register is unavailable. If the register is
5743 unavailable, clear the output buffer.
5744 (frame_register): New `unavailablep' parameter. Pass it down.
5745 (frame_unwind_register): Adjust.
5746 (put_frame_register): Adjust.
5747 (frame_register_read): Adjust. Also return false if the register
5749 (frame_register_unwind_location): Adjust.
5750 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5751 is unavailable, mark the value accordingly.
5752 * stack.c (frame_info): Handle unavailable registers.
5754 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5756 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5757 simplify, using regcache_cooked_read.
5759 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5761 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5762 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5763 (regcache_raw_read_unsigned, regcache_raw_read_part)
5764 (regcache_cooked_read, regcache_cooked_read_signed)
5765 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5766 (regcache_cooked_read_ftype): Change return to enum
5768 * regcache.c: Include exceptions.h
5769 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5770 (do_cooked_read): Change return to enum register_status. Always
5771 forward to regcache_cooked_read.
5772 (regcache_raw_read): Change return to enum register_status. If
5773 the register is not REG_VALID, memset the buffer. Return the
5775 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5776 return the register's status.
5777 (regcache_raw_read_unsigned): Ditto.
5778 (regcache_cooked_read): Change return to enum register_status.
5779 Assert that with read-only regcaches, the register's status must
5780 be known. If the regcache is read-only, and the register is not
5781 REG_VALID, memset the buffer. Return the register's status.
5782 (regcache_cooked_read_signed): Change return to enum
5783 register_status. Handle non-REG_VALID registers and return the
5785 (regcache_cooked_read_unsigned): Change return to enum
5786 register_status. Handle non-REG_VALID registers and return the
5788 (regcache_xfer_part, regcache_raw_read_part)
5789 (regcache_cooked_read_part): Change return to enum
5790 register_status. Return the register's status.
5791 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5793 (regcache_dump): Handle unavailable cooked registers.
5794 * frame.c (do_frame_register_read): Adjust interface to match
5795 regcache_cooked_read_ftype.
5796 * gdbarch.sh (pseudo_register_read): Change return to enum
5798 * gdbarch.h, gdbarch.c: Regenerate.
5800 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5802 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5803 register_status. If reading a raw register indicates the raw
5804 register is not valid, return the raw register's status,
5805 otherwise, return REG_VALID.
5806 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5807 register_status. Handle non-REG_VALID raw registers and return
5808 the register's status.
5809 * arm-tdep.c (arm_neon_quad_read)
5810 (arm_pseudo_read): Change return to enum register_status. Handle
5811 non-REG_VALID raw registers and return the register's status.
5812 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5813 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5814 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5815 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5816 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5818 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5819 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5820 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5821 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5822 (m32c_pseudo_register_read): Change return to enum
5823 register_status. Adjust.
5824 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5825 enum register_status. Return the register's status.
5826 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5827 register_status. Return the register's status.
5828 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5829 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5830 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5831 * rs6000-tdep.c (move_ev_register_func): New typedef.
5832 (e500_move_ev_register): Use it. Change return to enum
5833 register_status. Return the register's status.
5834 (do_regcache_raw_read): New function.
5835 (do_regcache_raw_write): New function.
5836 (e500_pseudo_register_read): Change return to enum
5837 register_status. Return the register's status. Use
5838 do_regcache_raw_read.
5839 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5840 (dfp_pseudo_register_read): Change return to enum register_status.
5841 Return the register's status.
5842 (vsx_pseudo_register_read): Ditto.
5843 (efpr_pseudo_register_read): Ditto.
5844 (rs6000_pseudo_register_read): Ditto.
5845 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5846 register_status. Return the register's status.
5847 * sh64-tdep.c (pseudo_register_read_portions): New function.
5848 (sh64_pseudo_register_read): Change return to enum
5849 register_status. Use pseudo_register_read_portions. Return the
5851 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5852 register_status. Return the register's status.
5853 * sh-tdep.c (pseudo_register_read_portions): New function.
5854 (sh_pseudo_register_read): Change return to enum register_status.
5855 Use pseudo_register_read_portions. Return the register's status.
5856 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5857 enum register_status. Return the register's status.
5858 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5859 * spu-tdep.c (spu_pseudo_register_read_spu)
5860 (spu_pseudo_register_read): Ditto.
5861 * xtensa-tdep.c (xtensa_register_read_masked)
5862 (xtensa_pseudo_register_read): Ditto.
5863 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5865 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5867 * python/py-value.c (valpy_getitem): Fix formatting of error function
5870 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5872 ARI fixes: Add missing internationalization markups throughout
5874 * darwin-nat-info.c: Ditto.
5877 * mi/mi-main.c: Ditto.
5879 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5881 ARI fixes: Add missing internationalization markups throughout
5884 * cp-name-parser.y: Ditto.
5887 * objc-exp.y: Ditto.
5890 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5892 ARI fixes: Messages should have no trailing new lines.
5893 * darwin-nat.c (mach_check_error): Remove trailing new line from
5894 warning function call message.
5895 * record.c (bfdcore_read): Idem for error call.
5897 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5899 * common/signals.c (target_signal_from_host): Add _ markup to error
5900 function call message.
5901 (target_signal_to_host): Add _ markup and remove trailing new line
5902 from warning call message.
5903 (target_signal_from_command): Add _ markup to error function call
5906 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5910 * python/python.c (gdbpy_write): Accept a stream argument and
5911 operate to the appropriate stream.
5912 (gdbpy_flush): Likewise.
5913 (_initialize_python): Add stream constants.
5914 (finish_python_initialization): Add GdbOutputErrorFile class.
5916 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5918 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5920 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5922 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5923 to store_signed_integer. Add debug message when relocating CALL
5924 instructions. Fix formatting of debug message.
5925 * i386-tdep.c (i386_relocate_instruction): Ditto.
5927 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5929 * target.h (struct target_ops): Remove to_lookup_symbol field.
5930 (target_lookup_symbol): Delete macro.
5931 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5932 (update_current_target, setup_target_debug): Remove handling
5933 of to_lookup_symbol target_ops field.
5934 * ada-tasks.c (get_known_tasks_addr): Remove use of
5935 target_lookup_symbol.
5936 * coffread.c (coff_symtab_read): Likewise.
5937 * dbxread.c (read_dbx_symtab): Ditto.
5939 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5942 * configure.ac: Add getthrds declaration check.
5943 * configure, config.in: Regenerate.
5944 * aix-thread.c (getthrds): Declare only if not already declared
5945 in procinfo.h. More declaration out of get_signaled_thread to
5948 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5950 * python/py-symtab.c: Populate symtab_object_methods,
5952 (stpy_is_valid): New function.
5953 (salpy_is_valid): Ditto.
5954 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5955 (sympy_is_valid): New function.
5956 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5957 (objfpy_is_valid): New function.
5958 * python/py-inferior.c: Populate inferior_object_methods.
5959 (infpy_is_valid): New function.
5960 * python/py-infthread.c: Populate thread_object_methods.
5961 (thpy_is_valid): New function.
5962 * python/py-block.c: Declare block_object_methods. Populate. Declare
5963 block_iterator_object_methods. Populate.
5964 (blpy_is_valid): New function.
5965 (blpy_iter_is_valid): Ditto.
5967 2011-03-16 Keith Seitz <keiths@redhat.com>
5969 * linespec.c (find_methods): Canonicalize NAME before looking
5971 (name_end): New function.
5972 (keep_name_info): New function.
5973 (decode_line_1): Use keep_name_info.
5974 (decode_compound): Likewise.
5975 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5976 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5979 * linespec.c (locate_first_half): Keep overload information, too.
5980 (decode_compound): Use a string to represent break characters
5982 If P points to a break character, do not increment it.
5983 For C++ and Java, keep overload information and relevant keywords.
5984 If we cannot find a symbol, search the minimal symbols.
5987 * linespec.c (decode_compound): Rename SAVED_ARG to
5989 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5991 Pass a valid block to lookup_symbol.
5992 (lookup_prefix_sym): Likewise.
5993 (find_method): Construct search name based on SYM_CLASS instead
5995 * psymtab.c (lookup_partial_symbol): Add language parameter.
5996 (lookup_symbol_aux_psymtabs): Likewise.
5997 Don't assume that the psymtab we found was the right one. Search
5998 for the desired symbol in the symtab to be certain.
5999 (psymtab_search_name): New function.
6000 (lookup_partial_symbol): Use psymtab_search_name.
6001 Add language parameter.
6002 (read_symtabs_for_function): Add language parameter and pass to
6003 lookup_partial_symbol.
6004 (find_symbol_file_from_partial): Likewise.
6006 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
6009 * dwarf2read.c (noop_record_line): New function.
6010 (dwarf_decode_lines): Ignore line tables for GCd functions.
6012 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6014 Fix ARI warnings about new lines at the end of messages, which
6015 are unneeded as there is a new line added at the end of the message
6017 * darwin-nat.c (darwin_stop_inferior): Ditto.
6018 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
6019 * dfp.c (decimal_to_number): Ditto.
6020 * exec.c (print_section_info): Ditto.
6021 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
6022 * osdata.c (get_osdata): Ditto.
6023 * record.c (bfdcore_write): Ditto.
6024 * remote-mips.c (mips_readchar): Ditto.
6025 * remote.c (read_ptid): Ditto.
6026 * ser-mingw.c (ser_windows_raw): Ditto.
6027 * tracepoint.c (add_local_symbols): Ditto.
6028 * windows-nat.c (fake_create_process): Ditto.
6030 2011-03-16 Tom Tromey <tromey@redhat.com>
6032 * tracepoint.c (stop_tracing): Don't declare.
6033 * event-top.c (after_char_processing_hook): Add `(void)'.
6035 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
6037 * NEWS: Add Parameter sub-classing description.
6039 2011-03-16 Kai Tietz <ktietz@redhat.com>
6041 * MAINTAINERS: Update my e-mail address.
6043 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
6045 * MAINTAINERS: Add myself for write after approval privileges.
6047 2011-03-15 Michael Snyder <msnyder@vmware.com>
6049 * frame.c (find_frame_sal): Assert sym is not null.
6051 * dbxread.c (process_one_symbol): Assert 'name' is not null.
6053 * objc-lang.c (selectors_info): Check strchr for null result.
6055 * stabsread.c (define_symbol): Guard against bad stabstring input.
6057 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6059 Remove trailing spaces and tabulations from pascal language
6064 p-valprint.c: Ditto.
6066 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6068 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
6069 than LOW. Comment it.
6070 (read_partial_die): Call complaint for inappropriate zero LOWPC or
6071 HIGHPC not strictly higher than LOWPC.
6073 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
6075 Fix formatting of function declarations returning a pointer in
6077 * varobj.c (varobj_add_child): Ditto.
6078 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
6079 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
6081 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6083 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
6084 for the "generic" vector ABI used with GCC 4.3 and later.
6085 (ppc64_sysv_abi_return_value): Likewise.
6087 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
6089 * infcall.c (call_function_by_hand): Function return value is
6090 always a non_lval, even when using struct_return.
6092 2011-03-15 Pedro Alves <pedro@codesourcery.com>
6094 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6095 (map_display_numbers): New.
6096 (do_delete_display): New.
6097 (undisplay_command): Use map_display_numbers.
6098 (do_enable_disable_display): New.
6099 (enable_disable_display_command): New function.
6100 (enable_display): Delete.
6101 (enable_display_command): New.
6102 (disable_display_command): Reimplement.
6103 (_initialize_printcmd): Adjust "enable display" command to use
6104 `enable_display_command' as callback.
6106 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6108 * NEWS: Add Python breakpoint 'stop' operation.
6110 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6112 * NEWS: Delete duplicate entry. Fix typo.
6114 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6116 Fix ARI warning about function names in first column.
6117 Put prototype declaration on same line as return type.
6118 * objc-exp.y: Ditto.
6120 * python/py-stopevent.h: Ditto.
6121 For long function names, split parameters to
6122 allow function name on same line as return type.
6123 * solib-pa64.c: Ditto.
6126 For long function declaration, use single line.
6127 * hppa-tdep.h: Ditto.
6128 * inferior.h: Ditto.
6130 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6132 * python/python.h: Declare gdbpy_should_stop and
6133 gdbpy_breakpoint_has_py_cond.
6134 * python/python.c: Add python.h to includes. Remove python.h from
6135 HAVE_PYTHON definition
6136 (gdbpy_should_stop): New dummy function.
6137 (gdbpy_breakpoint_has_py_cond): New dummy function.
6138 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6139 sub-classing capabilities.
6140 (gdbpy_should_stop): New function.
6141 (gdbpy_breakpoint_has_py_cond): New function.
6142 (local_setattro): New function.
6143 * breakpoint.c (condition_command): Add check for Python 'stop'
6145 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6146 operation function as part of stop/continue tests.
6148 2011-03-14 Tom Tromey <tromey@redhat.com>
6151 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6152 (needs_frame_dwarf_call): Likewise.
6154 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6156 Fix ARI warning about functions without parameters that do not
6158 * breakpoint.c (all_tracepoints): Replace () by (void).
6159 * f-exp.y (match_string_literal): Ditto.
6161 * m2-exp.y (yylex): Ditto.
6162 * mep-tdep.c (current_me_module): Ditto.
6163 (current_options): Ditto.
6164 (current_cop_data_bus_width): Ditto.
6165 (current_cr_names): Ditto.
6166 (current_cr_is_float): Ditto.
6167 (current_ccr_names): Ditto.
6168 * objc-exp.y (yylex): Ditto.
6169 * p-exp.y (yylex): Ditto.
6170 * remote.c (send_interrupt_sequence): Ditto.
6171 * tracepoint.c (current_trace_status): Ditto.
6172 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6173 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6175 2011-03-11 Michael Snyder <msnyder@vmware.com>
6177 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6178 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6179 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6180 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6181 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6183 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6184 (delete_async_event_handler): Ditto.
6186 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6188 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6190 * top.c (set_verbose): Assert showcmd was found.
6192 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6194 * xtensa-tdep.c (warning_once): Correct style issues.
6196 2011-03-11 Yao Qi <yao@codesourcery.com>
6198 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6200 2011-03-11 Andreas Schwab <schwab@redhat.com>
6202 * common/aclocal.m4: Remove.
6204 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6206 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6207 (xtensa_write_register, xtensa_read_register): Likewise.
6208 (xtensa_hextochar): Removed.
6209 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6211 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6213 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6214 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6215 (xtensa_alloc_frame_cache): Add initialization for new fields.
6216 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6217 (warning_once): New function.
6218 (xtensa_insn_kind): New item c0opc_and.
6219 (call0_classify_opcode): Add the case for AND instruction.
6220 (call0_track_op): Change arguments. New local variable litbase.
6221 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6222 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6224 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6225 (call0_analyze_prologue): Update the comments. Change arguments.
6226 Add the variety of updates to handle extended prologues, which now can
6227 conduct dynamic stack adjustments.
6228 (call0_frame_cache): Likewise.
6229 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6230 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6232 2011-03-10 Michael Snyder <msnyder@vmware.com>
6234 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6235 (cmd_qtframe): Ditto.
6236 (cmd_qtbuffer): Ditto.
6237 (cmd_bigqtbuffer): Ditto.
6239 2011-03-10 Tom Tromey <tromey@redhat.com>
6241 * tracepoint.c (trace_actions_command): Update.
6242 * thread.c (thread_apply_command): Update.
6243 * reverse.c (delete_bookmark_command): Update.
6244 (bookmarks_info): Update.
6245 * printcmd.c (undisplay_command): Update.
6246 * memattr.c (mem_enable_command): Update.
6247 (mem_disable_command): Update.
6248 (mem_delete_command): Update.
6249 * inferior.c (detach_inferior_command): Update.
6250 (kill_inferior_command): Update.
6251 (remove_inferior_command): Update.
6252 * cli/cli-utils.h (struct get_number_or_range_state): New.
6253 (init_number_or_range): Declare.
6254 (get_number_or_range): Update.
6255 * cli/cli-utils.c (init_number_or_range): New function.
6256 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6258 (number_is_in_list): Update.
6259 * breakpoint.h (get_tracepoint_by_number): Update.
6260 * breakpoint.c (map_breakpoint_numbers): Update for change to
6261 get_number_or_range.
6262 (find_location_by_number): Use get_number, not
6263 get_number_or_range.
6264 (trace_pass_set_count): New function.
6265 (trace_pass_command): Update for change to get_number_or_range.
6267 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6270 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6272 * python/py-param.c (add_setshow_generic): Add set/show callback
6273 parameters. Register Python object context.
6274 (get_show_value): New function.
6275 (get_set_value): New function.
6276 (call_doc_function): New function.
6277 (get_doc_string): Move behind get_show_value/get_set_value.
6279 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6281 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6283 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6285 * xtensa-tdep.c (xtensa_read_register): Add comment.
6286 (xtensa_write_register): Likewise.
6287 (xtensa_hextochar): Add comment and update to match coding conventions.
6288 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6289 (execute_l32e, execute_s32e, execute_code): Update comments.
6290 (xtensa_exception_handler_t): Update to match coding conventions.
6291 (xtensa_insn_kind): Likewise.
6293 2011-03-09 Michael Snyder <msnyder@vmware.com>
6295 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6297 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6299 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6301 2011-03-09 Tom Tromey <tromey@redhat.com>
6303 * thread.c (restore_selected_frame): Handle frame_level == -1.
6304 (make_cleanup_restore_current_thread): Use
6305 get_selected_frame_if_set.
6306 * frame.h (get_selected_frame_if_set): Declare.
6307 * frame.c (get_selected_frame_if_set): New function.
6309 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6311 * cli/cli-cmds.c (shell_escape): Use lbasename.
6312 * coffread.c (coff_start_symtab): Constify parameter.
6313 (complete_symtab): Constify `name' parameter.
6314 (coff_symtab_read): Constify `filestring' local.
6315 (coff_getfilename): Constify return and `result' local.
6317 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6318 * linux-fork.c (info_checkpoints_command): Use lbasename.
6319 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6320 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6321 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6322 * procfs.c (procfs_make_note_section): Use lbasename.
6323 * tui/tui-io.c (printable_part): Constity return and parameter.
6325 (print_filename): Constify parameters, and local `s'.
6326 (tui_rl_display_match_list): Constify local `temp'.
6328 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6331 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6332 Fix DWARF-3+ DW_AT_accessibility default assumption.
6333 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6334 cu->header.version >= 3.
6336 2011-03-09 Yao Qi <yao@codesourcery.com>
6338 * common/Makefile.in: Remove.
6339 * common/configure: Remove.
6340 * common/configure.ac: Remove.
6342 2011-03-09 Yao Qi <yao@codesourcery.com>
6345 2011-02-11 Yao Qi <yao@codesourcery.com>
6347 * common/Makefile.in: Add copyright header.
6349 2011-02-11 Yao Qi <yao@codesourcery.com>
6351 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6353 * configure.ac: Add common to sub dir.
6354 * configure: Regenerate.
6356 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6358 * xtensa-tdep.c (call0_ret): New function.
6359 (xtensa_skip_prologue): Speed up analysis.
6361 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6363 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6364 while executing MI command -data-list-changed-registers.
6366 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6368 * xtensa-tdep.c (xtensa_read_register): New function.
6369 (xtensa_write_register): New function.
6370 (xtensa_find_register_by_name): New function.
6371 (xtensa_windowed_frame_cache): Update comments in type description.
6372 (xtensa_frame_cache): Likewise.
6373 (xtensa_window_interrupt_insn): New function.
6374 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6375 (xtensa_insn_kind): Add new instructions.
6376 (rwx_special_register): New function.
6377 (call0_classify_opcode): Add new instructions to the analysis.
6378 (a0_saved, a7_saved, a11_saved): New variables.
6379 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6380 (execute_l32e): New function.
6381 (execute_s32e): New function.
6382 (xtensa_exception_handler_t): New type.
6383 (execute_code): New function.
6384 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6385 analysis for Xtensa Window Exception handlers.
6387 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6389 * xtensa-tdep.c (TX_PS): New.
6390 (windowing_enabled): Update to count for Call0 ABI.
6391 (xtensa_hextochar): New.
6392 (xtensa_init_reggroups): Make algorithm generic.
6393 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6395 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6397 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6399 2011-03-08 Michael Snyder <msnyder@vmware.com>
6401 * i386-tdep.c (i386_follow_jump): Check return value of
6403 (i386_analyze_struct_return): Ditto.
6404 (i386_skip_probe): Ditto.
6405 (i386_match_insn): Ditto.
6406 (i386_skip_noop): Ditto.
6407 (i386_analyze_frame_setup): Ditto.
6408 (i386_analyze_register_saves): Ditto.
6409 (i386_skip_prologue): Ditto.
6410 (i386_skip_main_prologue): Ditto.
6412 * target.c (read_whatever_is_readable): Fix memory leak.
6414 * i386-tdep.c (i386_process_record): Document fall through.
6416 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6418 Fix DWARF-3+ DW_AT_accessibility default assumption.
6419 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6420 cu->header.version >= 3.
6422 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6424 * remote.c (remote_check_symbols): Skip if the target has no
6427 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6429 * target.c (read_whatever_is_readable): Reformat comment,
6430 with a minor typo fix. Minor reformatting of the code.
6432 2011-03-08 Yao Qi <yao@codesourcery.com>
6434 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6435 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6436 Use cached result instead of calling displaced_in_arm_mode again.
6437 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6438 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6439 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6440 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6441 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6442 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6443 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6444 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6445 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6446 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6447 (arm_catch_kernel_helper_return): Likewise.
6448 * gdb/arm-tdep.h : Update function declarations.
6450 2011-03-07 Michael Snyder <msnyder@vmware.com>
6452 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6454 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6456 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6458 * elfread.c (elf_symtab_read): Stop memory leak.
6460 * main.c (captured_main): Fix memory leak.
6462 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6464 * ada-lang.c (compare_names): Call is_name_suffix with string1
6467 2011-03-07 Tom Tromey <tromey@redhat.com>
6469 * xcoffread.c (xcoff_sym_fns): Update.
6470 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6471 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6472 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6473 (symbol_file_add_with_addrs_or_offsets): Likewise.
6474 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6475 * somread.c (som_sym_fns): Update.
6476 * psymtab.h (require_partial_symbols): Declare.
6477 * psymtab.c (require_partial_symbols): New function.
6478 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6479 (ALL_OBJFILE_PSYMTABS): Undef.
6480 (ALL_PSYMTABS): Move from psympriv.h.
6481 (lookup_partial_symtab, find_pc_sect_psymtab)
6482 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6483 (find_last_source_symtab_from_partial)
6484 (forget_cached_source_info_partial)
6485 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6486 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6487 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6488 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6489 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6490 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6491 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6492 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6493 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6495 * mipsread.c (ecoff_sym_fns): Update.
6496 * machoread.c (macho_sym_fns): Update.
6497 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6498 (read_psyms): New function.
6499 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6500 (elf_sym_fns_lazy_psyms): New global.
6501 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6502 dwarf2_build_psymtabs.
6503 * dbxread.c (aout_sym_fns): Update.
6504 * coffread.c (coff_sym_fns): Update.
6506 2011-03-07 Tom Tromey <tromey@redhat.com>
6508 * infrun.c (print_exited_reason): Include inferior id and pid in
6511 2011-03-07 Tom Tromey <tromey@redhat.com>
6513 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6515 (target_has_execution_1): Update.
6516 (target_has_execution_current): Declare.
6517 (target_has_execution): Call target_has_execution_current.
6518 (default_child_has_execution): Update.
6519 * target.c (default_child_has_execution): Add 'the_ptid'
6521 (target_has_execution_1): Likewise.
6522 (target_has_execution_current): New function.
6523 (add_target): Update.
6524 (init_dummy_target): Update.
6525 * remote-m32r-sdi.c (m32r_has_execution): New function.
6526 (init_m32r_ops): Use it.
6527 * record.c (record_core_has_execution): Now static. Add
6528 'the_ptid' parameter.
6529 * inferior.c (have_live_inferiors): Don't save current thread.
6530 Use target_has_execution_1.
6532 2011-03-07 Yao Qi <yao@codesourcery.com>
6534 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6536 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6538 * elfread.c (elf_symtab_read): Minor reformatting.
6540 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6542 * objc-lang.c (selectors_info): Minor reformatting.
6544 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6546 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6548 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6549 Michael Snyder <msnyder@vmware.com>
6551 * ada-valprint.c (ada_val_print_array): Move the declaration of
6552 "byte_order" and "elttype" inside the block where these variables
6553 are actually used. Remove some special handling for the case
6554 where "elttype" and "eltlen" are null. Replace by a comment
6555 and a couple of assertion checks.
6557 2011-03-05 Michael Snyder <msnyder@vmware.com>
6559 * source.c (add_path): Replace semicolon at end of block.
6560 * dwarf2expr.c (execute_stack_op): Ditto.
6562 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6564 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6565 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6566 (bfin-*-*): Likewise.
6568 2011-03-05 Michael Snyder <msnyder@vmware.com>
6570 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6571 * mdebugread.c (parse_symbol): Ditto.
6572 * parse.c (parse_exp_in_context): Ditto.
6573 * source.c (add_path): Ditto.
6574 * utils.c (gnu_debuglink_crc32): Ditto.
6575 * varobj.c (variable_language): Ditto.
6577 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6579 2011-03-04 Michael Snyder <msnyder@vmware.com>
6581 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6583 * symfile.c (simple_overlay_update): Check for null return value
6584 from lookup_minimal_symbol.
6586 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6588 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6590 * eval.c (parse_and_eval_address_1): Remove function.
6591 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6592 instead of parse_and_eval_address_1.
6593 * value.h (parse_and_eval_address_1): Remove prototype.
6595 2011-03-04 Michael Snyder <msnyder@vmware.com>
6597 * remote.c (putpkt_binary): Document that case stmt falls through.
6599 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6601 * breakpointc (print_it_typical): Move NULL check from here...
6602 (print_bp_stop_message): ... to here.
6604 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6606 * breakpoint.c (enable_command): Use break instead of continue,
6607 and fill in a missing break.
6608 (disable_command): Ditto.
6610 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6612 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6613 (terminal_save_ours): Remove misleading comment.
6614 (inflow_inferior_data_cleanup): Free ttystate.
6615 (inflow_inferior_exit): Likewise.
6616 (copy_terminal_info): Copy ttystate.
6618 * serial.c (serial_copy_tty_state): New function.
6619 * serial.h (serial_copy_tty_state): Add prototype.
6620 (struct serial_ops): Add copy_tty_state callback.
6621 * ser-base.c (ser_base_copy_tty_state): New function.
6622 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6623 * ser-go32.c (dos_copy_tty_state): New function.
6624 (dos_ops): Install copy_tty_state callback.
6625 * ser-mingw.c (_initialize_ser_windows): Likewise.
6626 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6627 * ser-unix.c (hardwire_copy_tty_state): New function.
6628 (_initialize_ser_hardwire): Install it.
6630 2011-03-04 Michael Snyder <msnyder@vmware.com>
6632 * breakpoint.c (create_breakpoint): Add missing break statement.
6634 Reverting this patch:
6635 * infcall.c (call_function_by_hand): Add break statements for lint.
6637 Reverting this patch:
6638 * cli/cli-script.c (script_from_file): Add break for lint.
6640 2011-03-04 Michael Snyder <msnyder@vmware.com>
6642 * solib.c (reload_shared_libraries_1): Close memory leak.
6644 2011-03-03 Tom Tromey <tromey@redhat.com>
6647 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6650 2011-03-03 Michael Snyder <msnyder@vmware.com>
6652 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6653 fields of struct 'st' to zero.
6655 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6656 sal.pspace before calling set_current_source_symtab_and_line.
6658 2011-03-03 Yao Qi <yao@codesourcery.com>
6660 * Makefile.in (configure-common): Remove. Let Makefile
6661 in dir common to rebuild itself.
6662 (common/Makefile): Likewise.
6664 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6666 * utils.c (parse_escape): Add i18n markup in error message.
6668 2011-03-03 Yao Qi <yao@codesourcery.com>
6670 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6672 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6673 (displaced_write_reg, displaced_read_reg): Likewise.
6674 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6675 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6676 (cleanup_branch): Replace magic number 14 and 15 with
6677 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6679 2011-03-02 Michael Snyder <msnyder@vmware.com>
6681 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6683 * cli/cli-script.c (script_from_file): Add break for lint.
6685 * mdebugread.c (parse_partial_symbols): Fix indent.
6687 * target-descriptions.c (tdesc_gdb_type): No need to call
6688 xstrdup, callee saves a copy.
6690 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6692 * infcall.c (call_function_by_hand): Add break statements for lint.
6694 * utils.c (parse_escape): Escape the escape char.
6696 * python/py-inferior.c (build_inferior_list): Error out if
6697 PyList_Append fails.
6698 (gdbpy_inferiors): Error out if build_inferior_list fails.
6700 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6703 * record.c (record_restore): Move printf to before error return.
6705 2011-03-02 Yao Qi <yao@codesourcery.com>
6707 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6708 is_thumb and insn_size.
6709 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6710 on both ARM and Thumb mode.
6711 (arm_process_displaced_insn): Set is_thumb and insn_size.
6712 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6713 (arm_displaced_step_fixup): Likewise.
6715 2011-03-01 Michael Snyder <msnyder@vmware.com>
6717 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6719 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6721 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6723 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6725 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6728 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6729 which shadows function parameter.
6731 * tracepoint.c (create_tsv_from_upload): Superfluous call
6732 to xstrdup. Callee already calls xstrdup.
6734 * linespec.c (decode_line_1): Remove unnecessary null check.
6736 * tracepoint.c (scope_info): Fix mem leak, remove underused
6739 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6740 superfluous null check.
6742 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6743 (value_of_builtin_frame_fp_reg): Ditto.
6745 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6747 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6750 * linespec.c (decode_line_1): Check for null before dereference.
6752 * reverse.c (record_restore): Move null-check to before pointer
6755 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6757 * objc-lang.c (selectors_info): Add explanitory comment.
6758 (classes_info): Ditto.
6760 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6762 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6763 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6764 versions of the trampoline. Handle Thumb vs. ARM addresses.
6765 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6766 (arm_linux_init_abi): Install it.
6767 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6768 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6770 2011-02-28 Michael Snyder <msnyder@vmware.com>
6772 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6773 a little bigger, to avoid possibility of an overflow.
6775 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6776 buffers a little bigger, to avoid possibility of an overflow.
6778 * coffread.c (coff_getfilename): Add check to avoid overflow.
6780 * objc-lang.c (selectors_info): Add a small safety margin to
6782 (classes_info): Error out on too long REGEXP.
6784 * infrun.c (handle_inferior_event): Remove unused function call.
6786 * fork-child.c (fork_inferior): Remove ifdef'd code and
6789 * linux-thread-db.c (attach_thread): Discard unused value.
6791 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6793 * remote.c (remote_get_noisy_reply): Discard unused value.
6794 (remote_vcont_resume): Ditto.
6795 (remote_stop_ns): Ditto.
6797 * linespec.c (decode_objc): Delete unused variable.
6799 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6801 * dwarf2read.c (add_partial_symbol): Discard unused values.
6802 (read_base_type): Delete unused variable.
6804 * dbxread.c (read_dbx_symtab): Discard unused value.
6806 * eval.c (evaluate_subexp_standard): Delete unused variable,
6807 and discard unused values.
6809 * infcmd.c (_initialize_infcmd): Discard unused values.
6811 * stabsread.c (rs6000_builtin_type): Missing break statement.
6813 * dbxread.c (process_one_symbol): Discard unused value.
6815 * coffread.c (coff_end_symtab): Delete unused variable.
6817 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6818 (dwarf2_add_typedef): Delete unused variable.
6819 (read_namespace): Ditto.
6820 (dwarf_decode_macros): Ditto.
6822 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6824 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6826 * p-valprint.c (pascal_val_print): Discard unused value.
6828 * utils.c (nquery): Call va_end before return;
6832 * proc-service.c (ps_plog): Call va_end before return.
6834 2011-02-28 Tom Tromey <tromey@redhat.com>
6836 * python/python.c (gdbpy_value_cst): New global.
6837 (_initialize_python): Initialize it.
6838 * python/python-internal.h (gdbpy_value_cst): Declare.
6839 * python/py-value.c (convert_value_from_python): Use
6842 2011-02-28 Michael Snyder <msnyder@vmware.com>
6844 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6846 * breakpoint.c (catch_syscall_completer): Free malloced list.
6848 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6850 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6851 (lval_func_check_synthetic_pointer): Ditto.
6852 (lval_func_free_closure): Fix use-after-free.
6854 2011-02-28 Tom Tromey <tromey@redhat.com>
6856 * psymtab.c (expand_partial_symbol_tables): Use
6857 ALL_OBJFILE_PSYMTABS.
6859 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6861 * objc-lang.c (selectors_info): Error on too long REGEXP.
6863 2011-02-28 Michael Snyder <msnyder@vmware.com>
6865 * python/py-param.c (set_parameter_value): Add missing
6868 * linux-record.c (record_linux_system_call): Add missing
6871 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6873 * breakpoint.c (print_one_breakpoint_location): Remove unused
6874 argument PRINT_ADDRESS_BITS. Update callers.
6875 (print_one_breakpoint): Likewise.
6877 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6879 * breakpoint.c (wrap_indent_at_field): New function.
6880 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6881 Allocate ui_stream locally instead of using STB argument.
6882 (print_one_breakpoint_location): Update call.
6883 * ui-out.c (ui_out_query_field): New function.
6884 * ui-out.h (ui_out_query_field): Add prototype.
6886 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6888 From Michael Snyder <msnyder@vmware.com>
6889 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6891 2011-02-27 Michael Snyder <msnyder@vmware.com>
6893 * objc-lang.c (selectors_info): Prevent string overrun.
6895 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6898 * symtab.c (rbreak_command): Move variable 'file_name' to
6901 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6902 param with a local variable of the same name.
6904 2011-02-27 Michael Snyder <msnyder@vmware.com>
6906 * value.c (value_from_history_ref): New function.
6907 * value.h (value_from_history_ref): Export.
6908 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6909 to parse value history references.
6910 * cli/cli-utils.h (get_number_trailer): Update comment.
6912 2011-02-27 Michael Snyder <msnyder@vmware.com>
6914 * inferior.c (detach_inferior_command): Use get_number_or_range.
6915 (kill_inferior_command): Ditto.
6916 (remove_inferior_command): Ditto.
6917 (initialize_inferiors): Make command names plural.
6918 Update help strings.
6920 2011-02-27 Michael Snyder <msnyder@vmware.com>
6922 * darwin-nat-info.c: Fix comment typo.
6923 * dwarf2expr.h: Ditto.
6924 * fbsd-nat.c: Ditto.
6925 * fbsd-nat.h: Ditto.
6926 * frame-unwind.h: Ditto.
6928 * hppa-hpux-tdep.c: Ditto.
6929 * i386-linux-nat.c: Ditto.
6930 * linux-nat.c: Ditto.
6931 * nbsd-nat.c: Ditto.
6932 * nbsd-nat.h: Ditto.
6933 * ppc-linux-tdep.c: Ditto.
6936 * tui/tui-winsource.c: Ditto.
6938 2011-02-26 Michael Snyder <msnyder@vmware.com>
6940 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6942 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6944 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6945 with a local variable of the same name.
6947 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6948 param with a local variable of the same name.
6949 (i387_supply_xsave): Ditto.
6951 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6952 that it does not shadow a function parameter.
6954 * i386-nat.c (i386_length_and_rw_bits): Document that case
6955 statement is meant to fall through.
6957 * expprint.c (dump_subexp_body_standard): Document that case
6958 statement is meant to fall through.
6960 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6961 dead if statement. Condition can't be false.
6963 2011-02-25 Michael Snyder <msnyder@vmware.com>
6965 * arm-tdep.c: Fix typos in comments.
6966 * bsd-uthread.c: Ditto.
6967 * completer.c: Ditto.
6969 * cp-namespace.c: Ditto.
6970 * cp-support.c: Ditto.
6971 * cris-tdep.c: Ditto.
6973 * dwarf2read.c: Ditto.
6975 * gdbtypes.h: Ditto.
6976 * inferior.h: Ditto.
6977 * mdebugread.c: Ditto.
6978 * mips-tdep.c: Ditto.
6979 * ppc-linux-nat.c: Ditto.
6980 * ppc-linux-tdep.c: Ditto.
6981 * printcmd.c: Ditto.
6982 * sol-thread.c: Ditto.
6983 * solib-frv.c: Ditto.
6985 * sparc64-tdep.c: Ditto.
6986 * spu-tdep.c: Ditto.
6987 * stabsread.c: Ditto.
6992 * python/py-block.c: Ditto.
6993 * python/py-symbol.c: Ditto.
6994 * python/py-symtab.c: Ditto.
6995 * python/py-value.c: Ditto.
6996 * tui/tui-win.c: Ditto.
6998 2011-02-25 Michael Snyder <msnyder@vmware.com>
7000 * inferior.c (print_inferior): Accept a string instead of an int
7001 for requested_inferiors, and use get_number_or_range to parse it.
7002 (info_inferiors_command): Pass args string to print_inferior.
7003 (initialize_inferiors): Change help string for info inferiors.
7004 * inferior.h (print_inferior): Export prototype change.
7006 2011-02-25 Tom Tromey <tromey@redhat.com>
7008 * common/ax.def (invalid2): Set to 0x31.
7010 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7012 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
7014 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
7016 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
7018 2011-02-24 Michael Snyder <msnyder@vmware.com>
7020 * Makefile.in (clean): Make clean should remove generated files
7021 observer.h and observer.inc.
7023 2011-02-24 Joel Brobecker <brobecker@adacore.com>
7025 Revert the following patch (not approved yet):
7026 2011-02-21 Hui Zhu <teawater@gmail.com>
7027 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7028 * ax-gdb.c (gen_printf_expr_callback): New function.
7029 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7030 * ax-general.c (ax_memcpy): New function.
7031 (ax_print): Handle "printf".
7033 * ax.h (ax_memcpy): Forward declare.
7034 * common/ax.def (invalid2): Removed.
7035 (printf): New entry.
7036 * printcmd.c (printcmd.h): New include.
7037 (string_printf): New function.
7038 (ui_printf): Removed.
7039 (printf_command): Remove static. Call string_printf.
7040 (eval_command): Call string_printf.
7041 * printcmd.h: New file.
7042 * tracepoint.c (validate_actionline,
7043 encode_actions_1): handle printf_command.
7045 2011-02-23 Tom Tromey <tromey@redhat.com>
7047 * ax-general.c (ax_pick): Add missing newline.
7049 2011-02-23 Michael Snyder <msnyder@vmware.com>
7051 * breakpoint.c (breakpoint_1): Change first argument from an int
7052 to a char pointer, so that the function now accepts a list of
7053 breakpoints rather than just one. Use new function
7054 'number_is_in_list' to implement.
7055 (breakpoints_info): Pass char * instead of int to breakpoint_1.
7056 (watchpoints_info): Ditto.
7057 (tracepoints_info): Ditto.
7058 (maintenance_info_breakpoints): Ditto.
7059 (_initialize_breakpoint): Update help strings to reflect the fact
7060 that these functions can now take more than one argument.
7061 * cli/cli-utils.c (number_is_in_list): New function.
7062 * cli/cli-utils.h (number_is_in_list): Export.
7064 2011-02-23 Michael Snyder <msnyder@vmware.com>
7066 * memattr.c (mem_enable_command): Use get_number_or_range.
7067 (mem_disable_command): Ditto.
7068 (mem_delete_command): Ditto.
7069 (_initialize_mem): Tweak usage message to reflect multiple
7072 2011-02-22 Doug Evans <dje@google.com>
7074 Add gdb.lookup_global_symbol python function.
7076 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
7077 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
7078 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
7080 2011-02-22 Tom Tromey <tromey@redhat.com>
7082 * language.c (language_class_name_from_physname): Rename
7083 'curr_language' argument to 'lang'; use in body.
7085 2011-02-22 Michael Snyder <msnyder@vmware.com>
7087 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7089 2011-02-22 Pedro Alves <pedro@codesourcery.com>
7091 * frame-unwind.h: Fix comment to mention the this frame, not the
7094 2011-02-22 Tom Tromey <tromey@redhat.com>
7096 * symfile.c (auto_solib_limit): Remove.
7097 * symfile.h (auto_solib_limit): Remove.
7099 2011-02-22 Joel Brobecker <brobecker@adacore.com>
7101 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7103 2011-02-21 Michael Snyder <msnyder@vmware.com>
7105 * gdbthread.h (print_thread_info): Change prototype.
7106 * thread.c (print_thread_info): Accept char* instead of int for
7107 requested_threads argument. Use new function number_is_in_list
7108 to determine which threads to list.
7109 (info_threads_command): Pass char* to print_thread_info.
7110 * cli/cli-utils.c (number_is_in_list): New function.
7111 * cli/cli-utils.h (number_is_in_list): Export.
7112 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
7114 (print_one_inferior): Ditto.
7115 (mi_cmd_list_thread_groups): Ditto.
7117 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7119 * common/Makefile.in (CFLAGS): New.
7120 (COMPILE): Add $(CFLAGS).
7122 2011-02-21 Tom Tromey <tromey@redhat.com>
7124 * breakpoint.c (catch_syscall_command_1): Fix typo.
7126 2011-02-21 Tom Tromey <tromey@redhat.com>
7128 * reverse.c: Include cli-utils.h.
7129 * printcmd.c: Include cli-utils.h.
7130 (string_printf): Use skip_spaces.
7131 * cli/cli-utils.h: New file.
7132 * cli/cli-utils.c: New file.
7133 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7134 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7135 * breakpoint.h (get_number, get_number_or_range): Move to
7137 * breakpoint.c: Include cli-utils.h.
7138 (get_number_trailer, get_number, get_number_or_range)
7139 (ep_skip_leading_whitespace): Move to cli-utils.c.
7140 (create_breakpoint_sal, find_condition_and_thread)
7141 (decode_static_tracepoint_spec, watch_command_1)
7142 (watch_maybe_just_location, ep_parse_optional_if_clause)
7143 (catch_fork_command_1, catch_exec_command_1)
7144 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7145 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7146 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7147 (HFILES_NO_SRCDIR): Add cli-utils.h.
7148 (cli-utils.o): New target.
7150 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7152 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7153 before calling discard_all_inferiors.
7155 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7157 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7158 (struct builtin_opencl_type): Remove.
7159 (builtin_opencl_type): Change return type to "struct type **".
7160 (lookup_opencl_vector_type): Update caller.
7161 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7162 (build_opencl_types): Install plain array of "struct type *"
7163 instead of "struct builtin_opencl_type".
7165 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7166 Ulrich Weigand <uweigand@de.ibm.com>
7168 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7169 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7170 (struct arm_linux_hwbp_cap): New type.
7171 (arm_linux_get_hwbp_cap): New function.
7172 (arm_linux_get_hw_breakpoint_count): Likewise.
7173 (arm_linux_get_hw_watchpoint_count): Likewise.
7174 (arm_linux_can_use_hw_breakpoint): Likewise.
7175 (arm_hwbp_type): New type.
7176 (arm_hwbp_control_t): Likewise.
7177 (struct arm_linux_hw_breakpoint): Likewise.
7178 (struct arm_linux_thread_points): Likewise.
7179 (arm_threads): New global variable.
7180 (arm_linux_find_breakpoints_by_tid): New function.
7181 (arm_hwbp_control_initialize): Likewise.
7182 (arm_hwbp_control_is_enabled): Likewise.
7183 (arm_hwbp_control_disable): Likewise.
7184 (arm_linux_hw_breakpoint_initialize): Likewise.
7185 (arm_linux_get_hwbp_type): Likewise.
7186 (arm_linux_hw_watchpoint_initialize): Likewise.
7187 (arm_linux_hw_breakpoint_equal): Likewise.
7188 (arm_linux_insert_hw_breakpoint1): Likewise.
7189 (arm_linux_remove_hw_breakpoint1): Likewise.
7190 (arm_linux_insert_hw_breakpoint): Likewise.
7191 (arm_linux_remove_hw_breakpoint): Likewise.
7192 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7193 (arm_linux_insert_watchpoint): Likewise.
7194 (arm_linux_remove_watchpoint): Likewise.
7195 (arm_linux_stopped_data_address): Likewise.
7196 (arm_linux_stopped_by_watchpoint): Likewise.
7197 (arm_linux_watchpoint_addr_within_range): Likewise.
7198 (arm_linux_new_thread): Likewise.
7199 (arm_linux_thread_exit): Likewise.
7200 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7201 related target callbacks. Register arm_linux_new_thread and
7202 arm_linux_thread_exit.
7203 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7204 * arm-tdep.c (arm_pc_is_thumb): Make global.
7205 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7207 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7209 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7210 per-frame locations while within a function epilogue.
7212 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7214 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7215 to GNU coding standards.
7217 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7219 Allow use of mingw native on Windows 95 OS.
7220 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7221 (ser_windows_close): Only call CancelIo if function exists.
7222 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7223 to check for existence of CancelIo function in kernel32 DLL.
7225 2011-02-21 Hui Zhu <teawater@gmail.com>
7227 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7228 * ax-gdb.c (gen_printf_expr_callback): New function.
7229 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7230 * ax-general.c (ax_memcpy): New function.
7231 (ax_print): Handle "printf".
7233 * ax.h (ax_memcpy): Forward declare.
7234 * common/ax.def (invalid2): Removed.
7235 (printf): New entry.
7236 * printcmd.c (printcmd.h): New include.
7237 (string_printf): New function.
7238 (ui_printf): Removed.
7239 (printf_command): Remove static. Call string_printf.
7240 (eval_command): Call string_printf.
7241 * printcmd.h: New file.
7242 * tracepoint.c (validate_actionline,
7243 encode_actions_1): handle printf_command.
7245 2011-02-19 Michael Snyder <msnyder@vmware.com>
7247 * reverse.c (delete_one_bookmark): Argument is now bookmark
7248 id rather than pointer to bookmark struct.
7249 (delete_bookmark_command): Use get_number_or_range.
7250 (goto_bookmark_command): Parse with get_number instead of strtoul.
7251 (bookmark_1): New function. Print info for one bookmark.
7252 (bookmarks_info): Use get_number_or_range and bookmark_1.
7254 2011-02-18 Michael Snyder <msnyder@vmware.com>
7256 * thread.c (info_threads_command): Re-implement using
7257 get_number_or_range.
7258 (thread_apply_command): Ditto.
7260 2011-02-18 Tom Tromey <tromey@redhat.com>
7262 * common/ax.def: New file.
7263 * ax.h (enum agent_op): Use ax.def.
7264 * ax-general.c (aop_map): Use ax.def.
7266 2011-02-18 Tom Tromey <tromey@redhat.com>
7268 * ax-general.c (aop_map): Add pick and rot.
7269 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7270 <DW_OP_rot>: Implement.
7271 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7273 * ax-general.c (ax_pick): New function.
7275 2011-02-18 Tom Tromey <tromey@redhat.com>
7277 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7279 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7280 Tom Tromey <tromey@redhat.com>
7282 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7283 make_symbol_overload_list_block with NULL BLOCK.
7284 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7286 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7288 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7289 * breakpoint.h (get_number_or_range): Declare.
7290 * printcmd.c (ALL_DISPLAYS): Declare.
7291 (delete_display): Reimplement taking a display pointer.
7292 (undisplay_command): Accept a range of displays to delete, using
7293 get_number_or_range.
7295 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7297 * c-valprint.c (c_val_print): Add embedded_offset to address
7298 for arrays of unspecified length.
7299 * p-valprint.c (pascal_val_print): Likewise.
7301 2011-02-18 Yao Qi <yao@codesourcery.com>
7303 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7304 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7305 (thumb_process_displaced_insn): New.
7306 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7307 call to arm_process_displaced_insn.
7308 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7310 2011-02-17 Tom Tromey <tromey@redhat.com>
7312 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7313 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7314 compile_dwarf_to_ax. No longer static. Call
7315 dwarf2_compile_cfa_to_ax.
7316 (locexpr_tracepoint_var_ref): Update.
7317 (loclist_tracepoint_var_ref): Update.
7318 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7319 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7320 argument; add 'gdbarch' and 'pc'.
7321 (dwarf2_compile_cfa_to_ax): New function.
7322 (dwarf2_frame_cache): Update.
7324 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7326 * ada-lang.c (ada_type_of_array): Fix the size of the array
7327 in the case of an unconstrained packed array.
7329 2011-02-17 Yao Qi <yao@codesourcery.com>
7331 * common/Makefile.in: Add more targets for make.
7333 2011-02-16 Tom Tromey <tromey@redhat.com>
7335 * dwarf2loc.c (unimplemented): Fix typo.
7337 2011-02-16 Tom Tromey <tromey@redhat.com>
7339 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7340 (compile_dwarf_to_ax) <default>: Use unimplemented.
7341 <DW_OP_deref>: Update.
7342 (disassemble_dwarf_expression): Update.
7343 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7344 (decode_locdesc): Update.
7345 * dwarf2expr.h (dwarf_stack_op_name): Update.
7347 2011-02-16 Tom Tromey <tromey@redhat.com>
7349 * ax.h (struct aop_map) <name>: Now const.
7351 2011-02-16 Tom Tromey <tromey@redhat.com>
7353 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7356 2011-02-16 Yao Qi <yao@codesourcery.com>
7358 * infrun.c (get_displaced_step_closure_by_addr): New.
7359 * inferior.h: Declare it.
7360 * arm-tdep.c: (arm_pc_is_thumb): Call
7361 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7364 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7365 Jan Kratochvil <jan.kratochvil@redhat.com>
7368 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7370 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7371 Jan Kratochvil <jan.kratochvil@redhat.com>
7373 * value.c (value_contents_copy_raw): Extend describing comment.
7374 Assert that the destination contents we're overwriting are wholly
7376 (value_contents_copy): Extend describing comment.
7378 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7379 Jan Kratochvil <jan.kratochvil@redhat.com>
7381 * value.c (value_available_contents_eq): Remove redundant local
7382 variables. Fix available contents comparision.
7383 * value.h (value_available_contents_eq): Extend describing
7386 2011-02-16 Yao Qi <yao@codesourcery.com>
7388 * thread.c (info_threads_command): Add missing i18n markup and remove
7391 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7393 * breakpoint.c (longjmp_names): New variable.
7394 (struct breakpoint_objfile_data): New type.
7395 (breakpoint_objfile_key): New variable.
7396 (msym_not_found): New variable.
7397 (msym_not_found_p): New predicate.
7398 (get_breakpoint_objfile_data): New function.
7399 (create_overlay_event_breakpoint): Check per-objfile cache for
7401 (create_longjmp_master_breakpoint): Likewise.
7402 (create_std_terminate_master_breakpoint): Likewise.
7403 (create_exception_master_breakpoint): Likewise.
7404 (_initialize_breakpoint): Register per-objfile data key.
7406 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7408 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7410 (create_longjmp_master_breakpoint): Loop over longjmp names.
7411 (create_std_terminate_master_breakpoint): Const-propagate parameter
7413 (update_breakpoints_after_exec): Adjust.
7414 (breakpoint_re_set): Adjust.
7416 2011-02-15 Michael Snyder <msnyder@vmware.com>
7418 * thread.c (info_threads_command): Process arg as thread id,
7419 or list of thread ids.
7420 (thread_find_command): New command.
7421 (_initialize_thread): Document argument for info threads.
7422 Document 'thread find' command.
7423 * NEWS: Document new command "thread find".
7425 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7428 * aclocal.m4: Regenerated with aclocal-1.11.1.
7429 * common/configure: Regenerate with autoconf-2.64.
7431 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7433 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7434 bool data type to a size of one byte.
7436 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7437 Jan Kratochvil <jan.kratochvil@redhat.com>
7439 * target.c (memory_xfer_live_readonly_partial): Document where to
7440 look for interface description.
7442 2011-02-15 Yao Qi <yao@codesourcery.com>
7445 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7446 order to store PC value on stack instead of text section.
7448 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7450 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7451 the EFP register set size.
7452 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7453 data from the VMX register.
7454 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7455 and write data from/to the VMX register.
7457 2011-02-14 Michael Snyder <msnyder@vmware.com>
7459 * command.h (enum command_class): New class 'no_set_class', for
7460 "show" commands without a corresponding "set" command.
7461 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7462 * copying.c (_initialize_copying): Ditto for "show copying" and
7464 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7466 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7467 which there is no corresponding "set" command (eg. "show copying").
7469 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7470 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 * exec.c (section_table_available_memory): Change `len' parameter
7474 * exec.h (section_table_available_memory): Ditto.
7475 * value.h (read_value_memory): Rename the `offset' parameter to
7478 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7479 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * memrange.c (compare_mem_ranges): Mention sort order in
7483 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7484 * tracepoint.c (traceframe_available_memory): Extend comment to
7485 mention what happens to RESULT when the target does not support
7488 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7489 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7494 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7496 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7497 No longer handle NULL values.
7499 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7501 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7502 * value.c: Include "exceptions.h".
7503 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7505 * cp-abi.c: Include gdb_assert.h.
7506 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7507 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7509 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7510 parameters. No longer returns -1 on error.
7511 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7513 * cp-valprint.c: Include exceptions.h.
7514 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7515 the baseclass_offset. Handle unavailable base classes. Use
7516 val_print_invalid_address.
7517 * p-valprint.c: Include exceptions.h.
7518 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7519 when fetching the baseclass_offset. No longer expect
7520 baseclass_offset returning -1. Handle unavailable base classes.
7521 Use val_print_invalid_address.
7522 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7523 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7524 `embedded_offset' and `val' parameters. Adjust.
7525 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7526 parameter, and change its type to gdb_byte pointer. Add
7527 `embedded_offset' and `val' parameters. Adjust. No longer expect
7528 baseclass_offset returning -1.
7529 (value_dynamic_cast): Use value_contents_for_printing rather than
7530 value_contents. Adjust.
7531 (search_struct_field): No longer expect baseclass_offset returning
7533 (search_struct_method): If reading memory from the target is
7534 necessary, wrap it in a new value to pass to baseclass_offset. No
7535 longer expect baseclass_offset returning -1.
7536 (find_method_list): No longer expect baseclass_offset returning
7537 -1. Use value_contents_for_printing rather than value_contents.
7538 * valprint.c (val_print_invalid_address): New function.
7539 * valprint.h (val_print_invalid_address): Declare.
7540 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7541 and `val' parameters. No longer expect baseclass_offset returning
7543 * gnu-v2-abi.c: Include "exceptions.h".
7544 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7545 parameters. Handle unavailable memory. Recurse through
7546 gnuv2_baseclass_offset directly, rather than through
7547 baseclass_offset. No longer returns -1 on not found, instead
7549 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7550 `val' parameters. Adjust.
7552 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7554 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7555 almost but not quite adjacent.
7557 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7559 * value.h (value_entirely_available): Declare.
7560 * value.c (value_entirely_available): New function.
7561 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7562 real type if the pointer is unavailable.
7564 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7566 * valops.c (value_repeat): Use read_value_memory instead of
7569 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7571 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7572 * value.c (value_contents_copy_raw, value_contents_copy): New
7574 (value_primitive_field): Use value_contents_copy_raw instead of
7576 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7578 (value_array, value_slice): Ditto.
7579 * valarith.c (value_subscripted_rvalue): Use
7580 value_contents_copy_raw instead of memcpy.
7582 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7584 <unavailable> references.
7586 * valops.c (get_value_at): Use value_from_contents_and_address,
7587 avoiding read_memory.
7589 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7591 * c-valprint.c (c_val_print): Print a string with unavailable
7592 contents as an array.
7594 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7596 * value.h (unpack_bits_as_long): Delete declaration.
7597 (unpack_value_bits_as_long): Declare.
7598 (unpack_value_field_as_long): Declare.
7599 (value_field_bitfield): Declare.
7600 * value.c (unpack_bits_as_long): Rename to...
7601 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7602 value parameters. Return the extracted result in a new output
7603 parameter. If the value contents are unavailable, return false,
7604 otherwise return true.
7605 (unpack_value_bits_as_long): New.
7606 (unpack_field_as_long): Rename to...
7607 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7608 Add embedded_offset and value parameters. Return the extracted
7609 result in a new output parameter. If the value contents are
7610 unavailable, return false, otherwise return true.
7611 (unpack_value_field_as_long): New.
7612 (unpack_field_as_long_1): New.
7613 (unpack_field_as_long): Reimplement as wrapper around
7614 unpack_value_field_as_long_1.
7615 (value_field_bitfield): New function.
7616 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7617 unpack_value_bits_as_long. Mark the value as unavailable, if it
7619 * jv-valprint.c (java_print_value_fields): Use
7620 value_field_bitfield.
7621 * p-valprint.c (pascal_object_print_value_fields): Use
7622 value_field_bitfield.
7623 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7625 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7627 * value.c (get_internalvar_integer): Also return the int value of
7628 TYPE_CODE_INT INTERNALVAR_VALUE values.
7629 (set_internalvar): Don't special case TYPE_CODE_INT.
7631 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7633 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7634 INTERNALVAR_POINTER.
7636 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7637 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7638 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7640 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7642 * value.h (value_available_contents_eq): Declare.
7643 * value.c (find_first_range_overlap): New function.
7644 (value_available_contents_eq): New function.
7645 * valprint.c (val_print_array_elements): Use
7646 value_available_contents_eq.
7647 * ada-valprint.c (val_print_packed_array_elements): Use
7648 value_available_contents_eq.
7649 * jv-valprint.c (java_value_print): Use
7650 value_available_contents_eq.
7652 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7654 * target.c (target_read_live_memory): New function.
7655 (memory_xfer_live_readonly_partial): New.
7656 (memory_xfer_partial): If reading from a traceframe, fallback to
7657 reading unavailable read-only memory from read-only regions of
7659 * tracepoint.c (disconnect_tracing): Adjust.
7660 (set_current_traceframe): New, factored out from
7661 set_traceframe_number.
7662 (set_traceframe_number): Reimplement to only change the traceframe
7663 number on the GDB side.
7664 (do_restore_current_traceframe_cleanup): Adjust.
7665 (make_cleanup_restore_traceframe_number): New.
7666 (cur_traceframe_number): New global.
7667 (tfile_open): Set cur_traceframe_number to no traceframe.
7668 (set_tfile_traceframe): New function.
7669 (tfile_trace_find): If looking up a traceframe using any method
7670 other than by number, make sure the current tfile traceframe
7671 matches gdb's current traceframe. Update the current tfile
7672 traceframe if the lookup succeeded.
7673 (tfile_fetch_registers, tfile_xfer_partial)
7674 (tfile_get_trace_state_variable_value): Make sure the remote
7675 traceframe matches gdb's current traceframe.
7676 * remote.c (remote_traceframe_number): New global.
7677 (remote_open_1): Set it to -1.
7678 (set_remote_traceframe): New function.
7679 (remote_fetch_registers, remote_store_registers)
7680 (remote_xfer_memory, remote_xfer_partial)
7681 (remote_get_trace_state_variable_value): Make sure the remote
7682 traceframe matches gdb's current traceframe.
7683 (remote_trace_find): If looking up a traceframe using any method
7684 other than by number, make sure the current remote traceframe
7685 matches gdb's current traceframe. Update the current remote
7686 traceframe if the lookup succeeded.
7687 * infrun.c (fetch_inferior_event): Adjust.
7688 * tracepoint.h (set_current_traceframe): Declare.
7689 (get_traceframe_number, set_traceframe_number): Add describing
7692 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7694 Mark pieces of values as unavailable if the corresponding memory
7697 * valops.c: Include tracepoint.h.
7698 (value_fetch_lazy): Use read_value_memory.
7699 (read_value_memory): New.
7700 * value.h (read_value_memory): Declare.
7701 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7702 * exec.c (section_table_available_memory): New function.
7703 * exec.h (section_table_available_memory): Declare.
7705 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7707 * Makefile.in (SFILES): Add memrange.c.
7708 (HFILES_NO_SRCDIR): Add memrange.h.
7709 (COMMON_OBS): Add memrange.o.
7710 * memrange.c: New file.
7711 * memrange.h: New file.
7712 * tracepoint.c: Include memrange.h.
7713 (struct mem_range): Delete.
7714 (mem_range_s): Delete.
7715 (traceframe_available_memory): New function.
7716 * tracepoint.h (traceframe_available_memory): Declare.
7718 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7720 * target.h (struct traceframe_info): Forward declare.
7721 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7722 (struct target_ops) <to_traceframe_info>: New field.
7723 (target_traceframe_info): New.
7724 * target.c (update_current_target): Inherit and default
7726 * remote.c (PACKET_qXfer_traceframe_info): New.
7727 (remote_protocol_features): Register qXfer:traceframe-info:read.
7728 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7729 (remote_traceframe_info): New.
7730 (init_remote_ops): Install it.
7731 (_initialize_remote): Install "set/show remote traceframe-info"
7733 * tracepoint.h (parse_traceframe_info): Declare.
7734 * tracepoint.c (struct mem_range): New.
7735 (mem_range_s): New typedef.
7736 (struct traceframe_info): New.
7737 (traceframe_info): New global.
7738 (free_traceframe_info): New function.
7739 (clear_traceframe_info): New function.
7740 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7742 (build_traceframe_info): New function.
7743 (tfile_traceframe_info): New function.
7744 (init_tfile_ops): Install tfile_traceframe_info.
7745 (traceframe_info_start_memory, free_result): New functions.
7746 (memory_attributes, traceframe_info_elements): New globals.
7747 (parse_traceframe_info, get_traceframe_info): New functions.
7748 * features/traceframe-info.dtd: New file.
7749 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7751 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7753 Base support for <unavailable> value contents.
7755 * value.h (value_bytes_available): Declare.
7756 (mark_value_bytes_unavailable): Declare.
7757 * value.c (struct range): New struct.
7758 (range_s): New typedef.
7759 (ranges_overlap): New function.
7760 (range_lessthan): New function.
7761 (ranges_contain_p): New function.
7762 (struct value) <unavailable>: New field.
7763 (value_bytes_available): New function.
7764 (mark_value_bytes_unavailable): New function.
7765 (require_not_optimized_out): Constify parameter.
7766 (require_available): New function.
7767 (value_contents_all, value_contents): Require all bytes be
7769 (value_free): Free `unavailable'.
7770 (value_copy): Copy `unavailable'.
7771 * valprint.h (val_print_unavailable): Declare.
7772 * valprint.c (valprint_check_validity): Rename `offset' parameter
7773 to `embedded_offset'. If printing a scalar, check whether the
7774 value chunk is available.
7775 (val_print_unavailable): New.
7776 (val_print_scalar_formatted): Check whether the value is
7778 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7779 pretty-printing unavailable values.
7781 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7783 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7784 * c-typeprint.c (c_type_print_args): Update the function comment. New
7785 variable param_type, initialize it. Remove const/volatile qualifiers
7786 for language_cplus and !show_artificial. Use param_type.
7788 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7790 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7791 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7792 * symtab.h (struct symtab) <next>: Comment extension.
7794 2011-02-12 Yao Qi <yao@codesourcery.com>
7796 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7798 2011-02-11 Yao Qi <yao@codesourcery.com>
7800 * common/Makefile.in: Add copyright header.
7802 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7804 * infrun.c (proceed): Move switching out and in of tfind mode from
7806 (fetch_inferior_event): ... to here.
7808 2011-02-11 Yao Qi <yao@codesourcery.com>
7810 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7812 * configure.ac: Add common to sub dir.
7813 * configure: Regenerate.
7815 2011-02-11 Yao Qi <yao@codesourcery.com>
7819 * common/Makefile.in: New.
7820 * common/configure.ac: New.
7821 * common/aclocal.m4: New.
7822 * common/configure: Generate.
7824 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7826 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7827 side of the parenthesis.
7830 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7831 * vec.h (VEC_block_remove): Fix comment.
7833 2011-02-08 Michael Snyder <msnyder@vmware.com>
7835 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7837 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7839 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7840 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7843 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7846 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7848 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7849 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7851 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7853 * dwarf2read.c (read_subroutine_type): Set special calling
7854 convention flag for functions compiled by IBM XL C for OpenCL.
7855 * ppc-sysv-tdep.c: Include "dwarf2.h"
7856 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7858 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7859 IBM OpenCL vector types calling convention.
7860 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7861 (ppc_sysv_abi_broken_return_value): Likewise.
7862 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7863 types calling convention.
7864 (ppc64_sysv_abi_return_value): Likewise.
7865 * spu-tdep.c: Include "dwarf2.h"
7866 (spu_return_value): Implement IBM OpenCL vector types calling
7869 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7872 correct ABI for AltiVec vector arguments.
7874 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7876 * valprint.c (val_print): Extend comment.
7877 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7878 interface explanation to val_print.
7879 (ada_val_print_array): Adjust comment to current interface.
7880 (print_field_values): Adjust comment to current interface.
7881 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7882 explanation to val_print.
7883 * f-valprint.c (f_val_print): Ditto.
7884 * jv-valprint.c (java_val_print): Ditto.
7885 * m2-valprint.c (m2_val_print): Ditto.
7886 * p-valprint.c (pascal_val_print): Ditto.
7888 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7890 * breakpoint.c (parse_breakpoint_sals): Fix description.
7892 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7893 Oguz Kayral <oguzkayral@gmail.com>
7895 * python/py-inferior.c (python_on_normal_stop): New function.
7896 (python_on_resume): New function.
7897 (python_inferior_exit): New function.
7898 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7899 inferior_exit observers.
7900 * python/py-evtregistry.c: New file.
7901 * python/py-threadevent.c : New file.
7902 * python/py-event.c: New file.
7903 * python/py-evts.c: New file.
7904 * python/py-continueevent.c: New file.
7905 * python/py-bpevent.c: New file.
7906 * python/py-signalevent.c: New file.
7907 * python/py-exetiedevent.c: New file.
7908 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7909 Move struct breakpoint_object from here...
7910 * python/python-internal.h: ... to here.
7911 * python/py-event.h: New file.
7912 * python/py-events.h: New file.
7913 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7914 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7915 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7916 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7917 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7918 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7919 Add build rules for all the above.
7921 2011-02-04 Tom Tromey <tromey@redhat.com>
7923 * dwarf2read.c (dwarf2_section_empty_p): New function.
7924 (dwarf2_read_section): Use dwarf2_section_empty_p.
7925 (dwarf2_section_size): New function.
7926 (dwarf2_get_section_info): Unconditionally read section.
7927 (dwarf2_read_index): Use dwarf2_section_empty_p.
7928 (partial_read_comp_unit_head): Use dwarf2_section_size.
7929 (dwarf2_symbol_mark_computed): Likewise.
7931 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7933 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7935 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7937 * mips-linux-tdep.c: Include xml-syscall.h.
7938 (mips_linux_get_syscall_number): New function.
7939 (mips_linux_init_abi): Add calls to
7940 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7941 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7942 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7943 * syscalls/mips-n32-linux.xml: New file.
7944 * syscalls/mips-n64-linux.xml: New file.
7945 * syscalls/mips-o32-linux.xml: New file.
7947 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7949 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7950 Complain about inverted range entries.
7951 (dwarf2_record_block_ranges): Likewise.
7953 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7956 * breakpoint.c (update_watchpoint): Fix name of the
7957 update_global_location_list function.
7958 (print_one_breakpoint): Fix typo.
7959 (_initialize_breakpoint): Remove extra space in hbreak help
7961 * breakpoint.h (struct bp_location) <length>: Fix field
7964 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7966 * regcache.c (registers_changed_ptid): Don't explictly always
7967 clear `current_regcache'. Only clear current_thread_ptid and
7968 current_thread_arch when PTID matches. Only reinit the frame
7969 cache if PTID matches the current inferior_ptid. Move alloca(0)
7971 (registers_changed): ... here.
7973 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7975 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7976 starts with __stack_chk_guard as stack guard symbol.
7978 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7980 * disasm.c (compare_lines): Handle the end of sequence markers
7981 within the line table to better support disassembling over
7982 compilation unit boundaries.
7984 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7986 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7987 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7988 implementation even if no symbols are available.
7989 (thumb_analyze_prologue): Update call to skip_prologue_function.
7990 (arm_analyze_prologue): Likewise.
7992 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7994 * arm-tdep.c: Include "observer.h".
7995 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7996 (arm_exidx_data_key): New static variable.
7997 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7998 (struct arm_exidx_data): Likewise.
7999 (arm_exidx_data_free): New function.
8000 (arm_compare_exidx_entries): Likewise.
8001 (arm_obj_section_from_vma): Likewise.
8002 (arm_exidx_new_objfile): Likewise.
8003 (arm_find_exidx_entry): Likewise.
8004 (arm_exidx_fill_cache): Likewise.
8005 (arm_exidx_unwind_sniffer): Likewise.
8006 (arm_exidx_unwind): New global variable.
8007 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
8008 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
8009 observer. Register arm_exidx_data_key as objfile data.
8011 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
8013 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
8014 due to accessing uninitialized variable. Fix indentation.
8016 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8018 * c-valprint.c (c_value_print): When doing virtual base pointer
8019 adjustment, create a new value with adjusted contents rather than
8020 changing the contents of the value being printed (and getting it
8023 2011-02-02 Pedro Alves <pedro@codesourcery.com>
8025 * xml-support.c (xml_find_attribute): New.
8026 (xinclude_start_include): Use it.
8027 * xml-support.h (xml_find_attribute): Declare.
8028 * memory-map.c (memory_map_start_memory)
8029 (memory_map_start_property): Use xml_find_attribute.
8030 * osdata.c (osdata_start_osdata, osdata_start_column): Use
8032 * remote.c (start_thread): Use xml_find_attribute.
8033 * solib-target.c (library_list_start_segment)
8034 (library_list_start_section, library_list_start_library)
8035 (library_list_start_list): Use xml_find_attribute.
8036 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
8037 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
8038 (tdesc_start_field): Use xml_find_attribute.
8040 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
8042 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
8043 (BUILD_OCL_VTYPES): Update.
8045 2011-02-02 Joel Brobecker <brobecker@adacore.com>
8047 * configure.ac: Work around non-GNU sed limitation when computing
8048 python version number.
8049 * configure: Regenerate.
8051 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8053 Fix debug printing of TYPE_INSTANCE.
8054 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
8055 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
8057 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8059 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
8060 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
8061 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
8062 * ada-operator.inc: Rename the file to ...
8063 * ada-operator.def: ... here, wrap all the entries by macro OP.
8064 * expprint.c (op_name_standard): Remove all the entries. Include
8065 "std-operator.def" instead.
8066 * expression.h (enum exp_opcode): Include "std-operator.def" and
8067 "ada-operator.def". Move all the entries ...
8068 * std-operator.def: ... here, wrap all the entries by macro OP.
8070 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
8072 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
8073 * breakpoint.c (remove_jit_event_breakpoints): New function.
8074 * jit.c (jit_descriptor_addr): Delete.
8075 (registering_code): Delete.
8076 (clear_int): Delete.
8077 (jit_inferior_data): New variable.
8078 (struct jit_inferior_data): New type.
8079 (get_jit_inferior_data): New function.
8080 (jit_inferior_data_cleanup): New function.
8081 (jit_read_descriptor): Adjust.
8082 (jit_register_code): Adjust.
8083 (jit_breakpoint_re_set_internal): New function; move code here ...
8084 (jit_inferior_init): ... from here.
8085 (jit_breakpoint_re_set): Adjust.
8086 (jit_reset_inferior_data_and_breakpoints): New function.
8087 (jit_inferior_created_observer): Adjust.
8088 (jit_inferior_exit_hook): Adjust.
8089 (jit_executable_changed_observer): New function.
8090 (jit_event_handler): Adjust.
8091 (_initialize_jit): Adjust.
8093 2011-01-31 Michael Snyder <msnyder@vmware.com>
8095 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8098 2011-01-31 Tom Tromey <tromey@redhat.com>
8101 * python/python.c (execute_gdb_command): Call
8102 prevent_dont_repeat.
8103 * top.c (suppress_dont_repeat): New global.
8104 (dont_repeat): Use it.
8105 (prevent_dont_repeat): New function.
8106 * command.h (prevent_dont_repeat): Declare.
8108 2011-01-31 Tom Tromey <tromey@redhat.com>
8110 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8111 * python/py-breakpoint.c (bppy_set_silent): Use
8112 breakpoint_set_silent.
8113 (bppy_set_thread): Use breakpoint_set_thread.
8114 (bppy_set_task): Use breakpoint_set_task.
8115 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8116 (breakpoint_set_task): Declare.
8117 (make_breakpoint_silent): Remove.
8118 * breakpoint.c (breakpoint_set_silent): New function.
8119 (breakpoint_set_thread): Likewise.
8120 (breakpoint_set_task): Likewise.
8121 (make_breakpoint_silent): Remove.
8123 2011-01-31 Tom Tromey <tromey@redhat.com>
8125 * breakpoint.h (user_breakpoint_p): Declare.
8126 * breakpoint.c (user_breakpoint_p): New function.
8127 (breakpoint_1): Use it.
8128 (save_breakpoints): Likewise.
8130 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8132 * configure.ac: Add handling of Python distribution on Windows.
8133 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8134 sysconfig variables are not defined, then do not use them.
8135 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8136 instead. On Windows, return all paths using forward-slashes
8137 rather than backslashes.
8139 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8141 * configure.ac: Remove fallback behavior for building
8142 against Python. Remove tweaking of Python include path.
8143 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8144 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8145 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8146 Always restore CPPFLAGS and LIBS after linking test.
8147 * configure: Regenerated.
8148 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8149 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8150 * python/python-internal.h: Adjust includes of Python .h files.
8152 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8154 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8157 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8159 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8162 2011-01-31 Yao Qi <yao@codesourcery.com>
8164 * arm-linux-nat.c: Update calls to regcache_register_status
8165 instead of regcache_valid_p.
8166 * aix-thread.c: Likewise.
8167 * i386gnu-nat.c: Likewise.
8169 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8172 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8173 touching TYPE_FIELD_ARTIFICIAL.
8175 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8177 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8180 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8182 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8183 selected, don't try iterating over the traceframe's blocks.
8184 (tfile_has_stack): If there's no traceframe selected, then there's
8186 (tfile_has_registers): If there's no traceframe selected, then
8187 there's no registers.
8189 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8191 * target.c (memory_xfer_partial): No need to restore shadows if we
8192 haven't read anything.
8194 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8196 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8197 and val_print_scalar_formatted.
8199 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8201 * tracepoint.c (tfile_read): New.
8202 (tfile_open): Use it.
8203 (tfile_get_traceframe_address): Use it.
8204 (tfile_trace_find): Use it.
8205 (walk_blocks_callback_func): New typedef.
8206 (match_blocktype): New function.
8207 (traceframe_walk_blocks): New function.
8208 (traceframe_find_block_type): New function.
8209 (tfile_fetch_registers, tfile_xfer_partial)
8210 (tfile_get_trace_state_variable_value): Use
8211 traceframe_find_block_type and tfile_read.
8213 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8215 * remote-mips.c: Add internationalization mark ups. Remove
8216 trailing \n from already marked up strings.
8218 2011-01-26 Tom Tromey <tromey@redhat.com>
8220 * python/py-prettyprint.c (print_string_repr): Clear
8221 'addressprint' option when calling val_print_string.
8222 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8223 option when calling val_print_string.
8225 2011-01-26 Tom Tromey <tromey@redhat.com>
8227 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8229 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8231 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8232 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8233 (gdb_py_long_as_ulongest): New defines.
8234 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8235 (gdb_py_int_as_long): Declare.
8236 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8237 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8238 (valpy_long): Add comment.
8239 * python/py-utils.c (get_addr_from_python): Use
8240 gdb_py_long_as_ulongest. Handle overflow properly.
8241 (gdb_py_object_from_longest): New function.
8242 (gdb_py_object_from_ulongest): Likewise.
8243 (gdb_py_int_as_long): Likewise.
8244 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8245 * python/py-symtab.c (salpy_get_pc): Use
8246 gdb_py_long_from_ulongest.
8247 (salpy_get_line): Use PyInt_FromLong.
8248 * python/py-param.c (set_parameter_value): Use
8250 * python/py-lazy-string.c (stpy_get_address): Use
8251 gdb_py_long_from_ulongest.
8252 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8253 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8254 * python/py-breakpoint.c (bppy_set_thread): Use
8256 (bppy_set_task): Likewise.
8257 (bppy_set_ignore_count): Likewise.
8258 (bppy_set_hit_count): Likewise.
8259 * python/py-block.c (blpy_get_start): Use
8260 gdb_py_object_from_ulongest.
8261 (blpy_get_end): Likewise.
8262 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8264 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8267 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8268 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8269 equality test for objfile, initialize addr_low if needed.
8271 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8273 * tui/tui-regs.c (tui_register_format): Remove dead code.
8275 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8277 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8278 instead of print_scalar_formatted.
8279 (print_scalar_formatted): Don't handle 's' format strings here,
8280 and add an assertion that we never see such format here.
8281 * valprint.h (val_print_scalar_formatted): Declare.
8282 * valprint.c (val_print_scalar_formatted): New.
8283 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8284 instead of print_scalar_formatted.
8285 * jv-valprint.c (java_val_print): Ditto.
8286 * p-valprint.c (pascal_val_print): Ditto.
8287 * ada-valprint.c (ada_val_print_1): Ditto.
8288 * f-valprint.c (f_val_print): Ditto.
8289 * infcmd.c (registers_info): Ditto.
8290 * m2-valprint.c (m2_val_print): Ditto.
8292 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8294 * m2-valprint.c (print_unbounded_array): Pass
8295 value_contents_for_printing rather than value_contents, to
8296 m2_print_array_contents. Also pass in the value.
8298 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8300 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8301 (save_gdb_index_command): Switch to .gdb_index version 4.
8303 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8305 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8306 than frame_register, and always pass a valid value to val_print.
8308 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8310 Centralize printing "<optimized out>".
8312 * valprint.h (val_print_optimized_out): Declare.
8313 * cp-valprint.c (cp_print_value_fields): Use
8314 val_print_optimized_out.
8315 * jv-valprint.c (java_print_value_fields): Ditto.
8316 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8317 * printcmd.c (print_formatted): Ditto.
8318 * valprint.c (valprint_check_validity): Ditto.
8319 (value_check_printable): Ditto.
8320 (val_print_optimized_out): New.
8322 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8324 * infcmd.c (default_print_registers_info): Allocate values so to
8325 never pass a NULL value to val_print.
8327 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8329 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8330 boolean. Make sure to always pass a value that matches the
8331 contents buffer to callees. Preserve `address' for following
8333 * value.c (value_contents_for_printing_const): New.
8334 (value_address): Constify value argument.
8335 * value.h (value_contents_for_printing_const): Declare.
8336 (value_address): Constify value argument.
8338 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8340 * regcache.c (struct regcache_descr): Rename
8341 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8342 and sizeof_cooked_register_valid_p to
8343 sizeof_cooked_register_status.
8344 (init_regcache_descr): Adjust.
8345 (struct regcache): Rename register_valid_p field to
8347 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8348 (do_cooked_read): Adjust.
8349 (regcache_valid_p): Rename to ...
8350 (regcache_register_status): ... this. Adjust.
8351 (regcache_invalidate): Adjust.
8352 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8354 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8355 as unavailable, not valid.
8356 (regcache_dump): Adjust.
8357 * regcache.h (enum register_status): New.
8358 (regcache_register_status): Declare.
8359 (regcache_invalidate): Delete declaration.
8360 * corelow.c (get_core_registers): Adjust.
8361 * tracepoint.c (tfile_fetch_registers): Adjust.
8362 * trad-frame.c (REG_VALUE): Rename to ...
8363 (TF_REG_VALUE): ... this.
8364 (REG_UNKNOWN): Rename to ...
8365 (TF_REG_UNKNOWN): ... this.
8366 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8367 * mi/mi-main.c (register_changed_p): Adjust.
8369 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8371 * regcache.c (struct regcache_descr): Remove outdated comment.
8372 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8374 (regcache_xmalloc): Rename to ...
8375 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8376 Allocate the regcache type accordingly.
8377 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8378 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8379 cooked registers, not raw.
8380 (regcache_dup_no_passthrough): Delete.
8381 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8382 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8383 mention obsolete write_register_bytes.
8384 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8386 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8388 Stop remote_read_bytes from handling partial reads itself.
8390 * remote-fileio.c: Include target.h.
8391 (remote_fileio_write_bytes): Delete.
8392 (remote_fileio_func_open, remote_fileio_func_write)
8393 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8395 (remote_fileio_func_stat): Use target_read_memory and
8396 target_write_memory.
8397 (remote_fileio_func_gettimeofday): Use target_write_memory.
8398 (remote_fileio_func_system): Use target_read_memory.
8399 * remote.c (remote_write_bytes): Make it static.
8400 (remote_read_bytes): Don't handle partial reads here.
8401 * remote.h (remote_read_bytes): Delete declaration.
8403 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8405 Simplify XML parsing a bit.
8407 * xml-support.h (gdb_xml_parse_quick): Declare.
8408 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8409 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8411 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8412 gdb_xml_create_parser_and_cleanup_1.
8413 (gdb_xml_parse_quick): New.
8414 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8415 * osdata.c (osdata_parse): Ditto.
8416 * remote.c (remote_threads_info): Ditto.
8417 * solib-target.c (solib_target_parse_libraries): Ditto.
8418 * xml-syscall.c (syscall_parse_xml): Ditto.
8419 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8421 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8423 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8424 with remote-mips.o added to gdb_target_obs.
8425 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8427 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8429 * ada-valprint.c (val_print_packed_array_elements): Pass the
8430 correct struct value to val_print.
8431 (ada_val_print_1): Ditto.
8433 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8435 Don't lose embedded_offset in printing routines throughout.
8437 * valprint.h (val_print_array_elements): Change prototype.
8438 * valprint.c (val_print_array_elements): Add `embedded_offset'
8439 parameter, and adjust to pass it down to val_print, while passing
8440 `valaddr' or `address' unmodified. Take embedded_offset into
8441 account when checking repetitions.
8442 * c-valprint.c (c_val_print): Pass embedded_offset to
8443 val_print_array_elements instead of adjusting `valaddr' and
8445 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8446 embedded_offset to val_print_array_elements instead of adjusting
8448 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8449 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8450 val_print_array_elements and pascal_object_print_value_fields
8451 instead of adjusting `valaddr'.
8452 (pascal_object_print_value_fields): Add `offset' parameter, and
8454 (pascal_object_print_value): Add `offset' parameter, and adjust to
8456 (pascal_object_print_static_field): Use
8457 value_contents_for_printing/value_embedded_offset, rather than
8459 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8460 parameter, and adjust to use it. Use
8461 value_contents_for_printing/value_embedded_offset, rather than
8463 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8464 (ada_val_print_array): Add `offset' parameter, and adjust to use
8466 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8467 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8468 Instead work with offsets. Use
8469 value_contents_for_printing/value_embedded_offset, rather than
8470 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8471 and use value_from_pointer to extract a target pointer, rather
8472 than value_from_longest.
8473 (print_variant_part): Add `offset' parameter. Replace
8474 `outer_valaddr' parameter by a new `outer_offset' parameter.
8475 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8476 (ada_value_print): Use
8477 value_contents_for_printing/value_embedded_offset, rather than
8479 (print_record): Add `offset' parameter, and adjust to pass it
8481 (print_field_values): Add `offset' parameter. Replace
8482 `outer_valaddr' parameter by a new `outer_offset' parameter.
8483 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8484 Use value_contents_for_printing/value_embedded_offset, rather than
8486 * d-valprint.c (dynamic_array_type): Use
8487 value_contents_for_printing/value_embedded_offset, rather than
8489 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8490 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8491 (java_print_value_fields): Take `offset' into account. Don't
8492 re-adjust `valaddr'. Instead pass down adjusted offsets.
8493 (java_val_print): Take `embedded_offset' into account. Pass it to
8494 java_print_value_fields.
8495 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8496 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8497 down adjusted offsets.
8498 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8499 (f_val_print): Take `embedded_offset' into account.
8501 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8503 * inflow.c: Include "gdbcmd.h".
8504 (interactive_mode): New static global, moved here from top.c.
8505 (show_interactive_mode): New function, moved here from top.c.
8506 use gdb_has_a_terminal instead of input_from_terminal_p to
8507 determine the current mode.
8508 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8510 (_initialize_inflow): Add the "set/show interactive-mode"
8511 commands. Moved here from top.c, after having adjusted slightly
8513 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8515 (input_from_terminal_p): Remove handling of "interactive-mode"
8516 setting, moved to infow.c.
8517 (init_main): Remove creation of the "set/show interactive-mode"
8518 commands, moved to inflow.c.
8520 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8522 * NEWS: Add entry for native ia64-hpux support.
8524 2011-01-19 Tom Tromey <tromey@redhat.com>
8527 * thread.c (free_thread): Free 'name'.
8528 (print_thread_info): Emit thread name. Change CLI output.
8529 (thread_name_command): New function.
8530 (do_captured_thread_select): Emit newline.
8531 (_initialize_thread): Register 'thread name' command.
8532 * target.h (struct target_ops) <to_thread_name>: New field.
8533 (target_thread_name): New macro.
8534 * target.c (update_current_target): Handle to_thread_name.
8535 * python/py-infthread.c (thpy_get_name): New function.
8536 (thpy_set_name): Likewise.
8537 (thread_object_getset): Add "name".
8538 * linux-nat.c (linux_nat_thread_name): New function.
8539 (linux_nat_add_target): Set to_thread_name.
8540 * gdbthread.h (struct thread_info) <name>: New field.
8542 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8544 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8545 (ada_val_print_1): Likewise.
8547 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8549 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8550 upper limit address is not greater than the function end address
8551 when the upper limit could not be computed using the debugging
8554 2011-01-17 Tom Tromey <tromey@redhat.com>
8556 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8558 * utils.c: Include gdb_regex.h.
8559 (do_regfree_cleanup): New function.
8560 (make_regfree_cleanup): Likewise.
8561 (get_regcomp_error): Likewise.
8562 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8564 2011-01-17 Tom Tromey <tromey@redhat.com>
8566 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8569 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8571 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8572 for internal variables.
8573 (last_was_structop): New static variable.
8574 (COMPLETE): New token.
8575 (field_exp): New rule to group all '.' suffix handling.
8576 Add mark_struct_expression calls when approriate to be able
8577 to correctly find fields for completion.
8578 (yylex): Adapt to handle field completion and set INTVAR when
8581 2011-01-14 Yao Qi <yao@codesourcery.com>
8583 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8584 save_reggroup, restore_reggroup and all_reggroup.
8586 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8588 * ada-valprint. (ada_printchar): Use the correct type length
8589 in call to ada_emit_char.
8590 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8592 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8594 * solib-som.h (hpux_major_release): Declare variable here.
8595 * solib-som.c: Remove <sys/utsname.h> header.
8596 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8597 (hpux_major_release): Make global, change default value to
8598 DEFAULT_HPUX_MAJOR_RELEASE.
8599 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8600 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8601 Add "solib-som.h" header.
8602 (set_hpux_major_release): New function.
8603 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8605 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8607 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8609 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8611 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8612 new-line at end of warning message.
8613 (ia64_hpux_store_register): Remove trailing new-line at end of
8615 * ia64-hpux-tdep.c: Rephrase comment.
8616 * solib-ia64-hpux.c (struct dld_info): Change type of field
8617 dld_flags from "long long" to ULONGEST.
8619 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8621 * target.h (deprecated_child_ops): Delete declaration.
8622 * target.c (deprecated_child_ops): Delete definition.
8624 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8626 * Makefile.in (hpux-thread.o): Delete rule.
8627 * configure.ac: Don't check for HPUX DCE threads support.
8628 * configure, config.in: Regenerate.
8629 * hppa-hpux-nat.c (child_suppress_run): Delete.
8630 (hppa_hpux_child_can_run): Delete.
8631 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8632 * hpux-thread.c: Delete.
8634 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8636 * hpux-thread.c (hpux_pid_to_str): Delete.
8638 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8640 * ada-valprint.c (ada_emit_char): Remove strange code.
8641 Check that c is <= UCHAR_MAX before passing it to isascii.
8642 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8644 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8646 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8647 to the case where instream is stdin.
8649 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8651 * ia64-tdep.h (struct regcache): Forward declare.
8652 (struct ia64_infcall_ops): New struct type.
8653 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8655 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8656 Renames ia64_find_global_pointer.
8657 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8658 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8659 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8661 (ia64_infcall_ops): New static global constant.
8662 (ia64_gdbarch_init): Set tdep->infcall_ops.
8663 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8664 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8665 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8666 (ia64_hpux_dummy_code): New static global constant.
8667 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8668 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8669 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8671 (ia64_hpux_infcall_ops): New static global constant.
8672 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8673 for inferior function calls to work properly on ia64-hpux.
8675 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8677 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8678 * ia64-tdep.h (struct frame_info): forward declaration.
8679 (struct gdbarch_tdep): Add field size_of_register_frame.
8680 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8681 to determine the size of the register frame.
8682 (ia64_size_of_register_frame): New function.
8683 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8684 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8685 (IA64_HPUX_UREG_REASON): New macro.
8686 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8688 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8689 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8690 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8693 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8695 Add support for ia64-hpux.
8696 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8697 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8699 * configure.host: Add handling for ia64-hpux hosts. Add associated
8701 * configure.tgt: Add handling for ia64-hpux targets.
8702 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8703 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8704 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8706 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8708 [ttrace] Compute thread list immediately after attach.
8709 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8711 (inf_ttrace_attach): Use it.
8713 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8715 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8716 if we could not determine the frame's function address. Instead,
8717 use the frame's PC, and then continue.
8719 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8721 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8722 not already defined.
8724 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8726 * ia64-tdep.c (ia64_struct_type_p): New function.
8727 (ia64_extract_return_value): Handle integral values that are
8728 less than 8 bytes long.
8729 (ia64_push_dummy_call): Likewise.
8731 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8733 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8734 floatformat_ia64_ext.
8735 (floatformat_ia64_ext_big): New static const.
8736 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8738 2011-01-12 Tom Tromey <tromey@redhat.com>
8740 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8742 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8743 (mi_cmd_thread_list_ids): Likewise.
8744 (mi_cmd_data_list_changed_registers): Likewise.
8745 (mi_cmd_data_list_register_values): Likewise.
8746 (mi_cmd_data_write_register_values): Likewise.
8747 (mi_cmd_data_evaluate_expression): Likewise.
8748 (mi_cmd_data_read_memory): Likewise.
8749 (mi_cmd_data_read_memory_bytes): Likewise.
8750 (mi_cmd_data_write_memory): Likewise.
8751 (mi_cmd_enable_timings): Likewise.
8752 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8753 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8754 (mi_cmd_var_delete): Likewise.
8755 (mi_cmd_var_set_format): Likewise.
8756 (mi_cmd_var_show_format): Likewise.
8757 (mi_cmd_var_info_num_children): Likewise.
8758 (mi_cmd_var_list_children): Likewise.
8759 (mi_cmd_var_info_type): Likewise.
8760 (mi_cmd_var_info_expression): Likewise.
8761 (mi_cmd_var_show_attributes): Likewise.
8762 (mi_cmd_var_assign): Likewise.
8763 (mi_cmd_var_update): Likewise.
8764 (mi_cmd_enable_pretty_printing): Likewise.
8765 (mi_cmd_var_set_update_range): Likewise.
8766 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8768 (mi_cmd_target_file_put): Likewise.
8769 (mi_cmd_target_file_delete): Likewise.
8770 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8772 (mi_cmd_stack_info_depth): Likewise.
8773 (mi_cmd_stack_list_locals): Likewise.
8774 (mi_cmd_stack_list_args): Likewise.
8775 (mi_cmd_stack_select_frame): Likewise.
8776 (mi_cmd_stack_select_frame): Likewise.
8777 (mi_cmd_stack_info_frame): Likewise.
8778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8780 (mi_cmd_file_list_exec_source_files): Likewise.
8781 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8782 (mi_cmd_env_cd): Likewise.
8783 (mi_cmd_env_path): Likewise.
8784 (mi_cmd_env_dir): Likewise.
8785 (mi_cmd_inferior_tty_show): Likewise.
8786 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8787 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8788 (mi_cmd_break_watch): Likewise.
8790 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8792 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8793 (ppc_linux_insert_hw_breakpoint): Likewise.
8794 (ppc_linux_remove_hw_breakpoint): Likewise.
8795 (ppc_linux_insert_watchpoint): Likewise.
8797 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8798 Jan Kratochvil <jan.kratochvil@redhat.com>
8800 PR fortran/11104 and DWARF unbound arrays detection.
8801 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8802 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8803 unspecified upper bound.
8804 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8805 variables array_size_array, tmp_type and offset_item. New variable
8806 array. Remove call to f77_get_upperbound. New variables array_type
8807 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8808 the final call to deprecated_set_value_type.
8810 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8812 Make value allocations more lazy.
8813 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8814 instead of allocate_value and set_value_lazy when possible.
8815 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8816 instead of allocate_value and set_value_lazy.
8817 * findvar.c (value_of_register_lazy): Likewise.
8818 (read_var_value): Remove V preallocation, call just check_typedef in
8819 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8820 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8821 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8822 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8823 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8824 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8825 the end, remove set_value_lazy there.
8826 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8827 instead of allocate_value and set_value_lazy when possible.
8828 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8829 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8830 of allocate_value and set_value_lazy.
8831 (value_from_contents_and_address): Use allocate_value_lazy instead of
8832 allocate_value and set_value_lazy when possible.
8834 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8836 * disasm.c (dump_insns): Support dumping opcodes for MI.
8837 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8838 dumping of instruction opcodes.
8840 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8842 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8845 2011-01-11 Tom Tromey <tromey@redhat.com>
8847 * thread.c (do_captured_thread_select): Emit newline before
8850 2011-01-11 Michael Snyder <msnyder@vmware.com>
8852 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8853 * score-tdep.c: Ditto.
8854 * score-tdep.h: Ditto.
8855 * ser-base.c: Ditto.
8856 * ser-go32.c: Ditto.
8859 * ser-mingw.c: Ditto.
8860 * ser-pipe.c: Ditto.
8862 * ser-unix.c: Ditto.
8863 * sh64-tdep.c: Ditto.
8864 * shnbsd-nat.c: Ditto.
8868 * solib-darwin.c: Ditto.
8869 * solib-frv.c: Ditto.
8871 * solib-irix.c: Ditto.
8872 * solib-osf.c: Ditto.
8873 * solib-pa64.c: Ditto.
8874 * solib-som.c: Ditto.
8875 * solib-spu.c: Ditto.
8876 * solib-sunos.c: Ditto.
8877 * solib-svr4.c: Ditto.
8879 * sol-thread.c: Ditto.
8883 * sparc64-linux-tdep.c: Ditto.
8884 * sparc64-tdep.c: Ditto.
8885 * sparc-linux-nat.c: Ditto.
8886 * sparc-linux-tdep.c: Ditto.
8887 * sparc-sol2-nat.c: Ditto.
8888 * sparc-sol2-tdep.c: Ditto.
8889 * sparc-tdep.c: Ditto.
8890 * sparc-tdep.h: Ditto.
8891 * spu-tdep.c: Ditto.
8892 * stabsread.c: Ditto.
8893 * stabsread.h: Ditto.
8901 * target-descriptions.c: Ditto.
8902 * target-descriptions.h: Ditto.
8904 * target-memory.c: Ditto.
8905 * terminal.h: Ditto.
8908 * tracepoint.c: Ditto.
8909 * tracepoint.h: Ditto.
8910 * trad-frame.h: Ditto.
8911 * typeprint.c: Ditto.
8913 2011-01-11 Michael Snyder <msnyder@vmware.com>
8915 * ui-file.c: Comment cleanup, mostly periods and spaces.
8920 * v850-tdep.c: Ditto.
8921 * valarith.c: Ditto.
8923 * valprint.c: Ditto.
8924 * valprint.h: Ditto.
8929 * vax-tdep.c: Ditto.
8933 * windows-nat.c: Ditto.
8934 * windows-tdep.c: Ditto.
8935 * xcoffread.c: Ditto.
8936 * xcoffsolib.c: Ditto.
8937 * xml-support.c: Ditto.
8938 * xstormy16-tdep.c: Ditto.
8939 * xtensa-tdep.c: Ditto.
8940 * xtensa-tdep.h: Ditto.
8942 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8944 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8945 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8947 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8948 Thiago Jung Bauermann <bauerman@br.ibm.com>
8950 Implement support for PowerPC BookE ranged watchpoints.
8952 (struct breakpoint_ops) <resources_needed>: New method.
8953 Initialize to NULL in all existing breakpoint_ops instances.
8954 (struct breakpoint) <exact>: New field.
8955 (target_exact_watchpoints): Declare external global.
8956 * breakpoint.c (target_exact_watchpoints): New global flag.
8957 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8958 b->enable_state to bp_enabled before calling
8959 hw_watchpoint_used_count.
8960 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8961 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8963 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8964 if the watchpoint is exact.
8965 (resources_needed_watchpoint): New function.
8966 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8967 (watch_command_1): Set b->exact if the user asked for an exact
8968 watchpoint and one can be set.
8969 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8970 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8971 the user asks for an exact watchpoint and one can be set. Return
8972 number of needed debug registers to watch the expression.
8973 * gdbtypes.c (is_scalar_type): New function, based on
8974 valprint.c:scalar_type_p.
8975 (is_scalar_type_recursive): New function.
8976 * gdbtypes.h (is_scalar_type_recursive): Declare.
8977 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8978 handle regions when ranged watchpoints are available.
8979 (create_watchpoint_request): New function.
8980 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8981 create_watchpoint_request.
8982 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8983 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8984 `set powerpc' and `show powerpc' commands.
8985 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8986 Mention documentation comment in the target macro.
8987 (target_region_ok_for_hw_watchpoint): Document return value.
8989 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8991 * breakpoint.c (update_watchpoint): Decide on using a software or
8992 hardware watchpoint after the bp_locations are created.
8994 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8996 Convert hardware watchpoints to use breakpoint_ops.
8997 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8998 <insert_location>: ... this. Return int instead of void.
8999 Accept pointer to struct bp_location instead of pointer to
9000 struct breakpoint. Adapt all implementations.
9001 (breakpoint_ops) <remove>: Rename to...
9002 <remove_location>: ... this. Accept pointer to struct bp_location
9003 instead of pointer to struct breakpoint. Adapt all implementations.
9004 * breakpoint.c (insert_catchpoint): Delete function.
9005 (insert_bp_location): Call the watchpoint or catchpoint's
9006 breakpoint_ops.insert method.
9007 (remove_breakpoint_1): Call the watchpoint or catchpoint's
9008 breakpoint_ops.remove method.
9009 (insert_watchpoint, remove_watchpoint): New functions.
9010 (watchpoint_breakpoint_ops): New structure.
9011 (watch_command_1): Initialize the OPS field.
9012 * inf-child.c (inf_child_insert_fork_catchpoint)
9013 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
9014 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
9015 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
9017 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
9018 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
9019 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
9020 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
9021 * target.c (update_current_target): Change default implementation of
9022 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
9023 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
9024 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
9025 to_set_syscall_catchpoint to return_one.
9026 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
9027 (debug_to_insert_exec_catchpoint): Report return value.
9028 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
9029 (to_insert_exec_catchpoint): Change declaration to return int instead
9032 2011-01-11 Michael Snyder <msnyder@vmware.com>
9034 * arm-tdep.c: Internationalization.
9037 * fork-child.c: Ditto.
9038 * nto-procfs.c: Ditto.
9039 * ppc-sysv-tdep.c: Ditto.
9041 * remote-mips.c: Ditto.
9043 * rs6000-nat.c: Ditto.
9044 * rs6000-tdep.c: Ditto.
9048 * xml-support.c: Ditto.
9049 * mi/mi-cmd-break.c: Ditto.
9050 * mi/mi-cmd-var.c: Ditto.
9051 * mi/mi-interp.c: Ditto.
9052 * mi/mi-main.c: Ditto.
9054 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
9056 * remote-sim.c (gdbsim_store_register): Update API to
9057 sim_store_register to check more error conditions.
9059 2011-01-10 Michael Snyder <msnyder@vmware.com>
9061 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
9062 * nto-tdep.c: Ditto.
9063 * nto-tdep.h: Ditto.
9064 * objc-exp.y: Ditto.
9065 * objc-lang.c: Ditto.
9066 * objfiles.c: Ditto.
9067 * objfiles.h: Ditto.
9068 * observer.c: Ditto.
9069 * opencl-lang.c: Ditto.
9072 * parser-defs.h: Ditto.
9075 * posix-hdep.c: Ditto.
9076 * ppcbug-rom.c: Ditto.
9077 * ppc-linux-nat.c: Ditto.
9078 * ppc-linux-tdep.c: Ditto.
9079 * ppc-linux-tdep.h: Ditto.
9080 * ppcnbsd-tdep.c: Ditto.
9081 * ppcobsd-tdep.c: Ditto.
9082 * ppcobsd-tdep.h: Ditto.
9083 * ppc-sysv-tdep.c: Ditto.
9084 * ppc-tdep.h: Ditto.
9085 * printcmd.c: Ditto.
9086 * proc-abi.c: Ditto.
9087 * proc-flags.c: Ditto.
9089 * proc-utils.h: Ditto.
9090 * progspace.h: Ditto.
9091 * prologue-value.c: Ditto.
9092 * prologue-value.h: Ditto.
9093 * psympriv.h: Ditto.
9095 * p-typeprint.c: Ditto.
9096 * p-valprint.c: Ditto.
9097 * ravenscar-sparc-thread.c: Ditto.
9098 * ravenscar-thread.c: Ditto.
9099 * ravenscar-thread.h: Ditto.
9101 * regcache.c: Ditto.
9102 * regcache.h: Ditto.
9104 * remote-fileio.c: Ditto.
9105 * remote-fileio.h: Ditto.
9107 * remote-m32r-sdi.c: Ditto.
9108 * remote-mips.c: Ditto.
9109 * remote-sim.c: Ditto.
9110 * rs6000-aix-tdep.c: Ditto.
9111 * rs6000-nat.c: Ditto.
9112 * rs6000-tdep.c: Ditto.
9114 2011-01-10 Michael Snyder <msnyder@vmware.com>
9116 * charset.c (validate): Internationalization.
9117 * coffread.c (read_one_sym): Ditto.
9118 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9119 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9120 * inflow.c (new_tty): Ditto.
9121 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9122 * m32c-tdep.c (m32c_return_value): Ditto.
9123 * mep-tdep.c (mep_store_return_value): Ditto.
9124 * score-tdep.c (score7_fetch_insn): Ditto.
9125 * ser-mingw.c (pipe_windows_open): Ditto.
9126 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9127 * spu-tdep.c (spu_register_type): Ditto.
9128 * tracepoint.c (trace_find_command): Ditto.
9129 * valarith.c (value_pos): Ditto.
9131 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9133 * ada-valprint.c (printstr): Minor comment reformatting.
9135 2011-01-08 Michael Snyder <msnyder@vmware.com>
9137 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9140 2011-01-08 Michael Snyder <msnyder@vmware.com>
9142 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9143 * hppa-hpux-tdep.c: Ditto.
9144 * hppa-linux-nat.c: Ditto.
9145 * hppa-linux-tdep.c: Ditto.
9146 * hppanbsd-tdep.c: Ditto.
9147 * hppa-tdep.c: Ditto.
9148 * hppa-tdep.h: Ditto.
9149 * hpux-thread.c: Ditto.
9150 * i386-cygwin-tdep.c: Ditto.
9151 * i386-darwin-nat.c: Ditto.
9152 * i386gnu-nat.c: Ditto.
9153 * i386-linux-nat.c: Ditto.
9154 * i386-linux-tdep.c: Ditto.
9155 * i386-nat.c: Ditto.
9156 * i386-nat.h: Ditto.
9157 * i386nbsd-tdep.c: Ditto.
9158 * i386-sol2-nat.c: Ditto.
9159 * i386-stub.c: Ditto.
9160 * i386-tdep.c: Ditto.
9161 * i386-tdep.h: Ditto.
9162 * i387-tdep.c: Ditto.
9163 * ia64-linux-nat.c: Ditto.
9164 * ia64-linux-tdep.c: Ditto.
9165 * ia64-tdep.c: Ditto.
9169 * inferior.c: Ditto.
9170 * inferior.h: Ditto.
9176 * iq2000-tdep.c: Ditto.
9177 * irix5-nat.c: Ditto.
9183 * jv-typeprint.c: Ditto.
9184 * jv-valprint.c: Ditto.
9185 * language.c: Ditto.
9186 * language.h: Ditto.
9187 * linespec.c: Ditto.
9188 * linux-fork.c: Ditto.
9189 * linux-nat.c: Ditto.
9190 * linux-thread-db.c: Ditto.
9191 * lm32-tdep.c: Ditto.
9193 2011-01-08 Michael Snyder <msnyder@vmware.com>
9195 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9197 * m2-typeprint.c: Ditto.
9198 * m2-valprint.c: Ditto.
9199 * m32c-tdep.c: Ditto.
9200 * m32r-linux-nat.c: Ditto.
9201 * m32r-rom.c: Ditto.
9202 * m32r-tdep.c: Ditto.
9203 * m32r-tdep.h: Ditto.
9204 * m68hc11-tdep.c: Ditto.
9205 * m58klinux-nat.c: Ditto.
9206 * m68k-tdep.c: Ditto.
9207 * m88k-tdep.c: Ditto.
9208 * m88k-tdep.h: Ditto.
9209 * machoread.c: Ditto.
9210 * macrocmd.c: Ditto.
9211 * macroexp.c: Ditto.
9212 * macrotab.c: Ditto.
9215 * mdebugread.c: Ditto.
9216 * mdebugread.h: Ditto.
9219 * memory-map.h: Ditto.
9220 * mep-tdep.c: Ditto.
9221 * microblaze-rom.c: Ditto.
9222 * microblaze-tdep.c: Ditto.
9224 * mips-irix-tdep.c: Ditto.
9225 * mips-linux-nat.c: Ditto.
9226 * mips-linux-tdep.c: Ditto.
9227 * mips-linux-tdep.h: Ditto.
9228 * mipsnbsd-nat.c: Ditto.
9229 * mipsnbsd-tdep.c: Ditto.
9230 * mipsread.c: Ditto.
9231 * mips-tdep.c: Ditto.
9232 * mips-tdep.h: Ditto.
9233 * mn10300-linux-tdep.c: Ditto.
9234 * mn10300-tdep.c: Ditto.
9235 * mn10300-tdep.h: Ditto.
9238 * moxie-tdep.c: Ditto.
9239 * moxie-tdep.h: Ditto.
9242 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9244 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9246 2011-01-08 Robert Millan <rmh@gnu.org>
9248 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9250 2011-01-07 Michael Snyder <msnyder@vmware.com>
9252 * charset.c (_initialize_charset): Fix typo in string.
9254 2011-01-07 Michael Snyder <msnyder@vmware.com>
9256 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9258 * tui/tui-layout.c (tui_set_layout_for_display_command):
9259 Split line so that operator goes to beginning of line.
9260 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9261 assignment out of if statement.
9263 2011-01-07 Michael Snyder <msnyder@vmware.com>
9265 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9266 * ada-lang.h: Ditto.
9267 * ada-tasks.c: Ditto.
9268 * ada-valprint.c: Ditto.
9269 * aix-threads.c: Ditto.
9270 * alpha-linux-nat.c: Ditto.
9271 * alpha-linux-tdep.c: Ditto.
9272 * alpha-mdebug-tdep.c: Ditto.
9273 * alpha-nat.c: Ditto.
9274 * alpha-osf1-tdep.c: Ditto.
9275 * alpha-tdep.c: Ditto.
9276 * alphabsd-nat.c: Ditto.
9277 * alphabsd-tdep.c: Ditto.
9278 * amd64-darwin-tdep.c: Ditto.
9279 * amd64-linux-nat.c: Ditto.
9280 * amd64-linux-tdep.c: Ditto.
9281 * amd64-sol2-tdep.c: Ditto.
9282 * amd64-tdep.c: Ditto.
9283 * amd64-fbsd-tdep.c: Ditto.
9284 * amd64-nbsd-tdep.c: Ditto.
9285 * amd64-obsd-tdep.c: Ditto.
9286 * amd64-linux-nat.c: Ditto.
9287 * amd64-linux-tdep.c: Ditto.
9288 * arm-tdep.c: Ditto.
9289 * arm-tdep.h: Ditto.
9290 * armnbsd-nat.c: Ditto.
9291 * avr-tdep.c: Ditto.
9292 * bfin-tdep.c: Ditto.
9294 * c-typeprintc: Ditto.
9295 * c-valprint.c: Ditto.
9296 * coff-pe-read.h: Ditto.
9297 * coffreead.c: Ditto.
9298 * cris-tdep.c: Ditto.
9300 * darwin-nat-info.c: Ditto.
9301 * darwin-nat.c: Ditto.
9302 * dbug-rom.c: Ditto.
9306 * dec-thread.c: Ditto.
9308 * demangle.c: Ditto.
9309 * dicos-tdep.c: Ditto.
9310 * dictionary.c: Ditto.
9311 * dictionary.h: Ditto.
9312 * dink32-rom.c: Ditto.
9314 * doublest.c: Ditto.
9316 * dummy-frame.c: Ditto.
9317 * dwarf2-frame.c: Ditto.
9318 * dwarf2expr.c: Ditto.
9319 * dwarf2loc.c: Ditto.
9320 * dwarf2read.c: Ditto.
9324 * event-top.h: Ditto.
9325 * exceptions.c: Ditto.
9326 * exceptions.h: Ditto.
9328 * expprint.c: Ditto.
9329 * expression.h: Ditto.
9333 * f-typeprint.c: Ditto.
9334 * f-valprint.c: Ditto.
9335 * fbsd-nat.c: Ditto.
9337 * fork-child.c: Ditto.
9340 * frv-linux-tdep.c: Ditto.
9341 * frv-tdep.c: Ditto.
9343 * gdb-stabs.h: Ditto.
9344 * gdb_assert.h: Ditto.
9345 * gdb_string.h: Ditto.
9346 * gdb_thread_db.h: Ditto.
9347 * gdb_wait.h: Ditto.
9348 * gdbarch.sh: Ditto.
9350 * gdbthread.h: Ditto.
9351 * gdbtypes.c: Ditto.
9352 * gdbtypes.h: Ditto.
9355 * gnu-v2-abi.c: Ditto.
9356 * gnu-v3-abi.c: Ditto.
9357 * go32-nat.c: Ditto.
9358 * gdbarch.c: Regenerate.
9359 * gdbarch.h: Regenerate.
9361 2011-01-07 Michael Snyder <msnyder@vmware.com>
9363 * ax-gdb.c: Adjust some long output strings.
9364 * breakpoint.c: Ditto.
9369 * linux-nat.c: Ditto.
9370 * solib-pa64.c: Ditto.
9371 * solib-som.c: Ditto.
9373 2011-01-06 Tom Tromey <tromey@redhat.com>
9377 * python/python.c (GdbMethods): Add "newest_frame" method.
9378 * python/python-internal.h (gdbpy_newest_frame): Declare.
9379 * python/py-frame.c (gdbpy_newest_frame): New function.
9381 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9383 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9384 * jit.c (jit_debug): New variable.
9385 (show_jit_debug): New function.
9386 (struct target_buffer): Use ULONGEST.
9387 (bfd_open_from_target_memory): Likewise.
9388 (jit_register_code, jit_inferior_init): Add debug output.
9389 (_initialize_jit): Register "debug jit" command.
9391 2011-01-06 Tom Tromey <tromey@redhat.com>
9393 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9394 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9397 2011-01-06 Tom Tromey <tromey@redhat.com>
9399 * python/py-frame.c (frapy_block): Use get_frame_block.
9401 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9403 Do not stop on SIGPRIO signals by default
9404 * infrun.c (_initialize_infrun): Unset signal_stop and
9405 signal_print for TARGET_SIGNAL_PRIO.
9407 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9409 * ada-tasks.c: Fix style violation in comment.
9411 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9413 * linespec.c (decode_compound, find_method): Remove trailing \n
9414 at end of error string.
9415 * solib-irix.c (irix_current_sos): Likewise.
9416 * varobj.c (uninstall_variable): Likewise.
9418 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9420 * copyright.py: New script.
9421 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9422 Launch emacs without exec'ing. Call copyright.py afterwards.
9424 2011-01-05 Michael Snyder <msnyder@vmware.com>
9426 * addrmap.c: Shorten lines of >= 80 columns.
9427 * arch-utils.c: Ditto.
9428 * arch-utils.h: Ditto.
9430 * ax-general.c: Ditto.
9432 * blockframe.c: Ditto.
9433 * breakpoint.c: Ditto.
9434 * buildsym.c: Ditto.
9436 * c-typeprint.c: Ditto.
9438 * coffread.c: Ditto.
9442 * cp-namespace.c: Ditto.
9443 * cp-support.c: Ditto.
9444 * dbug-rom.c: Ditto.
9449 * dictionary.c: Ditto.
9451 * doublest.c: Ditto.
9452 * dwarf2-frame.c: Ditto.
9453 * dwarf2expr.c: Ditto.
9454 * dwarf2loc.c: Ditto.
9455 * dwarf2read.c: Ditto.
9458 * event-loop.c: Ditto.
9459 * event-loop.h: Ditto.
9460 * exceptions.h: Ditto.
9462 * expprint.c: Ditto.
9463 * expression.h: Ditto.
9465 * f-valprint.c: Ditto.
9467 * frame-base.c: Ditto.
9468 * frame-unwind.c: Ditto.
9469 * frame-unwind.h: Ditto.
9473 * gdb-stabs.h: Ditto.
9474 * gdb_assert.h: Ditto.
9475 * gdb_dirent.h: Ditto.
9476 * gdb_obstack.h: Ditto.
9478 * gdbtypes.c: Ditto.
9479 * gdbtypes.h: Ditto.
9480 * inf-ttrace.c: Ditto.
9485 * inline-frame.h: Ditto.
9486 * language.c: Ditto.
9487 * language.h: Ditto.
9488 * libunwind-frame.c: Ditto.
9489 * libunwind-frame.h: Ditto.
9490 * linespec.c: Ditto.
9491 * linux-nat.c: Ditto.
9492 * linux-nat.h: Ditto.
9493 * linux-thread-db.c: Ditto.
9494 * machoread.c: Ditto.
9495 * macroexp.c: Ditto.
9496 * macrotab.c: Ditto.
9499 * mdebugread.c: Ditto.
9504 * objfiles.c: Ditto.
9505 * objfiles.h: Ditto.
9507 * p-typeprint.c: Ditto.
9508 * p-valprint.c: Ditto.
9510 * printcmd.c: Ditto.
9511 * proc-events.c: Ditto.
9513 * progspace.c: Ditto.
9514 * progspace.h: Ditto.
9515 * psympriv.h: Ditto.
9518 * regcache.c: Ditto.
9519 * regcache.h: Ditto.
9520 * remote-fileio.c: Ditto.
9522 * ser-mingw.c: Ditto.
9524 * ser-unix.c: Ditto.
9527 * solib-frv.c: Ditto.
9528 * solib-irix.c: Ditto.
9529 * solib-osf.c: Ditto.
9530 * solib-pa64.c: Ditto.
9531 * solib-som.c: Ditto.
9532 * solib-sunos.c: Ditto.
9533 * solib-svr4.c: Ditto.
9534 * solib-target.c: Ditto.
9538 * stabsread.c: Ditto.
9539 * stabsread.c: Ditto.
9542 * symfile-mem.c: Ditto.
9548 * target-descriptions.c: Ditto.
9549 * target-memory.c: Ditto.
9552 * terminal.h: Ditto.
9555 * tracepoint.c: Ditto.
9556 * tracepoint.h: Ditto.
9560 * user-regs.c: Ditto.
9561 * user-regs.h: Ditto.
9563 * valarith.c: Ditto.
9565 * valprint.c: Ditto.
9566 * valprint.h: Ditto.
9571 * xcoffread.c: Ditto.
9572 * xcoffsolib.c: Ditto.
9573 * xcoffsolib.h: Ditto.
9574 * xml-syscall.c: Ditto.
9575 * xml-tdesc.c: Ditto.
9577 2011-01-05 Michael Snyder <msnyder@vmware.com>
9579 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9580 * cli/cli-decode.c: Ditto.
9581 * cli/cli-dump.c: Ditto.
9582 * cli/cli-logging.c: Ditto.
9583 * cli/cli-script.c: Ditto.
9584 * cli/cli-setshow.c: Ditto.
9585 * common/signals.c: Ditto.
9586 * mi/mi-cmd-break.c: Ditto.
9587 * mi/mi-cmd-disas.c: Ditto.
9588 * mi/mi-cmd-stack.c: Ditto.
9589 * mi/mi-cmd-var.c: Ditto.
9590 * mi/mi-cmds.c: Ditto.
9591 * mi/mi-common.h: Ditto.
9592 * mi/mi-console.c: Ditto.
9593 * mi/mi-interp.c: Ditto.
9594 * mi/mi-main.c: Ditto.
9595 * osf-share/cma_attr.c: Ditto.
9596 * osf-share/cma_deb_core.h: Ditto.
9597 * osf-share/cma_debug_client.h: Ditto.
9598 * osf-share/cma_handle.h: Ditto.
9599 * osf-share/cma_mutex.h: Ditto.
9600 * osf-share/cma_stack_int.h: Ditto.
9601 * osf-share/cma_tcb_defs.h: Ditto.
9602 * python/py-auto-load.c: Ditto.
9603 * python/py-breakpoint.c: Ditto.
9604 * python/py-cmd.c: Ditto.
9605 * python/py-frame.c: Ditto.
9606 * python/py-objfile.c: Ditto.
9607 * python/py-param.c: Ditto.
9608 * python/py-progspace.c: Ditto.
9609 * python/py-symbol.c: Ditto.
9610 * python/py-value.c: Ditto.
9611 * python/python-internal.h: Ditto.
9612 * python/python.c: Ditto.
9613 * tui/tui-data.c: Ditto.
9614 * tui/tui-disasm.c: Ditto.
9615 * tui/tui-hooks.c: Ditto.
9616 * tui/tui-io.c: Ditto.
9617 * tui/tui-layout.c: Ditto.
9618 * tui/tui-regs.c: Ditto.
9619 * tui/tui-source.c: Ditto.
9620 * tui/tui-stack.c: Ditto.
9621 * tui/tui-win.c: Ditto.
9622 * tui/tui-windata.c: Ditto.
9623 * tui/tui-winsource.c: Ditto.
9625 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9627 * configure.ac, gdb.1: Copyright year update.
9629 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9631 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9632 this_pc_in_block, morestack_msym and morestack_name. Check for
9633 "__morestack" minimal symbol there.
9635 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9637 * symfile.c (find_sym_fns): Add call to dont_repeat.
9639 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9641 Copyright year update in most files (performed by copyright.sh).
9643 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9645 * top.c (print_gdb_version): Update copyright year in version output.
9647 For older changes see ChangeLog-2010.
9653 version-control: never