1 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3 * ada-tasks.c (info_task): Delete parameter `from_tty'.
5 2011-09-16 Joel Brobecker <brobecker@adacore.com>
7 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
9 2011-09-16 Joel Brobecker <brobecker@adacore.com>
11 * ada-lang.h (ada_build_task_list): Remove parameter
13 * ada-tasks.c (ada_build_task_list): Remove parameter
14 `warn_if_null'. Adjust implementation and documentation.
15 (valid_task_id, ada_get_environment_task)
16 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
17 (info_tasks_command): Adjust implementation.
18 (task_command): Likewise.
19 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
20 to ada_build_task_list.
22 2011-09-16 Joel Brobecker <brobecker@adacore.com>
24 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
25 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
26 (ada_tasks_inferior_data_handle): New static global.
27 (get_ada_tasks_inferior_data): New function.
28 (ada_get_task_number, get_task_number_from_id, valid_task_id)
29 (ada_get_environment_task, iterate_over_live_ada_tasks)
30 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
32 (ada_set_current_inferior_known_tasks_addr): New function.
33 (read_known_tasks, ada_build_task_list, short_task_info)
34 (info_tasks, info_task, info_tasks_command, task_command_1)
35 (task_command, ada_task_list_changed): Adjust.
36 (ada_tasks_invalidate_inferior_data): New function.
37 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
38 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
39 * ada-lang.h (struct inferior): Add declaration.
40 (ada_task_list_changed): Update profile.
41 * remote-wtx-pd.c: #include "inferior.h".
42 (switch_to_pd_internal): Update call to ada_task_list_changed.
44 2011-09-16 Joel Brobecker <brobecker@adacore.com>
46 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
47 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
48 (atcb_fieldno): Delete these static globals.
49 (struct ada_tasks_pspace_data): New struct.
50 (ada_tasks_pspace_data_handle): New static global.
51 (get_ada_tasks_pspace_data): New function.
52 (ada_tasks_invalidate_pspace_data): New function.
53 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
54 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
55 (_initialize_tasks): Create this module's per-progspace
58 2011-09-16 Joel Brobecker <brobecker@adacore.com>
60 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
62 2011-09-16 Tristan Gingold <gingold@adacore.com>
64 * fork-child.c (fork_inferior): Update comment. Use alloca
65 instead of xmalloc for argv. Move len and shell_command
66 declarations in the block where they are used.
67 Only call execvp. Factorize failure code.
69 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
72 * parse.c (write_exp_elt): Change argument to pass a pointer of union
73 `exp_element' instead of an element of the same and make the function
75 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
76 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
77 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
78 Change argument of `write_exp_elt' function call.
79 Remove extra spaces from comments.
80 * parser-defs.h (write_exp_elt): Remove prototype.
82 2011-09-15 Paul Koning <paul_koning@dell.com>
84 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
85 count of item appended to list.
86 * python/py-type.c (typy_fields): Likewise.
88 2011-09-15 Paul Koning <paul_koning@dell.com>
90 * MAINTAINERS (Write After Approval): Add myself to the list.
92 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
95 * linux-fork.c (checkpoint_command): Disallow checkpointing of
96 processes with multiple threads.
97 (inf_has_multiple_thread_cb): New function.
98 (inf_has_multiple_threads): New function.
100 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
102 PR Python/12692 Add gdb.selected_inferior() to Python interface.
103 * python/py-inferior.c (GdbMethods): New Python method definition.
105 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
107 Handle multiple breakpoint hits in Python interface:
108 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
109 variable to breakpoints.
110 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
111 bps instead of single breakpoint. Fix some space typos.
112 * python/py-stopevent.c (create_breakpoint_event_object): Rename
113 variable to breakpoints.
115 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
117 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
118 note if the breakpoint is internal.
120 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
122 * MAINTAINERS (Right After Approval): Add myself to the list
124 2011-09-14 Pedro Alves <pedro@codesourcery.com>
126 * infrun.c (prepare_for_detach, wait_for_inferior)
127 (fetch_inferior_event): Don't flush the register cache.
128 * remote.c (struct stop_reply) <regcache>: Add comment.
130 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
132 Remove excessive DWARF expressions memory duplication.
133 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
135 (indirect_pieced_value): Remove variable result. Remove variable
136 back_to and its use for baton.data.
137 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
139 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
140 Update the function comment.
142 2011-09-13 Pedro Alves <pedro@codesourcery.com>
144 * inferior.h (ALL_INFERIORS): New.
145 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
146 for a stopped thread.
147 (thread_db_find_new_threads): Look for threads in all inferiors.
149 2011-09-13 Pedro Alves <pedro@codesourcery.com>
151 * breakpoint.c (update_watchpoint): Handle the case of the
152 watchpoint to update not being in the breakpoint list yet.
153 (hw_watchpoint_use_count): New, factored out from
154 hw_watchpoint_used_count.
155 (hw_watchpoint_used_count): Rename to ...
156 (hw_watchpoint_used_count_others): ... this. Add `except'
157 parameter. Don't count resources of `except'. Use
158 hw_watchpoint_use_count.
160 2011-09-13 Pedro Alves <pedro@codesourcery.com>
162 * gdbthread.h (enum thread_state): Moved here.
163 (struct thread_info): Rename `executing_' field to `executing' and
165 * thread.c (enum thread_state): Moved to gdbthread.h.
166 (new_thread, add_thread_silent, delete_thread_1)
167 (any_live_thread_of_process, thread_alive, set_running)
168 (set_running, is_thread_state, any_running, is_executing)
169 (set_executing, finish_thread_state, print_thread_info)
170 (do_captured_thread_select): Adjust.
172 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
174 Fix compatibility with gcc < 4.3 and non-gcc compilers.
175 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
177 2011-09-12 Pedro Alves <pedro@codesourcery.com>
178 Matt Rice <ratmice@gmail.com>
182 * interps.c (struct interp) <interpreter_out>: Delete field.
183 (interp_new): Remove the data and uiout parameters and adjust.
184 (interp_set): Only set the current_uiout from the interpreter's
185 uiout after initializing the interpreter. Adjust call to
187 (interp_ui_out): Adjust to call procs->ui_out_proc.
188 (interp_data, interp_name): New.
189 * interps.h (interp_init_ftype): Add `self' parameter.
190 (interp_ui_out_ftype): New typedef.
191 (struct interp_procs) <ui_out_proc>: New method pointer.
192 (interp_new): Remove the data and uiout parameters.
193 (interp_data, interp_name): Declare.
194 * tui/tui-interp.c (tui_init): Adjust prototype.
196 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
197 tui_out here. Adjust call to interp_new.
198 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
199 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
201 (_initialize_cli_interp): Install it. Adjust call to interp_new.
202 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
203 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
204 Initialize mi->uiout depending on the mi_version as extracted from
205 the interpreter's name.
207 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
208 interp_new. Don't allocate the ui_out's of the interpreters here.
210 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
212 * solib.c (solib_used): New function.
213 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
214 by another so_list object before freeing it.
216 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
219 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
222 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
225 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
226 (amd64_skip_xmm_prologue): ... this new function. Describe its
227 parameters. No longer use amd64_prologue_line_bug.
228 * defs.h (producer_is_gcc_ge_4): New declaration.
229 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
230 (process_full_comp_unit): Update its caller. Remove
231 amd64_prologue_line_bug initialization.
232 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
233 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
235 2011-09-09 Pedro Alves <pedro@codesourcery.com>
237 * linux-nat.h (enum resume_kind): New.
238 (struct lwp_info) <last_resume_kind>: New field.
239 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
240 resume_stop on the new lwp.
241 (add_lwp): Set last_resume_kind as resume_continue by default.
242 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
243 (resume_lwp): New, factored out from resume_callback. Also check
244 for pending status in lp->waitstatus.
245 (resume_callback): Reimplement.
246 (resume_clear_callback): Set last_resume_kind as resume_stop.
247 (resume_set_callback): Set last_resume_kind as resume_continue.
248 (linux_nat_resume, linux_handle_extended_wait): Set
250 (running_callback): Also check lp->waitstatus for pending events.
251 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
253 (stop_and_resume_callback): Don't re-resume if the core wanted the
254 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
255 using an invalidated pointer.
256 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
257 SIGSTOPs if the core wanted the LWP to stop.
258 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
259 wanted the lwp to stop. If the core wanted the lwp to stop, and
260 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
261 of TARGET_SIGNAL_STOP.
262 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
263 here. Instead, signal the lwp, and set the last_resume_kind to
266 2011-09-09 Pedro Alves <pedro@codesourcery.com>
268 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
269 -1 (error), if the lwp exits right after attaching.
271 2011-09-08 Doug Evans <dje@google.com>
273 * py-cmd.c: Some minor formatting fixes.
274 (gdbpy_parse_command_name): Rename text arg to name, make const.
276 * python-internal.h (gdbpy_parse_command_name): Update.
278 * cli/cli-decode.c (add_cmd): Add comment.
280 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
283 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
284 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
285 * dwarf2read.c (process_full_comp_unit): Initialize
286 amd64_prologue_line_bug.
287 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
289 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
291 Fix TUI screen corruption.
292 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
295 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
297 * findvar.c (read_var_value): Never return NULL, throw an error
298 instead. Update the function comment. State symbol name in the error
300 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
302 * stack.c (print_frame_args): Likewise.
303 * valops.c (value_of_variable): Likewise.
305 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
307 * stack.c (print_frame_args): New variable except. Wrap
308 read_var_value and common_val_print into TRY_CATCH.
310 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
312 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
313 caller to value_of_this.
314 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
316 * valops.c (value_of_this): Remove parameter complain and variable ret.
317 Update function comment. Never return NULL by this code.
318 (value_of_this_silent): New function.
319 * value.h (value_of_this): Remove parameter complain.
320 (value_of_this_silent): New declaration.
322 2011-09-07 Yao Qi <yao@codesourcery.com>
324 * gdbthread.h (struct thread_info): Remove fields
325 `stepping_through_solib_after_catch' and
326 `stepping_through_solib_catchpoints'.
327 * infrun.c (init_thread_stepping_state): Update.
328 (process_event_stop_test, currently_stepping): Update.
329 (currently_stepping_or_nexting_callback): Update.
331 2011-09-07 Yao Qi <yao@codesourcery.com>
333 * gdbthread.h (struct thread_info): Comment on field
334 `step_after_step_resume_breakpoint'.
336 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
338 * remote.c (remote_console_output): Reindent.
340 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
342 * frame.c (has_stack_frames): Check for currently selected
345 2011-09-06 Pedro Alves <pedro@codesourcery.com>
347 * event-top.h (MAXPROMPTS, struct prompts): Delete.
348 (set_async_annotation_level, set_async_prompt, pop_prompt)
349 (push_prompt, new_async_prompt): Delete declarations.
350 * top.h (get_prompt, set_prompt): Change prototype.
351 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
353 * top.c (command_loop):
354 (top_prompt): New global.
355 (get_prefix, set_prefix, get_suffix, ): Delete.
356 (get_prompt, set_prompt): Rewrite.
357 (show_new_async_prompt): Rename to ...
358 (show_prompt): ... this.
359 (init_main): Adjust. Don't handle --annotate=2 here.
360 * event-top.c (new_async_prompt): Delete.
361 (the_prompts): Delete.
362 (more_to_come): Make static.
363 (display_gdb_prompt): Use top_level_prompt() to compute the top
364 level prompt, and don't notify the before_prompt observers
365 directly here. Always trick readline into not trying to display
366 the prompt if sync_execution and displaying the primary prompt.
367 If displaying a local/secondary prompt, always show it, even if
368 sync_execution is set.
369 (change_annotation_level): Delete.
370 (top_level_prompt): New, based on change_annotation_level.
371 (push_prompt, pop_prompt): Delete.
372 (async_disable_stdin): No longer pushes prompt.
373 (command_line_handler): No longer pushes or pops prompt. If more
374 input is expected, call display_gdb_prompt with an explicit empty
376 (async_stop_sig): Adjust.
377 (set_async_annotation_level, set_async_prompt): Delete.
378 * python/python.c (before_prompt_hook): Adjust.
380 2011-09-05 Pedro Alves <pedro@codesourcery.com>
384 * infrun.c (fetch_inferior_event): Check if there's a selected
385 thread before checking if the selected thread is executing.
387 2011-09-05 Pedro Alves <pedro@codesourcery.com>
389 * inf-loop.c (execute_command): Don't check if the current thread
390 if running before synchronously waiting for command completion.
391 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
393 (normal_stop): Call async_enable_stdin here.
394 * inf-loop.c (inferior_event_handler): Don't call
395 async_enable_stdin, nor handle "set exec-done-display" here.
397 2011-09-04 Joel Brobecker <brobecker@adacore.com>
401 2011-09-04 Joel Brobecker <brobecker@adacore.com>
403 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
405 2011-09-04 Joel Brobecker <brobecker@adacore.com>
407 * NEWS: Add entry for OpenBSD/NetBSD build failure.
409 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
411 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
413 2011-09-02 Matt Rice <ratmice@gmail.com>
416 * event-top.c (cli_command_loop): Replace readline setup with
417 direct call to display_gdb_prompt.
418 (display_gdb_prompt): Do not call observer mechanism during
419 synchronous execution.
421 2011-09-02 Pedro Alves <pedro@codesourcery.com>
423 * linux-nat.c (in_pid_list_p): New.
424 (linux_record_stopped_pid): Delete.
425 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
426 already attached to the LWP. Return an indication if so.
427 (linux_nat_filter_event): Adjust.
428 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
429 returning an indication to ignore this thread.
431 2011-09-02 Pedro Alves <pedro@codesourcery.com>
433 * top.c: Include interps.h.
434 (execute_command): If the target can async, but the interpreter is
435 in sync mode, synchronously wait for the command to finish before
437 (execute_command_to_string): Force the interpreter to sync mode.
438 * infrun.c: Include interps.h.
439 (fetch_inferior_event): Don't restore the prompt yet if the
440 interpreter is in sync mode.
441 * interps.c (interpreter_async): New global.
442 * interps.h (interpreter_async): Declare.
443 * inf-loop.c: Include interps.h.
444 (inferior_event_handler): Don't print the language change or run
445 breakpoint commands yet if the interpreter in is sync mode.
446 * main.c (captured_command_loop): Flip the interpreter to async
448 * cli/cli-script.c: Include interps.h.
449 (execute_user_command, while_command, if_command): Force the
450 interpreter to sync mode.
451 * python/python.c: Include interps.h.
452 (python_command, execute_gdb_command): Force the interpreter to
455 2011-09-02 Pedro Alves <pedro@codesourcery.com>
457 * value.c (show_convenience): Catch errors thrown while printing
458 each internal variable.
459 * infrun.c (validate_siginfo_access): New function.
460 (siginfo_value_read, siginfo_value_write): Call it.
462 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
465 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
466 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
469 2011-08-29 Yao Qi <yao@codesourcery.com>
471 * solib-dsbt.c (bfd_lookup_symbol): Removed.
473 (enable_break2): Update caller.
474 * solib-frv.c (bfd_lookup_symbol): Removed.
476 (enable_break2): Update caller.
477 * solib-pa64.c (bfd_lookup_symbol): Removed.
479 * solib-svr4.c (bfd_lookup_symbol): Removed.
480 (cmp_name_and_sec_flags): New.
481 (enable_break): Update caller.
482 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
483 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
484 (gdb_bfd_lookup_symbol): New.
485 * solib.h: Functions declarations.
487 2011-08-29 Yao Qi <yao@codesourcery.com>
489 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
492 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
494 Fix TUI stepi on code without symbols.
495 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
498 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
501 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
502 and the static keyword.
503 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
504 Make prefix an array.
505 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
506 * mi/mi-main.c (get_register): Remove stb initialization and the static
509 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
511 Code cleanup - make mi_opt const.
512 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
515 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
516 (mi_cmd_env_dir): Likewise.
517 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
518 (mi_cmd_target_file_put): Likewise.
519 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
520 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
521 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
522 (mi_valid_noargs): Make opts const.
523 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
524 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
525 (mi_cmd_data_read_memory): Likewise.
526 (mi_cmd_data_read_memory_bytes): Likewise.
527 (mi_cmd_data_write_memory): Likewise.
529 2011-08-26 Matt Rice <ratmice@gmail.com>
531 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
532 bcache_xmalloc, replace bcache_xmalloc with call to
533 psymbol_bcache_init for psymbol_cache.
534 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
536 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
538 * inf-loop.c (inferior_event_handler): Add exception_print in
541 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
543 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
544 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
545 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
546 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
547 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
548 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
549 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
550 * infrun.c (fetch_inferior_event): Call
551 make_bpstat_clear_actions_cleanup.
552 * top.c (execute_command): New variable cleanup_if_error, call
553 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
554 * utils.c (do_bpstat_clear_actions_cleanup)
555 (make_bpstat_clear_actions_cleanup): New functions.
557 2011-08-26 Pedro Alves <pedro@codesourcery.com>
559 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
560 either the parent or the child forks. Rename a couple locals.
562 2011-08-26 Pedro Alves <pedro@codesourcery.com>
564 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
565 library call. Avoid reading the `status' local if all waitpid
568 2011-08-26 Pedro Alves <pedro@codesourcery.com>
570 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
571 opening /proc/PID/task always succeeds.
573 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
575 * linespec.c (symtab_from_filename): Check for the end of string.
577 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
580 * varobj.c (cplus_describe_child): Add the keyword
581 'class' to the output of the method when dealing
582 with a cast to a base class.
584 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
586 No functionality change.
587 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
588 function comment a reference, new variables tp and bs, move here code
589 from throw_exception.
590 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
591 describe it in the comment.
592 * exceptions.c (throw_exception): Remove variable tp, move the code for
593 bpstat_clear_actions to bpstat_clear_actions.
595 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
597 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
598 * linux-nat.c: Include linux-procfs.h.
599 (linux_proc_get_tgid): Move to ...
600 * common/linux-procfs.c: ... here. New file.
601 * common/linux-procfs.h: New file.
602 * linux-thread-db.c: Include linux-procfs.h.
603 * Makefile.in: Update dependencies.
604 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
605 * config/arm/linux.mh: Likewise.
606 * config/i386/linux.mh: Likewise.
607 * config/i386/linux64.mh: Likewise.
608 * config/ia64/linux.mh: Likewise.
609 * config/m32r/linux.mh: Likewise.
610 * config/m68k/linux.mh: Likewise.
611 * config/mips/linux.mh: Likewise.
612 * config/pa/linux.mh: Likewise.
613 * config/pa/linux.mh: Likewise.
614 * config/powerpc/linux.mh: Likewise.
615 * config/powerpc/ppc64-linux.mh: Likewise.
616 * config/powerpc/spu-linux.mh: Likewise.
617 * config/sparc/linux.mh: Likewise.
618 * config/sparc/linux64.mh: Likewise.
619 * config/xtensa/linux.mh: Likewise.
621 2011-08-24 Hui Zhu <teawater@gmail.com>
623 * tracepoint.c (cond_string_is_same): New function.
624 (find_matching_tracepoint): Add condition check
625 by cond_string_is_same.
627 2011-08-23 Josh Matthews <josh@joshmatthews.net>
629 Fix build error in Darwin port.
630 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
632 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
635 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
636 (command_line_is_silent): New function.
637 (bpstat_do_actions_1): No longer use commands_left, use
638 command_line_is_silent for commands.
639 (bpstat_alloc): Remove clearing of commands_left.
640 (bpstat_stop_status): Remove initialization of commands_left, use
641 command_line_is_silent.
642 * breakpoint.h (struct bpstats): Remove commands_left.
644 2011-08-18 Keith Seitz <keiths@redhat.com>
647 * cp-name-parser.y (struct demangle_info): Remove unused
650 (allocate_info): Change return type to struct demangle_info *.
651 Always allocate a new demangle_info.
652 Remove unused PREV pointer.
653 (cp_new_demangle_parse_info): New function.
654 (cp_demangled_name_parse_free): New function.
655 (do_demangled_name_parse_free_cleanup): New function.
656 (make_cleanup_cp_demangled_name_parse_free): New function.
657 (cp_demangled_name_to_comp): Change return type to
658 struct demangle_parse_info *.
659 Allocate a new storage for each call.
660 (main): Update usage for cp_demangled_name_to_comp
662 * cp-support.h (struct demangle_parse_info): New structure.
663 (cp_demangled_name_to_comp): Update API change for
665 (cp_new_demangle_parse_info): Declare.
666 (make_cleanup_cp_demangled_name_parse_free): New declaration.
667 (cp_demangled_name_parse_free): Declare.
668 * cp-support.c (cp_canonicalize_string): Update API
669 change for cp_demangled_name_to_comp.
670 (mangled_name_to_comp): Likewise.
671 Return struct demangle_parse_info, too.
672 (cp_class_name_from_physname): Update mangled_name_to_comp
674 (method_name_from_physname): Likewise.
675 (cp_func_name): Update API change for cp_demangled_name_to_comp.
676 (cp_remove_params): Likewise.
677 * python/py-type.c (typy_legacy_template_argument): Likewise.
679 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
680 (cp_merge_demangle_parse_infos): Declare.
681 * cp-support.c (ignore_typedefs): New file global.
682 (copy_string_to_obstack): New function.
683 (inspect_type): New function.
684 (replace_typedefs): New function.
685 (replace_typedefs_qualified_name): New function.
686 (cp_canonicalize_string_no_typedefs): New function.
687 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
688 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
689 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
690 instead of cp_canonicalize_string.
691 (find_method): Likewise.
692 (decode_compound): Before looking up the name, call
693 cp_canonicalize_string_no_typedefs.
694 (decode_variable): Likewise.
696 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
697 Tom Tromey <tromey@redhat.com>
698 Matt Rice <ratmice@gmail.com>
700 * python/lib/gdb/prompt.py: New file.
701 * python/lib/gdb/command/prompt.py: New file.
702 * NEWS: Document set extended-prompt and gdb.prompt library
704 2011-08-16 Yao Qi <yao@codesourcery.com>
706 * tic6x-linux-tdep.c: Move const arrays definition from here...
707 * tic6x-tdep.c: to here ...
709 2011-08-14 Yao Qi <yao@codesourcery.com>
711 * NEWS: New port to Texas Instruments TMS320C6x.
713 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
714 Bernd Schmidt <bernds@codesourcery.com>
715 Yao Qi <yao@codesourcery.com>
717 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
718 * solib-dsbt.c: New file. Support DSBT shared object.
719 * tic6x-linux-tdep.c: New file.
720 * tic6x-tdep.c: New file.
721 * tic6x-tdep.h: New file.
723 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
724 Yao Qi <yao@codesourcery.com>
726 * remote.c (PACKET_qXfer_fdpic): New enum value.
727 (remote_protocol_features): Add qXfer:fdpic:read packet.
728 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
729 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
730 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
732 2011-08-14 Yao Qi <yao@codesourcery.com>
734 Target description for tic6x.
735 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
736 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
737 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
738 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
739 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
740 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
741 * features/tic6x-c64xp-linux.xml: New.
742 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
743 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
744 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
745 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
746 * regformats/tic6x-c64xp.dat,
747 regformats/tic6x-c62x-linux.dat: Generated.
748 * regformats/tic6x-c64x-linux.dat,
749 regformats/tic6x-c64xp-linux.dat: Generated.
750 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
751 features/tic6x-*.c files.
752 Add regformats/tic6x-*.dat files.
754 2011-08-12 Doug Evans <dje@google.com>
756 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
757 * python/py-symbol.c (sympy_get_type): New function.
758 (symbol_object_getset): Add "type".
760 2011-08-12 Pedro Alves <pedro@codesourcery.com>
764 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
766 (tui_show_register_group): Don't store a byte buffer in the data
768 (tui_register_format): Skip registers with an empty name.
769 (tui_get_register): Store a struct value in the data element's
770 value field instead of a byte buffer holding the raw register
771 contents. Account for optimized-out and unavailable registers
772 when comparing register contents.
774 2011-08-09 Pedro Alves <pedro@codesourcery.com>
776 * printcmd.c (current_display_number): Update comment.
777 (disable_current_display_cleanup): Delete.
778 (do_one_display): Use make_cleanup_restore_integer. Gracefully
779 catch errors thrown while evaluating and printing the display.
781 2011-08-09 Tom Tromey <tromey@redhat.com>
783 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
785 2011-08-09 Pedro Alves <pedro@codesourcery.com>
787 * elfread.c (elf_symtab_read): Rework comments.
788 * maint.c (maintenance_command): Ditto.
789 * somread.c (som_symtab_read): Ditto.
790 * solib.c (solib_find, solib_map_sections, update_solib_list)
791 (solib_add, info_sharedlibrary_command, solib_name_from_address)
792 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
793 (sharedlibrary_command, no_shared_libraries): Ditto.
794 * solib-irix.c (locate_base, disable_break, enable_break)
795 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
796 (irix_current_sos, irix_open_symbol_file_object)
797 (irix_special_symbol_handling): Ditto.
798 * solib-sunos.c (locate_base, first_link_map_member)
799 (sunos_current_sos, disable_break, enable_break)
800 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
802 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
803 (open_symbol_file_object, svr4_current_sos, enable_break)
804 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
806 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
807 (frv_current_sos, enable_break, frv_special_symbol_handling)
808 (frv_solib_create_inferior_hook): Ditto.
809 * solist.h (struct target_so_ops): Extend the comments of the
810 special_symbol_handling, current_sos and open_symbol_file_object
813 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
815 * python/lib/gdb/__init__.py: Auto-load files in command and
816 function directories.
817 * python/python.c (finish_python_initialization): Use
819 * python/lib/gdb/command/pretty_printers.py: Self register
821 * NEWS: Document auto-loading.
823 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
826 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
827 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
829 2011-08-08 Tom Tromey <tromey@redhat.com>
831 * breakpoint.c (clean_up_filters): Remove.
832 (catch_syscall_split_args): Use VEC_cleanup.
834 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
836 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
837 (main): Uncomment "Demangling error\n".
839 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
841 * solib-target.c (segment_attributes): Make them static.
842 (section_attributes, library_children, library_attributes): Likewise.
843 (library_list_children, library_list_attributes): Likesise.
844 (library_list_elements): Likewise.
846 2011-08-05 Pedro Alves <pedro@codesourcery.com>
848 * exceptions.c (throw_exception): Don't disable the current
850 * printcmd.c (disable_current_display_cleanup): New function.
851 (do_one_display): Install a cleanup to disable the current display
852 if doing the display throws.
854 2011-08-05 Eli Zaretskii <eliz@gnu.org>
856 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
857 initialization of the tp_new member to the corresponding
858 gdbpy_initialize_* function.
859 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
860 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
861 * python/py-function.c (gdbpy_initialize_functions): Likewise.
862 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
863 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
865 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
867 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
868 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
869 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
870 references to current_uiout.
872 2011-08-04 Pedro Alves <pedro@codesourcery.com>
874 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
875 (start_event_loop): Use TRY_CATCH instead of catch_errors.
876 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
877 * top.c (gdb_readline_wrapper): Adjust.
878 * tui/tui-interp.c (tui_command_loop):
879 (_initialize_tui_interp): Don't install it.
881 2011-08-04 Pedro Alves <pedro@codesourcery.com>
883 * ui-out.h (uiout): Rename to ...
884 (current_uiout): ... this.
885 * ui-out.c (uiout): Rename to ...
886 (current_uiout): ... this.
887 * ada-lang.c (print_it_exception, print_one_exception)
888 (print_mention_exception): Adjust.
889 * breakpoint.c (watchpoint_check): Adjust.
890 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
891 (default_collect_info, watchpoints_info, print_one_catch_fork)
892 (print_one_catch_vfork, print_one_catch_syscall)
893 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
894 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
895 (print_it_watchpoint, print_mention_watchpoint)
896 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
897 (print_it_exception_catchpoint, print_one_exception_catchpoint)
898 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
899 (bkpt_print_mention, momentary_bkpt_print_it)
900 (tracepoint_print_mention, update_static_tracepoint)
901 (tracepoints_info, save_breakpoints): Adjust.
902 * cli-out.c (field_separator): Adjust.
903 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
904 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
905 * frame.c (get_current_frame): Adjust.
906 * infcmd.c (run_command_1, print_return_value): Adjust.
907 * inferior.c (inferior_command, info_inferiors_command): Adjust.
908 * infrun.c (print_end_stepping_range_reason): Adjust.
909 (print_signal_exited_reason, print_exited_reason): Adjust.
910 (print_signal_received_reason, print_no_history_reason): Adjust.
911 * interps.c (interp_set): Adjust.
912 * osdata.c (info_osdata_command): Adjust.
913 * progspace.c (maintenance_info_program_spaces_command): Adjust.
914 * remote-fileio.c (remote_fileio_request): Adjust.
915 * remote.c (show_remote_cmd): Adjust.
916 * solib.c (info_sharedlibrary_command): Adjust.
917 * source.c (print_source_lines_base): Adjust.
918 * stack.c (print_stack_frame): Adjust.
919 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
920 * symfile-mem.c (add_vsyscall_page): Adjust.
921 * symfile.c (load_progress, generic_load)
922 (print_transfer_performance): Adjust.
923 * thread.c (info_threads_command, restore_selected_frame)
924 (thread_command): Adjust.
925 * top.c (make_cleanup_restore_ui_file): Adjust.
926 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
927 (print_one_static_tracepoint_marker): Adjust.
928 * cli/cli-cmds.c (print_disassembly): Adjust.
929 * cli/cli-decode.c (print_doc_line): Adjust.
930 * cli/cli-interp.c (safe_execute_command): Adjust.
931 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
932 (handle_redirections): Adjust.
933 * cli/cli-script.c (show_user_1): Adjust.
934 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
935 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
936 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
937 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
938 (mi_cmd_env_dir): Adjust.
939 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
940 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
941 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
942 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
943 (list_args_or_locals): Adjust.
944 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
945 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
946 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
947 (mi_cmd_var_list_children, mi_cmd_var_info_type)
948 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
949 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
950 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
951 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
952 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
953 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
954 (list_available_thread_groups, mi_cmd_list_thread_groups)
955 (mi_cmd_data_list_register_names)
956 (mi_cmd_data_list_changed_registers)
957 (mi_cmd_data_list_register_values, get_register)
958 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
959 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
960 (mi_cmd_list_target_features, mi_cmd_add_inferior)
961 (mi_execute_command, mi_load_progress): Adjust.
962 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
963 * python/py-auto-load.c (print_script, info_auto_load_scripts):
965 * python/py-breakpoint.c (bppy_get_commands): Adjust.
966 * tui/tui-interp.c (tui_command_loop): Adjust.
967 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
969 2011-08-04 Pedro Alves <pedro@codesourcery.com>
971 * exceptions.c (struct catcher): Remove saved_uiout field.
972 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
973 no longer save/resvore the global ui_out builder.
974 (catch_exceptions_with_msg): Save/override/restore the global
975 ui_out builder manually instead of relying on TRY_CATCH to do it.
976 (catch_errors): Save/restore the global ui_out builder manually
977 instead of relying on TRY_CATCH to do it.
978 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
981 * cli/cli-interp.c (safe_execute_command): Save/override/restore
982 the global ui_out builder manually instead of relying on TRY_CATCH
985 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
987 * breakpoint.c (update_global_location_list): Ensure
988 invariant 'first loc marked not duplicated and inserted,
989 following locs marked duplicated/not inserted' is respected
990 for multiple locations at the same address.
991 (unduplicated_should_be_inserted) New function.
992 (swap_insertion) New function.
994 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * stack.c (print_frame_arguments_choices): Comment typo fix.
998 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1001 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1002 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1003 argument. Update callers.
1005 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1008 * doublest.c (convert_doublest_to_floatformat): Pass correct
1009 mantissa length to put_field.
1011 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1013 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1014 exception_print code path.
1015 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1016 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1017 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1019 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1022 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1023 Remove, merge them into ...
1024 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1025 variable args and its initialization.
1026 (struct print_args_args, print_args_stub): Remove, merge them into
1028 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1030 (do_gdb_disassembly): ... here. Remove variable args and its
1032 (print_frame): Remove variable args and its initialization, new
1033 variable gdbarch and numargs (from print_args_stub), inline here
1034 print_args_stub with a TRY_CATCH.
1035 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1037 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1038 New variable e, remove variable btargs and its initialization.
1040 2011-08-01 Tristan Gingold <gingold@adacore.com>
1042 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1044 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1046 * breakpoint.c (insert_bp_location): Document return value.
1047 (insert_breakpoint_locations): Fix documentation.
1048 (remove_breakpoints): Add documentation.
1050 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1052 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1053 argument. Update callers.
1055 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1057 * stack.c (print_frame_info): Comment typo fix.
1059 2011-07-29 Sterling Augustine <saugustine@google.com>
1061 * MAINTAINERS (Write After Approval): Add myself to the list.
1063 2011-07-29 Tom Tromey <tromey@redhat.com>
1065 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1066 (library_list_start_segment): Update.
1067 (library_list_start_section): Update.
1069 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1071 * varobj.c (value_get_print_value): Move hint check later into the
1072 function. Comment function. Free thevalue before reusing it.
1074 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1075 Pedro Alves <pedro@codesourcery.com>
1077 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1079 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1080 Assert the result kind.
1081 * value.h (value_one): Remove parameter lv.
1083 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1085 Fix crash on lval_computed values.
1086 * valops.c (value_zero): Use not_lval for lval_computed.
1088 2011-07-27 Tom Tromey <tromey@redhat.com>
1090 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1091 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1093 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1095 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1096 "ptype" by their typedefs difference.
1098 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 * dwarf2expr.c (ctx_no_read_reg): New function.
1101 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1102 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1103 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1104 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1106 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1108 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1109 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1111 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1112 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1113 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1114 (ctx_no_get_base_type): Move the functions here.
1115 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1116 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1117 (ctx_no_get_base_type): New declarations.
1119 2011-07-27 Tom Tromey <tromey@redhat.com>
1121 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1123 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1124 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1126 2011-07-26 Sterling Augustine <saugustine@google.com>
1128 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1130 (dump_bfd_file): Likewise.
1132 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1134 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1135 (remote_hw_watchpoint_length_limit): New variable.
1136 (_initialize_remote) add set,show cmds for this new variable.
1137 * gdb.texinfo: document these new commands.
1138 * NEWS: Mention these new commands.
1140 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1142 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1143 true for software watchpoints.
1145 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1149 2011-07-26 Tom Tromey <tromey@redhat.com>
1151 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1152 * dwarf2read.c (read_indirect_string_at_offset): New function.
1153 (read_indirect_string): Use it.
1154 (dwarf_decode_macro_bytes): New function, taken from
1155 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1156 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1157 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1159 (struct dwarf2_per_objfile) <macro>: New field.
1160 (dwarf2_elf_names): Add .debug_macro.
1161 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1162 (dwarf2_locate_sections): Handle new section.
1163 (read_file_scope): Handle DW_AT_GNU_macros.
1164 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1166 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1168 * NEWS: Mention dcache configuration.
1169 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1170 (dcache_size, dcache_line_size): New variables.
1171 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1172 (struct dcache_block): Make it expandable.
1173 (struct dcache_struct): New field.
1174 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1175 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1176 (dcache_poke_byte, dcache_print_line): Adjust.
1177 (set_dcache_size, set_dcache_line_size): New functions.
1178 (set_dcache_command, show_dcache_command): New functions.
1179 (_initialize_dcache): Add new commands.
1181 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1183 * progspace.h (struct program_space): Add solib_add_generation.
1184 * infcmd.c (post_create_inferior): Only call solib_add if not
1186 * solib.c (solib_add): Increment solib_add_generation.
1188 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 Fix implicit pointer offsets.
1191 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1194 2011-07-25 Tom Tromey <tromey@redhat.com>
1196 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1198 (ada_exception_sal): Make 'ops' const.
1199 (ada_decode_exception_location): Likewise.
1200 (ada_decode_assert_location): Likewise.
1201 (catch_assert_command): Update.
1202 (catch_ada_exception_command): Update.
1203 (create_ada_exception_catchpoint): Make 'ops' const.
1204 * breakpoint.c (set_raw_breakpoint_without_location)
1205 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1207 (create_internal_breakpoint): Update.
1208 (init_raw_breakpoint_without_location): Make 'ops' const.
1209 (init_raw_breakpoint, init_catchpoint)
1210 (create_fork_vfork_event_catchpoint)
1211 (create_syscall_event_catchpoint, init_breakpoint_sal)
1212 (create_breakpoint_sal, create_breakpoints_sal)
1213 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1214 * breakpoint.h (struct breakpoint) <ops>: Now const.
1215 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1218 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1220 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1222 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1224 * breakpoint.h (print_recreate_thread): Declare.
1225 (struct breakpoint): Move step_count, pass_count,
1226 number_on_target, static_trace_marker_id,
1227 static_trace_marker_id_idx ...
1228 (struct tracepoint): ... to this new struct.
1229 (get_tracepoint, get_tracepoint_by_number_on_target)
1230 (get_tracepoint_by_number): Change return type to struct
1232 * breakpoint.c (is_tracepoint_type): New, factored out from
1234 (is_tracepoint): Adjust.
1235 (print_one_breakpoint_location): Cast to struct tracepoint as
1236 necessary, and adjust.
1237 (print_recreate_catch_fork, print_recreate_catch_vfork)
1238 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1239 print_recreate_thread.
1240 (init_breakpoint_sal): New, factored out from
1241 create_breakpoint_sal.
1242 (create_breakpoint_sal): Reimplement.
1243 (create_breakpoint): Allocate a struct tracecepoint if the caller
1244 wanted a tracepoint. Use init_breakpoint_sal and
1246 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1247 (print_recreate_masked_watchpoint)
1248 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1249 (tracepoint_print_one_detail): Adjust.
1250 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1251 Dump the pass count here.
1252 (update_static_tracepoint): Adjust.
1253 (addr_string_to_sals): Adjust.
1254 (create_tracepoint_from_upload): Adjust. Change return type to
1255 struct tracepoint pointer.
1256 (trace_pass_set_count): Change parameter type to struct tracepoint
1257 pointer, and adjust.
1258 (trace_pass_command): Adjust.
1259 (get_tracepoint, get_tracepoint_by_number_on_target)
1260 (get_tracepoint_by_number): Change return type to struct
1261 tracepoint pointer, and adjust.
1262 (print_recreate_thread): New, factored out from save_breakpoints.
1263 (save_breakpoints): Don't print thread and task and passcount
1265 * remote.c (remote_download_tracepoint): Adjust.
1266 * tracepoint.c (trace_actions_command, validate_actionline)
1267 (start_tracing, tfind_1, trace_find_tracepoint_command)
1268 (trace_dump_command): Adjust.
1269 (find_matching_tracepoint): Change return type to struct
1270 tracepoint pointer, and adjust.
1271 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1272 (tfile_trace_find, tfile_fetch_registers): Adjust.
1273 * tracepoint.h (create_tracepoint_from_upload): Change return type
1274 to struct tracepoint pointer.
1275 * ada-lang.c (print_recreate_exception): Call
1276 print_recreate_thread.
1277 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1279 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1281 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1282 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1283 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1284 watchpoint_thread, watchpoint_triggered ...
1285 (struct watchpoint): ... to this new struct.
1286 (is_watchpoint): Declare.
1287 (install_breakpoint): Add new `internal' parameter.
1288 * breakpoint.c (is_watchpoint): Delete declaration.
1289 (set_breakpoint_condition): Handle watchpoints.
1290 (is_watchpoint): Make public.
1291 (watchpoint_in_thread_scope): Change parameter type to struct
1293 (watchpoint_del_at_next_stop): Change parameter type to struct
1294 watchpoint. Remove assertion. Adjust.
1295 (update_watchpoint): Ditto.
1296 (insert_breakpoints, breakpoint_init_inferior)
1297 (watchpoints_triggered, watchpoint_check)
1298 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1299 (bpstat_stop_status, print_one_breakpoint_location)
1300 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1301 to struct watchpoint as necessary, and adjust.
1302 (install_breakpoint): Add `internal' argument. If true, don't
1303 mention the new breakpoint. Use set_breakpoint_number.
1304 (create_fork_vfork_event_catchpoint)
1305 (create_syscall_event_catchpoint): Adjust.
1306 (dtor_watchpoint): New.
1307 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1308 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1309 (print_it_watchpoint, print_mention_watchpoint)
1310 (print_recreate_watchpoint, insert_masked_watchpoint)
1311 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1312 (print_one_detail_masked_watchpoint)
1313 (print_mention_masked_watchpoint)
1314 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1315 necessary, and adjust.
1316 (watch_command_1): Allocate and initialize a struct watchpoint
1317 instead of a struct breakpoint. Use install_breakpoint.
1318 (catch_exec_command_1): Adjust.
1319 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1321 (delete_breakpoint, enable_breakpoint_disp)
1322 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1323 as necessary, and adjust.
1324 (initialize_breakpoint_ops): Install dtor_watchpoint as
1325 watchpoints' dtor method.
1326 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1327 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1328 to struct watchpoint as necessary, and adjust.
1330 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1332 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1333 the the base class ops table.
1334 (catch_exception_breakpoint_ops)
1335 (catch_exception_unhandled_breakpoint_ops)
1336 (catch_assert_breakpoint_ops): Don't statically initialize.
1337 (initialize_ada_catchpoint_ops): New.
1338 (_initialize_ada_language): Call it.
1339 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1340 (bkpt_breakpoint_ops): Forward declare.
1341 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1342 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1343 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1344 (masked_watchpoint_breakpoint_ops)
1345 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1346 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1347 base class ops table.
1348 (null_re_set, null_check_status, null_works_in_software_mode)
1349 (null_resources_needed, null_print_one_detail): Delete.
1350 (bkpt_dtor): Rename to ...
1351 (base_breakpoint_dtor): ... this. Make static.
1352 (bkpt_allocate_location): Rename to ...
1353 (base_breakpoint_allocate_location): ... this. Make static.
1354 (base_breakpoint_re_set): New.
1355 (internal_error_pure_virtual_called): New.
1356 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1357 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1358 (base_breakpoint_works_in_software_mode)
1359 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1360 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1361 (base_breakpoint_print_recreate): New functions.
1362 (base_breakpoint_ops): New global.
1363 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1364 (bkpt_breakpoint_hit): Make static.
1365 (bkpt_check_status): Delete.
1366 (bkpt_resources_needed): Make static.
1367 (bkpt_works_in_software_mode): Delete.
1368 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1370 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1371 (momentary_breakpoint_ops): Don't statically initialize.
1372 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1374 (tracepoint_insert_location, tracepoint_remove_location)
1375 (tracepoint_check_status, tracepoint_works_in_software_mode)
1376 (tracepoint_print_it): Delete.
1377 (tracepoint_breakpoint_ops): Don't statically initialize.
1378 (initialize_breakpoint_ops): New.
1379 (_initialize_breakpoint): Call it.
1380 * breakpoint.h (null_re_set, null_works_in_software_mode)
1381 (null_resources_needed, null_check_status, null_print_one_detail):
1382 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1383 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1384 (bkpt_check_status, bkpt_resources_needed)
1385 (bkpt_works_in_software_mode, bkpt_print_it)
1386 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1387 Delete declarations.
1388 (initialize_breakpoint_ops): Declare.
1390 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1392 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1393 (momentary_bkpt_print_it): Simplify.
1395 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1397 Split internal, momentary and user breakpoints breakpoint_ops
1400 * breakpoint.c (internal_breakpoint_ops)
1401 (momentary_breakpoint_ops): Forward declare.
1402 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1403 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1404 (create_overlay_event_breakpoint)
1405 (create_std_terminate_master_breakpoint)
1406 (create_exception_master_breakpoint): Create breakpoints with
1407 internal_breakpoint_ops vtable.
1408 (set_longjmp_breakpoint): Create momentary breakpoints with
1409 momentary_breakpoint_ops vtable, using
1410 momentary_breakpoint_from_master.
1411 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1412 (create_solib_event_breakpoint): Create breakpoints with
1413 internal_breakpoint_ops vtable.
1414 (set_momentary_breakpoint): Create breakpoints with
1415 momentary_breakpoint_ops vtable.
1416 (momentary_breakpoint_from_master): New, factored out from
1417 clone_momentary_breakpoint.
1418 (clone_momentary_breakpoint): Adjust.
1419 (watch_command_1): Create scope breakpoints with
1420 momentary_breakpoint_ops vtable.
1421 (bkpt_re_set): Remove handling of internal and momentary
1423 (bkpt_print_mention, bkpt_print_recreate): New.
1424 (bkpt_breakpoint_ops): Adjust.
1425 (internal_bkpt_re_set, internal_bkpt_check_status)
1426 (internal_bkpt_print_it, internal_bkpt_print_mention)
1427 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1428 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1429 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1430 (momentary_bkpt_print_recreate): New.
1431 (momentary_breakpoint_ops): New.
1433 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1435 Implement most breakpoint_ops methods for all breakpoint types,
1436 and move the default handlings to the proper callbacks.
1438 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1439 works_in_software_mode method.
1440 (insert_bp_location): Go through breakpoint_ops->insert_location
1441 for software and hardware watchpoints.
1442 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1444 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1445 for software and hardware watchpoints.
1446 (print_it_typical): Delete.
1447 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1449 (watchpoint_check): Adjust comment.
1450 (bpstat_check_location): Simply always call the breakpoint's
1451 breakpoint_hit method.
1452 (bpstat_stop_status): Always call the breakpoint's check_status
1453 method. Remove special cases for watchpoints and internal event
1454 breakpoints from here (moved to the check_status implementations).
1455 (print_one_breakpoint_location): Assume b->ops is never NULL.
1456 Remove static tracepoint marker id printing from here (moved to
1457 the print_one_detail callback implementation of tracepoints).
1458 (init_bp_location): Assert OPS is never NULL.
1459 (allocate_bp_location): Always call the breakpoint's
1460 allocate_location method, and remove the default code from here.
1461 (free_bp_location): Always call the location's dtor method, and
1462 remove the default code from here.
1463 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1464 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1465 parameter. Pass it down.
1466 (set_raw_breakpoint): Ditto.
1467 (print_it_catch_fork): Adjust to take a bpstat as argument.
1468 (catch_fork_breakpoint_ops): Install methods.
1469 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1470 (catch_vfork_breakpoint_ops): Install methods.
1471 (dtor_catch_syscall): Call the base dtor.
1472 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1473 (catch_syscall_breakpoint_ops): Install methods.
1474 (dtor_catch_exec): Call the base dtor.
1475 (print_it_catch_exec): Adjust to take a bpstat as argument.
1476 (catch_exec_breakpoint_ops): Install methods.
1477 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1478 the breakpoint's resources_needed method, and remove the default
1480 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1482 (clone_momentary_breakpoint): Clone the original's ops.
1483 (mention): Always call the breakpoint's print_mention method, and
1484 remove the default code from here.
1485 (create_breakpoint_sal): Adjust to pass the ops to
1486 set_raw_breakpoint rather than setting it manually.
1487 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1488 ops to set_raw_breakpoint_without_location rather than setting it
1490 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1491 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1492 (ranged_breakpoint_ops): Install methods.
1493 (break_range_command): Adjust to pass the ops to
1494 set_raw_breakpoint rather than setting it manually.
1495 (re_set_watchpoint, breakpoint_hit_watchpoint)
1496 (check_status_watchpoint, resources_needed_watchpoint)
1497 (works_in_software_mode_watchpoint, print_it_watchpoint)
1498 (print_mention_watchpoint, print_recreate_watchpoint): New
1500 (watchpoint_breakpoint_ops): Install new methods.
1501 (print_it_masked_watchpoint): New function.
1502 (masked_watchpoint_breakpoint_ops): Install new methods.
1503 (watch_command_1): Adjust to pass the right breakpoint_ops to
1504 set_raw_breakpoint_without_location rather than setting it
1505 manually later. Record the current pspace.
1506 (print_it_exception_catchpoint): Adjust to take a bpstat as
1508 (gnu_v3_exception_catchpoint_ops): Install new methods.
1509 (say_where): New function.
1510 (null_re_set, null_check_status, null_works_in_software_mode)
1511 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1513 (bp_location_ops): New global.
1514 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1515 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1516 (bkpt_check_status, bkpt_resources_needed)
1517 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1518 (bkpt_print_recreate): New functions.
1519 (bkpt_breakpoint_ops): New global.
1520 (tracepoint_re_set, tracepoint_insert_location)
1521 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1522 (tracepoint_check_status, tracepoint_works_in_software_mode)
1523 (tracepoint_print_it, tracepoint_print_one_detail)
1524 (tracepoint_print_mention, tracepoint_print_recreate): New
1526 (tracepoint_breakpoint_ops): New global.
1527 (delete_breakpoint): Always call the breakpoint's dtor method, and
1528 remove the default handling from here.
1529 (breakpoint_re_set_default): Make static.
1530 (breakpoint_re_set_one): Always call the breakpoints re_set
1531 method, and remove the default handling from here.
1532 (trace_command, ftrace_command, strace_command)
1533 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1534 to create_breakpoint.
1535 (save_breakpoints): Always call the breakpoint's print_recreate
1536 method, and remove the default handling from here.
1538 * ada-lang.c (dtor_exception): Call the base dtor.
1539 (re_set_exception): Call the base method.
1540 (print_it_exception, print_it_catch_exception): Adjust to take a
1542 (catch_exception_breakpoint_ops): Install methods.
1543 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1545 (catch_exception_unhandled_breakpoint_ops): Install methods.
1546 (print_it_catch_assert): Adjust to take a bpstat as argument.
1547 (catch_assert_breakpoint_ops): Install methods.
1549 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1550 to take a bpstat as argument.
1551 (enum print_stop_action): Add describing comments to each enum
1553 (breakpoint_re_set_default): Delete declaration.
1554 (null_re_set, null_works_in_software_mode, null_resources_needed)
1555 (null_check_status, null_print_one_detail): Declare.
1556 (bkpt_breakpoint_ops): Declare.
1557 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1558 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1559 (bkpt_check_status, bkpt_resources_needed)
1560 (bkpt_works_in_software_mode, bkpt_print_it)
1561 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1564 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1565 bkpt_breakpoint_ops.
1566 * python/py-breakpoint.c (bppy_init): Ditto.
1568 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1570 * MAINTAINERS (Write After Approval): Add myself to the list.
1572 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1574 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1576 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1578 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1579 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1580 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1582 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1583 (struct i386_debug_reg_state): New.
1584 (i386_init_dregs): New.
1586 (i386_cleanup_dregs): Use i386_init_dregs.
1587 (i386_show_dr): Add state parameter and adjust.
1588 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1590 (i386_remove_aligned_watchpoint): Likewise.
1591 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1592 (i386_update_inferior_debug_regs): New.
1593 (i386_insert_watchpoint): Work on a local mirror of the debug
1594 registers, and only update the inferior on success.
1595 (i386_remove_watchpoint): Ditto.
1596 (i386_region_ok_for_watchpoint): Adjust.
1597 (i386_stopped_data_address): Adjust.
1598 (i386_insert_hw_breakpoint): Adjust.
1599 (i386_remove_hw_breakpoint): Adjust.
1601 2011-07-22 Tom Tromey <tromey@redhat.com>
1603 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1604 from amd64_pseudo_register_read. Change arguments. Call
1605 mark_value_bytes_unavailable when needed.
1606 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1607 set_gdbarch_pseudo_register_read.
1608 * sentinel-frame.c (sentinel_frame_prev_register): Use
1609 regcache_cooked_read_value.
1610 * regcache.h (regcache_cooked_read_value): Declare.
1611 * regcache.c (regcache_cooked_read_value): New function.
1612 (regcache_cooked_read): Call
1613 gdbarch_pseudo_register_read_value if available.
1614 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1615 (i386_pseudo_register_read): Remove.
1616 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1617 i386_pseudo_register_read. Change arguments. Call
1618 mark_value_bytes_unavailable when needed.
1619 (i386_pseudo_register_read_value): New function.
1620 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1621 not set_gdbarch_pseudo_register_read.
1622 * gdbarch.sh (pseudo_register_read_value): New method.
1623 * gdbarch.c, gdbarch.h: Rebuild.
1624 * findvar.c (value_from_register): Call get_frame_register_value.
1626 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1628 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1630 (display_gdb_prompt): Likewise.
1631 (change_annotation_level): Likewise.
1632 (push_prompt): Likewise.
1633 (pop_prompt): Likewise.
1634 (handle_stop_sig): Use get_prompt with a level.
1635 * top.c (command_loop): Use get_prompt with a level.
1636 (set_async_annotation_level): Use set_prompt with a level.
1637 (get_prefix): New function.
1638 (set_prefix): Ditto.
1639 (set_suffix): Ditto.
1640 (get_suffix): Ditto.
1641 (get_prompt): Accept a level argument.
1642 (set_prompt): Accept a level argument. Free old prompts. Set
1643 new_async_prompt if level is 0.
1644 (init_main): Use set_prompt with a level. Do not set
1646 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1647 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1648 Modify set_prompt, get_prompt to account for levels.
1649 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1651 * python/python.c (before_prompt_hook): Use set_prompt.
1653 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1655 * defs.h: Add guard against inclusion in gdbserver.
1656 (struct ptid, ptid_t): Move to common/ptid.h.
1657 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1658 xsnprintf, internal_error): Move to common/common-utils.h.
1660 * gdb_assert.h: Move into common/ sub-directory.
1661 * gdb_locale.h: Ditto.
1662 * gdb_dirent.h: Ditto.
1663 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1664 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1665 Move into common/ptid.h.
1666 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1667 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1668 Change nomem to malloc_failure.
1669 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1670 * utils.c (nomem): Rename to malloc_failure.
1671 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1672 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1673 (gdb_buildargv): Change nomem to malloc_failure.
1674 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1675 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1676 ptid_is_pid): Move into common/ptid.c.
1677 (initialize_infrun): Delete initialization of null_ptid and
1679 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1680 linux_common_xfer_osdata.
1681 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1682 common/ptid.c and common/buffer.c.
1683 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1684 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1685 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1686 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1688 * common/gdb_assert.h: New.
1689 * common/gdb_dirent.h: New.
1690 * common/gdb_locale.h: New.
1691 * common/buffer.c: New.
1692 * common/buffer.h: New.
1693 * common/ptid.c: New.
1694 * common/ptid.h: New.
1695 * common/xml-utils.c: New.
1696 * common/xml-utils.h: New.
1697 * common/common-utils.c: New.
1698 * common/common-utils.h: New.
1699 * common/linux-osdata.c: New.
1700 * common/linux-osdata.h: New.
1701 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1702 * config/arm/linux.mh (NATDEPFILES): Ditto.
1703 * config/i386/linux.mh (NATDEPFILES): Ditto.
1704 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1705 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1706 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1707 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1708 * config/mips/linux.mh (NATDEPFILES): Ditto.
1709 * config/pa/linux.mh (NATDEPFILES): Ditto.
1710 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1711 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1712 * config/s390/s390.mh (NATDEPFILES): Ditto.
1713 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1714 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1715 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1717 2011-07-21 Matt Rice <ratmice@gmail.com>
1719 * NEWS: Add info macros and info definitions commands.
1721 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1723 * NEWS: Document Python prompt substitution hook.
1725 2011-07-18 Matt Rice <ratmice@gmail.com>
1728 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1729 * macrotab.c (foreach_macro): Ditto.
1730 (foreach_macro_in_scope): Ditto.
1731 * macrocmd.c (print_macro_callback): New function.
1732 (info_macro_command): Move some code to print_macro_definition.
1733 (print_macro_definition): New function.
1734 (print_one_macro): Add new arguments to callback.
1735 (info_definitions_command): New function.
1736 (info_macros_command): Ditto.
1737 (_initialize_macrocmd): Add info macros and info definitions commands.
1738 * symtab.c (add_macro_name): Add new arguments to callback.
1740 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1741 Tom Tromey <tromey@redhat.com>
1743 * top.c (set_prompt): Rewrite to free previous prompt, free
1744 asynch_new_prompt and set both on new prompts.
1745 * event-top.c (display_gdb_prompt): Add prompt substitution
1747 * python/python.c (before_prompt_hook): New function.
1749 2011-07-20 Matt Rice <ratmice@gmail.com>
1751 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1752 arguments to store_unsigned_integer.
1754 2011-07-20 Tom Tromey <tromey@redhat.com>
1756 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1757 in some declaration-only cases.
1759 2011-07-18 Tom Tromey <tromey@redhat.com>
1762 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1763 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1764 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1765 <debug_type_section>: New field.
1766 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1767 (load_cu): Use appropriate section.
1768 (create_signatured_type_table_from_index): Add 'section'
1770 (dwarf2_read_index): Only allow a single .debug_types section.
1771 (dw2_get_file_names): Use appropriate section.
1772 (read_type_comp_unit_head): Add 'section' argument.
1773 (create_debug_types_hash_table): Loop over all .debug_types
1775 (init_cu_die_reader): Use appropriate section.
1776 (process_psymtab_comp_unit, load_partial_comp_unit)
1777 (load_full_comp_unit, read_die_and_children, find_partial_die)
1778 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1779 (lookup_signatured_type_at_offset): Add 'section' argument.
1780 (read_signatured_type_at_offset): Add 'sect' argument.
1781 (read_signatured_type): Use appropriate section.
1782 (set_die_type, get_die_type_at_offset): Update.
1783 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1785 (write_psymtabs_to_index): Don't allow index with more than one
1786 .debug_types section.
1788 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1790 Fix crash if referenced CU is aged out.
1791 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1792 xfree of block.data.
1793 (indirect_pieced_value): New variable back_to, use to for xfree of
1795 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1797 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1798 (load_cu): New function from ...
1799 (dw2_do_instantiate_symtab): ... the code here ...
1800 (process_full_comp_unit): ... and here.
1801 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1804 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1809 2011-07-19 Gary Benson <gbenson@redhat.com>
1811 * infrun.c (struct execution_control_state): New member
1812 stop_func_filled_in.
1813 (clear_stop_func, fill_in_stop_func): New functions.
1814 (handle_inferior_event): Call clear_stop_func rather than
1815 manipulating the execution control state directly.
1816 Call fill_in_stop_func lazily as required rather than
1817 directly calling find_pc_partial_function in all cases.
1819 2011-07-18 Tom Tromey <tromey@redhat.com>
1821 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1822 checking for variable-sized array.
1824 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1826 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1827 of supported languages.
1828 * varobj.c: Add top definitions and basic implementation of the
1829 following callbacks: ada_number_of_children, ada_name_of_variable,
1830 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1831 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1832 (languages): Register Ada-specific callbacks.
1833 (variable_language): Add the Ada case in the language setter switch.
1835 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1837 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1839 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1842 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1843 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1844 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1845 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1846 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1847 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1848 (struct dwarf_expr_context_funcs): New, move here methods from ...
1849 (struct dwarf_expr_context): ... here. New fields funcs.
1850 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1851 (dwarf_expr_ctx_funcs): New.
1852 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1853 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1854 (needs_frame_ctx_funcs): New.
1855 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1857 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1859 * MAINTAINERS (Write After Approval): Add myself to the list.
1861 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1863 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1864 that CIE pointer of an FDE really points to a CIE .
1866 2011-07-15 Hui Zhu <teawater@gmail.com>
1868 * remote.c (remote_get_trace_status): Add comments.
1870 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1872 Code cleanup - constify struct lval_funcs.
1873 * dwarf2loc.c (pieced_value_funcs): Make it const.
1874 * infrun.c (siginfo_value_funcs): Likewise.
1875 * opencl-lang.c (opencl_value_funcs): Likewise.
1876 * valops.c (value_assign, value_ind): Make the funcs variable const.
1877 * value.c (struct value): Make location.computed.funcs target const.
1878 Rearrange the comments.
1879 (allocate_computed_value): Make the funcs parameter target const.
1880 (value_computed_funcs): Return the funcs target const.
1881 (value_free, value_copy, set_value_component_location): Make the funcs
1883 * value.h (allocate_computed_value): Make the funcs parameter target
1885 (value_computed_funcs): Return the funcs target const.
1886 * windows-tdep.c (tlb_value_funcs): Make it const.
1888 2011-07-14 Hui Zhu <teawater@gmail.com>
1890 * remote.c (remote_get_trace_status): Initialize p.
1892 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 * remote.c (remote_get_trace_status): New variable ex. Put
1896 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1898 2011-07-13 Tom Tromey <tromey@redhat.com>
1900 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1901 value_from_contents for final conversion.
1903 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1906 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1907 Indent prototypes so they do not get into tags.
1909 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1911 Code cleanup making also optimized out values lazy.
1912 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1913 allocate_optimized_out_value. Twice.
1914 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1915 * findvar.c (read_var_value): Likewise.
1916 * value.c (allocate_optimized_out_value): New function.
1917 * value.h (allocate_optimized_out_value): New declaration.
1919 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1921 Fix occasional crash of CTRL-C during DWARF read in.
1922 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1924 2011-07-11 Tom Tromey <tromey@redhat.com>
1926 * regcache.c (struct regcache_descr): Fix typo.
1927 * i387-tdep.c (i387_supply_xsave): Fix typo.
1929 2011-07-11 Tom Tromey <tromey@redhat.com>
1931 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1932 (read_file_scope, read_type_unit_scope): Use it.
1934 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1939 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1942 * python/python.c: Set gdbpy_should_print_stack default to off.
1943 (set_python): Deprecate maint set python print-stack to
1945 (_initialize_python): Deprecate maint set/show python print-stack.
1946 Add new prefix command, python. Add new setting, print-backtrace.
1947 * NEWS: Document set python print-stack. Document default change.
1949 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1951 * python/py-inferior.c (infpy_dealloc): New function.
1952 (inferior_to_inferior_object): Return a new object, or a
1953 new reference to the existing object.
1954 (find_thread_object): Cleanup references to inferior.
1955 (delete_thread_object): Ditto.
1956 * python/py-infthread.c (create_thread_object): Do not increment
1957 inferior reference count.
1959 2011-07-08 Tom Tromey <tromey@redhat.com>
1961 * dwarf2loc.c (locexpr_regname): New function.
1962 (locexpr_describe_location_piece): Use it.
1963 (disassemble_dwarf_expression): Add per_cu argument. Use
1965 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1966 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1968 (locexpr_describe_location_1): Add per_cu argument.
1969 (locexpr_describe_location): Update.
1970 (loclist_describe_location): Update.
1972 2011-07-08 Tom Tromey <tromey@redhat.com>
1974 * dwarf2expr.c (execute_stack_op): Add QUIT.
1976 2011-07-07 Hui Zhu <teawater@gmail.com>
1979 2011-07-06 Hui Zhu <teawater@gmail.com>
1980 * remote.c (remote_start_remote): Add TRY_CATCH for
1981 remote_get_trace_status.
1982 * tracepoint.c (disconnect_tracing): Ditto.
1984 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1986 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1987 variables as signed, not unsigned.
1989 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1991 * jit.c (jit_inferior_init): Reformat forward declaration.
1993 2011-07-06 Matt Rice <ratmice@gmail.com>
1995 * MAINTAINERS (Write After Approval): Add myself to the list.
1997 2011-07-06 Hui Zhu <teawater@gmail.com>
1999 * remote.c (remote_start_remote): Add TRY_CATCH for
2000 remote_get_trace_status.
2001 * tracepoint.c (disconnect_tracing): Ditto.
2003 2011-07-05 Tom Tromey <tromey@redhat.com>
2005 * symtab.c (operator_chars): Now static.
2006 * linespec.c (operator_chars): Don't declare.
2008 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2010 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2012 2011-07-05 Tom Tromey <tromey@redhat.com>
2014 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2015 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2016 (TYPE_CPLUS_REALLY_JAVA): New macro.
2017 * dwarf2read.c (process_structure_scope): Set
2018 TYPE_CPLUS_REALLY_JAVA.
2020 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2022 * ada-lang.c: Fix typos.
2023 * amd64-tdep.c: Likewise.
2024 * breakpoint.c: Likewise.
2025 * cli/cli-decode.c: Likewise.
2026 * findcmd.c: Likewise.
2027 * inline-frame.c: Likewise.
2028 * mi/mi-main.c: Likewise.
2029 * minsyms.c: Likewise.
2030 * monitor.c: Likewise.
2031 * monitor.h: Likewise.
2032 * prologue-value.c: Likewise.
2033 * reverse.c: Likewise.
2034 * s390-tdep.c: Likewise.
2036 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2038 * jit.c (jit_inferior_init): Forward declare.
2039 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2041 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2043 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2045 2011-07-04 Tristan Gingold <gingold@adacore.com>
2047 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2048 (tcb_fieldno): Add activation_link field.
2049 (get_known_tasks_addr): Moved and rewritten.
2050 (get_tcb_types_info): Set activation_link field.
2051 (read_known_tasks_array): Add parameter. Rewritten.
2052 (read_known_tasks_list): New function.
2053 (read_known_tasks): New function.
2054 (ada_build_task_list): Call read_known_tasks instead of
2055 read_known_tasks_array.
2056 * ravenscar-thread.c: Add first_task_name constant.
2057 (has_ravenscar_runtime): Check for task list too.
2059 2011-07-04 Tristan Gingold <gingold@adacore.com>
2061 * ada-tasks.c: Renames fieldno to actb_fieldno.
2062 (ada_get_task_number): Indentation.
2063 (get_tcb_types_info): Remove all parameters. Write directly
2065 (ptid_from_atcb_common): Adjust.
2066 (read_atcb): Adjust.
2068 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2070 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2072 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2074 * ui-out.c (ui_out_field_core_addr): Mention that the function
2075 description is in the header file.
2076 * ui-out.h (ui_out_field_core_addr): Document function.
2078 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2080 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2081 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2083 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2085 * symtab.c (expand_line_sal): Remove empty line.
2087 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2089 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2090 same way as ELFOSABI_NONE.
2091 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2093 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2095 * breakpoint.c: Fix typos in comments.
2096 * linespec.c: Likewise.
2097 * symtab.c: Likewise.
2099 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2101 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2102 section in separate object files.
2104 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2106 Fix false GCC warning.
2107 * linespec.c (decode_line_1): Initialize values.
2109 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2111 * linespec.c (find_method): Accept the function type automatically only
2112 if it was specified with parameter types.
2114 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2116 Stop on first linespec terminator instead of eating what we can.
2117 * linespec.c (is_linespec_boundary): New function.
2118 (name_end): Remove function.
2119 (keep_name_info): New parameter on_boundary, replace the body.
2120 (decode_line_1): Provide the parameter to keep_name_info.
2121 (decode_compound): Likewise. Drop the trailing java return type
2124 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2126 Fall back linespec to minimal symbols.
2127 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2128 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2129 (find_method, symbol_found): Change error to cplusplus_error.
2131 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2135 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 Tom Tromey <tromey@redhat.com>
2138 * dwarf2read.c (check_physname): New variable.
2139 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2140 (show_check_physname): New function.
2141 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2143 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2145 * machoread.c (macho_symfile_read): Delete OBE comment.
2147 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2149 * machoread.c (struct macho_oso_data): Delete.
2150 (current_oso): Delete.
2151 (macho_relocate_common_syms): New function, mostly extracted
2153 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2154 Remove code that sets and unset current_oso.
2155 (macho_symfile_relocate): Delete handling of common symbols,
2156 now moved to macho_relocate_common_syms.
2158 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2160 * darwin-nat.c (darwin_ptrace): Add documentation.
2161 Set errno to zero before calling ptrace. If ptrace returns
2162 -1 and errno is zero, then change then return zero.
2163 (darwin_kill_inferior): Issue a warning instead of triggering
2164 a failed assertion when the PT_KILL ptrace operations returned
2167 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2169 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2170 only when inf->private->no_ptrace.
2172 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2174 * ada-lang.c (print_it_exception): Print temporary catchpoints
2175 as "Temporary catchpoint".
2176 (print_mention_exception): Likewise.
2178 2011-07-01 Tom Tromey <tromey@redhat.com>
2180 * jv-lang.c (java_language_defn): Use java_printchar,
2182 (java_get_encoding): New function.
2183 (java_emit_char): Use generic_emit_char.
2184 (java_printchar): New function.
2185 (java_printstr): Likewise.
2187 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2189 * ada-typeprint.c (print_record_type): If unable to decode
2190 the name of the parent type, use the encoded name.
2192 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2194 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2195 pointer to constrained packed array type output.
2196 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2197 packed array output.
2199 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2201 * ada-typeprint.c (print_array_type): removed if condition on show
2202 being negative for bounds printing.
2204 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2206 * ada-lang.c (ada_identical_enum_types_p): New function.
2207 (symbols_are_identical_enums): New function.
2208 (remove_extra_symbols): Do nothing if NSYMS < 2.
2209 Use symbols_are_identical_enums.
2211 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2213 * ada-valprint.c (ada_value_print): Handle typedefs.
2215 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2217 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2219 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2221 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2222 (decode_constrained_packed_array): Likewise.
2223 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2225 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2227 * ada-exp.y (convert_char_literal): Handle typedef types.
2229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2231 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2233 2011-06-30 Tom Tromey <tromey@redhat.com>
2235 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2236 * valops.c (find_overload_match): Call do_cleanups on early exit
2238 * solib.c (solib_find): Call do_cleanups on early exit path.
2240 2011-06-30 Tom Tromey <tromey@redhat.com>
2242 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2243 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2244 return paths. Defer final do_cleanups until last return.
2245 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2248 2011-06-30 Tom Tromey <tromey@redhat.com>
2250 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2252 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2254 * MAINTAINERS (Write After Approval): Add myself to the list.
2256 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 Disable epilogue unwinders on recent GCCs.
2259 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2260 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2261 * dwarf2read.c (process_full_comp_unit): Initialize
2262 EPILOGUE_UNWIND_VALID.
2263 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2264 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2265 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2267 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2269 Code cleanup - reformatting.
2270 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2271 (producer_is_gcc_ge_4): ... here, change the return value.
2272 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2275 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 Fix non-only rename list for Fortran modules import.
2278 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2279 cp_add_using_directive caller.
2280 (cp_add_using_directive): New parameter excludes, describe it. New
2281 variables ix and param. Compare if also excludes match. Allocate NEW
2282 with variable size, initialize EXCLUDES there.
2283 (cp_lookup_symbol_imports): New variable excludep, test
2284 current->EXCLUDES with it.
2285 * cp-support.h: Include vec.h.
2286 (struct using_direct): New field excludes, describe it.
2287 (DEF_VEC_P (const_char_ptr)): New.
2288 (cp_add_using_directive): New parameter excludes.
2289 * defs.h (const_char_ptr): New typedef.
2290 * dwarf2read.c (read_import_statement): New variables child_die,
2291 excludes and cleanups, read in excludes.
2292 (read_namespace): Adjust the cp_add_using_directive caller.
2294 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2297 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2298 negative comparisons.
2300 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2302 * mi/mi-main.c (mi_cmd_list_features): Emit
2303 breakpoint-notifications.
2305 2011-06-29 Tom Tromey <tromey@redhat.com>
2308 * valprint.h (generic_emit_char, generic_printstr): Declare.
2309 * valprint.c (wchar_printable, append_string_as_wide)
2310 (print_wchar): Move from c-lang.c.
2311 (generic_emit_char): New function; mostly taken from c_emit_char.
2312 (generic_printstr): New function; mostly taken from c_printstr.
2313 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2314 represented as arrays.
2315 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2317 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2318 identically to TYPE_CODE_INT.
2319 * f-lang.c (f_get_encoding): New function.
2320 (f_emit_char): Use generic_emit_char.
2321 (f_printchar): Replace comment.
2322 (f_printstr): Use generic_printstr.
2323 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2324 "character" types specially.
2325 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2327 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2329 (c_emit_char): Call generic_emit_char.
2330 (c_printstr): Call generic_printstr.
2332 2011-06-29 Gary Benson <gbenson@redhat.com>
2334 * breakpoint.c (bpstat_what): Removed duplicated case.
2336 2011-06-28 Tom Tromey <tromey@redhat.com>
2338 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2340 2011-06-27 Tom Tromey <tromey@redhat.com>
2342 * valops.c (find_overload_match): Call do_cleanups before early
2344 * top.c (execute_command): Call do_cleanups before early return.
2345 (command_loop): Likewise.
2346 * stack.c (backtrace_command): Make a null cleanup early. Don't
2347 conditionally call do_cleanups.
2348 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2350 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2351 so cleanups are always run.
2352 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2353 * findcmd.c (parse_find_args): Call do_cleanups on early return
2355 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2356 Don't conditionally call do_cleanups.
2357 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2360 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2362 * MAINTAINERS (Write After Approval): Use default email address.
2364 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2366 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2368 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2370 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2371 saved_regs_mask and copied_regs_mask fields.
2372 (sparc_record_save_insn): New prototype.
2373 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2374 (sparc_record_save_insn): New function.
2375 (sparc_analyze_prologue): Add head comment. Recognize store insns
2376 of call-saved registers. Use OFFSET consistently. Recognize flat
2377 frames and cache their settings.
2378 (sparc32_skip_prologue): Handle flat frames.
2379 (sparc_frame_cache): Add frame_offset to the base address.
2380 (sparc32_frame_cache): Adjust to new frame description.
2381 (sparc32_frame_prev_register): Likewise.
2382 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2383 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2384 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2385 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2386 frame by calling sparc_record_save_insn.
2387 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2388 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2389 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2391 2011-06-27 Tristan Gingold <gingold@adacore.com>
2393 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2394 field by map_addr and map_len.
2395 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2396 (munmap_section_buffer): Likewise.
2398 2011-06-24 Tom Tromey <tromey@redhat.com>
2400 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2401 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2402 * python/python.c (gdbpy_parameter): Make 'arg' const.
2403 (execute_gdb_command): Likewise.
2404 (gdbpy_decode_line): Likewise. Copy it.
2405 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2406 (gdbpy_write): Make 'arg' const.
2407 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2409 (gdbpy_lookup_type): Likewise.
2410 * python/py-prettyprint.c (print_children): Make 'name' const.
2411 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2412 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2414 * python/py-function.c (fnpy_init): Make 'name' const.
2415 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2416 (gdbpy_string_to_argv): Make 'input' const.
2417 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2419 * gdbtypes.h (lookup_typename): Update.
2420 * gdbtypes.c (lookup_typename): Make 'name' const.
2421 (lookup_struct): Likewise.
2422 (lookup_union): Likewise.
2423 (lookup_enum): Likewise.
2425 2011-06-24 Tom Tromey <tromey@redhat.com>
2427 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2428 gdb_thread_db.h. Move all common/ entries to be together.
2429 (TAGS): Don't depend on DEPFILES.
2431 2011-06-23 Yao Qi <yao@codesourcery.com>
2433 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2434 * remote.c (remote_start_remote): ... here.
2435 * monitor.c (monitor_open): ... here.
2437 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2439 * gdbtypes.c (append_composite_type_field_aligned): Fix
2440 calculation of bit position based on alignment.
2442 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2444 * breakpoint.c (bpstat_stop_status): Call the check_status
2445 breakpoint_ops method.
2446 (print_one_breakpoint_location): Also print the condition for Ada
2447 exception catchpoints.
2448 (allocate_bp_location): New, factored out from
2449 allocate_bp_location.
2450 (allocate_bp_location): Adjust. Call the owner breakpoint's
2451 allocate_location method, if there is one.
2452 (free_bp_location): Call the locations's dtor method, if there is
2454 (init_raw_breakpoint_without_location): New breakpoint_ops
2456 (set_raw_breakpoint_without_location): Adjust.
2457 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2458 (set_raw_breakpoint): Adjust.
2459 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2460 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2461 re_set and check_status methods.
2462 (init_catchpoint): Don't memset, initialize thread, addr_string
2463 and enable_state. Pass the ops down to init_raw_breakpoint.
2464 (install_catchpoint): Rename to ...
2465 (install_breakpoint): ... this, and make extern.
2466 (create_fork_vfork_event_catchpoint): Adjust.
2467 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2468 re_set and check_status methods.
2469 (create_syscall_event_catchpoint): Adjust.
2470 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2471 (masked_watchpoint_breakpoint_ops): Install NULL
2472 allocate_location, re_set and check_status methods.
2473 (catch_exec_command_1): Adjust.
2474 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2475 re_set and check_status methods.
2476 (create_ada_exception_breakpoint): Rename to ...
2477 (init_ada_exception_breakpoint): ... this. Add a struct
2478 breakpoint parameter, and delete the exp_string, cond_string and
2479 cond parameters. Use init_raw_breakpoint, and don't install or
2480 mention the breakpoint yet. Don't clear breakpoint fields that
2481 init_raw_breakpoint already clears.
2482 (re_set_breakpoint): Delete, split into ...
2483 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2485 (breakpoint_re_set_one): Call the breakpoint's
2486 breakpoint_ops->re_set implementation, if there's one. Adjust.
2487 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2488 (struct bp_location_ops): New type.
2489 (struct bp_location): New field `ops'.
2490 (struct breakpoint_ops): New `allocate_location', `re_set' and
2491 `check_status' fields. Make `breakpoint_hit''s description match
2493 (init_bp_location): Declare.
2494 (breakpoint_re_set_default): Declare.
2495 (create_ada_exception_breakpoint): Rename to ...
2496 (init_ada_exception_breakpoint): ... this. Add a struct
2497 breakpoint parameter, and delete the exp_string, cond_string and
2499 (install_breakpoint): Declare.
2500 * ada-lang.c: Include exceptions.h.
2501 <Ada exceptions description>: Update.
2502 (struct ada_catchpoint_location): New type.
2503 (ada_catchpoint_location_dtor): New function.
2504 (ada_catchpoint_location_ops): New global.
2505 (ada_catchpoint): New type.
2506 (create_excep_cond_exprs): New function.
2507 (dtor_exception, allocate_location_exception, re_set_exception)
2508 (should_stop_exception, check_status_exception): New functions.
2509 (print_one_exception, print_mention_exception)
2510 (print_recreate_exception): Adjust.
2511 (dtor_catch_exception, allocate_location_catch_exception)
2512 (re_set_catch_exception, check_status_catch_exception): New
2514 (catch_exception_breakpoint_ops): Install them.
2515 (dtor_catch_exception_unhandled)
2516 (allocate_location_catch_exception_unhandled)
2517 (re_set_catch_exception_unhandled)
2518 (check_status_catch_exception_unhandled): New functions.
2519 (catch_exception_unhandled_breakpoint_ops): Install them.
2520 (dtor_catch_assert, allocate_location_catch_assert)
2521 (re_set_catch_assert, check_status_catch_assert): New functions.
2522 (catch_assert_breakpoint_ops): Install them.
2523 (ada_exception_catchpoint_p): Delete.
2524 (catch_ada_exception_command_split)
2525 (ada_exception_catchpoint_cond_string): Rename exp_string
2526 parameter to excep_string. Adjust.
2527 (ada_parse_catchpoint_condition): Delete.
2528 (ada_exception_sal): Rename the exp_string parameter to
2529 excep_string. Delete the cond_string and cond parameters.
2531 (ada_decode_exception_location): Rename the exp_string parameter
2532 to excep_string. Delete the cond_string and cond parameters.
2534 (create_ada_exception_catchpoint): New function.
2535 (catch_ada_exception_command, ada_decode_assert_location)
2536 (catch_assert_command): Adjust.
2537 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2539 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2541 * ada-lang.c: Include arch-utils.h.
2542 (ada_decode_exception_location): Make static.
2543 (catch_ada_exception_command): Moved here from breakpoint.c.
2544 (ada_decode_assert_location): Make static.
2545 (catch_assert_command): Moved here from breakpoint.c.
2546 (_initialize_ada_lang): Install the exception and assert
2547 catchpoint commands here.
2548 * ada-lang.h (ada_decode_exception_location)
2549 (ada_decode_assert_location): Delete declarations.
2550 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2552 (create_ada_exception_breakpoint): Make extern.
2553 (catch_ada_exception_command, catch_assert_command): Moved to
2555 (add_catch_command): Make extern.
2556 (_initilize_breakpoint): Don't install the exception and assert
2557 catchpoint commands here.
2558 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2560 (add_catch_command, create_ada_exception_breakpoint): Declare.
2562 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2564 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2565 the breakpoint to the breakpoint chain here.
2566 (set_raw_breakpoint_without_location): Add the breakpoint to the
2567 breakpoint chain here.
2568 (init_raw_breakpoint): Adjust comments.
2569 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2571 (init_catchpoint): Don't set the catchpoint's breakpoint number
2573 (install_catchpoint): New function.
2574 (create_fork_vfork_event_catchpoint)
2575 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2576 use install_catchpoint.
2578 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2580 * breakpoint.c (create_catchpoint_without_mention)
2581 (create_catchpoint): Delete.
2583 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2585 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2586 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2587 reference to exec_pathname.
2588 (struct exec_catchpoint): New type.
2589 (dtor_catch_exec): New function.
2590 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2591 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2592 (catch_exec_command_1): Adjust to use init_catchpoint.
2593 (delete_breakpoint): Remove reference to exec_pathname.
2595 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2597 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2598 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2599 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2600 reference to syscalls_to_be_caught.
2601 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2603 (struct syscall_catchpoint): New type.
2604 (dtor_catch_syscall): New function.
2605 (insert_catch_syscall, remove_catch_syscall)
2606 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2607 (print_recreate_catch_syscall): Adjust.
2608 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2609 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2610 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2611 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2612 (masked_watchpoint_breakpoint_ops)
2613 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2614 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2615 there is one. Remove references to syscalls_to_be_caught.
2616 (catching_syscall_number): Adjust.
2617 * ada-lang.c (catch_exception_breakpoint_ops)
2618 (catch_exception_unhandled_breakpoint_ops)
2619 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2621 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2623 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2625 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2626 reference to forked_inferior_pid.
2627 (struct fork_catchpoint): New type.
2628 (breakpoint_hit_catch_fork, print_it_catch_fork)
2629 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2630 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2631 (create_fork_vfork_event_catchpoint): Adjust to use
2634 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2636 * breakpoint.c (add_to_breakpoint_chain)
2637 (init_raw_breakpoint_without_location): New functions, factored
2639 (set_raw_breakpoint_without_location): ... this one.
2640 (init_raw_breakpoint): New function, factored out from
2641 set_raw_breakpoint and adjusted to use
2642 init_raw_breakpoint_without_location.
2643 (set_raw_breakpoint): Adjust.
2644 (init_catchpoint): New function, factored out from
2645 create_catchpoint_without_mention and adjusted to use
2646 init_raw_breakpoint.
2647 (create_catchpoint_without_mention): Adjust.
2649 2011-06-22 Tom Tromey <tromey@redhat.com>
2651 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2652 argument of 0 specially.
2654 2011-06-22 Yao Qi <yao@codesourcery.com>
2656 * infrun.c (handle_inferior_event): Remove write-only local variable
2657 `sw_single_step_trap_p'.
2659 2011-06-20 Tom Tromey <tromey@redhat.com>
2661 * symtab.c (lookup_language_this): End loop if block is NULL.
2663 2011-06-17 Tom Tromey <tromey@redhat.com>
2665 * valops.c (value_of_this): Use lookup_language_this.
2666 * symtab.h (lookup_language_this): Declare.
2667 * symtab.c (lookup_language_this): New function.
2668 (lookup_symbol_aux): Use lookup_language_this.
2669 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2671 2011-06-17 Tom Tromey <tromey@redhat.com>
2673 * value.h (value_of_this): Update.
2674 (value_of_local): Remove.
2675 * valops.c (value_of_this): Rename from value_of_local. Change
2677 * p-exp.y (exp): Update.
2678 (variable): Likewise.
2679 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2681 2011-06-17 Tom Tromey <tromey@redhat.com>
2683 * valops.c (value_of_local): Complain if NAME is NULL.
2684 * std-operator.def (OP_OBJC_SELF): Remove.
2685 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2686 * objc-exp.y (name_not_typename): Use OP_THIS.
2687 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2689 <OP_OBJC_SELF>: Remove.
2690 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2692 2011-06-16 Tristan Gingold <gingold@adacore.com>
2694 * python/py-events.h (gdb_py_events): Make it extern.
2695 * python/py-evtregistry.c (gdb_py_events): Declare.
2697 2011-06-16 Hui Zhu <teawater@gmail.com>
2699 * remote.c (remote_trace_set_readonly_regions): Add check for
2700 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2703 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2705 * arm-linux-tdep.c: Include "auxv.h".
2707 (ARM_LINUX_SIZEOF_VFP): Define.
2708 (arm_linux_supply_vfp): New function.
2709 (arm_linux_collect_vfp): Likewise.
2710 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2711 (arm_linux_fpa_regset_sections): New variable.
2712 (arm_linux_vfp_regset_sections): Likewise.
2713 (arm_linux_core_read_description): New function.
2714 (arm_linux_init_abi): Install arm_linux_core_read_description and
2715 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2716 appropriate for the architecture.
2717 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2718 (tdesc_arm_with_m): Declare.
2719 (tdesc_arm_with_iwmmxt): Likewise.
2720 (tdesc_arm_with_vfpv2): Likewise.
2721 (tdesc_arm_with_vfpv3): Likewise.
2722 (tdesc_arm_with_neon): Likewise.
2723 * arm-linux-nat.c: Move features/*.c includes ...
2724 * arm-tdep.c: ... here.
2725 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2726 target description data structures ...
2727 * arm-tdep.c (_initialize_arm_tdep): ... here.
2728 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2729 HWCAP_VFPv3D16): Move definitions ...
2730 * arm-linux-tdep.h: ... here.
2732 2011-06-15 Hui Zhu <teawater@gmail.com>
2734 * remote.c (remote_trace_set_readonly_regions): Add a check for
2737 2011-06-14 Tom Tromey <tromey@redhat.com>
2739 * coffread.c (coffread_objfile): Rename from current_objfile.
2740 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2741 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2743 2011-06-14 Tom Tromey <tromey@redhat.com>
2745 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2746 (class_symtab): Remove.
2747 (jv_dynamics_progspace_key): New global.
2748 (jv_per_objfile_free): Reset program space data. Update assert.
2749 Don't clear globals.
2750 (get_dynamics_objfile): Use and set program space data.
2751 (get_java_class_symtab): Use get_dynamics_objfile.
2752 (add_class_symbol): Likewise.
2753 (java_link_class_type): Likewise.
2754 (java_object_type, jv_clear_object_type, set_java_object_type):
2756 (get_java_object_type): Update. Don't cache result.
2757 (is_object_type): Don't call set_java_object_type.
2758 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2759 initialize jv_dynamics_progspace_key.
2761 2011-06-14 Tom Tromey <tromey@redhat.com>
2763 * symtab.h (current_objfile): Don't declare.
2764 * objfiles.h (current_objfile): Don't declare.
2765 * objfiles.c (current_objfile): Remove.
2766 * mdebugread.c (current_objfile): New file-scope global.
2767 * dbxread.c (current_objfile): New file-scope global.
2768 * coffread.c (current_objfile): New file-scope global.
2770 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2772 * top.h (line): Rename to ...
2773 (saved_command_line): ... this.
2774 (linesize): Rename to ...
2775 (saved_command_line_size): ... this.
2776 * top.c (line): Rename to ...
2777 (saved_command_line): ... this.
2778 (linesize): Rename to ...
2779 (saved_command_line_size): ... this.
2780 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2781 * event-top.c (command_line_handler): Adjust.
2782 * main.c (captured_main): Adjust.
2784 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2786 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2787 get_frame_func instead of get_frame_pc to determine the code
2788 address used to construct the frame ID.
2789 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2790 (i386_epilogue_frame_this_id): Likewise.
2791 (i386_epilogue_frame_prev_register): New function.
2792 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2793 (i386_stack_tramp_frame_sniffer): Fix coding style.
2794 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2795 (i386_gdbarch_init): Fix comments.
2797 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2799 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2800 instruction when walking back through the instruction stream.
2802 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2804 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2805 fullname parameters order.
2807 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2810 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2812 * psymtab.c (map_symbol_filenames_psymtab)
2813 (map_partial_symbol_filenames): Likewise.
2814 * psymtab.h: Include symfile.h.
2815 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2816 * symfile.h (symbol_filename_ftype): New.
2817 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2818 map_symbol_filenames, clarify more the naming in comment.
2820 2011-06-07 Doug Evans <dje@google.com>
2822 * cc-with-index.sh: Fix typos in comment.
2823 Look for ../../gdb, for fullname.exp.
2825 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2826 Pedro Alves <pedro@codesourcery.com>
2828 * cli/cli-cmds.c (shell_escape): Use waitpid.
2829 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2831 2011-06-07 Tristan Gingold <gingold@adacore.com>
2833 * xcoffread.c (dwarf2_xcoff_names): New variable.
2834 (aix_process_linenos): Add a guard.
2835 (xcoff_symfile_finish): Free dwarf2.
2836 (xcoff_initial_scan): Add dwarf2 support.
2838 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2840 * infcall.c (run_inferior_call): Don't mask async. Instead force
2841 a synchronous wait, if the target can async.
2843 * target.h (struct target_ops): Delete to_async_mask.
2844 (target_async_mask): Delete.
2845 * target.c (update_current_target): Delete references to to_async_mask.
2846 * linux-nat.c (linux_nat_async_mask_value): Delete.
2847 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2848 to linux_nat_async_mask_value.
2849 (linux_nat_async_mask): Delete.
2850 (linux_nat_async, linux_nat_close): Remove references to
2851 linux_nat_async_mask_value.
2852 * record.c (record_async_mask_value): Delete.
2853 (record_async): Remove references to record_async_mask_value.
2854 (record_async_mask): Delete.
2855 (record_can_async_p, record_is_async_p): Remove references to
2856 record_async_mask_value.
2857 (init_record_ops, init_record_core_ops): Remove references to
2859 * remote.c (remote_async_mask_value): Delete.
2860 (init_remote_ops): Remove reference to remote_async_mask.
2861 (remote_can_async_p, remote_is_async_p): Remove references to
2862 remote_async_mask_value.
2863 (remote_async): Remove references to remote_async_mask_value.
2864 (remote_async_mask): Delete.
2866 * infrun.c (fetch_inferior_event): Don't claim registers changed
2867 if the current thread is already not executing.
2869 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2871 From Stephen Kitt <steve@sk2.org>
2872 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2873 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2875 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2877 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2878 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2880 2011-06-03 Tom Tromey <tromey@redhat.com>
2882 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2884 * python/py-exitedevent.c (create_exited_event_object): Change
2885 type of 'exit_code'. Optionally add exit_code attribute.
2886 (emit_exited_event): Change type of 'exit_code'.
2887 * python/py-event.h (emit_exited_event): Update.
2888 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2889 * infrun.c (handle_inferior_event): Set exit code fields on
2891 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2893 * inferior.c (exit_inferior_1): Initialize new fields.
2895 2011-06-03 Tom Tromey <tromey@redhat.com>
2897 * dwarf2expr.c (get_signed_type): New function.
2898 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2900 2011-06-02 Keith Seitz <keiths@redhat.com>
2902 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2904 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2906 * top.h (simplified_command_loop): Delete declaration.
2908 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2910 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2911 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2913 2011-06-01 Yao Qi <yao@codesourcery.com>
2915 * objfiles.h (obj_section_addr): Update reference to objfile from
2917 (obj_section_endaddr): Likewise.
2919 2011-06-01 Daniel Jacobowitz <drow@false.org>
2921 * MAINTAINERS: Update my email address and affiliation. Also
2922 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2924 2010-05-31 Keith Seitz <keiths@redhat.com>
2927 * linespec.c (get_search_block): New function.
2928 (find_methods): Add FILE_SYMTATB parameter and use it and
2929 get_search_block to pass an appropriate block to
2930 lookup_symbol_in_namespace.
2931 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2932 Check if *ARGPTR starts with a filename first.
2933 If it does, call locate_first_half again to locate the next
2934 "first half" of the linespec.
2935 Pass FILE_SYMTATB to decode_objc and decode_compound.
2936 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2937 (locate_first_half): Stop on the first colon seen.
2938 (decode_compound): Add FILE_SYMTAB parameter.
2939 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2940 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2941 get_search_block with lookup_symbol.
2942 (find_method): Add FILE_SYMTAB parameter and pass it to
2944 (decode_objc): Use get_search_block.
2946 2010-05-31 Keith Seitz <keiths@redhat.com>
2949 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2950 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2951 and CP_ANONYMOUS_NAMESPACE_LEN.
2952 (cp_is_anonymous): Likewise.
2953 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2954 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2955 * dwarf2read.c (namespace_name): Likewise.
2956 (fixup_partial_die): Likewise.
2957 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2958 seen in the input, keep it.
2960 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2962 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2963 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2964 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2965 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2966 * remote.c (_initialize_remote): Register
2967 async_remote_interrupt_twice directly as
2968 sigint_remote_twice_token event.
2970 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2972 * target.h (enum inferior_event_type): Delete INF_ERROR.
2973 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2975 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2977 * interps.c (interp_set): Don't cancel continuations.
2979 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2981 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2983 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2985 * continuations.h (continuation_ftype): Add `err' parameter.
2986 Document parameters.
2987 (do_all_continuations, do_all_continuations_thread)
2988 (do_all_intermediate_continuations)
2989 (do_all_intermediate_continuations_thread)
2990 (do_all_inferior_continuations): Add `err' parameter.
2991 * continuations.c (do_my_continuations_1, do_my_continuations)
2992 (do_all_inferior_continuations, do_all_continuations_ptid)
2993 (do_all_continuations_thread_callback)
2994 (do_all_continuations_thread, do_all_continuations)
2995 (do_all_intermediate_continuations_thread_callback)
2996 (do_all_intermediate_continuations_thread)
2997 (do_all_intermediate_continuations): Add `err' parameter, and pass
2998 it down all the way to the continuations proper.
2999 * inf-loop.c (inferior_event_handler): If fetching an inferior
3000 event throws an error, don't pop the target, and still call the
3001 continuations, but with `err' set. Adjust all other continuation
3003 * breakpoint.c (until_break_command_continuation): Add `err'
3005 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3006 issue another step if `err' is set.
3007 (struct until_next_continuation_args): New.
3008 (until_next_continuation): Add `err' parameter. Adjust.
3009 (until_next_command): Adjust.
3010 (struct finish_command_continuation_args): Add `thread' field.
3011 (finish_command_continuation): Add `err' parameter. Handle it.
3012 (finish_forward): Adjust.
3013 (attach_command_continuation): Add `err' parameter. Handle it.
3014 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3015 cancel the continuations.
3016 * interps.c (interp_set): Adjust to cancel the continuations.
3017 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3018 continuations rather than discarding.
3019 (free_thread): Don't clear thread inferior resources here.
3020 (delete_thread_1): Do it here instead. And do it before removing
3021 the thread from the threads list. Tag the thread as exited before
3022 clearing thread inferior resources.
3024 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3026 * infcall.c (call_function_by_hand): Rephrase error message.
3028 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3030 * defs.h (struct thread_info, struct inferior): Delete forward
3032 * breakpoint.h (struct thread_info): New forward declaration.
3033 * observer.sh (struct inferior): New forward declaration.
3034 * python/python-internal.h (struct inferior): New forward
3037 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3039 * defs.h (struct continuation, continuation_ftype)
3040 (continuation_free_arg_ftype, add_continuation)
3041 (do_all_continuations, do_all_continuations_thread)
3042 (discard_all_continuations, discard_all_continuations_thread)
3043 (add_intermediate_continuation, do_all_intermediate_continuations)
3044 (do_all_intermediate_continuations_thread)
3045 (discard_all_intermediate_continuations)
3046 (discard_all_intermediate_continuations_thread)
3047 (add_inferior_continuation, do_all_inferior_continuations)
3048 (discard_all_inferior_continuations): Move to ...
3049 * continuations.h: ... this new file.
3050 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3051 infcmd.c, inferior.c, infrun.c, interps.c: Include
3054 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3055 Doug Evans <dje@google.com>
3057 Fix PR 10970, PR 12702.
3058 * linux-nat.c (linux_lwp_is_zombie): New function.
3059 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3060 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3062 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3064 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3066 (add_continuation, add_intermediate_continuation)
3067 (add_inferior_continuation): Use them.
3068 * continuations.c (struct continuation): Use them.
3069 (make_continuation_ftype): Delete.
3070 (make_continuation, add_inferior_continuation, add_continuation)
3071 (add_intermediate_continuation): Use continuation_ftype and
3072 continuation_free_arg_ftype. Rename parameters to shorter names.
3074 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3076 * continuations.c (make_continuation): Make it return void.
3077 (do_my_continuations): Rename to ...
3078 (do_my_continuations_1): ... this. Remove old_chain parameter and
3080 (do_my_continuations): New.
3081 (discard_my_continuations): Rename to ...
3082 (discard_my_continuations_1): ... this. Remove old_chain
3083 parameter and adjust.
3084 (discard_my_continuations): New.
3085 (add_inferior_continuation): Simplify.
3086 (do_all_inferior_continuations): Reimplement on top
3087 do_my_continuations.
3088 (discard_all_inferior_continuations): Simplify.
3089 (add_continuation): Simplify.
3090 (do_all_continuations_ptid): Simplify.
3091 (discard_all_continuations_thread_callback): Simplify.
3092 (add_intermediate_continuation): Simplify.
3093 (discard_all_intermediate_continuations_thread_callback):
3096 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3098 * utils.c (struct continuation, add_continuation)
3099 (add_inferior_continuation)
3100 (do_all_inferior_continuations, discard_all_inferior_continuations)
3101 (restore_thread_cleanup, do_all_continuations_ptid)
3102 (do_all_continuations_thread_callback)
3103 (do_all_continuations_thread, do_all_continuations)
3104 (discard_all_continuations_thread_callback)
3105 (discard_all_continuations_thread, discard_all_continuations)
3106 (add_intermediate_continuation)
3107 (do_all_intermediate_continuations_thread_callback)
3108 (do_all_intermediate_continuations_thread)
3109 (do_all_intermediate_continuations)
3110 (discard_all_intermediate_continuations_thread_callback)
3111 (discard_all_intermediate_continuations_thread)
3112 (discard_all_intermediate_continuations): Move to ...
3113 * continuations.c: ... this new file, and adjust to no longer
3114 implement continuations on top of cleanups.
3115 * Makefile.in (SFILES): Add continuations.c.
3116 (COMMON_OBS): Add continuations.o.
3118 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3120 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3121 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3122 Internal error on invalid values.
3123 * reverse.c: Don't handle EXEC_ERROR.
3124 * mi/mi-main.c: Don't handle EXEC_ERROR.
3126 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3128 * record.c: Include event-loop.h, inf-loop.h.
3129 (record_beneath_to_async): New global.
3130 (tmp_to_async): New global.
3131 (record_async_inferior_event_token): New global.
3132 (record_open_1): Don't error out if async is enabled.
3133 (record_open): Handle to_async. Create an async event source in
3135 (record_close): Delete the async event source.
3136 (record_resumed): New global.
3137 (record_execution_dir): New global.
3138 (record_resume, record_core_resume): Set them. Register the
3139 target on the event loop.
3140 (record_wait): Rename to ...
3141 (record_wait_1): ... this. Add more debug output. Handle
3142 TARGET_WNOHANG, and the target beneath returning
3143 TARGET_WAITKIND_IGNORE.
3144 (record_wait): Reimplement on top of record_wait_1.
3145 (record_async_mask_value): New global.
3146 (record_async, record_async_mask, record_can_async_p)
3147 (record_is_async_p, record_execution_direction): New functions.
3148 (init_record_ops, init_record_core_ops): Install new methods.
3149 * infrun.c (fetch_inferior_event): Temporarily switch the global
3150 execution direction to the direction the target was going.
3151 (execution_direction): Change type to int.
3152 * target.c (default_execution_direction): New function.
3153 (update_current_target): Inherit and de_fault
3154 to_execution_direction.
3155 * target.h (struct target_ops) <to_execution_direction>: New
3157 (target_execution_direction): New macro.
3158 * inferior.h (execution_direction): Change type to int.
3160 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3162 * infcall.c (call_function_by_hand): Don't allow calling functions
3163 in reverse execution mode.
3165 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3167 * infcmd.c (finish_command): Allow async finish in reverse.
3169 2011-05-26 Yao Qi <yao@codesourcery.com>
3171 * gdb_thread_db.h: Delete. Move to ...
3172 * common/gdb_thread_db.h: ... here.
3174 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3176 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3177 function's entry point instead of a manually managed momentary
3178 breakpoint, and only ever issue one proceed call.
3179 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3180 doing a reverse-finish, switch to stepi mode, to do another step.
3181 (insert_step_resume_breakpoint_at_sal): Make public.
3182 (normal_stop): No need to save function value return registers if
3184 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3186 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3188 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3189 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3190 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3192 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3193 step-resume breakpoints.
3194 (print_it_typical): Handle bp_hp_step_resume.
3195 (bpstat_what): Ditto.
3196 (bptype_string): Ditto.
3197 (print_one_breakpoint_location): Ditto.
3198 (allocate_bp_location): Ditto.
3200 (breakpoint_re_set_one): Ditto.
3201 * infrun.c (handle_inferior_event): Adjust. Split
3202 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3203 BPSTAT_WHAT_HP_STEP_RESUME.
3204 (insert_step_resume_breakpoint_at_sal): Rename to ...
3205 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3206 parameter. Handle it.
3207 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3208 insert_step_resume_breakpoint_at_sal_1.
3209 (insert_step_resume_breakpoint_at_frame): Rename to ...
3210 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3211 set a high-priority step-resume breakpoint.
3212 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3213 (insert_step_resume_breakpoint_at_caller): Ditto.
3215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3217 * breakpoint.c (iterate_over_related_breakpoints): New.
3218 (do_map_delete_breakpoint): New.
3219 (delete_command): Pass do_map_delete_breakpoint to
3220 map_breakpoint_numbers.
3221 (do_disable_breakpoint): New.
3222 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3224 (do_enable_breakpoint): Rename to ...
3225 (enable_breakpoint_disp): ... this.
3226 (enable_breakpoint): Adjust.
3227 (do_enable_breakpoint): New.
3228 (enable_once_breakpoint): Delete.
3229 (do_map_enable_breakpoint): New.
3230 (do_map_enable_once_breakpoint): New.
3231 (enable_once_command, enable_delete_command)
3232 (delete_trace_command): Iterate over the breakpoint's related
3235 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3237 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3238 for ALPHA_ZERO_REGNUM.
3239 (alpha_supply_int_regs): Explicitly supply zero as the value for
3240 ALPHA_ZERO_REGNUM in the register cache.
3241 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3243 2011-05-26 Yao Qi <yao@codesourcery.com>
3245 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3247 2011-05-26 Tristan Gingold <gingold@adacore.com>
3249 * symfile.h (struct dwarf2_section_names): New type.
3250 (struct dwarf2_debug_sections): New type.
3251 (dwarf2_has_info): Add parameter.
3252 * dwarf2read.c (dwarf2_elf_names): New variable.
3253 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3254 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3255 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3256 (dwarf2_has_info): Add names parameter. Pass names
3257 to dwarf2_locate_sections.
3258 (section_is_p): Rewrite using the names parameter.
3259 (dwarf2_locate_sections): Use section names from the names parameter.
3260 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3261 * elfread.c (read_psyms): Ditto.
3262 * machoread.c (macho_symfile_read): Ditto.
3264 2011-05-25 Andreas Schwab <schwab@redhat.com>
3267 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3269 2011-05-24 Keith Seitz <keiths@redhat.com>
3272 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3273 (decode_compound): Unconditionally call keep_name_info.
3275 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3277 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3278 scope, clear its command list.
3279 (map_breakpoint_numbers): Don't walk the related breakpoints list
3282 2011-05-24 Tom Tromey <tromey@redhat.com>
3284 * MAINTAINERS: Move Jim Blandy to past maintainers.
3286 2011-05-24 Tristan Gingold <gingold@adacore.com>
3288 * symfile.h (enum dwarf2_section_enum): New type.
3289 (dwarf2_get_section_info): New prototype.
3290 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3291 section_name by sect. Use a switch to select the info.
3292 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3293 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3295 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3297 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3298 shared library event breakpoint if there's no execution.
3300 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3302 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3303 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3305 2011-05-23 Tom Tromey <tromey@redhat.com>
3307 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3310 2011-05-23 Doug Evans <dje@google.com>
3312 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3313 entry for RuntimeError to doc string.
3315 2011-05-23 Jerome Guitton <guitton@adacore.com>
3317 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3318 sequence for probing loops.
3320 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3322 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3325 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3327 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3328 zero as the value for %g0 in the register cache.
3329 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3330 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3332 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3334 * infrun.c (proceed): Set previous_inferior_ptid here.
3335 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3336 inferior_ptid, not null_ptid.
3337 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3338 (fetch_inferior_event): Nor here.
3340 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3342 * inf-loop.c (inferior_event_handler): Only output a message if
3345 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3347 * MAINTAINERS: Update my e-mail address.
3349 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3351 * infrun.c (proceed): Switch the inferior event loop to
3352 INF_EXEC_COMPLETE if the target refused to resume from a
3355 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3357 * infcmd.c: Include "inf-loop.h".
3358 (step_once): When stepping into an inline subroutine, pretend the
3359 target has run. If the target can async, switch the inferior
3360 event loop to INF_EXEC_COMPLETE.
3361 * inferior.h (user_visible_resume_ptid): Declare.
3362 * infrun.c (user_visible_resume_ptid): New function, factored out
3365 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3366 that the current thread is running. Merge async and sync
3369 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3371 * infcmd.c (step_1): Simplify synchronous case.
3373 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3375 * tracepoint.c: Include exceptions.h.
3376 (TFILE_PID): Move higher in file.
3377 (tfile_open): Delay pushing the tfile target until we're assured
3378 the tfile header is present in the file. Wrap reading the initial
3379 newline-terminated lines in TRY_CATCH. Pop the target if the
3380 initial setup failed. Add the tfile's thread immediately
3381 aftwards, before any non-essential setup. Don't skip
3382 post_create_inferior if there are no traceframes present in the
3384 (tfile_close): Remove redundant check for null before xfree call.
3385 (tfile_thread_alive): New function.
3386 (init_tfile_ops): Register it as to_thread_alive callback.
3388 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3390 * tracepoint.c (tfile_open): Delete #if 0'd code.
3392 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3394 Fix -readnow for -gdwarf-4 unused type units.
3395 * dwarf2read.c (struct signatured_type): Remove the field offset.
3396 (create_signatured_type_table_from_index): Remove its initialization.
3397 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3398 instead. Add a complaint call.
3399 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3400 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3401 (lookup_signatured_type_at_offset, read_signatured_type)
3402 (write_one_signatured_type): Update the field for per_cu.
3404 2011-05-19 Tom Tromey <tromey@redhat.com>
3406 * python/py-inferior.c (python_inferior_exit): Use
3408 (python_on_resume): Likewise.
3410 2011-05-19 Matt Rice <ratmice@gmail.com>
3412 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3414 2011-05-19 Hui Zhu <teawater@gmail.com>
3416 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3418 2011-05-19 Hui Zhu <teawater@gmail.com>
3420 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3422 2011-05-18 Tom Tromey <tromey@redhat.com>
3424 * dwarf2read.c (dwarf2_add_field): Constify.
3425 * value.c (value_static_field): Constify.
3426 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3428 * ax-gdb.c (gen_static_field): Constify
3430 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 * linux-nat.c (kill_callback): Use SIGKILL first.
3434 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3436 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3438 2011-05-18 Tom Tromey <tromey@redhat.com>
3440 * value.c (value_fn_field): Constify.
3441 * symtab.c (gdb_mangle_name): Constify.
3442 * stabsread.c (update_method_name_from_physname): Make 'physname'
3444 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3445 const. Use explicit fputc_filtered loop.
3446 (pascal_type_print_base): Constify.
3447 * p-lang.h (pascal_type_print_method_args): Update.
3448 * linespec.c (add_matching_methods): Constify.
3449 (add_constructors): Likewise.
3450 * jv-typeprint.c (java_type_print_base): Constify.
3451 * gdbtypes.h (struct cplus_struct_type)
3452 <fn_fieldlist.fn_field.physname>: Now const.
3453 * dwarf2read.c (compute_delayed_physnames): Constify.
3454 (dwarf2_add_member_fn): Likewise.
3455 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3457 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3459 * infrun.c (resume): Mention which is the current thread, and its
3460 current PC in debug output.
3461 (prepare_to_proceed): Mention the thread switching in debug
3464 2011-05-18 Tom Tromey <tromey@redhat.com>
3466 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3467 path check. Use xmalloc and cleanups.
3468 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3470 2011-05-17 Tom Tromey <tromey@redhat.com>
3472 * cp-valprint.c (cp_print_value_fields): Catch errors from
3475 2011-05-17 Tom Tromey <tromey@redhat.com>
3477 * dwarf2read.c (dwarf2_get_die_type): Call
3478 get_die_type_at_offset.
3479 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3480 get_base_type function.
3482 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3484 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3487 2011-05-16 Doug Evans <dje@google.com>
3489 * python/py-auto-load.c (source_section_scripts): Mention objfile
3492 2011-05-15 Doug Evans <dje@google.com>
3494 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3495 (try_thread_db_load_from_pdir): Call it. If unable to find
3496 libthread_db in directory of libpthread, see if we're looking at
3497 the separate-debug-info copy.
3499 * python/py-autoload.c (print_script): Print "Missing" instead of
3500 "No" for missing scripts.
3501 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3503 2011-05-13 Doug Evans <dje@google.com>
3505 * ui-file.c (stdio_file_write_async_safe): Add comment.
3507 2011-05-14 Hui Zhu <teawater@gmail.com>
3509 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3511 2011-05-13 Doug Evans <dje@google.com>
3513 Support $pdir and $sdir in libthread-db-search-path.
3514 * NEWS: Mention $sdir,$pdir.
3515 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3516 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3517 (try_thread_db_load_from_sdir): New function.
3518 (try_thread_db_load_from_dir): New function.
3519 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3520 system directories if search of libthread-db-search-path fails,
3521 that is now done via $sdir.
3522 (has_libpthread): New function.
3523 (thread_db_load): Remove search for libthread_db in directory of
3524 libpthread, that is now done via $pdir.
3526 * NEWS: Mention "info auto-load-scripts".
3527 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3528 script_not_found_warning_printed.
3529 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3530 all callers updated. Initialize script_not_found_warning_printed.
3531 (get_auto_load_pspace_data_for_loading): New function.
3532 (maybe_add_script): New function.
3533 (source_section_scripts): Simplify. Only print one warning regardless
3534 of the number of auto-load scripts not found.
3535 (clear_section_scripts): Clear script_not_found_warning_printed.
3536 (auto_load_objfile_script): Record script in hash table.
3537 (count_matching_scripts): New function.
3538 (maybe_print_script): Renamed from maybe_print_section_script, all
3539 callers updated. Rewrite to use ui_out_*.
3540 (info_auto_load_scripts): Renamed from
3541 maintenance_print_section_scripts, all callers updated.
3542 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3543 renamed as "info auto-load-scripts".
3545 2011-05-13 Tom Tromey <tromey@redhat.com>
3547 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3548 (read_sleb128): Likewise.
3550 2011-05-13 Tom Tromey <tromey@redhat.com>
3552 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3555 2011-05-13 Doug Evans <dje@google.com>
3557 * linux-nat.c (debug_linux_nat_async): Delete.
3558 Replace all references to use debug_linux_nat instead.
3559 (show_debug_linux_nat_async): Delete.
3560 (sigchld_handler): Call ui_file_write_async_safe instead of
3562 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3563 * ui-file.c (struct ui_file): New member to_write_async_safe.
3564 (null_file_write_async_safe): New function.
3565 (ui_file_write_async_safe): New function.
3566 (set_ui_file_write_async_safe): New function.
3567 (ui_file_new): Initialize to_write_async_safe.
3568 (stdio_file_write_async_safe): New function.
3569 (struct stdio_file): New member fd.
3570 (stdio_file_new): Initialize to_write_async_safe, fd.
3571 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3573 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3574 (set_ui_file_write_async_safe): Declare.
3575 (ui_file_write_async_safe): Declare.
3577 2011-05-13 Tom Tromey <tromey@redhat.com>
3579 * utils.c (do_value_free): New function.
3580 (make_cleanup_value_free): Likewise.
3581 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3583 (dwarf2_loc_desc_needs_frame): Call
3584 make_cleanup_value_free_to_mark.
3585 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3586 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3588 (new_dwarf_expr_context): Don't call value_mark.
3589 * dwarf2-frame.c (execute_stack_op): Call
3590 make_cleanup_value_free_to_mark.
3591 * defs.h (make_cleanup_value_free): Declare.
3593 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3595 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3596 prepare_execute_command.
3597 * top.c (prepare_execute_command): Return cleanup.
3598 (execute_command): Use cleanup from prepare_execute_command.
3599 * top.h (prepare_execute_command): Change prototype to return
3601 * defs.h (struct value): Add opaque declaration.
3602 (make_cleanup_value_free_to_mark): Add prototype.
3603 * utils.c (do_value_free_to_mark): New function.
3604 (make_cleanup_value_free_to_mark): Likewise.
3606 2011-05-12 Tom Tromey <tromey@redhat.com>
3608 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3609 cast left-hand-side to unsigned.
3611 2011-05-12 Tom Tromey <tromey@redhat.com>
3614 * value.h (value_from_contents): Declare.
3615 * value.c (value_from_contents): New function.
3616 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3617 (dwarf2_get_die_type): New function.
3618 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3619 (allocate_piece_closure): Acquire reference to values.
3620 (read_pieced_value): Update for value-based expressions.
3621 (write_pieced_value): Likewise.
3622 (free_pieced_value_closure): Call value_free as needed.
3623 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3624 Update for value-based expressions.
3625 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3626 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3627 <get_base_type>: New field.
3628 (struct dwarf_expr_piece) <v.value>: Change type.
3629 <v.regno>: New field.
3630 (struct dwarf_expr_context) <mark>: New field.
3631 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3632 (dwarf_expr_pop, dwarf_expr_push): Remove.
3633 (dwarf_expr_push_address): Declare.
3634 * dwarf2expr.c (dwarf_arch_cookie): New global.
3635 (struct dwarf_gdbarch_types): New.
3636 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3638 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3640 (dwarf_expr_push_address): New function.
3641 (dwarf_expr_pop): Now static.
3642 (dwarf_expr_fetch): Change return type.
3643 (dwarf_require_integral): New function.
3644 (dwarf_expr_fetch): Simplify.
3645 (add_piece): Update.
3646 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3648 (execute_stack_op) <sign_ext>: Remove.
3649 Use values for DWARF stack.
3650 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3651 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3653 (_initialize_dwarf2expr): New function.
3654 (add_piece): Update.
3655 (new_dwarf_expr_context): Set new field.
3656 (free_dwarf_expr_context): Call value_free_to_mark.
3657 * dwarf2-frame.c (no_base_type): New function.
3658 (execute_stack_op): Set get_base_type field. Update.
3660 2011-05-12 Tom Tromey <tromey@redhat.com>
3662 * dwarf2read.c (read_common_block): Fix formatting.
3664 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3666 * breakpoint.c (disable_breakpoint): Disable all locations
3667 associated with a tracepoint on target if a trace experiment is
3669 (disable_command): Disable a specific tracepoint location on target if
3670 a trace experiment is running.
3671 (do_enable_breakpoint): Enable all locations associated with a
3672 tracepoint on target if a trace experiment is running.
3673 (enable_command) Enable a specific tracepoint location on target if a
3674 trace experiment is running.
3675 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3676 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3677 to_disable_tracepoint.
3678 * target.h: Add declaration of struct bp_location.
3679 (struct target_ops): Add new functions
3680 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3681 to_disable_tracepoint to target operations.
3682 (target_supports_enable_disable_tracepoint): New macro.
3683 (target_enable_tracepoint): New macro.
3684 (target_disable_tracepoint): New macro.
3685 * remote.c (struct remote_state): Add new field.
3686 (remote_enable_disable_tracepoint_feature): New.
3687 (remote_protocol_features): Add new entry.
3688 (remote_supports_enable_disable_tracepoint): New.
3689 (remote_enable_tracepoint): New.
3690 (remote_disable_tracepoint): New.
3691 (init_remote_ops): Add remote_enable_tracepoint,
3692 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3693 to remote operations.
3694 * tracepoint.c (start_tracing): Allow tracing to start without any
3695 tracepoints enabled with just a warning if they can be re-enabled
3697 * NEWS: Add news item for the new behaviour of the enable and disable
3698 GDB commands when applied to tracepoints.
3699 Add news items for the new remote packets QTEnable and QTDisable.
3701 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 * config.in: Regenerate.
3704 * configure: Regenerate.
3705 * configure.ac <--with-system-readline> (for readline_echoing_p):
3707 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3708 (tui_old_rl_echoing_p): ... here.
3709 (tui_setup_io): Rename extern declaration readline_echoing_p to
3710 _rl_echoing_p. Adjust assignments for the both renames.
3712 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3714 * symtab.c (lookup_symtab): Run cleanup before returning.
3716 2011-05-11 Tom Tromey <tromey@redhat.com>
3718 * dwarf2read.c (handle_data_member_location): New function.
3719 (dwarf2_add_field): Use it.
3720 (read_common_block): Likewise.
3722 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3724 Make addrs->SECTINDEX always defined.
3725 * symfile.c (relative_addr_info_to_section_offsets): Check for
3726 SECTINDEX -1, not for zero ADDR.
3727 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3728 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3729 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3732 2011-05-10 Doug Evans <dje@google.com>
3734 * linux-thread-db.c: Whitespace cleanup.
3735 (try_thread_db_load_1): Fix comment.
3737 * linux-thread-db.c (set_libthread_db_search_path): New function.
3738 (_initialize_thread_db): Add setter for libthread-db-search-path.
3740 2011-05-09 Doug Evans <dje@google.com>
3742 * NEWS: Mention --with-iconv-bin.
3743 * configure.ac: New option --with-iconv-bin.
3744 * configure: Regenerate.
3745 * config.in: Regenerate.
3746 * defs.h (relocate_gdb_directory): Declare.
3747 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3748 removed progname parameter, and exported. All callers updated.
3749 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3751 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3752 adding missing call to restore_child_signals_mask.
3754 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3756 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3758 * infrun.c (proceed, start_remote): Adjust.
3759 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3760 and adjust to not handle it.
3761 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3762 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3763 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3764 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3765 * windows-nat.c (do_initial_windows_stuff): Adjust.
3766 * infcmd.c (attach_command): Adjust.
3767 (notice_new_inferior): Adjust.
3769 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3771 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3772 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3773 * spu-tdep.c (op_selb): Use correct value.
3775 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3777 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3778 "parent" parameter to symbol_file_add_from_bfd call.
3780 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3781 Thiago Jung Bauermann <bauerman@br.ibm.com>
3783 Implement support for PowerPC BookE masked watchpoints.
3784 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3786 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3787 method. Initialize to NULL in all existing breakpoint_ops instances.
3788 (struct breakpoint) <hw_wp_mask>: New field.
3789 * breakpoint.c (is_masked_watchpoint): Add prototype.
3790 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3791 breakpoint's breakpoint_ops.works_in_software_mode if available.
3792 (watchpoints_triggered): Handle the case of a hardware masked
3794 (watchpoint_check): Likewise.
3795 (works_in_software_mode_watchpoint): New function.
3796 (insert_masked_watchpoint, remove_masked_watchpoint)
3797 (resources_needed_masked_watchpoint)
3798 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3799 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3800 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3802 (masked_watchpoint_breakpoint_ops): New structure.
3803 (watch_command_1): Check for the existence of the `mask' parameter.
3804 Set b->ops according to the type of hardware watchpoint being created.
3805 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3806 (ppc_linux_remove_mask_watchpoint)
3807 (ppc_linux_masked_watch_num_registers): New functions.
3808 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3809 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3810 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3811 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3812 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3813 (target_masked_watch_num_registers): New functions.
3814 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3815 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3817 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3818 (target_masked_watch_num_registers): Add prototypes.
3820 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3823 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3824 (producer_is_gcc_ge_4_0): New function.
3825 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3826 symtab->language code.
3827 (var_decode_location): Set cu->has_loclist.
3828 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3829 skip. Intialize force_skip from locations_valid. Move the prologue
3830 skipping code into two passes.
3831 * symtab.h (struct symtab): Make the primary field a bitfield. New
3832 field locations_valid.
3834 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3836 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3837 (classify_inner_name): Call cp_lookup_nested_type with
3839 * cp-namespace.c (cp_lookup_nested_type): New variable
3840 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3841 type_name_no_tag_or_error with saved_parent_type.
3842 * dwarf2read.c (load_partial_dies): Read in any children of
3843 DW_TAG_typedef with complaint in such case.
3844 * gdbtypes.c (type_name_no_tag_or_error): New function.
3845 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3846 * valops.c (destructor_name_p): New comment for parameter type. Remove
3847 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3848 * value.h (destructor_name_p): Remove type const.
3850 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3852 * symtab.c (compare_symbol_name): New function.
3853 (completion_list_add_name, expand_partial_symbol_name): Call it,
3854 remove the variable ncmp.
3855 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3858 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3860 Demote to sw watchpoint only in update_watchpoint.
3861 * breakpoint.c (update_watchpoint): Change between software and
3862 hardware watchpoint for all kinds of watchpoints, not just
3863 read/write ones. Determine b->exact value here instead of
3864 in watch_command_1. Error out if there are not enough resources
3865 for a read or access hardware watchpoint.
3866 (watch_command_1): Remove logic of checking whether there are
3867 enough resources available, since update_watchpoint will do that
3868 work now. Don't set b->exact here. Catch exceptions thrown by
3869 update_watchpoint and delete the watchpoint.
3870 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3871 Use target_exact_watchpoints instead.
3872 (delete_breakpoint): Notify observers only if deleted watchpoint
3873 has a breakpoint number assigned to it.
3875 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3877 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3879 2011-05-05 Jerome Guitton <guitton@adacore.com>
3881 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3883 (i386_stack_tramp_frame_unwind): New static global.
3884 (i386_match_pattern): New function, extracted from i386_match_insn.
3885 (i386_match_insn): Use i386_match_pattern.
3886 (i386_match_insn_block): New function.
3887 (i386_tramp_chain_in_reg_insns)
3888 (i386_tramp_chain_on_stack_insns): New static variables.
3889 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3892 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3894 * configure.host (xscale*): Don't handle target.
3895 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3898 2011-05-04 Yao Qi <yao@codesourcery.com>
3900 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3902 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3905 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3906 | * elfread.c (elf_symtab_read): Stop memory leak.
3908 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3910 * nto-tdep.c (nto_target): Replace deprecated call to
3911 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3913 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3915 Fix false GCC warning.
3916 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3918 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3920 * breakpoint.c (update_watchpoint): Move code to change
3921 the enable state of breakpoint from here ...
3922 (do_enable_breakpoint): ... to here.
3924 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3926 * valprint.c (val_print_array_elements): Fixed poor performance
3927 of printing very large arrays with repeat_count_threshold set
3928 to unlimited. New comment.
3930 2011-04-29 Tom Tromey <tromey@redhat.com>
3932 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3933 (mi_parse): Likewise.
3934 * breakpoint.c (break_range_command): Use sizeof char*, not
3936 (create_breakpoint): Likewise.
3937 (parse_breakpoint_sals): Likewise.
3939 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3941 * linux-nat.c (linux_child_remove_fork_catchpoint)
3942 (linux_child_remove_vfork_catchpoint)
3943 (linux_child_remove_exec_catchpoint): New functions.
3944 (linux_target_install_ops): Install them.
3946 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3950 * varobj.c (install_default_visualizer): Do not install a
3951 visualizer if the varobj is CPLUS_FAKE_CHILD.
3952 (construct_visualizer): Likewise.
3954 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3956 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3957 case insensitive comparison.
3959 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3961 * infrun.c (proceed): Revert previous change.
3962 (resume): Instead, handle the case of signal delivery while stepping
3963 off a breakpoint location here, and only if software single-stepping
3964 is used. Handle nested signals.
3966 2011-04-28 Yao Qi <yao@codesourcery.com>
3968 * arm-tdep.c (copy_unmodified): Rename to ...
3969 (arm_copy_unmodified): .. this. New.
3970 (copy_preload): Move common part to ...
3971 (install_preload): .. this. New.
3972 (arm_copy_preload): New.
3973 (copy_preload_reg): Move common part to ...
3974 (install_preload_reg): ... this. New.
3975 (arm_copy_preload_reg): New.
3976 (copy_b_bl_blx): Move common part to ...
3977 (install_b_bl_blx): .. this. New.
3978 (arm_copy_b_bl_blx): New.
3979 (copy_bx_blx_reg): Move common part to ...
3980 (install_bx_blx_reg): ... this. New.
3981 (arm_copy_bx_blx_reg): New.
3982 (copy_alu_reg): Move common part to ...
3983 (install_alu_reg): ... this. New.
3984 (arm_copy_alu_reg): New.
3985 (copy_alu_shifted_reg): Move common part to ...
3986 (install_alu_shifted_reg): ... this. New.
3987 (copy_ldr_str_ldrb_strb): Move common part to ...
3988 (install_ldr_str_ldrb_strb): ... this. New.
3989 (arm_copy_ldr_str_ldrb_strb): New.
3990 (copy_copro_load_store): Move some common part to ...
3991 (install_copy_copro_load_store): ... this. New.
3992 (arm_copy_copro_load_store): New.
3994 (arm_copy_svc): Renamed from copy_svc.
3995 (copy_undef): Delete.
3996 (arm_copy_undef): Renamed from copy_undef.
3997 (decode_ext_reg_ld_st): Delete.
3998 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3999 (decode_svc_copro): Delete.
4000 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4001 (copy_copro_load_store, copy_alu_imm): update callers.
4002 (copy_extra_ld_st, copy_block_xfer): Likewise.
4003 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4004 (decode_miscellaneous, decode_dp_misc): Likewise.
4005 (decode_ld_st_word_ubyte, decode_media): Likewise.
4006 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4007 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4008 (decode_unconditional, decode_miscellaneous): Likewise.
4009 (decode_media, decode_b_bl_ldmstm): Likewise.
4010 (arm_process_displaced_insn): Likewise..
4011 (decode_misc_memhint_neon): Delete.
4012 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4013 (decode_miscellaneous): Delete.
4014 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4015 (decode_dp_misc): Delete.
4016 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4017 (decode_ld_st_word_ubyte): Delete.
4018 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4019 (decode_media): Delete.
4020 (arm_decode_media): Renamed from decode_media.
4021 (decode_b_bl_ldmstm): Delete.
4022 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4023 (decode_ext_reg_ld_st): Delete.
4024 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4025 (decode_unconditional): Delete.
4026 (arm_decode_unconditional): Renamed from decode_unconditional.
4028 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4030 Case insensitive lookups implementation.
4031 * dwarf2read.c: Include ctype.h.
4032 (struct mapped_index): New field version.
4033 (mapped_index_string_hash): New parameter index_version. New comment
4034 for it. Call tolower appropriately.
4035 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4036 Choose the right index version for mapped_index_string_hash.
4037 (dwarf2_read_index): Support also the index version 5. Initialize the
4038 new struct mapped_index field version.
4039 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4040 (find_slot): Explain the version needs. Pass INT_MAX for the new
4042 (write_psymtabs_to_index): Produce version 5.
4043 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4044 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4045 * psymtab.c (lookup_partial_symbol): Find the
4046 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4048 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4050 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4051 (completion_list_add_name): New variable ncmp, initialize it, use it.
4052 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4053 * utils.c (strcmp_iw): Support case_sensitive_off.
4054 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4055 New function comment part. New variables saved_string1,
4056 saved_string2 and case_pass. Add a proper second pass.
4058 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 Replace re_comp/re_exec by regcomp/regexec.
4061 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4062 (search_symbols_name_matches): Use them, use regexec.
4063 (search_symbols): New variable retval_chain, adjust the use of
4064 old_chain against it. Replace re_comp by regcomp. Use the new struct
4065 search_symbols_data fields, use regexec instead of re_exec.
4067 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4069 Format the code for the next patch.
4070 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4071 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4072 New variables c1 and c2.
4074 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4076 * infrun.c (proceed): Do not single-step into signal delivery
4077 when stepping off a breakpoint location.
4078 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4079 (insert_step_resume_breakpoint_at_caller): Likewise.
4080 (insert_step_resume_breakpoint_at_sal): Likewise.
4081 (insert_longjmp_resume_breakpoint): Likewise.
4083 2011-04-27 Yao Qi <yao@codesourcery.com>
4085 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4087 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4089 * procfs.c (procfs_pass_signals): Fix advance declaration.
4091 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4093 * target.h (struct target_ops): Remove to_notice_signals;
4094 add to_pass_signals.
4095 (target_notice_signals): Remove.
4096 (target_pass_signals): Add prototype.
4097 * target.c (update_current_target): Remove to_notice_signals;
4098 mention to_pass_signals.
4099 (target_pass_signals): New function.
4100 (debug_to_notice_signals): Remove.
4101 (setup_target_debug): Do not install debug_to_notice_signals.
4103 * infrun.c (signal_pass): New global.
4104 (resume): Call target_pass_signals.
4105 (handle_inferior_event): Report all signals while stepping over
4106 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4107 are re-inserted when stepping over a signal handler.
4108 (signal_cache_update): New function.
4109 (signal_stop_update): Call it.
4110 (signal_print_update): Likewise.
4111 (signal_pass_update): Likewise.
4112 (handle_command): Call signal_cache_update and target_pass_signals
4113 instead of target_notice_signals.
4114 (_initialize_infrun): Initialize signal_pass.
4116 * linux-nat.c (pass_mask): New global.
4117 (linux_nat_pass_signals): New function.
4118 (linux_nat_create_inferior): Report all signals initially.
4119 (linux_nat_attach): Likewise.
4120 (linux_nat_resume): Use pass_mask to decide whether to directly
4121 handle an inferior signal.
4122 (linux_nat_wait_1): Likewise.
4123 (linux_nat_add_target): Install to_pass_signals callback.
4125 * nto-procfs.c (notice_signals): Remove.
4126 (procfs_resume): Do not call notice_signals.
4127 (procfs_notice_signals): Remove.
4128 (procfs_pass_signals): New function.
4129 (init_procfs_ops): Install to_pass_signals callback instead of
4130 to_notice_signals callback.
4131 (_initialize_procfs): Report all signals initially.
4133 * procfs.c (procfs_notice_signals): Remove.
4134 (procfs_pass_signals): New function.
4135 (procfs_target): Install to_pass_signals callback instead of
4136 to_notice_signals callback.
4137 (register_gdb_signals): Remove.
4138 (procfs_debug_inferior): Report all signals initially.
4139 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4141 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4142 parameters; use them instead of calling signal_..._state routines.
4143 (remote_notice_signals): Remove.
4144 (remote_start_remote): Report all signals initially.
4145 (remote_resume): Do not call remote_pass_signals.
4146 (_initialize_remote): Install to_pass_signals callback instead of
4147 to_notice_signals callback.
4149 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4151 * breakpoint.c (user_settable_breakpoint): Delete.
4152 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4153 (delete_command): Check user_breakpoint_p instead of looking at
4154 the breakpoint's type.
4155 (disable_command): Ditto.
4156 (enable_command): Ditto.
4157 (delete_trace_command): Use user_breakpoint_p instead of looking
4158 at the breakpoint number directly. When checking if there are
4159 user visible tracepoints, in order to know whether to ask the user
4160 for confirmation, check whether the breakpoint is actually a
4163 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4165 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4168 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4170 MI breakpoint notifications.
4172 * annotate.c (breakpoint_changed): Adjust parameter type.
4173 * breakpoint.c (set_breakpoint_condition): Adjust to change
4174 in breakpoint_modified type.
4175 (breakpoint_set_commands): Likewise.
4176 (do_map_commands_command): Likewise.
4177 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4178 changed after bumping hit count.
4179 (bpstat_stop_status): Likewise.
4180 (print_one_breakpoint_location): Don't wrap in tuple here.
4181 (print_one_breakpoint): Always print individual locations.
4182 For locations, use unnamed tuple.
4183 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4185 (create_catchpoint, create_syscall_event_catchpoint): Call
4186 breakpoint_created obsever.
4187 (mention): Don't call breakpoint_created observer.
4188 (create_breakpoint_sal): Call breakpoint_created observer.
4189 (create_breakpoint, watch_command_1): Likewise.
4190 (create_ada_exception_breakpoint): Likewise.
4191 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4192 (locations_are_equal): New.
4193 (update_breakpoint_locations): If locations were changed, notify.
4194 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4195 Call breakpoint_modified observer.
4197 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4198 (mi_cmd_break_insert): Don't set observers for modify and delete.
4199 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4200 (mi_breakpoint_created, mi_breakpoint_deleted)
4201 (mi_breakpoint_modified): New.
4202 (mi_interpreter_init): Hook the above.
4203 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4204 while -break-* commands are executing.
4205 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4206 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4208 (mi_ui_out_impl): Hook in mi_redirect.
4209 (mi_field_skip): True to the name, skip the field, don't output
4210 a field with an empty value.
4212 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4213 (gdbpy_breakpoint_deleted): Adjust.
4214 * tui/tui-hooks.c (tui_event_create_breakpoint)
4215 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4217 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4219 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4220 (procfs_remove_hw_watchpoint): Likewise.
4222 2011-04-26 Michael Walle <michael@walle.cc>
4224 * remote.c (remote_start_remote): Ack packet after sending the
4227 2011-04-26 Yao Qi <yao@codesourcery.com>
4229 * linux-nat.c: Move common macros to ...
4230 Include linux-ptrace.h.
4231 * common/linux-ptrace.h: ... here. New.
4233 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4235 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4236 !objfile_has_partial_symbols. New comment.
4237 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4238 SYM_READ_PSYMBOLS is not present. Extend the comment.
4239 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4241 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4243 * defs.h (ENUM_BITFIELD): Remove.
4245 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4246 Eli Zaretskii <eliz@gnu.org>
4248 * NEWS: Document the new gdbserver --once option.
4250 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4252 * MAINTAINERS: Update my email address.
4254 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4256 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4257 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4258 function call if __STDC_ISO_10646__ macro is defined.
4259 (intermediate_encoding): New prototype.
4260 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4261 to generate compile time error for unsupported gdb_wchar_t size.
4262 (ENDIAN_SUFFIX): New macro.
4263 (intermediate_encoding): New function.
4265 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4267 * ada-lang.c (struct add_partial_datum): Update the comment for
4268 expand_partial_symbol_name.
4269 (ada_add_partial_symbol_completions): Rename to ...
4270 (ada_expand_partial_symbol_name): ... here, change return type, update
4271 function comment, call symbol_completion_match instead of
4272 symbol_completion_add.
4273 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4274 and ada_expand_partial_symbol_name.
4275 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4277 (dw2_map_symbol_names): Remove.
4278 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4279 * psymtab.c (map_symbol_names_psymtab): Remove.
4280 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4281 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4283 (psym_functions): Unlist map_symbol_names_psymtab.
4284 (map_partial_symbol_names): Rename to ...
4285 (expand_partial_symbol_names): ... here, change the FUN type, call
4286 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4287 * psymtab.h (map_partial_symbol_names): Rename to ...
4288 (expand_partial_symbol_names): ... here, change the FUN type.
4289 * symfile.h (struct quick_symbol_functions): Update the description of
4290 expand_symtabs_matching. Remove map_symbol_names.
4291 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4292 (struct add_name_data): Update the comment for
4293 expand_partial_symbol_name.
4294 (add_partial_symbol_name): Rename to ...
4295 (expand_partial_symbol_name): ... here. Replace
4296 completion_list_add_name call by strncmp.
4297 (default_make_symbol_completion_list_break_on): Use now
4298 expand_partial_symbol_names and expand_partial_symbol_name.
4299 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4301 2011-04-20 Tom Tromey <tromey@redhat.com>
4303 * dwarf2read.c (save_gdb_index_command): Replace format
4304 documentation with a pointer to the manual.
4306 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4308 * regcache.c: Include remote.h.
4309 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4310 (regcache_dump): Handle regcache_dump_remote.
4311 (maintenance_print_remote_registers): New function.
4312 (_initialize_regcache): Install "maint print remote-registers"
4314 * remote.c (map_regcache_remote_table): New function, factored out
4316 (init_remote_state): ... here.
4317 (remote_register_number_and_offset): New.
4318 * remote.h (remote_register_number_and_offset): Declare.
4320 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4322 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4323 null_ptid, assume and allow a NULL address space, instead of
4324 asking the target for the ptid's address space.
4325 * infrun.c (ptid_is_pid): Remove assertion.
4327 2011-04-19 Tom Tromey <tromey@redhat.com>
4329 * windows-tdep.c (windows_xfer_shared_library):
4330 * windows-nat.c (get_module_name, windows_make_so):
4331 * v850-tdep.c (v850_handle_pushm):
4332 * utils.c (null_cleanup, gdb_realpath):
4333 * ui-out.c (get_next_header):
4334 * tracepoint.c (clear_traceframe_info):
4335 * symtab.c (lookup_symtab):
4336 * serial.h (struct serial_ops):
4337 * mipsread.c (read_alphacoff_dynamic_symtab):
4338 * infcmd.c (print_return_value):
4339 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4340 * f-exp.y (parse_number):
4341 * exceptions.c (catch_exceptions):
4342 * dummy-frame.c (dummy_frame_this_id):
4343 * defs.h (struct cleanup):
4344 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4345 * arm-tdep.c (arm_push_dummy_call):
4346 * amd64-tdep.h (amd64_collect_xsave):
4347 * amd64-tdep.c (amd64_collect_xsave):
4348 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4349 * README (typing): Remove duplicate words.
4350 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4351 * infrun.c (siginfo_value_read): Fix typo.
4352 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4353 * top.c (source_line_number): Add comma.
4355 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4357 * thread.c (any_live_thread_of_process): Prioritize threads
4358 that are not executing.
4359 * gdbthread.h (any_live_thread_of_process): Update comment
4360 as per above change.
4362 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4364 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4365 (scan_xcoff_symtab): Likewise.
4367 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4369 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4372 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4373 Pedro Alves <pedro@codesourcery.com>
4375 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4376 variables to simplify code and avoid == operator at end of
4377 line as this is against GNU coding standards.
4379 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4381 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4382 lm_name to name_lm to avoid conflict with lm_name function.
4384 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4386 ARI fixes: Use only lowercase function name for static functions.
4387 * nto-tdep.c (LM_ADDR): Rename to...
4388 (lm_addr): New function name.
4389 (nto_relocate_section_addresses): Adapt to change above.
4390 * solib-sunos.c (LM_ADDR): Rename to...
4391 (lm_addr): New function name.
4392 (LM_NEXT): Rename to...
4393 (lm_next): New function name.
4394 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4395 function name changes above.
4396 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4397 (lm_addr_from_link_map): New function name.
4398 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4399 (has_lm_dynamic_from_link_map): New function name.
4400 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4401 (lm_dynamic_from_link_map): New function name.
4402 (LM_ADDR_CHECK): Rename to...
4403 (lm_addr_check): New function name.
4404 (LM_NEXT): Rename to...
4405 (lm_next): New function name.
4406 (LM_PREV): Rename to...
4407 (lm_prev): New function name.
4408 (LM_NAME): Rename to...
4409 (lm_name): New function name.
4410 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4411 (ignore_first_link_map_entry): New function name.
4412 (svr4_keep_data_in_core): Adapt to function name changes above.
4413 (svr4_current_sos): Likewise.
4414 (enable_break): Likewise.
4415 (svr4_relocate_section_addresses): Likewise.
4417 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4420 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4421 sprintf. Simplify code and avoid loosing memory.
4422 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4423 (call0_frame_cache): Remove && operator from end of line.
4425 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4427 Fix libraries displacement if they change whether they were prelinked.
4428 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4429 does not match. Comment why.
4431 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4433 * corelow.c: Include wrapper.h.
4434 (core_open): Call now gdb_target_find_new_threads.
4435 * wrapper.c: Include target.h.
4436 (gdb_target_find_new_threads): New.
4437 * wrapper.h (gdb_target_find_new_threads): New declaration.
4439 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4441 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4442 even if !TARGET_HAS_EXECUTION.
4444 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4446 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4447 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4448 bfd_get_synthetic_symtab.
4449 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4450 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4451 parameter parent, remove the call to add_separate_debug_objfile.
4452 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4453 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4454 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4455 parent, new comment for it, call add_separate_debug_objfile for it.
4456 (symbol_file_add_separate): Pass objfile as the parameter parent,
4457 remove the call to add_separate_debug_objfile.
4458 (symbol_file_add_from_bfd): New parameter parent, pass it.
4459 (symbol_file_add): Pass NULL to the new parameter parent.
4460 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4462 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4467 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4469 Fix Python access to inlined frames.
4470 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4471 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4473 2011-04-15 Tom Tromey <tromey@redhat.com>
4475 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4477 2011-04-15 Gary Benson <gbenson@redhat.com>
4479 * MAINTAINERS: Add myself to write-after-approval section.
4481 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4483 * remote-sim.c (sim_command_completer): New function.
4484 (_initialize_remote_sim): Set completer to sim_command_completer.
4486 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4488 * breakpoint.c (print_exception_catchpoint): Rename to ...
4489 (print_it_exception_catchpoint): ... this.
4490 (gnu_v3_exception_catchpoint_ops): Update with new name
4491 for print_it_exception_catchpoint.
4493 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4495 * MAINTAINERS: Add myself for write after approval privileges.
4497 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4499 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4501 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4503 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4505 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4507 * breakpoint.c (save_breakpoints): Verify whether
4508 breakpoint_ops.print_recreate is defined before calling it.
4510 2011-04-11 Gary Benson <gbenson@redhat.com>
4512 Fix failure with --enable-maintainer-mode.
4513 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4515 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4518 * symtab.c (search_symbols): Reorder the KIND description in the
4519 function comment. Remove the unused 4th element of types, types2,
4520 types3 and types4. New gdb_assert on KIND.
4521 (symtab_symbol_info): Remove the unused 4th element of classnames.
4522 New gdb_assert on KIND.
4523 * symtab.h (enum search_domain): New warning in the enum comment.
4524 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4527 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4529 Fix crash of gdb save-index on a STABS file.
4530 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4533 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4535 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4536 * dwarf2read.c: Include ctype.h.
4537 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4539 (dwarf2_add_field): Fix new_field->accessibility by calling
4540 dwarf2_default_access_attribute. Restructure setting accessibility
4542 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4543 is_private and is_protected by calling
4544 dwarf2_default_access_attribute.
4546 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4548 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4549 to the initialization.
4551 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4553 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4556 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4558 Remove support for old Cygwin 1.5 versions.
4559 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4560 function on old Cygwin version.
4561 * windows-nat.c: Remove cygwin version check and always define
4562 __USEWIDE for Cygwin compilation.
4564 2011-04-07 Yao Qi <yao@codesourcery.com>
4566 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4568 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4569 (arm_copy_svc): Remove parameters INSN and TO.
4570 (decode_svc_copro): Update caller.
4571 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4572 from function pointer `copy_svc_os'.
4574 2011-04-07 Yao Qi <yao@codesourcery.com>
4576 * arm-tdep.c (cleanup_branch): Set a correct return address in
4577 LR for ARM and Thumb.
4579 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4582 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4583 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4584 in the function comment, a new note on values compatibility.
4585 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4586 * symtab.h (SYMBOL_HASH_NEXT): New.
4588 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4590 * ppc-linux-nat.c (check_condition): Add len output parameter.
4591 Set it based on the memory region referenced in the condition
4592 expression. Update all callers.
4594 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4596 Fix crash regression on systems featuring .gdb_index.
4597 * objfiles.c (free_objfile): Move the
4598 forget_cached_source_info_for_objfile call earlier. Comment it.
4599 Extend the comment for objfile_free_data.
4601 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4603 Fix regression of displaying the debug format.
4604 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4607 2011-04-04 Tom Tromey <tromey@redhat.com>
4609 * cli/cli-interp.c (struct captured_execute_command_args):
4611 (do_captured_execute_command): Remove.
4612 (safe_execute_command): Use TRY_CATCH.
4613 * cli/cli-script.c (struct wrapped_read_command_file_args):
4615 (wrapped_read_command_file): Remove.
4616 (script_from_file): Use TRY_CATCH.
4617 * exceptions.c (catch_exception): Remove.
4618 * exceptions.h (catch_exception): Remove.
4619 (deprecated_throw_reason): Update comment.
4620 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4621 argument to 'context'.
4622 (mi_execute_command): Use TRY_CATCH.
4623 * remote.c (struct start_remote_args): Remove.
4624 (remote_start_remote): Update; change arguments.
4625 (remote_open_1): Use TRY_CATCH.
4627 2011-04-04 Tom Tromey <tromey@redhat.com>
4629 * tracepoint.c (scope_info): Update.
4630 * symtab.c (decode_line_spec): Update.
4631 * python/python.c (gdbpy_decode_line): Update.
4632 * linespec.h (decode_line_1): Update.
4633 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4634 (decode_compound, find_method, symtab_from_filename)
4635 (decode_variable): Likewise.
4636 * cli/cli-cmds.c (edit_command): Update.
4637 (list_command): Update.
4638 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4640 (create_breakpoint): Update.
4641 (until_break_command): Update.
4642 (addr_string_to_sals): Update.
4643 (decode_line_spec_1): Update.
4645 2011-04-04 Tom Tromey <tromey@redhat.com>
4647 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4648 (do_captured_parse_breakpoint): Remove.
4649 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4650 Use TRY_CATCH directly.
4652 2011-04-04 Tom Tromey <tromey@redhat.com>
4654 * symtab.h (free_symtab): Remove.
4655 (forget_cached_source_info_for_objfile): Declare.
4656 * symmisc.c (free_symtab): Remove.
4657 * source.c (forget_cached_source_info_for_objfile): New function.
4658 (forget_cached_source_info): Use it.
4659 * objfiles.c (free_objfile): Simplify check before calling
4660 clear_current_source_symtab_and_line. Call
4661 forget_cached_source_info_for_objfile.
4663 2011-04-04 Tom Tromey <tromey@redhat.com>
4665 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4666 (new_symtab): Don't set `free_code' on symtab.
4667 (new_linetable): Properly handle size==0.
4668 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4669 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4671 * jv-lang.c (struct jv_per_objfile_data): New.
4672 (jv_per_objfile_free): Free the data.
4673 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4674 (get_java_class_symtab): Set the `dict' field on the
4675 jv_per_objfile_data.
4676 (free_class_block): Remove.
4677 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4680 2011-04-04 Tom Tromey <tromey@redhat.com>
4682 * symfile.c (reread_symbols): Update.
4683 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4685 * objfiles.c (allocate_objfile): Update.
4686 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4688 * cp-namespace.c (lookup_symbol_file): Don't call
4689 lookup_possible_namespace_symbol.
4690 (initialize_namespace_symtab, get_possible_namespace_block)
4691 (free_namespace_block, cp_check_possible_namespace_symbols)
4692 (check_possible_namespace_symbols_loop)
4693 (check_one_possible_namespace_symbol)
4694 (lookup_possible_namespace_symbol): Remove.
4695 (maintenance_cplus_namespace): Replace with notice.
4696 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4698 2011-04-04 Tom Tromey <tromey@redhat.com>
4700 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4701 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4702 * symmisc.c (free_symtab): Don't free debugformat.
4703 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4704 (record_debugformat, record_producer): Document.
4705 * buildsym.c (end_symtab): Don't save debugformat and producer
4707 (end_symtab): Don't free debugformat and producer fields.
4708 (record_debugformat): Don't call xstrdup.
4709 (record_producer): Likewise.
4711 2011-04-04 Tom Tromey <tromey@redhat.com>
4713 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4714 (source_line_charpos, source_charpos_line): Remove.
4716 2011-04-04 Tom Tromey <tromey@redhat.com>
4718 * symtab.h (domain_enum): Split in two...
4719 (enum search_domain): New.
4720 (search_symbols): Update.
4721 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4722 redundant declarations.
4723 (search_symbols): Change 'kind' argument to search_domain.
4725 (print_symbol_info): Likewise.
4726 (symtab_symbol_info): Likewise.
4727 * symfile.h (struct quick_symbol_functions)
4728 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4729 <expand_symtabs_matching>: Likewise.
4730 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4731 (expand_symtabs_matching_via_partial): Update.
4732 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4733 (dw2_expand_symtabs_for_function): Update.
4734 * block.h: Moved anonymous enum...
4735 * defs.h (enum block_enum): ... here. Now named.
4737 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4739 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4740 * version.in: Bump version to 7.3.50.20110403-cvs.
4742 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4744 * NEWS: Create a new section for the next release branch.
4745 Rename the section of the current branch, now that it has
4748 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4750 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4751 for "fpscr" in target description.
4753 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4755 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4756 initialize it. Delay HASH initialization. Strip the part after open
4757 parenthesis for languages with qualifiers. Call do_cleanups.
4759 2011-04-01 Tom Tromey <tromey@redhat.com>
4761 * utils.c (report_command_stats): Don't print `-' for negative
4764 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4766 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4767 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4770 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4772 * breakpoint.h (bpdisp_text): Add declaration.
4773 * breakpoint.c (bpdisp_text): Make non-static.
4774 * ada-lang.c: #include "mi/mi-common.h".
4775 (print_it_exception): Rewrite to improve GDB/MI output.
4777 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4779 * arm-tdep.h (struct address_space): Add forward declaration.
4781 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4783 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4784 * arm-tdep.c (arm_override_mode): New global.
4785 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4786 execution mode heuristics.
4787 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4788 second single-step breakpoint if needed, using
4789 arm_insert_single_step_breakpoint.
4790 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4791 ARM execution mode, do not call thumb_get_next_pc_raw.
4792 (arm_get_next_pc): Encode execution mode in return value. Call
4793 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4794 (arm_insert_single_step_breakpoint): New function.
4795 (arm_software_single_step): Call it.
4796 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4797 argument to return execution mode of sigreturn target.
4798 (arm_linux_syscall_next_pc): Use it.
4799 (arm_linux_copy_svc): Update call.
4800 (arm_linux_software_single_step): Call
4801 arm_insert_single_step_breakpoint.
4803 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4805 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4808 2011-03-31 Tom Tromey <tromey@redhat.com>
4810 * varobj.c (update_dynamic_varobj_children): Properly handle
4811 errors from iterator.
4813 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4815 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4816 struct linkage name twice.
4818 2011-03-31 Tom Tromey <tromey@redhat.com>
4820 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4821 missing ">" to message.
4823 2011-03-31 Tom Tromey <tromey@redhat.com>
4825 * varobj.c (instantiate_pretty_printer): Remove duplicate
4828 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4830 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4831 if neither saved value nor register available (e.g. signal frame).
4833 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4835 * macroexp.c (expand): Avoid uninitialized variable
4838 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4840 * breakpoint.c (break_range_command): Fix typo in comment.
4842 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4843 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4845 Implement support for PowerPC BookE ranged breakpoints.
4846 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4847 * breakpoint.h (struct bp_target_info) <length>: New member
4849 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4850 instead of struct breakpoint as argument, and also add ASPACE
4851 and BP_ADDR arguments. Update all callers.
4852 (struct breakpoint_ops) <print_one_detail>: New method.
4853 (struct breakpoint) <addr_string_range_end>: New member variable.
4854 * breakpoint.c (breakpoint_location_address_match): Add function
4856 (insert_bp_location): Set bl->target_info.length.
4857 (breakpoint_here_p): Call breakpoint_location_address_match.
4858 (moribund_breakpoint_here_p): Likewise.
4859 (regular_breakpoint_inserted_here_p): Likewise.
4860 (breakpoint_thread_match): Likewise.
4861 (bpstat_stop_status): Likewise.
4862 (bpstat_check_location): Move call to
4863 breakpoint_ops.breakpoint_hit to the top.
4864 (print_one_breakpoint_location): Call
4865 breakpoint_ops.print_one_detail if available.
4866 (breakpoint_address_match_range): New function.
4867 (breakpoint_location_address_match): Likewise.
4868 (breakpoint_locations_match): Compare the length field of the
4870 (hw_breakpoint_used_count): Count resources used by all locations
4871 in a breakpoint, and use breakpoint_ops.resources_needed if
4873 (breakpoint_hit_ranged_breakpoint): New function.
4874 (resources_needed_ranged_breakpoint): Likewise.
4875 (print_it_ranged_breakpoint): Likewise.
4876 (print_one_ranged_breakpoint): Likewise.
4877 (print_one_detail_ranged_breakpoint): Likewise.
4878 (print_mention_ranged_breakpoint): Likewise.
4879 (print_recreate_ranged_breakpoint): Likewise.
4880 (ranged_breakpoint_ops): New structure.
4881 (find_breakpoint_range_end): New function.
4882 (break_range_command): Likewise.
4883 (delete_breakpoint): Free addr_string_range_end.
4884 (update_breakpoint_locations): Add SALS_END argument. Update
4885 all callers. Calculate breakpoint length if a non-zero SALS_END
4886 is given. Call breakpoint_locations_match instead of
4887 breakpoint_address_match.
4888 (reset_breakpoint): Find SaL of the end of the range if B is a
4890 (_initialize_breakpoint): Register break-range command.
4891 * defs.h (print_core_address): Add function prototype.
4892 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4894 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4895 (ppc_linux_remove_hw_breakpoint): Likewise.
4896 (_initialize_ppc_linux_nat): Initialize
4897 to_ranged_break_num_registers.
4898 * target.c (update_current_target): Add comment about
4899 to_ranged_break_num_registers.
4900 (target_ranged_break_num_registers): New function.
4901 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4903 (target_ranged_break_num_registers): Add function prototype.
4904 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4905 * utils.c (print_core_address): ... here.
4907 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4909 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4910 variable compiler warning.
4912 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4914 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4916 (re_set_breakpoint): ... to here ...
4917 (addr_string_to_sals): ... and here.
4919 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4921 * Makefile.in (SFILES): Add missing C sources.
4922 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4923 Add missing headers.
4925 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4927 * .gitignore: New file.
4929 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4931 * NEWS: Mention new cfi device simulation.
4933 2011-03-29 Tom Tromey <tromey@redhat.com>
4935 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4936 otherwise anonymous types.
4937 (dwarf2_name): Likewise.
4938 * valops.c (value_struct_elt_for_reference): Refine artificial
4939 type logic. Call error if j==-1.
4941 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4943 Fix false GCC warning.
4944 * infcall.c (find_function_addr): Initialize funaddr.
4946 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4948 Fix mingw compilation with --enable-targets=all.
4949 * remote-mips.c (gdb_usleep.h): Include header.
4950 (mips_enter_debug): Use gdb_usleep instead of sleep.
4952 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4954 Support resolution of STT_GNU_IFUNC via breakpoints.
4955 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4956 bp_gnu_ifunc_resolver_return.
4957 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4958 the loop. Support bp_gnu_ifunc_resolver and
4959 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4960 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4962 (bptype_string, print_one_breakpoint_location): Support
4963 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4964 (user_settable_breakpoint): Return true also for
4965 bp_gnu_ifunc_resolver.
4966 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4967 bp_gnu_ifunc_resolver_return.
4968 (set_breakpoint_location_function): New parameter explicit_loc,
4969 describe it. Call find_pc_partial_function_gnu_ifunc with new
4970 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4971 EXPLICIT_LOC is not set.
4972 (set_raw_breakpoint): Set EXPLICIT_LOC for
4973 set_breakpoint_location_function.
4974 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4975 set_breakpoint_location_function.
4976 (mention): Support bp_gnu_ifunc_resolver and
4977 bp_gnu_ifunc_resolver_return.
4978 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4979 set_breakpoint_location_function.
4980 (update_breakpoint_locations): Remove static.
4981 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4982 bp_gnu_ifunc_resolver_return.
4983 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4984 bp_gnu_ifunc_resolver_return.
4985 (update_breakpoint_locations): New declaration.
4986 * elfread.c: Include gdbthread.h and regcache.h.
4987 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4989 (elf_gnu_ifunc_fns): Install them.
4990 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4991 (stub_gnu_ifunc_resolver_return_stop): New functions.
4992 (stub_gnu_ifunc_fns): Install them.
4993 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4994 and gnu_ifunc_resolver_return_stop.
4995 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4997 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4999 STT_GNU_IFUNC reader implementation.
5000 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5001 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5002 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5003 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5004 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5005 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5006 (elf_gnu_ifunc_resolve_addr): New.
5007 (elf_symfile_read): Call elf_rel_plt_read.
5008 (elf_gnu_ifunc_fns): New.
5009 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5010 Install elf_gnu_ifunc_fns.
5011 * infcall.c (find_function_return_type): New function.
5012 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5013 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5014 (stub_gnu_ifunc_resolve_name): New functions.
5015 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5016 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5017 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5019 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5021 Code cleanup for later STT_GNU_IFUNC support.
5022 * infcall.c (find_function_addr): Remove variable code, use explicit
5023 dereferences for it. Move VALUE_TYPE initialization later.
5025 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5027 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5028 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5029 (clear_pc_function_cache): Clear it.
5030 (find_pc_partial_function): Rename to ...
5031 (find_pc_partial_function_gnu_ifunc): ... this function. New
5032 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5033 (find_pc_partial_function): New wrapper for this function.
5034 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5036 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5038 GDB internal type support for STT_GNU_IFUNC.
5039 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5040 (elf_symtab_read): Set mst_text_gnu_ifunc for
5041 BSF_GNU_INDIRECT_FUNCTION.
5042 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5043 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5044 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5045 nodebug_got_plt_symbol.
5046 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5047 (TYPE_GNU_IFUNC): New.
5048 (struct main_type): New field flag_gnu_ifunc.
5049 (struct builtin_type): New field builtin_func_func.
5050 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5051 nodebug_got_plt_symbol.
5052 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5053 (in_gnu_ifunc_stub): New.
5054 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5056 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5057 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5058 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5060 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5061 * symtab.c (search_symbols): Likewise.
5062 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5063 and mst_slot_got_plt.
5064 (in_gnu_ifunc_stub): New declaration.
5066 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5068 Support a ring of related breakpoints.
5069 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5070 other functions, add gdb_assert.
5071 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5072 watchpoint_del_at_next_stop.
5073 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5074 (bpstat_stop_status): Handle ring in related_breakpoint.
5075 (set_raw_breakpoint_without_location): Initialize ring in
5077 (delete_breakpoint): Handle ring in related_breakpoint, use
5078 watchpoint_del_at_next_stop.
5079 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5081 2011-03-28 Tom Tromey <tromey@redhat.com>
5084 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5085 with `language_minimal'.
5087 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5089 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5090 instead of checking for STT_ARM_TFUNC symbol type.
5092 2011-03-25 Tom Tromey <tromey@redhat.com>
5094 * linespec.c (symbol_found): Restore line-based result for
5095 non-LOC_LABEL symbols.
5097 2011-03-25 Kai Tietz <ktietz@redhat.com>
5099 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5100 instead of strcmp for comparison.
5101 (tui_source_is_displayed): Likewise.
5102 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5104 2011-03-24 Mark Wielaard <mjw@redhat.com>
5106 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5108 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5109 (find_partial_die_in_comp_unit): Likewise in comment.
5110 (read_attribute_value): Likewise.
5111 (lookup_die_type): Likewise.
5112 (dwarf_form_name): Likewise.
5113 (dump_die_shallow): Likewise.
5114 (follow_die_ref_or_sig): Likewise.
5116 2011-03-24 Tom Tromey <tromey@redhat.com>
5118 PR breakpoints/11816:
5119 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5120 (decode_compound): Update.
5121 (find_function_symbol): New function.
5122 (decode_dollar): Update.
5123 (decode_label): Add 'function_symbol' parameter. Handle
5124 function-relative labels.
5125 (decode_variable): Update.
5126 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5127 not its line. Set `special_display' and canonical name for
5130 2011-03-24 Tom Tromey <tromey@redhat.com>
5132 * linespec.h (struct linespec_result) <special_display>: New
5134 * breakpoint.h (struct breakpoint) <display_canonical>: New
5136 * breakpoint.c (print_breakpoint_location): Respect
5138 (create_breakpoint_sal): Add 'display_canonical' parameter.
5139 (create_breakpoints_sal): Update.
5140 (create_breakpoint): Update.
5142 2011-03-24 Tom Tromey <tromey@redhat.com>
5144 * symtab.c (decode_line_spec): Update.
5145 * linespec.c (build_canonical_line_spec): Change type of
5147 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5148 (find_method, decode_all_digits, decode_dollar, decode_label)
5149 (symbol_found): Likewise.
5150 (init_linespec_result): New function.
5151 * breakpoint.c (struct captured_parse_breakpoint_args)
5152 <canonical_p>: New field, replaces addr_string_p.
5153 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5155 (parse_breakpoint_sals): Likewise.
5156 (do_captured_parse_breakpoint): Update.
5157 (create_breakpoint): Use struct linespec_result.
5158 (until_break_command): Update.
5159 (breakpoint_re_set_one): Update.
5160 (decode_line_spec_1): Update.
5161 * linespec.h (struct linespec_result): New.
5162 (init_linespec_result): Declare.
5164 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5166 * regcache.c (regcache_raw_read): If the target didn't supply a
5167 given raw register, mark it as unavailable.
5169 2011-03-23 Kai Tietz <ktietz@redhat.com>
5171 * breakpoint.c (clear_command): Use filename_cmp
5172 instead of strcmp for comparison.
5173 * buildsym.c (watch_main_source_file_lossage): Likewise.
5174 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5175 checking just for slash.
5176 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5177 strrchr and filename_cmp instead of strcmp for filenames.
5178 (add_old_header_file): Use filename_cmp
5179 instead of strcmp for comparison.
5180 * exec.c (exec_set_section_address): Likewise.
5181 * macrotab.c (macro_lookup_inclusion): Likewise.
5182 (macro_lookup_inclusion): Likewise.
5183 * elfread.c (_initialize_elfread): Likewise.
5184 (elfstab_offset_sections): Likewise.
5185 (elfstab_offset_sections): Use lbasename instead of
5187 * mdebugread.c (parse_partial_symbols): Likewise.
5188 (arse_partial_symbols): Use filename_(n)cmp instead of
5189 str(n)cmp for comparison.
5190 * minsyms.c (lookup_minimal_symbol): Likewise.
5191 * psymtab.c (read_psymtabs_with_filename): Likewise.
5192 * solib.c (solib_read_symbols): Likewise.
5193 (reload_shared_libraries_1): Likewise.
5194 * symmisc.c (maintenance_print_symbols): Likewise.
5195 * symfile.c (separate_debug_file_exists): Likewise.
5196 (reread_symbols): Likewise.
5197 (find_separate_debug_file_by_debuglink): Likewise.
5198 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5199 * source.c (add_path): Likewise.
5200 * symtab.c (filename_seen): Likewise.
5201 (file_matches): Likewise.
5202 (print_symbol_info): Likewise.
5203 (maybe_add_partial_symtab_filename): Likewise.
5204 (make_source_files_completion_list): Likewise.
5205 * xml-syscall.c (init_sysinfo): Likewise.
5206 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5207 IS_DIR_SEPARATOR for checking for trailing path separator.
5209 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5212 label abort_expression.
5213 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5214 DWARF_VALUE_OPTIMIZED_OUT.
5216 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5219 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5220 to linkage_name. Invert its value. Update the function comment.
5221 (c_type_print_varspec_suffix): Invert it at the caller.
5222 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5224 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5226 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5227 errors when reading the `stop_pc'.
5228 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5231 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5233 * NEWS: Document gdb.Write stream keyword.
5235 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5238 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5239 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5240 (dwarf2_add_field): Fix new_field->accessibility for
5241 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5243 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5247 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5248 other error classes. Do not print stack trace.
5250 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5252 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5253 (dwarf2_add_field): Fix new_field->accessibility for
5254 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5256 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5258 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5259 encountering a load via a non-SP register.
5261 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5263 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5264 field in returned unwinder.
5266 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5268 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5270 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5272 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5275 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5277 * frame.c (frame_unwind_register): Throw an error if unwinding the
5279 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5280 an unwind stop reason.
5281 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5282 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5283 UNWIND_UNAVAILABLE>: New.
5284 * inline-frame.c (inline_frame_unwind): Install
5285 default_frame_unwind_stop_reason.
5286 * frame-unwind.c: Include "exceptions.h".
5287 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5288 (default_frame_unwind_stop_reason): New.
5289 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5290 (default_frame_unwind_stop_reason): Declare.
5291 (struct frame_unwind) <stop_reason>: New function pointer.
5293 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5294 * dwarf2-frame.c: Include exceptions.h.
5295 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5296 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5297 computing the CFA. If such an error was thrown, set
5298 unavailable_retaddr.
5299 (dwarf2_frame_unwind_stop_reason): New.
5300 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5302 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5303 (dwarf2_signal_frame_unwind): Ditto.
5305 * amd64-tdep.c: Include "exceptions.h".
5306 (struct amd64_frame_cache): New field "base_p".
5307 (amd64_init_frame_cache): Clear it.
5308 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5309 Avoid reading registers with functions that throw if the register
5310 is not necessary to compute the frame base.
5311 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5312 swallowing NOT_AVAILABLE_ERROR.
5313 (amd64_frame_unwind_stop_reason): New.
5314 (amd64_frame_this_id): Don't build a frame id if the frame base
5316 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5317 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5318 base_p if the frame base was computable.
5319 (amd64_sigtramp_frame_unwind_stop_reason): New.
5320 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5321 frame base was unavailable.
5322 (amd64_sigtramp_frame_unwind): Install
5323 amd64_sigtramp_frame_unwind_stop_reason.
5324 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5325 base_p if the frame base was computable.
5326 (amd64_epilogue_frame_unwind_stop_reason): New.
5327 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5328 frame base was unavailable.
5329 (amd64_epilogue_frame_unwind): Install
5330 amd64_epilogue_frame_unwind_stop_reason.
5331 * i386-tdep.c: Include "exceptions.h".
5332 (struct i386_frame_cache): New field "base_p".
5333 (i386_init_frame_cache): Clear it.
5334 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5335 Avoid reading registers with functions that throw if the register
5336 is not necessary to compute the frame base.
5337 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5338 swallowing NOT_AVAILABLE_ERROR.
5339 (i386_frame_unwind_stop_reason): New.
5340 (i386_frame_this_id): Don't build a frame id if the frame base was
5342 (i386_frame_prev_register): Handle unavailable SP.
5343 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5344 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5345 base_p if the frame base was computable.
5346 (i386_epilogue_frame_unwind_stop_reason): New.
5347 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5348 base was unavailable.
5349 (i386_epilogue_frame_unwind): Install
5350 i386_epilogue_frame_unwind_stop_reason.
5351 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5352 base_p if the frame base was computable.
5353 (i386_sigtramp_frame_unwind_stop_reason): New.
5354 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5355 base was unavailable.
5356 (i386_sigtramp_frame_unwind): Install
5357 i386_sigtramp_frame_unwind_stop_reason.
5358 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5359 type's size, not the register's.
5360 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5362 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5363 default_frame_unwind_stop_reason.
5364 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5365 (alpha_heuristic_frame_unwind): Ditto.
5366 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5367 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5368 * avr-tdep.c (avr_frame_unwind): Ditto.
5369 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5371 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5372 * frv-tdep.c (frv_frame_unwind): Ditto.
5373 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5374 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5375 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5376 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5377 (hppa_stub_frame_unwind): Ditto.
5378 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5379 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5380 (ia64_libunwind_frame_unwind)
5381 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5382 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5383 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5384 * m32c-tdep.c (m32c_unwind): Ditto.
5385 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5386 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5387 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5388 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5389 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5390 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5391 * mep-tdep.c (mep_frame_unwind): Ditto.
5392 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5393 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5394 (mips_stub_frame_unwind): Ditto.
5395 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5396 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5397 * mt-tdep.c (mt_frame_unwind): Ditto.
5398 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5399 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5400 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5401 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5402 (s390_sigtramp_frame_unwind): Ditto.
5403 * score-tdep.c (score_prologue_unwind): Ditto.
5404 * sh-tdep.c (sh_frame_unwind): Ditto.
5405 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5406 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5407 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5408 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5409 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5410 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5411 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5412 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5413 (sparc64obsd_trapframe_unwind): Ditto.
5414 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5415 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5416 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5417 * v850-tdep.c (v850_frame_unwind): Ditto.
5418 * vax-tdep.c (vax_frame_unwind): Ditto.
5419 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5420 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5421 * xtensa-tdep.c (xtensa_unwind): Ditto.
5423 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5425 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5426 there's always a frame. Use get_frame_pc_if_available instead of
5427 get_frame_pc, and if there's no PC available, don't look up a
5430 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5432 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5435 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5437 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5440 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5442 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5443 * frame.c (frame_unwind_caller_pc_if_available): New.
5444 * stack.c (frame_info): Handle unavailable PC.
5446 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5448 * frame.c (frame_unwind_pc): Rename to ...
5449 (frame_unwind_pc_if_available): ... this. New `pc' output
5450 parameter. Change return type to int. Gracefully handle
5451 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5452 happened, or 1 otherwise.
5453 (frame_unwind_pc): Reimplement on top of
5454 frame_unwind_pc_if_available.
5455 (get_frame_func): Rename to ...
5456 (get_frame_func_if_available): New `pc' output parameter. Change
5457 return type to int. Gracefully handle the PC not being available.
5458 (get_frame_func): Reimplement on top of
5459 get_frame_func_if_available.
5460 (select_frame): Handle the PC being unavailable.
5461 (get_prev_frame): Handle the PC being unavailable.
5462 (get_frame_pc_if_available): New.
5463 (get_frame_address_in_block_if_available): New.
5464 (find_frame_sal): Handle the frame PC not being available.
5465 * frame.h (get_frame_pc_if_available): Declare.
5466 (get_frame_address_in_block_if_available): Declare.
5467 (get_frame_func_if_available): Declare.
5468 * stack.c (print_frame_info): Handle the PC being unavailable.
5469 (find_frame_funname): Ditto.
5470 (print_frame): Handle the PC being unavailable.
5471 (get_frame_language): Ditto.
5472 * blockframe.c (get_frame_block): Ditto.
5473 * macroscope.c (default_macro_scope): Ditto.
5474 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5476 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5478 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5479 NOT_AVAILABLE_ERROR when evaluating the location expression.
5481 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5483 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5484 returning that the register piece is unavailable/optimized out.
5485 (write_pieced_value): Handle get_frame_register_bytes returning
5486 that the register piece is unavailable/optimized out when doing a
5487 read-modify write of a bitfield.
5488 * findvar.c (value_from_register): Handle get_frame_register_bytes
5489 returning that the register piece is unavailable/optimized out.
5490 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5491 and `unavailablep'. Throw error on bad debug info. Use
5492 frame_register instead of frame_register_read, to fill in the new
5494 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5496 * valops.c: (value_assign): Adjust, and handle
5497 get_frame_register_bytes failing.
5498 * spu-tdep.c: Include exceptions.h.
5499 (spu_software_single_step): Adjust, and handle
5500 get_frame_register_bytes failing.
5501 (spu_get_longjmp_target): Ditto.
5502 * gdbarch.sh (register_to_value): Change to return int. New
5503 parameters `optimizedp' and `unavailablep'.
5504 * gdbarch.h, gdbarch.c: Regenerate.
5505 * i386-tdep.c (i386_register_to_value): Adjust to new
5506 gdbarch_register_to_value interface.
5507 * i387-tdep.c (i387_register_to_value): Ditto.
5508 * i387-tdep.h (i387_register_to_value): Ditto.
5509 * alpha-tdep.c (alpha_register_to_value): Ditto.
5510 * ia64-tdep.c (ia64_register_to_value): Ditto.
5511 * m68k-tdep.c (m68k_register_to_value): Ditto.
5512 * mips-tdep.c (mips_register_to_value): Ditto.
5513 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5515 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5517 * findvar.c (value_of_register): Mark the value as unavailable, if
5518 the register is unavailable.
5519 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5520 (frame_register): New `unavailablep' parameter.
5521 (frame_register_read): Update comment.
5522 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5523 Set it if the register is unavailable. If the register is
5524 unavailable, clear the output buffer.
5525 (frame_register): New `unavailablep' parameter. Pass it down.
5526 (frame_unwind_register): Adjust.
5527 (put_frame_register): Adjust.
5528 (frame_register_read): Adjust. Also return false if the register
5530 (frame_register_unwind_location): Adjust.
5531 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5532 is unavailable, mark the value accordingly.
5533 * stack.c (frame_info): Handle unavailable registers.
5535 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5537 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5538 simplify, using regcache_cooked_read.
5540 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5542 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5543 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5544 (regcache_raw_read_unsigned, regcache_raw_read_part)
5545 (regcache_cooked_read, regcache_cooked_read_signed)
5546 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5547 (regcache_cooked_read_ftype): Change return to enum
5549 * regcache.c: Include exceptions.h
5550 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5551 (do_cooked_read): Change return to enum register_status. Always
5552 forward to regcache_cooked_read.
5553 (regcache_raw_read): Change return to enum register_status. If
5554 the register is not REG_VALID, memset the buffer. Return the
5556 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5557 return the register's status.
5558 (regcache_raw_read_unsigned): Ditto.
5559 (regcache_cooked_read): Change return to enum register_status.
5560 Assert that with read-only regcaches, the register's status must
5561 be known. If the regcache is read-only, and the register is not
5562 REG_VALID, memset the buffer. Return the register's status.
5563 (regcache_cooked_read_signed): Change return to enum
5564 register_status. Handle non-REG_VALID registers and return the
5566 (regcache_cooked_read_unsigned): Change return to enum
5567 register_status. Handle non-REG_VALID registers and return the
5569 (regcache_xfer_part, regcache_raw_read_part)
5570 (regcache_cooked_read_part): Change return to enum
5571 register_status. Return the register's status.
5572 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5574 (regcache_dump): Handle unavailable cooked registers.
5575 * frame.c (do_frame_register_read): Adjust interface to match
5576 regcache_cooked_read_ftype.
5577 * gdbarch.sh (pseudo_register_read): Change return to enum
5579 * gdbarch.h, gdbarch.c: Regenerate.
5581 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5583 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5584 register_status. If reading a raw register indicates the raw
5585 register is not valid, return the raw register's status,
5586 otherwise, return REG_VALID.
5587 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5588 register_status. Handle non-REG_VALID raw registers and return
5589 the register's status.
5590 * arm-tdep.c (arm_neon_quad_read)
5591 (arm_pseudo_read): Change return to enum register_status. Handle
5592 non-REG_VALID raw registers and return the register's status.
5593 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5594 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5595 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5596 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5597 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5599 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5600 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5601 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5602 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5603 (m32c_pseudo_register_read): Change return to enum
5604 register_status. Adjust.
5605 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5606 enum register_status. Return the register's status.
5607 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5608 register_status. Return the register's status.
5609 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5610 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5611 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5612 * rs6000-tdep.c (move_ev_register_func): New typedef.
5613 (e500_move_ev_register): Use it. Change return to enum
5614 register_status. Return the register's status.
5615 (do_regcache_raw_read): New function.
5616 (do_regcache_raw_write): New function.
5617 (e500_pseudo_register_read): Change return to enum
5618 register_status. Return the register's status. Use
5619 do_regcache_raw_read.
5620 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5621 (dfp_pseudo_register_read): Change return to enum register_status.
5622 Return the register's status.
5623 (vsx_pseudo_register_read): Ditto.
5624 (efpr_pseudo_register_read): Ditto.
5625 (rs6000_pseudo_register_read): Ditto.
5626 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5627 register_status. Return the register's status.
5628 * sh64-tdep.c (pseudo_register_read_portions): New function.
5629 (sh64_pseudo_register_read): Change return to enum
5630 register_status. Use pseudo_register_read_portions. Return the
5632 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5633 register_status. Return the register's status.
5634 * sh-tdep.c (pseudo_register_read_portions): New function.
5635 (sh_pseudo_register_read): Change return to enum register_status.
5636 Use pseudo_register_read_portions. Return the register's status.
5637 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5638 enum register_status. Return the register's status.
5639 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5640 * spu-tdep.c (spu_pseudo_register_read_spu)
5641 (spu_pseudo_register_read): Ditto.
5642 * xtensa-tdep.c (xtensa_register_read_masked)
5643 (xtensa_pseudo_register_read): Ditto.
5644 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5646 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5648 * python/py-value.c (valpy_getitem): Fix formatting of error function
5651 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5653 ARI fixes: Add missing internationalization markups throughout
5655 * darwin-nat-info.c: Ditto.
5658 * mi/mi-main.c: Ditto.
5660 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5662 ARI fixes: Add missing internationalization markups throughout
5665 * cp-name-parser.y: Ditto.
5668 * objc-exp.y: Ditto.
5671 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5673 ARI fixes: Messages should have no trailing new lines.
5674 * darwin-nat.c (mach_check_error): Remove trailing new line from
5675 warning function call message.
5676 * record.c (bfdcore_read): Idem for error call.
5678 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5680 * common/signals.c (target_signal_from_host): Add _ markup to error
5681 function call message.
5682 (target_signal_to_host): Add _ markup and remove trailing new line
5683 from warning call message.
5684 (target_signal_from_command): Add _ markup to error function call
5687 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5691 * python/python.c (gdbpy_write): Accept a stream argument and
5692 operate to the appropriate stream.
5693 (gdbpy_flush): Likewise.
5694 (_initialize_python): Add stream constants.
5695 (finish_python_initialization): Add GdbOutputErrorFile class.
5697 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5699 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5701 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5703 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5704 to store_signed_integer. Add debug message when relocating CALL
5705 instructions. Fix formatting of debug message.
5706 * i386-tdep.c (i386_relocate_instruction): Ditto.
5708 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5710 * target.h (struct target_ops): Remove to_lookup_symbol field.
5711 (target_lookup_symbol): Delete macro.
5712 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5713 (update_current_target, setup_target_debug): Remove handling
5714 of to_lookup_symbol target_ops field.
5715 * ada-tasks.c (get_known_tasks_addr): Remove use of
5716 target_lookup_symbol.
5717 * coffread.c (coff_symtab_read): Likewise.
5718 * dbxread.c (read_dbx_symtab): Ditto.
5720 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5723 * configure.ac: Add getthrds declaration check.
5724 * configure, config.in: Regenerate.
5725 * aix-thread.c (getthrds): Declare only if not already declared
5726 in procinfo.h. More declaration out of get_signaled_thread to
5729 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5731 * python/py-symtab.c: Populate symtab_object_methods,
5733 (stpy_is_valid): New function.
5734 (salpy_is_valid): Ditto.
5735 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5736 (sympy_is_valid): New function.
5737 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5738 (objfpy_is_valid): New function.
5739 * python/py-inferior.c: Populate inferior_object_methods.
5740 (infpy_is_valid): New function.
5741 * python/py-infthread.c: Populate thread_object_methods.
5742 (thpy_is_valid): New function.
5743 * python/py-block.c: Declare block_object_methods. Populate. Declare
5744 block_iterator_object_methods. Populate.
5745 (blpy_is_valid): New function.
5746 (blpy_iter_is_valid): Ditto.
5748 2011-03-16 Keith Seitz <keiths@redhat.com>
5750 * linespec.c (find_methods): Canonicalize NAME before looking
5752 (name_end): New function.
5753 (keep_name_info): New function.
5754 (decode_line_1): Use keep_name_info.
5755 (decode_compound): Likewise.
5756 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5757 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5760 * linespec.c (locate_first_half): Keep overload information, too.
5761 (decode_compound): Use a string to represent break characters
5763 If P points to a break character, do not increment it.
5764 For C++ and Java, keep overload information and relevant keywords.
5765 If we cannot find a symbol, search the minimal symbols.
5768 * linespec.c (decode_compound): Rename SAVED_ARG to
5770 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5772 Pass a valid block to lookup_symbol.
5773 (lookup_prefix_sym): Likewise.
5774 (find_method): Construct search name based on SYM_CLASS instead
5776 * psymtab.c (lookup_partial_symbol): Add language parameter.
5777 (lookup_symbol_aux_psymtabs): Likewise.
5778 Don't assume that the psymtab we found was the right one. Search
5779 for the desired symbol in the symtab to be certain.
5780 (psymtab_search_name): New function.
5781 (lookup_partial_symbol): Use psymtab_search_name.
5782 Add language parameter.
5783 (read_symtabs_for_function): Add language parameter and pass to
5784 lookup_partial_symbol.
5785 (find_symbol_file_from_partial): Likewise.
5787 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5790 * dwarf2read.c (noop_record_line): New function.
5791 (dwarf_decode_lines): Ignore line tables for GCd functions.
5793 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5795 Fix ARI warnings about new lines at the end of messages, which
5796 are unneeded as there is a new line added at the end of the message
5798 * darwin-nat.c (darwin_stop_inferior): Ditto.
5799 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5800 * dfp.c (decimal_to_number): Ditto.
5801 * exec.c (print_section_info): Ditto.
5802 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5803 * osdata.c (get_osdata): Ditto.
5804 * record.c (bfdcore_write): Ditto.
5805 * remote-mips.c (mips_readchar): Ditto.
5806 * remote.c (read_ptid): Ditto.
5807 * ser-mingw.c (ser_windows_raw): Ditto.
5808 * tracepoint.c (add_local_symbols): Ditto.
5809 * windows-nat.c (fake_create_process): Ditto.
5811 2011-03-16 Tom Tromey <tromey@redhat.com>
5813 * tracepoint.c (stop_tracing): Don't declare.
5814 * event-top.c (after_char_processing_hook): Add `(void)'.
5816 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5818 * NEWS: Add Parameter sub-classing description.
5820 2011-03-16 Kai Tietz <ktietz@redhat.com>
5822 * MAINTAINERS: Update my e-mail address.
5824 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5826 * MAINTAINERS: Add myself for write after approval privileges.
5828 2011-03-15 Michael Snyder <msnyder@vmware.com>
5830 * frame.c (find_frame_sal): Assert sym is not null.
5832 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5834 * objc-lang.c (selectors_info): Check strchr for null result.
5836 * stabsread.c (define_symbol): Guard against bad stabstring input.
5838 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5840 Remove trailing spaces and tabulations from pascal language
5845 p-valprint.c: Ditto.
5847 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5849 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5850 than LOW. Comment it.
5851 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5852 HIGHPC not strictly higher than LOWPC.
5854 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5856 Fix formatting of function declarations returning a pointer in
5858 * varobj.c (varobj_add_child): Ditto.
5859 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5860 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5862 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5864 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5865 for the "generic" vector ABI used with GCC 4.3 and later.
5866 (ppc64_sysv_abi_return_value): Likewise.
5868 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5870 * infcall.c (call_function_by_hand): Function return value is
5871 always a non_lval, even when using struct_return.
5873 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5875 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5876 (map_display_numbers): New.
5877 (do_delete_display): New.
5878 (undisplay_command): Use map_display_numbers.
5879 (do_enable_disable_display): New.
5880 (enable_disable_display_command): New function.
5881 (enable_display): Delete.
5882 (enable_display_command): New.
5883 (disable_display_command): Reimplement.
5884 (_initialize_printcmd): Adjust "enable display" command to use
5885 `enable_display_command' as callback.
5887 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5889 * NEWS: Add Python breakpoint 'stop' operation.
5891 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5893 * NEWS: Delete duplicate entry. Fix typo.
5895 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5897 Fix ARI warning about function names in first column.
5898 Put prototype declaration on same line as return type.
5899 * objc-exp.y: Ditto.
5901 * python/py-stopevent.h: Ditto.
5902 For long function names, split parameters to
5903 allow function name on same line as return type.
5904 * solib-pa64.c: Ditto.
5907 For long function declaration, use single line.
5908 * hppa-tdep.h: Ditto.
5909 * inferior.h: Ditto.
5911 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5913 * python/python.h: Declare gdbpy_should_stop and
5914 gdbpy_breakpoint_has_py_cond.
5915 * python/python.c: Add python.h to includes. Remove python.h from
5916 HAVE_PYTHON definition
5917 (gdbpy_should_stop): New dummy function.
5918 (gdbpy_breakpoint_has_py_cond): New dummy function.
5919 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5920 sub-classing capabilities.
5921 (gdbpy_should_stop): New function.
5922 (gdbpy_breakpoint_has_py_cond): New function.
5923 (local_setattro): New function.
5924 * breakpoint.c (condition_command): Add check for Python 'stop'
5926 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5927 operation function as part of stop/continue tests.
5929 2011-03-14 Tom Tromey <tromey@redhat.com>
5932 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5933 (needs_frame_dwarf_call): Likewise.
5935 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5937 Fix ARI warning about functions without parameters that do not
5939 * breakpoint.c (all_tracepoints): Replace () by (void).
5940 * f-exp.y (match_string_literal): Ditto.
5942 * m2-exp.y (yylex): Ditto.
5943 * mep-tdep.c (current_me_module): Ditto.
5944 (current_options): Ditto.
5945 (current_cop_data_bus_width): Ditto.
5946 (current_cr_names): Ditto.
5947 (current_cr_is_float): Ditto.
5948 (current_ccr_names): Ditto.
5949 * objc-exp.y (yylex): Ditto.
5950 * p-exp.y (yylex): Ditto.
5951 * remote.c (send_interrupt_sequence): Ditto.
5952 * tracepoint.c (current_trace_status): Ditto.
5953 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5954 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5956 2011-03-11 Michael Snyder <msnyder@vmware.com>
5958 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5959 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5960 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5961 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5962 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5964 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5965 (delete_async_event_handler): Ditto.
5967 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5969 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5971 * top.c (set_verbose): Assert showcmd was found.
5973 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5975 * xtensa-tdep.c (warning_once): Correct style issues.
5977 2011-03-11 Yao Qi <yao@codesourcery.com>
5979 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5981 2011-03-11 Andreas Schwab <schwab@redhat.com>
5983 * common/aclocal.m4: Remove.
5985 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5987 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5988 (xtensa_write_register, xtensa_read_register): Likewise.
5989 (xtensa_hextochar): Removed.
5990 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5992 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5994 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5995 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5996 (xtensa_alloc_frame_cache): Add initialization for new fields.
5997 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5998 (warning_once): New function.
5999 (xtensa_insn_kind): New item c0opc_and.
6000 (call0_classify_opcode): Add the case for AND instruction.
6001 (call0_track_op): Change arguments. New local variable litbase.
6002 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6003 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6005 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6006 (call0_analyze_prologue): Update the comments. Change arguments.
6007 Add the variety of updates to handle extended prologues, which now can
6008 conduct dynamic stack adjustments.
6009 (call0_frame_cache): Likewise.
6010 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6011 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6013 2011-03-10 Michael Snyder <msnyder@vmware.com>
6015 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6016 (cmd_qtframe): Ditto.
6017 (cmd_qtbuffer): Ditto.
6018 (cmd_bigqtbuffer): Ditto.
6020 2011-03-10 Tom Tromey <tromey@redhat.com>
6022 * tracepoint.c (trace_actions_command): Update.
6023 * thread.c (thread_apply_command): Update.
6024 * reverse.c (delete_bookmark_command): Update.
6025 (bookmarks_info): Update.
6026 * printcmd.c (undisplay_command): Update.
6027 * memattr.c (mem_enable_command): Update.
6028 (mem_disable_command): Update.
6029 (mem_delete_command): Update.
6030 * inferior.c (detach_inferior_command): Update.
6031 (kill_inferior_command): Update.
6032 (remove_inferior_command): Update.
6033 * cli/cli-utils.h (struct get_number_or_range_state): New.
6034 (init_number_or_range): Declare.
6035 (get_number_or_range): Update.
6036 * cli/cli-utils.c (init_number_or_range): New function.
6037 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6039 (number_is_in_list): Update.
6040 * breakpoint.h (get_tracepoint_by_number): Update.
6041 * breakpoint.c (map_breakpoint_numbers): Update for change to
6042 get_number_or_range.
6043 (find_location_by_number): Use get_number, not
6044 get_number_or_range.
6045 (trace_pass_set_count): New function.
6046 (trace_pass_command): Update for change to get_number_or_range.
6048 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6051 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6053 * python/py-param.c (add_setshow_generic): Add set/show callback
6054 parameters. Register Python object context.
6055 (get_show_value): New function.
6056 (get_set_value): New function.
6057 (call_doc_function): New function.
6058 (get_doc_string): Move behind get_show_value/get_set_value.
6060 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6062 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6064 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6066 * xtensa-tdep.c (xtensa_read_register): Add comment.
6067 (xtensa_write_register): Likewise.
6068 (xtensa_hextochar): Add comment and update to match coding conventions.
6069 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6070 (execute_l32e, execute_s32e, execute_code): Update comments.
6071 (xtensa_exception_handler_t): Update to match coding conventions.
6072 (xtensa_insn_kind): Likewise.
6074 2011-03-09 Michael Snyder <msnyder@vmware.com>
6076 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6078 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6080 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6082 2011-03-09 Tom Tromey <tromey@redhat.com>
6084 * thread.c (restore_selected_frame): Handle frame_level == -1.
6085 (make_cleanup_restore_current_thread): Use
6086 get_selected_frame_if_set.
6087 * frame.h (get_selected_frame_if_set): Declare.
6088 * frame.c (get_selected_frame_if_set): New function.
6090 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6092 * cli/cli-cmds.c (shell_escape): Use lbasename.
6093 * coffread.c (coff_start_symtab): Constify parameter.
6094 (complete_symtab): Constify `name' parameter.
6095 (coff_symtab_read): Constify `filestring' local.
6096 (coff_getfilename): Constify return and `result' local.
6098 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6099 * linux-fork.c (info_checkpoints_command): Use lbasename.
6100 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6101 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6102 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6103 * procfs.c (procfs_make_note_section): Use lbasename.
6104 * tui/tui-io.c (printable_part): Constity return and parameter.
6106 (print_filename): Constify parameters, and local `s'.
6107 (tui_rl_display_match_list): Constify local `temp'.
6109 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6113 Fix DWARF-3+ DW_AT_accessibility default assumption.
6114 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6115 cu->header.version >= 3.
6117 2011-03-09 Yao Qi <yao@codesourcery.com>
6119 * common/Makefile.in: Remove.
6120 * common/configure: Remove.
6121 * common/configure.ac: Remove.
6123 2011-03-09 Yao Qi <yao@codesourcery.com>
6126 2011-02-11 Yao Qi <yao@codesourcery.com>
6128 * common/Makefile.in: Add copyright header.
6130 2011-02-11 Yao Qi <yao@codesourcery.com>
6132 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6134 * configure.ac: Add common to sub dir.
6135 * configure: Regenerate.
6137 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6139 * xtensa-tdep.c (call0_ret): New function.
6140 (xtensa_skip_prologue): Speed up analysis.
6142 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6144 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6145 while executing MI command -data-list-changed-registers.
6147 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6149 * xtensa-tdep.c (xtensa_read_register): New function.
6150 (xtensa_write_register): New function.
6151 (xtensa_find_register_by_name): New function.
6152 (xtensa_windowed_frame_cache): Update comments in type description.
6153 (xtensa_frame_cache): Likewise.
6154 (xtensa_window_interrupt_insn): New function.
6155 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6156 (xtensa_insn_kind): Add new instructions.
6157 (rwx_special_register): New function.
6158 (call0_classify_opcode): Add new instructions to the analysis.
6159 (a0_saved, a7_saved, a11_saved): New variables.
6160 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6161 (execute_l32e): New function.
6162 (execute_s32e): New function.
6163 (xtensa_exception_handler_t): New type.
6164 (execute_code): New function.
6165 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6166 analysis for Xtensa Window Exception handlers.
6168 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6170 * xtensa-tdep.c (TX_PS): New.
6171 (windowing_enabled): Update to count for Call0 ABI.
6172 (xtensa_hextochar): New.
6173 (xtensa_init_reggroups): Make algorithm generic.
6174 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6176 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6178 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6180 2011-03-08 Michael Snyder <msnyder@vmware.com>
6182 * i386-tdep.c (i386_follow_jump): Check return value of
6184 (i386_analyze_struct_return): Ditto.
6185 (i386_skip_probe): Ditto.
6186 (i386_match_insn): Ditto.
6187 (i386_skip_noop): Ditto.
6188 (i386_analyze_frame_setup): Ditto.
6189 (i386_analyze_register_saves): Ditto.
6190 (i386_skip_prologue): Ditto.
6191 (i386_skip_main_prologue): Ditto.
6193 * target.c (read_whatever_is_readable): Fix memory leak.
6195 * i386-tdep.c (i386_process_record): Document fall through.
6197 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6199 Fix DWARF-3+ DW_AT_accessibility default assumption.
6200 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6201 cu->header.version >= 3.
6203 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6205 * remote.c (remote_check_symbols): Skip if the target has no
6208 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6210 * target.c (read_whatever_is_readable): Reformat comment,
6211 with a minor typo fix. Minor reformatting of the code.
6213 2011-03-08 Yao Qi <yao@codesourcery.com>
6215 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6216 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6217 Use cached result instead of calling displaced_in_arm_mode again.
6218 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6219 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6220 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6221 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6222 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6223 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6224 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6225 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6226 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6227 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6228 (arm_catch_kernel_helper_return): Likewise.
6229 * gdb/arm-tdep.h : Update function declarations.
6231 2011-03-07 Michael Snyder <msnyder@vmware.com>
6233 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6235 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6237 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6239 * elfread.c (elf_symtab_read): Stop memory leak.
6241 * main.c (captured_main): Fix memory leak.
6243 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6245 * ada-lang.c (compare_names): Call is_name_suffix with string1
6248 2011-03-07 Tom Tromey <tromey@redhat.com>
6250 * xcoffread.c (xcoff_sym_fns): Update.
6251 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6252 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6253 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6254 (symbol_file_add_with_addrs_or_offsets): Likewise.
6255 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6256 * somread.c (som_sym_fns): Update.
6257 * psymtab.h (require_partial_symbols): Declare.
6258 * psymtab.c (require_partial_symbols): New function.
6259 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6260 (ALL_OBJFILE_PSYMTABS): Undef.
6261 (ALL_PSYMTABS): Move from psympriv.h.
6262 (lookup_partial_symtab, find_pc_sect_psymtab)
6263 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6264 (find_last_source_symtab_from_partial)
6265 (forget_cached_source_info_partial)
6266 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6267 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6268 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6269 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6270 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6271 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6272 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6273 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6274 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6276 * mipsread.c (ecoff_sym_fns): Update.
6277 * machoread.c (macho_sym_fns): Update.
6278 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6279 (read_psyms): New function.
6280 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6281 (elf_sym_fns_lazy_psyms): New global.
6282 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6283 dwarf2_build_psymtabs.
6284 * dbxread.c (aout_sym_fns): Update.
6285 * coffread.c (coff_sym_fns): Update.
6287 2011-03-07 Tom Tromey <tromey@redhat.com>
6289 * infrun.c (print_exited_reason): Include inferior id and pid in
6292 2011-03-07 Tom Tromey <tromey@redhat.com>
6294 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6296 (target_has_execution_1): Update.
6297 (target_has_execution_current): Declare.
6298 (target_has_execution): Call target_has_execution_current.
6299 (default_child_has_execution): Update.
6300 * target.c (default_child_has_execution): Add 'the_ptid'
6302 (target_has_execution_1): Likewise.
6303 (target_has_execution_current): New function.
6304 (add_target): Update.
6305 (init_dummy_target): Update.
6306 * remote-m32r-sdi.c (m32r_has_execution): New function.
6307 (init_m32r_ops): Use it.
6308 * record.c (record_core_has_execution): Now static. Add
6309 'the_ptid' parameter.
6310 * inferior.c (have_live_inferiors): Don't save current thread.
6311 Use target_has_execution_1.
6313 2011-03-07 Yao Qi <yao@codesourcery.com>
6315 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6317 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6319 * elfread.c (elf_symtab_read): Minor reformatting.
6321 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6323 * objc-lang.c (selectors_info): Minor reformatting.
6325 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6327 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6329 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6330 Michael Snyder <msnyder@vmware.com>
6332 * ada-valprint.c (ada_val_print_array): Move the declaration of
6333 "byte_order" and "elttype" inside the block where these variables
6334 are actually used. Remove some special handling for the case
6335 where "elttype" and "eltlen" are null. Replace by a comment
6336 and a couple of assertion checks.
6338 2011-03-05 Michael Snyder <msnyder@vmware.com>
6340 * source.c (add_path): Replace semicolon at end of block.
6341 * dwarf2expr.c (execute_stack_op): Ditto.
6343 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6345 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6346 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6347 (bfin-*-*): Likewise.
6349 2011-03-05 Michael Snyder <msnyder@vmware.com>
6351 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6352 * mdebugread.c (parse_symbol): Ditto.
6353 * parse.c (parse_exp_in_context): Ditto.
6354 * source.c (add_path): Ditto.
6355 * utils.c (gnu_debuglink_crc32): Ditto.
6356 * varobj.c (variable_language): Ditto.
6358 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6360 2011-03-04 Michael Snyder <msnyder@vmware.com>
6362 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6364 * symfile.c (simple_overlay_update): Check for null return value
6365 from lookup_minimal_symbol.
6367 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6369 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6371 * eval.c (parse_and_eval_address_1): Remove function.
6372 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6373 instead of parse_and_eval_address_1.
6374 * value.h (parse_and_eval_address_1): Remove prototype.
6376 2011-03-04 Michael Snyder <msnyder@vmware.com>
6378 * remote.c (putpkt_binary): Document that case stmt falls through.
6380 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6382 * breakpointc (print_it_typical): Move NULL check from here...
6383 (print_bp_stop_message): ... to here.
6385 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6387 * breakpoint.c (enable_command): Use break instead of continue,
6388 and fill in a missing break.
6389 (disable_command): Ditto.
6391 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6393 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6394 (terminal_save_ours): Remove misleading comment.
6395 (inflow_inferior_data_cleanup): Free ttystate.
6396 (inflow_inferior_exit): Likewise.
6397 (copy_terminal_info): Copy ttystate.
6399 * serial.c (serial_copy_tty_state): New function.
6400 * serial.h (serial_copy_tty_state): Add prototype.
6401 (struct serial_ops): Add copy_tty_state callback.
6402 * ser-base.c (ser_base_copy_tty_state): New function.
6403 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6404 * ser-go32.c (dos_copy_tty_state): New function.
6405 (dos_ops): Install copy_tty_state callback.
6406 * ser-mingw.c (_initialize_ser_windows): Likewise.
6407 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6408 * ser-unix.c (hardwire_copy_tty_state): New function.
6409 (_initialize_ser_hardwire): Install it.
6411 2011-03-04 Michael Snyder <msnyder@vmware.com>
6413 * breakpoint.c (create_breakpoint): Add missing break statement.
6415 Reverting this patch:
6416 * infcall.c (call_function_by_hand): Add break statements for lint.
6418 Reverting this patch:
6419 * cli/cli-script.c (script_from_file): Add break for lint.
6421 2011-03-04 Michael Snyder <msnyder@vmware.com>
6423 * solib.c (reload_shared_libraries_1): Close memory leak.
6425 2011-03-03 Tom Tromey <tromey@redhat.com>
6428 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6431 2011-03-03 Michael Snyder <msnyder@vmware.com>
6433 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6434 fields of struct 'st' to zero.
6436 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6437 sal.pspace before calling set_current_source_symtab_and_line.
6439 2011-03-03 Yao Qi <yao@codesourcery.com>
6441 * Makefile.in (configure-common): Remove. Let Makefile
6442 in dir common to rebuild itself.
6443 (common/Makefile): Likewise.
6445 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6447 * utils.c (parse_escape): Add i18n markup in error message.
6449 2011-03-03 Yao Qi <yao@codesourcery.com>
6451 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6453 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6454 (displaced_write_reg, displaced_read_reg): Likewise.
6455 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6456 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6457 (cleanup_branch): Replace magic number 14 and 15 with
6458 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6460 2011-03-02 Michael Snyder <msnyder@vmware.com>
6462 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6464 * cli/cli-script.c (script_from_file): Add break for lint.
6466 * mdebugread.c (parse_partial_symbols): Fix indent.
6468 * target-descriptions.c (tdesc_gdb_type): No need to call
6469 xstrdup, callee saves a copy.
6471 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6473 * infcall.c (call_function_by_hand): Add break statements for lint.
6475 * utils.c (parse_escape): Escape the escape char.
6477 * python/py-inferior.c (build_inferior_list): Error out if
6478 PyList_Append fails.
6479 (gdbpy_inferiors): Error out if build_inferior_list fails.
6481 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6484 * record.c (record_restore): Move printf to before error return.
6486 2011-03-02 Yao Qi <yao@codesourcery.com>
6488 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6489 is_thumb and insn_size.
6490 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6491 on both ARM and Thumb mode.
6492 (arm_process_displaced_insn): Set is_thumb and insn_size.
6493 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6494 (arm_displaced_step_fixup): Likewise.
6496 2011-03-01 Michael Snyder <msnyder@vmware.com>
6498 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6500 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6502 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6504 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6506 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6509 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6510 which shadows function parameter.
6512 * tracepoint.c (create_tsv_from_upload): Superfluous call
6513 to xstrdup. Callee already calls xstrdup.
6515 * linespec.c (decode_line_1): Remove unnecessary null check.
6517 * tracepoint.c (scope_info): Fix mem leak, remove underused
6520 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6521 superfluous null check.
6523 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6524 (value_of_builtin_frame_fp_reg): Ditto.
6526 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6528 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6531 * linespec.c (decode_line_1): Check for null before dereference.
6533 * reverse.c (record_restore): Move null-check to before pointer
6536 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6538 * objc-lang.c (selectors_info): Add explanitory comment.
6539 (classes_info): Ditto.
6541 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6543 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6544 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6545 versions of the trampoline. Handle Thumb vs. ARM addresses.
6546 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6547 (arm_linux_init_abi): Install it.
6548 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6549 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6551 2011-02-28 Michael Snyder <msnyder@vmware.com>
6553 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6554 a little bigger, to avoid possibility of an overflow.
6556 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6557 buffers a little bigger, to avoid possibility of an overflow.
6559 * coffread.c (coff_getfilename): Add check to avoid overflow.
6561 * objc-lang.c (selectors_info): Add a small safety margin to
6563 (classes_info): Error out on too long REGEXP.
6565 * infrun.c (handle_inferior_event): Remove unused function call.
6567 * fork-child.c (fork_inferior): Remove ifdef'd code and
6570 * linux-thread-db.c (attach_thread): Discard unused value.
6572 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6574 * remote.c (remote_get_noisy_reply): Discard unused value.
6575 (remote_vcont_resume): Ditto.
6576 (remote_stop_ns): Ditto.
6578 * linespec.c (decode_objc): Delete unused variable.
6580 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6582 * dwarf2read.c (add_partial_symbol): Discard unused values.
6583 (read_base_type): Delete unused variable.
6585 * dbxread.c (read_dbx_symtab): Discard unused value.
6587 * eval.c (evaluate_subexp_standard): Delete unused variable,
6588 and discard unused values.
6590 * infcmd.c (_initialize_infcmd): Discard unused values.
6592 * stabsread.c (rs6000_builtin_type): Missing break statement.
6594 * dbxread.c (process_one_symbol): Discard unused value.
6596 * coffread.c (coff_end_symtab): Delete unused variable.
6598 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6599 (dwarf2_add_typedef): Delete unused variable.
6600 (read_namespace): Ditto.
6601 (dwarf_decode_macros): Ditto.
6603 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6605 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6607 * p-valprint.c (pascal_val_print): Discard unused value.
6609 * utils.c (nquery): Call va_end before return;
6613 * proc-service.c (ps_plog): Call va_end before return.
6615 2011-02-28 Tom Tromey <tromey@redhat.com>
6617 * python/python.c (gdbpy_value_cst): New global.
6618 (_initialize_python): Initialize it.
6619 * python/python-internal.h (gdbpy_value_cst): Declare.
6620 * python/py-value.c (convert_value_from_python): Use
6623 2011-02-28 Michael Snyder <msnyder@vmware.com>
6625 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6627 * breakpoint.c (catch_syscall_completer): Free malloced list.
6629 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6631 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6632 (lval_func_check_synthetic_pointer): Ditto.
6633 (lval_func_free_closure): Fix use-after-free.
6635 2011-02-28 Tom Tromey <tromey@redhat.com>
6637 * psymtab.c (expand_partial_symbol_tables): Use
6638 ALL_OBJFILE_PSYMTABS.
6640 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6642 * objc-lang.c (selectors_info): Error on too long REGEXP.
6644 2011-02-28 Michael Snyder <msnyder@vmware.com>
6646 * python/py-param.c (set_parameter_value): Add missing
6649 * linux-record.c (record_linux_system_call): Add missing
6652 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6654 * breakpoint.c (print_one_breakpoint_location): Remove unused
6655 argument PRINT_ADDRESS_BITS. Update callers.
6656 (print_one_breakpoint): Likewise.
6658 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6660 * breakpoint.c (wrap_indent_at_field): New function.
6661 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6662 Allocate ui_stream locally instead of using STB argument.
6663 (print_one_breakpoint_location): Update call.
6664 * ui-out.c (ui_out_query_field): New function.
6665 * ui-out.h (ui_out_query_field): Add prototype.
6667 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6669 From Michael Snyder <msnyder@vmware.com>
6670 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6672 2011-02-27 Michael Snyder <msnyder@vmware.com>
6674 * objc-lang.c (selectors_info): Prevent string overrun.
6676 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6679 * symtab.c (rbreak_command): Move variable 'file_name' to
6682 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6683 param with a local variable of the same name.
6685 2011-02-27 Michael Snyder <msnyder@vmware.com>
6687 * value.c (value_from_history_ref): New function.
6688 * value.h (value_from_history_ref): Export.
6689 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6690 to parse value history references.
6691 * cli/cli-utils.h (get_number_trailer): Update comment.
6693 2011-02-27 Michael Snyder <msnyder@vmware.com>
6695 * inferior.c (detach_inferior_command): Use get_number_or_range.
6696 (kill_inferior_command): Ditto.
6697 (remove_inferior_command): Ditto.
6698 (initialize_inferiors): Make command names plural.
6699 Update help strings.
6701 2011-02-27 Michael Snyder <msnyder@vmware.com>
6703 * darwin-nat-info.c: Fix comment typo.
6704 * dwarf2expr.h: Ditto.
6705 * fbsd-nat.c: Ditto.
6706 * fbsd-nat.h: Ditto.
6707 * frame-unwind.h: Ditto.
6709 * hppa-hpux-tdep.c: Ditto.
6710 * i386-linux-nat.c: Ditto.
6711 * linux-nat.c: Ditto.
6712 * nbsd-nat.c: Ditto.
6713 * nbsd-nat.h: Ditto.
6714 * ppc-linux-tdep.c: Ditto.
6717 * tui/tui-winsource.c: Ditto.
6719 2011-02-26 Michael Snyder <msnyder@vmware.com>
6721 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6723 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6725 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6726 with a local variable of the same name.
6728 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6729 param with a local variable of the same name.
6730 (i387_supply_xsave): Ditto.
6732 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6733 that it does not shadow a function parameter.
6735 * i386-nat.c (i386_length_and_rw_bits): Document that case
6736 statement is meant to fall through.
6738 * expprint.c (dump_subexp_body_standard): Document that case
6739 statement is meant to fall through.
6741 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6742 dead if statement. Condition can't be false.
6744 2011-02-25 Michael Snyder <msnyder@vmware.com>
6746 * arm-tdep.c: Fix typos in comments.
6747 * bsd-uthread.c: Ditto.
6748 * completer.c: Ditto.
6750 * cp-namespace.c: Ditto.
6751 * cp-support.c: Ditto.
6752 * cris-tdep.c: Ditto.
6754 * dwarf2read.c: Ditto.
6756 * gdbtypes.h: Ditto.
6757 * inferior.h: Ditto.
6758 * mdebugread.c: Ditto.
6759 * mips-tdep.c: Ditto.
6760 * ppc-linux-nat.c: Ditto.
6761 * ppc-linux-tdep.c: Ditto.
6762 * printcmd.c: Ditto.
6763 * sol-thread.c: Ditto.
6764 * solib-frv.c: Ditto.
6766 * sparc64-tdep.c: Ditto.
6767 * spu-tdep.c: Ditto.
6768 * stabsread.c: Ditto.
6773 * python/py-block.c: Ditto.
6774 * python/py-symbol.c: Ditto.
6775 * python/py-symtab.c: Ditto.
6776 * python/py-value.c: Ditto.
6777 * tui/tui-win.c: Ditto.
6779 2011-02-25 Michael Snyder <msnyder@vmware.com>
6781 * inferior.c (print_inferior): Accept a string instead of an int
6782 for requested_inferiors, and use get_number_or_range to parse it.
6783 (info_inferiors_command): Pass args string to print_inferior.
6784 (initialize_inferiors): Change help string for info inferiors.
6785 * inferior.h (print_inferior): Export prototype change.
6787 2011-02-25 Tom Tromey <tromey@redhat.com>
6789 * common/ax.def (invalid2): Set to 0x31.
6791 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6793 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6795 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6797 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6799 2011-02-24 Michael Snyder <msnyder@vmware.com>
6801 * Makefile.in (clean): Make clean should remove generated files
6802 observer.h and observer.inc.
6804 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6806 Revert the following patch (not approved yet):
6807 2011-02-21 Hui Zhu <teawater@gmail.com>
6808 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6809 * ax-gdb.c (gen_printf_expr_callback): New function.
6810 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6811 * ax-general.c (ax_memcpy): New function.
6812 (ax_print): Handle "printf".
6814 * ax.h (ax_memcpy): Forward declare.
6815 * common/ax.def (invalid2): Removed.
6816 (printf): New entry.
6817 * printcmd.c (printcmd.h): New include.
6818 (string_printf): New function.
6819 (ui_printf): Removed.
6820 (printf_command): Remove static. Call string_printf.
6821 (eval_command): Call string_printf.
6822 * printcmd.h: New file.
6823 * tracepoint.c (validate_actionline,
6824 encode_actions_1): handle printf_command.
6826 2011-02-23 Tom Tromey <tromey@redhat.com>
6828 * ax-general.c (ax_pick): Add missing newline.
6830 2011-02-23 Michael Snyder <msnyder@vmware.com>
6832 * breakpoint.c (breakpoint_1): Change first argument from an int
6833 to a char pointer, so that the function now accepts a list of
6834 breakpoints rather than just one. Use new function
6835 'number_is_in_list' to implement.
6836 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6837 (watchpoints_info): Ditto.
6838 (tracepoints_info): Ditto.
6839 (maintenance_info_breakpoints): Ditto.
6840 (_initialize_breakpoint): Update help strings to reflect the fact
6841 that these functions can now take more than one argument.
6842 * cli/cli-utils.c (number_is_in_list): New function.
6843 * cli/cli-utils.h (number_is_in_list): Export.
6845 2011-02-23 Michael Snyder <msnyder@vmware.com>
6847 * memattr.c (mem_enable_command): Use get_number_or_range.
6848 (mem_disable_command): Ditto.
6849 (mem_delete_command): Ditto.
6850 (_initialize_mem): Tweak usage message to reflect multiple
6853 2011-02-22 Doug Evans <dje@google.com>
6855 Add gdb.lookup_global_symbol python function.
6857 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6858 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6859 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6861 2011-02-22 Tom Tromey <tromey@redhat.com>
6863 * language.c (language_class_name_from_physname): Rename
6864 'curr_language' argument to 'lang'; use in body.
6866 2011-02-22 Michael Snyder <msnyder@vmware.com>
6868 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6870 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6872 * frame-unwind.h: Fix comment to mention the this frame, not the
6875 2011-02-22 Tom Tromey <tromey@redhat.com>
6877 * symfile.c (auto_solib_limit): Remove.
6878 * symfile.h (auto_solib_limit): Remove.
6880 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6882 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6884 2011-02-21 Michael Snyder <msnyder@vmware.com>
6886 * gdbthread.h (print_thread_info): Change prototype.
6887 * thread.c (print_thread_info): Accept char* instead of int for
6888 requested_threads argument. Use new function number_is_in_list
6889 to determine which threads to list.
6890 (info_threads_command): Pass char* to print_thread_info.
6891 * cli/cli-utils.c (number_is_in_list): New function.
6892 * cli/cli-utils.h (number_is_in_list): Export.
6893 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6895 (print_one_inferior): Ditto.
6896 (mi_cmd_list_thread_groups): Ditto.
6898 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6900 * common/Makefile.in (CFLAGS): New.
6901 (COMPILE): Add $(CFLAGS).
6903 2011-02-21 Tom Tromey <tromey@redhat.com>
6905 * breakpoint.c (catch_syscall_command_1): Fix typo.
6907 2011-02-21 Tom Tromey <tromey@redhat.com>
6909 * reverse.c: Include cli-utils.h.
6910 * printcmd.c: Include cli-utils.h.
6911 (string_printf): Use skip_spaces.
6912 * cli/cli-utils.h: New file.
6913 * cli/cli-utils.c: New file.
6914 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6915 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6916 * breakpoint.h (get_number, get_number_or_range): Move to
6918 * breakpoint.c: Include cli-utils.h.
6919 (get_number_trailer, get_number, get_number_or_range)
6920 (ep_skip_leading_whitespace): Move to cli-utils.c.
6921 (create_breakpoint_sal, find_condition_and_thread)
6922 (decode_static_tracepoint_spec, watch_command_1)
6923 (watch_maybe_just_location, ep_parse_optional_if_clause)
6924 (catch_fork_command_1, catch_exec_command_1)
6925 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6926 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6927 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6928 (HFILES_NO_SRCDIR): Add cli-utils.h.
6929 (cli-utils.o): New target.
6931 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6933 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6934 before calling discard_all_inferiors.
6936 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6938 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6939 (struct builtin_opencl_type): Remove.
6940 (builtin_opencl_type): Change return type to "struct type **".
6941 (lookup_opencl_vector_type): Update caller.
6942 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6943 (build_opencl_types): Install plain array of "struct type *"
6944 instead of "struct builtin_opencl_type".
6946 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6947 Ulrich Weigand <uweigand@de.ibm.com>
6949 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6950 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6951 (struct arm_linux_hwbp_cap): New type.
6952 (arm_linux_get_hwbp_cap): New function.
6953 (arm_linux_get_hw_breakpoint_count): Likewise.
6954 (arm_linux_get_hw_watchpoint_count): Likewise.
6955 (arm_linux_can_use_hw_breakpoint): Likewise.
6956 (arm_hwbp_type): New type.
6957 (arm_hwbp_control_t): Likewise.
6958 (struct arm_linux_hw_breakpoint): Likewise.
6959 (struct arm_linux_thread_points): Likewise.
6960 (arm_threads): New global variable.
6961 (arm_linux_find_breakpoints_by_tid): New function.
6962 (arm_hwbp_control_initialize): Likewise.
6963 (arm_hwbp_control_is_enabled): Likewise.
6964 (arm_hwbp_control_disable): Likewise.
6965 (arm_linux_hw_breakpoint_initialize): Likewise.
6966 (arm_linux_get_hwbp_type): Likewise.
6967 (arm_linux_hw_watchpoint_initialize): Likewise.
6968 (arm_linux_hw_breakpoint_equal): Likewise.
6969 (arm_linux_insert_hw_breakpoint1): Likewise.
6970 (arm_linux_remove_hw_breakpoint1): Likewise.
6971 (arm_linux_insert_hw_breakpoint): Likewise.
6972 (arm_linux_remove_hw_breakpoint): Likewise.
6973 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6974 (arm_linux_insert_watchpoint): Likewise.
6975 (arm_linux_remove_watchpoint): Likewise.
6976 (arm_linux_stopped_data_address): Likewise.
6977 (arm_linux_stopped_by_watchpoint): Likewise.
6978 (arm_linux_watchpoint_addr_within_range): Likewise.
6979 (arm_linux_new_thread): Likewise.
6980 (arm_linux_thread_exit): Likewise.
6981 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6982 related target callbacks. Register arm_linux_new_thread and
6983 arm_linux_thread_exit.
6984 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6985 * arm-tdep.c (arm_pc_is_thumb): Make global.
6986 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6988 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6990 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6991 per-frame locations while within a function epilogue.
6993 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6995 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6996 to GNU coding standards.
6998 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7000 Allow use of mingw native on Windows 95 OS.
7001 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7002 (ser_windows_close): Only call CancelIo if function exists.
7003 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7004 to check for existence of CancelIo function in kernel32 DLL.
7006 2011-02-21 Hui Zhu <teawater@gmail.com>
7008 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7009 * ax-gdb.c (gen_printf_expr_callback): New function.
7010 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7011 * ax-general.c (ax_memcpy): New function.
7012 (ax_print): Handle "printf".
7014 * ax.h (ax_memcpy): Forward declare.
7015 * common/ax.def (invalid2): Removed.
7016 (printf): New entry.
7017 * printcmd.c (printcmd.h): New include.
7018 (string_printf): New function.
7019 (ui_printf): Removed.
7020 (printf_command): Remove static. Call string_printf.
7021 (eval_command): Call string_printf.
7022 * printcmd.h: New file.
7023 * tracepoint.c (validate_actionline,
7024 encode_actions_1): handle printf_command.
7026 2011-02-19 Michael Snyder <msnyder@vmware.com>
7028 * reverse.c (delete_one_bookmark): Argument is now bookmark
7029 id rather than pointer to bookmark struct.
7030 (delete_bookmark_command): Use get_number_or_range.
7031 (goto_bookmark_command): Parse with get_number instead of strtoul.
7032 (bookmark_1): New function. Print info for one bookmark.
7033 (bookmarks_info): Use get_number_or_range and bookmark_1.
7035 2011-02-18 Michael Snyder <msnyder@vmware.com>
7037 * thread.c (info_threads_command): Re-implement using
7038 get_number_or_range.
7039 (thread_apply_command): Ditto.
7041 2011-02-18 Tom Tromey <tromey@redhat.com>
7043 * common/ax.def: New file.
7044 * ax.h (enum agent_op): Use ax.def.
7045 * ax-general.c (aop_map): Use ax.def.
7047 2011-02-18 Tom Tromey <tromey@redhat.com>
7049 * ax-general.c (aop_map): Add pick and rot.
7050 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7051 <DW_OP_rot>: Implement.
7052 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7054 * ax-general.c (ax_pick): New function.
7056 2011-02-18 Tom Tromey <tromey@redhat.com>
7058 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7060 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 Tom Tromey <tromey@redhat.com>
7063 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7064 make_symbol_overload_list_block with NULL BLOCK.
7065 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7067 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7069 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7070 * breakpoint.h (get_number_or_range): Declare.
7071 * printcmd.c (ALL_DISPLAYS): Declare.
7072 (delete_display): Reimplement taking a display pointer.
7073 (undisplay_command): Accept a range of displays to delete, using
7074 get_number_or_range.
7076 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7078 * c-valprint.c (c_val_print): Add embedded_offset to address
7079 for arrays of unspecified length.
7080 * p-valprint.c (pascal_val_print): Likewise.
7082 2011-02-18 Yao Qi <yao@codesourcery.com>
7084 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7085 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7086 (thumb_process_displaced_insn): New.
7087 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7088 call to arm_process_displaced_insn.
7089 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7091 2011-02-17 Tom Tromey <tromey@redhat.com>
7093 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7094 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7095 compile_dwarf_to_ax. No longer static. Call
7096 dwarf2_compile_cfa_to_ax.
7097 (locexpr_tracepoint_var_ref): Update.
7098 (loclist_tracepoint_var_ref): Update.
7099 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7100 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7101 argument; add 'gdbarch' and 'pc'.
7102 (dwarf2_compile_cfa_to_ax): New function.
7103 (dwarf2_frame_cache): Update.
7105 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7107 * ada-lang.c (ada_type_of_array): Fix the size of the array
7108 in the case of an unconstrained packed array.
7110 2011-02-17 Yao Qi <yao@codesourcery.com>
7112 * common/Makefile.in: Add more targets for make.
7114 2011-02-16 Tom Tromey <tromey@redhat.com>
7116 * dwarf2loc.c (unimplemented): Fix typo.
7118 2011-02-16 Tom Tromey <tromey@redhat.com>
7120 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7121 (compile_dwarf_to_ax) <default>: Use unimplemented.
7122 <DW_OP_deref>: Update.
7123 (disassemble_dwarf_expression): Update.
7124 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7125 (decode_locdesc): Update.
7126 * dwarf2expr.h (dwarf_stack_op_name): Update.
7128 2011-02-16 Tom Tromey <tromey@redhat.com>
7130 * ax.h (struct aop_map) <name>: Now const.
7132 2011-02-16 Tom Tromey <tromey@redhat.com>
7134 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7137 2011-02-16 Yao Qi <yao@codesourcery.com>
7139 * infrun.c (get_displaced_step_closure_by_addr): New.
7140 * inferior.h: Declare it.
7141 * arm-tdep.c: (arm_pc_is_thumb): Call
7142 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7145 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7146 Jan Kratochvil <jan.kratochvil@redhat.com>
7149 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7151 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7152 Jan Kratochvil <jan.kratochvil@redhat.com>
7154 * value.c (value_contents_copy_raw): Extend describing comment.
7155 Assert that the destination contents we're overwriting are wholly
7157 (value_contents_copy): Extend describing comment.
7159 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7160 Jan Kratochvil <jan.kratochvil@redhat.com>
7162 * value.c (value_available_contents_eq): Remove redundant local
7163 variables. Fix available contents comparision.
7164 * value.h (value_available_contents_eq): Extend describing
7167 2011-02-16 Yao Qi <yao@codesourcery.com>
7169 * thread.c (info_threads_command): Add missing i18n markup and remove
7172 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7174 * breakpoint.c (longjmp_names): New variable.
7175 (struct breakpoint_objfile_data): New type.
7176 (breakpoint_objfile_key): New variable.
7177 (msym_not_found): New variable.
7178 (msym_not_found_p): New predicate.
7179 (get_breakpoint_objfile_data): New function.
7180 (create_overlay_event_breakpoint): Check per-objfile cache for
7182 (create_longjmp_master_breakpoint): Likewise.
7183 (create_std_terminate_master_breakpoint): Likewise.
7184 (create_exception_master_breakpoint): Likewise.
7185 (_initialize_breakpoint): Register per-objfile data key.
7187 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7189 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7191 (create_longjmp_master_breakpoint): Loop over longjmp names.
7192 (create_std_terminate_master_breakpoint): Const-propagate parameter
7194 (update_breakpoints_after_exec): Adjust.
7195 (breakpoint_re_set): Adjust.
7197 2011-02-15 Michael Snyder <msnyder@vmware.com>
7199 * thread.c (info_threads_command): Process arg as thread id,
7200 or list of thread ids.
7201 (thread_find_command): New command.
7202 (_initialize_thread): Document argument for info threads.
7203 Document 'thread find' command.
7204 * NEWS: Document new command "thread find".
7206 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7208 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7209 * aclocal.m4: Regenerated with aclocal-1.11.1.
7210 * common/configure: Regenerate with autoconf-2.64.
7212 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7214 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7215 bool data type to a size of one byte.
7217 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7218 Jan Kratochvil <jan.kratochvil@redhat.com>
7220 * target.c (memory_xfer_live_readonly_partial): Document where to
7221 look for interface description.
7223 2011-02-15 Yao Qi <yao@codesourcery.com>
7226 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7227 order to store PC value on stack instead of text section.
7229 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7231 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7232 the EFP register set size.
7233 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7234 data from the VMX register.
7235 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7236 and write data from/to the VMX register.
7238 2011-02-14 Michael Snyder <msnyder@vmware.com>
7240 * command.h (enum command_class): New class 'no_set_class', for
7241 "show" commands without a corresponding "set" command.
7242 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7243 * copying.c (_initialize_copying): Ditto for "show copying" and
7245 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7247 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7248 which there is no corresponding "set" command (eg. "show copying").
7250 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7251 Jan Kratochvil <jan.kratochvil@redhat.com>
7253 * exec.c (section_table_available_memory): Change `len' parameter
7255 * exec.h (section_table_available_memory): Ditto.
7256 * value.h (read_value_memory): Rename the `offset' parameter to
7259 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7260 Jan Kratochvil <jan.kratochvil@redhat.com>
7262 * memrange.c (compare_mem_ranges): Mention sort order in
7264 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7265 * tracepoint.c (traceframe_available_memory): Extend comment to
7266 mention what happens to RESULT when the target does not support
7269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7270 Jan Kratochvil <jan.kratochvil@redhat.com>
7272 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7277 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7278 No longer handle NULL values.
7280 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7282 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7283 * value.c: Include "exceptions.h".
7284 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7286 * cp-abi.c: Include gdb_assert.h.
7287 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7288 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7290 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7291 parameters. No longer returns -1 on error.
7292 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7294 * cp-valprint.c: Include exceptions.h.
7295 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7296 the baseclass_offset. Handle unavailable base classes. Use
7297 val_print_invalid_address.
7298 * p-valprint.c: Include exceptions.h.
7299 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7300 when fetching the baseclass_offset. No longer expect
7301 baseclass_offset returning -1. Handle unavailable base classes.
7302 Use val_print_invalid_address.
7303 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7304 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7305 `embedded_offset' and `val' parameters. Adjust.
7306 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7307 parameter, and change its type to gdb_byte pointer. Add
7308 `embedded_offset' and `val' parameters. Adjust. No longer expect
7309 baseclass_offset returning -1.
7310 (value_dynamic_cast): Use value_contents_for_printing rather than
7311 value_contents. Adjust.
7312 (search_struct_field): No longer expect baseclass_offset returning
7314 (search_struct_method): If reading memory from the target is
7315 necessary, wrap it in a new value to pass to baseclass_offset. No
7316 longer expect baseclass_offset returning -1.
7317 (find_method_list): No longer expect baseclass_offset returning
7318 -1. Use value_contents_for_printing rather than value_contents.
7319 * valprint.c (val_print_invalid_address): New function.
7320 * valprint.h (val_print_invalid_address): Declare.
7321 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7322 and `val' parameters. No longer expect baseclass_offset returning
7324 * gnu-v2-abi.c: Include "exceptions.h".
7325 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7326 parameters. Handle unavailable memory. Recurse through
7327 gnuv2_baseclass_offset directly, rather than through
7328 baseclass_offset. No longer returns -1 on not found, instead
7330 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7331 `val' parameters. Adjust.
7333 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7335 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7336 almost but not quite adjacent.
7338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7340 * value.h (value_entirely_available): Declare.
7341 * value.c (value_entirely_available): New function.
7342 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7343 real type if the pointer is unavailable.
7345 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7347 * valops.c (value_repeat): Use read_value_memory instead of
7350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7352 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7353 * value.c (value_contents_copy_raw, value_contents_copy): New
7355 (value_primitive_field): Use value_contents_copy_raw instead of
7357 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7359 (value_array, value_slice): Ditto.
7360 * valarith.c (value_subscripted_rvalue): Use
7361 value_contents_copy_raw instead of memcpy.
7363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7365 <unavailable> references.
7367 * valops.c (get_value_at): Use value_from_contents_and_address,
7368 avoiding read_memory.
7370 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7372 * c-valprint.c (c_val_print): Print a string with unavailable
7373 contents as an array.
7375 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7377 * value.h (unpack_bits_as_long): Delete declaration.
7378 (unpack_value_bits_as_long): Declare.
7379 (unpack_value_field_as_long): Declare.
7380 (value_field_bitfield): Declare.
7381 * value.c (unpack_bits_as_long): Rename to...
7382 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7383 value parameters. Return the extracted result in a new output
7384 parameter. If the value contents are unavailable, return false,
7385 otherwise return true.
7386 (unpack_value_bits_as_long): New.
7387 (unpack_field_as_long): Rename to...
7388 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7389 Add embedded_offset and value parameters. Return the extracted
7390 result in a new output parameter. If the value contents are
7391 unavailable, return false, otherwise return true.
7392 (unpack_value_field_as_long): New.
7393 (unpack_field_as_long_1): New.
7394 (unpack_field_as_long): Reimplement as wrapper around
7395 unpack_value_field_as_long_1.
7396 (value_field_bitfield): New function.
7397 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7398 unpack_value_bits_as_long. Mark the value as unavailable, if it
7400 * jv-valprint.c (java_print_value_fields): Use
7401 value_field_bitfield.
7402 * p-valprint.c (pascal_object_print_value_fields): Use
7403 value_field_bitfield.
7404 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7408 * value.c (get_internalvar_integer): Also return the int value of
7409 TYPE_CODE_INT INTERNALVAR_VALUE values.
7410 (set_internalvar): Don't special case TYPE_CODE_INT.
7412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7414 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7415 INTERNALVAR_POINTER.
7417 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7418 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7419 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7421 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7423 * value.h (value_available_contents_eq): Declare.
7424 * value.c (find_first_range_overlap): New function.
7425 (value_available_contents_eq): New function.
7426 * valprint.c (val_print_array_elements): Use
7427 value_available_contents_eq.
7428 * ada-valprint.c (val_print_packed_array_elements): Use
7429 value_available_contents_eq.
7430 * jv-valprint.c (java_value_print): Use
7431 value_available_contents_eq.
7433 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7435 * target.c (target_read_live_memory): New function.
7436 (memory_xfer_live_readonly_partial): New.
7437 (memory_xfer_partial): If reading from a traceframe, fallback to
7438 reading unavailable read-only memory from read-only regions of
7440 * tracepoint.c (disconnect_tracing): Adjust.
7441 (set_current_traceframe): New, factored out from
7442 set_traceframe_number.
7443 (set_traceframe_number): Reimplement to only change the traceframe
7444 number on the GDB side.
7445 (do_restore_current_traceframe_cleanup): Adjust.
7446 (make_cleanup_restore_traceframe_number): New.
7447 (cur_traceframe_number): New global.
7448 (tfile_open): Set cur_traceframe_number to no traceframe.
7449 (set_tfile_traceframe): New function.
7450 (tfile_trace_find): If looking up a traceframe using any method
7451 other than by number, make sure the current tfile traceframe
7452 matches gdb's current traceframe. Update the current tfile
7453 traceframe if the lookup succeeded.
7454 (tfile_fetch_registers, tfile_xfer_partial)
7455 (tfile_get_trace_state_variable_value): Make sure the remote
7456 traceframe matches gdb's current traceframe.
7457 * remote.c (remote_traceframe_number): New global.
7458 (remote_open_1): Set it to -1.
7459 (set_remote_traceframe): New function.
7460 (remote_fetch_registers, remote_store_registers)
7461 (remote_xfer_memory, remote_xfer_partial)
7462 (remote_get_trace_state_variable_value): Make sure the remote
7463 traceframe matches gdb's current traceframe.
7464 (remote_trace_find): If looking up a traceframe using any method
7465 other than by number, make sure the current remote traceframe
7466 matches gdb's current traceframe. Update the current remote
7467 traceframe if the lookup succeeded.
7468 * infrun.c (fetch_inferior_event): Adjust.
7469 * tracepoint.h (set_current_traceframe): Declare.
7470 (get_traceframe_number, set_traceframe_number): Add describing
7473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7475 Mark pieces of values as unavailable if the corresponding memory
7478 * valops.c: Include tracepoint.h.
7479 (value_fetch_lazy): Use read_value_memory.
7480 (read_value_memory): New.
7481 * value.h (read_value_memory): Declare.
7482 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7483 * exec.c (section_table_available_memory): New function.
7484 * exec.h (section_table_available_memory): Declare.
7486 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7488 * Makefile.in (SFILES): Add memrange.c.
7489 (HFILES_NO_SRCDIR): Add memrange.h.
7490 (COMMON_OBS): Add memrange.o.
7491 * memrange.c: New file.
7492 * memrange.h: New file.
7493 * tracepoint.c: Include memrange.h.
7494 (struct mem_range): Delete.
7495 (mem_range_s): Delete.
7496 (traceframe_available_memory): New function.
7497 * tracepoint.h (traceframe_available_memory): Declare.
7499 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7501 * target.h (struct traceframe_info): Forward declare.
7502 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7503 (struct target_ops) <to_traceframe_info>: New field.
7504 (target_traceframe_info): New.
7505 * target.c (update_current_target): Inherit and default
7507 * remote.c (PACKET_qXfer_traceframe_info): New.
7508 (remote_protocol_features): Register qXfer:traceframe-info:read.
7509 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7510 (remote_traceframe_info): New.
7511 (init_remote_ops): Install it.
7512 (_initialize_remote): Install "set/show remote traceframe-info"
7514 * tracepoint.h (parse_traceframe_info): Declare.
7515 * tracepoint.c (struct mem_range): New.
7516 (mem_range_s): New typedef.
7517 (struct traceframe_info): New.
7518 (traceframe_info): New global.
7519 (free_traceframe_info): New function.
7520 (clear_traceframe_info): New function.
7521 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7523 (build_traceframe_info): New function.
7524 (tfile_traceframe_info): New function.
7525 (init_tfile_ops): Install tfile_traceframe_info.
7526 (traceframe_info_start_memory, free_result): New functions.
7527 (memory_attributes, traceframe_info_elements): New globals.
7528 (parse_traceframe_info, get_traceframe_info): New functions.
7529 * features/traceframe-info.dtd: New file.
7530 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7532 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7534 Base support for <unavailable> value contents.
7536 * value.h (value_bytes_available): Declare.
7537 (mark_value_bytes_unavailable): Declare.
7538 * value.c (struct range): New struct.
7539 (range_s): New typedef.
7540 (ranges_overlap): New function.
7541 (range_lessthan): New function.
7542 (ranges_contain_p): New function.
7543 (struct value) <unavailable>: New field.
7544 (value_bytes_available): New function.
7545 (mark_value_bytes_unavailable): New function.
7546 (require_not_optimized_out): Constify parameter.
7547 (require_available): New function.
7548 (value_contents_all, value_contents): Require all bytes be
7550 (value_free): Free `unavailable'.
7551 (value_copy): Copy `unavailable'.
7552 * valprint.h (val_print_unavailable): Declare.
7553 * valprint.c (valprint_check_validity): Rename `offset' parameter
7554 to `embedded_offset'. If printing a scalar, check whether the
7555 value chunk is available.
7556 (val_print_unavailable): New.
7557 (val_print_scalar_formatted): Check whether the value is
7559 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7560 pretty-printing unavailable values.
7562 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7564 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7565 * c-typeprint.c (c_type_print_args): Update the function comment. New
7566 variable param_type, initialize it. Remove const/volatile qualifiers
7567 for language_cplus and !show_artificial. Use param_type.
7569 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7571 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7572 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7573 * symtab.h (struct symtab) <next>: Comment extension.
7575 2011-02-12 Yao Qi <yao@codesourcery.com>
7577 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7579 2011-02-11 Yao Qi <yao@codesourcery.com>
7581 * common/Makefile.in: Add copyright header.
7583 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7585 * infrun.c (proceed): Move switching out and in of tfind mode from
7587 (fetch_inferior_event): ... to here.
7589 2011-02-11 Yao Qi <yao@codesourcery.com>
7591 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7593 * configure.ac: Add common to sub dir.
7594 * configure: Regenerate.
7596 2011-02-11 Yao Qi <yao@codesourcery.com>
7600 * common/Makefile.in: New.
7601 * common/configure.ac: New.
7602 * common/aclocal.m4: New.
7603 * common/configure: Generate.
7605 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7607 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7608 side of the parenthesis.
7611 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7612 * vec.h (VEC_block_remove): Fix comment.
7614 2011-02-08 Michael Snyder <msnyder@vmware.com>
7616 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7618 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7620 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7621 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7624 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7627 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7629 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7630 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7632 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7634 * dwarf2read.c (read_subroutine_type): Set special calling
7635 convention flag for functions compiled by IBM XL C for OpenCL.
7636 * ppc-sysv-tdep.c: Include "dwarf2.h"
7637 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7639 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7640 IBM OpenCL vector types calling convention.
7641 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7642 (ppc_sysv_abi_broken_return_value): Likewise.
7643 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7644 types calling convention.
7645 (ppc64_sysv_abi_return_value): Likewise.
7646 * spu-tdep.c: Include "dwarf2.h"
7647 (spu_return_value): Implement IBM OpenCL vector types calling
7650 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7652 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7653 correct ABI for AltiVec vector arguments.
7655 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7657 * valprint.c (val_print): Extend comment.
7658 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7659 interface explanation to val_print.
7660 (ada_val_print_array): Adjust comment to current interface.
7661 (print_field_values): Adjust comment to current interface.
7662 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7663 explanation to val_print.
7664 * f-valprint.c (f_val_print): Ditto.
7665 * jv-valprint.c (java_val_print): Ditto.
7666 * m2-valprint.c (m2_val_print): Ditto.
7667 * p-valprint.c (pascal_val_print): Ditto.
7669 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7671 * breakpoint.c (parse_breakpoint_sals): Fix description.
7673 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7674 Oguz Kayral <oguzkayral@gmail.com>
7676 * python/py-inferior.c (python_on_normal_stop): New function.
7677 (python_on_resume): New function.
7678 (python_inferior_exit): New function.
7679 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7680 inferior_exit observers.
7681 * python/py-evtregistry.c: New file.
7682 * python/py-threadevent.c : New file.
7683 * python/py-event.c: New file.
7684 * python/py-evts.c: New file.
7685 * python/py-continueevent.c: New file.
7686 * python/py-bpevent.c: New file.
7687 * python/py-signalevent.c: New file.
7688 * python/py-exetiedevent.c: New file.
7689 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7690 Move struct breakpoint_object from here...
7691 * python/python-internal.h: ... to here.
7692 * python/py-event.h: New file.
7693 * python/py-events.h: New file.
7694 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7695 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7696 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7697 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7698 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7699 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7700 Add build rules for all the above.
7702 2011-02-04 Tom Tromey <tromey@redhat.com>
7704 * dwarf2read.c (dwarf2_section_empty_p): New function.
7705 (dwarf2_read_section): Use dwarf2_section_empty_p.
7706 (dwarf2_section_size): New function.
7707 (dwarf2_get_section_info): Unconditionally read section.
7708 (dwarf2_read_index): Use dwarf2_section_empty_p.
7709 (partial_read_comp_unit_head): Use dwarf2_section_size.
7710 (dwarf2_symbol_mark_computed): Likewise.
7712 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7714 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7716 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7718 * mips-linux-tdep.c: Include xml-syscall.h.
7719 (mips_linux_get_syscall_number): New function.
7720 (mips_linux_init_abi): Add calls to
7721 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7722 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7723 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7724 * syscalls/mips-n32-linux.xml: New file.
7725 * syscalls/mips-n64-linux.xml: New file.
7726 * syscalls/mips-o32-linux.xml: New file.
7728 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7730 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7731 Complain about inverted range entries.
7732 (dwarf2_record_block_ranges): Likewise.
7734 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7737 * breakpoint.c (update_watchpoint): Fix name of the
7738 update_global_location_list function.
7739 (print_one_breakpoint): Fix typo.
7740 (_initialize_breakpoint): Remove extra space in hbreak help
7742 * breakpoint.h (struct bp_location) <length>: Fix field
7745 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7747 * regcache.c (registers_changed_ptid): Don't explictly always
7748 clear `current_regcache'. Only clear current_thread_ptid and
7749 current_thread_arch when PTID matches. Only reinit the frame
7750 cache if PTID matches the current inferior_ptid. Move alloca(0)
7752 (registers_changed): ... here.
7754 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7756 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7757 starts with __stack_chk_guard as stack guard symbol.
7759 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7761 * disasm.c (compare_lines): Handle the end of sequence markers
7762 within the line table to better support disassembling over
7763 compilation unit boundaries.
7765 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7767 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7768 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7769 implementation even if no symbols are available.
7770 (thumb_analyze_prologue): Update call to skip_prologue_function.
7771 (arm_analyze_prologue): Likewise.
7773 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7775 * arm-tdep.c: Include "observer.h".
7776 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7777 (arm_exidx_data_key): New static variable.
7778 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7779 (struct arm_exidx_data): Likewise.
7780 (arm_exidx_data_free): New function.
7781 (arm_compare_exidx_entries): Likewise.
7782 (arm_obj_section_from_vma): Likewise.
7783 (arm_exidx_new_objfile): Likewise.
7784 (arm_find_exidx_entry): Likewise.
7785 (arm_exidx_fill_cache): Likewise.
7786 (arm_exidx_unwind_sniffer): Likewise.
7787 (arm_exidx_unwind): New global variable.
7788 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7789 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7790 observer. Register arm_exidx_data_key as objfile data.
7792 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7794 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7795 due to accessing uninitialized variable. Fix indentation.
7797 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7799 * c-valprint.c (c_value_print): When doing virtual base pointer
7800 adjustment, create a new value with adjusted contents rather than
7801 changing the contents of the value being printed (and getting it
7804 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7806 * xml-support.c (xml_find_attribute): New.
7807 (xinclude_start_include): Use it.
7808 * xml-support.h (xml_find_attribute): Declare.
7809 * memory-map.c (memory_map_start_memory)
7810 (memory_map_start_property): Use xml_find_attribute.
7811 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7813 * remote.c (start_thread): Use xml_find_attribute.
7814 * solib-target.c (library_list_start_segment)
7815 (library_list_start_section, library_list_start_library)
7816 (library_list_start_list): Use xml_find_attribute.
7817 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7818 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7819 (tdesc_start_field): Use xml_find_attribute.
7821 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7823 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7824 (BUILD_OCL_VTYPES): Update.
7826 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7828 * configure.ac: Work around non-GNU sed limitation when computing
7829 python version number.
7830 * configure: Regenerate.
7832 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7834 Fix debug printing of TYPE_INSTANCE.
7835 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7836 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7838 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7841 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7842 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7843 * ada-operator.inc: Rename the file to ...
7844 * ada-operator.def: ... here, wrap all the entries by macro OP.
7845 * expprint.c (op_name_standard): Remove all the entries. Include
7846 "std-operator.def" instead.
7847 * expression.h (enum exp_opcode): Include "std-operator.def" and
7848 "ada-operator.def". Move all the entries ...
7849 * std-operator.def: ... here, wrap all the entries by macro OP.
7851 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7853 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7854 * breakpoint.c (remove_jit_event_breakpoints): New function.
7855 * jit.c (jit_descriptor_addr): Delete.
7856 (registering_code): Delete.
7857 (clear_int): Delete.
7858 (jit_inferior_data): New variable.
7859 (struct jit_inferior_data): New type.
7860 (get_jit_inferior_data): New function.
7861 (jit_inferior_data_cleanup): New function.
7862 (jit_read_descriptor): Adjust.
7863 (jit_register_code): Adjust.
7864 (jit_breakpoint_re_set_internal): New function; move code here ...
7865 (jit_inferior_init): ... from here.
7866 (jit_breakpoint_re_set): Adjust.
7867 (jit_reset_inferior_data_and_breakpoints): New function.
7868 (jit_inferior_created_observer): Adjust.
7869 (jit_inferior_exit_hook): Adjust.
7870 (jit_executable_changed_observer): New function.
7871 (jit_event_handler): Adjust.
7872 (_initialize_jit): Adjust.
7874 2011-01-31 Michael Snyder <msnyder@vmware.com>
7876 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7879 2011-01-31 Tom Tromey <tromey@redhat.com>
7882 * python/python.c (execute_gdb_command): Call
7883 prevent_dont_repeat.
7884 * top.c (suppress_dont_repeat): New global.
7885 (dont_repeat): Use it.
7886 (prevent_dont_repeat): New function.
7887 * command.h (prevent_dont_repeat): Declare.
7889 2011-01-31 Tom Tromey <tromey@redhat.com>
7891 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7892 * python/py-breakpoint.c (bppy_set_silent): Use
7893 breakpoint_set_silent.
7894 (bppy_set_thread): Use breakpoint_set_thread.
7895 (bppy_set_task): Use breakpoint_set_task.
7896 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7897 (breakpoint_set_task): Declare.
7898 (make_breakpoint_silent): Remove.
7899 * breakpoint.c (breakpoint_set_silent): New function.
7900 (breakpoint_set_thread): Likewise.
7901 (breakpoint_set_task): Likewise.
7902 (make_breakpoint_silent): Remove.
7904 2011-01-31 Tom Tromey <tromey@redhat.com>
7906 * breakpoint.h (user_breakpoint_p): Declare.
7907 * breakpoint.c (user_breakpoint_p): New function.
7908 (breakpoint_1): Use it.
7909 (save_breakpoints): Likewise.
7911 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7913 * configure.ac: Add handling of Python distribution on Windows.
7914 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7915 sysconfig variables are not defined, then do not use them.
7916 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7917 instead. On Windows, return all paths using forward-slashes
7918 rather than backslashes.
7920 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7922 * configure.ac: Remove fallback behavior for building
7923 against Python. Remove tweaking of Python include path.
7924 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7925 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7926 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7927 Always restore CPPFLAGS and LIBS after linking test.
7928 * configure: Regenerated.
7929 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7930 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7931 * python/python-internal.h: Adjust includes of Python .h files.
7933 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7935 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7938 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7940 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7943 2011-01-31 Yao Qi <yao@codesourcery.com>
7945 * arm-linux-nat.c: Update calls to regcache_register_status
7946 instead of regcache_valid_p.
7947 * aix-thread.c: Likewise.
7948 * i386gnu-nat.c: Likewise.
7950 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7953 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7954 touching TYPE_FIELD_ARTIFICIAL.
7956 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7958 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7961 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7963 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7964 selected, don't try iterating over the traceframe's blocks.
7965 (tfile_has_stack): If there's no traceframe selected, then there's
7967 (tfile_has_registers): If there's no traceframe selected, then
7968 there's no registers.
7970 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7972 * target.c (memory_xfer_partial): No need to restore shadows if we
7973 haven't read anything.
7975 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7977 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7978 and val_print_scalar_formatted.
7980 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7982 * tracepoint.c (tfile_read): New.
7983 (tfile_open): Use it.
7984 (tfile_get_traceframe_address): Use it.
7985 (tfile_trace_find): Use it.
7986 (walk_blocks_callback_func): New typedef.
7987 (match_blocktype): New function.
7988 (traceframe_walk_blocks): New function.
7989 (traceframe_find_block_type): New function.
7990 (tfile_fetch_registers, tfile_xfer_partial)
7991 (tfile_get_trace_state_variable_value): Use
7992 traceframe_find_block_type and tfile_read.
7994 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7996 * remote-mips.c: Add internationalization mark ups. Remove
7997 trailing \n from already marked up strings.
7999 2011-01-26 Tom Tromey <tromey@redhat.com>
8001 * python/py-prettyprint.c (print_string_repr): Clear
8002 'addressprint' option when calling val_print_string.
8003 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8004 option when calling val_print_string.
8006 2011-01-26 Tom Tromey <tromey@redhat.com>
8008 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8010 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8012 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8013 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8014 (gdb_py_long_as_ulongest): New defines.
8015 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8016 (gdb_py_int_as_long): Declare.
8017 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8018 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8019 (valpy_long): Add comment.
8020 * python/py-utils.c (get_addr_from_python): Use
8021 gdb_py_long_as_ulongest. Handle overflow properly.
8022 (gdb_py_object_from_longest): New function.
8023 (gdb_py_object_from_ulongest): Likewise.
8024 (gdb_py_int_as_long): Likewise.
8025 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8026 * python/py-symtab.c (salpy_get_pc): Use
8027 gdb_py_long_from_ulongest.
8028 (salpy_get_line): Use PyInt_FromLong.
8029 * python/py-param.c (set_parameter_value): Use
8031 * python/py-lazy-string.c (stpy_get_address): Use
8032 gdb_py_long_from_ulongest.
8033 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8034 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8035 * python/py-breakpoint.c (bppy_set_thread): Use
8037 (bppy_set_task): Likewise.
8038 (bppy_set_ignore_count): Likewise.
8039 (bppy_set_hit_count): Likewise.
8040 * python/py-block.c (blpy_get_start): Use
8041 gdb_py_object_from_ulongest.
8042 (blpy_get_end): Likewise.
8043 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8045 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8048 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8049 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8050 equality test for objfile, initialize addr_low if needed.
8052 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8054 * tui/tui-regs.c (tui_register_format): Remove dead code.
8056 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8058 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8059 instead of print_scalar_formatted.
8060 (print_scalar_formatted): Don't handle 's' format strings here,
8061 and add an assertion that we never see such format here.
8062 * valprint.h (val_print_scalar_formatted): Declare.
8063 * valprint.c (val_print_scalar_formatted): New.
8064 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8065 instead of print_scalar_formatted.
8066 * jv-valprint.c (java_val_print): Ditto.
8067 * p-valprint.c (pascal_val_print): Ditto.
8068 * ada-valprint.c (ada_val_print_1): Ditto.
8069 * f-valprint.c (f_val_print): Ditto.
8070 * infcmd.c (registers_info): Ditto.
8071 * m2-valprint.c (m2_val_print): Ditto.
8073 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8075 * m2-valprint.c (print_unbounded_array): Pass
8076 value_contents_for_printing rather than value_contents, to
8077 m2_print_array_contents. Also pass in the value.
8079 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8081 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8082 (save_gdb_index_command): Switch to .gdb_index version 4.
8084 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8086 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8087 than frame_register, and always pass a valid value to val_print.
8089 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8091 Centralize printing "<optimized out>".
8093 * valprint.h (val_print_optimized_out): Declare.
8094 * cp-valprint.c (cp_print_value_fields): Use
8095 val_print_optimized_out.
8096 * jv-valprint.c (java_print_value_fields): Ditto.
8097 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8098 * printcmd.c (print_formatted): Ditto.
8099 * valprint.c (valprint_check_validity): Ditto.
8100 (value_check_printable): Ditto.
8101 (val_print_optimized_out): New.
8103 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8105 * infcmd.c (default_print_registers_info): Allocate values so to
8106 never pass a NULL value to val_print.
8108 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8110 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8111 boolean. Make sure to always pass a value that matches the
8112 contents buffer to callees. Preserve `address' for following
8114 * value.c (value_contents_for_printing_const): New.
8115 (value_address): Constify value argument.
8116 * value.h (value_contents_for_printing_const): Declare.
8117 (value_address): Constify value argument.
8119 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8121 * regcache.c (struct regcache_descr): Rename
8122 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8123 and sizeof_cooked_register_valid_p to
8124 sizeof_cooked_register_status.
8125 (init_regcache_descr): Adjust.
8126 (struct regcache): Rename register_valid_p field to
8128 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8129 (do_cooked_read): Adjust.
8130 (regcache_valid_p): Rename to ...
8131 (regcache_register_status): ... this. Adjust.
8132 (regcache_invalidate): Adjust.
8133 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8135 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8136 as unavailable, not valid.
8137 (regcache_dump): Adjust.
8138 * regcache.h (enum register_status): New.
8139 (regcache_register_status): Declare.
8140 (regcache_invalidate): Delete declaration.
8141 * corelow.c (get_core_registers): Adjust.
8142 * tracepoint.c (tfile_fetch_registers): Adjust.
8143 * trad-frame.c (REG_VALUE): Rename to ...
8144 (TF_REG_VALUE): ... this.
8145 (REG_UNKNOWN): Rename to ...
8146 (TF_REG_UNKNOWN): ... this.
8147 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8148 * mi/mi-main.c (register_changed_p): Adjust.
8150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8152 * regcache.c (struct regcache_descr): Remove outdated comment.
8153 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8155 (regcache_xmalloc): Rename to ...
8156 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8157 Allocate the regcache type accordingly.
8158 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8159 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8160 cooked registers, not raw.
8161 (regcache_dup_no_passthrough): Delete.
8162 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8163 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8164 mention obsolete write_register_bytes.
8165 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8167 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8169 Stop remote_read_bytes from handling partial reads itself.
8171 * remote-fileio.c: Include target.h.
8172 (remote_fileio_write_bytes): Delete.
8173 (remote_fileio_func_open, remote_fileio_func_write)
8174 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8176 (remote_fileio_func_stat): Use target_read_memory and
8177 target_write_memory.
8178 (remote_fileio_func_gettimeofday): Use target_write_memory.
8179 (remote_fileio_func_system): Use target_read_memory.
8180 * remote.c (remote_write_bytes): Make it static.
8181 (remote_read_bytes): Don't handle partial reads here.
8182 * remote.h (remote_read_bytes): Delete declaration.
8184 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8186 Simplify XML parsing a bit.
8188 * xml-support.h (gdb_xml_parse_quick): Declare.
8189 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8190 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8192 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8193 gdb_xml_create_parser_and_cleanup_1.
8194 (gdb_xml_parse_quick): New.
8195 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8196 * osdata.c (osdata_parse): Ditto.
8197 * remote.c (remote_threads_info): Ditto.
8198 * solib-target.c (solib_target_parse_libraries): Ditto.
8199 * xml-syscall.c (syscall_parse_xml): Ditto.
8200 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8202 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8204 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8205 with remote-mips.o added to gdb_target_obs.
8206 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8208 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8210 * ada-valprint.c (val_print_packed_array_elements): Pass the
8211 correct struct value to val_print.
8212 (ada_val_print_1): Ditto.
8214 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8216 Don't lose embedded_offset in printing routines throughout.
8218 * valprint.h (val_print_array_elements): Change prototype.
8219 * valprint.c (val_print_array_elements): Add `embedded_offset'
8220 parameter, and adjust to pass it down to val_print, while passing
8221 `valaddr' or `address' unmodified. Take embedded_offset into
8222 account when checking repetitions.
8223 * c-valprint.c (c_val_print): Pass embedded_offset to
8224 val_print_array_elements instead of adjusting `valaddr' and
8226 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8227 embedded_offset to val_print_array_elements instead of adjusting
8229 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8230 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8231 val_print_array_elements and pascal_object_print_value_fields
8232 instead of adjusting `valaddr'.
8233 (pascal_object_print_value_fields): Add `offset' parameter, and
8235 (pascal_object_print_value): Add `offset' parameter, and adjust to
8237 (pascal_object_print_static_field): Use
8238 value_contents_for_printing/value_embedded_offset, rather than
8240 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8241 parameter, and adjust to use it. Use
8242 value_contents_for_printing/value_embedded_offset, rather than
8244 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8245 (ada_val_print_array): Add `offset' parameter, and adjust to use
8247 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8248 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8249 Instead work with offsets. Use
8250 value_contents_for_printing/value_embedded_offset, rather than
8251 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8252 and use value_from_pointer to extract a target pointer, rather
8253 than value_from_longest.
8254 (print_variant_part): Add `offset' parameter. Replace
8255 `outer_valaddr' parameter by a new `outer_offset' parameter.
8256 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8257 (ada_value_print): Use
8258 value_contents_for_printing/value_embedded_offset, rather than
8260 (print_record): Add `offset' parameter, and adjust to pass it
8262 (print_field_values): Add `offset' parameter. Replace
8263 `outer_valaddr' parameter by a new `outer_offset' parameter.
8264 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8265 Use value_contents_for_printing/value_embedded_offset, rather than
8267 * d-valprint.c (dynamic_array_type): Use
8268 value_contents_for_printing/value_embedded_offset, rather than
8270 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8271 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8272 (java_print_value_fields): Take `offset' into account. Don't
8273 re-adjust `valaddr'. Instead pass down adjusted offsets.
8274 (java_val_print): Take `embedded_offset' into account. Pass it to
8275 java_print_value_fields.
8276 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8277 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8278 down adjusted offsets.
8279 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8280 (f_val_print): Take `embedded_offset' into account.
8282 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8284 * inflow.c: Include "gdbcmd.h".
8285 (interactive_mode): New static global, moved here from top.c.
8286 (show_interactive_mode): New function, moved here from top.c.
8287 use gdb_has_a_terminal instead of input_from_terminal_p to
8288 determine the current mode.
8289 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8291 (_initialize_inflow): Add the "set/show interactive-mode"
8292 commands. Moved here from top.c, after having adjusted slightly
8294 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8296 (input_from_terminal_p): Remove handling of "interactive-mode"
8297 setting, moved to infow.c.
8298 (init_main): Remove creation of the "set/show interactive-mode"
8299 commands, moved to inflow.c.
8301 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8303 * NEWS: Add entry for native ia64-hpux support.
8305 2011-01-19 Tom Tromey <tromey@redhat.com>
8308 * thread.c (free_thread): Free 'name'.
8309 (print_thread_info): Emit thread name. Change CLI output.
8310 (thread_name_command): New function.
8311 (do_captured_thread_select): Emit newline.
8312 (_initialize_thread): Register 'thread name' command.
8313 * target.h (struct target_ops) <to_thread_name>: New field.
8314 (target_thread_name): New macro.
8315 * target.c (update_current_target): Handle to_thread_name.
8316 * python/py-infthread.c (thpy_get_name): New function.
8317 (thpy_set_name): Likewise.
8318 (thread_object_getset): Add "name".
8319 * linux-nat.c (linux_nat_thread_name): New function.
8320 (linux_nat_add_target): Set to_thread_name.
8321 * gdbthread.h (struct thread_info) <name>: New field.
8323 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8325 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8326 (ada_val_print_1): Likewise.
8328 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8330 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8331 upper limit address is not greater than the function end address
8332 when the upper limit could not be computed using the debugging
8335 2011-01-17 Tom Tromey <tromey@redhat.com>
8337 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8339 * utils.c: Include gdb_regex.h.
8340 (do_regfree_cleanup): New function.
8341 (make_regfree_cleanup): Likewise.
8342 (get_regcomp_error): Likewise.
8343 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8345 2011-01-17 Tom Tromey <tromey@redhat.com>
8347 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8350 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8352 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8353 for internal variables.
8354 (last_was_structop): New static variable.
8355 (COMPLETE): New token.
8356 (field_exp): New rule to group all '.' suffix handling.
8357 Add mark_struct_expression calls when approriate to be able
8358 to correctly find fields for completion.
8359 (yylex): Adapt to handle field completion and set INTVAR when
8362 2011-01-14 Yao Qi <yao@codesourcery.com>
8364 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8365 save_reggroup, restore_reggroup and all_reggroup.
8367 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8369 * ada-valprint. (ada_printchar): Use the correct type length
8370 in call to ada_emit_char.
8371 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8373 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8375 * solib-som.h (hpux_major_release): Declare variable here.
8376 * solib-som.c: Remove <sys/utsname.h> header.
8377 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8378 (hpux_major_release): Make global, change default value to
8379 DEFAULT_HPUX_MAJOR_RELEASE.
8380 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8381 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8382 Add "solib-som.h" header.
8383 (set_hpux_major_release): New function.
8384 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8386 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8388 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8390 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8392 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8393 new-line at end of warning message.
8394 (ia64_hpux_store_register): Remove trailing new-line at end of
8396 * ia64-hpux-tdep.c: Rephrase comment.
8397 * solib-ia64-hpux.c (struct dld_info): Change type of field
8398 dld_flags from "long long" to ULONGEST.
8400 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8402 * target.h (deprecated_child_ops): Delete declaration.
8403 * target.c (deprecated_child_ops): Delete definition.
8405 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8407 * Makefile.in (hpux-thread.o): Delete rule.
8408 * configure.ac: Don't check for HPUX DCE threads support.
8409 * configure, config.in: Regenerate.
8410 * hppa-hpux-nat.c (child_suppress_run): Delete.
8411 (hppa_hpux_child_can_run): Delete.
8412 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8413 * hpux-thread.c: Delete.
8415 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8417 * hpux-thread.c (hpux_pid_to_str): Delete.
8419 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8421 * ada-valprint.c (ada_emit_char): Remove strange code.
8422 Check that c is <= UCHAR_MAX before passing it to isascii.
8423 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8425 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8427 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8428 to the case where instream is stdin.
8430 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8432 * ia64-tdep.h (struct regcache): Forward declare.
8433 (struct ia64_infcall_ops): New struct type.
8434 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8436 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8437 Renames ia64_find_global_pointer.
8438 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8439 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8440 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8442 (ia64_infcall_ops): New static global constant.
8443 (ia64_gdbarch_init): Set tdep->infcall_ops.
8444 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8445 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8446 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8447 (ia64_hpux_dummy_code): New static global constant.
8448 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8449 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8450 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8452 (ia64_hpux_infcall_ops): New static global constant.
8453 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8454 for inferior function calls to work properly on ia64-hpux.
8456 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8458 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8459 * ia64-tdep.h (struct frame_info): forward declaration.
8460 (struct gdbarch_tdep): Add field size_of_register_frame.
8461 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8462 to determine the size of the register frame.
8463 (ia64_size_of_register_frame): New function.
8464 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8465 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8466 (IA64_HPUX_UREG_REASON): New macro.
8467 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8469 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8470 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8471 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8474 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8476 Add support for ia64-hpux.
8477 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8478 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8480 * configure.host: Add handling for ia64-hpux hosts. Add associated
8482 * configure.tgt: Add handling for ia64-hpux targets.
8483 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8484 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8485 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8489 [ttrace] Compute thread list immediately after attach.
8490 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8492 (inf_ttrace_attach): Use it.
8494 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8496 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8497 if we could not determine the frame's function address. Instead,
8498 use the frame's PC, and then continue.
8500 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8502 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8503 not already defined.
8505 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8507 * ia64-tdep.c (ia64_struct_type_p): New function.
8508 (ia64_extract_return_value): Handle integral values that are
8509 less than 8 bytes long.
8510 (ia64_push_dummy_call): Likewise.
8512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8514 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8515 floatformat_ia64_ext.
8516 (floatformat_ia64_ext_big): New static const.
8517 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8519 2011-01-12 Tom Tromey <tromey@redhat.com>
8521 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8523 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8524 (mi_cmd_thread_list_ids): Likewise.
8525 (mi_cmd_data_list_changed_registers): Likewise.
8526 (mi_cmd_data_list_register_values): Likewise.
8527 (mi_cmd_data_write_register_values): Likewise.
8528 (mi_cmd_data_evaluate_expression): Likewise.
8529 (mi_cmd_data_read_memory): Likewise.
8530 (mi_cmd_data_read_memory_bytes): Likewise.
8531 (mi_cmd_data_write_memory): Likewise.
8532 (mi_cmd_enable_timings): Likewise.
8533 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8534 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8535 (mi_cmd_var_delete): Likewise.
8536 (mi_cmd_var_set_format): Likewise.
8537 (mi_cmd_var_show_format): Likewise.
8538 (mi_cmd_var_info_num_children): Likewise.
8539 (mi_cmd_var_list_children): Likewise.
8540 (mi_cmd_var_info_type): Likewise.
8541 (mi_cmd_var_info_expression): Likewise.
8542 (mi_cmd_var_show_attributes): Likewise.
8543 (mi_cmd_var_assign): Likewise.
8544 (mi_cmd_var_update): Likewise.
8545 (mi_cmd_enable_pretty_printing): Likewise.
8546 (mi_cmd_var_set_update_range): Likewise.
8547 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8549 (mi_cmd_target_file_put): Likewise.
8550 (mi_cmd_target_file_delete): Likewise.
8551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8553 (mi_cmd_stack_info_depth): Likewise.
8554 (mi_cmd_stack_list_locals): Likewise.
8555 (mi_cmd_stack_list_args): Likewise.
8556 (mi_cmd_stack_select_frame): Likewise.
8557 (mi_cmd_stack_select_frame): Likewise.
8558 (mi_cmd_stack_info_frame): Likewise.
8559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8561 (mi_cmd_file_list_exec_source_files): Likewise.
8562 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8563 (mi_cmd_env_cd): Likewise.
8564 (mi_cmd_env_path): Likewise.
8565 (mi_cmd_env_dir): Likewise.
8566 (mi_cmd_inferior_tty_show): Likewise.
8567 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8568 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8569 (mi_cmd_break_watch): Likewise.
8571 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8573 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8574 (ppc_linux_insert_hw_breakpoint): Likewise.
8575 (ppc_linux_remove_hw_breakpoint): Likewise.
8576 (ppc_linux_insert_watchpoint): Likewise.
8578 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8579 Jan Kratochvil <jan.kratochvil@redhat.com>
8581 PR fortran/11104 and DWARF unbound arrays detection.
8582 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8583 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8584 unspecified upper bound.
8585 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8586 variables array_size_array, tmp_type and offset_item. New variable
8587 array. Remove call to f77_get_upperbound. New variables array_type
8588 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8589 the final call to deprecated_set_value_type.
8591 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8593 Make value allocations more lazy.
8594 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8595 instead of allocate_value and set_value_lazy when possible.
8596 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8597 instead of allocate_value and set_value_lazy.
8598 * findvar.c (value_of_register_lazy): Likewise.
8599 (read_var_value): Remove V preallocation, call just check_typedef in
8600 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8601 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8602 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8603 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8604 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8605 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8606 the end, remove set_value_lazy there.
8607 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8608 instead of allocate_value and set_value_lazy when possible.
8609 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8610 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8611 of allocate_value and set_value_lazy.
8612 (value_from_contents_and_address): Use allocate_value_lazy instead of
8613 allocate_value and set_value_lazy when possible.
8615 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8617 * disasm.c (dump_insns): Support dumping opcodes for MI.
8618 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8619 dumping of instruction opcodes.
8621 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8623 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8626 2011-01-11 Tom Tromey <tromey@redhat.com>
8628 * thread.c (do_captured_thread_select): Emit newline before
8631 2011-01-11 Michael Snyder <msnyder@vmware.com>
8633 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8634 * score-tdep.c: Ditto.
8635 * score-tdep.h: Ditto.
8636 * ser-base.c: Ditto.
8637 * ser-go32.c: Ditto.
8640 * ser-mingw.c: Ditto.
8641 * ser-pipe.c: Ditto.
8643 * ser-unix.c: Ditto.
8644 * sh64-tdep.c: Ditto.
8645 * shnbsd-nat.c: Ditto.
8649 * solib-darwin.c: Ditto.
8650 * solib-frv.c: Ditto.
8652 * solib-irix.c: Ditto.
8653 * solib-osf.c: Ditto.
8654 * solib-pa64.c: Ditto.
8655 * solib-som.c: Ditto.
8656 * solib-spu.c: Ditto.
8657 * solib-sunos.c: Ditto.
8658 * solib-svr4.c: Ditto.
8660 * sol-thread.c: Ditto.
8664 * sparc64-linux-tdep.c: Ditto.
8665 * sparc64-tdep.c: Ditto.
8666 * sparc-linux-nat.c: Ditto.
8667 * sparc-linux-tdep.c: Ditto.
8668 * sparc-sol2-nat.c: Ditto.
8669 * sparc-sol2-tdep.c: Ditto.
8670 * sparc-tdep.c: Ditto.
8671 * sparc-tdep.h: Ditto.
8672 * spu-tdep.c: Ditto.
8673 * stabsread.c: Ditto.
8674 * stabsread.h: Ditto.
8682 * target-descriptions.c: Ditto.
8683 * target-descriptions.h: Ditto.
8685 * target-memory.c: Ditto.
8686 * terminal.h: Ditto.
8689 * tracepoint.c: Ditto.
8690 * tracepoint.h: Ditto.
8691 * trad-frame.h: Ditto.
8692 * typeprint.c: Ditto.
8694 2011-01-11 Michael Snyder <msnyder@vmware.com>
8696 * ui-file.c: Comment cleanup, mostly periods and spaces.
8701 * v850-tdep.c: Ditto.
8702 * valarith.c: Ditto.
8704 * valprint.c: Ditto.
8705 * valprint.h: Ditto.
8710 * vax-tdep.c: Ditto.
8714 * windows-nat.c: Ditto.
8715 * windows-tdep.c: Ditto.
8716 * xcoffread.c: Ditto.
8717 * xcoffsolib.c: Ditto.
8718 * xml-support.c: Ditto.
8719 * xstormy16-tdep.c: Ditto.
8720 * xtensa-tdep.c: Ditto.
8721 * xtensa-tdep.h: Ditto.
8723 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8725 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8726 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8728 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8729 Thiago Jung Bauermann <bauerman@br.ibm.com>
8731 Implement support for PowerPC BookE ranged watchpoints.
8733 (struct breakpoint_ops) <resources_needed>: New method.
8734 Initialize to NULL in all existing breakpoint_ops instances.
8735 (struct breakpoint) <exact>: New field.
8736 (target_exact_watchpoints): Declare external global.
8737 * breakpoint.c (target_exact_watchpoints): New global flag.
8738 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8739 b->enable_state to bp_enabled before calling
8740 hw_watchpoint_used_count.
8741 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8742 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8744 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8745 if the watchpoint is exact.
8746 (resources_needed_watchpoint): New function.
8747 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8748 (watch_command_1): Set b->exact if the user asked for an exact
8749 watchpoint and one can be set.
8750 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8751 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8752 the user asks for an exact watchpoint and one can be set. Return
8753 number of needed debug registers to watch the expression.
8754 * gdbtypes.c (is_scalar_type): New function, based on
8755 valprint.c:scalar_type_p.
8756 (is_scalar_type_recursive): New function.
8757 * gdbtypes.h (is_scalar_type_recursive): Declare.
8758 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8759 handle regions when ranged watchpoints are available.
8760 (create_watchpoint_request): New function.
8761 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8762 create_watchpoint_request.
8763 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8764 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8765 `set powerpc' and `show powerpc' commands.
8766 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8767 Mention documentation comment in the target macro.
8768 (target_region_ok_for_hw_watchpoint): Document return value.
8770 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8772 * breakpoint.c (update_watchpoint): Decide on using a software or
8773 hardware watchpoint after the bp_locations are created.
8775 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8777 Convert hardware watchpoints to use breakpoint_ops.
8778 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8779 <insert_location>: ... this. Return int instead of void.
8780 Accept pointer to struct bp_location instead of pointer to
8781 struct breakpoint. Adapt all implementations.
8782 (breakpoint_ops) <remove>: Rename to...
8783 <remove_location>: ... this. Accept pointer to struct bp_location
8784 instead of pointer to struct breakpoint. Adapt all implementations.
8785 * breakpoint.c (insert_catchpoint): Delete function.
8786 (insert_bp_location): Call the watchpoint or catchpoint's
8787 breakpoint_ops.insert method.
8788 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8789 breakpoint_ops.remove method.
8790 (insert_watchpoint, remove_watchpoint): New functions.
8791 (watchpoint_breakpoint_ops): New structure.
8792 (watch_command_1): Initialize the OPS field.
8793 * inf-child.c (inf_child_insert_fork_catchpoint)
8794 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8795 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8796 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8798 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8799 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8800 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8801 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8802 * target.c (update_current_target): Change default implementation of
8803 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8804 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8805 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8806 to_set_syscall_catchpoint to return_one.
8807 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8808 (debug_to_insert_exec_catchpoint): Report return value.
8809 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8810 (to_insert_exec_catchpoint): Change declaration to return int instead
8813 2011-01-11 Michael Snyder <msnyder@vmware.com>
8815 * arm-tdep.c: Internationalization.
8818 * fork-child.c: Ditto.
8819 * nto-procfs.c: Ditto.
8820 * ppc-sysv-tdep.c: Ditto.
8822 * remote-mips.c: Ditto.
8824 * rs6000-nat.c: Ditto.
8825 * rs6000-tdep.c: Ditto.
8829 * xml-support.c: Ditto.
8830 * mi/mi-cmd-break.c: Ditto.
8831 * mi/mi-cmd-var.c: Ditto.
8832 * mi/mi-interp.c: Ditto.
8833 * mi/mi-main.c: Ditto.
8835 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8837 * remote-sim.c (gdbsim_store_register): Update API to
8838 sim_store_register to check more error conditions.
8840 2011-01-10 Michael Snyder <msnyder@vmware.com>
8842 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8843 * nto-tdep.c: Ditto.
8844 * nto-tdep.h: Ditto.
8845 * objc-exp.y: Ditto.
8846 * objc-lang.c: Ditto.
8847 * objfiles.c: Ditto.
8848 * objfiles.h: Ditto.
8849 * observer.c: Ditto.
8850 * opencl-lang.c: Ditto.
8853 * parser-defs.h: Ditto.
8856 * posix-hdep.c: Ditto.
8857 * ppcbug-rom.c: Ditto.
8858 * ppc-linux-nat.c: Ditto.
8859 * ppc-linux-tdep.c: Ditto.
8860 * ppc-linux-tdep.h: Ditto.
8861 * ppcnbsd-tdep.c: Ditto.
8862 * ppcobsd-tdep.c: Ditto.
8863 * ppcobsd-tdep.h: Ditto.
8864 * ppc-sysv-tdep.c: Ditto.
8865 * ppc-tdep.h: Ditto.
8866 * printcmd.c: Ditto.
8867 * proc-abi.c: Ditto.
8868 * proc-flags.c: Ditto.
8870 * proc-utils.h: Ditto.
8871 * progspace.h: Ditto.
8872 * prologue-value.c: Ditto.
8873 * prologue-value.h: Ditto.
8874 * psympriv.h: Ditto.
8876 * p-typeprint.c: Ditto.
8877 * p-valprint.c: Ditto.
8878 * ravenscar-sparc-thread.c: Ditto.
8879 * ravenscar-thread.c: Ditto.
8880 * ravenscar-thread.h: Ditto.
8882 * regcache.c: Ditto.
8883 * regcache.h: Ditto.
8885 * remote-fileio.c: Ditto.
8886 * remote-fileio.h: Ditto.
8888 * remote-m32r-sdi.c: Ditto.
8889 * remote-mips.c: Ditto.
8890 * remote-sim.c: Ditto.
8891 * rs6000-aix-tdep.c: Ditto.
8892 * rs6000-nat.c: Ditto.
8893 * rs6000-tdep.c: Ditto.
8895 2011-01-10 Michael Snyder <msnyder@vmware.com>
8897 * charset.c (validate): Internationalization.
8898 * coffread.c (read_one_sym): Ditto.
8899 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8900 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8901 * inflow.c (new_tty): Ditto.
8902 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8903 * m32c-tdep.c (m32c_return_value): Ditto.
8904 * mep-tdep.c (mep_store_return_value): Ditto.
8905 * score-tdep.c (score7_fetch_insn): Ditto.
8906 * ser-mingw.c (pipe_windows_open): Ditto.
8907 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8908 * spu-tdep.c (spu_register_type): Ditto.
8909 * tracepoint.c (trace_find_command): Ditto.
8910 * valarith.c (value_pos): Ditto.
8912 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8914 * ada-valprint.c (printstr): Minor comment reformatting.
8916 2011-01-08 Michael Snyder <msnyder@vmware.com>
8918 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8921 2011-01-08 Michael Snyder <msnyder@vmware.com>
8923 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8924 * hppa-hpux-tdep.c: Ditto.
8925 * hppa-linux-nat.c: Ditto.
8926 * hppa-linux-tdep.c: Ditto.
8927 * hppanbsd-tdep.c: Ditto.
8928 * hppa-tdep.c: Ditto.
8929 * hppa-tdep.h: Ditto.
8930 * hpux-thread.c: Ditto.
8931 * i386-cygwin-tdep.c: Ditto.
8932 * i386-darwin-nat.c: Ditto.
8933 * i386gnu-nat.c: Ditto.
8934 * i386-linux-nat.c: Ditto.
8935 * i386-linux-tdep.c: Ditto.
8936 * i386-nat.c: Ditto.
8937 * i386-nat.h: Ditto.
8938 * i386nbsd-tdep.c: Ditto.
8939 * i386-sol2-nat.c: Ditto.
8940 * i386-stub.c: Ditto.
8941 * i386-tdep.c: Ditto.
8942 * i386-tdep.h: Ditto.
8943 * i387-tdep.c: Ditto.
8944 * ia64-linux-nat.c: Ditto.
8945 * ia64-linux-tdep.c: Ditto.
8946 * ia64-tdep.c: Ditto.
8950 * inferior.c: Ditto.
8951 * inferior.h: Ditto.
8957 * iq2000-tdep.c: Ditto.
8958 * irix5-nat.c: Ditto.
8964 * jv-typeprint.c: Ditto.
8965 * jv-valprint.c: Ditto.
8966 * language.c: Ditto.
8967 * language.h: Ditto.
8968 * linespec.c: Ditto.
8969 * linux-fork.c: Ditto.
8970 * linux-nat.c: Ditto.
8971 * linux-thread-db.c: Ditto.
8972 * lm32-tdep.c: Ditto.
8974 2011-01-08 Michael Snyder <msnyder@vmware.com>
8976 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8978 * m2-typeprint.c: Ditto.
8979 * m2-valprint.c: Ditto.
8980 * m32c-tdep.c: Ditto.
8981 * m32r-linux-nat.c: Ditto.
8982 * m32r-rom.c: Ditto.
8983 * m32r-tdep.c: Ditto.
8984 * m32r-tdep.h: Ditto.
8985 * m68hc11-tdep.c: Ditto.
8986 * m58klinux-nat.c: Ditto.
8987 * m68k-tdep.c: Ditto.
8988 * m88k-tdep.c: Ditto.
8989 * m88k-tdep.h: Ditto.
8990 * machoread.c: Ditto.
8991 * macrocmd.c: Ditto.
8992 * macroexp.c: Ditto.
8993 * macrotab.c: Ditto.
8996 * mdebugread.c: Ditto.
8997 * mdebugread.h: Ditto.
9000 * memory-map.h: Ditto.
9001 * mep-tdep.c: Ditto.
9002 * microblaze-rom.c: Ditto.
9003 * microblaze-tdep.c: Ditto.
9005 * mips-irix-tdep.c: Ditto.
9006 * mips-linux-nat.c: Ditto.
9007 * mips-linux-tdep.c: Ditto.
9008 * mips-linux-tdep.h: Ditto.
9009 * mipsnbsd-nat.c: Ditto.
9010 * mipsnbsd-tdep.c: Ditto.
9011 * mipsread.c: Ditto.
9012 * mips-tdep.c: Ditto.
9013 * mips-tdep.h: Ditto.
9014 * mn10300-linux-tdep.c: Ditto.
9015 * mn10300-tdep.c: Ditto.
9016 * mn10300-tdep.h: Ditto.
9019 * moxie-tdep.c: Ditto.
9020 * moxie-tdep.h: Ditto.
9023 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9025 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9027 2011-01-08 Robert Millan <rmh@gnu.org>
9029 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9031 2011-01-07 Michael Snyder <msnyder@vmware.com>
9033 * charset.c (_initialize_charset): Fix typo in string.
9035 2011-01-07 Michael Snyder <msnyder@vmware.com>
9037 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9039 * tui/tui-layout.c (tui_set_layout_for_display_command):
9040 Split line so that operator goes to beginning of line.
9041 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9042 assignment out of if statement.
9044 2011-01-07 Michael Snyder <msnyder@vmware.com>
9046 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9047 * ada-lang.h: Ditto.
9048 * ada-tasks.c: Ditto.
9049 * ada-valprint.c: Ditto.
9050 * aix-threads.c: Ditto.
9051 * alpha-linux-nat.c: Ditto.
9052 * alpha-linux-tdep.c: Ditto.
9053 * alpha-mdebug-tdep.c: Ditto.
9054 * alpha-nat.c: Ditto.
9055 * alpha-osf1-tdep.c: Ditto.
9056 * alpha-tdep.c: Ditto.
9057 * alphabsd-nat.c: Ditto.
9058 * alphabsd-tdep.c: Ditto.
9059 * amd64-darwin-tdep.c: Ditto.
9060 * amd64-linux-nat.c: Ditto.
9061 * amd64-linux-tdep.c: Ditto.
9062 * amd64-sol2-tdep.c: Ditto.
9063 * amd64-tdep.c: Ditto.
9064 * amd64-fbsd-tdep.c: Ditto.
9065 * amd64-nbsd-tdep.c: Ditto.
9066 * amd64-obsd-tdep.c: Ditto.
9067 * amd64-linux-nat.c: Ditto.
9068 * amd64-linux-tdep.c: Ditto.
9069 * arm-tdep.c: Ditto.
9070 * arm-tdep.h: Ditto.
9071 * armnbsd-nat.c: Ditto.
9072 * avr-tdep.c: Ditto.
9073 * bfin-tdep.c: Ditto.
9075 * c-typeprintc: Ditto.
9076 * c-valprint.c: Ditto.
9077 * coff-pe-read.h: Ditto.
9078 * coffreead.c: Ditto.
9079 * cris-tdep.c: Ditto.
9081 * darwin-nat-info.c: Ditto.
9082 * darwin-nat.c: Ditto.
9083 * dbug-rom.c: Ditto.
9087 * dec-thread.c: Ditto.
9089 * demangle.c: Ditto.
9090 * dicos-tdep.c: Ditto.
9091 * dictionary.c: Ditto.
9092 * dictionary.h: Ditto.
9093 * dink32-rom.c: Ditto.
9095 * doublest.c: Ditto.
9097 * dummy-frame.c: Ditto.
9098 * dwarf2-frame.c: Ditto.
9099 * dwarf2expr.c: Ditto.
9100 * dwarf2loc.c: Ditto.
9101 * dwarf2read.c: Ditto.
9105 * event-top.h: Ditto.
9106 * exceptions.c: Ditto.
9107 * exceptions.h: Ditto.
9109 * expprint.c: Ditto.
9110 * expression.h: Ditto.
9114 * f-typeprint.c: Ditto.
9115 * f-valprint.c: Ditto.
9116 * fbsd-nat.c: Ditto.
9118 * fork-child.c: Ditto.
9121 * frv-linux-tdep.c: Ditto.
9122 * frv-tdep.c: Ditto.
9124 * gdb-stabs.h: Ditto.
9125 * gdb_assert.h: Ditto.
9126 * gdb_string.h: Ditto.
9127 * gdb_thread_db.h: Ditto.
9128 * gdb_wait.h: Ditto.
9129 * gdbarch.sh: Ditto.
9131 * gdbthread.h: Ditto.
9132 * gdbtypes.c: Ditto.
9133 * gdbtypes.h: Ditto.
9136 * gnu-v2-abi.c: Ditto.
9137 * gnu-v3-abi.c: Ditto.
9138 * go32-nat.c: Ditto.
9139 * gdbarch.c: Regenerate.
9140 * gdbarch.h: Regenerate.
9142 2011-01-07 Michael Snyder <msnyder@vmware.com>
9144 * ax-gdb.c: Adjust some long output strings.
9145 * breakpoint.c: Ditto.
9150 * linux-nat.c: Ditto.
9151 * solib-pa64.c: Ditto.
9152 * solib-som.c: Ditto.
9154 2011-01-06 Tom Tromey <tromey@redhat.com>
9158 * python/python.c (GdbMethods): Add "newest_frame" method.
9159 * python/python-internal.h (gdbpy_newest_frame): Declare.
9160 * python/py-frame.c (gdbpy_newest_frame): New function.
9162 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9164 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9165 * jit.c (jit_debug): New variable.
9166 (show_jit_debug): New function.
9167 (struct target_buffer): Use ULONGEST.
9168 (bfd_open_from_target_memory): Likewise.
9169 (jit_register_code, jit_inferior_init): Add debug output.
9170 (_initialize_jit): Register "debug jit" command.
9172 2011-01-06 Tom Tromey <tromey@redhat.com>
9174 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9175 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9178 2011-01-06 Tom Tromey <tromey@redhat.com>
9180 * python/py-frame.c (frapy_block): Use get_frame_block.
9182 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9184 Do not stop on SIGPRIO signals by default
9185 * infrun.c (_initialize_infrun): Unset signal_stop and
9186 signal_print for TARGET_SIGNAL_PRIO.
9188 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9190 * ada-tasks.c: Fix style violation in comment.
9192 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9194 * linespec.c (decode_compound, find_method): Remove trailing \n
9195 at end of error string.
9196 * solib-irix.c (irix_current_sos): Likewise.
9197 * varobj.c (uninstall_variable): Likewise.
9199 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9201 * copyright.py: New script.
9202 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9203 Launch emacs without exec'ing. Call copyright.py afterwards.
9205 2011-01-05 Michael Snyder <msnyder@vmware.com>
9207 * addrmap.c: Shorten lines of >= 80 columns.
9208 * arch-utils.c: Ditto.
9209 * arch-utils.h: Ditto.
9211 * ax-general.c: Ditto.
9213 * blockframe.c: Ditto.
9214 * breakpoint.c: Ditto.
9215 * buildsym.c: Ditto.
9217 * c-typeprint.c: Ditto.
9219 * coffread.c: Ditto.
9223 * cp-namespace.c: Ditto.
9224 * cp-support.c: Ditto.
9225 * dbug-rom.c: Ditto.
9230 * dictionary.c: Ditto.
9232 * doublest.c: Ditto.
9233 * dwarf2-frame.c: Ditto.
9234 * dwarf2expr.c: Ditto.
9235 * dwarf2loc.c: Ditto.
9236 * dwarf2read.c: Ditto.
9239 * event-loop.c: Ditto.
9240 * event-loop.h: Ditto.
9241 * exceptions.h: Ditto.
9243 * expprint.c: Ditto.
9244 * expression.h: Ditto.
9246 * f-valprint.c: Ditto.
9248 * frame-base.c: Ditto.
9249 * frame-unwind.c: Ditto.
9250 * frame-unwind.h: Ditto.
9254 * gdb-stabs.h: Ditto.
9255 * gdb_assert.h: Ditto.
9256 * gdb_dirent.h: Ditto.
9257 * gdb_obstack.h: Ditto.
9259 * gdbtypes.c: Ditto.
9260 * gdbtypes.h: Ditto.
9261 * inf-ttrace.c: Ditto.
9266 * inline-frame.h: Ditto.
9267 * language.c: Ditto.
9268 * language.h: Ditto.
9269 * libunwind-frame.c: Ditto.
9270 * libunwind-frame.h: Ditto.
9271 * linespec.c: Ditto.
9272 * linux-nat.c: Ditto.
9273 * linux-nat.h: Ditto.
9274 * linux-thread-db.c: Ditto.
9275 * machoread.c: Ditto.
9276 * macroexp.c: Ditto.
9277 * macrotab.c: Ditto.
9280 * mdebugread.c: Ditto.
9285 * objfiles.c: Ditto.
9286 * objfiles.h: Ditto.
9288 * p-typeprint.c: Ditto.
9289 * p-valprint.c: Ditto.
9291 * printcmd.c: Ditto.
9292 * proc-events.c: Ditto.
9294 * progspace.c: Ditto.
9295 * progspace.h: Ditto.
9296 * psympriv.h: Ditto.
9299 * regcache.c: Ditto.
9300 * regcache.h: Ditto.
9301 * remote-fileio.c: Ditto.
9303 * ser-mingw.c: Ditto.
9305 * ser-unix.c: Ditto.
9308 * solib-frv.c: Ditto.
9309 * solib-irix.c: Ditto.
9310 * solib-osf.c: Ditto.
9311 * solib-pa64.c: Ditto.
9312 * solib-som.c: Ditto.
9313 * solib-sunos.c: Ditto.
9314 * solib-svr4.c: Ditto.
9315 * solib-target.c: Ditto.
9319 * stabsread.c: Ditto.
9320 * stabsread.c: Ditto.
9323 * symfile-mem.c: Ditto.
9329 * target-descriptions.c: Ditto.
9330 * target-memory.c: Ditto.
9333 * terminal.h: Ditto.
9336 * tracepoint.c: Ditto.
9337 * tracepoint.h: Ditto.
9341 * user-regs.c: Ditto.
9342 * user-regs.h: Ditto.
9344 * valarith.c: Ditto.
9346 * valprint.c: Ditto.
9347 * valprint.h: Ditto.
9352 * xcoffread.c: Ditto.
9353 * xcoffsolib.c: Ditto.
9354 * xcoffsolib.h: Ditto.
9355 * xml-syscall.c: Ditto.
9356 * xml-tdesc.c: Ditto.
9358 2011-01-05 Michael Snyder <msnyder@vmware.com>
9360 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9361 * cli/cli-decode.c: Ditto.
9362 * cli/cli-dump.c: Ditto.
9363 * cli/cli-logging.c: Ditto.
9364 * cli/cli-script.c: Ditto.
9365 * cli/cli-setshow.c: Ditto.
9366 * common/signals.c: Ditto.
9367 * mi/mi-cmd-break.c: Ditto.
9368 * mi/mi-cmd-disas.c: Ditto.
9369 * mi/mi-cmd-stack.c: Ditto.
9370 * mi/mi-cmd-var.c: Ditto.
9371 * mi/mi-cmds.c: Ditto.
9372 * mi/mi-common.h: Ditto.
9373 * mi/mi-console.c: Ditto.
9374 * mi/mi-interp.c: Ditto.
9375 * mi/mi-main.c: Ditto.
9376 * osf-share/cma_attr.c: Ditto.
9377 * osf-share/cma_deb_core.h: Ditto.
9378 * osf-share/cma_debug_client.h: Ditto.
9379 * osf-share/cma_handle.h: Ditto.
9380 * osf-share/cma_mutex.h: Ditto.
9381 * osf-share/cma_stack_int.h: Ditto.
9382 * osf-share/cma_tcb_defs.h: Ditto.
9383 * python/py-auto-load.c: Ditto.
9384 * python/py-breakpoint.c: Ditto.
9385 * python/py-cmd.c: Ditto.
9386 * python/py-frame.c: Ditto.
9387 * python/py-objfile.c: Ditto.
9388 * python/py-param.c: Ditto.
9389 * python/py-progspace.c: Ditto.
9390 * python/py-symbol.c: Ditto.
9391 * python/py-value.c: Ditto.
9392 * python/python-internal.h: Ditto.
9393 * python/python.c: Ditto.
9394 * tui/tui-data.c: Ditto.
9395 * tui/tui-disasm.c: Ditto.
9396 * tui/tui-hooks.c: Ditto.
9397 * tui/tui-io.c: Ditto.
9398 * tui/tui-layout.c: Ditto.
9399 * tui/tui-regs.c: Ditto.
9400 * tui/tui-source.c: Ditto.
9401 * tui/tui-stack.c: Ditto.
9402 * tui/tui-win.c: Ditto.
9403 * tui/tui-windata.c: Ditto.
9404 * tui/tui-winsource.c: Ditto.
9406 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9408 * configure.ac, gdb.1: Copyright year update.
9410 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9412 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9413 this_pc_in_block, morestack_msym and morestack_name. Check for
9414 "__morestack" minimal symbol there.
9416 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9418 * symfile.c (find_sym_fns): Add call to dont_repeat.
9420 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9422 Copyright year update in most files (performed by copyright.sh).
9424 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9426 * top.c (print_gdb_version): Update copyright year in version output.
9428 For older changes see ChangeLog-2010.
9434 version-control: never