1 2011-09-21 Joseph Myers <joseph@codesourcery.com>
3 * event-top.c (async_disconnect): If an exception is thrown from
4 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
6 * top.c (quit_cover): Return void and take no arguments.
7 * top.h (quit_cover): Update prototype.
9 2011-09-20 Joseph Myers <joseph@codesourcery.com>
11 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
12 current_uiout, not uiout.
14 2011-09-19 Doug Evans <dje@google.com>
16 * python/py-auto-load.c (source_section_scripts): Fix file
18 * python/python.c (source_python_script_for_objfile): Tweak comments.
20 2011-09-18 Yao Qi <yao@codesourcery.com>
21 Ulrich Weigand <ulrich.weigand@linaro.org>
23 Support displaced stepping for Thumb 16-bit insns.
24 * arm-tdep.c (THUMB_NOP) Define.
25 (thumb_copy_unmodified_16bit): New.
26 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
27 (thumb_copy_alu_reg): New.
28 (arm_copy_svc): Move some common code to ...
29 (install_svc): ... here. New.
30 (thumb_copy_svc): New.
31 (install_pc_relative): New.
32 (thumb_copy_pc_relative_16bit): New.
33 (thumb_decode_pc_relative_16bit): New.
34 (thumb_copy_16bit_ldr_literal): New.
35 (thumb_copy_cbnz_cbz): New.
36 (cleanup_pop_pc_16bit_all): New.
37 (thumb_copy_pop_pc_16bit): New.
38 (thumb_process_displaced_16bit_insn): New.
39 (thumb_process_displaced_32bit_insn): New.
40 (thumb_process_displaced_insn): process thumb instruction.
42 Support displaced stepping for Thumb 32-bit insns.
43 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
44 (thumb2_copy_preload): New.
45 (thumb2_copy_copro_load_store): New.
46 (thumb2_copy_b_bl_blx): New.
47 (thumb2_copy_alu_imm): New.
48 (thumb2_copy_load_reg_imm): New.
49 (thumb2_copy_load_literal): New
50 (thumb2_copy_block_xfer): New.
51 (thumb_32bit_copy_undef): New.
52 (thumb_32bit_copy_unpred): New.
53 (thumb2_decode_ext_reg_ld_st): New.
54 (thumb2_decode_svc_copro): New.
55 (decode_thumb_32bit_store_single_data_item): New.
56 (thumb_copy_pc_relative_32bit): New.
57 (thumb_decode_pc_relative_32bit): New.
58 (decode_thumb_32bit_ld_mem_hints): New.
59 (thumb2_copy_table_branch): New
60 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
63 2011-09-18 Yao Qi <yao@codesourcery.com>
65 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
66 (install_b_bl_blx): Likewise.
68 2011-09-17 Yao Qi <yao@codesourcery.com>
70 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
71 (install_load_store): ... this. New.
72 Change parameter BYTE to SIZE.
73 (arm_copy_ldr_str_ldrb_strb): Update caller.
74 (arm_decode_ld_st_word_ubyte): Update caller.
76 2011-09-17 Yao Qi <yao@codesourcery.com>
78 * infrun.c (displaced_step_fixup): Move some code ...
79 (displaced_step_restore): ... here. New function.
80 (handle_inferior_event): Cleanup displaced stepping state for both
81 child and parent when get forked or vforked event.
82 * regcache.c (get_thread_arch_aspace_regcache): New function.
83 get_thread_arch_regcache (): Call it.
85 2011-09-16 Joel Brobecker <brobecker@adacore.com>
87 * ada-tasks.c (print_ada_task_info): New function, merging
88 short_task_info and info_tasks together. Reimplement using
89 ui-out instead of printing to stdout directly. Move the code
90 building and checking the task list here, instead of leaving it
91 in info_tasks_command.
92 (info_task): Move the code building and checking the task
93 list here, instead of leaving it in info_tasks_command.
94 (info_tasks_command): Delete code building and checking
95 the task list - moved elsewhere. Update calls to info_tasks
98 2011-09-16 Joel Brobecker <brobecker@adacore.com>
100 * ada-tasks.c (info_task): Delete parameter `from_tty'.
102 2011-09-16 Joel Brobecker <brobecker@adacore.com>
104 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
106 2011-09-16 Joel Brobecker <brobecker@adacore.com>
108 * ada-lang.h (ada_build_task_list): Remove parameter
110 * ada-tasks.c (ada_build_task_list): Remove parameter
111 `warn_if_null'. Adjust implementation and documentation.
112 (valid_task_id, ada_get_environment_task)
113 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
114 (info_tasks_command): Adjust implementation.
115 (task_command): Likewise.
116 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
117 to ada_build_task_list.
119 2011-09-16 Joel Brobecker <brobecker@adacore.com>
121 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
122 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
123 (ada_tasks_inferior_data_handle): New static global.
124 (get_ada_tasks_inferior_data): New function.
125 (ada_get_task_number, get_task_number_from_id, valid_task_id)
126 (ada_get_environment_task, iterate_over_live_ada_tasks)
127 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
129 (ada_set_current_inferior_known_tasks_addr): New function.
130 (read_known_tasks, ada_build_task_list, short_task_info)
131 (info_tasks, info_task, info_tasks_command, task_command_1)
132 (task_command, ada_task_list_changed): Adjust.
133 (ada_tasks_invalidate_inferior_data): New function.
134 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
135 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
136 * ada-lang.h (struct inferior): Add declaration.
137 (ada_task_list_changed): Update profile.
138 * remote-wtx-pd.c: #include "inferior.h".
139 (switch_to_pd_internal): Update call to ada_task_list_changed.
141 2011-09-16 Joel Brobecker <brobecker@adacore.com>
143 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
144 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
145 (atcb_fieldno): Delete these static globals.
146 (struct ada_tasks_pspace_data): New struct.
147 (ada_tasks_pspace_data_handle): New static global.
148 (get_ada_tasks_pspace_data): New function.
149 (ada_tasks_invalidate_pspace_data): New function.
150 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
151 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
152 (_initialize_tasks): Create this module's per-progspace
155 2011-09-16 Joel Brobecker <brobecker@adacore.com>
157 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
159 2011-09-16 Tristan Gingold <gingold@adacore.com>
161 * fork-child.c (fork_inferior): Update comment. Use alloca
162 instead of xmalloc for argv. Move len and shell_command
163 declarations in the block where they are used.
164 Only call execvp. Factorize failure code.
166 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
169 * parse.c (write_exp_elt): Change argument to pass a pointer of union
170 `exp_element' instead of an element of the same and make the function
172 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
173 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
174 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
175 Change argument of `write_exp_elt' function call.
176 Remove extra spaces from comments.
177 * parser-defs.h (write_exp_elt): Remove prototype.
179 2011-09-15 Paul Koning <paul_koning@dell.com>
181 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
182 count of item appended to list.
183 * python/py-type.c (typy_fields): Likewise.
185 2011-09-15 Paul Koning <paul_koning@dell.com>
187 * MAINTAINERS (Write After Approval): Add myself to the list.
189 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
192 * linux-fork.c (checkpoint_command): Disallow checkpointing of
193 processes with multiple threads.
194 (inf_has_multiple_thread_cb): New function.
195 (inf_has_multiple_threads): New function.
197 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
199 PR Python/12692 Add gdb.selected_inferior() to Python interface.
200 * python/py-inferior.c (GdbMethods): New Python method definition.
202 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
204 Handle multiple breakpoint hits in Python interface:
205 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
206 variable to breakpoints.
207 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
208 bps instead of single breakpoint. Fix some space typos.
209 * python/py-stopevent.c (create_breakpoint_event_object): Rename
210 variable to breakpoints.
212 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
214 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
215 note if the breakpoint is internal.
217 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
219 * MAINTAINERS (Write After Approval): Add myself to the list
221 2011-09-14 Pedro Alves <pedro@codesourcery.com>
223 * infrun.c (prepare_for_detach, wait_for_inferior)
224 (fetch_inferior_event): Don't flush the register cache.
225 * remote.c (struct stop_reply) <regcache>: Add comment.
227 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
229 Remove excessive DWARF expressions memory duplication.
230 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
232 (indirect_pieced_value): Remove variable result. Remove variable
233 back_to and its use for baton.data.
234 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
236 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
237 Update the function comment.
239 2011-09-13 Pedro Alves <pedro@codesourcery.com>
241 * inferior.h (ALL_INFERIORS): New.
242 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
243 for a stopped thread.
244 (thread_db_find_new_threads): Look for threads in all inferiors.
246 2011-09-13 Pedro Alves <pedro@codesourcery.com>
248 * breakpoint.c (update_watchpoint): Handle the case of the
249 watchpoint to update not being in the breakpoint list yet.
250 (hw_watchpoint_use_count): New, factored out from
251 hw_watchpoint_used_count.
252 (hw_watchpoint_used_count): Rename to ...
253 (hw_watchpoint_used_count_others): ... this. Add `except'
254 parameter. Don't count resources of `except'. Use
255 hw_watchpoint_use_count.
257 2011-09-13 Pedro Alves <pedro@codesourcery.com>
259 * gdbthread.h (enum thread_state): Moved here.
260 (struct thread_info): Rename `executing_' field to `executing' and
262 * thread.c (enum thread_state): Moved to gdbthread.h.
263 (new_thread, add_thread_silent, delete_thread_1)
264 (any_live_thread_of_process, thread_alive, set_running)
265 (set_running, is_thread_state, any_running, is_executing)
266 (set_executing, finish_thread_state, print_thread_info)
267 (do_captured_thread_select): Adjust.
269 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
271 Fix compatibility with gcc < 4.3 and non-gcc compilers.
272 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
274 2011-09-12 Pedro Alves <pedro@codesourcery.com>
275 Matt Rice <ratmice@gmail.com>
279 * interps.c (struct interp) <interpreter_out>: Delete field.
280 (interp_new): Remove the data and uiout parameters and adjust.
281 (interp_set): Only set the current_uiout from the interpreter's
282 uiout after initializing the interpreter. Adjust call to
284 (interp_ui_out): Adjust to call procs->ui_out_proc.
285 (interp_data, interp_name): New.
286 * interps.h (interp_init_ftype): Add `self' parameter.
287 (interp_ui_out_ftype): New typedef.
288 (struct interp_procs) <ui_out_proc>: New method pointer.
289 (interp_new): Remove the data and uiout parameters.
290 (interp_data, interp_name): Declare.
291 * tui/tui-interp.c (tui_init): Adjust prototype.
293 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
294 tui_out here. Adjust call to interp_new.
295 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
296 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
298 (_initialize_cli_interp): Install it. Adjust call to interp_new.
299 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
300 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
301 Initialize mi->uiout depending on the mi_version as extracted from
302 the interpreter's name.
304 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
305 interp_new. Don't allocate the ui_out's of the interpreters here.
307 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
309 * solib.c (solib_used): New function.
310 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
311 by another so_list object before freeing it.
313 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
316 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
319 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
322 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
323 (amd64_skip_xmm_prologue): ... this new function. Describe its
324 parameters. No longer use amd64_prologue_line_bug.
325 * defs.h (producer_is_gcc_ge_4): New declaration.
326 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
327 (process_full_comp_unit): Update its caller. Remove
328 amd64_prologue_line_bug initialization.
329 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
330 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
332 2011-09-09 Pedro Alves <pedro@codesourcery.com>
334 * linux-nat.h (enum resume_kind): New.
335 (struct lwp_info) <last_resume_kind>: New field.
336 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
337 resume_stop on the new lwp.
338 (add_lwp): Set last_resume_kind as resume_continue by default.
339 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
340 (resume_lwp): New, factored out from resume_callback. Also check
341 for pending status in lp->waitstatus.
342 (resume_callback): Reimplement.
343 (resume_clear_callback): Set last_resume_kind as resume_stop.
344 (resume_set_callback): Set last_resume_kind as resume_continue.
345 (linux_nat_resume, linux_handle_extended_wait): Set
347 (running_callback): Also check lp->waitstatus for pending events.
348 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
350 (stop_and_resume_callback): Don't re-resume if the core wanted the
351 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
352 using an invalidated pointer.
353 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
354 SIGSTOPs if the core wanted the LWP to stop.
355 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
356 wanted the lwp to stop. If the core wanted the lwp to stop, and
357 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
358 of TARGET_SIGNAL_STOP.
359 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
360 here. Instead, signal the lwp, and set the last_resume_kind to
363 2011-09-09 Pedro Alves <pedro@codesourcery.com>
365 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
366 -1 (error), if the lwp exits right after attaching.
368 2011-09-08 Doug Evans <dje@google.com>
370 * py-cmd.c: Some minor formatting fixes.
371 (gdbpy_parse_command_name): Rename text arg to name, make const.
373 * python-internal.h (gdbpy_parse_command_name): Update.
375 * cli/cli-decode.c (add_cmd): Add comment.
377 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
380 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
381 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
382 * dwarf2read.c (process_full_comp_unit): Initialize
383 amd64_prologue_line_bug.
384 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
386 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
388 Fix TUI screen corruption.
389 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
392 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
394 * findvar.c (read_var_value): Never return NULL, throw an error
395 instead. Update the function comment. State symbol name in the error
397 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
399 * stack.c (print_frame_args): Likewise.
400 * valops.c (value_of_variable): Likewise.
402 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
404 * stack.c (print_frame_args): New variable except. Wrap
405 read_var_value and common_val_print into TRY_CATCH.
407 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
409 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
410 caller to value_of_this.
411 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
413 * valops.c (value_of_this): Remove parameter complain and variable ret.
414 Update function comment. Never return NULL by this code.
415 (value_of_this_silent): New function.
416 * value.h (value_of_this): Remove parameter complain.
417 (value_of_this_silent): New declaration.
419 2011-09-07 Yao Qi <yao@codesourcery.com>
421 * gdbthread.h (struct thread_info): Remove fields
422 `stepping_through_solib_after_catch' and
423 `stepping_through_solib_catchpoints'.
424 * infrun.c (init_thread_stepping_state): Update.
425 (process_event_stop_test, currently_stepping): Update.
426 (currently_stepping_or_nexting_callback): Update.
428 2011-09-07 Yao Qi <yao@codesourcery.com>
430 * gdbthread.h (struct thread_info): Comment on field
431 `step_after_step_resume_breakpoint'.
433 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
435 * remote.c (remote_console_output): Reindent.
437 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
439 * frame.c (has_stack_frames): Check for currently selected
442 2011-09-06 Pedro Alves <pedro@codesourcery.com>
444 * event-top.h (MAXPROMPTS, struct prompts): Delete.
445 (set_async_annotation_level, set_async_prompt, pop_prompt)
446 (push_prompt, new_async_prompt): Delete declarations.
447 * top.h (get_prompt, set_prompt): Change prototype.
448 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
450 * top.c (command_loop):
451 (top_prompt): New global.
452 (get_prefix, set_prefix, get_suffix, ): Delete.
453 (get_prompt, set_prompt): Rewrite.
454 (show_new_async_prompt): Rename to ...
455 (show_prompt): ... this.
456 (init_main): Adjust. Don't handle --annotate=2 here.
457 * event-top.c (new_async_prompt): Delete.
458 (the_prompts): Delete.
459 (more_to_come): Make static.
460 (display_gdb_prompt): Use top_level_prompt() to compute the top
461 level prompt, and don't notify the before_prompt observers
462 directly here. Always trick readline into not trying to display
463 the prompt if sync_execution and displaying the primary prompt.
464 If displaying a local/secondary prompt, always show it, even if
465 sync_execution is set.
466 (change_annotation_level): Delete.
467 (top_level_prompt): New, based on change_annotation_level.
468 (push_prompt, pop_prompt): Delete.
469 (async_disable_stdin): No longer pushes prompt.
470 (command_line_handler): No longer pushes or pops prompt. If more
471 input is expected, call display_gdb_prompt with an explicit empty
473 (async_stop_sig): Adjust.
474 (set_async_annotation_level, set_async_prompt): Delete.
475 * python/python.c (before_prompt_hook): Adjust.
477 2011-09-05 Pedro Alves <pedro@codesourcery.com>
481 * infrun.c (fetch_inferior_event): Check if there's a selected
482 thread before checking if the selected thread is executing.
484 2011-09-05 Pedro Alves <pedro@codesourcery.com>
486 * inf-loop.c (execute_command): Don't check if the current thread
487 if running before synchronously waiting for command completion.
488 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
490 (normal_stop): Call async_enable_stdin here.
491 * inf-loop.c (inferior_event_handler): Don't call
492 async_enable_stdin, nor handle "set exec-done-display" here.
494 2011-09-04 Joel Brobecker <brobecker@adacore.com>
498 2011-09-04 Joel Brobecker <brobecker@adacore.com>
500 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
502 2011-09-04 Joel Brobecker <brobecker@adacore.com>
504 * NEWS: Add entry for OpenBSD/NetBSD build failure.
506 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
508 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
510 2011-09-02 Matt Rice <ratmice@gmail.com>
513 * event-top.c (cli_command_loop): Replace readline setup with
514 direct call to display_gdb_prompt.
515 (display_gdb_prompt): Do not call observer mechanism during
516 synchronous execution.
518 2011-09-02 Pedro Alves <pedro@codesourcery.com>
520 * linux-nat.c (in_pid_list_p): New.
521 (linux_record_stopped_pid): Delete.
522 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
523 already attached to the LWP. Return an indication if so.
524 (linux_nat_filter_event): Adjust.
525 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
526 returning an indication to ignore this thread.
528 2011-09-02 Pedro Alves <pedro@codesourcery.com>
530 * top.c: Include interps.h.
531 (execute_command): If the target can async, but the interpreter is
532 in sync mode, synchronously wait for the command to finish before
534 (execute_command_to_string): Force the interpreter to sync mode.
535 * infrun.c: Include interps.h.
536 (fetch_inferior_event): Don't restore the prompt yet if the
537 interpreter is in sync mode.
538 * interps.c (interpreter_async): New global.
539 * interps.h (interpreter_async): Declare.
540 * inf-loop.c: Include interps.h.
541 (inferior_event_handler): Don't print the language change or run
542 breakpoint commands yet if the interpreter in is sync mode.
543 * main.c (captured_command_loop): Flip the interpreter to async
545 * cli/cli-script.c: Include interps.h.
546 (execute_user_command, while_command, if_command): Force the
547 interpreter to sync mode.
548 * python/python.c: Include interps.h.
549 (python_command, execute_gdb_command): Force the interpreter to
552 2011-09-02 Pedro Alves <pedro@codesourcery.com>
554 * value.c (show_convenience): Catch errors thrown while printing
555 each internal variable.
556 * infrun.c (validate_siginfo_access): New function.
557 (siginfo_value_read, siginfo_value_write): Call it.
559 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
562 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
563 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
566 2011-08-29 Yao Qi <yao@codesourcery.com>
568 * solib-dsbt.c (bfd_lookup_symbol): Removed.
570 (enable_break2): Update caller.
571 * solib-frv.c (bfd_lookup_symbol): Removed.
573 (enable_break2): Update caller.
574 * solib-pa64.c (bfd_lookup_symbol): Removed.
576 * solib-svr4.c (bfd_lookup_symbol): Removed.
577 (cmp_name_and_sec_flags): New.
578 (enable_break): Update caller.
579 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
580 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
581 (gdb_bfd_lookup_symbol): New.
582 * solib.h: Functions declarations.
584 2011-08-29 Yao Qi <yao@codesourcery.com>
586 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
589 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
591 Fix TUI stepi on code without symbols.
592 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
595 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
598 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
599 and the static keyword.
600 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
601 Make prefix an array.
602 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
603 * mi/mi-main.c (get_register): Remove stb initialization and the static
606 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
608 Code cleanup - make mi_opt const.
609 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
611 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
612 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
613 (mi_cmd_env_dir): Likewise.
614 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
615 (mi_cmd_target_file_put): Likewise.
616 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
617 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
618 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
619 (mi_valid_noargs): Make opts const.
620 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
621 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
622 (mi_cmd_data_read_memory): Likewise.
623 (mi_cmd_data_read_memory_bytes): Likewise.
624 (mi_cmd_data_write_memory): Likewise.
626 2011-08-26 Matt Rice <ratmice@gmail.com>
628 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
629 bcache_xmalloc, replace bcache_xmalloc with call to
630 psymbol_bcache_init for psymbol_cache.
631 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
633 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
635 * inf-loop.c (inferior_event_handler): Add exception_print in
638 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
640 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
641 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
642 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
643 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
644 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
645 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
646 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
647 * infrun.c (fetch_inferior_event): Call
648 make_bpstat_clear_actions_cleanup.
649 * top.c (execute_command): New variable cleanup_if_error, call
650 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
651 * utils.c (do_bpstat_clear_actions_cleanup)
652 (make_bpstat_clear_actions_cleanup): New functions.
654 2011-08-26 Pedro Alves <pedro@codesourcery.com>
656 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
657 either the parent or the child forks. Rename a couple locals.
659 2011-08-26 Pedro Alves <pedro@codesourcery.com>
661 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
662 library call. Avoid reading the `status' local if all waitpid
665 2011-08-26 Pedro Alves <pedro@codesourcery.com>
667 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
668 opening /proc/PID/task always succeeds.
670 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
672 * linespec.c (symtab_from_filename): Check for the end of string.
674 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
677 * varobj.c (cplus_describe_child): Add the keyword
678 'class' to the output of the method when dealing
679 with a cast to a base class.
681 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
683 No functionality change.
684 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
685 function comment a reference, new variables tp and bs, move here code
686 from throw_exception.
687 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
688 describe it in the comment.
689 * exceptions.c (throw_exception): Remove variable tp, move the code for
690 bpstat_clear_actions to bpstat_clear_actions.
692 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
694 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
695 * linux-nat.c: Include linux-procfs.h.
696 (linux_proc_get_tgid): Move to ...
697 * common/linux-procfs.c: ... here. New file.
698 * common/linux-procfs.h: New file.
699 * linux-thread-db.c: Include linux-procfs.h.
700 * Makefile.in: Update dependencies.
701 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
702 * config/arm/linux.mh: Likewise.
703 * config/i386/linux.mh: Likewise.
704 * config/i386/linux64.mh: Likewise.
705 * config/ia64/linux.mh: Likewise.
706 * config/m32r/linux.mh: Likewise.
707 * config/m68k/linux.mh: Likewise.
708 * config/mips/linux.mh: Likewise.
709 * config/pa/linux.mh: Likewise.
710 * config/pa/linux.mh: Likewise.
711 * config/powerpc/linux.mh: Likewise.
712 * config/powerpc/ppc64-linux.mh: Likewise.
713 * config/powerpc/spu-linux.mh: Likewise.
714 * config/sparc/linux.mh: Likewise.
715 * config/sparc/linux64.mh: Likewise.
716 * config/xtensa/linux.mh: Likewise.
718 2011-08-24 Hui Zhu <teawater@gmail.com>
720 * tracepoint.c (cond_string_is_same): New function.
721 (find_matching_tracepoint): Add condition check
722 by cond_string_is_same.
724 2011-08-23 Josh Matthews <josh@joshmatthews.net>
726 Fix build error in Darwin port.
727 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
729 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
732 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
733 (command_line_is_silent): New function.
734 (bpstat_do_actions_1): No longer use commands_left, use
735 command_line_is_silent for commands.
736 (bpstat_alloc): Remove clearing of commands_left.
737 (bpstat_stop_status): Remove initialization of commands_left, use
738 command_line_is_silent.
739 * breakpoint.h (struct bpstats): Remove commands_left.
741 2011-08-18 Keith Seitz <keiths@redhat.com>
744 * cp-name-parser.y (struct demangle_info): Remove unused
747 (allocate_info): Change return type to struct demangle_info *.
748 Always allocate a new demangle_info.
749 Remove unused PREV pointer.
750 (cp_new_demangle_parse_info): New function.
751 (cp_demangled_name_parse_free): New function.
752 (do_demangled_name_parse_free_cleanup): New function.
753 (make_cleanup_cp_demangled_name_parse_free): New function.
754 (cp_demangled_name_to_comp): Change return type to
755 struct demangle_parse_info *.
756 Allocate a new storage for each call.
757 (main): Update usage for cp_demangled_name_to_comp
759 * cp-support.h (struct demangle_parse_info): New structure.
760 (cp_demangled_name_to_comp): Update API change for
762 (cp_new_demangle_parse_info): Declare.
763 (make_cleanup_cp_demangled_name_parse_free): New declaration.
764 (cp_demangled_name_parse_free): Declare.
765 * cp-support.c (cp_canonicalize_string): Update API
766 change for cp_demangled_name_to_comp.
767 (mangled_name_to_comp): Likewise.
768 Return struct demangle_parse_info, too.
769 (cp_class_name_from_physname): Update mangled_name_to_comp
771 (method_name_from_physname): Likewise.
772 (cp_func_name): Update API change for cp_demangled_name_to_comp.
773 (cp_remove_params): Likewise.
774 * python/py-type.c (typy_legacy_template_argument): Likewise.
776 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
777 (cp_merge_demangle_parse_infos): Declare.
778 * cp-support.c (ignore_typedefs): New file global.
779 (copy_string_to_obstack): New function.
780 (inspect_type): New function.
781 (replace_typedefs): New function.
782 (replace_typedefs_qualified_name): New function.
783 (cp_canonicalize_string_no_typedefs): New function.
784 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
785 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
786 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
787 instead of cp_canonicalize_string.
788 (find_method): Likewise.
789 (decode_compound): Before looking up the name, call
790 cp_canonicalize_string_no_typedefs.
791 (decode_variable): Likewise.
793 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
794 Tom Tromey <tromey@redhat.com>
795 Matt Rice <ratmice@gmail.com>
797 * python/lib/gdb/prompt.py: New file.
798 * python/lib/gdb/command/prompt.py: New file.
799 * NEWS: Document set extended-prompt and gdb.prompt library
801 2011-08-16 Yao Qi <yao@codesourcery.com>
803 * tic6x-linux-tdep.c: Move const arrays definition from here...
804 * tic6x-tdep.c: to here ...
806 2011-08-14 Yao Qi <yao@codesourcery.com>
808 * NEWS: New port to Texas Instruments TMS320C6x.
810 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
811 Bernd Schmidt <bernds@codesourcery.com>
812 Yao Qi <yao@codesourcery.com>
814 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
815 * solib-dsbt.c: New file. Support DSBT shared object.
816 * tic6x-linux-tdep.c: New file.
817 * tic6x-tdep.c: New file.
818 * tic6x-tdep.h: New file.
820 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
821 Yao Qi <yao@codesourcery.com>
823 * remote.c (PACKET_qXfer_fdpic): New enum value.
824 (remote_protocol_features): Add qXfer:fdpic:read packet.
825 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
826 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
827 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
829 2011-08-14 Yao Qi <yao@codesourcery.com>
831 Target description for tic6x.
832 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
833 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
834 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
835 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
836 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
837 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
838 * features/tic6x-c64xp-linux.xml: New.
839 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
840 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
841 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
842 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
843 * regformats/tic6x-c64xp.dat,
844 regformats/tic6x-c62x-linux.dat: Generated.
845 * regformats/tic6x-c64x-linux.dat,
846 regformats/tic6x-c64xp-linux.dat: Generated.
847 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
848 features/tic6x-*.c files.
849 Add regformats/tic6x-*.dat files.
851 2011-08-12 Doug Evans <dje@google.com>
853 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
854 * python/py-symbol.c (sympy_get_type): New function.
855 (symbol_object_getset): Add "type".
857 2011-08-12 Pedro Alves <pedro@codesourcery.com>
861 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
863 (tui_show_register_group): Don't store a byte buffer in the data
865 (tui_register_format): Skip registers with an empty name.
866 (tui_get_register): Store a struct value in the data element's
867 value field instead of a byte buffer holding the raw register
868 contents. Account for optimized-out and unavailable registers
869 when comparing register contents.
871 2011-08-09 Pedro Alves <pedro@codesourcery.com>
873 * printcmd.c (current_display_number): Update comment.
874 (disable_current_display_cleanup): Delete.
875 (do_one_display): Use make_cleanup_restore_integer. Gracefully
876 catch errors thrown while evaluating and printing the display.
878 2011-08-09 Tom Tromey <tromey@redhat.com>
880 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
882 2011-08-09 Pedro Alves <pedro@codesourcery.com>
884 * elfread.c (elf_symtab_read): Rework comments.
885 * maint.c (maintenance_command): Ditto.
886 * somread.c (som_symtab_read): Ditto.
887 * solib.c (solib_find, solib_map_sections, update_solib_list)
888 (solib_add, info_sharedlibrary_command, solib_name_from_address)
889 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
890 (sharedlibrary_command, no_shared_libraries): Ditto.
891 * solib-irix.c (locate_base, disable_break, enable_break)
892 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
893 (irix_current_sos, irix_open_symbol_file_object)
894 (irix_special_symbol_handling): Ditto.
895 * solib-sunos.c (locate_base, first_link_map_member)
896 (sunos_current_sos, disable_break, enable_break)
897 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
899 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
900 (open_symbol_file_object, svr4_current_sos, enable_break)
901 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
903 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
904 (frv_current_sos, enable_break, frv_special_symbol_handling)
905 (frv_solib_create_inferior_hook): Ditto.
906 * solist.h (struct target_so_ops): Extend the comments of the
907 special_symbol_handling, current_sos and open_symbol_file_object
910 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
912 * python/lib/gdb/__init__.py: Auto-load files in command and
913 function directories.
914 * python/python.c (finish_python_initialization): Use
916 * python/lib/gdb/command/pretty_printers.py: Self register
918 * NEWS: Document auto-loading.
920 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
922 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
923 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
924 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
926 2011-08-08 Tom Tromey <tromey@redhat.com>
928 * breakpoint.c (clean_up_filters): Remove.
929 (catch_syscall_split_args): Use VEC_cleanup.
931 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
933 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
934 (main): Uncomment "Demangling error\n".
936 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
938 * solib-target.c (segment_attributes): Make them static.
939 (section_attributes, library_children, library_attributes): Likewise.
940 (library_list_children, library_list_attributes): Likesise.
941 (library_list_elements): Likewise.
943 2011-08-05 Pedro Alves <pedro@codesourcery.com>
945 * exceptions.c (throw_exception): Don't disable the current
947 * printcmd.c (disable_current_display_cleanup): New function.
948 (do_one_display): Install a cleanup to disable the current display
949 if doing the display throws.
951 2011-08-05 Eli Zaretskii <eliz@gnu.org>
953 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
954 initialization of the tp_new member to the corresponding
955 gdbpy_initialize_* function.
956 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
957 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
958 * python/py-function.c (gdbpy_initialize_functions): Likewise.
959 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
960 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
962 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
965 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
966 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
967 references to current_uiout.
969 2011-08-04 Pedro Alves <pedro@codesourcery.com>
971 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
972 (start_event_loop): Use TRY_CATCH instead of catch_errors.
973 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
974 * top.c (gdb_readline_wrapper): Adjust.
975 * tui/tui-interp.c (tui_command_loop):
976 (_initialize_tui_interp): Don't install it.
978 2011-08-04 Pedro Alves <pedro@codesourcery.com>
980 * ui-out.h (uiout): Rename to ...
981 (current_uiout): ... this.
982 * ui-out.c (uiout): Rename to ...
983 (current_uiout): ... this.
984 * ada-lang.c (print_it_exception, print_one_exception)
985 (print_mention_exception): Adjust.
986 * breakpoint.c (watchpoint_check): Adjust.
987 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
988 (default_collect_info, watchpoints_info, print_one_catch_fork)
989 (print_one_catch_vfork, print_one_catch_syscall)
990 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
991 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
992 (print_it_watchpoint, print_mention_watchpoint)
993 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
994 (print_it_exception_catchpoint, print_one_exception_catchpoint)
995 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
996 (bkpt_print_mention, momentary_bkpt_print_it)
997 (tracepoint_print_mention, update_static_tracepoint)
998 (tracepoints_info, save_breakpoints): Adjust.
999 * cli-out.c (field_separator): Adjust.
1000 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1001 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1002 * frame.c (get_current_frame): Adjust.
1003 * infcmd.c (run_command_1, print_return_value): Adjust.
1004 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1005 * infrun.c (print_end_stepping_range_reason): Adjust.
1006 (print_signal_exited_reason, print_exited_reason): Adjust.
1007 (print_signal_received_reason, print_no_history_reason): Adjust.
1008 * interps.c (interp_set): Adjust.
1009 * osdata.c (info_osdata_command): Adjust.
1010 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1011 * remote-fileio.c (remote_fileio_request): Adjust.
1012 * remote.c (show_remote_cmd): Adjust.
1013 * solib.c (info_sharedlibrary_command): Adjust.
1014 * source.c (print_source_lines_base): Adjust.
1015 * stack.c (print_stack_frame): Adjust.
1016 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1017 * symfile-mem.c (add_vsyscall_page): Adjust.
1018 * symfile.c (load_progress, generic_load)
1019 (print_transfer_performance): Adjust.
1020 * thread.c (info_threads_command, restore_selected_frame)
1021 (thread_command): Adjust.
1022 * top.c (make_cleanup_restore_ui_file): Adjust.
1023 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1024 (print_one_static_tracepoint_marker): Adjust.
1025 * cli/cli-cmds.c (print_disassembly): Adjust.
1026 * cli/cli-decode.c (print_doc_line): Adjust.
1027 * cli/cli-interp.c (safe_execute_command): Adjust.
1028 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1029 (handle_redirections): Adjust.
1030 * cli/cli-script.c (show_user_1): Adjust.
1031 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1032 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1033 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1034 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1035 (mi_cmd_env_dir): Adjust.
1036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1037 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1038 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1039 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1040 (list_args_or_locals): Adjust.
1041 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1042 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1043 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1044 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1045 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1046 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1047 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1048 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1049 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1050 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1051 (list_available_thread_groups, mi_cmd_list_thread_groups)
1052 (mi_cmd_data_list_register_names)
1053 (mi_cmd_data_list_changed_registers)
1054 (mi_cmd_data_list_register_values, get_register)
1055 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1056 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1057 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1058 (mi_execute_command, mi_load_progress): Adjust.
1059 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1060 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1062 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1063 * tui/tui-interp.c (tui_command_loop): Adjust.
1064 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1066 2011-08-04 Pedro Alves <pedro@codesourcery.com>
1068 * exceptions.c (struct catcher): Remove saved_uiout field.
1069 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1070 no longer save/resvore the global ui_out builder.
1071 (catch_exceptions_with_msg): Save/override/restore the global
1072 ui_out builder manually instead of relying on TRY_CATCH to do it.
1073 (catch_errors): Save/restore the global ui_out builder manually
1074 instead of relying on TRY_CATCH to do it.
1075 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1077 (TRY_CATCH): Adjust.
1078 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1079 the global ui_out builder manually instead of relying on TRY_CATCH
1082 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1084 * breakpoint.c (update_global_location_list): Ensure
1085 invariant 'first loc marked not duplicated and inserted,
1086 following locs marked duplicated/not inserted' is respected
1087 for multiple locations at the same address.
1088 (unduplicated_should_be_inserted) New function.
1089 (swap_insertion) New function.
1091 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 * stack.c (print_frame_arguments_choices): Comment typo fix.
1095 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1098 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1099 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1100 argument. Update callers.
1102 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1105 * doublest.c (convert_doublest_to_floatformat): Pass correct
1106 mantissa length to put_field.
1108 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1110 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1111 exception_print code path.
1112 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1113 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1114 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1116 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1119 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1120 Remove, merge them into ...
1121 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1122 variable args and its initialization.
1123 (struct print_args_args, print_args_stub): Remove, merge them into
1125 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1127 (do_gdb_disassembly): ... here. Remove variable args and its
1129 (print_frame): Remove variable args and its initialization, new
1130 variable gdbarch and numargs (from print_args_stub), inline here
1131 print_args_stub with a TRY_CATCH.
1132 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1134 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1135 New variable e, remove variable btargs and its initialization.
1137 2011-08-01 Tristan Gingold <gingold@adacore.com>
1139 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1141 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1143 * breakpoint.c (insert_bp_location): Document return value.
1144 (insert_breakpoint_locations): Fix documentation.
1145 (remove_breakpoints): Add documentation.
1147 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1149 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1150 argument. Update callers.
1152 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 * stack.c (print_frame_info): Comment typo fix.
1156 2011-07-29 Sterling Augustine <saugustine@google.com>
1158 * MAINTAINERS (Write After Approval): Add myself to the list.
1160 2011-07-29 Tom Tromey <tromey@redhat.com>
1162 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1163 (library_list_start_segment): Update.
1164 (library_list_start_section): Update.
1166 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1168 * varobj.c (value_get_print_value): Move hint check later into the
1169 function. Comment function. Free thevalue before reusing it.
1171 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1172 Pedro Alves <pedro@codesourcery.com>
1174 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1176 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1177 Assert the result kind.
1178 * value.h (value_one): Remove parameter lv.
1180 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1182 Fix crash on lval_computed values.
1183 * valops.c (value_zero): Use not_lval for lval_computed.
1185 2011-07-27 Tom Tromey <tromey@redhat.com>
1187 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1188 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1190 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1192 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1193 "ptype" by their typedefs difference.
1195 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1197 * dwarf2expr.c (ctx_no_read_reg): New function.
1198 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1199 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1200 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1201 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1203 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1205 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1206 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1208 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1209 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1210 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1211 (ctx_no_get_base_type): Move the functions here.
1212 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1213 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1214 (ctx_no_get_base_type): New declarations.
1216 2011-07-27 Tom Tromey <tromey@redhat.com>
1218 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1220 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1221 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1223 2011-07-26 Sterling Augustine <saugustine@google.com>
1225 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1227 (dump_bfd_file): Likewise.
1229 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1231 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1232 (remote_hw_watchpoint_length_limit): New variable.
1233 (_initialize_remote) add set,show cmds for this new variable.
1234 * gdb.texinfo: document these new commands.
1235 * NEWS: Mention these new commands.
1237 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1239 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1240 true for software watchpoints.
1242 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1246 2011-07-26 Tom Tromey <tromey@redhat.com>
1248 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1249 * dwarf2read.c (read_indirect_string_at_offset): New function.
1250 (read_indirect_string): Use it.
1251 (dwarf_decode_macro_bytes): New function, taken from
1252 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1253 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1254 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1256 (struct dwarf2_per_objfile) <macro>: New field.
1257 (dwarf2_elf_names): Add .debug_macro.
1258 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1259 (dwarf2_locate_sections): Handle new section.
1260 (read_file_scope): Handle DW_AT_GNU_macros.
1261 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1263 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1265 * NEWS: Mention dcache configuration.
1266 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1267 (dcache_size, dcache_line_size): New variables.
1268 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1269 (struct dcache_block): Make it expandable.
1270 (struct dcache_struct): New field.
1271 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1272 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1273 (dcache_poke_byte, dcache_print_line): Adjust.
1274 (set_dcache_size, set_dcache_line_size): New functions.
1275 (set_dcache_command, show_dcache_command): New functions.
1276 (_initialize_dcache): Add new commands.
1278 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1280 * progspace.h (struct program_space): Add solib_add_generation.
1281 * infcmd.c (post_create_inferior): Only call solib_add if not
1283 * solib.c (solib_add): Increment solib_add_generation.
1285 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1287 Fix implicit pointer offsets.
1288 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1291 2011-07-25 Tom Tromey <tromey@redhat.com>
1293 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1295 (ada_exception_sal): Make 'ops' const.
1296 (ada_decode_exception_location): Likewise.
1297 (ada_decode_assert_location): Likewise.
1298 (catch_assert_command): Update.
1299 (catch_ada_exception_command): Update.
1300 (create_ada_exception_catchpoint): Make 'ops' const.
1301 * breakpoint.c (set_raw_breakpoint_without_location)
1302 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1304 (create_internal_breakpoint): Update.
1305 (init_raw_breakpoint_without_location): Make 'ops' const.
1306 (init_raw_breakpoint, init_catchpoint)
1307 (create_fork_vfork_event_catchpoint)
1308 (create_syscall_event_catchpoint, init_breakpoint_sal)
1309 (create_breakpoint_sal, create_breakpoints_sal)
1310 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1311 * breakpoint.h (struct breakpoint) <ops>: Now const.
1312 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1315 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1317 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1319 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1321 * breakpoint.h (print_recreate_thread): Declare.
1322 (struct breakpoint): Move step_count, pass_count,
1323 number_on_target, static_trace_marker_id,
1324 static_trace_marker_id_idx ...
1325 (struct tracepoint): ... to this new struct.
1326 (get_tracepoint, get_tracepoint_by_number_on_target)
1327 (get_tracepoint_by_number): Change return type to struct
1329 * breakpoint.c (is_tracepoint_type): New, factored out from
1331 (is_tracepoint): Adjust.
1332 (print_one_breakpoint_location): Cast to struct tracepoint as
1333 necessary, and adjust.
1334 (print_recreate_catch_fork, print_recreate_catch_vfork)
1335 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1336 print_recreate_thread.
1337 (init_breakpoint_sal): New, factored out from
1338 create_breakpoint_sal.
1339 (create_breakpoint_sal): Reimplement.
1340 (create_breakpoint): Allocate a struct tracecepoint if the caller
1341 wanted a tracepoint. Use init_breakpoint_sal and
1343 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1344 (print_recreate_masked_watchpoint)
1345 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1346 (tracepoint_print_one_detail): Adjust.
1347 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1348 Dump the pass count here.
1349 (update_static_tracepoint): Adjust.
1350 (addr_string_to_sals): Adjust.
1351 (create_tracepoint_from_upload): Adjust. Change return type to
1352 struct tracepoint pointer.
1353 (trace_pass_set_count): Change parameter type to struct tracepoint
1354 pointer, and adjust.
1355 (trace_pass_command): Adjust.
1356 (get_tracepoint, get_tracepoint_by_number_on_target)
1357 (get_tracepoint_by_number): Change return type to struct
1358 tracepoint pointer, and adjust.
1359 (print_recreate_thread): New, factored out from save_breakpoints.
1360 (save_breakpoints): Don't print thread and task and passcount
1362 * remote.c (remote_download_tracepoint): Adjust.
1363 * tracepoint.c (trace_actions_command, validate_actionline)
1364 (start_tracing, tfind_1, trace_find_tracepoint_command)
1365 (trace_dump_command): Adjust.
1366 (find_matching_tracepoint): Change return type to struct
1367 tracepoint pointer, and adjust.
1368 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1369 (tfile_trace_find, tfile_fetch_registers): Adjust.
1370 * tracepoint.h (create_tracepoint_from_upload): Change return type
1371 to struct tracepoint pointer.
1372 * ada-lang.c (print_recreate_exception): Call
1373 print_recreate_thread.
1374 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1376 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1378 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1379 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1380 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1381 watchpoint_thread, watchpoint_triggered ...
1382 (struct watchpoint): ... to this new struct.
1383 (is_watchpoint): Declare.
1384 (install_breakpoint): Add new `internal' parameter.
1385 * breakpoint.c (is_watchpoint): Delete declaration.
1386 (set_breakpoint_condition): Handle watchpoints.
1387 (is_watchpoint): Make public.
1388 (watchpoint_in_thread_scope): Change parameter type to struct
1390 (watchpoint_del_at_next_stop): Change parameter type to struct
1391 watchpoint. Remove assertion. Adjust.
1392 (update_watchpoint): Ditto.
1393 (insert_breakpoints, breakpoint_init_inferior)
1394 (watchpoints_triggered, watchpoint_check)
1395 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1396 (bpstat_stop_status, print_one_breakpoint_location)
1397 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1398 to struct watchpoint as necessary, and adjust.
1399 (install_breakpoint): Add `internal' argument. If true, don't
1400 mention the new breakpoint. Use set_breakpoint_number.
1401 (create_fork_vfork_event_catchpoint)
1402 (create_syscall_event_catchpoint): Adjust.
1403 (dtor_watchpoint): New.
1404 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1405 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1406 (print_it_watchpoint, print_mention_watchpoint)
1407 (print_recreate_watchpoint, insert_masked_watchpoint)
1408 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1409 (print_one_detail_masked_watchpoint)
1410 (print_mention_masked_watchpoint)
1411 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1412 necessary, and adjust.
1413 (watch_command_1): Allocate and initialize a struct watchpoint
1414 instead of a struct breakpoint. Use install_breakpoint.
1415 (catch_exec_command_1): Adjust.
1416 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1418 (delete_breakpoint, enable_breakpoint_disp)
1419 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1420 as necessary, and adjust.
1421 (initialize_breakpoint_ops): Install dtor_watchpoint as
1422 watchpoints' dtor method.
1423 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1424 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1425 to struct watchpoint as necessary, and adjust.
1427 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1429 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1430 the the base class ops table.
1431 (catch_exception_breakpoint_ops)
1432 (catch_exception_unhandled_breakpoint_ops)
1433 (catch_assert_breakpoint_ops): Don't statically initialize.
1434 (initialize_ada_catchpoint_ops): New.
1435 (_initialize_ada_language): Call it.
1436 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1437 (bkpt_breakpoint_ops): Forward declare.
1438 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1439 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1440 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1441 (masked_watchpoint_breakpoint_ops)
1442 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1443 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1444 base class ops table.
1445 (null_re_set, null_check_status, null_works_in_software_mode)
1446 (null_resources_needed, null_print_one_detail): Delete.
1447 (bkpt_dtor): Rename to ...
1448 (base_breakpoint_dtor): ... this. Make static.
1449 (bkpt_allocate_location): Rename to ...
1450 (base_breakpoint_allocate_location): ... this. Make static.
1451 (base_breakpoint_re_set): New.
1452 (internal_error_pure_virtual_called): New.
1453 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1454 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1455 (base_breakpoint_works_in_software_mode)
1456 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1457 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1458 (base_breakpoint_print_recreate): New functions.
1459 (base_breakpoint_ops): New global.
1460 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1461 (bkpt_breakpoint_hit): Make static.
1462 (bkpt_check_status): Delete.
1463 (bkpt_resources_needed): Make static.
1464 (bkpt_works_in_software_mode): Delete.
1465 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1467 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1468 (momentary_breakpoint_ops): Don't statically initialize.
1469 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1471 (tracepoint_insert_location, tracepoint_remove_location)
1472 (tracepoint_check_status, tracepoint_works_in_software_mode)
1473 (tracepoint_print_it): Delete.
1474 (tracepoint_breakpoint_ops): Don't statically initialize.
1475 (initialize_breakpoint_ops): New.
1476 (_initialize_breakpoint): Call it.
1477 * breakpoint.h (null_re_set, null_works_in_software_mode)
1478 (null_resources_needed, null_check_status, null_print_one_detail):
1479 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1480 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1481 (bkpt_check_status, bkpt_resources_needed)
1482 (bkpt_works_in_software_mode, bkpt_print_it)
1483 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1484 Delete declarations.
1485 (initialize_breakpoint_ops): Declare.
1487 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1489 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1490 (momentary_bkpt_print_it): Simplify.
1492 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1494 Split internal, momentary and user breakpoints breakpoint_ops
1497 * breakpoint.c (internal_breakpoint_ops)
1498 (momentary_breakpoint_ops): Forward declare.
1499 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1500 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1501 (create_overlay_event_breakpoint)
1502 (create_std_terminate_master_breakpoint)
1503 (create_exception_master_breakpoint): Create breakpoints with
1504 internal_breakpoint_ops vtable.
1505 (set_longjmp_breakpoint): Create momentary breakpoints with
1506 momentary_breakpoint_ops vtable, using
1507 momentary_breakpoint_from_master.
1508 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1509 (create_solib_event_breakpoint): Create breakpoints with
1510 internal_breakpoint_ops vtable.
1511 (set_momentary_breakpoint): Create breakpoints with
1512 momentary_breakpoint_ops vtable.
1513 (momentary_breakpoint_from_master): New, factored out from
1514 clone_momentary_breakpoint.
1515 (clone_momentary_breakpoint): Adjust.
1516 (watch_command_1): Create scope breakpoints with
1517 momentary_breakpoint_ops vtable.
1518 (bkpt_re_set): Remove handling of internal and momentary
1520 (bkpt_print_mention, bkpt_print_recreate): New.
1521 (bkpt_breakpoint_ops): Adjust.
1522 (internal_bkpt_re_set, internal_bkpt_check_status)
1523 (internal_bkpt_print_it, internal_bkpt_print_mention)
1524 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1525 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1526 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1527 (momentary_bkpt_print_recreate): New.
1528 (momentary_breakpoint_ops): New.
1530 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1532 Implement most breakpoint_ops methods for all breakpoint types,
1533 and move the default handlings to the proper callbacks.
1535 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1536 works_in_software_mode method.
1537 (insert_bp_location): Go through breakpoint_ops->insert_location
1538 for software and hardware watchpoints.
1539 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1541 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1542 for software and hardware watchpoints.
1543 (print_it_typical): Delete.
1544 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1546 (watchpoint_check): Adjust comment.
1547 (bpstat_check_location): Simply always call the breakpoint's
1548 breakpoint_hit method.
1549 (bpstat_stop_status): Always call the breakpoint's check_status
1550 method. Remove special cases for watchpoints and internal event
1551 breakpoints from here (moved to the check_status implementations).
1552 (print_one_breakpoint_location): Assume b->ops is never NULL.
1553 Remove static tracepoint marker id printing from here (moved to
1554 the print_one_detail callback implementation of tracepoints).
1555 (init_bp_location): Assert OPS is never NULL.
1556 (allocate_bp_location): Always call the breakpoint's
1557 allocate_location method, and remove the default code from here.
1558 (free_bp_location): Always call the location's dtor method, and
1559 remove the default code from here.
1560 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1561 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1562 parameter. Pass it down.
1563 (set_raw_breakpoint): Ditto.
1564 (print_it_catch_fork): Adjust to take a bpstat as argument.
1565 (catch_fork_breakpoint_ops): Install methods.
1566 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1567 (catch_vfork_breakpoint_ops): Install methods.
1568 (dtor_catch_syscall): Call the base dtor.
1569 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1570 (catch_syscall_breakpoint_ops): Install methods.
1571 (dtor_catch_exec): Call the base dtor.
1572 (print_it_catch_exec): Adjust to take a bpstat as argument.
1573 (catch_exec_breakpoint_ops): Install methods.
1574 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1575 the breakpoint's resources_needed method, and remove the default
1577 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1579 (clone_momentary_breakpoint): Clone the original's ops.
1580 (mention): Always call the breakpoint's print_mention method, and
1581 remove the default code from here.
1582 (create_breakpoint_sal): Adjust to pass the ops to
1583 set_raw_breakpoint rather than setting it manually.
1584 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1585 ops to set_raw_breakpoint_without_location rather than setting it
1587 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1588 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1589 (ranged_breakpoint_ops): Install methods.
1590 (break_range_command): Adjust to pass the ops to
1591 set_raw_breakpoint rather than setting it manually.
1592 (re_set_watchpoint, breakpoint_hit_watchpoint)
1593 (check_status_watchpoint, resources_needed_watchpoint)
1594 (works_in_software_mode_watchpoint, print_it_watchpoint)
1595 (print_mention_watchpoint, print_recreate_watchpoint): New
1597 (watchpoint_breakpoint_ops): Install new methods.
1598 (print_it_masked_watchpoint): New function.
1599 (masked_watchpoint_breakpoint_ops): Install new methods.
1600 (watch_command_1): Adjust to pass the right breakpoint_ops to
1601 set_raw_breakpoint_without_location rather than setting it
1602 manually later. Record the current pspace.
1603 (print_it_exception_catchpoint): Adjust to take a bpstat as
1605 (gnu_v3_exception_catchpoint_ops): Install new methods.
1606 (say_where): New function.
1607 (null_re_set, null_check_status, null_works_in_software_mode)
1608 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1610 (bp_location_ops): New global.
1611 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1612 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1613 (bkpt_check_status, bkpt_resources_needed)
1614 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1615 (bkpt_print_recreate): New functions.
1616 (bkpt_breakpoint_ops): New global.
1617 (tracepoint_re_set, tracepoint_insert_location)
1618 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1619 (tracepoint_check_status, tracepoint_works_in_software_mode)
1620 (tracepoint_print_it, tracepoint_print_one_detail)
1621 (tracepoint_print_mention, tracepoint_print_recreate): New
1623 (tracepoint_breakpoint_ops): New global.
1624 (delete_breakpoint): Always call the breakpoint's dtor method, and
1625 remove the default handling from here.
1626 (breakpoint_re_set_default): Make static.
1627 (breakpoint_re_set_one): Always call the breakpoints re_set
1628 method, and remove the default handling from here.
1629 (trace_command, ftrace_command, strace_command)
1630 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1631 to create_breakpoint.
1632 (save_breakpoints): Always call the breakpoint's print_recreate
1633 method, and remove the default handling from here.
1635 * ada-lang.c (dtor_exception): Call the base dtor.
1636 (re_set_exception): Call the base method.
1637 (print_it_exception, print_it_catch_exception): Adjust to take a
1639 (catch_exception_breakpoint_ops): Install methods.
1640 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1642 (catch_exception_unhandled_breakpoint_ops): Install methods.
1643 (print_it_catch_assert): Adjust to take a bpstat as argument.
1644 (catch_assert_breakpoint_ops): Install methods.
1646 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1647 to take a bpstat as argument.
1648 (enum print_stop_action): Add describing comments to each enum
1650 (breakpoint_re_set_default): Delete declaration.
1651 (null_re_set, null_works_in_software_mode, null_resources_needed)
1652 (null_check_status, null_print_one_detail): Declare.
1653 (bkpt_breakpoint_ops): Declare.
1654 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1655 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1656 (bkpt_check_status, bkpt_resources_needed)
1657 (bkpt_works_in_software_mode, bkpt_print_it)
1658 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1661 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1662 bkpt_breakpoint_ops.
1663 * python/py-breakpoint.c (bppy_init): Ditto.
1665 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1667 * MAINTAINERS (Write After Approval): Add myself to the list.
1669 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1671 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1673 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1675 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1676 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1677 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1679 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1680 (struct i386_debug_reg_state): New.
1681 (i386_init_dregs): New.
1683 (i386_cleanup_dregs): Use i386_init_dregs.
1684 (i386_show_dr): Add state parameter and adjust.
1685 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1687 (i386_remove_aligned_watchpoint): Likewise.
1688 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1689 (i386_update_inferior_debug_regs): New.
1690 (i386_insert_watchpoint): Work on a local mirror of the debug
1691 registers, and only update the inferior on success.
1692 (i386_remove_watchpoint): Ditto.
1693 (i386_region_ok_for_watchpoint): Adjust.
1694 (i386_stopped_data_address): Adjust.
1695 (i386_insert_hw_breakpoint): Adjust.
1696 (i386_remove_hw_breakpoint): Adjust.
1698 2011-07-22 Tom Tromey <tromey@redhat.com>
1700 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1701 from amd64_pseudo_register_read. Change arguments. Call
1702 mark_value_bytes_unavailable when needed.
1703 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1704 set_gdbarch_pseudo_register_read.
1705 * sentinel-frame.c (sentinel_frame_prev_register): Use
1706 regcache_cooked_read_value.
1707 * regcache.h (regcache_cooked_read_value): Declare.
1708 * regcache.c (regcache_cooked_read_value): New function.
1709 (regcache_cooked_read): Call
1710 gdbarch_pseudo_register_read_value if available.
1711 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1712 (i386_pseudo_register_read): Remove.
1713 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1714 i386_pseudo_register_read. Change arguments. Call
1715 mark_value_bytes_unavailable when needed.
1716 (i386_pseudo_register_read_value): New function.
1717 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1718 not set_gdbarch_pseudo_register_read.
1719 * gdbarch.sh (pseudo_register_read_value): New method.
1720 * gdbarch.c, gdbarch.h: Rebuild.
1721 * findvar.c (value_from_register): Call get_frame_register_value.
1723 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1725 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1727 (display_gdb_prompt): Likewise.
1728 (change_annotation_level): Likewise.
1729 (push_prompt): Likewise.
1730 (pop_prompt): Likewise.
1731 (handle_stop_sig): Use get_prompt with a level.
1732 * top.c (command_loop): Use get_prompt with a level.
1733 (set_async_annotation_level): Use set_prompt with a level.
1734 (get_prefix): New function.
1735 (set_prefix): Ditto.
1736 (set_suffix): Ditto.
1737 (get_suffix): Ditto.
1738 (get_prompt): Accept a level argument.
1739 (set_prompt): Accept a level argument. Free old prompts. Set
1740 new_async_prompt if level is 0.
1741 (init_main): Use set_prompt with a level. Do not set
1743 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1744 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1745 Modify set_prompt, get_prompt to account for levels.
1746 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1748 * python/python.c (before_prompt_hook): Use set_prompt.
1750 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1752 * defs.h: Add guard against inclusion in gdbserver.
1753 (struct ptid, ptid_t): Move to common/ptid.h.
1754 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1755 xsnprintf, internal_error): Move to common/common-utils.h.
1757 * gdb_assert.h: Move into common/ sub-directory.
1758 * gdb_locale.h: Ditto.
1759 * gdb_dirent.h: Ditto.
1760 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1761 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1762 Move into common/ptid.h.
1763 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1764 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1765 Change nomem to malloc_failure.
1766 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1767 * utils.c (nomem): Rename to malloc_failure.
1768 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1769 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1770 (gdb_buildargv): Change nomem to malloc_failure.
1771 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1772 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1773 ptid_is_pid): Move into common/ptid.c.
1774 (initialize_infrun): Delete initialization of null_ptid and
1776 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1777 linux_common_xfer_osdata.
1778 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1779 common/ptid.c and common/buffer.c.
1780 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1781 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1782 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1783 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1785 * common/gdb_assert.h: New.
1786 * common/gdb_dirent.h: New.
1787 * common/gdb_locale.h: New.
1788 * common/buffer.c: New.
1789 * common/buffer.h: New.
1790 * common/ptid.c: New.
1791 * common/ptid.h: New.
1792 * common/xml-utils.c: New.
1793 * common/xml-utils.h: New.
1794 * common/common-utils.c: New.
1795 * common/common-utils.h: New.
1796 * common/linux-osdata.c: New.
1797 * common/linux-osdata.h: New.
1798 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1799 * config/arm/linux.mh (NATDEPFILES): Ditto.
1800 * config/i386/linux.mh (NATDEPFILES): Ditto.
1801 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1802 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1803 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1804 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1805 * config/mips/linux.mh (NATDEPFILES): Ditto.
1806 * config/pa/linux.mh (NATDEPFILES): Ditto.
1807 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1808 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1809 * config/s390/s390.mh (NATDEPFILES): Ditto.
1810 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1811 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1812 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1814 2011-07-21 Matt Rice <ratmice@gmail.com>
1816 * NEWS: Add info macros and info definitions commands.
1818 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1820 * NEWS: Document Python prompt substitution hook.
1822 2011-07-18 Matt Rice <ratmice@gmail.com>
1825 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1826 * macrotab.c (foreach_macro): Ditto.
1827 (foreach_macro_in_scope): Ditto.
1828 * macrocmd.c (print_macro_callback): New function.
1829 (info_macro_command): Move some code to print_macro_definition.
1830 (print_macro_definition): New function.
1831 (print_one_macro): Add new arguments to callback.
1832 (info_definitions_command): New function.
1833 (info_macros_command): Ditto.
1834 (_initialize_macrocmd): Add info macros and info definitions commands.
1835 * symtab.c (add_macro_name): Add new arguments to callback.
1837 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1838 Tom Tromey <tromey@redhat.com>
1840 * top.c (set_prompt): Rewrite to free previous prompt, free
1841 asynch_new_prompt and set both on new prompts.
1842 * event-top.c (display_gdb_prompt): Add prompt substitution
1844 * python/python.c (before_prompt_hook): New function.
1846 2011-07-20 Matt Rice <ratmice@gmail.com>
1848 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1849 arguments to store_unsigned_integer.
1851 2011-07-20 Tom Tromey <tromey@redhat.com>
1853 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1854 in some declaration-only cases.
1856 2011-07-18 Tom Tromey <tromey@redhat.com>
1859 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1860 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1861 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1862 <debug_type_section>: New field.
1863 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1864 (load_cu): Use appropriate section.
1865 (create_signatured_type_table_from_index): Add 'section'
1867 (dwarf2_read_index): Only allow a single .debug_types section.
1868 (dw2_get_file_names): Use appropriate section.
1869 (read_type_comp_unit_head): Add 'section' argument.
1870 (create_debug_types_hash_table): Loop over all .debug_types
1872 (init_cu_die_reader): Use appropriate section.
1873 (process_psymtab_comp_unit, load_partial_comp_unit)
1874 (load_full_comp_unit, read_die_and_children, find_partial_die)
1875 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1876 (lookup_signatured_type_at_offset): Add 'section' argument.
1877 (read_signatured_type_at_offset): Add 'sect' argument.
1878 (read_signatured_type): Use appropriate section.
1879 (set_die_type, get_die_type_at_offset): Update.
1880 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1882 (write_psymtabs_to_index): Don't allow index with more than one
1883 .debug_types section.
1885 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 Fix crash if referenced CU is aged out.
1888 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1889 xfree of block.data.
1890 (indirect_pieced_value): New variable back_to, use to for xfree of
1892 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1894 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1895 (load_cu): New function from ...
1896 (dw2_do_instantiate_symtab): ... the code here ...
1897 (process_full_comp_unit): ... and here.
1898 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1901 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1906 2011-07-19 Gary Benson <gbenson@redhat.com>
1908 * infrun.c (struct execution_control_state): New member
1909 stop_func_filled_in.
1910 (clear_stop_func, fill_in_stop_func): New functions.
1911 (handle_inferior_event): Call clear_stop_func rather than
1912 manipulating the execution control state directly.
1913 Call fill_in_stop_func lazily as required rather than
1914 directly calling find_pc_partial_function in all cases.
1916 2011-07-18 Tom Tromey <tromey@redhat.com>
1918 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1919 checking for variable-sized array.
1921 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1923 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1924 of supported languages.
1925 * varobj.c: Add top definitions and basic implementation of the
1926 following callbacks: ada_number_of_children, ada_name_of_variable,
1927 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1928 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1929 (languages): Register Ada-specific callbacks.
1930 (variable_language): Add the Ada case in the language setter switch.
1932 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1934 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1936 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1939 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1940 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1941 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1942 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1943 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1944 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1945 (struct dwarf_expr_context_funcs): New, move here methods from ...
1946 (struct dwarf_expr_context): ... here. New fields funcs.
1947 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1948 (dwarf_expr_ctx_funcs): New.
1949 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1950 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1951 (needs_frame_ctx_funcs): New.
1952 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1954 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1956 * MAINTAINERS (Write After Approval): Add myself to the list.
1958 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1960 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1961 that CIE pointer of an FDE really points to a CIE .
1963 2011-07-15 Hui Zhu <teawater@gmail.com>
1965 * remote.c (remote_get_trace_status): Add comments.
1967 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1969 Code cleanup - constify struct lval_funcs.
1970 * dwarf2loc.c (pieced_value_funcs): Make it const.
1971 * infrun.c (siginfo_value_funcs): Likewise.
1972 * opencl-lang.c (opencl_value_funcs): Likewise.
1973 * valops.c (value_assign, value_ind): Make the funcs variable const.
1974 * value.c (struct value): Make location.computed.funcs target const.
1975 Rearrange the comments.
1976 (allocate_computed_value): Make the funcs parameter target const.
1977 (value_computed_funcs): Return the funcs target const.
1978 (value_free, value_copy, set_value_component_location): Make the funcs
1980 * value.h (allocate_computed_value): Make the funcs parameter target
1982 (value_computed_funcs): Return the funcs target const.
1983 * windows-tdep.c (tlb_value_funcs): Make it const.
1985 2011-07-14 Hui Zhu <teawater@gmail.com>
1987 * remote.c (remote_get_trace_status): Initialize p.
1989 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * remote.c (remote_get_trace_status): New variable ex. Put
1993 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1995 2011-07-13 Tom Tromey <tromey@redhat.com>
1997 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1998 value_from_contents for final conversion.
2000 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2004 Indent prototypes so they do not get into tags.
2006 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2008 Code cleanup making also optimized out values lazy.
2009 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2010 allocate_optimized_out_value. Twice.
2011 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2012 * findvar.c (read_var_value): Likewise.
2013 * value.c (allocate_optimized_out_value): New function.
2014 * value.h (allocate_optimized_out_value): New declaration.
2016 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2018 Fix occasional crash of CTRL-C during DWARF read in.
2019 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2021 2011-07-11 Tom Tromey <tromey@redhat.com>
2023 * regcache.c (struct regcache_descr): Fix typo.
2024 * i387-tdep.c (i387_supply_xsave): Fix typo.
2026 2011-07-11 Tom Tromey <tromey@redhat.com>
2028 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2029 (read_file_scope, read_type_unit_scope): Use it.
2031 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2036 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2039 * python/python.c: Set gdbpy_should_print_stack default to off.
2040 (set_python): Deprecate maint set python print-stack to
2042 (_initialize_python): Deprecate maint set/show python print-stack.
2043 Add new prefix command, python. Add new setting, print-backtrace.
2044 * NEWS: Document set python print-stack. Document default change.
2046 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2048 * python/py-inferior.c (infpy_dealloc): New function.
2049 (inferior_to_inferior_object): Return a new object, or a
2050 new reference to the existing object.
2051 (find_thread_object): Cleanup references to inferior.
2052 (delete_thread_object): Ditto.
2053 * python/py-infthread.c (create_thread_object): Do not increment
2054 inferior reference count.
2056 2011-07-08 Tom Tromey <tromey@redhat.com>
2058 * dwarf2loc.c (locexpr_regname): New function.
2059 (locexpr_describe_location_piece): Use it.
2060 (disassemble_dwarf_expression): Add per_cu argument. Use
2062 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2063 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2065 (locexpr_describe_location_1): Add per_cu argument.
2066 (locexpr_describe_location): Update.
2067 (loclist_describe_location): Update.
2069 2011-07-08 Tom Tromey <tromey@redhat.com>
2071 * dwarf2expr.c (execute_stack_op): Add QUIT.
2073 2011-07-07 Hui Zhu <teawater@gmail.com>
2076 2011-07-06 Hui Zhu <teawater@gmail.com>
2077 * remote.c (remote_start_remote): Add TRY_CATCH for
2078 remote_get_trace_status.
2079 * tracepoint.c (disconnect_tracing): Ditto.
2081 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2083 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2084 variables as signed, not unsigned.
2086 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2088 * jit.c (jit_inferior_init): Reformat forward declaration.
2090 2011-07-06 Matt Rice <ratmice@gmail.com>
2092 * MAINTAINERS (Write After Approval): Add myself to the list.
2094 2011-07-06 Hui Zhu <teawater@gmail.com>
2096 * remote.c (remote_start_remote): Add TRY_CATCH for
2097 remote_get_trace_status.
2098 * tracepoint.c (disconnect_tracing): Ditto.
2100 2011-07-05 Tom Tromey <tromey@redhat.com>
2102 * symtab.c (operator_chars): Now static.
2103 * linespec.c (operator_chars): Don't declare.
2105 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2107 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2109 2011-07-05 Tom Tromey <tromey@redhat.com>
2111 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2112 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2113 (TYPE_CPLUS_REALLY_JAVA): New macro.
2114 * dwarf2read.c (process_structure_scope): Set
2115 TYPE_CPLUS_REALLY_JAVA.
2117 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2119 * ada-lang.c: Fix typos.
2120 * amd64-tdep.c: Likewise.
2121 * breakpoint.c: Likewise.
2122 * cli/cli-decode.c: Likewise.
2123 * findcmd.c: Likewise.
2124 * inline-frame.c: Likewise.
2125 * mi/mi-main.c: Likewise.
2126 * minsyms.c: Likewise.
2127 * monitor.c: Likewise.
2128 * monitor.h: Likewise.
2129 * prologue-value.c: Likewise.
2130 * reverse.c: Likewise.
2131 * s390-tdep.c: Likewise.
2133 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2135 * jit.c (jit_inferior_init): Forward declare.
2136 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2138 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2140 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2142 2011-07-04 Tristan Gingold <gingold@adacore.com>
2144 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2145 (tcb_fieldno): Add activation_link field.
2146 (get_known_tasks_addr): Moved and rewritten.
2147 (get_tcb_types_info): Set activation_link field.
2148 (read_known_tasks_array): Add parameter. Rewritten.
2149 (read_known_tasks_list): New function.
2150 (read_known_tasks): New function.
2151 (ada_build_task_list): Call read_known_tasks instead of
2152 read_known_tasks_array.
2153 * ravenscar-thread.c: Add first_task_name constant.
2154 (has_ravenscar_runtime): Check for task list too.
2156 2011-07-04 Tristan Gingold <gingold@adacore.com>
2158 * ada-tasks.c: Renames fieldno to actb_fieldno.
2159 (ada_get_task_number): Indentation.
2160 (get_tcb_types_info): Remove all parameters. Write directly
2162 (ptid_from_atcb_common): Adjust.
2163 (read_atcb): Adjust.
2165 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2167 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2169 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2171 * ui-out.c (ui_out_field_core_addr): Mention that the function
2172 description is in the header file.
2173 * ui-out.h (ui_out_field_core_addr): Document function.
2175 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2177 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2178 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2180 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2182 * symtab.c (expand_line_sal): Remove empty line.
2184 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2186 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2187 same way as ELFOSABI_NONE.
2188 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2190 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2192 * breakpoint.c: Fix typos in comments.
2193 * linespec.c: Likewise.
2194 * symtab.c: Likewise.
2196 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2198 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2199 section in separate object files.
2201 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2203 Fix false GCC warning.
2204 * linespec.c (decode_line_1): Initialize values.
2206 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2208 * linespec.c (find_method): Accept the function type automatically only
2209 if it was specified with parameter types.
2211 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2213 Stop on first linespec terminator instead of eating what we can.
2214 * linespec.c (is_linespec_boundary): New function.
2215 (name_end): Remove function.
2216 (keep_name_info): New parameter on_boundary, replace the body.
2217 (decode_line_1): Provide the parameter to keep_name_info.
2218 (decode_compound): Likewise. Drop the trailing java return type
2221 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 Fall back linespec to minimal symbols.
2224 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2225 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2226 (find_method, symbol_found): Change error to cplusplus_error.
2228 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2232 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 Tom Tromey <tromey@redhat.com>
2235 * dwarf2read.c (check_physname): New variable.
2236 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2237 (show_check_physname): New function.
2238 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2240 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2242 * machoread.c (macho_symfile_read): Delete OBE comment.
2244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2246 * machoread.c (struct macho_oso_data): Delete.
2247 (current_oso): Delete.
2248 (macho_relocate_common_syms): New function, mostly extracted
2250 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2251 Remove code that sets and unset current_oso.
2252 (macho_symfile_relocate): Delete handling of common symbols,
2253 now moved to macho_relocate_common_syms.
2255 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2257 * darwin-nat.c (darwin_ptrace): Add documentation.
2258 Set errno to zero before calling ptrace. If ptrace returns
2259 -1 and errno is zero, then change then return zero.
2260 (darwin_kill_inferior): Issue a warning instead of triggering
2261 a failed assertion when the PT_KILL ptrace operations returned
2264 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2266 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2267 only when inf->private->no_ptrace.
2269 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2271 * ada-lang.c (print_it_exception): Print temporary catchpoints
2272 as "Temporary catchpoint".
2273 (print_mention_exception): Likewise.
2275 2011-07-01 Tom Tromey <tromey@redhat.com>
2277 * jv-lang.c (java_language_defn): Use java_printchar,
2279 (java_get_encoding): New function.
2280 (java_emit_char): Use generic_emit_char.
2281 (java_printchar): New function.
2282 (java_printstr): Likewise.
2284 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2286 * ada-typeprint.c (print_record_type): If unable to decode
2287 the name of the parent type, use the encoded name.
2289 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2291 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2292 pointer to constrained packed array type output.
2293 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2294 packed array output.
2296 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2298 * ada-typeprint.c (print_array_type): removed if condition on show
2299 being negative for bounds printing.
2301 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2303 * ada-lang.c (ada_identical_enum_types_p): New function.
2304 (symbols_are_identical_enums): New function.
2305 (remove_extra_symbols): Do nothing if NSYMS < 2.
2306 Use symbols_are_identical_enums.
2308 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2310 * ada-valprint.c (ada_value_print): Handle typedefs.
2312 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2314 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2316 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2318 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2319 (decode_constrained_packed_array): Likewise.
2320 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2322 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2324 * ada-exp.y (convert_char_literal): Handle typedef types.
2326 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2328 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2330 2011-06-30 Tom Tromey <tromey@redhat.com>
2332 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2333 * valops.c (find_overload_match): Call do_cleanups on early exit
2335 * solib.c (solib_find): Call do_cleanups on early exit path.
2337 2011-06-30 Tom Tromey <tromey@redhat.com>
2339 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2340 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2341 return paths. Defer final do_cleanups until last return.
2342 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2345 2011-06-30 Tom Tromey <tromey@redhat.com>
2347 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2349 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2351 * MAINTAINERS (Write After Approval): Add myself to the list.
2353 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Disable epilogue unwinders on recent GCCs.
2356 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2357 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2358 * dwarf2read.c (process_full_comp_unit): Initialize
2359 EPILOGUE_UNWIND_VALID.
2360 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2361 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2362 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2364 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2366 Code cleanup - reformatting.
2367 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2368 (producer_is_gcc_ge_4): ... here, change the return value.
2369 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2372 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2374 Fix non-only rename list for Fortran modules import.
2375 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2376 cp_add_using_directive caller.
2377 (cp_add_using_directive): New parameter excludes, describe it. New
2378 variables ix and param. Compare if also excludes match. Allocate NEW
2379 with variable size, initialize EXCLUDES there.
2380 (cp_lookup_symbol_imports): New variable excludep, test
2381 current->EXCLUDES with it.
2382 * cp-support.h: Include vec.h.
2383 (struct using_direct): New field excludes, describe it.
2384 (DEF_VEC_P (const_char_ptr)): New.
2385 (cp_add_using_directive): New parameter excludes.
2386 * defs.h (const_char_ptr): New typedef.
2387 * dwarf2read.c (read_import_statement): New variables child_die,
2388 excludes and cleanups, read in excludes.
2389 (read_namespace): Adjust the cp_add_using_directive caller.
2391 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2395 negative comparisons.
2397 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2399 * mi/mi-main.c (mi_cmd_list_features): Emit
2400 breakpoint-notifications.
2402 2011-06-29 Tom Tromey <tromey@redhat.com>
2405 * valprint.h (generic_emit_char, generic_printstr): Declare.
2406 * valprint.c (wchar_printable, append_string_as_wide)
2407 (print_wchar): Move from c-lang.c.
2408 (generic_emit_char): New function; mostly taken from c_emit_char.
2409 (generic_printstr): New function; mostly taken from c_printstr.
2410 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2411 represented as arrays.
2412 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2414 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2415 identically to TYPE_CODE_INT.
2416 * f-lang.c (f_get_encoding): New function.
2417 (f_emit_char): Use generic_emit_char.
2418 (f_printchar): Replace comment.
2419 (f_printstr): Use generic_printstr.
2420 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2421 "character" types specially.
2422 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2424 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2426 (c_emit_char): Call generic_emit_char.
2427 (c_printstr): Call generic_printstr.
2429 2011-06-29 Gary Benson <gbenson@redhat.com>
2431 * breakpoint.c (bpstat_what): Removed duplicated case.
2433 2011-06-28 Tom Tromey <tromey@redhat.com>
2435 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2437 2011-06-27 Tom Tromey <tromey@redhat.com>
2439 * valops.c (find_overload_match): Call do_cleanups before early
2441 * top.c (execute_command): Call do_cleanups before early return.
2442 (command_loop): Likewise.
2443 * stack.c (backtrace_command): Make a null cleanup early. Don't
2444 conditionally call do_cleanups.
2445 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2447 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2448 so cleanups are always run.
2449 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2450 * findcmd.c (parse_find_args): Call do_cleanups on early return
2452 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2453 Don't conditionally call do_cleanups.
2454 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2457 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2459 * MAINTAINERS (Write After Approval): Use default email address.
2461 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2463 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2465 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2467 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2468 saved_regs_mask and copied_regs_mask fields.
2469 (sparc_record_save_insn): New prototype.
2470 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2471 (sparc_record_save_insn): New function.
2472 (sparc_analyze_prologue): Add head comment. Recognize store insns
2473 of call-saved registers. Use OFFSET consistently. Recognize flat
2474 frames and cache their settings.
2475 (sparc32_skip_prologue): Handle flat frames.
2476 (sparc_frame_cache): Add frame_offset to the base address.
2477 (sparc32_frame_cache): Adjust to new frame description.
2478 (sparc32_frame_prev_register): Likewise.
2479 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2480 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2481 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2482 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2483 frame by calling sparc_record_save_insn.
2484 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2485 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2486 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2488 2011-06-27 Tristan Gingold <gingold@adacore.com>
2490 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2491 field by map_addr and map_len.
2492 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2493 (munmap_section_buffer): Likewise.
2495 2011-06-24 Tom Tromey <tromey@redhat.com>
2497 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2498 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2499 * python/python.c (gdbpy_parameter): Make 'arg' const.
2500 (execute_gdb_command): Likewise.
2501 (gdbpy_decode_line): Likewise. Copy it.
2502 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2503 (gdbpy_write): Make 'arg' const.
2504 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2506 (gdbpy_lookup_type): Likewise.
2507 * python/py-prettyprint.c (print_children): Make 'name' const.
2508 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2509 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2511 * python/py-function.c (fnpy_init): Make 'name' const.
2512 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2513 (gdbpy_string_to_argv): Make 'input' const.
2514 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2516 * gdbtypes.h (lookup_typename): Update.
2517 * gdbtypes.c (lookup_typename): Make 'name' const.
2518 (lookup_struct): Likewise.
2519 (lookup_union): Likewise.
2520 (lookup_enum): Likewise.
2522 2011-06-24 Tom Tromey <tromey@redhat.com>
2524 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2525 gdb_thread_db.h. Move all common/ entries to be together.
2526 (TAGS): Don't depend on DEPFILES.
2528 2011-06-23 Yao Qi <yao@codesourcery.com>
2530 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2531 * remote.c (remote_start_remote): ... here.
2532 * monitor.c (monitor_open): ... here.
2534 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2536 * gdbtypes.c (append_composite_type_field_aligned): Fix
2537 calculation of bit position based on alignment.
2539 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2541 * breakpoint.c (bpstat_stop_status): Call the check_status
2542 breakpoint_ops method.
2543 (print_one_breakpoint_location): Also print the condition for Ada
2544 exception catchpoints.
2545 (allocate_bp_location): New, factored out from
2546 allocate_bp_location.
2547 (allocate_bp_location): Adjust. Call the owner breakpoint's
2548 allocate_location method, if there is one.
2549 (free_bp_location): Call the locations's dtor method, if there is
2551 (init_raw_breakpoint_without_location): New breakpoint_ops
2553 (set_raw_breakpoint_without_location): Adjust.
2554 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2555 (set_raw_breakpoint): Adjust.
2556 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2557 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2558 re_set and check_status methods.
2559 (init_catchpoint): Don't memset, initialize thread, addr_string
2560 and enable_state. Pass the ops down to init_raw_breakpoint.
2561 (install_catchpoint): Rename to ...
2562 (install_breakpoint): ... this, and make extern.
2563 (create_fork_vfork_event_catchpoint): Adjust.
2564 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2565 re_set and check_status methods.
2566 (create_syscall_event_catchpoint): Adjust.
2567 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2568 (masked_watchpoint_breakpoint_ops): Install NULL
2569 allocate_location, re_set and check_status methods.
2570 (catch_exec_command_1): Adjust.
2571 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2572 re_set and check_status methods.
2573 (create_ada_exception_breakpoint): Rename to ...
2574 (init_ada_exception_breakpoint): ... this. Add a struct
2575 breakpoint parameter, and delete the exp_string, cond_string and
2576 cond parameters. Use init_raw_breakpoint, and don't install or
2577 mention the breakpoint yet. Don't clear breakpoint fields that
2578 init_raw_breakpoint already clears.
2579 (re_set_breakpoint): Delete, split into ...
2580 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2582 (breakpoint_re_set_one): Call the breakpoint's
2583 breakpoint_ops->re_set implementation, if there's one. Adjust.
2584 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2585 (struct bp_location_ops): New type.
2586 (struct bp_location): New field `ops'.
2587 (struct breakpoint_ops): New `allocate_location', `re_set' and
2588 `check_status' fields. Make `breakpoint_hit''s description match
2590 (init_bp_location): Declare.
2591 (breakpoint_re_set_default): Declare.
2592 (create_ada_exception_breakpoint): Rename to ...
2593 (init_ada_exception_breakpoint): ... this. Add a struct
2594 breakpoint parameter, and delete the exp_string, cond_string and
2596 (install_breakpoint): Declare.
2597 * ada-lang.c: Include exceptions.h.
2598 <Ada exceptions description>: Update.
2599 (struct ada_catchpoint_location): New type.
2600 (ada_catchpoint_location_dtor): New function.
2601 (ada_catchpoint_location_ops): New global.
2602 (ada_catchpoint): New type.
2603 (create_excep_cond_exprs): New function.
2604 (dtor_exception, allocate_location_exception, re_set_exception)
2605 (should_stop_exception, check_status_exception): New functions.
2606 (print_one_exception, print_mention_exception)
2607 (print_recreate_exception): Adjust.
2608 (dtor_catch_exception, allocate_location_catch_exception)
2609 (re_set_catch_exception, check_status_catch_exception): New
2611 (catch_exception_breakpoint_ops): Install them.
2612 (dtor_catch_exception_unhandled)
2613 (allocate_location_catch_exception_unhandled)
2614 (re_set_catch_exception_unhandled)
2615 (check_status_catch_exception_unhandled): New functions.
2616 (catch_exception_unhandled_breakpoint_ops): Install them.
2617 (dtor_catch_assert, allocate_location_catch_assert)
2618 (re_set_catch_assert, check_status_catch_assert): New functions.
2619 (catch_assert_breakpoint_ops): Install them.
2620 (ada_exception_catchpoint_p): Delete.
2621 (catch_ada_exception_command_split)
2622 (ada_exception_catchpoint_cond_string): Rename exp_string
2623 parameter to excep_string. Adjust.
2624 (ada_parse_catchpoint_condition): Delete.
2625 (ada_exception_sal): Rename the exp_string parameter to
2626 excep_string. Delete the cond_string and cond parameters.
2628 (ada_decode_exception_location): Rename the exp_string parameter
2629 to excep_string. Delete the cond_string and cond parameters.
2631 (create_ada_exception_catchpoint): New function.
2632 (catch_ada_exception_command, ada_decode_assert_location)
2633 (catch_assert_command): Adjust.
2634 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2636 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2638 * ada-lang.c: Include arch-utils.h.
2639 (ada_decode_exception_location): Make static.
2640 (catch_ada_exception_command): Moved here from breakpoint.c.
2641 (ada_decode_assert_location): Make static.
2642 (catch_assert_command): Moved here from breakpoint.c.
2643 (_initialize_ada_lang): Install the exception and assert
2644 catchpoint commands here.
2645 * ada-lang.h (ada_decode_exception_location)
2646 (ada_decode_assert_location): Delete declarations.
2647 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2649 (create_ada_exception_breakpoint): Make extern.
2650 (catch_ada_exception_command, catch_assert_command): Moved to
2652 (add_catch_command): Make extern.
2653 (_initilize_breakpoint): Don't install the exception and assert
2654 catchpoint commands here.
2655 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2657 (add_catch_command, create_ada_exception_breakpoint): Declare.
2659 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2661 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2662 the breakpoint to the breakpoint chain here.
2663 (set_raw_breakpoint_without_location): Add the breakpoint to the
2664 breakpoint chain here.
2665 (init_raw_breakpoint): Adjust comments.
2666 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2668 (init_catchpoint): Don't set the catchpoint's breakpoint number
2670 (install_catchpoint): New function.
2671 (create_fork_vfork_event_catchpoint)
2672 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2673 use install_catchpoint.
2675 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2677 * breakpoint.c (create_catchpoint_without_mention)
2678 (create_catchpoint): Delete.
2680 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2682 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2683 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2684 reference to exec_pathname.
2685 (struct exec_catchpoint): New type.
2686 (dtor_catch_exec): New function.
2687 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2688 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2689 (catch_exec_command_1): Adjust to use init_catchpoint.
2690 (delete_breakpoint): Remove reference to exec_pathname.
2692 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2694 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2695 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2696 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2697 reference to syscalls_to_be_caught.
2698 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2700 (struct syscall_catchpoint): New type.
2701 (dtor_catch_syscall): New function.
2702 (insert_catch_syscall, remove_catch_syscall)
2703 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2704 (print_recreate_catch_syscall): Adjust.
2705 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2706 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2707 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2708 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2709 (masked_watchpoint_breakpoint_ops)
2710 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2711 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2712 there is one. Remove references to syscalls_to_be_caught.
2713 (catching_syscall_number): Adjust.
2714 * ada-lang.c (catch_exception_breakpoint_ops)
2715 (catch_exception_unhandled_breakpoint_ops)
2716 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2718 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2720 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2722 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2723 reference to forked_inferior_pid.
2724 (struct fork_catchpoint): New type.
2725 (breakpoint_hit_catch_fork, print_it_catch_fork)
2726 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2727 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2728 (create_fork_vfork_event_catchpoint): Adjust to use
2731 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2733 * breakpoint.c (add_to_breakpoint_chain)
2734 (init_raw_breakpoint_without_location): New functions, factored
2736 (set_raw_breakpoint_without_location): ... this one.
2737 (init_raw_breakpoint): New function, factored out from
2738 set_raw_breakpoint and adjusted to use
2739 init_raw_breakpoint_without_location.
2740 (set_raw_breakpoint): Adjust.
2741 (init_catchpoint): New function, factored out from
2742 create_catchpoint_without_mention and adjusted to use
2743 init_raw_breakpoint.
2744 (create_catchpoint_without_mention): Adjust.
2746 2011-06-22 Tom Tromey <tromey@redhat.com>
2748 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2749 argument of 0 specially.
2751 2011-06-22 Yao Qi <yao@codesourcery.com>
2753 * infrun.c (handle_inferior_event): Remove write-only local variable
2754 `sw_single_step_trap_p'.
2756 2011-06-20 Tom Tromey <tromey@redhat.com>
2758 * symtab.c (lookup_language_this): End loop if block is NULL.
2760 2011-06-17 Tom Tromey <tromey@redhat.com>
2762 * valops.c (value_of_this): Use lookup_language_this.
2763 * symtab.h (lookup_language_this): Declare.
2764 * symtab.c (lookup_language_this): New function.
2765 (lookup_symbol_aux): Use lookup_language_this.
2766 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2768 2011-06-17 Tom Tromey <tromey@redhat.com>
2770 * value.h (value_of_this): Update.
2771 (value_of_local): Remove.
2772 * valops.c (value_of_this): Rename from value_of_local. Change
2774 * p-exp.y (exp): Update.
2775 (variable): Likewise.
2776 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2778 2011-06-17 Tom Tromey <tromey@redhat.com>
2780 * valops.c (value_of_local): Complain if NAME is NULL.
2781 * std-operator.def (OP_OBJC_SELF): Remove.
2782 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2783 * objc-exp.y (name_not_typename): Use OP_THIS.
2784 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2786 <OP_OBJC_SELF>: Remove.
2787 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2789 2011-06-16 Tristan Gingold <gingold@adacore.com>
2791 * python/py-events.h (gdb_py_events): Make it extern.
2792 * python/py-evtregistry.c (gdb_py_events): Declare.
2794 2011-06-16 Hui Zhu <teawater@gmail.com>
2796 * remote.c (remote_trace_set_readonly_regions): Add check for
2797 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2800 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2802 * arm-linux-tdep.c: Include "auxv.h".
2804 (ARM_LINUX_SIZEOF_VFP): Define.
2805 (arm_linux_supply_vfp): New function.
2806 (arm_linux_collect_vfp): Likewise.
2807 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2808 (arm_linux_fpa_regset_sections): New variable.
2809 (arm_linux_vfp_regset_sections): Likewise.
2810 (arm_linux_core_read_description): New function.
2811 (arm_linux_init_abi): Install arm_linux_core_read_description and
2812 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2813 appropriate for the architecture.
2814 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2815 (tdesc_arm_with_m): Declare.
2816 (tdesc_arm_with_iwmmxt): Likewise.
2817 (tdesc_arm_with_vfpv2): Likewise.
2818 (tdesc_arm_with_vfpv3): Likewise.
2819 (tdesc_arm_with_neon): Likewise.
2820 * arm-linux-nat.c: Move features/*.c includes ...
2821 * arm-tdep.c: ... here.
2822 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2823 target description data structures ...
2824 * arm-tdep.c (_initialize_arm_tdep): ... here.
2825 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2826 HWCAP_VFPv3D16): Move definitions ...
2827 * arm-linux-tdep.h: ... here.
2829 2011-06-15 Hui Zhu <teawater@gmail.com>
2831 * remote.c (remote_trace_set_readonly_regions): Add a check for
2834 2011-06-14 Tom Tromey <tromey@redhat.com>
2836 * coffread.c (coffread_objfile): Rename from current_objfile.
2837 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2838 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2840 2011-06-14 Tom Tromey <tromey@redhat.com>
2842 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2843 (class_symtab): Remove.
2844 (jv_dynamics_progspace_key): New global.
2845 (jv_per_objfile_free): Reset program space data. Update assert.
2846 Don't clear globals.
2847 (get_dynamics_objfile): Use and set program space data.
2848 (get_java_class_symtab): Use get_dynamics_objfile.
2849 (add_class_symbol): Likewise.
2850 (java_link_class_type): Likewise.
2851 (java_object_type, jv_clear_object_type, set_java_object_type):
2853 (get_java_object_type): Update. Don't cache result.
2854 (is_object_type): Don't call set_java_object_type.
2855 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2856 initialize jv_dynamics_progspace_key.
2858 2011-06-14 Tom Tromey <tromey@redhat.com>
2860 * symtab.h (current_objfile): Don't declare.
2861 * objfiles.h (current_objfile): Don't declare.
2862 * objfiles.c (current_objfile): Remove.
2863 * mdebugread.c (current_objfile): New file-scope global.
2864 * dbxread.c (current_objfile): New file-scope global.
2865 * coffread.c (current_objfile): New file-scope global.
2867 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2869 * top.h (line): Rename to ...
2870 (saved_command_line): ... this.
2871 (linesize): Rename to ...
2872 (saved_command_line_size): ... this.
2873 * top.c (line): Rename to ...
2874 (saved_command_line): ... this.
2875 (linesize): Rename to ...
2876 (saved_command_line_size): ... this.
2877 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2878 * event-top.c (command_line_handler): Adjust.
2879 * main.c (captured_main): Adjust.
2881 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2883 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2884 get_frame_func instead of get_frame_pc to determine the code
2885 address used to construct the frame ID.
2886 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2887 (i386_epilogue_frame_this_id): Likewise.
2888 (i386_epilogue_frame_prev_register): New function.
2889 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2890 (i386_stack_tramp_frame_sniffer): Fix coding style.
2891 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2892 (i386_gdbarch_init): Fix comments.
2894 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2896 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2897 instruction when walking back through the instruction stream.
2899 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2901 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2902 fullname parameters order.
2904 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2907 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2909 * psymtab.c (map_symbol_filenames_psymtab)
2910 (map_partial_symbol_filenames): Likewise.
2911 * psymtab.h: Include symfile.h.
2912 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2913 * symfile.h (symbol_filename_ftype): New.
2914 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2915 map_symbol_filenames, clarify more the naming in comment.
2917 2011-06-07 Doug Evans <dje@google.com>
2919 * cc-with-index.sh: Fix typos in comment.
2920 Look for ../../gdb, for fullname.exp.
2922 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2923 Pedro Alves <pedro@codesourcery.com>
2925 * cli/cli-cmds.c (shell_escape): Use waitpid.
2926 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2928 2011-06-07 Tristan Gingold <gingold@adacore.com>
2930 * xcoffread.c (dwarf2_xcoff_names): New variable.
2931 (aix_process_linenos): Add a guard.
2932 (xcoff_symfile_finish): Free dwarf2.
2933 (xcoff_initial_scan): Add dwarf2 support.
2935 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2937 * infcall.c (run_inferior_call): Don't mask async. Instead force
2938 a synchronous wait, if the target can async.
2940 * target.h (struct target_ops): Delete to_async_mask.
2941 (target_async_mask): Delete.
2942 * target.c (update_current_target): Delete references to to_async_mask.
2943 * linux-nat.c (linux_nat_async_mask_value): Delete.
2944 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2945 to linux_nat_async_mask_value.
2946 (linux_nat_async_mask): Delete.
2947 (linux_nat_async, linux_nat_close): Remove references to
2948 linux_nat_async_mask_value.
2949 * record.c (record_async_mask_value): Delete.
2950 (record_async): Remove references to record_async_mask_value.
2951 (record_async_mask): Delete.
2952 (record_can_async_p, record_is_async_p): Remove references to
2953 record_async_mask_value.
2954 (init_record_ops, init_record_core_ops): Remove references to
2956 * remote.c (remote_async_mask_value): Delete.
2957 (init_remote_ops): Remove reference to remote_async_mask.
2958 (remote_can_async_p, remote_is_async_p): Remove references to
2959 remote_async_mask_value.
2960 (remote_async): Remove references to remote_async_mask_value.
2961 (remote_async_mask): Delete.
2963 * infrun.c (fetch_inferior_event): Don't claim registers changed
2964 if the current thread is already not executing.
2966 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2968 From Stephen Kitt <steve@sk2.org>
2969 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2970 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2972 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2974 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2975 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2977 2011-06-03 Tom Tromey <tromey@redhat.com>
2979 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2981 * python/py-exitedevent.c (create_exited_event_object): Change
2982 type of 'exit_code'. Optionally add exit_code attribute.
2983 (emit_exited_event): Change type of 'exit_code'.
2984 * python/py-event.h (emit_exited_event): Update.
2985 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2986 * infrun.c (handle_inferior_event): Set exit code fields on
2988 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2990 * inferior.c (exit_inferior_1): Initialize new fields.
2992 2011-06-03 Tom Tromey <tromey@redhat.com>
2994 * dwarf2expr.c (get_signed_type): New function.
2995 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2997 2011-06-02 Keith Seitz <keiths@redhat.com>
2999 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3001 2011-06-02 Pedro Alves <pedro@codesourcery.com>
3003 * top.h (simplified_command_loop): Delete declaration.
3005 2011-06-01 Mike Frysinger <vapier@gentoo.org>
3007 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3008 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3010 2011-06-01 Yao Qi <yao@codesourcery.com>
3012 * objfiles.h (obj_section_addr): Update reference to objfile from
3014 (obj_section_endaddr): Likewise.
3016 2011-06-01 Daniel Jacobowitz <drow@false.org>
3018 * MAINTAINERS: Update my email address and affiliation. Also
3019 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3021 2010-05-31 Keith Seitz <keiths@redhat.com>
3024 * linespec.c (get_search_block): New function.
3025 (find_methods): Add FILE_SYMTATB parameter and use it and
3026 get_search_block to pass an appropriate block to
3027 lookup_symbol_in_namespace.
3028 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3029 Check if *ARGPTR starts with a filename first.
3030 If it does, call locate_first_half again to locate the next
3031 "first half" of the linespec.
3032 Pass FILE_SYMTATB to decode_objc and decode_compound.
3033 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3034 (locate_first_half): Stop on the first colon seen.
3035 (decode_compound): Add FILE_SYMTAB parameter.
3036 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3037 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3038 get_search_block with lookup_symbol.
3039 (find_method): Add FILE_SYMTAB parameter and pass it to
3041 (decode_objc): Use get_search_block.
3043 2010-05-31 Keith Seitz <keiths@redhat.com>
3046 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3047 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3048 and CP_ANONYMOUS_NAMESPACE_LEN.
3049 (cp_is_anonymous): Likewise.
3050 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3051 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3052 * dwarf2read.c (namespace_name): Likewise.
3053 (fixup_partial_die): Likewise.
3054 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3055 seen in the input, keep it.
3057 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3059 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3060 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3061 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3062 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3063 * remote.c (_initialize_remote): Register
3064 async_remote_interrupt_twice directly as
3065 sigint_remote_twice_token event.
3067 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3069 * target.h (enum inferior_event_type): Delete INF_ERROR.
3070 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3072 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3074 * interps.c (interp_set): Don't cancel continuations.
3076 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3078 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3080 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3082 * continuations.h (continuation_ftype): Add `err' parameter.
3083 Document parameters.
3084 (do_all_continuations, do_all_continuations_thread)
3085 (do_all_intermediate_continuations)
3086 (do_all_intermediate_continuations_thread)
3087 (do_all_inferior_continuations): Add `err' parameter.
3088 * continuations.c (do_my_continuations_1, do_my_continuations)
3089 (do_all_inferior_continuations, do_all_continuations_ptid)
3090 (do_all_continuations_thread_callback)
3091 (do_all_continuations_thread, do_all_continuations)
3092 (do_all_intermediate_continuations_thread_callback)
3093 (do_all_intermediate_continuations_thread)
3094 (do_all_intermediate_continuations): Add `err' parameter, and pass
3095 it down all the way to the continuations proper.
3096 * inf-loop.c (inferior_event_handler): If fetching an inferior
3097 event throws an error, don't pop the target, and still call the
3098 continuations, but with `err' set. Adjust all other continuation
3100 * breakpoint.c (until_break_command_continuation): Add `err'
3102 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3103 issue another step if `err' is set.
3104 (struct until_next_continuation_args): New.
3105 (until_next_continuation): Add `err' parameter. Adjust.
3106 (until_next_command): Adjust.
3107 (struct finish_command_continuation_args): Add `thread' field.
3108 (finish_command_continuation): Add `err' parameter. Handle it.
3109 (finish_forward): Adjust.
3110 (attach_command_continuation): Add `err' parameter. Handle it.
3111 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3112 cancel the continuations.
3113 * interps.c (interp_set): Adjust to cancel the continuations.
3114 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3115 continuations rather than discarding.
3116 (free_thread): Don't clear thread inferior resources here.
3117 (delete_thread_1): Do it here instead. And do it before removing
3118 the thread from the threads list. Tag the thread as exited before
3119 clearing thread inferior resources.
3121 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3123 * infcall.c (call_function_by_hand): Rephrase error message.
3125 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3127 * defs.h (struct thread_info, struct inferior): Delete forward
3129 * breakpoint.h (struct thread_info): New forward declaration.
3130 * observer.sh (struct inferior): New forward declaration.
3131 * python/python-internal.h (struct inferior): New forward
3134 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3136 * defs.h (struct continuation, continuation_ftype)
3137 (continuation_free_arg_ftype, add_continuation)
3138 (do_all_continuations, do_all_continuations_thread)
3139 (discard_all_continuations, discard_all_continuations_thread)
3140 (add_intermediate_continuation, do_all_intermediate_continuations)
3141 (do_all_intermediate_continuations_thread)
3142 (discard_all_intermediate_continuations)
3143 (discard_all_intermediate_continuations_thread)
3144 (add_inferior_continuation, do_all_inferior_continuations)
3145 (discard_all_inferior_continuations): Move to ...
3146 * continuations.h: ... this new file.
3147 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3148 infcmd.c, inferior.c, infrun.c, interps.c: Include
3151 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3152 Doug Evans <dje@google.com>
3154 Fix PR 10970, PR 12702.
3155 * linux-nat.c (linux_lwp_is_zombie): New function.
3156 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3157 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3159 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3161 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3163 (add_continuation, add_intermediate_continuation)
3164 (add_inferior_continuation): Use them.
3165 * continuations.c (struct continuation): Use them.
3166 (make_continuation_ftype): Delete.
3167 (make_continuation, add_inferior_continuation, add_continuation)
3168 (add_intermediate_continuation): Use continuation_ftype and
3169 continuation_free_arg_ftype. Rename parameters to shorter names.
3171 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3173 * continuations.c (make_continuation): Make it return void.
3174 (do_my_continuations): Rename to ...
3175 (do_my_continuations_1): ... this. Remove old_chain parameter and
3177 (do_my_continuations): New.
3178 (discard_my_continuations): Rename to ...
3179 (discard_my_continuations_1): ... this. Remove old_chain
3180 parameter and adjust.
3181 (discard_my_continuations): New.
3182 (add_inferior_continuation): Simplify.
3183 (do_all_inferior_continuations): Reimplement on top
3184 do_my_continuations.
3185 (discard_all_inferior_continuations): Simplify.
3186 (add_continuation): Simplify.
3187 (do_all_continuations_ptid): Simplify.
3188 (discard_all_continuations_thread_callback): Simplify.
3189 (add_intermediate_continuation): Simplify.
3190 (discard_all_intermediate_continuations_thread_callback):
3193 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3195 * utils.c (struct continuation, add_continuation)
3196 (add_inferior_continuation)
3197 (do_all_inferior_continuations, discard_all_inferior_continuations)
3198 (restore_thread_cleanup, do_all_continuations_ptid)
3199 (do_all_continuations_thread_callback)
3200 (do_all_continuations_thread, do_all_continuations)
3201 (discard_all_continuations_thread_callback)
3202 (discard_all_continuations_thread, discard_all_continuations)
3203 (add_intermediate_continuation)
3204 (do_all_intermediate_continuations_thread_callback)
3205 (do_all_intermediate_continuations_thread)
3206 (do_all_intermediate_continuations)
3207 (discard_all_intermediate_continuations_thread_callback)
3208 (discard_all_intermediate_continuations_thread)
3209 (discard_all_intermediate_continuations): Move to ...
3210 * continuations.c: ... this new file, and adjust to no longer
3211 implement continuations on top of cleanups.
3212 * Makefile.in (SFILES): Add continuations.c.
3213 (COMMON_OBS): Add continuations.o.
3215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3217 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3218 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3219 Internal error on invalid values.
3220 * reverse.c: Don't handle EXEC_ERROR.
3221 * mi/mi-main.c: Don't handle EXEC_ERROR.
3223 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3225 * record.c: Include event-loop.h, inf-loop.h.
3226 (record_beneath_to_async): New global.
3227 (tmp_to_async): New global.
3228 (record_async_inferior_event_token): New global.
3229 (record_open_1): Don't error out if async is enabled.
3230 (record_open): Handle to_async. Create an async event source in
3232 (record_close): Delete the async event source.
3233 (record_resumed): New global.
3234 (record_execution_dir): New global.
3235 (record_resume, record_core_resume): Set them. Register the
3236 target on the event loop.
3237 (record_wait): Rename to ...
3238 (record_wait_1): ... this. Add more debug output. Handle
3239 TARGET_WNOHANG, and the target beneath returning
3240 TARGET_WAITKIND_IGNORE.
3241 (record_wait): Reimplement on top of record_wait_1.
3242 (record_async_mask_value): New global.
3243 (record_async, record_async_mask, record_can_async_p)
3244 (record_is_async_p, record_execution_direction): New functions.
3245 (init_record_ops, init_record_core_ops): Install new methods.
3246 * infrun.c (fetch_inferior_event): Temporarily switch the global
3247 execution direction to the direction the target was going.
3248 (execution_direction): Change type to int.
3249 * target.c (default_execution_direction): New function.
3250 (update_current_target): Inherit and de_fault
3251 to_execution_direction.
3252 * target.h (struct target_ops) <to_execution_direction>: New
3254 (target_execution_direction): New macro.
3255 * inferior.h (execution_direction): Change type to int.
3257 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3259 * infcall.c (call_function_by_hand): Don't allow calling functions
3260 in reverse execution mode.
3262 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3264 * infcmd.c (finish_command): Allow async finish in reverse.
3266 2011-05-26 Yao Qi <yao@codesourcery.com>
3268 * gdb_thread_db.h: Delete. Move to ...
3269 * common/gdb_thread_db.h: ... here.
3271 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3273 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3274 function's entry point instead of a manually managed momentary
3275 breakpoint, and only ever issue one proceed call.
3276 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3277 doing a reverse-finish, switch to stepi mode, to do another step.
3278 (insert_step_resume_breakpoint_at_sal): Make public.
3279 (normal_stop): No need to save function value return registers if
3281 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3283 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3285 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3286 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3287 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3289 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3290 step-resume breakpoints.
3291 (print_it_typical): Handle bp_hp_step_resume.
3292 (bpstat_what): Ditto.
3293 (bptype_string): Ditto.
3294 (print_one_breakpoint_location): Ditto.
3295 (allocate_bp_location): Ditto.
3297 (breakpoint_re_set_one): Ditto.
3298 * infrun.c (handle_inferior_event): Adjust. Split
3299 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3300 BPSTAT_WHAT_HP_STEP_RESUME.
3301 (insert_step_resume_breakpoint_at_sal): Rename to ...
3302 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3303 parameter. Handle it.
3304 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3305 insert_step_resume_breakpoint_at_sal_1.
3306 (insert_step_resume_breakpoint_at_frame): Rename to ...
3307 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3308 set a high-priority step-resume breakpoint.
3309 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3310 (insert_step_resume_breakpoint_at_caller): Ditto.
3312 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3314 * breakpoint.c (iterate_over_related_breakpoints): New.
3315 (do_map_delete_breakpoint): New.
3316 (delete_command): Pass do_map_delete_breakpoint to
3317 map_breakpoint_numbers.
3318 (do_disable_breakpoint): New.
3319 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3321 (do_enable_breakpoint): Rename to ...
3322 (enable_breakpoint_disp): ... this.
3323 (enable_breakpoint): Adjust.
3324 (do_enable_breakpoint): New.
3325 (enable_once_breakpoint): Delete.
3326 (do_map_enable_breakpoint): New.
3327 (do_map_enable_once_breakpoint): New.
3328 (enable_once_command, enable_delete_command)
3329 (delete_trace_command): Iterate over the breakpoint's related
3332 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3334 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3335 for ALPHA_ZERO_REGNUM.
3336 (alpha_supply_int_regs): Explicitly supply zero as the value for
3337 ALPHA_ZERO_REGNUM in the register cache.
3338 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3340 2011-05-26 Yao Qi <yao@codesourcery.com>
3342 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3344 2011-05-26 Tristan Gingold <gingold@adacore.com>
3346 * symfile.h (struct dwarf2_section_names): New type.
3347 (struct dwarf2_debug_sections): New type.
3348 (dwarf2_has_info): Add parameter.
3349 * dwarf2read.c (dwarf2_elf_names): New variable.
3350 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3351 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3352 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3353 (dwarf2_has_info): Add names parameter. Pass names
3354 to dwarf2_locate_sections.
3355 (section_is_p): Rewrite using the names parameter.
3356 (dwarf2_locate_sections): Use section names from the names parameter.
3357 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3358 * elfread.c (read_psyms): Ditto.
3359 * machoread.c (macho_symfile_read): Ditto.
3361 2011-05-25 Andreas Schwab <schwab@redhat.com>
3364 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3366 2011-05-24 Keith Seitz <keiths@redhat.com>
3369 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3370 (decode_compound): Unconditionally call keep_name_info.
3372 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3374 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3375 scope, clear its command list.
3376 (map_breakpoint_numbers): Don't walk the related breakpoints list
3379 2011-05-24 Tom Tromey <tromey@redhat.com>
3381 * MAINTAINERS: Move Jim Blandy to past maintainers.
3383 2011-05-24 Tristan Gingold <gingold@adacore.com>
3385 * symfile.h (enum dwarf2_section_enum): New type.
3386 (dwarf2_get_section_info): New prototype.
3387 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3388 section_name by sect. Use a switch to select the info.
3389 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3390 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3392 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3394 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3395 shared library event breakpoint if there's no execution.
3397 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3399 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3400 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3402 2011-05-23 Tom Tromey <tromey@redhat.com>
3404 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3407 2011-05-23 Doug Evans <dje@google.com>
3409 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3410 entry for RuntimeError to doc string.
3412 2011-05-23 Jerome Guitton <guitton@adacore.com>
3414 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3415 sequence for probing loops.
3417 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3419 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3422 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3424 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3425 zero as the value for %g0 in the register cache.
3426 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3427 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3429 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3431 * infrun.c (proceed): Set previous_inferior_ptid here.
3432 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3433 inferior_ptid, not null_ptid.
3434 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3435 (fetch_inferior_event): Nor here.
3437 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3439 * inf-loop.c (inferior_event_handler): Only output a message if
3442 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3444 * MAINTAINERS: Update my e-mail address.
3446 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3448 * infrun.c (proceed): Switch the inferior event loop to
3449 INF_EXEC_COMPLETE if the target refused to resume from a
3452 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3454 * infcmd.c: Include "inf-loop.h".
3455 (step_once): When stepping into an inline subroutine, pretend the
3456 target has run. If the target can async, switch the inferior
3457 event loop to INF_EXEC_COMPLETE.
3458 * inferior.h (user_visible_resume_ptid): Declare.
3459 * infrun.c (user_visible_resume_ptid): New function, factored out
3462 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3463 that the current thread is running. Merge async and sync
3466 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3468 * infcmd.c (step_1): Simplify synchronous case.
3470 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3472 * tracepoint.c: Include exceptions.h.
3473 (TFILE_PID): Move higher in file.
3474 (tfile_open): Delay pushing the tfile target until we're assured
3475 the tfile header is present in the file. Wrap reading the initial
3476 newline-terminated lines in TRY_CATCH. Pop the target if the
3477 initial setup failed. Add the tfile's thread immediately
3478 aftwards, before any non-essential setup. Don't skip
3479 post_create_inferior if there are no traceframes present in the
3481 (tfile_close): Remove redundant check for null before xfree call.
3482 (tfile_thread_alive): New function.
3483 (init_tfile_ops): Register it as to_thread_alive callback.
3485 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3487 * tracepoint.c (tfile_open): Delete #if 0'd code.
3489 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3491 Fix -readnow for -gdwarf-4 unused type units.
3492 * dwarf2read.c (struct signatured_type): Remove the field offset.
3493 (create_signatured_type_table_from_index): Remove its initialization.
3494 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3495 instead. Add a complaint call.
3496 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3497 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3498 (lookup_signatured_type_at_offset, read_signatured_type)
3499 (write_one_signatured_type): Update the field for per_cu.
3501 2011-05-19 Tom Tromey <tromey@redhat.com>
3503 * python/py-inferior.c (python_inferior_exit): Use
3505 (python_on_resume): Likewise.
3507 2011-05-19 Matt Rice <ratmice@gmail.com>
3509 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3511 2011-05-19 Hui Zhu <teawater@gmail.com>
3513 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3515 2011-05-19 Hui Zhu <teawater@gmail.com>
3517 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3519 2011-05-18 Tom Tromey <tromey@redhat.com>
3521 * dwarf2read.c (dwarf2_add_field): Constify.
3522 * value.c (value_static_field): Constify.
3523 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3525 * ax-gdb.c (gen_static_field): Constify
3527 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3529 * linux-nat.c (kill_callback): Use SIGKILL first.
3531 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3533 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3535 2011-05-18 Tom Tromey <tromey@redhat.com>
3537 * value.c (value_fn_field): Constify.
3538 * symtab.c (gdb_mangle_name): Constify.
3539 * stabsread.c (update_method_name_from_physname): Make 'physname'
3541 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3542 const. Use explicit fputc_filtered loop.
3543 (pascal_type_print_base): Constify.
3544 * p-lang.h (pascal_type_print_method_args): Update.
3545 * linespec.c (add_matching_methods): Constify.
3546 (add_constructors): Likewise.
3547 * jv-typeprint.c (java_type_print_base): Constify.
3548 * gdbtypes.h (struct cplus_struct_type)
3549 <fn_fieldlist.fn_field.physname>: Now const.
3550 * dwarf2read.c (compute_delayed_physnames): Constify.
3551 (dwarf2_add_member_fn): Likewise.
3552 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3554 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3556 * infrun.c (resume): Mention which is the current thread, and its
3557 current PC in debug output.
3558 (prepare_to_proceed): Mention the thread switching in debug
3561 2011-05-18 Tom Tromey <tromey@redhat.com>
3563 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3564 path check. Use xmalloc and cleanups.
3565 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3567 2011-05-17 Tom Tromey <tromey@redhat.com>
3569 * cp-valprint.c (cp_print_value_fields): Catch errors from
3572 2011-05-17 Tom Tromey <tromey@redhat.com>
3574 * dwarf2read.c (dwarf2_get_die_type): Call
3575 get_die_type_at_offset.
3576 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3577 get_base_type function.
3579 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3581 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3584 2011-05-16 Doug Evans <dje@google.com>
3586 * python/py-auto-load.c (source_section_scripts): Mention objfile
3589 2011-05-15 Doug Evans <dje@google.com>
3591 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3592 (try_thread_db_load_from_pdir): Call it. If unable to find
3593 libthread_db in directory of libpthread, see if we're looking at
3594 the separate-debug-info copy.
3596 * python/py-autoload.c (print_script): Print "Missing" instead of
3597 "No" for missing scripts.
3598 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3600 2011-05-13 Doug Evans <dje@google.com>
3602 * ui-file.c (stdio_file_write_async_safe): Add comment.
3604 2011-05-14 Hui Zhu <teawater@gmail.com>
3606 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3608 2011-05-13 Doug Evans <dje@google.com>
3610 Support $pdir and $sdir in libthread-db-search-path.
3611 * NEWS: Mention $sdir,$pdir.
3612 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3613 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3614 (try_thread_db_load_from_sdir): New function.
3615 (try_thread_db_load_from_dir): New function.
3616 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3617 system directories if search of libthread-db-search-path fails,
3618 that is now done via $sdir.
3619 (has_libpthread): New function.
3620 (thread_db_load): Remove search for libthread_db in directory of
3621 libpthread, that is now done via $pdir.
3623 * NEWS: Mention "info auto-load-scripts".
3624 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3625 script_not_found_warning_printed.
3626 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3627 all callers updated. Initialize script_not_found_warning_printed.
3628 (get_auto_load_pspace_data_for_loading): New function.
3629 (maybe_add_script): New function.
3630 (source_section_scripts): Simplify. Only print one warning regardless
3631 of the number of auto-load scripts not found.
3632 (clear_section_scripts): Clear script_not_found_warning_printed.
3633 (auto_load_objfile_script): Record script in hash table.
3634 (count_matching_scripts): New function.
3635 (maybe_print_script): Renamed from maybe_print_section_script, all
3636 callers updated. Rewrite to use ui_out_*.
3637 (info_auto_load_scripts): Renamed from
3638 maintenance_print_section_scripts, all callers updated.
3639 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3640 renamed as "info auto-load-scripts".
3642 2011-05-13 Tom Tromey <tromey@redhat.com>
3644 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3645 (read_sleb128): Likewise.
3647 2011-05-13 Tom Tromey <tromey@redhat.com>
3649 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3652 2011-05-13 Doug Evans <dje@google.com>
3654 * linux-nat.c (debug_linux_nat_async): Delete.
3655 Replace all references to use debug_linux_nat instead.
3656 (show_debug_linux_nat_async): Delete.
3657 (sigchld_handler): Call ui_file_write_async_safe instead of
3659 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3660 * ui-file.c (struct ui_file): New member to_write_async_safe.
3661 (null_file_write_async_safe): New function.
3662 (ui_file_write_async_safe): New function.
3663 (set_ui_file_write_async_safe): New function.
3664 (ui_file_new): Initialize to_write_async_safe.
3665 (stdio_file_write_async_safe): New function.
3666 (struct stdio_file): New member fd.
3667 (stdio_file_new): Initialize to_write_async_safe, fd.
3668 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3670 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3671 (set_ui_file_write_async_safe): Declare.
3672 (ui_file_write_async_safe): Declare.
3674 2011-05-13 Tom Tromey <tromey@redhat.com>
3676 * utils.c (do_value_free): New function.
3677 (make_cleanup_value_free): Likewise.
3678 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3680 (dwarf2_loc_desc_needs_frame): Call
3681 make_cleanup_value_free_to_mark.
3682 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3683 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3685 (new_dwarf_expr_context): Don't call value_mark.
3686 * dwarf2-frame.c (execute_stack_op): Call
3687 make_cleanup_value_free_to_mark.
3688 * defs.h (make_cleanup_value_free): Declare.
3690 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3692 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3693 prepare_execute_command.
3694 * top.c (prepare_execute_command): Return cleanup.
3695 (execute_command): Use cleanup from prepare_execute_command.
3696 * top.h (prepare_execute_command): Change prototype to return
3698 * defs.h (struct value): Add opaque declaration.
3699 (make_cleanup_value_free_to_mark): Add prototype.
3700 * utils.c (do_value_free_to_mark): New function.
3701 (make_cleanup_value_free_to_mark): Likewise.
3703 2011-05-12 Tom Tromey <tromey@redhat.com>
3705 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3706 cast left-hand-side to unsigned.
3708 2011-05-12 Tom Tromey <tromey@redhat.com>
3711 * value.h (value_from_contents): Declare.
3712 * value.c (value_from_contents): New function.
3713 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3714 (dwarf2_get_die_type): New function.
3715 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3716 (allocate_piece_closure): Acquire reference to values.
3717 (read_pieced_value): Update for value-based expressions.
3718 (write_pieced_value): Likewise.
3719 (free_pieced_value_closure): Call value_free as needed.
3720 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3721 Update for value-based expressions.
3722 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3723 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3724 <get_base_type>: New field.
3725 (struct dwarf_expr_piece) <v.value>: Change type.
3726 <v.regno>: New field.
3727 (struct dwarf_expr_context) <mark>: New field.
3728 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3729 (dwarf_expr_pop, dwarf_expr_push): Remove.
3730 (dwarf_expr_push_address): Declare.
3731 * dwarf2expr.c (dwarf_arch_cookie): New global.
3732 (struct dwarf_gdbarch_types): New.
3733 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3735 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3737 (dwarf_expr_push_address): New function.
3738 (dwarf_expr_pop): Now static.
3739 (dwarf_expr_fetch): Change return type.
3740 (dwarf_require_integral): New function.
3741 (dwarf_expr_fetch): Simplify.
3742 (add_piece): Update.
3743 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3745 (execute_stack_op) <sign_ext>: Remove.
3746 Use values for DWARF stack.
3747 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3748 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3750 (_initialize_dwarf2expr): New function.
3751 (add_piece): Update.
3752 (new_dwarf_expr_context): Set new field.
3753 (free_dwarf_expr_context): Call value_free_to_mark.
3754 * dwarf2-frame.c (no_base_type): New function.
3755 (execute_stack_op): Set get_base_type field. Update.
3757 2011-05-12 Tom Tromey <tromey@redhat.com>
3759 * dwarf2read.c (read_common_block): Fix formatting.
3761 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3763 * breakpoint.c (disable_breakpoint): Disable all locations
3764 associated with a tracepoint on target if a trace experiment is
3766 (disable_command): Disable a specific tracepoint location on target if
3767 a trace experiment is running.
3768 (do_enable_breakpoint): Enable all locations associated with a
3769 tracepoint on target if a trace experiment is running.
3770 (enable_command) Enable a specific tracepoint location on target if a
3771 trace experiment is running.
3772 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3773 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3774 to_disable_tracepoint.
3775 * target.h: Add declaration of struct bp_location.
3776 (struct target_ops): Add new functions
3777 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3778 to_disable_tracepoint to target operations.
3779 (target_supports_enable_disable_tracepoint): New macro.
3780 (target_enable_tracepoint): New macro.
3781 (target_disable_tracepoint): New macro.
3782 * remote.c (struct remote_state): Add new field.
3783 (remote_enable_disable_tracepoint_feature): New.
3784 (remote_protocol_features): Add new entry.
3785 (remote_supports_enable_disable_tracepoint): New.
3786 (remote_enable_tracepoint): New.
3787 (remote_disable_tracepoint): New.
3788 (init_remote_ops): Add remote_enable_tracepoint,
3789 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3790 to remote operations.
3791 * tracepoint.c (start_tracing): Allow tracing to start without any
3792 tracepoints enabled with just a warning if they can be re-enabled
3794 * NEWS: Add news item for the new behaviour of the enable and disable
3795 GDB commands when applied to tracepoints.
3796 Add news items for the new remote packets QTEnable and QTDisable.
3798 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3800 * config.in: Regenerate.
3801 * configure: Regenerate.
3802 * configure.ac <--with-system-readline> (for readline_echoing_p):
3804 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3805 (tui_old_rl_echoing_p): ... here.
3806 (tui_setup_io): Rename extern declaration readline_echoing_p to
3807 _rl_echoing_p. Adjust assignments for the both renames.
3809 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3811 * symtab.c (lookup_symtab): Run cleanup before returning.
3813 2011-05-11 Tom Tromey <tromey@redhat.com>
3815 * dwarf2read.c (handle_data_member_location): New function.
3816 (dwarf2_add_field): Use it.
3817 (read_common_block): Likewise.
3819 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3821 Make addrs->SECTINDEX always defined.
3822 * symfile.c (relative_addr_info_to_section_offsets): Check for
3823 SECTINDEX -1, not for zero ADDR.
3824 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3825 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3826 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3829 2011-05-10 Doug Evans <dje@google.com>
3831 * linux-thread-db.c: Whitespace cleanup.
3832 (try_thread_db_load_1): Fix comment.
3834 * linux-thread-db.c (set_libthread_db_search_path): New function.
3835 (_initialize_thread_db): Add setter for libthread-db-search-path.
3837 2011-05-09 Doug Evans <dje@google.com>
3839 * NEWS: Mention --with-iconv-bin.
3840 * configure.ac: New option --with-iconv-bin.
3841 * configure: Regenerate.
3842 * config.in: Regenerate.
3843 * defs.h (relocate_gdb_directory): Declare.
3844 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3845 removed progname parameter, and exported. All callers updated.
3846 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3848 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3849 adding missing call to restore_child_signals_mask.
3851 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3853 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3855 * infrun.c (proceed, start_remote): Adjust.
3856 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3857 and adjust to not handle it.
3858 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3859 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3860 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3861 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3862 * windows-nat.c (do_initial_windows_stuff): Adjust.
3863 * infcmd.c (attach_command): Adjust.
3864 (notice_new_inferior): Adjust.
3866 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3868 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3869 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3870 * spu-tdep.c (op_selb): Use correct value.
3872 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3874 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3875 "parent" parameter to symbol_file_add_from_bfd call.
3877 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3878 Thiago Jung Bauermann <bauerman@br.ibm.com>
3880 Implement support for PowerPC BookE masked watchpoints.
3881 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3883 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3884 method. Initialize to NULL in all existing breakpoint_ops instances.
3885 (struct breakpoint) <hw_wp_mask>: New field.
3886 * breakpoint.c (is_masked_watchpoint): Add prototype.
3887 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3888 breakpoint's breakpoint_ops.works_in_software_mode if available.
3889 (watchpoints_triggered): Handle the case of a hardware masked
3891 (watchpoint_check): Likewise.
3892 (works_in_software_mode_watchpoint): New function.
3893 (insert_masked_watchpoint, remove_masked_watchpoint)
3894 (resources_needed_masked_watchpoint)
3895 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3896 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3897 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3899 (masked_watchpoint_breakpoint_ops): New structure.
3900 (watch_command_1): Check for the existence of the `mask' parameter.
3901 Set b->ops according to the type of hardware watchpoint being created.
3902 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3903 (ppc_linux_remove_mask_watchpoint)
3904 (ppc_linux_masked_watch_num_registers): New functions.
3905 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3906 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3907 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3908 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3909 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3910 (target_masked_watch_num_registers): New functions.
3911 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3912 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3914 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3915 (target_masked_watch_num_registers): Add prototypes.
3917 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3920 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3921 (producer_is_gcc_ge_4_0): New function.
3922 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3923 symtab->language code.
3924 (var_decode_location): Set cu->has_loclist.
3925 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3926 skip. Intialize force_skip from locations_valid. Move the prologue
3927 skipping code into two passes.
3928 * symtab.h (struct symtab): Make the primary field a bitfield. New
3929 field locations_valid.
3931 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3933 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3934 (classify_inner_name): Call cp_lookup_nested_type with
3936 * cp-namespace.c (cp_lookup_nested_type): New variable
3937 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3938 type_name_no_tag_or_error with saved_parent_type.
3939 * dwarf2read.c (load_partial_dies): Read in any children of
3940 DW_TAG_typedef with complaint in such case.
3941 * gdbtypes.c (type_name_no_tag_or_error): New function.
3942 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3943 * valops.c (destructor_name_p): New comment for parameter type. Remove
3944 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3945 * value.h (destructor_name_p): Remove type const.
3947 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 * symtab.c (compare_symbol_name): New function.
3950 (completion_list_add_name, expand_partial_symbol_name): Call it,
3951 remove the variable ncmp.
3952 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3955 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3957 Demote to sw watchpoint only in update_watchpoint.
3958 * breakpoint.c (update_watchpoint): Change between software and
3959 hardware watchpoint for all kinds of watchpoints, not just
3960 read/write ones. Determine b->exact value here instead of
3961 in watch_command_1. Error out if there are not enough resources
3962 for a read or access hardware watchpoint.
3963 (watch_command_1): Remove logic of checking whether there are
3964 enough resources available, since update_watchpoint will do that
3965 work now. Don't set b->exact here. Catch exceptions thrown by
3966 update_watchpoint and delete the watchpoint.
3967 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3968 Use target_exact_watchpoints instead.
3969 (delete_breakpoint): Notify observers only if deleted watchpoint
3970 has a breakpoint number assigned to it.
3972 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3974 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3976 2011-05-05 Jerome Guitton <guitton@adacore.com>
3978 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3980 (i386_stack_tramp_frame_unwind): New static global.
3981 (i386_match_pattern): New function, extracted from i386_match_insn.
3982 (i386_match_insn): Use i386_match_pattern.
3983 (i386_match_insn_block): New function.
3984 (i386_tramp_chain_in_reg_insns)
3985 (i386_tramp_chain_on_stack_insns): New static variables.
3986 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3989 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3991 * configure.host (xscale*): Don't handle target.
3992 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3995 2011-05-04 Yao Qi <yao@codesourcery.com>
3997 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3999 2011-05-03 Joel Brobecker <brobecker@adacore.com>
4002 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4003 | * elfread.c (elf_symtab_read): Stop memory leak.
4005 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4007 * nto-tdep.c (nto_target): Replace deprecated call to
4008 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4010 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4012 Fix false GCC warning.
4013 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4015 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4017 * breakpoint.c (update_watchpoint): Move code to change
4018 the enable state of breakpoint from here ...
4019 (do_enable_breakpoint): ... to here.
4021 2011-04-26 Andrew Gontarek <andrewg@cray.com>
4023 * valprint.c (val_print_array_elements): Fixed poor performance
4024 of printing very large arrays with repeat_count_threshold set
4025 to unlimited. New comment.
4027 2011-04-29 Tom Tromey <tromey@redhat.com>
4029 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4030 (mi_parse): Likewise.
4031 * breakpoint.c (break_range_command): Use sizeof char*, not
4033 (create_breakpoint): Likewise.
4034 (parse_breakpoint_sals): Likewise.
4036 2011-04-29 Pedro Alves <pedro@codesourcery.com>
4038 * linux-nat.c (linux_child_remove_fork_catchpoint)
4039 (linux_child_remove_vfork_catchpoint)
4040 (linux_child_remove_exec_catchpoint): New functions.
4041 (linux_target_install_ops): Install them.
4043 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4047 * varobj.c (install_default_visualizer): Do not install a
4048 visualizer if the varobj is CPLUS_FAKE_CHILD.
4049 (construct_visualizer): Likewise.
4051 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4053 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4054 case insensitive comparison.
4056 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4058 * infrun.c (proceed): Revert previous change.
4059 (resume): Instead, handle the case of signal delivery while stepping
4060 off a breakpoint location here, and only if software single-stepping
4061 is used. Handle nested signals.
4063 2011-04-28 Yao Qi <yao@codesourcery.com>
4065 * arm-tdep.c (copy_unmodified): Rename to ...
4066 (arm_copy_unmodified): .. this. New.
4067 (copy_preload): Move common part to ...
4068 (install_preload): .. this. New.
4069 (arm_copy_preload): New.
4070 (copy_preload_reg): Move common part to ...
4071 (install_preload_reg): ... this. New.
4072 (arm_copy_preload_reg): New.
4073 (copy_b_bl_blx): Move common part to ...
4074 (install_b_bl_blx): .. this. New.
4075 (arm_copy_b_bl_blx): New.
4076 (copy_bx_blx_reg): Move common part to ...
4077 (install_bx_blx_reg): ... this. New.
4078 (arm_copy_bx_blx_reg): New.
4079 (copy_alu_reg): Move common part to ...
4080 (install_alu_reg): ... this. New.
4081 (arm_copy_alu_reg): New.
4082 (copy_alu_shifted_reg): Move common part to ...
4083 (install_alu_shifted_reg): ... this. New.
4084 (copy_ldr_str_ldrb_strb): Move common part to ...
4085 (install_ldr_str_ldrb_strb): ... this. New.
4086 (arm_copy_ldr_str_ldrb_strb): New.
4087 (copy_copro_load_store): Move some common part to ...
4088 (install_copy_copro_load_store): ... this. New.
4089 (arm_copy_copro_load_store): New.
4091 (arm_copy_svc): Renamed from copy_svc.
4092 (copy_undef): Delete.
4093 (arm_copy_undef): Renamed from copy_undef.
4094 (decode_ext_reg_ld_st): Delete.
4095 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4096 (decode_svc_copro): Delete.
4097 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4098 (copy_copro_load_store, copy_alu_imm): update callers.
4099 (copy_extra_ld_st, copy_block_xfer): Likewise.
4100 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4101 (decode_miscellaneous, decode_dp_misc): Likewise.
4102 (decode_ld_st_word_ubyte, decode_media): Likewise.
4103 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4104 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4105 (decode_unconditional, decode_miscellaneous): Likewise.
4106 (decode_media, decode_b_bl_ldmstm): Likewise.
4107 (arm_process_displaced_insn): Likewise..
4108 (decode_misc_memhint_neon): Delete.
4109 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4110 (decode_miscellaneous): Delete.
4111 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4112 (decode_dp_misc): Delete.
4113 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4114 (decode_ld_st_word_ubyte): Delete.
4115 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4116 (decode_media): Delete.
4117 (arm_decode_media): Renamed from decode_media.
4118 (decode_b_bl_ldmstm): Delete.
4119 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4120 (decode_ext_reg_ld_st): Delete.
4121 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4122 (decode_unconditional): Delete.
4123 (arm_decode_unconditional): Renamed from decode_unconditional.
4125 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 Case insensitive lookups implementation.
4128 * dwarf2read.c: Include ctype.h.
4129 (struct mapped_index): New field version.
4130 (mapped_index_string_hash): New parameter index_version. New comment
4131 for it. Call tolower appropriately.
4132 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4133 Choose the right index version for mapped_index_string_hash.
4134 (dwarf2_read_index): Support also the index version 5. Initialize the
4135 new struct mapped_index field version.
4136 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4137 (find_slot): Explain the version needs. Pass INT_MAX for the new
4139 (write_psymtabs_to_index): Produce version 5.
4140 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4141 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4142 * psymtab.c (lookup_partial_symbol): Find the
4143 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4145 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4147 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4148 (completion_list_add_name): New variable ncmp, initialize it, use it.
4149 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4150 * utils.c (strcmp_iw): Support case_sensitive_off.
4151 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4152 New function comment part. New variables saved_string1,
4153 saved_string2 and case_pass. Add a proper second pass.
4155 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 Replace re_comp/re_exec by regcomp/regexec.
4158 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4159 (search_symbols_name_matches): Use them, use regexec.
4160 (search_symbols): New variable retval_chain, adjust the use of
4161 old_chain against it. Replace re_comp by regcomp. Use the new struct
4162 search_symbols_data fields, use regexec instead of re_exec.
4164 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4166 Format the code for the next patch.
4167 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4168 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4169 New variables c1 and c2.
4171 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4173 * infrun.c (proceed): Do not single-step into signal delivery
4174 when stepping off a breakpoint location.
4175 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4176 (insert_step_resume_breakpoint_at_caller): Likewise.
4177 (insert_step_resume_breakpoint_at_sal): Likewise.
4178 (insert_longjmp_resume_breakpoint): Likewise.
4180 2011-04-27 Yao Qi <yao@codesourcery.com>
4182 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4184 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4186 * procfs.c (procfs_pass_signals): Fix advance declaration.
4188 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4190 * target.h (struct target_ops): Remove to_notice_signals;
4191 add to_pass_signals.
4192 (target_notice_signals): Remove.
4193 (target_pass_signals): Add prototype.
4194 * target.c (update_current_target): Remove to_notice_signals;
4195 mention to_pass_signals.
4196 (target_pass_signals): New function.
4197 (debug_to_notice_signals): Remove.
4198 (setup_target_debug): Do not install debug_to_notice_signals.
4200 * infrun.c (signal_pass): New global.
4201 (resume): Call target_pass_signals.
4202 (handle_inferior_event): Report all signals while stepping over
4203 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4204 are re-inserted when stepping over a signal handler.
4205 (signal_cache_update): New function.
4206 (signal_stop_update): Call it.
4207 (signal_print_update): Likewise.
4208 (signal_pass_update): Likewise.
4209 (handle_command): Call signal_cache_update and target_pass_signals
4210 instead of target_notice_signals.
4211 (_initialize_infrun): Initialize signal_pass.
4213 * linux-nat.c (pass_mask): New global.
4214 (linux_nat_pass_signals): New function.
4215 (linux_nat_create_inferior): Report all signals initially.
4216 (linux_nat_attach): Likewise.
4217 (linux_nat_resume): Use pass_mask to decide whether to directly
4218 handle an inferior signal.
4219 (linux_nat_wait_1): Likewise.
4220 (linux_nat_add_target): Install to_pass_signals callback.
4222 * nto-procfs.c (notice_signals): Remove.
4223 (procfs_resume): Do not call notice_signals.
4224 (procfs_notice_signals): Remove.
4225 (procfs_pass_signals): New function.
4226 (init_procfs_ops): Install to_pass_signals callback instead of
4227 to_notice_signals callback.
4228 (_initialize_procfs): Report all signals initially.
4230 * procfs.c (procfs_notice_signals): Remove.
4231 (procfs_pass_signals): New function.
4232 (procfs_target): Install to_pass_signals callback instead of
4233 to_notice_signals callback.
4234 (register_gdb_signals): Remove.
4235 (procfs_debug_inferior): Report all signals initially.
4236 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4238 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4239 parameters; use them instead of calling signal_..._state routines.
4240 (remote_notice_signals): Remove.
4241 (remote_start_remote): Report all signals initially.
4242 (remote_resume): Do not call remote_pass_signals.
4243 (_initialize_remote): Install to_pass_signals callback instead of
4244 to_notice_signals callback.
4246 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4248 * breakpoint.c (user_settable_breakpoint): Delete.
4249 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4250 (delete_command): Check user_breakpoint_p instead of looking at
4251 the breakpoint's type.
4252 (disable_command): Ditto.
4253 (enable_command): Ditto.
4254 (delete_trace_command): Use user_breakpoint_p instead of looking
4255 at the breakpoint number directly. When checking if there are
4256 user visible tracepoints, in order to know whether to ask the user
4257 for confirmation, check whether the breakpoint is actually a
4260 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4262 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4265 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4267 MI breakpoint notifications.
4269 * annotate.c (breakpoint_changed): Adjust parameter type.
4270 * breakpoint.c (set_breakpoint_condition): Adjust to change
4271 in breakpoint_modified type.
4272 (breakpoint_set_commands): Likewise.
4273 (do_map_commands_command): Likewise.
4274 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4275 changed after bumping hit count.
4276 (bpstat_stop_status): Likewise.
4277 (print_one_breakpoint_location): Don't wrap in tuple here.
4278 (print_one_breakpoint): Always print individual locations.
4279 For locations, use unnamed tuple.
4280 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4282 (create_catchpoint, create_syscall_event_catchpoint): Call
4283 breakpoint_created obsever.
4284 (mention): Don't call breakpoint_created observer.
4285 (create_breakpoint_sal): Call breakpoint_created observer.
4286 (create_breakpoint, watch_command_1): Likewise.
4287 (create_ada_exception_breakpoint): Likewise.
4288 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4289 (locations_are_equal): New.
4290 (update_breakpoint_locations): If locations were changed, notify.
4291 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4292 Call breakpoint_modified observer.
4294 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4295 (mi_cmd_break_insert): Don't set observers for modify and delete.
4296 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4297 (mi_breakpoint_created, mi_breakpoint_deleted)
4298 (mi_breakpoint_modified): New.
4299 (mi_interpreter_init): Hook the above.
4300 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4301 while -break-* commands are executing.
4302 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4303 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4305 (mi_ui_out_impl): Hook in mi_redirect.
4306 (mi_field_skip): True to the name, skip the field, don't output
4307 a field with an empty value.
4309 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4310 (gdbpy_breakpoint_deleted): Adjust.
4311 * tui/tui-hooks.c (tui_event_create_breakpoint)
4312 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4314 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4316 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4317 (procfs_remove_hw_watchpoint): Likewise.
4319 2011-04-26 Michael Walle <michael@walle.cc>
4321 * remote.c (remote_start_remote): Ack packet after sending the
4324 2011-04-26 Yao Qi <yao@codesourcery.com>
4326 * linux-nat.c: Move common macros to ...
4327 Include linux-ptrace.h.
4328 * common/linux-ptrace.h: ... here. New.
4330 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4332 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4333 !objfile_has_partial_symbols. New comment.
4334 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4335 SYM_READ_PSYMBOLS is not present. Extend the comment.
4336 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4338 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4340 * defs.h (ENUM_BITFIELD): Remove.
4342 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4343 Eli Zaretskii <eliz@gnu.org>
4345 * NEWS: Document the new gdbserver --once option.
4347 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4349 * MAINTAINERS: Update my email address.
4351 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4353 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4354 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4355 function call if __STDC_ISO_10646__ macro is defined.
4356 (intermediate_encoding): New prototype.
4357 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4358 to generate compile time error for unsupported gdb_wchar_t size.
4359 (ENDIAN_SUFFIX): New macro.
4360 (intermediate_encoding): New function.
4362 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 * ada-lang.c (struct add_partial_datum): Update the comment for
4365 expand_partial_symbol_name.
4366 (ada_add_partial_symbol_completions): Rename to ...
4367 (ada_expand_partial_symbol_name): ... here, change return type, update
4368 function comment, call symbol_completion_match instead of
4369 symbol_completion_add.
4370 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4371 and ada_expand_partial_symbol_name.
4372 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4374 (dw2_map_symbol_names): Remove.
4375 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4376 * psymtab.c (map_symbol_names_psymtab): Remove.
4377 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4378 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4380 (psym_functions): Unlist map_symbol_names_psymtab.
4381 (map_partial_symbol_names): Rename to ...
4382 (expand_partial_symbol_names): ... here, change the FUN type, call
4383 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4384 * psymtab.h (map_partial_symbol_names): Rename to ...
4385 (expand_partial_symbol_names): ... here, change the FUN type.
4386 * symfile.h (struct quick_symbol_functions): Update the description of
4387 expand_symtabs_matching. Remove map_symbol_names.
4388 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4389 (struct add_name_data): Update the comment for
4390 expand_partial_symbol_name.
4391 (add_partial_symbol_name): Rename to ...
4392 (expand_partial_symbol_name): ... here. Replace
4393 completion_list_add_name call by strncmp.
4394 (default_make_symbol_completion_list_break_on): Use now
4395 expand_partial_symbol_names and expand_partial_symbol_name.
4396 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4398 2011-04-20 Tom Tromey <tromey@redhat.com>
4400 * dwarf2read.c (save_gdb_index_command): Replace format
4401 documentation with a pointer to the manual.
4403 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4405 * regcache.c: Include remote.h.
4406 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4407 (regcache_dump): Handle regcache_dump_remote.
4408 (maintenance_print_remote_registers): New function.
4409 (_initialize_regcache): Install "maint print remote-registers"
4411 * remote.c (map_regcache_remote_table): New function, factored out
4413 (init_remote_state): ... here.
4414 (remote_register_number_and_offset): New.
4415 * remote.h (remote_register_number_and_offset): Declare.
4417 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4419 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4420 null_ptid, assume and allow a NULL address space, instead of
4421 asking the target for the ptid's address space.
4422 * infrun.c (ptid_is_pid): Remove assertion.
4424 2011-04-19 Tom Tromey <tromey@redhat.com>
4426 * windows-tdep.c (windows_xfer_shared_library):
4427 * windows-nat.c (get_module_name, windows_make_so):
4428 * v850-tdep.c (v850_handle_pushm):
4429 * utils.c (null_cleanup, gdb_realpath):
4430 * ui-out.c (get_next_header):
4431 * tracepoint.c (clear_traceframe_info):
4432 * symtab.c (lookup_symtab):
4433 * serial.h (struct serial_ops):
4434 * mipsread.c (read_alphacoff_dynamic_symtab):
4435 * infcmd.c (print_return_value):
4436 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4437 * f-exp.y (parse_number):
4438 * exceptions.c (catch_exceptions):
4439 * dummy-frame.c (dummy_frame_this_id):
4440 * defs.h (struct cleanup):
4441 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4442 * arm-tdep.c (arm_push_dummy_call):
4443 * amd64-tdep.h (amd64_collect_xsave):
4444 * amd64-tdep.c (amd64_collect_xsave):
4445 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4446 * README (typing): Remove duplicate words.
4447 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4448 * infrun.c (siginfo_value_read): Fix typo.
4449 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4450 * top.c (source_line_number): Add comma.
4452 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4454 * thread.c (any_live_thread_of_process): Prioritize threads
4455 that are not executing.
4456 * gdbthread.h (any_live_thread_of_process): Update comment
4457 as per above change.
4459 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4461 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4462 (scan_xcoff_symtab): Likewise.
4464 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4466 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4469 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4470 Pedro Alves <pedro@codesourcery.com>
4472 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4473 variables to simplify code and avoid == operator at end of
4474 line as this is against GNU coding standards.
4476 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4478 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4479 lm_name to name_lm to avoid conflict with lm_name function.
4481 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4483 ARI fixes: Use only lowercase function name for static functions.
4484 * nto-tdep.c (LM_ADDR): Rename to...
4485 (lm_addr): New function name.
4486 (nto_relocate_section_addresses): Adapt to change above.
4487 * solib-sunos.c (LM_ADDR): Rename to...
4488 (lm_addr): New function name.
4489 (LM_NEXT): Rename to...
4490 (lm_next): New function name.
4491 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4492 function name changes above.
4493 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4494 (lm_addr_from_link_map): New function name.
4495 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4496 (has_lm_dynamic_from_link_map): New function name.
4497 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4498 (lm_dynamic_from_link_map): New function name.
4499 (LM_ADDR_CHECK): Rename to...
4500 (lm_addr_check): New function name.
4501 (LM_NEXT): Rename to...
4502 (lm_next): New function name.
4503 (LM_PREV): Rename to...
4504 (lm_prev): New function name.
4505 (LM_NAME): Rename to...
4506 (lm_name): New function name.
4507 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4508 (ignore_first_link_map_entry): New function name.
4509 (svr4_keep_data_in_core): Adapt to function name changes above.
4510 (svr4_current_sos): Likewise.
4511 (enable_break): Likewise.
4512 (svr4_relocate_section_addresses): Likewise.
4514 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4517 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4518 sprintf. Simplify code and avoid loosing memory.
4519 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4520 (call0_frame_cache): Remove && operator from end of line.
4522 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4524 Fix libraries displacement if they change whether they were prelinked.
4525 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4526 does not match. Comment why.
4528 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4530 * corelow.c: Include wrapper.h.
4531 (core_open): Call now gdb_target_find_new_threads.
4532 * wrapper.c: Include target.h.
4533 (gdb_target_find_new_threads): New.
4534 * wrapper.h (gdb_target_find_new_threads): New declaration.
4536 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4539 even if !TARGET_HAS_EXECUTION.
4541 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4543 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4544 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4545 bfd_get_synthetic_symtab.
4546 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4547 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4548 parameter parent, remove the call to add_separate_debug_objfile.
4549 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4550 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4551 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4552 parent, new comment for it, call add_separate_debug_objfile for it.
4553 (symbol_file_add_separate): Pass objfile as the parameter parent,
4554 remove the call to add_separate_debug_objfile.
4555 (symbol_file_add_from_bfd): New parameter parent, pass it.
4556 (symbol_file_add): Pass NULL to the new parameter parent.
4557 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4559 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4561 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4564 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4566 Fix Python access to inlined frames.
4567 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4568 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4570 2011-04-15 Tom Tromey <tromey@redhat.com>
4572 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4574 2011-04-15 Gary Benson <gbenson@redhat.com>
4576 * MAINTAINERS: Add myself to write-after-approval section.
4578 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4580 * remote-sim.c (sim_command_completer): New function.
4581 (_initialize_remote_sim): Set completer to sim_command_completer.
4583 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4585 * breakpoint.c (print_exception_catchpoint): Rename to ...
4586 (print_it_exception_catchpoint): ... this.
4587 (gnu_v3_exception_catchpoint_ops): Update with new name
4588 for print_it_exception_catchpoint.
4590 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4592 * MAINTAINERS: Add myself for write after approval privileges.
4594 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4596 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4598 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4600 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4602 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4604 * breakpoint.c (save_breakpoints): Verify whether
4605 breakpoint_ops.print_recreate is defined before calling it.
4607 2011-04-11 Gary Benson <gbenson@redhat.com>
4609 Fix failure with --enable-maintainer-mode.
4610 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4612 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4615 * symtab.c (search_symbols): Reorder the KIND description in the
4616 function comment. Remove the unused 4th element of types, types2,
4617 types3 and types4. New gdb_assert on KIND.
4618 (symtab_symbol_info): Remove the unused 4th element of classnames.
4619 New gdb_assert on KIND.
4620 * symtab.h (enum search_domain): New warning in the enum comment.
4621 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4624 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4626 Fix crash of gdb save-index on a STABS file.
4627 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4630 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4632 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4633 * dwarf2read.c: Include ctype.h.
4634 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4636 (dwarf2_add_field): Fix new_field->accessibility by calling
4637 dwarf2_default_access_attribute. Restructure setting accessibility
4639 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4640 is_private and is_protected by calling
4641 dwarf2_default_access_attribute.
4643 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4645 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4646 to the initialization.
4648 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4650 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4653 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4655 Remove support for old Cygwin 1.5 versions.
4656 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4657 function on old Cygwin version.
4658 * windows-nat.c: Remove cygwin version check and always define
4659 __USEWIDE for Cygwin compilation.
4661 2011-04-07 Yao Qi <yao@codesourcery.com>
4663 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4665 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4666 (arm_copy_svc): Remove parameters INSN and TO.
4667 (decode_svc_copro): Update caller.
4668 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4669 from function pointer `copy_svc_os'.
4671 2011-04-07 Yao Qi <yao@codesourcery.com>
4673 * arm-tdep.c (cleanup_branch): Set a correct return address in
4674 LR for ARM and Thumb.
4676 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4679 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4680 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4681 in the function comment, a new note on values compatibility.
4682 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4683 * symtab.h (SYMBOL_HASH_NEXT): New.
4685 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4687 * ppc-linux-nat.c (check_condition): Add len output parameter.
4688 Set it based on the memory region referenced in the condition
4689 expression. Update all callers.
4691 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4693 Fix crash regression on systems featuring .gdb_index.
4694 * objfiles.c (free_objfile): Move the
4695 forget_cached_source_info_for_objfile call earlier. Comment it.
4696 Extend the comment for objfile_free_data.
4698 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4700 Fix regression of displaying the debug format.
4701 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4704 2011-04-04 Tom Tromey <tromey@redhat.com>
4706 * cli/cli-interp.c (struct captured_execute_command_args):
4708 (do_captured_execute_command): Remove.
4709 (safe_execute_command): Use TRY_CATCH.
4710 * cli/cli-script.c (struct wrapped_read_command_file_args):
4712 (wrapped_read_command_file): Remove.
4713 (script_from_file): Use TRY_CATCH.
4714 * exceptions.c (catch_exception): Remove.
4715 * exceptions.h (catch_exception): Remove.
4716 (deprecated_throw_reason): Update comment.
4717 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4718 argument to 'context'.
4719 (mi_execute_command): Use TRY_CATCH.
4720 * remote.c (struct start_remote_args): Remove.
4721 (remote_start_remote): Update; change arguments.
4722 (remote_open_1): Use TRY_CATCH.
4724 2011-04-04 Tom Tromey <tromey@redhat.com>
4726 * tracepoint.c (scope_info): Update.
4727 * symtab.c (decode_line_spec): Update.
4728 * python/python.c (gdbpy_decode_line): Update.
4729 * linespec.h (decode_line_1): Update.
4730 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4731 (decode_compound, find_method, symtab_from_filename)
4732 (decode_variable): Likewise.
4733 * cli/cli-cmds.c (edit_command): Update.
4734 (list_command): Update.
4735 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4737 (create_breakpoint): Update.
4738 (until_break_command): Update.
4739 (addr_string_to_sals): Update.
4740 (decode_line_spec_1): Update.
4742 2011-04-04 Tom Tromey <tromey@redhat.com>
4744 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4745 (do_captured_parse_breakpoint): Remove.
4746 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4747 Use TRY_CATCH directly.
4749 2011-04-04 Tom Tromey <tromey@redhat.com>
4751 * symtab.h (free_symtab): Remove.
4752 (forget_cached_source_info_for_objfile): Declare.
4753 * symmisc.c (free_symtab): Remove.
4754 * source.c (forget_cached_source_info_for_objfile): New function.
4755 (forget_cached_source_info): Use it.
4756 * objfiles.c (free_objfile): Simplify check before calling
4757 clear_current_source_symtab_and_line. Call
4758 forget_cached_source_info_for_objfile.
4760 2011-04-04 Tom Tromey <tromey@redhat.com>
4762 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4763 (new_symtab): Don't set `free_code' on symtab.
4764 (new_linetable): Properly handle size==0.
4765 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4766 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4768 * jv-lang.c (struct jv_per_objfile_data): New.
4769 (jv_per_objfile_free): Free the data.
4770 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4771 (get_java_class_symtab): Set the `dict' field on the
4772 jv_per_objfile_data.
4773 (free_class_block): Remove.
4774 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4777 2011-04-04 Tom Tromey <tromey@redhat.com>
4779 * symfile.c (reread_symbols): Update.
4780 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4782 * objfiles.c (allocate_objfile): Update.
4783 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4785 * cp-namespace.c (lookup_symbol_file): Don't call
4786 lookup_possible_namespace_symbol.
4787 (initialize_namespace_symtab, get_possible_namespace_block)
4788 (free_namespace_block, cp_check_possible_namespace_symbols)
4789 (check_possible_namespace_symbols_loop)
4790 (check_one_possible_namespace_symbol)
4791 (lookup_possible_namespace_symbol): Remove.
4792 (maintenance_cplus_namespace): Replace with notice.
4793 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4795 2011-04-04 Tom Tromey <tromey@redhat.com>
4797 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4798 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4799 * symmisc.c (free_symtab): Don't free debugformat.
4800 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4801 (record_debugformat, record_producer): Document.
4802 * buildsym.c (end_symtab): Don't save debugformat and producer
4804 (end_symtab): Don't free debugformat and producer fields.
4805 (record_debugformat): Don't call xstrdup.
4806 (record_producer): Likewise.
4808 2011-04-04 Tom Tromey <tromey@redhat.com>
4810 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4811 (source_line_charpos, source_charpos_line): Remove.
4813 2011-04-04 Tom Tromey <tromey@redhat.com>
4815 * symtab.h (domain_enum): Split in two...
4816 (enum search_domain): New.
4817 (search_symbols): Update.
4818 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4819 redundant declarations.
4820 (search_symbols): Change 'kind' argument to search_domain.
4822 (print_symbol_info): Likewise.
4823 (symtab_symbol_info): Likewise.
4824 * symfile.h (struct quick_symbol_functions)
4825 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4826 <expand_symtabs_matching>: Likewise.
4827 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4828 (expand_symtabs_matching_via_partial): Update.
4829 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4830 (dw2_expand_symtabs_for_function): Update.
4831 * block.h: Moved anonymous enum...
4832 * defs.h (enum block_enum): ... here. Now named.
4834 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4836 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4837 * version.in: Bump version to 7.3.50.20110403-cvs.
4839 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4841 * NEWS: Create a new section for the next release branch.
4842 Rename the section of the current branch, now that it has
4845 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4847 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4848 for "fpscr" in target description.
4850 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4852 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4853 initialize it. Delay HASH initialization. Strip the part after open
4854 parenthesis for languages with qualifiers. Call do_cleanups.
4856 2011-04-01 Tom Tromey <tromey@redhat.com>
4858 * utils.c (report_command_stats): Don't print `-' for negative
4861 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4863 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4864 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4867 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4869 * breakpoint.h (bpdisp_text): Add declaration.
4870 * breakpoint.c (bpdisp_text): Make non-static.
4871 * ada-lang.c: #include "mi/mi-common.h".
4872 (print_it_exception): Rewrite to improve GDB/MI output.
4874 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4876 * arm-tdep.h (struct address_space): Add forward declaration.
4878 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4880 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4881 * arm-tdep.c (arm_override_mode): New global.
4882 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4883 execution mode heuristics.
4884 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4885 second single-step breakpoint if needed, using
4886 arm_insert_single_step_breakpoint.
4887 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4888 ARM execution mode, do not call thumb_get_next_pc_raw.
4889 (arm_get_next_pc): Encode execution mode in return value. Call
4890 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4891 (arm_insert_single_step_breakpoint): New function.
4892 (arm_software_single_step): Call it.
4893 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4894 argument to return execution mode of sigreturn target.
4895 (arm_linux_syscall_next_pc): Use it.
4896 (arm_linux_copy_svc): Update call.
4897 (arm_linux_software_single_step): Call
4898 arm_insert_single_step_breakpoint.
4900 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4902 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4905 2011-03-31 Tom Tromey <tromey@redhat.com>
4907 * varobj.c (update_dynamic_varobj_children): Properly handle
4908 errors from iterator.
4910 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4912 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4913 struct linkage name twice.
4915 2011-03-31 Tom Tromey <tromey@redhat.com>
4917 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4918 missing ">" to message.
4920 2011-03-31 Tom Tromey <tromey@redhat.com>
4922 * varobj.c (instantiate_pretty_printer): Remove duplicate
4925 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4927 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4928 if neither saved value nor register available (e.g. signal frame).
4930 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4932 * macroexp.c (expand): Avoid uninitialized variable
4935 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4937 * breakpoint.c (break_range_command): Fix typo in comment.
4939 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4940 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4942 Implement support for PowerPC BookE ranged breakpoints.
4943 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4944 * breakpoint.h (struct bp_target_info) <length>: New member
4946 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4947 instead of struct breakpoint as argument, and also add ASPACE
4948 and BP_ADDR arguments. Update all callers.
4949 (struct breakpoint_ops) <print_one_detail>: New method.
4950 (struct breakpoint) <addr_string_range_end>: New member variable.
4951 * breakpoint.c (breakpoint_location_address_match): Add function
4953 (insert_bp_location): Set bl->target_info.length.
4954 (breakpoint_here_p): Call breakpoint_location_address_match.
4955 (moribund_breakpoint_here_p): Likewise.
4956 (regular_breakpoint_inserted_here_p): Likewise.
4957 (breakpoint_thread_match): Likewise.
4958 (bpstat_stop_status): Likewise.
4959 (bpstat_check_location): Move call to
4960 breakpoint_ops.breakpoint_hit to the top.
4961 (print_one_breakpoint_location): Call
4962 breakpoint_ops.print_one_detail if available.
4963 (breakpoint_address_match_range): New function.
4964 (breakpoint_location_address_match): Likewise.
4965 (breakpoint_locations_match): Compare the length field of the
4967 (hw_breakpoint_used_count): Count resources used by all locations
4968 in a breakpoint, and use breakpoint_ops.resources_needed if
4970 (breakpoint_hit_ranged_breakpoint): New function.
4971 (resources_needed_ranged_breakpoint): Likewise.
4972 (print_it_ranged_breakpoint): Likewise.
4973 (print_one_ranged_breakpoint): Likewise.
4974 (print_one_detail_ranged_breakpoint): Likewise.
4975 (print_mention_ranged_breakpoint): Likewise.
4976 (print_recreate_ranged_breakpoint): Likewise.
4977 (ranged_breakpoint_ops): New structure.
4978 (find_breakpoint_range_end): New function.
4979 (break_range_command): Likewise.
4980 (delete_breakpoint): Free addr_string_range_end.
4981 (update_breakpoint_locations): Add SALS_END argument. Update
4982 all callers. Calculate breakpoint length if a non-zero SALS_END
4983 is given. Call breakpoint_locations_match instead of
4984 breakpoint_address_match.
4985 (reset_breakpoint): Find SaL of the end of the range if B is a
4987 (_initialize_breakpoint): Register break-range command.
4988 * defs.h (print_core_address): Add function prototype.
4989 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4991 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4992 (ppc_linux_remove_hw_breakpoint): Likewise.
4993 (_initialize_ppc_linux_nat): Initialize
4994 to_ranged_break_num_registers.
4995 * target.c (update_current_target): Add comment about
4996 to_ranged_break_num_registers.
4997 (target_ranged_break_num_registers): New function.
4998 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5000 (target_ranged_break_num_registers): Add function prototype.
5001 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5002 * utils.c (print_core_address): ... here.
5004 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5006 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5007 variable compiler warning.
5009 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5011 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5013 (re_set_breakpoint): ... to here ...
5014 (addr_string_to_sals): ... and here.
5016 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5018 * Makefile.in (SFILES): Add missing C sources.
5019 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5020 Add missing headers.
5022 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5024 * .gitignore: New file.
5026 2011-03-29 Mike Frysinger <vapier@gentoo.org>
5028 * NEWS: Mention new cfi device simulation.
5030 2011-03-29 Tom Tromey <tromey@redhat.com>
5032 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5033 otherwise anonymous types.
5034 (dwarf2_name): Likewise.
5035 * valops.c (value_struct_elt_for_reference): Refine artificial
5036 type logic. Call error if j==-1.
5038 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5040 Fix false GCC warning.
5041 * infcall.c (find_function_addr): Initialize funaddr.
5043 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5045 Fix mingw compilation with --enable-targets=all.
5046 * remote-mips.c (gdb_usleep.h): Include header.
5047 (mips_enter_debug): Use gdb_usleep instead of sleep.
5049 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5051 Support resolution of STT_GNU_IFUNC via breakpoints.
5052 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5053 bp_gnu_ifunc_resolver_return.
5054 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5055 the loop. Support bp_gnu_ifunc_resolver and
5056 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5057 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5059 (bptype_string, print_one_breakpoint_location): Support
5060 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5061 (user_settable_breakpoint): Return true also for
5062 bp_gnu_ifunc_resolver.
5063 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5064 bp_gnu_ifunc_resolver_return.
5065 (set_breakpoint_location_function): New parameter explicit_loc,
5066 describe it. Call find_pc_partial_function_gnu_ifunc with new
5067 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5068 EXPLICIT_LOC is not set.
5069 (set_raw_breakpoint): Set EXPLICIT_LOC for
5070 set_breakpoint_location_function.
5071 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5072 set_breakpoint_location_function.
5073 (mention): Support bp_gnu_ifunc_resolver and
5074 bp_gnu_ifunc_resolver_return.
5075 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5076 set_breakpoint_location_function.
5077 (update_breakpoint_locations): Remove static.
5078 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5079 bp_gnu_ifunc_resolver_return.
5080 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5081 bp_gnu_ifunc_resolver_return.
5082 (update_breakpoint_locations): New declaration.
5083 * elfread.c: Include gdbthread.h and regcache.h.
5084 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5086 (elf_gnu_ifunc_fns): Install them.
5087 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5088 (stub_gnu_ifunc_resolver_return_stop): New functions.
5089 (stub_gnu_ifunc_fns): Install them.
5090 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5091 and gnu_ifunc_resolver_return_stop.
5092 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5094 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5096 STT_GNU_IFUNC reader implementation.
5097 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5098 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5099 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5100 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5101 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5102 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5103 (elf_gnu_ifunc_resolve_addr): New.
5104 (elf_symfile_read): Call elf_rel_plt_read.
5105 (elf_gnu_ifunc_fns): New.
5106 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5107 Install elf_gnu_ifunc_fns.
5108 * infcall.c (find_function_return_type): New function.
5109 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5110 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5111 (stub_gnu_ifunc_resolve_name): New functions.
5112 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5113 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5114 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5116 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5118 Code cleanup for later STT_GNU_IFUNC support.
5119 * infcall.c (find_function_addr): Remove variable code, use explicit
5120 dereferences for it. Move VALUE_TYPE initialization later.
5122 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5124 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5125 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5126 (clear_pc_function_cache): Clear it.
5127 (find_pc_partial_function): Rename to ...
5128 (find_pc_partial_function_gnu_ifunc): ... this function. New
5129 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5130 (find_pc_partial_function): New wrapper for this function.
5131 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5133 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5135 GDB internal type support for STT_GNU_IFUNC.
5136 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5137 (elf_symtab_read): Set mst_text_gnu_ifunc for
5138 BSF_GNU_INDIRECT_FUNCTION.
5139 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5140 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5141 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5142 nodebug_got_plt_symbol.
5143 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5144 (TYPE_GNU_IFUNC): New.
5145 (struct main_type): New field flag_gnu_ifunc.
5146 (struct builtin_type): New field builtin_func_func.
5147 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5148 nodebug_got_plt_symbol.
5149 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5150 (in_gnu_ifunc_stub): New.
5151 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5153 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5154 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5155 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5157 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5158 * symtab.c (search_symbols): Likewise.
5159 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5160 and mst_slot_got_plt.
5161 (in_gnu_ifunc_stub): New declaration.
5163 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5165 Support a ring of related breakpoints.
5166 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5167 other functions, add gdb_assert.
5168 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5169 watchpoint_del_at_next_stop.
5170 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5171 (bpstat_stop_status): Handle ring in related_breakpoint.
5172 (set_raw_breakpoint_without_location): Initialize ring in
5174 (delete_breakpoint): Handle ring in related_breakpoint, use
5175 watchpoint_del_at_next_stop.
5176 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5178 2011-03-28 Tom Tromey <tromey@redhat.com>
5181 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5182 with `language_minimal'.
5184 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5186 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5187 instead of checking for STT_ARM_TFUNC symbol type.
5189 2011-03-25 Tom Tromey <tromey@redhat.com>
5191 * linespec.c (symbol_found): Restore line-based result for
5192 non-LOC_LABEL symbols.
5194 2011-03-25 Kai Tietz <ktietz@redhat.com>
5196 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5197 instead of strcmp for comparison.
5198 (tui_source_is_displayed): Likewise.
5199 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5201 2011-03-24 Mark Wielaard <mjw@redhat.com>
5203 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5205 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5206 (find_partial_die_in_comp_unit): Likewise in comment.
5207 (read_attribute_value): Likewise.
5208 (lookup_die_type): Likewise.
5209 (dwarf_form_name): Likewise.
5210 (dump_die_shallow): Likewise.
5211 (follow_die_ref_or_sig): Likewise.
5213 2011-03-24 Tom Tromey <tromey@redhat.com>
5215 PR breakpoints/11816:
5216 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5217 (decode_compound): Update.
5218 (find_function_symbol): New function.
5219 (decode_dollar): Update.
5220 (decode_label): Add 'function_symbol' parameter. Handle
5221 function-relative labels.
5222 (decode_variable): Update.
5223 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5224 not its line. Set `special_display' and canonical name for
5227 2011-03-24 Tom Tromey <tromey@redhat.com>
5229 * linespec.h (struct linespec_result) <special_display>: New
5231 * breakpoint.h (struct breakpoint) <display_canonical>: New
5233 * breakpoint.c (print_breakpoint_location): Respect
5235 (create_breakpoint_sal): Add 'display_canonical' parameter.
5236 (create_breakpoints_sal): Update.
5237 (create_breakpoint): Update.
5239 2011-03-24 Tom Tromey <tromey@redhat.com>
5241 * symtab.c (decode_line_spec): Update.
5242 * linespec.c (build_canonical_line_spec): Change type of
5244 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5245 (find_method, decode_all_digits, decode_dollar, decode_label)
5246 (symbol_found): Likewise.
5247 (init_linespec_result): New function.
5248 * breakpoint.c (struct captured_parse_breakpoint_args)
5249 <canonical_p>: New field, replaces addr_string_p.
5250 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5252 (parse_breakpoint_sals): Likewise.
5253 (do_captured_parse_breakpoint): Update.
5254 (create_breakpoint): Use struct linespec_result.
5255 (until_break_command): Update.
5256 (breakpoint_re_set_one): Update.
5257 (decode_line_spec_1): Update.
5258 * linespec.h (struct linespec_result): New.
5259 (init_linespec_result): Declare.
5261 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5263 * regcache.c (regcache_raw_read): If the target didn't supply a
5264 given raw register, mark it as unavailable.
5266 2011-03-23 Kai Tietz <ktietz@redhat.com>
5268 * breakpoint.c (clear_command): Use filename_cmp
5269 instead of strcmp for comparison.
5270 * buildsym.c (watch_main_source_file_lossage): Likewise.
5271 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5272 checking just for slash.
5273 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5274 strrchr and filename_cmp instead of strcmp for filenames.
5275 (add_old_header_file): Use filename_cmp
5276 instead of strcmp for comparison.
5277 * exec.c (exec_set_section_address): Likewise.
5278 * macrotab.c (macro_lookup_inclusion): Likewise.
5279 (macro_lookup_inclusion): Likewise.
5280 * elfread.c (_initialize_elfread): Likewise.
5281 (elfstab_offset_sections): Likewise.
5282 (elfstab_offset_sections): Use lbasename instead of
5284 * mdebugread.c (parse_partial_symbols): Likewise.
5285 (arse_partial_symbols): Use filename_(n)cmp instead of
5286 str(n)cmp for comparison.
5287 * minsyms.c (lookup_minimal_symbol): Likewise.
5288 * psymtab.c (read_psymtabs_with_filename): Likewise.
5289 * solib.c (solib_read_symbols): Likewise.
5290 (reload_shared_libraries_1): Likewise.
5291 * symmisc.c (maintenance_print_symbols): Likewise.
5292 * symfile.c (separate_debug_file_exists): Likewise.
5293 (reread_symbols): Likewise.
5294 (find_separate_debug_file_by_debuglink): Likewise.
5295 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5296 * source.c (add_path): Likewise.
5297 * symtab.c (filename_seen): Likewise.
5298 (file_matches): Likewise.
5299 (print_symbol_info): Likewise.
5300 (maybe_add_partial_symtab_filename): Likewise.
5301 (make_source_files_completion_list): Likewise.
5302 * xml-syscall.c (init_sysinfo): Likewise.
5303 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5304 IS_DIR_SEPARATOR for checking for trailing path separator.
5306 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5308 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5309 label abort_expression.
5310 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5311 DWARF_VALUE_OPTIMIZED_OUT.
5313 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5316 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5317 to linkage_name. Invert its value. Update the function comment.
5318 (c_type_print_varspec_suffix): Invert it at the caller.
5319 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5321 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5323 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5324 errors when reading the `stop_pc'.
5325 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5328 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5330 * NEWS: Document gdb.Write stream keyword.
5332 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5336 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5337 (dwarf2_add_field): Fix new_field->accessibility for
5338 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5340 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5344 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5345 other error classes. Do not print stack trace.
5347 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5349 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5350 (dwarf2_add_field): Fix new_field->accessibility for
5351 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5353 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5355 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5356 encountering a load via a non-SP register.
5358 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5360 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5361 field in returned unwinder.
5363 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5365 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5367 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5369 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5372 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5374 * frame.c (frame_unwind_register): Throw an error if unwinding the
5376 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5377 an unwind stop reason.
5378 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5379 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5380 UNWIND_UNAVAILABLE>: New.
5381 * inline-frame.c (inline_frame_unwind): Install
5382 default_frame_unwind_stop_reason.
5383 * frame-unwind.c: Include "exceptions.h".
5384 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5385 (default_frame_unwind_stop_reason): New.
5386 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5387 (default_frame_unwind_stop_reason): Declare.
5388 (struct frame_unwind) <stop_reason>: New function pointer.
5390 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5391 * dwarf2-frame.c: Include exceptions.h.
5392 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5393 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5394 computing the CFA. If such an error was thrown, set
5395 unavailable_retaddr.
5396 (dwarf2_frame_unwind_stop_reason): New.
5397 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5399 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5400 (dwarf2_signal_frame_unwind): Ditto.
5402 * amd64-tdep.c: Include "exceptions.h".
5403 (struct amd64_frame_cache): New field "base_p".
5404 (amd64_init_frame_cache): Clear it.
5405 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5406 Avoid reading registers with functions that throw if the register
5407 is not necessary to compute the frame base.
5408 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5409 swallowing NOT_AVAILABLE_ERROR.
5410 (amd64_frame_unwind_stop_reason): New.
5411 (amd64_frame_this_id): Don't build a frame id if the frame base
5413 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5414 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5415 base_p if the frame base was computable.
5416 (amd64_sigtramp_frame_unwind_stop_reason): New.
5417 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5418 frame base was unavailable.
5419 (amd64_sigtramp_frame_unwind): Install
5420 amd64_sigtramp_frame_unwind_stop_reason.
5421 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5422 base_p if the frame base was computable.
5423 (amd64_epilogue_frame_unwind_stop_reason): New.
5424 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5425 frame base was unavailable.
5426 (amd64_epilogue_frame_unwind): Install
5427 amd64_epilogue_frame_unwind_stop_reason.
5428 * i386-tdep.c: Include "exceptions.h".
5429 (struct i386_frame_cache): New field "base_p".
5430 (i386_init_frame_cache): Clear it.
5431 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5432 Avoid reading registers with functions that throw if the register
5433 is not necessary to compute the frame base.
5434 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5435 swallowing NOT_AVAILABLE_ERROR.
5436 (i386_frame_unwind_stop_reason): New.
5437 (i386_frame_this_id): Don't build a frame id if the frame base was
5439 (i386_frame_prev_register): Handle unavailable SP.
5440 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5441 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5442 base_p if the frame base was computable.
5443 (i386_epilogue_frame_unwind_stop_reason): New.
5444 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5445 base was unavailable.
5446 (i386_epilogue_frame_unwind): Install
5447 i386_epilogue_frame_unwind_stop_reason.
5448 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5449 base_p if the frame base was computable.
5450 (i386_sigtramp_frame_unwind_stop_reason): New.
5451 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5452 base was unavailable.
5453 (i386_sigtramp_frame_unwind): Install
5454 i386_sigtramp_frame_unwind_stop_reason.
5455 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5456 type's size, not the register's.
5457 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5459 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5460 default_frame_unwind_stop_reason.
5461 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5462 (alpha_heuristic_frame_unwind): Ditto.
5463 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5464 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5465 * avr-tdep.c (avr_frame_unwind): Ditto.
5466 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5468 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5469 * frv-tdep.c (frv_frame_unwind): Ditto.
5470 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5471 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5472 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5473 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5474 (hppa_stub_frame_unwind): Ditto.
5475 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5476 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5477 (ia64_libunwind_frame_unwind)
5478 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5479 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5480 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5481 * m32c-tdep.c (m32c_unwind): Ditto.
5482 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5483 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5484 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5485 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5486 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5487 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5488 * mep-tdep.c (mep_frame_unwind): Ditto.
5489 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5490 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5491 (mips_stub_frame_unwind): Ditto.
5492 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5493 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5494 * mt-tdep.c (mt_frame_unwind): Ditto.
5495 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5496 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5497 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5498 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5499 (s390_sigtramp_frame_unwind): Ditto.
5500 * score-tdep.c (score_prologue_unwind): Ditto.
5501 * sh-tdep.c (sh_frame_unwind): Ditto.
5502 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5503 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5504 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5505 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5506 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5507 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5508 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5509 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5510 (sparc64obsd_trapframe_unwind): Ditto.
5511 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5512 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5513 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5514 * v850-tdep.c (v850_frame_unwind): Ditto.
5515 * vax-tdep.c (vax_frame_unwind): Ditto.
5516 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5517 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5518 * xtensa-tdep.c (xtensa_unwind): Ditto.
5520 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5522 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5523 there's always a frame. Use get_frame_pc_if_available instead of
5524 get_frame_pc, and if there's no PC available, don't look up a
5527 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5529 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5532 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5534 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5537 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5539 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5540 * frame.c (frame_unwind_caller_pc_if_available): New.
5541 * stack.c (frame_info): Handle unavailable PC.
5543 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5545 * frame.c (frame_unwind_pc): Rename to ...
5546 (frame_unwind_pc_if_available): ... this. New `pc' output
5547 parameter. Change return type to int. Gracefully handle
5548 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5549 happened, or 1 otherwise.
5550 (frame_unwind_pc): Reimplement on top of
5551 frame_unwind_pc_if_available.
5552 (get_frame_func): Rename to ...
5553 (get_frame_func_if_available): New `pc' output parameter. Change
5554 return type to int. Gracefully handle the PC not being available.
5555 (get_frame_func): Reimplement on top of
5556 get_frame_func_if_available.
5557 (select_frame): Handle the PC being unavailable.
5558 (get_prev_frame): Handle the PC being unavailable.
5559 (get_frame_pc_if_available): New.
5560 (get_frame_address_in_block_if_available): New.
5561 (find_frame_sal): Handle the frame PC not being available.
5562 * frame.h (get_frame_pc_if_available): Declare.
5563 (get_frame_address_in_block_if_available): Declare.
5564 (get_frame_func_if_available): Declare.
5565 * stack.c (print_frame_info): Handle the PC being unavailable.
5566 (find_frame_funname): Ditto.
5567 (print_frame): Handle the PC being unavailable.
5568 (get_frame_language): Ditto.
5569 * blockframe.c (get_frame_block): Ditto.
5570 * macroscope.c (default_macro_scope): Ditto.
5571 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5573 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5575 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5576 NOT_AVAILABLE_ERROR when evaluating the location expression.
5578 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5580 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5581 returning that the register piece is unavailable/optimized out.
5582 (write_pieced_value): Handle get_frame_register_bytes returning
5583 that the register piece is unavailable/optimized out when doing a
5584 read-modify write of a bitfield.
5585 * findvar.c (value_from_register): Handle get_frame_register_bytes
5586 returning that the register piece is unavailable/optimized out.
5587 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5588 and `unavailablep'. Throw error on bad debug info. Use
5589 frame_register instead of frame_register_read, to fill in the new
5591 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5593 * valops.c: (value_assign): Adjust, and handle
5594 get_frame_register_bytes failing.
5595 * spu-tdep.c: Include exceptions.h.
5596 (spu_software_single_step): Adjust, and handle
5597 get_frame_register_bytes failing.
5598 (spu_get_longjmp_target): Ditto.
5599 * gdbarch.sh (register_to_value): Change to return int. New
5600 parameters `optimizedp' and `unavailablep'.
5601 * gdbarch.h, gdbarch.c: Regenerate.
5602 * i386-tdep.c (i386_register_to_value): Adjust to new
5603 gdbarch_register_to_value interface.
5604 * i387-tdep.c (i387_register_to_value): Ditto.
5605 * i387-tdep.h (i387_register_to_value): Ditto.
5606 * alpha-tdep.c (alpha_register_to_value): Ditto.
5607 * ia64-tdep.c (ia64_register_to_value): Ditto.
5608 * m68k-tdep.c (m68k_register_to_value): Ditto.
5609 * mips-tdep.c (mips_register_to_value): Ditto.
5610 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5612 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5614 * findvar.c (value_of_register): Mark the value as unavailable, if
5615 the register is unavailable.
5616 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5617 (frame_register): New `unavailablep' parameter.
5618 (frame_register_read): Update comment.
5619 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5620 Set it if the register is unavailable. If the register is
5621 unavailable, clear the output buffer.
5622 (frame_register): New `unavailablep' parameter. Pass it down.
5623 (frame_unwind_register): Adjust.
5624 (put_frame_register): Adjust.
5625 (frame_register_read): Adjust. Also return false if the register
5627 (frame_register_unwind_location): Adjust.
5628 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5629 is unavailable, mark the value accordingly.
5630 * stack.c (frame_info): Handle unavailable registers.
5632 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5634 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5635 simplify, using regcache_cooked_read.
5637 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5639 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5640 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5641 (regcache_raw_read_unsigned, regcache_raw_read_part)
5642 (regcache_cooked_read, regcache_cooked_read_signed)
5643 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5644 (regcache_cooked_read_ftype): Change return to enum
5646 * regcache.c: Include exceptions.h
5647 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5648 (do_cooked_read): Change return to enum register_status. Always
5649 forward to regcache_cooked_read.
5650 (regcache_raw_read): Change return to enum register_status. If
5651 the register is not REG_VALID, memset the buffer. Return the
5653 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5654 return the register's status.
5655 (regcache_raw_read_unsigned): Ditto.
5656 (regcache_cooked_read): Change return to enum register_status.
5657 Assert that with read-only regcaches, the register's status must
5658 be known. If the regcache is read-only, and the register is not
5659 REG_VALID, memset the buffer. Return the register's status.
5660 (regcache_cooked_read_signed): Change return to enum
5661 register_status. Handle non-REG_VALID registers and return the
5663 (regcache_cooked_read_unsigned): Change return to enum
5664 register_status. Handle non-REG_VALID registers and return the
5666 (regcache_xfer_part, regcache_raw_read_part)
5667 (regcache_cooked_read_part): Change return to enum
5668 register_status. Return the register's status.
5669 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5671 (regcache_dump): Handle unavailable cooked registers.
5672 * frame.c (do_frame_register_read): Adjust interface to match
5673 regcache_cooked_read_ftype.
5674 * gdbarch.sh (pseudo_register_read): Change return to enum
5676 * gdbarch.h, gdbarch.c: Regenerate.
5678 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5680 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5681 register_status. If reading a raw register indicates the raw
5682 register is not valid, return the raw register's status,
5683 otherwise, return REG_VALID.
5684 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5685 register_status. Handle non-REG_VALID raw registers and return
5686 the register's status.
5687 * arm-tdep.c (arm_neon_quad_read)
5688 (arm_pseudo_read): Change return to enum register_status. Handle
5689 non-REG_VALID raw registers and return the register's status.
5690 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5691 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5692 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5693 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5694 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5696 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5697 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5698 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5699 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5700 (m32c_pseudo_register_read): Change return to enum
5701 register_status. Adjust.
5702 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5703 enum register_status. Return the register's status.
5704 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5705 register_status. Return the register's status.
5706 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5707 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5708 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5709 * rs6000-tdep.c (move_ev_register_func): New typedef.
5710 (e500_move_ev_register): Use it. Change return to enum
5711 register_status. Return the register's status.
5712 (do_regcache_raw_read): New function.
5713 (do_regcache_raw_write): New function.
5714 (e500_pseudo_register_read): Change return to enum
5715 register_status. Return the register's status. Use
5716 do_regcache_raw_read.
5717 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5718 (dfp_pseudo_register_read): Change return to enum register_status.
5719 Return the register's status.
5720 (vsx_pseudo_register_read): Ditto.
5721 (efpr_pseudo_register_read): Ditto.
5722 (rs6000_pseudo_register_read): Ditto.
5723 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5724 register_status. Return the register's status.
5725 * sh64-tdep.c (pseudo_register_read_portions): New function.
5726 (sh64_pseudo_register_read): Change return to enum
5727 register_status. Use pseudo_register_read_portions. Return the
5729 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5730 register_status. Return the register's status.
5731 * sh-tdep.c (pseudo_register_read_portions): New function.
5732 (sh_pseudo_register_read): Change return to enum register_status.
5733 Use pseudo_register_read_portions. Return the register's status.
5734 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5735 enum register_status. Return the register's status.
5736 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5737 * spu-tdep.c (spu_pseudo_register_read_spu)
5738 (spu_pseudo_register_read): Ditto.
5739 * xtensa-tdep.c (xtensa_register_read_masked)
5740 (xtensa_pseudo_register_read): Ditto.
5741 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5743 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5745 * python/py-value.c (valpy_getitem): Fix formatting of error function
5748 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5750 ARI fixes: Add missing internationalization markups throughout
5752 * darwin-nat-info.c: Ditto.
5755 * mi/mi-main.c: Ditto.
5757 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5759 ARI fixes: Add missing internationalization markups throughout
5762 * cp-name-parser.y: Ditto.
5765 * objc-exp.y: Ditto.
5768 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5770 ARI fixes: Messages should have no trailing new lines.
5771 * darwin-nat.c (mach_check_error): Remove trailing new line from
5772 warning function call message.
5773 * record.c (bfdcore_read): Idem for error call.
5775 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5777 * common/signals.c (target_signal_from_host): Add _ markup to error
5778 function call message.
5779 (target_signal_to_host): Add _ markup and remove trailing new line
5780 from warning call message.
5781 (target_signal_from_command): Add _ markup to error function call
5784 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5788 * python/python.c (gdbpy_write): Accept a stream argument and
5789 operate to the appropriate stream.
5790 (gdbpy_flush): Likewise.
5791 (_initialize_python): Add stream constants.
5792 (finish_python_initialization): Add GdbOutputErrorFile class.
5794 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5798 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5800 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5801 to store_signed_integer. Add debug message when relocating CALL
5802 instructions. Fix formatting of debug message.
5803 * i386-tdep.c (i386_relocate_instruction): Ditto.
5805 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5807 * target.h (struct target_ops): Remove to_lookup_symbol field.
5808 (target_lookup_symbol): Delete macro.
5809 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5810 (update_current_target, setup_target_debug): Remove handling
5811 of to_lookup_symbol target_ops field.
5812 * ada-tasks.c (get_known_tasks_addr): Remove use of
5813 target_lookup_symbol.
5814 * coffread.c (coff_symtab_read): Likewise.
5815 * dbxread.c (read_dbx_symtab): Ditto.
5817 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5820 * configure.ac: Add getthrds declaration check.
5821 * configure, config.in: Regenerate.
5822 * aix-thread.c (getthrds): Declare only if not already declared
5823 in procinfo.h. More declaration out of get_signaled_thread to
5826 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5828 * python/py-symtab.c: Populate symtab_object_methods,
5830 (stpy_is_valid): New function.
5831 (salpy_is_valid): Ditto.
5832 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5833 (sympy_is_valid): New function.
5834 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5835 (objfpy_is_valid): New function.
5836 * python/py-inferior.c: Populate inferior_object_methods.
5837 (infpy_is_valid): New function.
5838 * python/py-infthread.c: Populate thread_object_methods.
5839 (thpy_is_valid): New function.
5840 * python/py-block.c: Declare block_object_methods. Populate. Declare
5841 block_iterator_object_methods. Populate.
5842 (blpy_is_valid): New function.
5843 (blpy_iter_is_valid): Ditto.
5845 2011-03-16 Keith Seitz <keiths@redhat.com>
5847 * linespec.c (find_methods): Canonicalize NAME before looking
5849 (name_end): New function.
5850 (keep_name_info): New function.
5851 (decode_line_1): Use keep_name_info.
5852 (decode_compound): Likewise.
5853 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5854 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5857 * linespec.c (locate_first_half): Keep overload information, too.
5858 (decode_compound): Use a string to represent break characters
5860 If P points to a break character, do not increment it.
5861 For C++ and Java, keep overload information and relevant keywords.
5862 If we cannot find a symbol, search the minimal symbols.
5865 * linespec.c (decode_compound): Rename SAVED_ARG to
5867 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5869 Pass a valid block to lookup_symbol.
5870 (lookup_prefix_sym): Likewise.
5871 (find_method): Construct search name based on SYM_CLASS instead
5873 * psymtab.c (lookup_partial_symbol): Add language parameter.
5874 (lookup_symbol_aux_psymtabs): Likewise.
5875 Don't assume that the psymtab we found was the right one. Search
5876 for the desired symbol in the symtab to be certain.
5877 (psymtab_search_name): New function.
5878 (lookup_partial_symbol): Use psymtab_search_name.
5879 Add language parameter.
5880 (read_symtabs_for_function): Add language parameter and pass to
5881 lookup_partial_symbol.
5882 (find_symbol_file_from_partial): Likewise.
5884 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5887 * dwarf2read.c (noop_record_line): New function.
5888 (dwarf_decode_lines): Ignore line tables for GCd functions.
5890 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5892 Fix ARI warnings about new lines at the end of messages, which
5893 are unneeded as there is a new line added at the end of the message
5895 * darwin-nat.c (darwin_stop_inferior): Ditto.
5896 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5897 * dfp.c (decimal_to_number): Ditto.
5898 * exec.c (print_section_info): Ditto.
5899 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5900 * osdata.c (get_osdata): Ditto.
5901 * record.c (bfdcore_write): Ditto.
5902 * remote-mips.c (mips_readchar): Ditto.
5903 * remote.c (read_ptid): Ditto.
5904 * ser-mingw.c (ser_windows_raw): Ditto.
5905 * tracepoint.c (add_local_symbols): Ditto.
5906 * windows-nat.c (fake_create_process): Ditto.
5908 2011-03-16 Tom Tromey <tromey@redhat.com>
5910 * tracepoint.c (stop_tracing): Don't declare.
5911 * event-top.c (after_char_processing_hook): Add `(void)'.
5913 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5915 * NEWS: Add Parameter sub-classing description.
5917 2011-03-16 Kai Tietz <ktietz@redhat.com>
5919 * MAINTAINERS: Update my e-mail address.
5921 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5923 * MAINTAINERS: Add myself for write after approval privileges.
5925 2011-03-15 Michael Snyder <msnyder@vmware.com>
5927 * frame.c (find_frame_sal): Assert sym is not null.
5929 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5931 * objc-lang.c (selectors_info): Check strchr for null result.
5933 * stabsread.c (define_symbol): Guard against bad stabstring input.
5935 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5937 Remove trailing spaces and tabulations from pascal language
5942 p-valprint.c: Ditto.
5944 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5946 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5947 than LOW. Comment it.
5948 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5949 HIGHPC not strictly higher than LOWPC.
5951 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5953 Fix formatting of function declarations returning a pointer in
5955 * varobj.c (varobj_add_child): Ditto.
5956 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5957 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5959 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5961 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5962 for the "generic" vector ABI used with GCC 4.3 and later.
5963 (ppc64_sysv_abi_return_value): Likewise.
5965 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5967 * infcall.c (call_function_by_hand): Function return value is
5968 always a non_lval, even when using struct_return.
5970 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5972 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5973 (map_display_numbers): New.
5974 (do_delete_display): New.
5975 (undisplay_command): Use map_display_numbers.
5976 (do_enable_disable_display): New.
5977 (enable_disable_display_command): New function.
5978 (enable_display): Delete.
5979 (enable_display_command): New.
5980 (disable_display_command): Reimplement.
5981 (_initialize_printcmd): Adjust "enable display" command to use
5982 `enable_display_command' as callback.
5984 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5986 * NEWS: Add Python breakpoint 'stop' operation.
5988 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5990 * NEWS: Delete duplicate entry. Fix typo.
5992 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5994 Fix ARI warning about function names in first column.
5995 Put prototype declaration on same line as return type.
5996 * objc-exp.y: Ditto.
5998 * python/py-stopevent.h: Ditto.
5999 For long function names, split parameters to
6000 allow function name on same line as return type.
6001 * solib-pa64.c: Ditto.
6004 For long function declaration, use single line.
6005 * hppa-tdep.h: Ditto.
6006 * inferior.h: Ditto.
6008 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6010 * python/python.h: Declare gdbpy_should_stop and
6011 gdbpy_breakpoint_has_py_cond.
6012 * python/python.c: Add python.h to includes. Remove python.h from
6013 HAVE_PYTHON definition
6014 (gdbpy_should_stop): New dummy function.
6015 (gdbpy_breakpoint_has_py_cond): New dummy function.
6016 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6017 sub-classing capabilities.
6018 (gdbpy_should_stop): New function.
6019 (gdbpy_breakpoint_has_py_cond): New function.
6020 (local_setattro): New function.
6021 * breakpoint.c (condition_command): Add check for Python 'stop'
6023 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6024 operation function as part of stop/continue tests.
6026 2011-03-14 Tom Tromey <tromey@redhat.com>
6029 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6030 (needs_frame_dwarf_call): Likewise.
6032 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6034 Fix ARI warning about functions without parameters that do not
6036 * breakpoint.c (all_tracepoints): Replace () by (void).
6037 * f-exp.y (match_string_literal): Ditto.
6039 * m2-exp.y (yylex): Ditto.
6040 * mep-tdep.c (current_me_module): Ditto.
6041 (current_options): Ditto.
6042 (current_cop_data_bus_width): Ditto.
6043 (current_cr_names): Ditto.
6044 (current_cr_is_float): Ditto.
6045 (current_ccr_names): Ditto.
6046 * objc-exp.y (yylex): Ditto.
6047 * p-exp.y (yylex): Ditto.
6048 * remote.c (send_interrupt_sequence): Ditto.
6049 * tracepoint.c (current_trace_status): Ditto.
6050 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6051 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6053 2011-03-11 Michael Snyder <msnyder@vmware.com>
6055 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6056 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6057 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6058 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6059 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6061 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6062 (delete_async_event_handler): Ditto.
6064 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6066 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6068 * top.c (set_verbose): Assert showcmd was found.
6070 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6072 * xtensa-tdep.c (warning_once): Correct style issues.
6074 2011-03-11 Yao Qi <yao@codesourcery.com>
6076 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6078 2011-03-11 Andreas Schwab <schwab@redhat.com>
6080 * common/aclocal.m4: Remove.
6082 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6084 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6085 (xtensa_write_register, xtensa_read_register): Likewise.
6086 (xtensa_hextochar): Removed.
6087 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6089 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6091 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6092 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6093 (xtensa_alloc_frame_cache): Add initialization for new fields.
6094 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6095 (warning_once): New function.
6096 (xtensa_insn_kind): New item c0opc_and.
6097 (call0_classify_opcode): Add the case for AND instruction.
6098 (call0_track_op): Change arguments. New local variable litbase.
6099 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6100 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6102 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6103 (call0_analyze_prologue): Update the comments. Change arguments.
6104 Add the variety of updates to handle extended prologues, which now can
6105 conduct dynamic stack adjustments.
6106 (call0_frame_cache): Likewise.
6107 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6108 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6110 2011-03-10 Michael Snyder <msnyder@vmware.com>
6112 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6113 (cmd_qtframe): Ditto.
6114 (cmd_qtbuffer): Ditto.
6115 (cmd_bigqtbuffer): Ditto.
6117 2011-03-10 Tom Tromey <tromey@redhat.com>
6119 * tracepoint.c (trace_actions_command): Update.
6120 * thread.c (thread_apply_command): Update.
6121 * reverse.c (delete_bookmark_command): Update.
6122 (bookmarks_info): Update.
6123 * printcmd.c (undisplay_command): Update.
6124 * memattr.c (mem_enable_command): Update.
6125 (mem_disable_command): Update.
6126 (mem_delete_command): Update.
6127 * inferior.c (detach_inferior_command): Update.
6128 (kill_inferior_command): Update.
6129 (remove_inferior_command): Update.
6130 * cli/cli-utils.h (struct get_number_or_range_state): New.
6131 (init_number_or_range): Declare.
6132 (get_number_or_range): Update.
6133 * cli/cli-utils.c (init_number_or_range): New function.
6134 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6136 (number_is_in_list): Update.
6137 * breakpoint.h (get_tracepoint_by_number): Update.
6138 * breakpoint.c (map_breakpoint_numbers): Update for change to
6139 get_number_or_range.
6140 (find_location_by_number): Use get_number, not
6141 get_number_or_range.
6142 (trace_pass_set_count): New function.
6143 (trace_pass_command): Update for change to get_number_or_range.
6145 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6148 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6150 * python/py-param.c (add_setshow_generic): Add set/show callback
6151 parameters. Register Python object context.
6152 (get_show_value): New function.
6153 (get_set_value): New function.
6154 (call_doc_function): New function.
6155 (get_doc_string): Move behind get_show_value/get_set_value.
6157 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6159 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6161 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6163 * xtensa-tdep.c (xtensa_read_register): Add comment.
6164 (xtensa_write_register): Likewise.
6165 (xtensa_hextochar): Add comment and update to match coding conventions.
6166 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6167 (execute_l32e, execute_s32e, execute_code): Update comments.
6168 (xtensa_exception_handler_t): Update to match coding conventions.
6169 (xtensa_insn_kind): Likewise.
6171 2011-03-09 Michael Snyder <msnyder@vmware.com>
6173 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6175 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6177 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6179 2011-03-09 Tom Tromey <tromey@redhat.com>
6181 * thread.c (restore_selected_frame): Handle frame_level == -1.
6182 (make_cleanup_restore_current_thread): Use
6183 get_selected_frame_if_set.
6184 * frame.h (get_selected_frame_if_set): Declare.
6185 * frame.c (get_selected_frame_if_set): New function.
6187 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6189 * cli/cli-cmds.c (shell_escape): Use lbasename.
6190 * coffread.c (coff_start_symtab): Constify parameter.
6191 (complete_symtab): Constify `name' parameter.
6192 (coff_symtab_read): Constify `filestring' local.
6193 (coff_getfilename): Constify return and `result' local.
6195 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6196 * linux-fork.c (info_checkpoints_command): Use lbasename.
6197 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6198 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6199 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6200 * procfs.c (procfs_make_note_section): Use lbasename.
6201 * tui/tui-io.c (printable_part): Constity return and parameter.
6203 (print_filename): Constify parameters, and local `s'.
6204 (tui_rl_display_match_list): Constify local `temp'.
6206 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6209 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6210 Fix DWARF-3+ DW_AT_accessibility default assumption.
6211 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6212 cu->header.version >= 3.
6214 2011-03-09 Yao Qi <yao@codesourcery.com>
6216 * common/Makefile.in: Remove.
6217 * common/configure: Remove.
6218 * common/configure.ac: Remove.
6220 2011-03-09 Yao Qi <yao@codesourcery.com>
6223 2011-02-11 Yao Qi <yao@codesourcery.com>
6225 * common/Makefile.in: Add copyright header.
6227 2011-02-11 Yao Qi <yao@codesourcery.com>
6229 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6231 * configure.ac: Add common to sub dir.
6232 * configure: Regenerate.
6234 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6236 * xtensa-tdep.c (call0_ret): New function.
6237 (xtensa_skip_prologue): Speed up analysis.
6239 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6241 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6242 while executing MI command -data-list-changed-registers.
6244 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6246 * xtensa-tdep.c (xtensa_read_register): New function.
6247 (xtensa_write_register): New function.
6248 (xtensa_find_register_by_name): New function.
6249 (xtensa_windowed_frame_cache): Update comments in type description.
6250 (xtensa_frame_cache): Likewise.
6251 (xtensa_window_interrupt_insn): New function.
6252 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6253 (xtensa_insn_kind): Add new instructions.
6254 (rwx_special_register): New function.
6255 (call0_classify_opcode): Add new instructions to the analysis.
6256 (a0_saved, a7_saved, a11_saved): New variables.
6257 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6258 (execute_l32e): New function.
6259 (execute_s32e): New function.
6260 (xtensa_exception_handler_t): New type.
6261 (execute_code): New function.
6262 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6263 analysis for Xtensa Window Exception handlers.
6265 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6267 * xtensa-tdep.c (TX_PS): New.
6268 (windowing_enabled): Update to count for Call0 ABI.
6269 (xtensa_hextochar): New.
6270 (xtensa_init_reggroups): Make algorithm generic.
6271 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6273 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6275 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6277 2011-03-08 Michael Snyder <msnyder@vmware.com>
6279 * i386-tdep.c (i386_follow_jump): Check return value of
6281 (i386_analyze_struct_return): Ditto.
6282 (i386_skip_probe): Ditto.
6283 (i386_match_insn): Ditto.
6284 (i386_skip_noop): Ditto.
6285 (i386_analyze_frame_setup): Ditto.
6286 (i386_analyze_register_saves): Ditto.
6287 (i386_skip_prologue): Ditto.
6288 (i386_skip_main_prologue): Ditto.
6290 * target.c (read_whatever_is_readable): Fix memory leak.
6292 * i386-tdep.c (i386_process_record): Document fall through.
6294 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 Fix DWARF-3+ DW_AT_accessibility default assumption.
6297 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6298 cu->header.version >= 3.
6300 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6302 * remote.c (remote_check_symbols): Skip if the target has no
6305 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6307 * target.c (read_whatever_is_readable): Reformat comment,
6308 with a minor typo fix. Minor reformatting of the code.
6310 2011-03-08 Yao Qi <yao@codesourcery.com>
6312 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6313 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6314 Use cached result instead of calling displaced_in_arm_mode again.
6315 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6316 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6317 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6318 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6319 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6320 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6321 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6322 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6323 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6324 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6325 (arm_catch_kernel_helper_return): Likewise.
6326 * gdb/arm-tdep.h : Update function declarations.
6328 2011-03-07 Michael Snyder <msnyder@vmware.com>
6330 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6332 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6334 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6336 * elfread.c (elf_symtab_read): Stop memory leak.
6338 * main.c (captured_main): Fix memory leak.
6340 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6342 * ada-lang.c (compare_names): Call is_name_suffix with string1
6345 2011-03-07 Tom Tromey <tromey@redhat.com>
6347 * xcoffread.c (xcoff_sym_fns): Update.
6348 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6349 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6350 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6351 (symbol_file_add_with_addrs_or_offsets): Likewise.
6352 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6353 * somread.c (som_sym_fns): Update.
6354 * psymtab.h (require_partial_symbols): Declare.
6355 * psymtab.c (require_partial_symbols): New function.
6356 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6357 (ALL_OBJFILE_PSYMTABS): Undef.
6358 (ALL_PSYMTABS): Move from psympriv.h.
6359 (lookup_partial_symtab, find_pc_sect_psymtab)
6360 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6361 (find_last_source_symtab_from_partial)
6362 (forget_cached_source_info_partial)
6363 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6364 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6365 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6366 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6367 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6368 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6369 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6370 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6371 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6373 * mipsread.c (ecoff_sym_fns): Update.
6374 * machoread.c (macho_sym_fns): Update.
6375 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6376 (read_psyms): New function.
6377 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6378 (elf_sym_fns_lazy_psyms): New global.
6379 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6380 dwarf2_build_psymtabs.
6381 * dbxread.c (aout_sym_fns): Update.
6382 * coffread.c (coff_sym_fns): Update.
6384 2011-03-07 Tom Tromey <tromey@redhat.com>
6386 * infrun.c (print_exited_reason): Include inferior id and pid in
6389 2011-03-07 Tom Tromey <tromey@redhat.com>
6391 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6393 (target_has_execution_1): Update.
6394 (target_has_execution_current): Declare.
6395 (target_has_execution): Call target_has_execution_current.
6396 (default_child_has_execution): Update.
6397 * target.c (default_child_has_execution): Add 'the_ptid'
6399 (target_has_execution_1): Likewise.
6400 (target_has_execution_current): New function.
6401 (add_target): Update.
6402 (init_dummy_target): Update.
6403 * remote-m32r-sdi.c (m32r_has_execution): New function.
6404 (init_m32r_ops): Use it.
6405 * record.c (record_core_has_execution): Now static. Add
6406 'the_ptid' parameter.
6407 * inferior.c (have_live_inferiors): Don't save current thread.
6408 Use target_has_execution_1.
6410 2011-03-07 Yao Qi <yao@codesourcery.com>
6412 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6414 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6416 * elfread.c (elf_symtab_read): Minor reformatting.
6418 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6420 * objc-lang.c (selectors_info): Minor reformatting.
6422 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6424 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6426 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6427 Michael Snyder <msnyder@vmware.com>
6429 * ada-valprint.c (ada_val_print_array): Move the declaration of
6430 "byte_order" and "elttype" inside the block where these variables
6431 are actually used. Remove some special handling for the case
6432 where "elttype" and "eltlen" are null. Replace by a comment
6433 and a couple of assertion checks.
6435 2011-03-05 Michael Snyder <msnyder@vmware.com>
6437 * source.c (add_path): Replace semicolon at end of block.
6438 * dwarf2expr.c (execute_stack_op): Ditto.
6440 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6442 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6443 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6444 (bfin-*-*): Likewise.
6446 2011-03-05 Michael Snyder <msnyder@vmware.com>
6448 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6449 * mdebugread.c (parse_symbol): Ditto.
6450 * parse.c (parse_exp_in_context): Ditto.
6451 * source.c (add_path): Ditto.
6452 * utils.c (gnu_debuglink_crc32): Ditto.
6453 * varobj.c (variable_language): Ditto.
6455 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6457 2011-03-04 Michael Snyder <msnyder@vmware.com>
6459 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6461 * symfile.c (simple_overlay_update): Check for null return value
6462 from lookup_minimal_symbol.
6464 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6466 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6468 * eval.c (parse_and_eval_address_1): Remove function.
6469 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6470 instead of parse_and_eval_address_1.
6471 * value.h (parse_and_eval_address_1): Remove prototype.
6473 2011-03-04 Michael Snyder <msnyder@vmware.com>
6475 * remote.c (putpkt_binary): Document that case stmt falls through.
6477 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6479 * breakpointc (print_it_typical): Move NULL check from here...
6480 (print_bp_stop_message): ... to here.
6482 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6484 * breakpoint.c (enable_command): Use break instead of continue,
6485 and fill in a missing break.
6486 (disable_command): Ditto.
6488 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6490 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6491 (terminal_save_ours): Remove misleading comment.
6492 (inflow_inferior_data_cleanup): Free ttystate.
6493 (inflow_inferior_exit): Likewise.
6494 (copy_terminal_info): Copy ttystate.
6496 * serial.c (serial_copy_tty_state): New function.
6497 * serial.h (serial_copy_tty_state): Add prototype.
6498 (struct serial_ops): Add copy_tty_state callback.
6499 * ser-base.c (ser_base_copy_tty_state): New function.
6500 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6501 * ser-go32.c (dos_copy_tty_state): New function.
6502 (dos_ops): Install copy_tty_state callback.
6503 * ser-mingw.c (_initialize_ser_windows): Likewise.
6504 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6505 * ser-unix.c (hardwire_copy_tty_state): New function.
6506 (_initialize_ser_hardwire): Install it.
6508 2011-03-04 Michael Snyder <msnyder@vmware.com>
6510 * breakpoint.c (create_breakpoint): Add missing break statement.
6512 Reverting this patch:
6513 * infcall.c (call_function_by_hand): Add break statements for lint.
6515 Reverting this patch:
6516 * cli/cli-script.c (script_from_file): Add break for lint.
6518 2011-03-04 Michael Snyder <msnyder@vmware.com>
6520 * solib.c (reload_shared_libraries_1): Close memory leak.
6522 2011-03-03 Tom Tromey <tromey@redhat.com>
6525 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6528 2011-03-03 Michael Snyder <msnyder@vmware.com>
6530 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6531 fields of struct 'st' to zero.
6533 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6534 sal.pspace before calling set_current_source_symtab_and_line.
6536 2011-03-03 Yao Qi <yao@codesourcery.com>
6538 * Makefile.in (configure-common): Remove. Let Makefile
6539 in dir common to rebuild itself.
6540 (common/Makefile): Likewise.
6542 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6544 * utils.c (parse_escape): Add i18n markup in error message.
6546 2011-03-03 Yao Qi <yao@codesourcery.com>
6548 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6550 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6551 (displaced_write_reg, displaced_read_reg): Likewise.
6552 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6553 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6554 (cleanup_branch): Replace magic number 14 and 15 with
6555 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6557 2011-03-02 Michael Snyder <msnyder@vmware.com>
6559 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6561 * cli/cli-script.c (script_from_file): Add break for lint.
6563 * mdebugread.c (parse_partial_symbols): Fix indent.
6565 * target-descriptions.c (tdesc_gdb_type): No need to call
6566 xstrdup, callee saves a copy.
6568 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6570 * infcall.c (call_function_by_hand): Add break statements for lint.
6572 * utils.c (parse_escape): Escape the escape char.
6574 * python/py-inferior.c (build_inferior_list): Error out if
6575 PyList_Append fails.
6576 (gdbpy_inferiors): Error out if build_inferior_list fails.
6578 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6581 * record.c (record_restore): Move printf to before error return.
6583 2011-03-02 Yao Qi <yao@codesourcery.com>
6585 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6586 is_thumb and insn_size.
6587 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6588 on both ARM and Thumb mode.
6589 (arm_process_displaced_insn): Set is_thumb and insn_size.
6590 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6591 (arm_displaced_step_fixup): Likewise.
6593 2011-03-01 Michael Snyder <msnyder@vmware.com>
6595 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6597 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6599 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6601 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6603 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6606 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6607 which shadows function parameter.
6609 * tracepoint.c (create_tsv_from_upload): Superfluous call
6610 to xstrdup. Callee already calls xstrdup.
6612 * linespec.c (decode_line_1): Remove unnecessary null check.
6614 * tracepoint.c (scope_info): Fix mem leak, remove underused
6617 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6618 superfluous null check.
6620 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6621 (value_of_builtin_frame_fp_reg): Ditto.
6623 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6625 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6628 * linespec.c (decode_line_1): Check for null before dereference.
6630 * reverse.c (record_restore): Move null-check to before pointer
6633 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6635 * objc-lang.c (selectors_info): Add explanitory comment.
6636 (classes_info): Ditto.
6638 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6640 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6641 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6642 versions of the trampoline. Handle Thumb vs. ARM addresses.
6643 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6644 (arm_linux_init_abi): Install it.
6645 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6646 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6648 2011-02-28 Michael Snyder <msnyder@vmware.com>
6650 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6651 a little bigger, to avoid possibility of an overflow.
6653 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6654 buffers a little bigger, to avoid possibility of an overflow.
6656 * coffread.c (coff_getfilename): Add check to avoid overflow.
6658 * objc-lang.c (selectors_info): Add a small safety margin to
6660 (classes_info): Error out on too long REGEXP.
6662 * infrun.c (handle_inferior_event): Remove unused function call.
6664 * fork-child.c (fork_inferior): Remove ifdef'd code and
6667 * linux-thread-db.c (attach_thread): Discard unused value.
6669 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6671 * remote.c (remote_get_noisy_reply): Discard unused value.
6672 (remote_vcont_resume): Ditto.
6673 (remote_stop_ns): Ditto.
6675 * linespec.c (decode_objc): Delete unused variable.
6677 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6679 * dwarf2read.c (add_partial_symbol): Discard unused values.
6680 (read_base_type): Delete unused variable.
6682 * dbxread.c (read_dbx_symtab): Discard unused value.
6684 * eval.c (evaluate_subexp_standard): Delete unused variable,
6685 and discard unused values.
6687 * infcmd.c (_initialize_infcmd): Discard unused values.
6689 * stabsread.c (rs6000_builtin_type): Missing break statement.
6691 * dbxread.c (process_one_symbol): Discard unused value.
6693 * coffread.c (coff_end_symtab): Delete unused variable.
6695 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6696 (dwarf2_add_typedef): Delete unused variable.
6697 (read_namespace): Ditto.
6698 (dwarf_decode_macros): Ditto.
6700 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6702 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6704 * p-valprint.c (pascal_val_print): Discard unused value.
6706 * utils.c (nquery): Call va_end before return;
6710 * proc-service.c (ps_plog): Call va_end before return.
6712 2011-02-28 Tom Tromey <tromey@redhat.com>
6714 * python/python.c (gdbpy_value_cst): New global.
6715 (_initialize_python): Initialize it.
6716 * python/python-internal.h (gdbpy_value_cst): Declare.
6717 * python/py-value.c (convert_value_from_python): Use
6720 2011-02-28 Michael Snyder <msnyder@vmware.com>
6722 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6724 * breakpoint.c (catch_syscall_completer): Free malloced list.
6726 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6728 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6729 (lval_func_check_synthetic_pointer): Ditto.
6730 (lval_func_free_closure): Fix use-after-free.
6732 2011-02-28 Tom Tromey <tromey@redhat.com>
6734 * psymtab.c (expand_partial_symbol_tables): Use
6735 ALL_OBJFILE_PSYMTABS.
6737 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6739 * objc-lang.c (selectors_info): Error on too long REGEXP.
6741 2011-02-28 Michael Snyder <msnyder@vmware.com>
6743 * python/py-param.c (set_parameter_value): Add missing
6746 * linux-record.c (record_linux_system_call): Add missing
6749 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6751 * breakpoint.c (print_one_breakpoint_location): Remove unused
6752 argument PRINT_ADDRESS_BITS. Update callers.
6753 (print_one_breakpoint): Likewise.
6755 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6757 * breakpoint.c (wrap_indent_at_field): New function.
6758 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6759 Allocate ui_stream locally instead of using STB argument.
6760 (print_one_breakpoint_location): Update call.
6761 * ui-out.c (ui_out_query_field): New function.
6762 * ui-out.h (ui_out_query_field): Add prototype.
6764 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6766 From Michael Snyder <msnyder@vmware.com>
6767 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6769 2011-02-27 Michael Snyder <msnyder@vmware.com>
6771 * objc-lang.c (selectors_info): Prevent string overrun.
6773 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6776 * symtab.c (rbreak_command): Move variable 'file_name' to
6779 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6780 param with a local variable of the same name.
6782 2011-02-27 Michael Snyder <msnyder@vmware.com>
6784 * value.c (value_from_history_ref): New function.
6785 * value.h (value_from_history_ref): Export.
6786 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6787 to parse value history references.
6788 * cli/cli-utils.h (get_number_trailer): Update comment.
6790 2011-02-27 Michael Snyder <msnyder@vmware.com>
6792 * inferior.c (detach_inferior_command): Use get_number_or_range.
6793 (kill_inferior_command): Ditto.
6794 (remove_inferior_command): Ditto.
6795 (initialize_inferiors): Make command names plural.
6796 Update help strings.
6798 2011-02-27 Michael Snyder <msnyder@vmware.com>
6800 * darwin-nat-info.c: Fix comment typo.
6801 * dwarf2expr.h: Ditto.
6802 * fbsd-nat.c: Ditto.
6803 * fbsd-nat.h: Ditto.
6804 * frame-unwind.h: Ditto.
6806 * hppa-hpux-tdep.c: Ditto.
6807 * i386-linux-nat.c: Ditto.
6808 * linux-nat.c: Ditto.
6809 * nbsd-nat.c: Ditto.
6810 * nbsd-nat.h: Ditto.
6811 * ppc-linux-tdep.c: Ditto.
6814 * tui/tui-winsource.c: Ditto.
6816 2011-02-26 Michael Snyder <msnyder@vmware.com>
6818 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6820 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6822 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6823 with a local variable of the same name.
6825 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6826 param with a local variable of the same name.
6827 (i387_supply_xsave): Ditto.
6829 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6830 that it does not shadow a function parameter.
6832 * i386-nat.c (i386_length_and_rw_bits): Document that case
6833 statement is meant to fall through.
6835 * expprint.c (dump_subexp_body_standard): Document that case
6836 statement is meant to fall through.
6838 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6839 dead if statement. Condition can't be false.
6841 2011-02-25 Michael Snyder <msnyder@vmware.com>
6843 * arm-tdep.c: Fix typos in comments.
6844 * bsd-uthread.c: Ditto.
6845 * completer.c: Ditto.
6847 * cp-namespace.c: Ditto.
6848 * cp-support.c: Ditto.
6849 * cris-tdep.c: Ditto.
6851 * dwarf2read.c: Ditto.
6853 * gdbtypes.h: Ditto.
6854 * inferior.h: Ditto.
6855 * mdebugread.c: Ditto.
6856 * mips-tdep.c: Ditto.
6857 * ppc-linux-nat.c: Ditto.
6858 * ppc-linux-tdep.c: Ditto.
6859 * printcmd.c: Ditto.
6860 * sol-thread.c: Ditto.
6861 * solib-frv.c: Ditto.
6863 * sparc64-tdep.c: Ditto.
6864 * spu-tdep.c: Ditto.
6865 * stabsread.c: Ditto.
6870 * python/py-block.c: Ditto.
6871 * python/py-symbol.c: Ditto.
6872 * python/py-symtab.c: Ditto.
6873 * python/py-value.c: Ditto.
6874 * tui/tui-win.c: Ditto.
6876 2011-02-25 Michael Snyder <msnyder@vmware.com>
6878 * inferior.c (print_inferior): Accept a string instead of an int
6879 for requested_inferiors, and use get_number_or_range to parse it.
6880 (info_inferiors_command): Pass args string to print_inferior.
6881 (initialize_inferiors): Change help string for info inferiors.
6882 * inferior.h (print_inferior): Export prototype change.
6884 2011-02-25 Tom Tromey <tromey@redhat.com>
6886 * common/ax.def (invalid2): Set to 0x31.
6888 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6892 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6894 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6896 2011-02-24 Michael Snyder <msnyder@vmware.com>
6898 * Makefile.in (clean): Make clean should remove generated files
6899 observer.h and observer.inc.
6901 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6903 Revert the following patch (not approved yet):
6904 2011-02-21 Hui Zhu <teawater@gmail.com>
6905 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6906 * ax-gdb.c (gen_printf_expr_callback): New function.
6907 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6908 * ax-general.c (ax_memcpy): New function.
6909 (ax_print): Handle "printf".
6911 * ax.h (ax_memcpy): Forward declare.
6912 * common/ax.def (invalid2): Removed.
6913 (printf): New entry.
6914 * printcmd.c (printcmd.h): New include.
6915 (string_printf): New function.
6916 (ui_printf): Removed.
6917 (printf_command): Remove static. Call string_printf.
6918 (eval_command): Call string_printf.
6919 * printcmd.h: New file.
6920 * tracepoint.c (validate_actionline,
6921 encode_actions_1): handle printf_command.
6923 2011-02-23 Tom Tromey <tromey@redhat.com>
6925 * ax-general.c (ax_pick): Add missing newline.
6927 2011-02-23 Michael Snyder <msnyder@vmware.com>
6929 * breakpoint.c (breakpoint_1): Change first argument from an int
6930 to a char pointer, so that the function now accepts a list of
6931 breakpoints rather than just one. Use new function
6932 'number_is_in_list' to implement.
6933 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6934 (watchpoints_info): Ditto.
6935 (tracepoints_info): Ditto.
6936 (maintenance_info_breakpoints): Ditto.
6937 (_initialize_breakpoint): Update help strings to reflect the fact
6938 that these functions can now take more than one argument.
6939 * cli/cli-utils.c (number_is_in_list): New function.
6940 * cli/cli-utils.h (number_is_in_list): Export.
6942 2011-02-23 Michael Snyder <msnyder@vmware.com>
6944 * memattr.c (mem_enable_command): Use get_number_or_range.
6945 (mem_disable_command): Ditto.
6946 (mem_delete_command): Ditto.
6947 (_initialize_mem): Tweak usage message to reflect multiple
6950 2011-02-22 Doug Evans <dje@google.com>
6952 Add gdb.lookup_global_symbol python function.
6954 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6955 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6956 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6958 2011-02-22 Tom Tromey <tromey@redhat.com>
6960 * language.c (language_class_name_from_physname): Rename
6961 'curr_language' argument to 'lang'; use in body.
6963 2011-02-22 Michael Snyder <msnyder@vmware.com>
6965 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6967 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6969 * frame-unwind.h: Fix comment to mention the this frame, not the
6972 2011-02-22 Tom Tromey <tromey@redhat.com>
6974 * symfile.c (auto_solib_limit): Remove.
6975 * symfile.h (auto_solib_limit): Remove.
6977 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6979 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6981 2011-02-21 Michael Snyder <msnyder@vmware.com>
6983 * gdbthread.h (print_thread_info): Change prototype.
6984 * thread.c (print_thread_info): Accept char* instead of int for
6985 requested_threads argument. Use new function number_is_in_list
6986 to determine which threads to list.
6987 (info_threads_command): Pass char* to print_thread_info.
6988 * cli/cli-utils.c (number_is_in_list): New function.
6989 * cli/cli-utils.h (number_is_in_list): Export.
6990 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6992 (print_one_inferior): Ditto.
6993 (mi_cmd_list_thread_groups): Ditto.
6995 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6997 * common/Makefile.in (CFLAGS): New.
6998 (COMPILE): Add $(CFLAGS).
7000 2011-02-21 Tom Tromey <tromey@redhat.com>
7002 * breakpoint.c (catch_syscall_command_1): Fix typo.
7004 2011-02-21 Tom Tromey <tromey@redhat.com>
7006 * reverse.c: Include cli-utils.h.
7007 * printcmd.c: Include cli-utils.h.
7008 (string_printf): Use skip_spaces.
7009 * cli/cli-utils.h: New file.
7010 * cli/cli-utils.c: New file.
7011 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7012 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7013 * breakpoint.h (get_number, get_number_or_range): Move to
7015 * breakpoint.c: Include cli-utils.h.
7016 (get_number_trailer, get_number, get_number_or_range)
7017 (ep_skip_leading_whitespace): Move to cli-utils.c.
7018 (create_breakpoint_sal, find_condition_and_thread)
7019 (decode_static_tracepoint_spec, watch_command_1)
7020 (watch_maybe_just_location, ep_parse_optional_if_clause)
7021 (catch_fork_command_1, catch_exec_command_1)
7022 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7023 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7024 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7025 (HFILES_NO_SRCDIR): Add cli-utils.h.
7026 (cli-utils.o): New target.
7028 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7030 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7031 before calling discard_all_inferiors.
7033 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7035 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7036 (struct builtin_opencl_type): Remove.
7037 (builtin_opencl_type): Change return type to "struct type **".
7038 (lookup_opencl_vector_type): Update caller.
7039 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7040 (build_opencl_types): Install plain array of "struct type *"
7041 instead of "struct builtin_opencl_type".
7043 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7044 Ulrich Weigand <uweigand@de.ibm.com>
7046 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7047 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7048 (struct arm_linux_hwbp_cap): New type.
7049 (arm_linux_get_hwbp_cap): New function.
7050 (arm_linux_get_hw_breakpoint_count): Likewise.
7051 (arm_linux_get_hw_watchpoint_count): Likewise.
7052 (arm_linux_can_use_hw_breakpoint): Likewise.
7053 (arm_hwbp_type): New type.
7054 (arm_hwbp_control_t): Likewise.
7055 (struct arm_linux_hw_breakpoint): Likewise.
7056 (struct arm_linux_thread_points): Likewise.
7057 (arm_threads): New global variable.
7058 (arm_linux_find_breakpoints_by_tid): New function.
7059 (arm_hwbp_control_initialize): Likewise.
7060 (arm_hwbp_control_is_enabled): Likewise.
7061 (arm_hwbp_control_disable): Likewise.
7062 (arm_linux_hw_breakpoint_initialize): Likewise.
7063 (arm_linux_get_hwbp_type): Likewise.
7064 (arm_linux_hw_watchpoint_initialize): Likewise.
7065 (arm_linux_hw_breakpoint_equal): Likewise.
7066 (arm_linux_insert_hw_breakpoint1): Likewise.
7067 (arm_linux_remove_hw_breakpoint1): Likewise.
7068 (arm_linux_insert_hw_breakpoint): Likewise.
7069 (arm_linux_remove_hw_breakpoint): Likewise.
7070 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7071 (arm_linux_insert_watchpoint): Likewise.
7072 (arm_linux_remove_watchpoint): Likewise.
7073 (arm_linux_stopped_data_address): Likewise.
7074 (arm_linux_stopped_by_watchpoint): Likewise.
7075 (arm_linux_watchpoint_addr_within_range): Likewise.
7076 (arm_linux_new_thread): Likewise.
7077 (arm_linux_thread_exit): Likewise.
7078 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7079 related target callbacks. Register arm_linux_new_thread and
7080 arm_linux_thread_exit.
7081 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7082 * arm-tdep.c (arm_pc_is_thumb): Make global.
7083 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7085 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7087 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7088 per-frame locations while within a function epilogue.
7090 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7092 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7093 to GNU coding standards.
7095 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7097 Allow use of mingw native on Windows 95 OS.
7098 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7099 (ser_windows_close): Only call CancelIo if function exists.
7100 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7101 to check for existence of CancelIo function in kernel32 DLL.
7103 2011-02-21 Hui Zhu <teawater@gmail.com>
7105 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7106 * ax-gdb.c (gen_printf_expr_callback): New function.
7107 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7108 * ax-general.c (ax_memcpy): New function.
7109 (ax_print): Handle "printf".
7111 * ax.h (ax_memcpy): Forward declare.
7112 * common/ax.def (invalid2): Removed.
7113 (printf): New entry.
7114 * printcmd.c (printcmd.h): New include.
7115 (string_printf): New function.
7116 (ui_printf): Removed.
7117 (printf_command): Remove static. Call string_printf.
7118 (eval_command): Call string_printf.
7119 * printcmd.h: New file.
7120 * tracepoint.c (validate_actionline,
7121 encode_actions_1): handle printf_command.
7123 2011-02-19 Michael Snyder <msnyder@vmware.com>
7125 * reverse.c (delete_one_bookmark): Argument is now bookmark
7126 id rather than pointer to bookmark struct.
7127 (delete_bookmark_command): Use get_number_or_range.
7128 (goto_bookmark_command): Parse with get_number instead of strtoul.
7129 (bookmark_1): New function. Print info for one bookmark.
7130 (bookmarks_info): Use get_number_or_range and bookmark_1.
7132 2011-02-18 Michael Snyder <msnyder@vmware.com>
7134 * thread.c (info_threads_command): Re-implement using
7135 get_number_or_range.
7136 (thread_apply_command): Ditto.
7138 2011-02-18 Tom Tromey <tromey@redhat.com>
7140 * common/ax.def: New file.
7141 * ax.h (enum agent_op): Use ax.def.
7142 * ax-general.c (aop_map): Use ax.def.
7144 2011-02-18 Tom Tromey <tromey@redhat.com>
7146 * ax-general.c (aop_map): Add pick and rot.
7147 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7148 <DW_OP_rot>: Implement.
7149 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7151 * ax-general.c (ax_pick): New function.
7153 2011-02-18 Tom Tromey <tromey@redhat.com>
7155 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7157 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7158 Tom Tromey <tromey@redhat.com>
7160 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7161 make_symbol_overload_list_block with NULL BLOCK.
7162 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7164 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7166 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7167 * breakpoint.h (get_number_or_range): Declare.
7168 * printcmd.c (ALL_DISPLAYS): Declare.
7169 (delete_display): Reimplement taking a display pointer.
7170 (undisplay_command): Accept a range of displays to delete, using
7171 get_number_or_range.
7173 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7175 * c-valprint.c (c_val_print): Add embedded_offset to address
7176 for arrays of unspecified length.
7177 * p-valprint.c (pascal_val_print): Likewise.
7179 2011-02-18 Yao Qi <yao@codesourcery.com>
7181 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7182 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7183 (thumb_process_displaced_insn): New.
7184 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7185 call to arm_process_displaced_insn.
7186 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7188 2011-02-17 Tom Tromey <tromey@redhat.com>
7190 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7191 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7192 compile_dwarf_to_ax. No longer static. Call
7193 dwarf2_compile_cfa_to_ax.
7194 (locexpr_tracepoint_var_ref): Update.
7195 (loclist_tracepoint_var_ref): Update.
7196 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7197 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7198 argument; add 'gdbarch' and 'pc'.
7199 (dwarf2_compile_cfa_to_ax): New function.
7200 (dwarf2_frame_cache): Update.
7202 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7204 * ada-lang.c (ada_type_of_array): Fix the size of the array
7205 in the case of an unconstrained packed array.
7207 2011-02-17 Yao Qi <yao@codesourcery.com>
7209 * common/Makefile.in: Add more targets for make.
7211 2011-02-16 Tom Tromey <tromey@redhat.com>
7213 * dwarf2loc.c (unimplemented): Fix typo.
7215 2011-02-16 Tom Tromey <tromey@redhat.com>
7217 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7218 (compile_dwarf_to_ax) <default>: Use unimplemented.
7219 <DW_OP_deref>: Update.
7220 (disassemble_dwarf_expression): Update.
7221 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7222 (decode_locdesc): Update.
7223 * dwarf2expr.h (dwarf_stack_op_name): Update.
7225 2011-02-16 Tom Tromey <tromey@redhat.com>
7227 * ax.h (struct aop_map) <name>: Now const.
7229 2011-02-16 Tom Tromey <tromey@redhat.com>
7231 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7234 2011-02-16 Yao Qi <yao@codesourcery.com>
7236 * infrun.c (get_displaced_step_closure_by_addr): New.
7237 * inferior.h: Declare it.
7238 * arm-tdep.c: (arm_pc_is_thumb): Call
7239 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7242 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7243 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7248 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7249 Jan Kratochvil <jan.kratochvil@redhat.com>
7251 * value.c (value_contents_copy_raw): Extend describing comment.
7252 Assert that the destination contents we're overwriting are wholly
7254 (value_contents_copy): Extend describing comment.
7256 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7257 Jan Kratochvil <jan.kratochvil@redhat.com>
7259 * value.c (value_available_contents_eq): Remove redundant local
7260 variables. Fix available contents comparision.
7261 * value.h (value_available_contents_eq): Extend describing
7264 2011-02-16 Yao Qi <yao@codesourcery.com>
7266 * thread.c (info_threads_command): Add missing i18n markup and remove
7269 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7271 * breakpoint.c (longjmp_names): New variable.
7272 (struct breakpoint_objfile_data): New type.
7273 (breakpoint_objfile_key): New variable.
7274 (msym_not_found): New variable.
7275 (msym_not_found_p): New predicate.
7276 (get_breakpoint_objfile_data): New function.
7277 (create_overlay_event_breakpoint): Check per-objfile cache for
7279 (create_longjmp_master_breakpoint): Likewise.
7280 (create_std_terminate_master_breakpoint): Likewise.
7281 (create_exception_master_breakpoint): Likewise.
7282 (_initialize_breakpoint): Register per-objfile data key.
7284 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7286 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7288 (create_longjmp_master_breakpoint): Loop over longjmp names.
7289 (create_std_terminate_master_breakpoint): Const-propagate parameter
7291 (update_breakpoints_after_exec): Adjust.
7292 (breakpoint_re_set): Adjust.
7294 2011-02-15 Michael Snyder <msnyder@vmware.com>
7296 * thread.c (info_threads_command): Process arg as thread id,
7297 or list of thread ids.
7298 (thread_find_command): New command.
7299 (_initialize_thread): Document argument for info threads.
7300 Document 'thread find' command.
7301 * NEWS: Document new command "thread find".
7303 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7305 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7306 * aclocal.m4: Regenerated with aclocal-1.11.1.
7307 * common/configure: Regenerate with autoconf-2.64.
7309 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7311 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7312 bool data type to a size of one byte.
7314 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7315 Jan Kratochvil <jan.kratochvil@redhat.com>
7317 * target.c (memory_xfer_live_readonly_partial): Document where to
7318 look for interface description.
7320 2011-02-15 Yao Qi <yao@codesourcery.com>
7323 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7324 order to store PC value on stack instead of text section.
7326 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7328 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7329 the EFP register set size.
7330 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7331 data from the VMX register.
7332 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7333 and write data from/to the VMX register.
7335 2011-02-14 Michael Snyder <msnyder@vmware.com>
7337 * command.h (enum command_class): New class 'no_set_class', for
7338 "show" commands without a corresponding "set" command.
7339 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7340 * copying.c (_initialize_copying): Ditto for "show copying" and
7342 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7344 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7345 which there is no corresponding "set" command (eg. "show copying").
7347 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7348 Jan Kratochvil <jan.kratochvil@redhat.com>
7350 * exec.c (section_table_available_memory): Change `len' parameter
7352 * exec.h (section_table_available_memory): Ditto.
7353 * value.h (read_value_memory): Rename the `offset' parameter to
7356 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7357 Jan Kratochvil <jan.kratochvil@redhat.com>
7359 * memrange.c (compare_mem_ranges): Mention sort order in
7361 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7362 * tracepoint.c (traceframe_available_memory): Extend comment to
7363 mention what happens to RESULT when the target does not support
7366 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7367 Jan Kratochvil <jan.kratochvil@redhat.com>
7369 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7374 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7375 No longer handle NULL values.
7377 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7379 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7380 * value.c: Include "exceptions.h".
7381 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7383 * cp-abi.c: Include gdb_assert.h.
7384 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7385 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7387 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7388 parameters. No longer returns -1 on error.
7389 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7391 * cp-valprint.c: Include exceptions.h.
7392 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7393 the baseclass_offset. Handle unavailable base classes. Use
7394 val_print_invalid_address.
7395 * p-valprint.c: Include exceptions.h.
7396 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7397 when fetching the baseclass_offset. No longer expect
7398 baseclass_offset returning -1. Handle unavailable base classes.
7399 Use val_print_invalid_address.
7400 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7401 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7402 `embedded_offset' and `val' parameters. Adjust.
7403 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7404 parameter, and change its type to gdb_byte pointer. Add
7405 `embedded_offset' and `val' parameters. Adjust. No longer expect
7406 baseclass_offset returning -1.
7407 (value_dynamic_cast): Use value_contents_for_printing rather than
7408 value_contents. Adjust.
7409 (search_struct_field): No longer expect baseclass_offset returning
7411 (search_struct_method): If reading memory from the target is
7412 necessary, wrap it in a new value to pass to baseclass_offset. No
7413 longer expect baseclass_offset returning -1.
7414 (find_method_list): No longer expect baseclass_offset returning
7415 -1. Use value_contents_for_printing rather than value_contents.
7416 * valprint.c (val_print_invalid_address): New function.
7417 * valprint.h (val_print_invalid_address): Declare.
7418 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7419 and `val' parameters. No longer expect baseclass_offset returning
7421 * gnu-v2-abi.c: Include "exceptions.h".
7422 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7423 parameters. Handle unavailable memory. Recurse through
7424 gnuv2_baseclass_offset directly, rather than through
7425 baseclass_offset. No longer returns -1 on not found, instead
7427 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7428 `val' parameters. Adjust.
7430 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7432 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7433 almost but not quite adjacent.
7435 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7437 * value.h (value_entirely_available): Declare.
7438 * value.c (value_entirely_available): New function.
7439 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7440 real type if the pointer is unavailable.
7442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7444 * valops.c (value_repeat): Use read_value_memory instead of
7447 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7449 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7450 * value.c (value_contents_copy_raw, value_contents_copy): New
7452 (value_primitive_field): Use value_contents_copy_raw instead of
7454 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7456 (value_array, value_slice): Ditto.
7457 * valarith.c (value_subscripted_rvalue): Use
7458 value_contents_copy_raw instead of memcpy.
7460 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7462 <unavailable> references.
7464 * valops.c (get_value_at): Use value_from_contents_and_address,
7465 avoiding read_memory.
7467 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7469 * c-valprint.c (c_val_print): Print a string with unavailable
7470 contents as an array.
7472 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7474 * value.h (unpack_bits_as_long): Delete declaration.
7475 (unpack_value_bits_as_long): Declare.
7476 (unpack_value_field_as_long): Declare.
7477 (value_field_bitfield): Declare.
7478 * value.c (unpack_bits_as_long): Rename to...
7479 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7480 value parameters. Return the extracted result in a new output
7481 parameter. If the value contents are unavailable, return false,
7482 otherwise return true.
7483 (unpack_value_bits_as_long): New.
7484 (unpack_field_as_long): Rename to...
7485 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7486 Add embedded_offset and value parameters. Return the extracted
7487 result in a new output parameter. If the value contents are
7488 unavailable, return false, otherwise return true.
7489 (unpack_value_field_as_long): New.
7490 (unpack_field_as_long_1): New.
7491 (unpack_field_as_long): Reimplement as wrapper around
7492 unpack_value_field_as_long_1.
7493 (value_field_bitfield): New function.
7494 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7495 unpack_value_bits_as_long. Mark the value as unavailable, if it
7497 * jv-valprint.c (java_print_value_fields): Use
7498 value_field_bitfield.
7499 * p-valprint.c (pascal_object_print_value_fields): Use
7500 value_field_bitfield.
7501 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7503 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7505 * value.c (get_internalvar_integer): Also return the int value of
7506 TYPE_CODE_INT INTERNALVAR_VALUE values.
7507 (set_internalvar): Don't special case TYPE_CODE_INT.
7509 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7511 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7512 INTERNALVAR_POINTER.
7514 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7515 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7516 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7518 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7520 * value.h (value_available_contents_eq): Declare.
7521 * value.c (find_first_range_overlap): New function.
7522 (value_available_contents_eq): New function.
7523 * valprint.c (val_print_array_elements): Use
7524 value_available_contents_eq.
7525 * ada-valprint.c (val_print_packed_array_elements): Use
7526 value_available_contents_eq.
7527 * jv-valprint.c (java_value_print): Use
7528 value_available_contents_eq.
7530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7532 * target.c (target_read_live_memory): New function.
7533 (memory_xfer_live_readonly_partial): New.
7534 (memory_xfer_partial): If reading from a traceframe, fallback to
7535 reading unavailable read-only memory from read-only regions of
7537 * tracepoint.c (disconnect_tracing): Adjust.
7538 (set_current_traceframe): New, factored out from
7539 set_traceframe_number.
7540 (set_traceframe_number): Reimplement to only change the traceframe
7541 number on the GDB side.
7542 (do_restore_current_traceframe_cleanup): Adjust.
7543 (make_cleanup_restore_traceframe_number): New.
7544 (cur_traceframe_number): New global.
7545 (tfile_open): Set cur_traceframe_number to no traceframe.
7546 (set_tfile_traceframe): New function.
7547 (tfile_trace_find): If looking up a traceframe using any method
7548 other than by number, make sure the current tfile traceframe
7549 matches gdb's current traceframe. Update the current tfile
7550 traceframe if the lookup succeeded.
7551 (tfile_fetch_registers, tfile_xfer_partial)
7552 (tfile_get_trace_state_variable_value): Make sure the remote
7553 traceframe matches gdb's current traceframe.
7554 * remote.c (remote_traceframe_number): New global.
7555 (remote_open_1): Set it to -1.
7556 (set_remote_traceframe): New function.
7557 (remote_fetch_registers, remote_store_registers)
7558 (remote_xfer_memory, remote_xfer_partial)
7559 (remote_get_trace_state_variable_value): Make sure the remote
7560 traceframe matches gdb's current traceframe.
7561 (remote_trace_find): If looking up a traceframe using any method
7562 other than by number, make sure the current remote traceframe
7563 matches gdb's current traceframe. Update the current remote
7564 traceframe if the lookup succeeded.
7565 * infrun.c (fetch_inferior_event): Adjust.
7566 * tracepoint.h (set_current_traceframe): Declare.
7567 (get_traceframe_number, set_traceframe_number): Add describing
7570 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7572 Mark pieces of values as unavailable if the corresponding memory
7575 * valops.c: Include tracepoint.h.
7576 (value_fetch_lazy): Use read_value_memory.
7577 (read_value_memory): New.
7578 * value.h (read_value_memory): Declare.
7579 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7580 * exec.c (section_table_available_memory): New function.
7581 * exec.h (section_table_available_memory): Declare.
7583 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7585 * Makefile.in (SFILES): Add memrange.c.
7586 (HFILES_NO_SRCDIR): Add memrange.h.
7587 (COMMON_OBS): Add memrange.o.
7588 * memrange.c: New file.
7589 * memrange.h: New file.
7590 * tracepoint.c: Include memrange.h.
7591 (struct mem_range): Delete.
7592 (mem_range_s): Delete.
7593 (traceframe_available_memory): New function.
7594 * tracepoint.h (traceframe_available_memory): Declare.
7596 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7598 * target.h (struct traceframe_info): Forward declare.
7599 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7600 (struct target_ops) <to_traceframe_info>: New field.
7601 (target_traceframe_info): New.
7602 * target.c (update_current_target): Inherit and default
7604 * remote.c (PACKET_qXfer_traceframe_info): New.
7605 (remote_protocol_features): Register qXfer:traceframe-info:read.
7606 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7607 (remote_traceframe_info): New.
7608 (init_remote_ops): Install it.
7609 (_initialize_remote): Install "set/show remote traceframe-info"
7611 * tracepoint.h (parse_traceframe_info): Declare.
7612 * tracepoint.c (struct mem_range): New.
7613 (mem_range_s): New typedef.
7614 (struct traceframe_info): New.
7615 (traceframe_info): New global.
7616 (free_traceframe_info): New function.
7617 (clear_traceframe_info): New function.
7618 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7620 (build_traceframe_info): New function.
7621 (tfile_traceframe_info): New function.
7622 (init_tfile_ops): Install tfile_traceframe_info.
7623 (traceframe_info_start_memory, free_result): New functions.
7624 (memory_attributes, traceframe_info_elements): New globals.
7625 (parse_traceframe_info, get_traceframe_info): New functions.
7626 * features/traceframe-info.dtd: New file.
7627 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7629 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7631 Base support for <unavailable> value contents.
7633 * value.h (value_bytes_available): Declare.
7634 (mark_value_bytes_unavailable): Declare.
7635 * value.c (struct range): New struct.
7636 (range_s): New typedef.
7637 (ranges_overlap): New function.
7638 (range_lessthan): New function.
7639 (ranges_contain_p): New function.
7640 (struct value) <unavailable>: New field.
7641 (value_bytes_available): New function.
7642 (mark_value_bytes_unavailable): New function.
7643 (require_not_optimized_out): Constify parameter.
7644 (require_available): New function.
7645 (value_contents_all, value_contents): Require all bytes be
7647 (value_free): Free `unavailable'.
7648 (value_copy): Copy `unavailable'.
7649 * valprint.h (val_print_unavailable): Declare.
7650 * valprint.c (valprint_check_validity): Rename `offset' parameter
7651 to `embedded_offset'. If printing a scalar, check whether the
7652 value chunk is available.
7653 (val_print_unavailable): New.
7654 (val_print_scalar_formatted): Check whether the value is
7656 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7657 pretty-printing unavailable values.
7659 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7661 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7662 * c-typeprint.c (c_type_print_args): Update the function comment. New
7663 variable param_type, initialize it. Remove const/volatile qualifiers
7664 for language_cplus and !show_artificial. Use param_type.
7666 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7668 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7669 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7670 * symtab.h (struct symtab) <next>: Comment extension.
7672 2011-02-12 Yao Qi <yao@codesourcery.com>
7674 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7676 2011-02-11 Yao Qi <yao@codesourcery.com>
7678 * common/Makefile.in: Add copyright header.
7680 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7682 * infrun.c (proceed): Move switching out and in of tfind mode from
7684 (fetch_inferior_event): ... to here.
7686 2011-02-11 Yao Qi <yao@codesourcery.com>
7688 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7690 * configure.ac: Add common to sub dir.
7691 * configure: Regenerate.
7693 2011-02-11 Yao Qi <yao@codesourcery.com>
7697 * common/Makefile.in: New.
7698 * common/configure.ac: New.
7699 * common/aclocal.m4: New.
7700 * common/configure: Generate.
7702 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7704 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7705 side of the parenthesis.
7708 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7709 * vec.h (VEC_block_remove): Fix comment.
7711 2011-02-08 Michael Snyder <msnyder@vmware.com>
7713 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7715 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7718 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7721 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7726 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7727 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7729 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7731 * dwarf2read.c (read_subroutine_type): Set special calling
7732 convention flag for functions compiled by IBM XL C for OpenCL.
7733 * ppc-sysv-tdep.c: Include "dwarf2.h"
7734 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7736 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7737 IBM OpenCL vector types calling convention.
7738 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7739 (ppc_sysv_abi_broken_return_value): Likewise.
7740 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7741 types calling convention.
7742 (ppc64_sysv_abi_return_value): Likewise.
7743 * spu-tdep.c: Include "dwarf2.h"
7744 (spu_return_value): Implement IBM OpenCL vector types calling
7747 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7749 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7750 correct ABI for AltiVec vector arguments.
7752 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7754 * valprint.c (val_print): Extend comment.
7755 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7756 interface explanation to val_print.
7757 (ada_val_print_array): Adjust comment to current interface.
7758 (print_field_values): Adjust comment to current interface.
7759 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7760 explanation to val_print.
7761 * f-valprint.c (f_val_print): Ditto.
7762 * jv-valprint.c (java_val_print): Ditto.
7763 * m2-valprint.c (m2_val_print): Ditto.
7764 * p-valprint.c (pascal_val_print): Ditto.
7766 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7768 * breakpoint.c (parse_breakpoint_sals): Fix description.
7770 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7771 Oguz Kayral <oguzkayral@gmail.com>
7773 * python/py-inferior.c (python_on_normal_stop): New function.
7774 (python_on_resume): New function.
7775 (python_inferior_exit): New function.
7776 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7777 inferior_exit observers.
7778 * python/py-evtregistry.c: New file.
7779 * python/py-threadevent.c : New file.
7780 * python/py-event.c: New file.
7781 * python/py-evts.c: New file.
7782 * python/py-continueevent.c: New file.
7783 * python/py-bpevent.c: New file.
7784 * python/py-signalevent.c: New file.
7785 * python/py-exetiedevent.c: New file.
7786 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7787 Move struct breakpoint_object from here...
7788 * python/python-internal.h: ... to here.
7789 * python/py-event.h: New file.
7790 * python/py-events.h: New file.
7791 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7792 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7793 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7794 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7795 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7796 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7797 Add build rules for all the above.
7799 2011-02-04 Tom Tromey <tromey@redhat.com>
7801 * dwarf2read.c (dwarf2_section_empty_p): New function.
7802 (dwarf2_read_section): Use dwarf2_section_empty_p.
7803 (dwarf2_section_size): New function.
7804 (dwarf2_get_section_info): Unconditionally read section.
7805 (dwarf2_read_index): Use dwarf2_section_empty_p.
7806 (partial_read_comp_unit_head): Use dwarf2_section_size.
7807 (dwarf2_symbol_mark_computed): Likewise.
7809 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7811 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7813 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7815 * mips-linux-tdep.c: Include xml-syscall.h.
7816 (mips_linux_get_syscall_number): New function.
7817 (mips_linux_init_abi): Add calls to
7818 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7819 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7820 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7821 * syscalls/mips-n32-linux.xml: New file.
7822 * syscalls/mips-n64-linux.xml: New file.
7823 * syscalls/mips-o32-linux.xml: New file.
7825 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7827 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7828 Complain about inverted range entries.
7829 (dwarf2_record_block_ranges): Likewise.
7831 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7834 * breakpoint.c (update_watchpoint): Fix name of the
7835 update_global_location_list function.
7836 (print_one_breakpoint): Fix typo.
7837 (_initialize_breakpoint): Remove extra space in hbreak help
7839 * breakpoint.h (struct bp_location) <length>: Fix field
7842 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7844 * regcache.c (registers_changed_ptid): Don't explictly always
7845 clear `current_regcache'. Only clear current_thread_ptid and
7846 current_thread_arch when PTID matches. Only reinit the frame
7847 cache if PTID matches the current inferior_ptid. Move alloca(0)
7849 (registers_changed): ... here.
7851 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7853 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7854 starts with __stack_chk_guard as stack guard symbol.
7856 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7858 * disasm.c (compare_lines): Handle the end of sequence markers
7859 within the line table to better support disassembling over
7860 compilation unit boundaries.
7862 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7864 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7865 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7866 implementation even if no symbols are available.
7867 (thumb_analyze_prologue): Update call to skip_prologue_function.
7868 (arm_analyze_prologue): Likewise.
7870 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7872 * arm-tdep.c: Include "observer.h".
7873 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7874 (arm_exidx_data_key): New static variable.
7875 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7876 (struct arm_exidx_data): Likewise.
7877 (arm_exidx_data_free): New function.
7878 (arm_compare_exidx_entries): Likewise.
7879 (arm_obj_section_from_vma): Likewise.
7880 (arm_exidx_new_objfile): Likewise.
7881 (arm_find_exidx_entry): Likewise.
7882 (arm_exidx_fill_cache): Likewise.
7883 (arm_exidx_unwind_sniffer): Likewise.
7884 (arm_exidx_unwind): New global variable.
7885 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7886 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7887 observer. Register arm_exidx_data_key as objfile data.
7889 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7891 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7892 due to accessing uninitialized variable. Fix indentation.
7894 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7896 * c-valprint.c (c_value_print): When doing virtual base pointer
7897 adjustment, create a new value with adjusted contents rather than
7898 changing the contents of the value being printed (and getting it
7901 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7903 * xml-support.c (xml_find_attribute): New.
7904 (xinclude_start_include): Use it.
7905 * xml-support.h (xml_find_attribute): Declare.
7906 * memory-map.c (memory_map_start_memory)
7907 (memory_map_start_property): Use xml_find_attribute.
7908 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7910 * remote.c (start_thread): Use xml_find_attribute.
7911 * solib-target.c (library_list_start_segment)
7912 (library_list_start_section, library_list_start_library)
7913 (library_list_start_list): Use xml_find_attribute.
7914 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7915 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7916 (tdesc_start_field): Use xml_find_attribute.
7918 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7920 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7921 (BUILD_OCL_VTYPES): Update.
7923 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7925 * configure.ac: Work around non-GNU sed limitation when computing
7926 python version number.
7927 * configure: Regenerate.
7929 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7931 Fix debug printing of TYPE_INSTANCE.
7932 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7933 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7935 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7937 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7938 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7939 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7940 * ada-operator.inc: Rename the file to ...
7941 * ada-operator.def: ... here, wrap all the entries by macro OP.
7942 * expprint.c (op_name_standard): Remove all the entries. Include
7943 "std-operator.def" instead.
7944 * expression.h (enum exp_opcode): Include "std-operator.def" and
7945 "ada-operator.def". Move all the entries ...
7946 * std-operator.def: ... here, wrap all the entries by macro OP.
7948 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7950 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7951 * breakpoint.c (remove_jit_event_breakpoints): New function.
7952 * jit.c (jit_descriptor_addr): Delete.
7953 (registering_code): Delete.
7954 (clear_int): Delete.
7955 (jit_inferior_data): New variable.
7956 (struct jit_inferior_data): New type.
7957 (get_jit_inferior_data): New function.
7958 (jit_inferior_data_cleanup): New function.
7959 (jit_read_descriptor): Adjust.
7960 (jit_register_code): Adjust.
7961 (jit_breakpoint_re_set_internal): New function; move code here ...
7962 (jit_inferior_init): ... from here.
7963 (jit_breakpoint_re_set): Adjust.
7964 (jit_reset_inferior_data_and_breakpoints): New function.
7965 (jit_inferior_created_observer): Adjust.
7966 (jit_inferior_exit_hook): Adjust.
7967 (jit_executable_changed_observer): New function.
7968 (jit_event_handler): Adjust.
7969 (_initialize_jit): Adjust.
7971 2011-01-31 Michael Snyder <msnyder@vmware.com>
7973 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7976 2011-01-31 Tom Tromey <tromey@redhat.com>
7979 * python/python.c (execute_gdb_command): Call
7980 prevent_dont_repeat.
7981 * top.c (suppress_dont_repeat): New global.
7982 (dont_repeat): Use it.
7983 (prevent_dont_repeat): New function.
7984 * command.h (prevent_dont_repeat): Declare.
7986 2011-01-31 Tom Tromey <tromey@redhat.com>
7988 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7989 * python/py-breakpoint.c (bppy_set_silent): Use
7990 breakpoint_set_silent.
7991 (bppy_set_thread): Use breakpoint_set_thread.
7992 (bppy_set_task): Use breakpoint_set_task.
7993 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7994 (breakpoint_set_task): Declare.
7995 (make_breakpoint_silent): Remove.
7996 * breakpoint.c (breakpoint_set_silent): New function.
7997 (breakpoint_set_thread): Likewise.
7998 (breakpoint_set_task): Likewise.
7999 (make_breakpoint_silent): Remove.
8001 2011-01-31 Tom Tromey <tromey@redhat.com>
8003 * breakpoint.h (user_breakpoint_p): Declare.
8004 * breakpoint.c (user_breakpoint_p): New function.
8005 (breakpoint_1): Use it.
8006 (save_breakpoints): Likewise.
8008 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8010 * configure.ac: Add handling of Python distribution on Windows.
8011 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8012 sysconfig variables are not defined, then do not use them.
8013 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8014 instead. On Windows, return all paths using forward-slashes
8015 rather than backslashes.
8017 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8019 * configure.ac: Remove fallback behavior for building
8020 against Python. Remove tweaking of Python include path.
8021 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8022 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8023 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8024 Always restore CPPFLAGS and LIBS after linking test.
8025 * configure: Regenerated.
8026 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8027 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8028 * python/python-internal.h: Adjust includes of Python .h files.
8030 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8032 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8035 2011-01-31 Joel Brobecker <brobecker@adacore.com>
8037 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8040 2011-01-31 Yao Qi <yao@codesourcery.com>
8042 * arm-linux-nat.c: Update calls to regcache_register_status
8043 instead of regcache_valid_p.
8044 * aix-thread.c: Likewise.
8045 * i386gnu-nat.c: Likewise.
8047 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8050 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8051 touching TYPE_FIELD_ARTIFICIAL.
8053 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
8055 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8058 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8060 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8061 selected, don't try iterating over the traceframe's blocks.
8062 (tfile_has_stack): If there's no traceframe selected, then there's
8064 (tfile_has_registers): If there's no traceframe selected, then
8065 there's no registers.
8067 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8069 * target.c (memory_xfer_partial): No need to restore shadows if we
8070 haven't read anything.
8072 2011-01-28 Pedro Alves <pedro@codesourcery.com>
8074 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8075 and val_print_scalar_formatted.
8077 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8079 * tracepoint.c (tfile_read): New.
8080 (tfile_open): Use it.
8081 (tfile_get_traceframe_address): Use it.
8082 (tfile_trace_find): Use it.
8083 (walk_blocks_callback_func): New typedef.
8084 (match_blocktype): New function.
8085 (traceframe_walk_blocks): New function.
8086 (traceframe_find_block_type): New function.
8087 (tfile_fetch_registers, tfile_xfer_partial)
8088 (tfile_get_trace_state_variable_value): Use
8089 traceframe_find_block_type and tfile_read.
8091 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8093 * remote-mips.c: Add internationalization mark ups. Remove
8094 trailing \n from already marked up strings.
8096 2011-01-26 Tom Tromey <tromey@redhat.com>
8098 * python/py-prettyprint.c (print_string_repr): Clear
8099 'addressprint' option when calling val_print_string.
8100 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8101 option when calling val_print_string.
8103 2011-01-26 Tom Tromey <tromey@redhat.com>
8105 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8107 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8109 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8110 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8111 (gdb_py_long_as_ulongest): New defines.
8112 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8113 (gdb_py_int_as_long): Declare.
8114 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8115 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8116 (valpy_long): Add comment.
8117 * python/py-utils.c (get_addr_from_python): Use
8118 gdb_py_long_as_ulongest. Handle overflow properly.
8119 (gdb_py_object_from_longest): New function.
8120 (gdb_py_object_from_ulongest): Likewise.
8121 (gdb_py_int_as_long): Likewise.
8122 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8123 * python/py-symtab.c (salpy_get_pc): Use
8124 gdb_py_long_from_ulongest.
8125 (salpy_get_line): Use PyInt_FromLong.
8126 * python/py-param.c (set_parameter_value): Use
8128 * python/py-lazy-string.c (stpy_get_address): Use
8129 gdb_py_long_from_ulongest.
8130 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8131 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8132 * python/py-breakpoint.c (bppy_set_thread): Use
8134 (bppy_set_task): Likewise.
8135 (bppy_set_ignore_count): Likewise.
8136 (bppy_set_hit_count): Likewise.
8137 * python/py-block.c (blpy_get_start): Use
8138 gdb_py_object_from_ulongest.
8139 (blpy_get_end): Likewise.
8140 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8142 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8145 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8146 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8147 equality test for objfile, initialize addr_low if needed.
8149 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8151 * tui/tui-regs.c (tui_register_format): Remove dead code.
8153 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8155 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8156 instead of print_scalar_formatted.
8157 (print_scalar_formatted): Don't handle 's' format strings here,
8158 and add an assertion that we never see such format here.
8159 * valprint.h (val_print_scalar_formatted): Declare.
8160 * valprint.c (val_print_scalar_formatted): New.
8161 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8162 instead of print_scalar_formatted.
8163 * jv-valprint.c (java_val_print): Ditto.
8164 * p-valprint.c (pascal_val_print): Ditto.
8165 * ada-valprint.c (ada_val_print_1): Ditto.
8166 * f-valprint.c (f_val_print): Ditto.
8167 * infcmd.c (registers_info): Ditto.
8168 * m2-valprint.c (m2_val_print): Ditto.
8170 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8172 * m2-valprint.c (print_unbounded_array): Pass
8173 value_contents_for_printing rather than value_contents, to
8174 m2_print_array_contents. Also pass in the value.
8176 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8178 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8179 (save_gdb_index_command): Switch to .gdb_index version 4.
8181 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8183 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8184 than frame_register, and always pass a valid value to val_print.
8186 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8188 Centralize printing "<optimized out>".
8190 * valprint.h (val_print_optimized_out): Declare.
8191 * cp-valprint.c (cp_print_value_fields): Use
8192 val_print_optimized_out.
8193 * jv-valprint.c (java_print_value_fields): Ditto.
8194 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8195 * printcmd.c (print_formatted): Ditto.
8196 * valprint.c (valprint_check_validity): Ditto.
8197 (value_check_printable): Ditto.
8198 (val_print_optimized_out): New.
8200 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8202 * infcmd.c (default_print_registers_info): Allocate values so to
8203 never pass a NULL value to val_print.
8205 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8207 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8208 boolean. Make sure to always pass a value that matches the
8209 contents buffer to callees. Preserve `address' for following
8211 * value.c (value_contents_for_printing_const): New.
8212 (value_address): Constify value argument.
8213 * value.h (value_contents_for_printing_const): Declare.
8214 (value_address): Constify value argument.
8216 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8218 * regcache.c (struct regcache_descr): Rename
8219 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8220 and sizeof_cooked_register_valid_p to
8221 sizeof_cooked_register_status.
8222 (init_regcache_descr): Adjust.
8223 (struct regcache): Rename register_valid_p field to
8225 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8226 (do_cooked_read): Adjust.
8227 (regcache_valid_p): Rename to ...
8228 (regcache_register_status): ... this. Adjust.
8229 (regcache_invalidate): Adjust.
8230 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8232 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8233 as unavailable, not valid.
8234 (regcache_dump): Adjust.
8235 * regcache.h (enum register_status): New.
8236 (regcache_register_status): Declare.
8237 (regcache_invalidate): Delete declaration.
8238 * corelow.c (get_core_registers): Adjust.
8239 * tracepoint.c (tfile_fetch_registers): Adjust.
8240 * trad-frame.c (REG_VALUE): Rename to ...
8241 (TF_REG_VALUE): ... this.
8242 (REG_UNKNOWN): Rename to ...
8243 (TF_REG_UNKNOWN): ... this.
8244 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8245 * mi/mi-main.c (register_changed_p): Adjust.
8247 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8249 * regcache.c (struct regcache_descr): Remove outdated comment.
8250 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8252 (regcache_xmalloc): Rename to ...
8253 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8254 Allocate the regcache type accordingly.
8255 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8256 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8257 cooked registers, not raw.
8258 (regcache_dup_no_passthrough): Delete.
8259 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8260 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8261 mention obsolete write_register_bytes.
8262 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8264 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8266 Stop remote_read_bytes from handling partial reads itself.
8268 * remote-fileio.c: Include target.h.
8269 (remote_fileio_write_bytes): Delete.
8270 (remote_fileio_func_open, remote_fileio_func_write)
8271 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8273 (remote_fileio_func_stat): Use target_read_memory and
8274 target_write_memory.
8275 (remote_fileio_func_gettimeofday): Use target_write_memory.
8276 (remote_fileio_func_system): Use target_read_memory.
8277 * remote.c (remote_write_bytes): Make it static.
8278 (remote_read_bytes): Don't handle partial reads here.
8279 * remote.h (remote_read_bytes): Delete declaration.
8281 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8283 Simplify XML parsing a bit.
8285 * xml-support.h (gdb_xml_parse_quick): Declare.
8286 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8287 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8289 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8290 gdb_xml_create_parser_and_cleanup_1.
8291 (gdb_xml_parse_quick): New.
8292 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8293 * osdata.c (osdata_parse): Ditto.
8294 * remote.c (remote_threads_info): Ditto.
8295 * solib-target.c (solib_target_parse_libraries): Ditto.
8296 * xml-syscall.c (syscall_parse_xml): Ditto.
8297 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8299 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8301 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8302 with remote-mips.o added to gdb_target_obs.
8303 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8305 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8307 * ada-valprint.c (val_print_packed_array_elements): Pass the
8308 correct struct value to val_print.
8309 (ada_val_print_1): Ditto.
8311 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8313 Don't lose embedded_offset in printing routines throughout.
8315 * valprint.h (val_print_array_elements): Change prototype.
8316 * valprint.c (val_print_array_elements): Add `embedded_offset'
8317 parameter, and adjust to pass it down to val_print, while passing
8318 `valaddr' or `address' unmodified. Take embedded_offset into
8319 account when checking repetitions.
8320 * c-valprint.c (c_val_print): Pass embedded_offset to
8321 val_print_array_elements instead of adjusting `valaddr' and
8323 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8324 embedded_offset to val_print_array_elements instead of adjusting
8326 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8327 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8328 val_print_array_elements and pascal_object_print_value_fields
8329 instead of adjusting `valaddr'.
8330 (pascal_object_print_value_fields): Add `offset' parameter, and
8332 (pascal_object_print_value): Add `offset' parameter, and adjust to
8334 (pascal_object_print_static_field): Use
8335 value_contents_for_printing/value_embedded_offset, rather than
8337 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8338 parameter, and adjust to use it. Use
8339 value_contents_for_printing/value_embedded_offset, rather than
8341 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8342 (ada_val_print_array): Add `offset' parameter, and adjust to use
8344 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8345 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8346 Instead work with offsets. Use
8347 value_contents_for_printing/value_embedded_offset, rather than
8348 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8349 and use value_from_pointer to extract a target pointer, rather
8350 than value_from_longest.
8351 (print_variant_part): Add `offset' parameter. Replace
8352 `outer_valaddr' parameter by a new `outer_offset' parameter.
8353 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8354 (ada_value_print): Use
8355 value_contents_for_printing/value_embedded_offset, rather than
8357 (print_record): Add `offset' parameter, and adjust to pass it
8359 (print_field_values): Add `offset' parameter. Replace
8360 `outer_valaddr' parameter by a new `outer_offset' parameter.
8361 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8362 Use value_contents_for_printing/value_embedded_offset, rather than
8364 * d-valprint.c (dynamic_array_type): Use
8365 value_contents_for_printing/value_embedded_offset, rather than
8367 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8368 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8369 (java_print_value_fields): Take `offset' into account. Don't
8370 re-adjust `valaddr'. Instead pass down adjusted offsets.
8371 (java_val_print): Take `embedded_offset' into account. Pass it to
8372 java_print_value_fields.
8373 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8374 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8375 down adjusted offsets.
8376 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8377 (f_val_print): Take `embedded_offset' into account.
8379 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8381 * inflow.c: Include "gdbcmd.h".
8382 (interactive_mode): New static global, moved here from top.c.
8383 (show_interactive_mode): New function, moved here from top.c.
8384 use gdb_has_a_terminal instead of input_from_terminal_p to
8385 determine the current mode.
8386 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8388 (_initialize_inflow): Add the "set/show interactive-mode"
8389 commands. Moved here from top.c, after having adjusted slightly
8391 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8393 (input_from_terminal_p): Remove handling of "interactive-mode"
8394 setting, moved to infow.c.
8395 (init_main): Remove creation of the "set/show interactive-mode"
8396 commands, moved to inflow.c.
8398 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8400 * NEWS: Add entry for native ia64-hpux support.
8402 2011-01-19 Tom Tromey <tromey@redhat.com>
8405 * thread.c (free_thread): Free 'name'.
8406 (print_thread_info): Emit thread name. Change CLI output.
8407 (thread_name_command): New function.
8408 (do_captured_thread_select): Emit newline.
8409 (_initialize_thread): Register 'thread name' command.
8410 * target.h (struct target_ops) <to_thread_name>: New field.
8411 (target_thread_name): New macro.
8412 * target.c (update_current_target): Handle to_thread_name.
8413 * python/py-infthread.c (thpy_get_name): New function.
8414 (thpy_set_name): Likewise.
8415 (thread_object_getset): Add "name".
8416 * linux-nat.c (linux_nat_thread_name): New function.
8417 (linux_nat_add_target): Set to_thread_name.
8418 * gdbthread.h (struct thread_info) <name>: New field.
8420 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8422 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8423 (ada_val_print_1): Likewise.
8425 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8427 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8428 upper limit address is not greater than the function end address
8429 when the upper limit could not be computed using the debugging
8432 2011-01-17 Tom Tromey <tromey@redhat.com>
8434 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8436 * utils.c: Include gdb_regex.h.
8437 (do_regfree_cleanup): New function.
8438 (make_regfree_cleanup): Likewise.
8439 (get_regcomp_error): Likewise.
8440 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8442 2011-01-17 Tom Tromey <tromey@redhat.com>
8444 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8447 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8449 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8450 for internal variables.
8451 (last_was_structop): New static variable.
8452 (COMPLETE): New token.
8453 (field_exp): New rule to group all '.' suffix handling.
8454 Add mark_struct_expression calls when approriate to be able
8455 to correctly find fields for completion.
8456 (yylex): Adapt to handle field completion and set INTVAR when
8459 2011-01-14 Yao Qi <yao@codesourcery.com>
8461 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8462 save_reggroup, restore_reggroup and all_reggroup.
8464 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8466 * ada-valprint. (ada_printchar): Use the correct type length
8467 in call to ada_emit_char.
8468 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8470 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8472 * solib-som.h (hpux_major_release): Declare variable here.
8473 * solib-som.c: Remove <sys/utsname.h> header.
8474 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8475 (hpux_major_release): Make global, change default value to
8476 DEFAULT_HPUX_MAJOR_RELEASE.
8477 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8478 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8479 Add "solib-som.h" header.
8480 (set_hpux_major_release): New function.
8481 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8483 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8485 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8487 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8489 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8490 new-line at end of warning message.
8491 (ia64_hpux_store_register): Remove trailing new-line at end of
8493 * ia64-hpux-tdep.c: Rephrase comment.
8494 * solib-ia64-hpux.c (struct dld_info): Change type of field
8495 dld_flags from "long long" to ULONGEST.
8497 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8499 * target.h (deprecated_child_ops): Delete declaration.
8500 * target.c (deprecated_child_ops): Delete definition.
8502 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8504 * Makefile.in (hpux-thread.o): Delete rule.
8505 * configure.ac: Don't check for HPUX DCE threads support.
8506 * configure, config.in: Regenerate.
8507 * hppa-hpux-nat.c (child_suppress_run): Delete.
8508 (hppa_hpux_child_can_run): Delete.
8509 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8510 * hpux-thread.c: Delete.
8512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8514 * hpux-thread.c (hpux_pid_to_str): Delete.
8516 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8518 * ada-valprint.c (ada_emit_char): Remove strange code.
8519 Check that c is <= UCHAR_MAX before passing it to isascii.
8520 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8522 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8524 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8525 to the case where instream is stdin.
8527 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8529 * ia64-tdep.h (struct regcache): Forward declare.
8530 (struct ia64_infcall_ops): New struct type.
8531 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8533 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8534 Renames ia64_find_global_pointer.
8535 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8536 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8537 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8539 (ia64_infcall_ops): New static global constant.
8540 (ia64_gdbarch_init): Set tdep->infcall_ops.
8541 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8542 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8543 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8544 (ia64_hpux_dummy_code): New static global constant.
8545 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8546 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8547 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8549 (ia64_hpux_infcall_ops): New static global constant.
8550 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8551 for inferior function calls to work properly on ia64-hpux.
8553 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8555 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8556 * ia64-tdep.h (struct frame_info): forward declaration.
8557 (struct gdbarch_tdep): Add field size_of_register_frame.
8558 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8559 to determine the size of the register frame.
8560 (ia64_size_of_register_frame): New function.
8561 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8562 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8563 (IA64_HPUX_UREG_REASON): New macro.
8564 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8566 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8567 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8568 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8571 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8573 Add support for ia64-hpux.
8574 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8575 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8577 * configure.host: Add handling for ia64-hpux hosts. Add associated
8579 * configure.tgt: Add handling for ia64-hpux targets.
8580 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8581 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8582 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8584 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8586 [ttrace] Compute thread list immediately after attach.
8587 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8589 (inf_ttrace_attach): Use it.
8591 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8593 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8594 if we could not determine the frame's function address. Instead,
8595 use the frame's PC, and then continue.
8597 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8599 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8600 not already defined.
8602 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8604 * ia64-tdep.c (ia64_struct_type_p): New function.
8605 (ia64_extract_return_value): Handle integral values that are
8606 less than 8 bytes long.
8607 (ia64_push_dummy_call): Likewise.
8609 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8611 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8612 floatformat_ia64_ext.
8613 (floatformat_ia64_ext_big): New static const.
8614 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8616 2011-01-12 Tom Tromey <tromey@redhat.com>
8618 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8620 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8621 (mi_cmd_thread_list_ids): Likewise.
8622 (mi_cmd_data_list_changed_registers): Likewise.
8623 (mi_cmd_data_list_register_values): Likewise.
8624 (mi_cmd_data_write_register_values): Likewise.
8625 (mi_cmd_data_evaluate_expression): Likewise.
8626 (mi_cmd_data_read_memory): Likewise.
8627 (mi_cmd_data_read_memory_bytes): Likewise.
8628 (mi_cmd_data_write_memory): Likewise.
8629 (mi_cmd_enable_timings): Likewise.
8630 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8631 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8632 (mi_cmd_var_delete): Likewise.
8633 (mi_cmd_var_set_format): Likewise.
8634 (mi_cmd_var_show_format): Likewise.
8635 (mi_cmd_var_info_num_children): Likewise.
8636 (mi_cmd_var_list_children): Likewise.
8637 (mi_cmd_var_info_type): Likewise.
8638 (mi_cmd_var_info_expression): Likewise.
8639 (mi_cmd_var_show_attributes): Likewise.
8640 (mi_cmd_var_assign): Likewise.
8641 (mi_cmd_var_update): Likewise.
8642 (mi_cmd_enable_pretty_printing): Likewise.
8643 (mi_cmd_var_set_update_range): Likewise.
8644 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8646 (mi_cmd_target_file_put): Likewise.
8647 (mi_cmd_target_file_delete): Likewise.
8648 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8650 (mi_cmd_stack_info_depth): Likewise.
8651 (mi_cmd_stack_list_locals): Likewise.
8652 (mi_cmd_stack_list_args): Likewise.
8653 (mi_cmd_stack_select_frame): Likewise.
8654 (mi_cmd_stack_select_frame): Likewise.
8655 (mi_cmd_stack_info_frame): Likewise.
8656 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8658 (mi_cmd_file_list_exec_source_files): Likewise.
8659 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8660 (mi_cmd_env_cd): Likewise.
8661 (mi_cmd_env_path): Likewise.
8662 (mi_cmd_env_dir): Likewise.
8663 (mi_cmd_inferior_tty_show): Likewise.
8664 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8665 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8666 (mi_cmd_break_watch): Likewise.
8668 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8670 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8671 (ppc_linux_insert_hw_breakpoint): Likewise.
8672 (ppc_linux_remove_hw_breakpoint): Likewise.
8673 (ppc_linux_insert_watchpoint): Likewise.
8675 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8676 Jan Kratochvil <jan.kratochvil@redhat.com>
8678 PR fortran/11104 and DWARF unbound arrays detection.
8679 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8680 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8681 unspecified upper bound.
8682 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8683 variables array_size_array, tmp_type and offset_item. New variable
8684 array. Remove call to f77_get_upperbound. New variables array_type
8685 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8686 the final call to deprecated_set_value_type.
8688 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8690 Make value allocations more lazy.
8691 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8692 instead of allocate_value and set_value_lazy when possible.
8693 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8694 instead of allocate_value and set_value_lazy.
8695 * findvar.c (value_of_register_lazy): Likewise.
8696 (read_var_value): Remove V preallocation, call just check_typedef in
8697 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8698 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8699 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8700 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8701 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8702 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8703 the end, remove set_value_lazy there.
8704 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8705 instead of allocate_value and set_value_lazy when possible.
8706 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8707 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8708 of allocate_value and set_value_lazy.
8709 (value_from_contents_and_address): Use allocate_value_lazy instead of
8710 allocate_value and set_value_lazy when possible.
8712 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8714 * disasm.c (dump_insns): Support dumping opcodes for MI.
8715 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8716 dumping of instruction opcodes.
8718 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8720 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8723 2011-01-11 Tom Tromey <tromey@redhat.com>
8725 * thread.c (do_captured_thread_select): Emit newline before
8728 2011-01-11 Michael Snyder <msnyder@vmware.com>
8730 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8731 * score-tdep.c: Ditto.
8732 * score-tdep.h: Ditto.
8733 * ser-base.c: Ditto.
8734 * ser-go32.c: Ditto.
8737 * ser-mingw.c: Ditto.
8738 * ser-pipe.c: Ditto.
8740 * ser-unix.c: Ditto.
8741 * sh64-tdep.c: Ditto.
8742 * shnbsd-nat.c: Ditto.
8746 * solib-darwin.c: Ditto.
8747 * solib-frv.c: Ditto.
8749 * solib-irix.c: Ditto.
8750 * solib-osf.c: Ditto.
8751 * solib-pa64.c: Ditto.
8752 * solib-som.c: Ditto.
8753 * solib-spu.c: Ditto.
8754 * solib-sunos.c: Ditto.
8755 * solib-svr4.c: Ditto.
8757 * sol-thread.c: Ditto.
8761 * sparc64-linux-tdep.c: Ditto.
8762 * sparc64-tdep.c: Ditto.
8763 * sparc-linux-nat.c: Ditto.
8764 * sparc-linux-tdep.c: Ditto.
8765 * sparc-sol2-nat.c: Ditto.
8766 * sparc-sol2-tdep.c: Ditto.
8767 * sparc-tdep.c: Ditto.
8768 * sparc-tdep.h: Ditto.
8769 * spu-tdep.c: Ditto.
8770 * stabsread.c: Ditto.
8771 * stabsread.h: Ditto.
8779 * target-descriptions.c: Ditto.
8780 * target-descriptions.h: Ditto.
8782 * target-memory.c: Ditto.
8783 * terminal.h: Ditto.
8786 * tracepoint.c: Ditto.
8787 * tracepoint.h: Ditto.
8788 * trad-frame.h: Ditto.
8789 * typeprint.c: Ditto.
8791 2011-01-11 Michael Snyder <msnyder@vmware.com>
8793 * ui-file.c: Comment cleanup, mostly periods and spaces.
8798 * v850-tdep.c: Ditto.
8799 * valarith.c: Ditto.
8801 * valprint.c: Ditto.
8802 * valprint.h: Ditto.
8807 * vax-tdep.c: Ditto.
8811 * windows-nat.c: Ditto.
8812 * windows-tdep.c: Ditto.
8813 * xcoffread.c: Ditto.
8814 * xcoffsolib.c: Ditto.
8815 * xml-support.c: Ditto.
8816 * xstormy16-tdep.c: Ditto.
8817 * xtensa-tdep.c: Ditto.
8818 * xtensa-tdep.h: Ditto.
8820 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8822 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8823 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8825 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8826 Thiago Jung Bauermann <bauerman@br.ibm.com>
8828 Implement support for PowerPC BookE ranged watchpoints.
8830 (struct breakpoint_ops) <resources_needed>: New method.
8831 Initialize to NULL in all existing breakpoint_ops instances.
8832 (struct breakpoint) <exact>: New field.
8833 (target_exact_watchpoints): Declare external global.
8834 * breakpoint.c (target_exact_watchpoints): New global flag.
8835 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8836 b->enable_state to bp_enabled before calling
8837 hw_watchpoint_used_count.
8838 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8839 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8841 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8842 if the watchpoint is exact.
8843 (resources_needed_watchpoint): New function.
8844 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8845 (watch_command_1): Set b->exact if the user asked for an exact
8846 watchpoint and one can be set.
8847 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8848 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8849 the user asks for an exact watchpoint and one can be set. Return
8850 number of needed debug registers to watch the expression.
8851 * gdbtypes.c (is_scalar_type): New function, based on
8852 valprint.c:scalar_type_p.
8853 (is_scalar_type_recursive): New function.
8854 * gdbtypes.h (is_scalar_type_recursive): Declare.
8855 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8856 handle regions when ranged watchpoints are available.
8857 (create_watchpoint_request): New function.
8858 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8859 create_watchpoint_request.
8860 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8861 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8862 `set powerpc' and `show powerpc' commands.
8863 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8864 Mention documentation comment in the target macro.
8865 (target_region_ok_for_hw_watchpoint): Document return value.
8867 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8869 * breakpoint.c (update_watchpoint): Decide on using a software or
8870 hardware watchpoint after the bp_locations are created.
8872 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8874 Convert hardware watchpoints to use breakpoint_ops.
8875 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8876 <insert_location>: ... this. Return int instead of void.
8877 Accept pointer to struct bp_location instead of pointer to
8878 struct breakpoint. Adapt all implementations.
8879 (breakpoint_ops) <remove>: Rename to...
8880 <remove_location>: ... this. Accept pointer to struct bp_location
8881 instead of pointer to struct breakpoint. Adapt all implementations.
8882 * breakpoint.c (insert_catchpoint): Delete function.
8883 (insert_bp_location): Call the watchpoint or catchpoint's
8884 breakpoint_ops.insert method.
8885 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8886 breakpoint_ops.remove method.
8887 (insert_watchpoint, remove_watchpoint): New functions.
8888 (watchpoint_breakpoint_ops): New structure.
8889 (watch_command_1): Initialize the OPS field.
8890 * inf-child.c (inf_child_insert_fork_catchpoint)
8891 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8892 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8893 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8895 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8896 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8897 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8898 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8899 * target.c (update_current_target): Change default implementation of
8900 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8901 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8902 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8903 to_set_syscall_catchpoint to return_one.
8904 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8905 (debug_to_insert_exec_catchpoint): Report return value.
8906 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8907 (to_insert_exec_catchpoint): Change declaration to return int instead
8910 2011-01-11 Michael Snyder <msnyder@vmware.com>
8912 * arm-tdep.c: Internationalization.
8915 * fork-child.c: Ditto.
8916 * nto-procfs.c: Ditto.
8917 * ppc-sysv-tdep.c: Ditto.
8919 * remote-mips.c: Ditto.
8921 * rs6000-nat.c: Ditto.
8922 * rs6000-tdep.c: Ditto.
8926 * xml-support.c: Ditto.
8927 * mi/mi-cmd-break.c: Ditto.
8928 * mi/mi-cmd-var.c: Ditto.
8929 * mi/mi-interp.c: Ditto.
8930 * mi/mi-main.c: Ditto.
8932 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8934 * remote-sim.c (gdbsim_store_register): Update API to
8935 sim_store_register to check more error conditions.
8937 2011-01-10 Michael Snyder <msnyder@vmware.com>
8939 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8940 * nto-tdep.c: Ditto.
8941 * nto-tdep.h: Ditto.
8942 * objc-exp.y: Ditto.
8943 * objc-lang.c: Ditto.
8944 * objfiles.c: Ditto.
8945 * objfiles.h: Ditto.
8946 * observer.c: Ditto.
8947 * opencl-lang.c: Ditto.
8950 * parser-defs.h: Ditto.
8953 * posix-hdep.c: Ditto.
8954 * ppcbug-rom.c: Ditto.
8955 * ppc-linux-nat.c: Ditto.
8956 * ppc-linux-tdep.c: Ditto.
8957 * ppc-linux-tdep.h: Ditto.
8958 * ppcnbsd-tdep.c: Ditto.
8959 * ppcobsd-tdep.c: Ditto.
8960 * ppcobsd-tdep.h: Ditto.
8961 * ppc-sysv-tdep.c: Ditto.
8962 * ppc-tdep.h: Ditto.
8963 * printcmd.c: Ditto.
8964 * proc-abi.c: Ditto.
8965 * proc-flags.c: Ditto.
8967 * proc-utils.h: Ditto.
8968 * progspace.h: Ditto.
8969 * prologue-value.c: Ditto.
8970 * prologue-value.h: Ditto.
8971 * psympriv.h: Ditto.
8973 * p-typeprint.c: Ditto.
8974 * p-valprint.c: Ditto.
8975 * ravenscar-sparc-thread.c: Ditto.
8976 * ravenscar-thread.c: Ditto.
8977 * ravenscar-thread.h: Ditto.
8979 * regcache.c: Ditto.
8980 * regcache.h: Ditto.
8982 * remote-fileio.c: Ditto.
8983 * remote-fileio.h: Ditto.
8985 * remote-m32r-sdi.c: Ditto.
8986 * remote-mips.c: Ditto.
8987 * remote-sim.c: Ditto.
8988 * rs6000-aix-tdep.c: Ditto.
8989 * rs6000-nat.c: Ditto.
8990 * rs6000-tdep.c: Ditto.
8992 2011-01-10 Michael Snyder <msnyder@vmware.com>
8994 * charset.c (validate): Internationalization.
8995 * coffread.c (read_one_sym): Ditto.
8996 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8997 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8998 * inflow.c (new_tty): Ditto.
8999 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9000 * m32c-tdep.c (m32c_return_value): Ditto.
9001 * mep-tdep.c (mep_store_return_value): Ditto.
9002 * score-tdep.c (score7_fetch_insn): Ditto.
9003 * ser-mingw.c (pipe_windows_open): Ditto.
9004 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9005 * spu-tdep.c (spu_register_type): Ditto.
9006 * tracepoint.c (trace_find_command): Ditto.
9007 * valarith.c (value_pos): Ditto.
9009 2011-01-10 Joel Brobecker <brobecker@adacore.com>
9011 * ada-valprint.c (printstr): Minor comment reformatting.
9013 2011-01-08 Michael Snyder <msnyder@vmware.com>
9015 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9018 2011-01-08 Michael Snyder <msnyder@vmware.com>
9020 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9021 * hppa-hpux-tdep.c: Ditto.
9022 * hppa-linux-nat.c: Ditto.
9023 * hppa-linux-tdep.c: Ditto.
9024 * hppanbsd-tdep.c: Ditto.
9025 * hppa-tdep.c: Ditto.
9026 * hppa-tdep.h: Ditto.
9027 * hpux-thread.c: Ditto.
9028 * i386-cygwin-tdep.c: Ditto.
9029 * i386-darwin-nat.c: Ditto.
9030 * i386gnu-nat.c: Ditto.
9031 * i386-linux-nat.c: Ditto.
9032 * i386-linux-tdep.c: Ditto.
9033 * i386-nat.c: Ditto.
9034 * i386-nat.h: Ditto.
9035 * i386nbsd-tdep.c: Ditto.
9036 * i386-sol2-nat.c: Ditto.
9037 * i386-stub.c: Ditto.
9038 * i386-tdep.c: Ditto.
9039 * i386-tdep.h: Ditto.
9040 * i387-tdep.c: Ditto.
9041 * ia64-linux-nat.c: Ditto.
9042 * ia64-linux-tdep.c: Ditto.
9043 * ia64-tdep.c: Ditto.
9047 * inferior.c: Ditto.
9048 * inferior.h: Ditto.
9054 * iq2000-tdep.c: Ditto.
9055 * irix5-nat.c: Ditto.
9061 * jv-typeprint.c: Ditto.
9062 * jv-valprint.c: Ditto.
9063 * language.c: Ditto.
9064 * language.h: Ditto.
9065 * linespec.c: Ditto.
9066 * linux-fork.c: Ditto.
9067 * linux-nat.c: Ditto.
9068 * linux-thread-db.c: Ditto.
9069 * lm32-tdep.c: Ditto.
9071 2011-01-08 Michael Snyder <msnyder@vmware.com>
9073 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9075 * m2-typeprint.c: Ditto.
9076 * m2-valprint.c: Ditto.
9077 * m32c-tdep.c: Ditto.
9078 * m32r-linux-nat.c: Ditto.
9079 * m32r-rom.c: Ditto.
9080 * m32r-tdep.c: Ditto.
9081 * m32r-tdep.h: Ditto.
9082 * m68hc11-tdep.c: Ditto.
9083 * m58klinux-nat.c: Ditto.
9084 * m68k-tdep.c: Ditto.
9085 * m88k-tdep.c: Ditto.
9086 * m88k-tdep.h: Ditto.
9087 * machoread.c: Ditto.
9088 * macrocmd.c: Ditto.
9089 * macroexp.c: Ditto.
9090 * macrotab.c: Ditto.
9093 * mdebugread.c: Ditto.
9094 * mdebugread.h: Ditto.
9097 * memory-map.h: Ditto.
9098 * mep-tdep.c: Ditto.
9099 * microblaze-rom.c: Ditto.
9100 * microblaze-tdep.c: Ditto.
9102 * mips-irix-tdep.c: Ditto.
9103 * mips-linux-nat.c: Ditto.
9104 * mips-linux-tdep.c: Ditto.
9105 * mips-linux-tdep.h: Ditto.
9106 * mipsnbsd-nat.c: Ditto.
9107 * mipsnbsd-tdep.c: Ditto.
9108 * mipsread.c: Ditto.
9109 * mips-tdep.c: Ditto.
9110 * mips-tdep.h: Ditto.
9111 * mn10300-linux-tdep.c: Ditto.
9112 * mn10300-tdep.c: Ditto.
9113 * mn10300-tdep.h: Ditto.
9116 * moxie-tdep.c: Ditto.
9117 * moxie-tdep.h: Ditto.
9120 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9122 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9124 2011-01-08 Robert Millan <rmh@gnu.org>
9126 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9128 2011-01-07 Michael Snyder <msnyder@vmware.com>
9130 * charset.c (_initialize_charset): Fix typo in string.
9132 2011-01-07 Michael Snyder <msnyder@vmware.com>
9134 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9136 * tui/tui-layout.c (tui_set_layout_for_display_command):
9137 Split line so that operator goes to beginning of line.
9138 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9139 assignment out of if statement.
9141 2011-01-07 Michael Snyder <msnyder@vmware.com>
9143 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9144 * ada-lang.h: Ditto.
9145 * ada-tasks.c: Ditto.
9146 * ada-valprint.c: Ditto.
9147 * aix-threads.c: Ditto.
9148 * alpha-linux-nat.c: Ditto.
9149 * alpha-linux-tdep.c: Ditto.
9150 * alpha-mdebug-tdep.c: Ditto.
9151 * alpha-nat.c: Ditto.
9152 * alpha-osf1-tdep.c: Ditto.
9153 * alpha-tdep.c: Ditto.
9154 * alphabsd-nat.c: Ditto.
9155 * alphabsd-tdep.c: Ditto.
9156 * amd64-darwin-tdep.c: Ditto.
9157 * amd64-linux-nat.c: Ditto.
9158 * amd64-linux-tdep.c: Ditto.
9159 * amd64-sol2-tdep.c: Ditto.
9160 * amd64-tdep.c: Ditto.
9161 * amd64-fbsd-tdep.c: Ditto.
9162 * amd64-nbsd-tdep.c: Ditto.
9163 * amd64-obsd-tdep.c: Ditto.
9164 * amd64-linux-nat.c: Ditto.
9165 * amd64-linux-tdep.c: Ditto.
9166 * arm-tdep.c: Ditto.
9167 * arm-tdep.h: Ditto.
9168 * armnbsd-nat.c: Ditto.
9169 * avr-tdep.c: Ditto.
9170 * bfin-tdep.c: Ditto.
9172 * c-typeprintc: Ditto.
9173 * c-valprint.c: Ditto.
9174 * coff-pe-read.h: Ditto.
9175 * coffreead.c: Ditto.
9176 * cris-tdep.c: Ditto.
9178 * darwin-nat-info.c: Ditto.
9179 * darwin-nat.c: Ditto.
9180 * dbug-rom.c: Ditto.
9184 * dec-thread.c: Ditto.
9186 * demangle.c: Ditto.
9187 * dicos-tdep.c: Ditto.
9188 * dictionary.c: Ditto.
9189 * dictionary.h: Ditto.
9190 * dink32-rom.c: Ditto.
9192 * doublest.c: Ditto.
9194 * dummy-frame.c: Ditto.
9195 * dwarf2-frame.c: Ditto.
9196 * dwarf2expr.c: Ditto.
9197 * dwarf2loc.c: Ditto.
9198 * dwarf2read.c: Ditto.
9202 * event-top.h: Ditto.
9203 * exceptions.c: Ditto.
9204 * exceptions.h: Ditto.
9206 * expprint.c: Ditto.
9207 * expression.h: Ditto.
9211 * f-typeprint.c: Ditto.
9212 * f-valprint.c: Ditto.
9213 * fbsd-nat.c: Ditto.
9215 * fork-child.c: Ditto.
9218 * frv-linux-tdep.c: Ditto.
9219 * frv-tdep.c: Ditto.
9221 * gdb-stabs.h: Ditto.
9222 * gdb_assert.h: Ditto.
9223 * gdb_string.h: Ditto.
9224 * gdb_thread_db.h: Ditto.
9225 * gdb_wait.h: Ditto.
9226 * gdbarch.sh: Ditto.
9228 * gdbthread.h: Ditto.
9229 * gdbtypes.c: Ditto.
9230 * gdbtypes.h: Ditto.
9233 * gnu-v2-abi.c: Ditto.
9234 * gnu-v3-abi.c: Ditto.
9235 * go32-nat.c: Ditto.
9236 * gdbarch.c: Regenerate.
9237 * gdbarch.h: Regenerate.
9239 2011-01-07 Michael Snyder <msnyder@vmware.com>
9241 * ax-gdb.c: Adjust some long output strings.
9242 * breakpoint.c: Ditto.
9247 * linux-nat.c: Ditto.
9248 * solib-pa64.c: Ditto.
9249 * solib-som.c: Ditto.
9251 2011-01-06 Tom Tromey <tromey@redhat.com>
9255 * python/python.c (GdbMethods): Add "newest_frame" method.
9256 * python/python-internal.h (gdbpy_newest_frame): Declare.
9257 * python/py-frame.c (gdbpy_newest_frame): New function.
9259 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9261 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9262 * jit.c (jit_debug): New variable.
9263 (show_jit_debug): New function.
9264 (struct target_buffer): Use ULONGEST.
9265 (bfd_open_from_target_memory): Likewise.
9266 (jit_register_code, jit_inferior_init): Add debug output.
9267 (_initialize_jit): Register "debug jit" command.
9269 2011-01-06 Tom Tromey <tromey@redhat.com>
9271 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9272 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9275 2011-01-06 Tom Tromey <tromey@redhat.com>
9277 * python/py-frame.c (frapy_block): Use get_frame_block.
9279 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9281 Do not stop on SIGPRIO signals by default
9282 * infrun.c (_initialize_infrun): Unset signal_stop and
9283 signal_print for TARGET_SIGNAL_PRIO.
9285 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9287 * ada-tasks.c: Fix style violation in comment.
9289 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9291 * linespec.c (decode_compound, find_method): Remove trailing \n
9292 at end of error string.
9293 * solib-irix.c (irix_current_sos): Likewise.
9294 * varobj.c (uninstall_variable): Likewise.
9296 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9298 * copyright.py: New script.
9299 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9300 Launch emacs without exec'ing. Call copyright.py afterwards.
9302 2011-01-05 Michael Snyder <msnyder@vmware.com>
9304 * addrmap.c: Shorten lines of >= 80 columns.
9305 * arch-utils.c: Ditto.
9306 * arch-utils.h: Ditto.
9308 * ax-general.c: Ditto.
9310 * blockframe.c: Ditto.
9311 * breakpoint.c: Ditto.
9312 * buildsym.c: Ditto.
9314 * c-typeprint.c: Ditto.
9316 * coffread.c: Ditto.
9320 * cp-namespace.c: Ditto.
9321 * cp-support.c: Ditto.
9322 * dbug-rom.c: Ditto.
9327 * dictionary.c: Ditto.
9329 * doublest.c: Ditto.
9330 * dwarf2-frame.c: Ditto.
9331 * dwarf2expr.c: Ditto.
9332 * dwarf2loc.c: Ditto.
9333 * dwarf2read.c: Ditto.
9336 * event-loop.c: Ditto.
9337 * event-loop.h: Ditto.
9338 * exceptions.h: Ditto.
9340 * expprint.c: Ditto.
9341 * expression.h: Ditto.
9343 * f-valprint.c: Ditto.
9345 * frame-base.c: Ditto.
9346 * frame-unwind.c: Ditto.
9347 * frame-unwind.h: Ditto.
9351 * gdb-stabs.h: Ditto.
9352 * gdb_assert.h: Ditto.
9353 * gdb_dirent.h: Ditto.
9354 * gdb_obstack.h: Ditto.
9356 * gdbtypes.c: Ditto.
9357 * gdbtypes.h: Ditto.
9358 * inf-ttrace.c: Ditto.
9363 * inline-frame.h: Ditto.
9364 * language.c: Ditto.
9365 * language.h: Ditto.
9366 * libunwind-frame.c: Ditto.
9367 * libunwind-frame.h: Ditto.
9368 * linespec.c: Ditto.
9369 * linux-nat.c: Ditto.
9370 * linux-nat.h: Ditto.
9371 * linux-thread-db.c: Ditto.
9372 * machoread.c: Ditto.
9373 * macroexp.c: Ditto.
9374 * macrotab.c: Ditto.
9377 * mdebugread.c: Ditto.
9382 * objfiles.c: Ditto.
9383 * objfiles.h: Ditto.
9385 * p-typeprint.c: Ditto.
9386 * p-valprint.c: Ditto.
9388 * printcmd.c: Ditto.
9389 * proc-events.c: Ditto.
9391 * progspace.c: Ditto.
9392 * progspace.h: Ditto.
9393 * psympriv.h: Ditto.
9396 * regcache.c: Ditto.
9397 * regcache.h: Ditto.
9398 * remote-fileio.c: Ditto.
9400 * ser-mingw.c: Ditto.
9402 * ser-unix.c: Ditto.
9405 * solib-frv.c: Ditto.
9406 * solib-irix.c: Ditto.
9407 * solib-osf.c: Ditto.
9408 * solib-pa64.c: Ditto.
9409 * solib-som.c: Ditto.
9410 * solib-sunos.c: Ditto.
9411 * solib-svr4.c: Ditto.
9412 * solib-target.c: Ditto.
9416 * stabsread.c: Ditto.
9417 * stabsread.c: Ditto.
9420 * symfile-mem.c: Ditto.
9426 * target-descriptions.c: Ditto.
9427 * target-memory.c: Ditto.
9430 * terminal.h: Ditto.
9433 * tracepoint.c: Ditto.
9434 * tracepoint.h: Ditto.
9438 * user-regs.c: Ditto.
9439 * user-regs.h: Ditto.
9441 * valarith.c: Ditto.
9443 * valprint.c: Ditto.
9444 * valprint.h: Ditto.
9449 * xcoffread.c: Ditto.
9450 * xcoffsolib.c: Ditto.
9451 * xcoffsolib.h: Ditto.
9452 * xml-syscall.c: Ditto.
9453 * xml-tdesc.c: Ditto.
9455 2011-01-05 Michael Snyder <msnyder@vmware.com>
9457 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9458 * cli/cli-decode.c: Ditto.
9459 * cli/cli-dump.c: Ditto.
9460 * cli/cli-logging.c: Ditto.
9461 * cli/cli-script.c: Ditto.
9462 * cli/cli-setshow.c: Ditto.
9463 * common/signals.c: Ditto.
9464 * mi/mi-cmd-break.c: Ditto.
9465 * mi/mi-cmd-disas.c: Ditto.
9466 * mi/mi-cmd-stack.c: Ditto.
9467 * mi/mi-cmd-var.c: Ditto.
9468 * mi/mi-cmds.c: Ditto.
9469 * mi/mi-common.h: Ditto.
9470 * mi/mi-console.c: Ditto.
9471 * mi/mi-interp.c: Ditto.
9472 * mi/mi-main.c: Ditto.
9473 * osf-share/cma_attr.c: Ditto.
9474 * osf-share/cma_deb_core.h: Ditto.
9475 * osf-share/cma_debug_client.h: Ditto.
9476 * osf-share/cma_handle.h: Ditto.
9477 * osf-share/cma_mutex.h: Ditto.
9478 * osf-share/cma_stack_int.h: Ditto.
9479 * osf-share/cma_tcb_defs.h: Ditto.
9480 * python/py-auto-load.c: Ditto.
9481 * python/py-breakpoint.c: Ditto.
9482 * python/py-cmd.c: Ditto.
9483 * python/py-frame.c: Ditto.
9484 * python/py-objfile.c: Ditto.
9485 * python/py-param.c: Ditto.
9486 * python/py-progspace.c: Ditto.
9487 * python/py-symbol.c: Ditto.
9488 * python/py-value.c: Ditto.
9489 * python/python-internal.h: Ditto.
9490 * python/python.c: Ditto.
9491 * tui/tui-data.c: Ditto.
9492 * tui/tui-disasm.c: Ditto.
9493 * tui/tui-hooks.c: Ditto.
9494 * tui/tui-io.c: Ditto.
9495 * tui/tui-layout.c: Ditto.
9496 * tui/tui-regs.c: Ditto.
9497 * tui/tui-source.c: Ditto.
9498 * tui/tui-stack.c: Ditto.
9499 * tui/tui-win.c: Ditto.
9500 * tui/tui-windata.c: Ditto.
9501 * tui/tui-winsource.c: Ditto.
9503 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9505 * configure.ac, gdb.1: Copyright year update.
9507 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9509 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9510 this_pc_in_block, morestack_msym and morestack_name. Check for
9511 "__morestack" minimal symbol there.
9513 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9515 * symfile.c (find_sym_fns): Add call to dont_repeat.
9517 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9519 Copyright year update in most files (performed by copyright.sh).
9521 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9523 * top.c (print_gdb_version): Update copyright year in version output.
9525 For older changes see ChangeLog-2010.
9531 version-control: never