1 2011-09-17 Yao Qi <yao@codesourcery.com>
3 * infrun.c (displaced_step_fixup): Move some code ...
4 (displaced_step_restore): ... here. New function.
5 (handle_inferior_event): Cleanup displaced stepping state for both
6 child and parent when get forked or vforked event.
7 * regcache.c (get_thread_arch_aspace_regcache): New function.
8 get_thread_arch_regcache (): Call it.
10 2011-09-16 Joel Brobecker <brobecker@adacore.com>
12 * ada-tasks.c (print_ada_task_info): New function, merging
13 short_task_info and info_tasks together. Reimplement using
14 ui-out instead of printing to stdout directly. Move the code
15 building and checking the task list here, instead of leaving it
16 in info_tasks_command.
17 (info_task): Move the code building and checking the task
18 list here, instead of leaving it in info_tasks_command.
19 (info_tasks_command): Delete code building and checking
20 the task list - moved elsewhere. Update calls to info_tasks
23 2011-09-16 Joel Brobecker <brobecker@adacore.com>
25 * ada-tasks.c (info_task): Delete parameter `from_tty'.
27 2011-09-16 Joel Brobecker <brobecker@adacore.com>
29 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
31 2011-09-16 Joel Brobecker <brobecker@adacore.com>
33 * ada-lang.h (ada_build_task_list): Remove parameter
35 * ada-tasks.c (ada_build_task_list): Remove parameter
36 `warn_if_null'. Adjust implementation and documentation.
37 (valid_task_id, ada_get_environment_task)
38 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
39 (info_tasks_command): Adjust implementation.
40 (task_command): Likewise.
41 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
42 to ada_build_task_list.
44 2011-09-16 Joel Brobecker <brobecker@adacore.com>
46 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
47 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
48 (ada_tasks_inferior_data_handle): New static global.
49 (get_ada_tasks_inferior_data): New function.
50 (ada_get_task_number, get_task_number_from_id, valid_task_id)
51 (ada_get_environment_task, iterate_over_live_ada_tasks)
52 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
54 (ada_set_current_inferior_known_tasks_addr): New function.
55 (read_known_tasks, ada_build_task_list, short_task_info)
56 (info_tasks, info_task, info_tasks_command, task_command_1)
57 (task_command, ada_task_list_changed): Adjust.
58 (ada_tasks_invalidate_inferior_data): New function.
59 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
60 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
61 * ada-lang.h (struct inferior): Add declaration.
62 (ada_task_list_changed): Update profile.
63 * remote-wtx-pd.c: #include "inferior.h".
64 (switch_to_pd_internal): Update call to ada_task_list_changed.
66 2011-09-16 Joel Brobecker <brobecker@adacore.com>
68 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
69 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
70 (atcb_fieldno): Delete these static globals.
71 (struct ada_tasks_pspace_data): New struct.
72 (ada_tasks_pspace_data_handle): New static global.
73 (get_ada_tasks_pspace_data): New function.
74 (ada_tasks_invalidate_pspace_data): New function.
75 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
76 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
77 (_initialize_tasks): Create this module's per-progspace
80 2011-09-16 Joel Brobecker <brobecker@adacore.com>
82 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
84 2011-09-16 Tristan Gingold <gingold@adacore.com>
86 * fork-child.c (fork_inferior): Update comment. Use alloca
87 instead of xmalloc for argv. Move len and shell_command
88 declarations in the block where they are used.
89 Only call execvp. Factorize failure code.
91 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
94 * parse.c (write_exp_elt): Change argument to pass a pointer of union
95 `exp_element' instead of an element of the same and make the function
97 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
98 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
99 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
100 Change argument of `write_exp_elt' function call.
101 Remove extra spaces from comments.
102 * parser-defs.h (write_exp_elt): Remove prototype.
104 2011-09-15 Paul Koning <paul_koning@dell.com>
106 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
107 count of item appended to list.
108 * python/py-type.c (typy_fields): Likewise.
110 2011-09-15 Paul Koning <paul_koning@dell.com>
112 * MAINTAINERS (Write After Approval): Add myself to the list.
114 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
117 * linux-fork.c (checkpoint_command): Disallow checkpointing of
118 processes with multiple threads.
119 (inf_has_multiple_thread_cb): New function.
120 (inf_has_multiple_threads): New function.
122 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
124 PR Python/12692 Add gdb.selected_inferior() to Python interface.
125 * python/py-inferior.c (GdbMethods): New Python method definition.
127 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
129 Handle multiple breakpoint hits in Python interface:
130 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
131 variable to breakpoints.
132 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
133 bps instead of single breakpoint. Fix some space typos.
134 * python/py-stopevent.c (create_breakpoint_event_object): Rename
135 variable to breakpoints.
137 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
139 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
140 note if the breakpoint is internal.
142 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
144 * MAINTAINERS (Right After Approval): Add myself to the list
146 2011-09-14 Pedro Alves <pedro@codesourcery.com>
148 * infrun.c (prepare_for_detach, wait_for_inferior)
149 (fetch_inferior_event): Don't flush the register cache.
150 * remote.c (struct stop_reply) <regcache>: Add comment.
152 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
154 Remove excessive DWARF expressions memory duplication.
155 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
157 (indirect_pieced_value): Remove variable result. Remove variable
158 back_to and its use for baton.data.
159 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
161 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
162 Update the function comment.
164 2011-09-13 Pedro Alves <pedro@codesourcery.com>
166 * inferior.h (ALL_INFERIORS): New.
167 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
168 for a stopped thread.
169 (thread_db_find_new_threads): Look for threads in all inferiors.
171 2011-09-13 Pedro Alves <pedro@codesourcery.com>
173 * breakpoint.c (update_watchpoint): Handle the case of the
174 watchpoint to update not being in the breakpoint list yet.
175 (hw_watchpoint_use_count): New, factored out from
176 hw_watchpoint_used_count.
177 (hw_watchpoint_used_count): Rename to ...
178 (hw_watchpoint_used_count_others): ... this. Add `except'
179 parameter. Don't count resources of `except'. Use
180 hw_watchpoint_use_count.
182 2011-09-13 Pedro Alves <pedro@codesourcery.com>
184 * gdbthread.h (enum thread_state): Moved here.
185 (struct thread_info): Rename `executing_' field to `executing' and
187 * thread.c (enum thread_state): Moved to gdbthread.h.
188 (new_thread, add_thread_silent, delete_thread_1)
189 (any_live_thread_of_process, thread_alive, set_running)
190 (set_running, is_thread_state, any_running, is_executing)
191 (set_executing, finish_thread_state, print_thread_info)
192 (do_captured_thread_select): Adjust.
194 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
196 Fix compatibility with gcc < 4.3 and non-gcc compilers.
197 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
199 2011-09-12 Pedro Alves <pedro@codesourcery.com>
200 Matt Rice <ratmice@gmail.com>
204 * interps.c (struct interp) <interpreter_out>: Delete field.
205 (interp_new): Remove the data and uiout parameters and adjust.
206 (interp_set): Only set the current_uiout from the interpreter's
207 uiout after initializing the interpreter. Adjust call to
209 (interp_ui_out): Adjust to call procs->ui_out_proc.
210 (interp_data, interp_name): New.
211 * interps.h (interp_init_ftype): Add `self' parameter.
212 (interp_ui_out_ftype): New typedef.
213 (struct interp_procs) <ui_out_proc>: New method pointer.
214 (interp_new): Remove the data and uiout parameters.
215 (interp_data, interp_name): Declare.
216 * tui/tui-interp.c (tui_init): Adjust prototype.
218 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
219 tui_out here. Adjust call to interp_new.
220 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
221 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
223 (_initialize_cli_interp): Install it. Adjust call to interp_new.
224 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
225 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
226 Initialize mi->uiout depending on the mi_version as extracted from
227 the interpreter's name.
229 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
230 interp_new. Don't allocate the ui_out's of the interpreters here.
232 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
234 * solib.c (solib_used): New function.
235 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
236 by another so_list object before freeing it.
238 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
241 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
244 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
248 (amd64_skip_xmm_prologue): ... this new function. Describe its
249 parameters. No longer use amd64_prologue_line_bug.
250 * defs.h (producer_is_gcc_ge_4): New declaration.
251 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
252 (process_full_comp_unit): Update its caller. Remove
253 amd64_prologue_line_bug initialization.
254 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
255 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
257 2011-09-09 Pedro Alves <pedro@codesourcery.com>
259 * linux-nat.h (enum resume_kind): New.
260 (struct lwp_info) <last_resume_kind>: New field.
261 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
262 resume_stop on the new lwp.
263 (add_lwp): Set last_resume_kind as resume_continue by default.
264 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
265 (resume_lwp): New, factored out from resume_callback. Also check
266 for pending status in lp->waitstatus.
267 (resume_callback): Reimplement.
268 (resume_clear_callback): Set last_resume_kind as resume_stop.
269 (resume_set_callback): Set last_resume_kind as resume_continue.
270 (linux_nat_resume, linux_handle_extended_wait): Set
272 (running_callback): Also check lp->waitstatus for pending events.
273 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
275 (stop_and_resume_callback): Don't re-resume if the core wanted the
276 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
277 using an invalidated pointer.
278 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
279 SIGSTOPs if the core wanted the LWP to stop.
280 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
281 wanted the lwp to stop. If the core wanted the lwp to stop, and
282 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
283 of TARGET_SIGNAL_STOP.
284 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
285 here. Instead, signal the lwp, and set the last_resume_kind to
288 2011-09-09 Pedro Alves <pedro@codesourcery.com>
290 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
291 -1 (error), if the lwp exits right after attaching.
293 2011-09-08 Doug Evans <dje@google.com>
295 * py-cmd.c: Some minor formatting fixes.
296 (gdbpy_parse_command_name): Rename text arg to name, make const.
298 * python-internal.h (gdbpy_parse_command_name): Update.
300 * cli/cli-decode.c (add_cmd): Add comment.
302 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
305 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
306 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
307 * dwarf2read.c (process_full_comp_unit): Initialize
308 amd64_prologue_line_bug.
309 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
311 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
313 Fix TUI screen corruption.
314 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
317 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
319 * findvar.c (read_var_value): Never return NULL, throw an error
320 instead. Update the function comment. State symbol name in the error
322 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
324 * stack.c (print_frame_args): Likewise.
325 * valops.c (value_of_variable): Likewise.
327 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * stack.c (print_frame_args): New variable except. Wrap
330 read_var_value and common_val_print into TRY_CATCH.
332 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
334 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
335 caller to value_of_this.
336 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
338 * valops.c (value_of_this): Remove parameter complain and variable ret.
339 Update function comment. Never return NULL by this code.
340 (value_of_this_silent): New function.
341 * value.h (value_of_this): Remove parameter complain.
342 (value_of_this_silent): New declaration.
344 2011-09-07 Yao Qi <yao@codesourcery.com>
346 * gdbthread.h (struct thread_info): Remove fields
347 `stepping_through_solib_after_catch' and
348 `stepping_through_solib_catchpoints'.
349 * infrun.c (init_thread_stepping_state): Update.
350 (process_event_stop_test, currently_stepping): Update.
351 (currently_stepping_or_nexting_callback): Update.
353 2011-09-07 Yao Qi <yao@codesourcery.com>
355 * gdbthread.h (struct thread_info): Comment on field
356 `step_after_step_resume_breakpoint'.
358 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
360 * remote.c (remote_console_output): Reindent.
362 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
364 * frame.c (has_stack_frames): Check for currently selected
367 2011-09-06 Pedro Alves <pedro@codesourcery.com>
369 * event-top.h (MAXPROMPTS, struct prompts): Delete.
370 (set_async_annotation_level, set_async_prompt, pop_prompt)
371 (push_prompt, new_async_prompt): Delete declarations.
372 * top.h (get_prompt, set_prompt): Change prototype.
373 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
375 * top.c (command_loop):
376 (top_prompt): New global.
377 (get_prefix, set_prefix, get_suffix, ): Delete.
378 (get_prompt, set_prompt): Rewrite.
379 (show_new_async_prompt): Rename to ...
380 (show_prompt): ... this.
381 (init_main): Adjust. Don't handle --annotate=2 here.
382 * event-top.c (new_async_prompt): Delete.
383 (the_prompts): Delete.
384 (more_to_come): Make static.
385 (display_gdb_prompt): Use top_level_prompt() to compute the top
386 level prompt, and don't notify the before_prompt observers
387 directly here. Always trick readline into not trying to display
388 the prompt if sync_execution and displaying the primary prompt.
389 If displaying a local/secondary prompt, always show it, even if
390 sync_execution is set.
391 (change_annotation_level): Delete.
392 (top_level_prompt): New, based on change_annotation_level.
393 (push_prompt, pop_prompt): Delete.
394 (async_disable_stdin): No longer pushes prompt.
395 (command_line_handler): No longer pushes or pops prompt. If more
396 input is expected, call display_gdb_prompt with an explicit empty
398 (async_stop_sig): Adjust.
399 (set_async_annotation_level, set_async_prompt): Delete.
400 * python/python.c (before_prompt_hook): Adjust.
402 2011-09-05 Pedro Alves <pedro@codesourcery.com>
406 * infrun.c (fetch_inferior_event): Check if there's a selected
407 thread before checking if the selected thread is executing.
409 2011-09-05 Pedro Alves <pedro@codesourcery.com>
411 * inf-loop.c (execute_command): Don't check if the current thread
412 if running before synchronously waiting for command completion.
413 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
415 (normal_stop): Call async_enable_stdin here.
416 * inf-loop.c (inferior_event_handler): Don't call
417 async_enable_stdin, nor handle "set exec-done-display" here.
419 2011-09-04 Joel Brobecker <brobecker@adacore.com>
423 2011-09-04 Joel Brobecker <brobecker@adacore.com>
425 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
427 2011-09-04 Joel Brobecker <brobecker@adacore.com>
429 * NEWS: Add entry for OpenBSD/NetBSD build failure.
431 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
433 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
435 2011-09-02 Matt Rice <ratmice@gmail.com>
438 * event-top.c (cli_command_loop): Replace readline setup with
439 direct call to display_gdb_prompt.
440 (display_gdb_prompt): Do not call observer mechanism during
441 synchronous execution.
443 2011-09-02 Pedro Alves <pedro@codesourcery.com>
445 * linux-nat.c (in_pid_list_p): New.
446 (linux_record_stopped_pid): Delete.
447 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
448 already attached to the LWP. Return an indication if so.
449 (linux_nat_filter_event): Adjust.
450 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
451 returning an indication to ignore this thread.
453 2011-09-02 Pedro Alves <pedro@codesourcery.com>
455 * top.c: Include interps.h.
456 (execute_command): If the target can async, but the interpreter is
457 in sync mode, synchronously wait for the command to finish before
459 (execute_command_to_string): Force the interpreter to sync mode.
460 * infrun.c: Include interps.h.
461 (fetch_inferior_event): Don't restore the prompt yet if the
462 interpreter is in sync mode.
463 * interps.c (interpreter_async): New global.
464 * interps.h (interpreter_async): Declare.
465 * inf-loop.c: Include interps.h.
466 (inferior_event_handler): Don't print the language change or run
467 breakpoint commands yet if the interpreter in is sync mode.
468 * main.c (captured_command_loop): Flip the interpreter to async
470 * cli/cli-script.c: Include interps.h.
471 (execute_user_command, while_command, if_command): Force the
472 interpreter to sync mode.
473 * python/python.c: Include interps.h.
474 (python_command, execute_gdb_command): Force the interpreter to
477 2011-09-02 Pedro Alves <pedro@codesourcery.com>
479 * value.c (show_convenience): Catch errors thrown while printing
480 each internal variable.
481 * infrun.c (validate_siginfo_access): New function.
482 (siginfo_value_read, siginfo_value_write): Call it.
484 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
487 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
488 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
491 2011-08-29 Yao Qi <yao@codesourcery.com>
493 * solib-dsbt.c (bfd_lookup_symbol): Removed.
495 (enable_break2): Update caller.
496 * solib-frv.c (bfd_lookup_symbol): Removed.
498 (enable_break2): Update caller.
499 * solib-pa64.c (bfd_lookup_symbol): Removed.
501 * solib-svr4.c (bfd_lookup_symbol): Removed.
502 (cmp_name_and_sec_flags): New.
503 (enable_break): Update caller.
504 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
505 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
506 (gdb_bfd_lookup_symbol): New.
507 * solib.h: Functions declarations.
509 2011-08-29 Yao Qi <yao@codesourcery.com>
511 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
514 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
516 Fix TUI stepi on code without symbols.
517 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
520 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
523 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
524 and the static keyword.
525 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
526 Make prefix an array.
527 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
528 * mi/mi-main.c (get_register): Remove stb initialization and the static
531 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
533 Code cleanup - make mi_opt const.
534 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
536 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
537 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
538 (mi_cmd_env_dir): Likewise.
539 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
540 (mi_cmd_target_file_put): Likewise.
541 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
542 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
543 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
544 (mi_valid_noargs): Make opts const.
545 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
546 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
547 (mi_cmd_data_read_memory): Likewise.
548 (mi_cmd_data_read_memory_bytes): Likewise.
549 (mi_cmd_data_write_memory): Likewise.
551 2011-08-26 Matt Rice <ratmice@gmail.com>
553 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
554 bcache_xmalloc, replace bcache_xmalloc with call to
555 psymbol_bcache_init for psymbol_cache.
556 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
558 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * inf-loop.c (inferior_event_handler): Add exception_print in
563 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
565 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
566 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
567 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
568 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
569 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
570 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
571 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
572 * infrun.c (fetch_inferior_event): Call
573 make_bpstat_clear_actions_cleanup.
574 * top.c (execute_command): New variable cleanup_if_error, call
575 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
576 * utils.c (do_bpstat_clear_actions_cleanup)
577 (make_bpstat_clear_actions_cleanup): New functions.
579 2011-08-26 Pedro Alves <pedro@codesourcery.com>
581 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
582 either the parent or the child forks. Rename a couple locals.
584 2011-08-26 Pedro Alves <pedro@codesourcery.com>
586 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
587 library call. Avoid reading the `status' local if all waitpid
590 2011-08-26 Pedro Alves <pedro@codesourcery.com>
592 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
593 opening /proc/PID/task always succeeds.
595 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
597 * linespec.c (symtab_from_filename): Check for the end of string.
599 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
602 * varobj.c (cplus_describe_child): Add the keyword
603 'class' to the output of the method when dealing
604 with a cast to a base class.
606 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
608 No functionality change.
609 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
610 function comment a reference, new variables tp and bs, move here code
611 from throw_exception.
612 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
613 describe it in the comment.
614 * exceptions.c (throw_exception): Remove variable tp, move the code for
615 bpstat_clear_actions to bpstat_clear_actions.
617 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
619 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
620 * linux-nat.c: Include linux-procfs.h.
621 (linux_proc_get_tgid): Move to ...
622 * common/linux-procfs.c: ... here. New file.
623 * common/linux-procfs.h: New file.
624 * linux-thread-db.c: Include linux-procfs.h.
625 * Makefile.in: Update dependencies.
626 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
627 * config/arm/linux.mh: Likewise.
628 * config/i386/linux.mh: Likewise.
629 * config/i386/linux64.mh: Likewise.
630 * config/ia64/linux.mh: Likewise.
631 * config/m32r/linux.mh: Likewise.
632 * config/m68k/linux.mh: Likewise.
633 * config/mips/linux.mh: Likewise.
634 * config/pa/linux.mh: Likewise.
635 * config/pa/linux.mh: Likewise.
636 * config/powerpc/linux.mh: Likewise.
637 * config/powerpc/ppc64-linux.mh: Likewise.
638 * config/powerpc/spu-linux.mh: Likewise.
639 * config/sparc/linux.mh: Likewise.
640 * config/sparc/linux64.mh: Likewise.
641 * config/xtensa/linux.mh: Likewise.
643 2011-08-24 Hui Zhu <teawater@gmail.com>
645 * tracepoint.c (cond_string_is_same): New function.
646 (find_matching_tracepoint): Add condition check
647 by cond_string_is_same.
649 2011-08-23 Josh Matthews <josh@joshmatthews.net>
651 Fix build error in Darwin port.
652 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
654 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
657 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
658 (command_line_is_silent): New function.
659 (bpstat_do_actions_1): No longer use commands_left, use
660 command_line_is_silent for commands.
661 (bpstat_alloc): Remove clearing of commands_left.
662 (bpstat_stop_status): Remove initialization of commands_left, use
663 command_line_is_silent.
664 * breakpoint.h (struct bpstats): Remove commands_left.
666 2011-08-18 Keith Seitz <keiths@redhat.com>
669 * cp-name-parser.y (struct demangle_info): Remove unused
672 (allocate_info): Change return type to struct demangle_info *.
673 Always allocate a new demangle_info.
674 Remove unused PREV pointer.
675 (cp_new_demangle_parse_info): New function.
676 (cp_demangled_name_parse_free): New function.
677 (do_demangled_name_parse_free_cleanup): New function.
678 (make_cleanup_cp_demangled_name_parse_free): New function.
679 (cp_demangled_name_to_comp): Change return type to
680 struct demangle_parse_info *.
681 Allocate a new storage for each call.
682 (main): Update usage for cp_demangled_name_to_comp
684 * cp-support.h (struct demangle_parse_info): New structure.
685 (cp_demangled_name_to_comp): Update API change for
687 (cp_new_demangle_parse_info): Declare.
688 (make_cleanup_cp_demangled_name_parse_free): New declaration.
689 (cp_demangled_name_parse_free): Declare.
690 * cp-support.c (cp_canonicalize_string): Update API
691 change for cp_demangled_name_to_comp.
692 (mangled_name_to_comp): Likewise.
693 Return struct demangle_parse_info, too.
694 (cp_class_name_from_physname): Update mangled_name_to_comp
696 (method_name_from_physname): Likewise.
697 (cp_func_name): Update API change for cp_demangled_name_to_comp.
698 (cp_remove_params): Likewise.
699 * python/py-type.c (typy_legacy_template_argument): Likewise.
701 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
702 (cp_merge_demangle_parse_infos): Declare.
703 * cp-support.c (ignore_typedefs): New file global.
704 (copy_string_to_obstack): New function.
705 (inspect_type): New function.
706 (replace_typedefs): New function.
707 (replace_typedefs_qualified_name): New function.
708 (cp_canonicalize_string_no_typedefs): New function.
709 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
710 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
711 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
712 instead of cp_canonicalize_string.
713 (find_method): Likewise.
714 (decode_compound): Before looking up the name, call
715 cp_canonicalize_string_no_typedefs.
716 (decode_variable): Likewise.
718 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
719 Tom Tromey <tromey@redhat.com>
720 Matt Rice <ratmice@gmail.com>
722 * python/lib/gdb/prompt.py: New file.
723 * python/lib/gdb/command/prompt.py: New file.
724 * NEWS: Document set extended-prompt and gdb.prompt library
726 2011-08-16 Yao Qi <yao@codesourcery.com>
728 * tic6x-linux-tdep.c: Move const arrays definition from here...
729 * tic6x-tdep.c: to here ...
731 2011-08-14 Yao Qi <yao@codesourcery.com>
733 * NEWS: New port to Texas Instruments TMS320C6x.
735 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
736 Bernd Schmidt <bernds@codesourcery.com>
737 Yao Qi <yao@codesourcery.com>
739 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
740 * solib-dsbt.c: New file. Support DSBT shared object.
741 * tic6x-linux-tdep.c: New file.
742 * tic6x-tdep.c: New file.
743 * tic6x-tdep.h: New file.
745 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
746 Yao Qi <yao@codesourcery.com>
748 * remote.c (PACKET_qXfer_fdpic): New enum value.
749 (remote_protocol_features): Add qXfer:fdpic:read packet.
750 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
751 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
752 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
754 2011-08-14 Yao Qi <yao@codesourcery.com>
756 Target description for tic6x.
757 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
758 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
759 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
760 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
761 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
762 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
763 * features/tic6x-c64xp-linux.xml: New.
764 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
765 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
766 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
767 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
768 * regformats/tic6x-c64xp.dat,
769 regformats/tic6x-c62x-linux.dat: Generated.
770 * regformats/tic6x-c64x-linux.dat,
771 regformats/tic6x-c64xp-linux.dat: Generated.
772 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
773 features/tic6x-*.c files.
774 Add regformats/tic6x-*.dat files.
776 2011-08-12 Doug Evans <dje@google.com>
778 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
779 * python/py-symbol.c (sympy_get_type): New function.
780 (symbol_object_getset): Add "type".
782 2011-08-12 Pedro Alves <pedro@codesourcery.com>
786 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
788 (tui_show_register_group): Don't store a byte buffer in the data
790 (tui_register_format): Skip registers with an empty name.
791 (tui_get_register): Store a struct value in the data element's
792 value field instead of a byte buffer holding the raw register
793 contents. Account for optimized-out and unavailable registers
794 when comparing register contents.
796 2011-08-09 Pedro Alves <pedro@codesourcery.com>
798 * printcmd.c (current_display_number): Update comment.
799 (disable_current_display_cleanup): Delete.
800 (do_one_display): Use make_cleanup_restore_integer. Gracefully
801 catch errors thrown while evaluating and printing the display.
803 2011-08-09 Tom Tromey <tromey@redhat.com>
805 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
807 2011-08-09 Pedro Alves <pedro@codesourcery.com>
809 * elfread.c (elf_symtab_read): Rework comments.
810 * maint.c (maintenance_command): Ditto.
811 * somread.c (som_symtab_read): Ditto.
812 * solib.c (solib_find, solib_map_sections, update_solib_list)
813 (solib_add, info_sharedlibrary_command, solib_name_from_address)
814 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
815 (sharedlibrary_command, no_shared_libraries): Ditto.
816 * solib-irix.c (locate_base, disable_break, enable_break)
817 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
818 (irix_current_sos, irix_open_symbol_file_object)
819 (irix_special_symbol_handling): Ditto.
820 * solib-sunos.c (locate_base, first_link_map_member)
821 (sunos_current_sos, disable_break, enable_break)
822 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
824 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
825 (open_symbol_file_object, svr4_current_sos, enable_break)
826 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
828 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
829 (frv_current_sos, enable_break, frv_special_symbol_handling)
830 (frv_solib_create_inferior_hook): Ditto.
831 * solist.h (struct target_so_ops): Extend the comments of the
832 special_symbol_handling, current_sos and open_symbol_file_object
835 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
837 * python/lib/gdb/__init__.py: Auto-load files in command and
838 function directories.
839 * python/python.c (finish_python_initialization): Use
841 * python/lib/gdb/command/pretty_printers.py: Self register
843 * NEWS: Document auto-loading.
845 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
847 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
848 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
849 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
851 2011-08-08 Tom Tromey <tromey@redhat.com>
853 * breakpoint.c (clean_up_filters): Remove.
854 (catch_syscall_split_args): Use VEC_cleanup.
856 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
858 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
859 (main): Uncomment "Demangling error\n".
861 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
863 * solib-target.c (segment_attributes): Make them static.
864 (section_attributes, library_children, library_attributes): Likewise.
865 (library_list_children, library_list_attributes): Likesise.
866 (library_list_elements): Likewise.
868 2011-08-05 Pedro Alves <pedro@codesourcery.com>
870 * exceptions.c (throw_exception): Don't disable the current
872 * printcmd.c (disable_current_display_cleanup): New function.
873 (do_one_display): Install a cleanup to disable the current display
874 if doing the display throws.
876 2011-08-05 Eli Zaretskii <eliz@gnu.org>
878 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
879 initialization of the tp_new member to the corresponding
880 gdbpy_initialize_* function.
881 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
882 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
883 * python/py-function.c (gdbpy_initialize_functions): Likewise.
884 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
885 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
887 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
889 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
890 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
891 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
892 references to current_uiout.
894 2011-08-04 Pedro Alves <pedro@codesourcery.com>
896 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
897 (start_event_loop): Use TRY_CATCH instead of catch_errors.
898 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
899 * top.c (gdb_readline_wrapper): Adjust.
900 * tui/tui-interp.c (tui_command_loop):
901 (_initialize_tui_interp): Don't install it.
903 2011-08-04 Pedro Alves <pedro@codesourcery.com>
905 * ui-out.h (uiout): Rename to ...
906 (current_uiout): ... this.
907 * ui-out.c (uiout): Rename to ...
908 (current_uiout): ... this.
909 * ada-lang.c (print_it_exception, print_one_exception)
910 (print_mention_exception): Adjust.
911 * breakpoint.c (watchpoint_check): Adjust.
912 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
913 (default_collect_info, watchpoints_info, print_one_catch_fork)
914 (print_one_catch_vfork, print_one_catch_syscall)
915 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
916 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
917 (print_it_watchpoint, print_mention_watchpoint)
918 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
919 (print_it_exception_catchpoint, print_one_exception_catchpoint)
920 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
921 (bkpt_print_mention, momentary_bkpt_print_it)
922 (tracepoint_print_mention, update_static_tracepoint)
923 (tracepoints_info, save_breakpoints): Adjust.
924 * cli-out.c (field_separator): Adjust.
925 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
926 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
927 * frame.c (get_current_frame): Adjust.
928 * infcmd.c (run_command_1, print_return_value): Adjust.
929 * inferior.c (inferior_command, info_inferiors_command): Adjust.
930 * infrun.c (print_end_stepping_range_reason): Adjust.
931 (print_signal_exited_reason, print_exited_reason): Adjust.
932 (print_signal_received_reason, print_no_history_reason): Adjust.
933 * interps.c (interp_set): Adjust.
934 * osdata.c (info_osdata_command): Adjust.
935 * progspace.c (maintenance_info_program_spaces_command): Adjust.
936 * remote-fileio.c (remote_fileio_request): Adjust.
937 * remote.c (show_remote_cmd): Adjust.
938 * solib.c (info_sharedlibrary_command): Adjust.
939 * source.c (print_source_lines_base): Adjust.
940 * stack.c (print_stack_frame): Adjust.
941 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
942 * symfile-mem.c (add_vsyscall_page): Adjust.
943 * symfile.c (load_progress, generic_load)
944 (print_transfer_performance): Adjust.
945 * thread.c (info_threads_command, restore_selected_frame)
946 (thread_command): Adjust.
947 * top.c (make_cleanup_restore_ui_file): Adjust.
948 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
949 (print_one_static_tracepoint_marker): Adjust.
950 * cli/cli-cmds.c (print_disassembly): Adjust.
951 * cli/cli-decode.c (print_doc_line): Adjust.
952 * cli/cli-interp.c (safe_execute_command): Adjust.
953 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
954 (handle_redirections): Adjust.
955 * cli/cli-script.c (show_user_1): Adjust.
956 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
957 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
958 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
959 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
960 (mi_cmd_env_dir): Adjust.
961 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
962 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
963 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
964 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
965 (list_args_or_locals): Adjust.
966 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
967 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
968 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
969 (mi_cmd_var_list_children, mi_cmd_var_info_type)
970 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
971 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
972 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
973 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
974 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
975 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
976 (list_available_thread_groups, mi_cmd_list_thread_groups)
977 (mi_cmd_data_list_register_names)
978 (mi_cmd_data_list_changed_registers)
979 (mi_cmd_data_list_register_values, get_register)
980 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
981 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
982 (mi_cmd_list_target_features, mi_cmd_add_inferior)
983 (mi_execute_command, mi_load_progress): Adjust.
984 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
985 * python/py-auto-load.c (print_script, info_auto_load_scripts):
987 * python/py-breakpoint.c (bppy_get_commands): Adjust.
988 * tui/tui-interp.c (tui_command_loop): Adjust.
989 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
991 2011-08-04 Pedro Alves <pedro@codesourcery.com>
993 * exceptions.c (struct catcher): Remove saved_uiout field.
994 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
995 no longer save/resvore the global ui_out builder.
996 (catch_exceptions_with_msg): Save/override/restore the global
997 ui_out builder manually instead of relying on TRY_CATCH to do it.
998 (catch_errors): Save/restore the global ui_out builder manually
999 instead of relying on TRY_CATCH to do it.
1000 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1002 (TRY_CATCH): Adjust.
1003 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1004 the global ui_out builder manually instead of relying on TRY_CATCH
1007 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1009 * breakpoint.c (update_global_location_list): Ensure
1010 invariant 'first loc marked not duplicated and inserted,
1011 following locs marked duplicated/not inserted' is respected
1012 for multiple locations at the same address.
1013 (unduplicated_should_be_inserted) New function.
1014 (swap_insertion) New function.
1016 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 * stack.c (print_frame_arguments_choices): Comment typo fix.
1020 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1023 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1024 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1025 argument. Update callers.
1027 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1030 * doublest.c (convert_doublest_to_floatformat): Pass correct
1031 mantissa length to put_field.
1033 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1035 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1036 exception_print code path.
1037 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1038 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1039 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1041 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1044 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1045 Remove, merge them into ...
1046 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1047 variable args and its initialization.
1048 (struct print_args_args, print_args_stub): Remove, merge them into
1050 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1052 (do_gdb_disassembly): ... here. Remove variable args and its
1054 (print_frame): Remove variable args and its initialization, new
1055 variable gdbarch and numargs (from print_args_stub), inline here
1056 print_args_stub with a TRY_CATCH.
1057 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1059 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1060 New variable e, remove variable btargs and its initialization.
1062 2011-08-01 Tristan Gingold <gingold@adacore.com>
1064 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1066 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1068 * breakpoint.c (insert_bp_location): Document return value.
1069 (insert_breakpoint_locations): Fix documentation.
1070 (remove_breakpoints): Add documentation.
1072 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1074 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1075 argument. Update callers.
1077 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * stack.c (print_frame_info): Comment typo fix.
1081 2011-07-29 Sterling Augustine <saugustine@google.com>
1083 * MAINTAINERS (Write After Approval): Add myself to the list.
1085 2011-07-29 Tom Tromey <tromey@redhat.com>
1087 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1088 (library_list_start_segment): Update.
1089 (library_list_start_section): Update.
1091 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1093 * varobj.c (value_get_print_value): Move hint check later into the
1094 function. Comment function. Free thevalue before reusing it.
1096 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1097 Pedro Alves <pedro@codesourcery.com>
1099 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1101 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1102 Assert the result kind.
1103 * value.h (value_one): Remove parameter lv.
1105 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1107 Fix crash on lval_computed values.
1108 * valops.c (value_zero): Use not_lval for lval_computed.
1110 2011-07-27 Tom Tromey <tromey@redhat.com>
1112 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1113 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1115 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1117 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1118 "ptype" by their typedefs difference.
1120 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 * dwarf2expr.c (ctx_no_read_reg): New function.
1123 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1124 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1125 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1126 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1128 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1130 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1131 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1133 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1134 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1135 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1136 (ctx_no_get_base_type): Move the functions here.
1137 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1138 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1139 (ctx_no_get_base_type): New declarations.
1141 2011-07-27 Tom Tromey <tromey@redhat.com>
1143 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1145 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1146 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1148 2011-07-26 Sterling Augustine <saugustine@google.com>
1150 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1152 (dump_bfd_file): Likewise.
1154 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1156 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1157 (remote_hw_watchpoint_length_limit): New variable.
1158 (_initialize_remote) add set,show cmds for this new variable.
1159 * gdb.texinfo: document these new commands.
1160 * NEWS: Mention these new commands.
1162 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1164 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1165 true for software watchpoints.
1167 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1171 2011-07-26 Tom Tromey <tromey@redhat.com>
1173 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1174 * dwarf2read.c (read_indirect_string_at_offset): New function.
1175 (read_indirect_string): Use it.
1176 (dwarf_decode_macro_bytes): New function, taken from
1177 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1178 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1179 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1181 (struct dwarf2_per_objfile) <macro>: New field.
1182 (dwarf2_elf_names): Add .debug_macro.
1183 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1184 (dwarf2_locate_sections): Handle new section.
1185 (read_file_scope): Handle DW_AT_GNU_macros.
1186 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1188 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1190 * NEWS: Mention dcache configuration.
1191 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1192 (dcache_size, dcache_line_size): New variables.
1193 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1194 (struct dcache_block): Make it expandable.
1195 (struct dcache_struct): New field.
1196 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1197 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1198 (dcache_poke_byte, dcache_print_line): Adjust.
1199 (set_dcache_size, set_dcache_line_size): New functions.
1200 (set_dcache_command, show_dcache_command): New functions.
1201 (_initialize_dcache): Add new commands.
1203 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1205 * progspace.h (struct program_space): Add solib_add_generation.
1206 * infcmd.c (post_create_inferior): Only call solib_add if not
1208 * solib.c (solib_add): Increment solib_add_generation.
1210 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1212 Fix implicit pointer offsets.
1213 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1216 2011-07-25 Tom Tromey <tromey@redhat.com>
1218 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1220 (ada_exception_sal): Make 'ops' const.
1221 (ada_decode_exception_location): Likewise.
1222 (ada_decode_assert_location): Likewise.
1223 (catch_assert_command): Update.
1224 (catch_ada_exception_command): Update.
1225 (create_ada_exception_catchpoint): Make 'ops' const.
1226 * breakpoint.c (set_raw_breakpoint_without_location)
1227 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1229 (create_internal_breakpoint): Update.
1230 (init_raw_breakpoint_without_location): Make 'ops' const.
1231 (init_raw_breakpoint, init_catchpoint)
1232 (create_fork_vfork_event_catchpoint)
1233 (create_syscall_event_catchpoint, init_breakpoint_sal)
1234 (create_breakpoint_sal, create_breakpoints_sal)
1235 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1236 * breakpoint.h (struct breakpoint) <ops>: Now const.
1237 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1240 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1242 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1244 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1246 * breakpoint.h (print_recreate_thread): Declare.
1247 (struct breakpoint): Move step_count, pass_count,
1248 number_on_target, static_trace_marker_id,
1249 static_trace_marker_id_idx ...
1250 (struct tracepoint): ... to this new struct.
1251 (get_tracepoint, get_tracepoint_by_number_on_target)
1252 (get_tracepoint_by_number): Change return type to struct
1254 * breakpoint.c (is_tracepoint_type): New, factored out from
1256 (is_tracepoint): Adjust.
1257 (print_one_breakpoint_location): Cast to struct tracepoint as
1258 necessary, and adjust.
1259 (print_recreate_catch_fork, print_recreate_catch_vfork)
1260 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1261 print_recreate_thread.
1262 (init_breakpoint_sal): New, factored out from
1263 create_breakpoint_sal.
1264 (create_breakpoint_sal): Reimplement.
1265 (create_breakpoint): Allocate a struct tracecepoint if the caller
1266 wanted a tracepoint. Use init_breakpoint_sal and
1268 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1269 (print_recreate_masked_watchpoint)
1270 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1271 (tracepoint_print_one_detail): Adjust.
1272 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1273 Dump the pass count here.
1274 (update_static_tracepoint): Adjust.
1275 (addr_string_to_sals): Adjust.
1276 (create_tracepoint_from_upload): Adjust. Change return type to
1277 struct tracepoint pointer.
1278 (trace_pass_set_count): Change parameter type to struct tracepoint
1279 pointer, and adjust.
1280 (trace_pass_command): Adjust.
1281 (get_tracepoint, get_tracepoint_by_number_on_target)
1282 (get_tracepoint_by_number): Change return type to struct
1283 tracepoint pointer, and adjust.
1284 (print_recreate_thread): New, factored out from save_breakpoints.
1285 (save_breakpoints): Don't print thread and task and passcount
1287 * remote.c (remote_download_tracepoint): Adjust.
1288 * tracepoint.c (trace_actions_command, validate_actionline)
1289 (start_tracing, tfind_1, trace_find_tracepoint_command)
1290 (trace_dump_command): Adjust.
1291 (find_matching_tracepoint): Change return type to struct
1292 tracepoint pointer, and adjust.
1293 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1294 (tfile_trace_find, tfile_fetch_registers): Adjust.
1295 * tracepoint.h (create_tracepoint_from_upload): Change return type
1296 to struct tracepoint pointer.
1297 * ada-lang.c (print_recreate_exception): Call
1298 print_recreate_thread.
1299 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1301 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1303 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1304 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1305 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1306 watchpoint_thread, watchpoint_triggered ...
1307 (struct watchpoint): ... to this new struct.
1308 (is_watchpoint): Declare.
1309 (install_breakpoint): Add new `internal' parameter.
1310 * breakpoint.c (is_watchpoint): Delete declaration.
1311 (set_breakpoint_condition): Handle watchpoints.
1312 (is_watchpoint): Make public.
1313 (watchpoint_in_thread_scope): Change parameter type to struct
1315 (watchpoint_del_at_next_stop): Change parameter type to struct
1316 watchpoint. Remove assertion. Adjust.
1317 (update_watchpoint): Ditto.
1318 (insert_breakpoints, breakpoint_init_inferior)
1319 (watchpoints_triggered, watchpoint_check)
1320 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1321 (bpstat_stop_status, print_one_breakpoint_location)
1322 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1323 to struct watchpoint as necessary, and adjust.
1324 (install_breakpoint): Add `internal' argument. If true, don't
1325 mention the new breakpoint. Use set_breakpoint_number.
1326 (create_fork_vfork_event_catchpoint)
1327 (create_syscall_event_catchpoint): Adjust.
1328 (dtor_watchpoint): New.
1329 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1330 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1331 (print_it_watchpoint, print_mention_watchpoint)
1332 (print_recreate_watchpoint, insert_masked_watchpoint)
1333 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1334 (print_one_detail_masked_watchpoint)
1335 (print_mention_masked_watchpoint)
1336 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1337 necessary, and adjust.
1338 (watch_command_1): Allocate and initialize a struct watchpoint
1339 instead of a struct breakpoint. Use install_breakpoint.
1340 (catch_exec_command_1): Adjust.
1341 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1343 (delete_breakpoint, enable_breakpoint_disp)
1344 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1345 as necessary, and adjust.
1346 (initialize_breakpoint_ops): Install dtor_watchpoint as
1347 watchpoints' dtor method.
1348 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1349 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1350 to struct watchpoint as necessary, and adjust.
1352 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1354 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1355 the the base class ops table.
1356 (catch_exception_breakpoint_ops)
1357 (catch_exception_unhandled_breakpoint_ops)
1358 (catch_assert_breakpoint_ops): Don't statically initialize.
1359 (initialize_ada_catchpoint_ops): New.
1360 (_initialize_ada_language): Call it.
1361 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1362 (bkpt_breakpoint_ops): Forward declare.
1363 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1364 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1365 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1366 (masked_watchpoint_breakpoint_ops)
1367 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1368 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1369 base class ops table.
1370 (null_re_set, null_check_status, null_works_in_software_mode)
1371 (null_resources_needed, null_print_one_detail): Delete.
1372 (bkpt_dtor): Rename to ...
1373 (base_breakpoint_dtor): ... this. Make static.
1374 (bkpt_allocate_location): Rename to ...
1375 (base_breakpoint_allocate_location): ... this. Make static.
1376 (base_breakpoint_re_set): New.
1377 (internal_error_pure_virtual_called): New.
1378 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1379 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1380 (base_breakpoint_works_in_software_mode)
1381 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1382 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1383 (base_breakpoint_print_recreate): New functions.
1384 (base_breakpoint_ops): New global.
1385 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1386 (bkpt_breakpoint_hit): Make static.
1387 (bkpt_check_status): Delete.
1388 (bkpt_resources_needed): Make static.
1389 (bkpt_works_in_software_mode): Delete.
1390 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1392 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1393 (momentary_breakpoint_ops): Don't statically initialize.
1394 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1396 (tracepoint_insert_location, tracepoint_remove_location)
1397 (tracepoint_check_status, tracepoint_works_in_software_mode)
1398 (tracepoint_print_it): Delete.
1399 (tracepoint_breakpoint_ops): Don't statically initialize.
1400 (initialize_breakpoint_ops): New.
1401 (_initialize_breakpoint): Call it.
1402 * breakpoint.h (null_re_set, null_works_in_software_mode)
1403 (null_resources_needed, null_check_status, null_print_one_detail):
1404 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1405 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1406 (bkpt_check_status, bkpt_resources_needed)
1407 (bkpt_works_in_software_mode, bkpt_print_it)
1408 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1409 Delete declarations.
1410 (initialize_breakpoint_ops): Declare.
1412 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1414 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1415 (momentary_bkpt_print_it): Simplify.
1417 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1419 Split internal, momentary and user breakpoints breakpoint_ops
1422 * breakpoint.c (internal_breakpoint_ops)
1423 (momentary_breakpoint_ops): Forward declare.
1424 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1425 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1426 (create_overlay_event_breakpoint)
1427 (create_std_terminate_master_breakpoint)
1428 (create_exception_master_breakpoint): Create breakpoints with
1429 internal_breakpoint_ops vtable.
1430 (set_longjmp_breakpoint): Create momentary breakpoints with
1431 momentary_breakpoint_ops vtable, using
1432 momentary_breakpoint_from_master.
1433 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1434 (create_solib_event_breakpoint): Create breakpoints with
1435 internal_breakpoint_ops vtable.
1436 (set_momentary_breakpoint): Create breakpoints with
1437 momentary_breakpoint_ops vtable.
1438 (momentary_breakpoint_from_master): New, factored out from
1439 clone_momentary_breakpoint.
1440 (clone_momentary_breakpoint): Adjust.
1441 (watch_command_1): Create scope breakpoints with
1442 momentary_breakpoint_ops vtable.
1443 (bkpt_re_set): Remove handling of internal and momentary
1445 (bkpt_print_mention, bkpt_print_recreate): New.
1446 (bkpt_breakpoint_ops): Adjust.
1447 (internal_bkpt_re_set, internal_bkpt_check_status)
1448 (internal_bkpt_print_it, internal_bkpt_print_mention)
1449 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1450 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1451 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1452 (momentary_bkpt_print_recreate): New.
1453 (momentary_breakpoint_ops): New.
1455 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1457 Implement most breakpoint_ops methods for all breakpoint types,
1458 and move the default handlings to the proper callbacks.
1460 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1461 works_in_software_mode method.
1462 (insert_bp_location): Go through breakpoint_ops->insert_location
1463 for software and hardware watchpoints.
1464 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1466 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1467 for software and hardware watchpoints.
1468 (print_it_typical): Delete.
1469 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1471 (watchpoint_check): Adjust comment.
1472 (bpstat_check_location): Simply always call the breakpoint's
1473 breakpoint_hit method.
1474 (bpstat_stop_status): Always call the breakpoint's check_status
1475 method. Remove special cases for watchpoints and internal event
1476 breakpoints from here (moved to the check_status implementations).
1477 (print_one_breakpoint_location): Assume b->ops is never NULL.
1478 Remove static tracepoint marker id printing from here (moved to
1479 the print_one_detail callback implementation of tracepoints).
1480 (init_bp_location): Assert OPS is never NULL.
1481 (allocate_bp_location): Always call the breakpoint's
1482 allocate_location method, and remove the default code from here.
1483 (free_bp_location): Always call the location's dtor method, and
1484 remove the default code from here.
1485 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1486 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1487 parameter. Pass it down.
1488 (set_raw_breakpoint): Ditto.
1489 (print_it_catch_fork): Adjust to take a bpstat as argument.
1490 (catch_fork_breakpoint_ops): Install methods.
1491 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1492 (catch_vfork_breakpoint_ops): Install methods.
1493 (dtor_catch_syscall): Call the base dtor.
1494 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1495 (catch_syscall_breakpoint_ops): Install methods.
1496 (dtor_catch_exec): Call the base dtor.
1497 (print_it_catch_exec): Adjust to take a bpstat as argument.
1498 (catch_exec_breakpoint_ops): Install methods.
1499 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1500 the breakpoint's resources_needed method, and remove the default
1502 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1504 (clone_momentary_breakpoint): Clone the original's ops.
1505 (mention): Always call the breakpoint's print_mention method, and
1506 remove the default code from here.
1507 (create_breakpoint_sal): Adjust to pass the ops to
1508 set_raw_breakpoint rather than setting it manually.
1509 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1510 ops to set_raw_breakpoint_without_location rather than setting it
1512 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1513 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1514 (ranged_breakpoint_ops): Install methods.
1515 (break_range_command): Adjust to pass the ops to
1516 set_raw_breakpoint rather than setting it manually.
1517 (re_set_watchpoint, breakpoint_hit_watchpoint)
1518 (check_status_watchpoint, resources_needed_watchpoint)
1519 (works_in_software_mode_watchpoint, print_it_watchpoint)
1520 (print_mention_watchpoint, print_recreate_watchpoint): New
1522 (watchpoint_breakpoint_ops): Install new methods.
1523 (print_it_masked_watchpoint): New function.
1524 (masked_watchpoint_breakpoint_ops): Install new methods.
1525 (watch_command_1): Adjust to pass the right breakpoint_ops to
1526 set_raw_breakpoint_without_location rather than setting it
1527 manually later. Record the current pspace.
1528 (print_it_exception_catchpoint): Adjust to take a bpstat as
1530 (gnu_v3_exception_catchpoint_ops): Install new methods.
1531 (say_where): New function.
1532 (null_re_set, null_check_status, null_works_in_software_mode)
1533 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1535 (bp_location_ops): New global.
1536 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1537 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1538 (bkpt_check_status, bkpt_resources_needed)
1539 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1540 (bkpt_print_recreate): New functions.
1541 (bkpt_breakpoint_ops): New global.
1542 (tracepoint_re_set, tracepoint_insert_location)
1543 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1544 (tracepoint_check_status, tracepoint_works_in_software_mode)
1545 (tracepoint_print_it, tracepoint_print_one_detail)
1546 (tracepoint_print_mention, tracepoint_print_recreate): New
1548 (tracepoint_breakpoint_ops): New global.
1549 (delete_breakpoint): Always call the breakpoint's dtor method, and
1550 remove the default handling from here.
1551 (breakpoint_re_set_default): Make static.
1552 (breakpoint_re_set_one): Always call the breakpoints re_set
1553 method, and remove the default handling from here.
1554 (trace_command, ftrace_command, strace_command)
1555 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1556 to create_breakpoint.
1557 (save_breakpoints): Always call the breakpoint's print_recreate
1558 method, and remove the default handling from here.
1560 * ada-lang.c (dtor_exception): Call the base dtor.
1561 (re_set_exception): Call the base method.
1562 (print_it_exception, print_it_catch_exception): Adjust to take a
1564 (catch_exception_breakpoint_ops): Install methods.
1565 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1567 (catch_exception_unhandled_breakpoint_ops): Install methods.
1568 (print_it_catch_assert): Adjust to take a bpstat as argument.
1569 (catch_assert_breakpoint_ops): Install methods.
1571 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1572 to take a bpstat as argument.
1573 (enum print_stop_action): Add describing comments to each enum
1575 (breakpoint_re_set_default): Delete declaration.
1576 (null_re_set, null_works_in_software_mode, null_resources_needed)
1577 (null_check_status, null_print_one_detail): Declare.
1578 (bkpt_breakpoint_ops): Declare.
1579 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1580 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1581 (bkpt_check_status, bkpt_resources_needed)
1582 (bkpt_works_in_software_mode, bkpt_print_it)
1583 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1586 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1587 bkpt_breakpoint_ops.
1588 * python/py-breakpoint.c (bppy_init): Ditto.
1590 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1592 * MAINTAINERS (Write After Approval): Add myself to the list.
1594 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1596 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1598 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1600 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1601 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1602 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1604 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1605 (struct i386_debug_reg_state): New.
1606 (i386_init_dregs): New.
1608 (i386_cleanup_dregs): Use i386_init_dregs.
1609 (i386_show_dr): Add state parameter and adjust.
1610 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1612 (i386_remove_aligned_watchpoint): Likewise.
1613 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1614 (i386_update_inferior_debug_regs): New.
1615 (i386_insert_watchpoint): Work on a local mirror of the debug
1616 registers, and only update the inferior on success.
1617 (i386_remove_watchpoint): Ditto.
1618 (i386_region_ok_for_watchpoint): Adjust.
1619 (i386_stopped_data_address): Adjust.
1620 (i386_insert_hw_breakpoint): Adjust.
1621 (i386_remove_hw_breakpoint): Adjust.
1623 2011-07-22 Tom Tromey <tromey@redhat.com>
1625 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1626 from amd64_pseudo_register_read. Change arguments. Call
1627 mark_value_bytes_unavailable when needed.
1628 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1629 set_gdbarch_pseudo_register_read.
1630 * sentinel-frame.c (sentinel_frame_prev_register): Use
1631 regcache_cooked_read_value.
1632 * regcache.h (regcache_cooked_read_value): Declare.
1633 * regcache.c (regcache_cooked_read_value): New function.
1634 (regcache_cooked_read): Call
1635 gdbarch_pseudo_register_read_value if available.
1636 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1637 (i386_pseudo_register_read): Remove.
1638 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1639 i386_pseudo_register_read. Change arguments. Call
1640 mark_value_bytes_unavailable when needed.
1641 (i386_pseudo_register_read_value): New function.
1642 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1643 not set_gdbarch_pseudo_register_read.
1644 * gdbarch.sh (pseudo_register_read_value): New method.
1645 * gdbarch.c, gdbarch.h: Rebuild.
1646 * findvar.c (value_from_register): Call get_frame_register_value.
1648 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1650 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1652 (display_gdb_prompt): Likewise.
1653 (change_annotation_level): Likewise.
1654 (push_prompt): Likewise.
1655 (pop_prompt): Likewise.
1656 (handle_stop_sig): Use get_prompt with a level.
1657 * top.c (command_loop): Use get_prompt with a level.
1658 (set_async_annotation_level): Use set_prompt with a level.
1659 (get_prefix): New function.
1660 (set_prefix): Ditto.
1661 (set_suffix): Ditto.
1662 (get_suffix): Ditto.
1663 (get_prompt): Accept a level argument.
1664 (set_prompt): Accept a level argument. Free old prompts. Set
1665 new_async_prompt if level is 0.
1666 (init_main): Use set_prompt with a level. Do not set
1668 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1669 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1670 Modify set_prompt, get_prompt to account for levels.
1671 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1673 * python/python.c (before_prompt_hook): Use set_prompt.
1675 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1677 * defs.h: Add guard against inclusion in gdbserver.
1678 (struct ptid, ptid_t): Move to common/ptid.h.
1679 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1680 xsnprintf, internal_error): Move to common/common-utils.h.
1682 * gdb_assert.h: Move into common/ sub-directory.
1683 * gdb_locale.h: Ditto.
1684 * gdb_dirent.h: Ditto.
1685 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1686 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1687 Move into common/ptid.h.
1688 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1689 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1690 Change nomem to malloc_failure.
1691 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1692 * utils.c (nomem): Rename to malloc_failure.
1693 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1694 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1695 (gdb_buildargv): Change nomem to malloc_failure.
1696 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1697 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1698 ptid_is_pid): Move into common/ptid.c.
1699 (initialize_infrun): Delete initialization of null_ptid and
1701 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1702 linux_common_xfer_osdata.
1703 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1704 common/ptid.c and common/buffer.c.
1705 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1706 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1707 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1708 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1710 * common/gdb_assert.h: New.
1711 * common/gdb_dirent.h: New.
1712 * common/gdb_locale.h: New.
1713 * common/buffer.c: New.
1714 * common/buffer.h: New.
1715 * common/ptid.c: New.
1716 * common/ptid.h: New.
1717 * common/xml-utils.c: New.
1718 * common/xml-utils.h: New.
1719 * common/common-utils.c: New.
1720 * common/common-utils.h: New.
1721 * common/linux-osdata.c: New.
1722 * common/linux-osdata.h: New.
1723 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1724 * config/arm/linux.mh (NATDEPFILES): Ditto.
1725 * config/i386/linux.mh (NATDEPFILES): Ditto.
1726 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1727 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1728 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1729 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1730 * config/mips/linux.mh (NATDEPFILES): Ditto.
1731 * config/pa/linux.mh (NATDEPFILES): Ditto.
1732 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1733 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1734 * config/s390/s390.mh (NATDEPFILES): Ditto.
1735 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1736 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1737 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1739 2011-07-21 Matt Rice <ratmice@gmail.com>
1741 * NEWS: Add info macros and info definitions commands.
1743 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1745 * NEWS: Document Python prompt substitution hook.
1747 2011-07-18 Matt Rice <ratmice@gmail.com>
1750 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1751 * macrotab.c (foreach_macro): Ditto.
1752 (foreach_macro_in_scope): Ditto.
1753 * macrocmd.c (print_macro_callback): New function.
1754 (info_macro_command): Move some code to print_macro_definition.
1755 (print_macro_definition): New function.
1756 (print_one_macro): Add new arguments to callback.
1757 (info_definitions_command): New function.
1758 (info_macros_command): Ditto.
1759 (_initialize_macrocmd): Add info macros and info definitions commands.
1760 * symtab.c (add_macro_name): Add new arguments to callback.
1762 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1763 Tom Tromey <tromey@redhat.com>
1765 * top.c (set_prompt): Rewrite to free previous prompt, free
1766 asynch_new_prompt and set both on new prompts.
1767 * event-top.c (display_gdb_prompt): Add prompt substitution
1769 * python/python.c (before_prompt_hook): New function.
1771 2011-07-20 Matt Rice <ratmice@gmail.com>
1773 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1774 arguments to store_unsigned_integer.
1776 2011-07-20 Tom Tromey <tromey@redhat.com>
1778 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1779 in some declaration-only cases.
1781 2011-07-18 Tom Tromey <tromey@redhat.com>
1784 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1785 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1786 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1787 <debug_type_section>: New field.
1788 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1789 (load_cu): Use appropriate section.
1790 (create_signatured_type_table_from_index): Add 'section'
1792 (dwarf2_read_index): Only allow a single .debug_types section.
1793 (dw2_get_file_names): Use appropriate section.
1794 (read_type_comp_unit_head): Add 'section' argument.
1795 (create_debug_types_hash_table): Loop over all .debug_types
1797 (init_cu_die_reader): Use appropriate section.
1798 (process_psymtab_comp_unit, load_partial_comp_unit)
1799 (load_full_comp_unit, read_die_and_children, find_partial_die)
1800 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1801 (lookup_signatured_type_at_offset): Add 'section' argument.
1802 (read_signatured_type_at_offset): Add 'sect' argument.
1803 (read_signatured_type): Use appropriate section.
1804 (set_die_type, get_die_type_at_offset): Update.
1805 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1807 (write_psymtabs_to_index): Don't allow index with more than one
1808 .debug_types section.
1810 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1812 Fix crash if referenced CU is aged out.
1813 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1814 xfree of block.data.
1815 (indirect_pieced_value): New variable back_to, use to for xfree of
1817 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1819 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1820 (load_cu): New function from ...
1821 (dw2_do_instantiate_symtab): ... the code here ...
1822 (process_full_comp_unit): ... and here.
1823 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1826 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1828 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1831 2011-07-19 Gary Benson <gbenson@redhat.com>
1833 * infrun.c (struct execution_control_state): New member
1834 stop_func_filled_in.
1835 (clear_stop_func, fill_in_stop_func): New functions.
1836 (handle_inferior_event): Call clear_stop_func rather than
1837 manipulating the execution control state directly.
1838 Call fill_in_stop_func lazily as required rather than
1839 directly calling find_pc_partial_function in all cases.
1841 2011-07-18 Tom Tromey <tromey@redhat.com>
1843 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1844 checking for variable-sized array.
1846 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1848 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1849 of supported languages.
1850 * varobj.c: Add top definitions and basic implementation of the
1851 following callbacks: ada_number_of_children, ada_name_of_variable,
1852 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1853 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1854 (languages): Register Ada-specific callbacks.
1855 (variable_language): Add the Ada case in the language setter switch.
1857 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1861 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1865 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1866 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1867 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1868 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1869 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1870 (struct dwarf_expr_context_funcs): New, move here methods from ...
1871 (struct dwarf_expr_context): ... here. New fields funcs.
1872 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1873 (dwarf_expr_ctx_funcs): New.
1874 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1875 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1876 (needs_frame_ctx_funcs): New.
1877 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1879 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1881 * MAINTAINERS (Write After Approval): Add myself to the list.
1883 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1885 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1886 that CIE pointer of an FDE really points to a CIE .
1888 2011-07-15 Hui Zhu <teawater@gmail.com>
1890 * remote.c (remote_get_trace_status): Add comments.
1892 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1894 Code cleanup - constify struct lval_funcs.
1895 * dwarf2loc.c (pieced_value_funcs): Make it const.
1896 * infrun.c (siginfo_value_funcs): Likewise.
1897 * opencl-lang.c (opencl_value_funcs): Likewise.
1898 * valops.c (value_assign, value_ind): Make the funcs variable const.
1899 * value.c (struct value): Make location.computed.funcs target const.
1900 Rearrange the comments.
1901 (allocate_computed_value): Make the funcs parameter target const.
1902 (value_computed_funcs): Return the funcs target const.
1903 (value_free, value_copy, set_value_component_location): Make the funcs
1905 * value.h (allocate_computed_value): Make the funcs parameter target
1907 (value_computed_funcs): Return the funcs target const.
1908 * windows-tdep.c (tlb_value_funcs): Make it const.
1910 2011-07-14 Hui Zhu <teawater@gmail.com>
1912 * remote.c (remote_get_trace_status): Initialize p.
1914 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1917 * remote.c (remote_get_trace_status): New variable ex. Put
1918 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1920 2011-07-13 Tom Tromey <tromey@redhat.com>
1922 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1923 value_from_contents for final conversion.
1925 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1928 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1929 Indent prototypes so they do not get into tags.
1931 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 Code cleanup making also optimized out values lazy.
1934 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1935 allocate_optimized_out_value. Twice.
1936 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1937 * findvar.c (read_var_value): Likewise.
1938 * value.c (allocate_optimized_out_value): New function.
1939 * value.h (allocate_optimized_out_value): New declaration.
1941 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1943 Fix occasional crash of CTRL-C during DWARF read in.
1944 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1946 2011-07-11 Tom Tromey <tromey@redhat.com>
1948 * regcache.c (struct regcache_descr): Fix typo.
1949 * i387-tdep.c (i387_supply_xsave): Fix typo.
1951 2011-07-11 Tom Tromey <tromey@redhat.com>
1953 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1954 (read_file_scope, read_type_unit_scope): Use it.
1956 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1958 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1961 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1964 * python/python.c: Set gdbpy_should_print_stack default to off.
1965 (set_python): Deprecate maint set python print-stack to
1967 (_initialize_python): Deprecate maint set/show python print-stack.
1968 Add new prefix command, python. Add new setting, print-backtrace.
1969 * NEWS: Document set python print-stack. Document default change.
1971 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1973 * python/py-inferior.c (infpy_dealloc): New function.
1974 (inferior_to_inferior_object): Return a new object, or a
1975 new reference to the existing object.
1976 (find_thread_object): Cleanup references to inferior.
1977 (delete_thread_object): Ditto.
1978 * python/py-infthread.c (create_thread_object): Do not increment
1979 inferior reference count.
1981 2011-07-08 Tom Tromey <tromey@redhat.com>
1983 * dwarf2loc.c (locexpr_regname): New function.
1984 (locexpr_describe_location_piece): Use it.
1985 (disassemble_dwarf_expression): Add per_cu argument. Use
1987 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1988 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1990 (locexpr_describe_location_1): Add per_cu argument.
1991 (locexpr_describe_location): Update.
1992 (loclist_describe_location): Update.
1994 2011-07-08 Tom Tromey <tromey@redhat.com>
1996 * dwarf2expr.c (execute_stack_op): Add QUIT.
1998 2011-07-07 Hui Zhu <teawater@gmail.com>
2001 2011-07-06 Hui Zhu <teawater@gmail.com>
2002 * remote.c (remote_start_remote): Add TRY_CATCH for
2003 remote_get_trace_status.
2004 * tracepoint.c (disconnect_tracing): Ditto.
2006 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
2008 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2009 variables as signed, not unsigned.
2011 2011-07-06 Joel Brobecker <brobecker@adacore.com>
2013 * jit.c (jit_inferior_init): Reformat forward declaration.
2015 2011-07-06 Matt Rice <ratmice@gmail.com>
2017 * MAINTAINERS (Write After Approval): Add myself to the list.
2019 2011-07-06 Hui Zhu <teawater@gmail.com>
2021 * remote.c (remote_start_remote): Add TRY_CATCH for
2022 remote_get_trace_status.
2023 * tracepoint.c (disconnect_tracing): Ditto.
2025 2011-07-05 Tom Tromey <tromey@redhat.com>
2027 * symtab.c (operator_chars): Now static.
2028 * linespec.c (operator_chars): Don't declare.
2030 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2032 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2034 2011-07-05 Tom Tromey <tromey@redhat.com>
2036 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2037 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2038 (TYPE_CPLUS_REALLY_JAVA): New macro.
2039 * dwarf2read.c (process_structure_scope): Set
2040 TYPE_CPLUS_REALLY_JAVA.
2042 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2044 * ada-lang.c: Fix typos.
2045 * amd64-tdep.c: Likewise.
2046 * breakpoint.c: Likewise.
2047 * cli/cli-decode.c: Likewise.
2048 * findcmd.c: Likewise.
2049 * inline-frame.c: Likewise.
2050 * mi/mi-main.c: Likewise.
2051 * minsyms.c: Likewise.
2052 * monitor.c: Likewise.
2053 * monitor.h: Likewise.
2054 * prologue-value.c: Likewise.
2055 * reverse.c: Likewise.
2056 * s390-tdep.c: Likewise.
2058 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2060 * jit.c (jit_inferior_init): Forward declare.
2061 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2063 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2065 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2067 2011-07-04 Tristan Gingold <gingold@adacore.com>
2069 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2070 (tcb_fieldno): Add activation_link field.
2071 (get_known_tasks_addr): Moved and rewritten.
2072 (get_tcb_types_info): Set activation_link field.
2073 (read_known_tasks_array): Add parameter. Rewritten.
2074 (read_known_tasks_list): New function.
2075 (read_known_tasks): New function.
2076 (ada_build_task_list): Call read_known_tasks instead of
2077 read_known_tasks_array.
2078 * ravenscar-thread.c: Add first_task_name constant.
2079 (has_ravenscar_runtime): Check for task list too.
2081 2011-07-04 Tristan Gingold <gingold@adacore.com>
2083 * ada-tasks.c: Renames fieldno to actb_fieldno.
2084 (ada_get_task_number): Indentation.
2085 (get_tcb_types_info): Remove all parameters. Write directly
2087 (ptid_from_atcb_common): Adjust.
2088 (read_atcb): Adjust.
2090 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2092 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2094 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2096 * ui-out.c (ui_out_field_core_addr): Mention that the function
2097 description is in the header file.
2098 * ui-out.h (ui_out_field_core_addr): Document function.
2100 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2102 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2103 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2105 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2107 * symtab.c (expand_line_sal): Remove empty line.
2109 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2111 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2112 same way as ELFOSABI_NONE.
2113 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2115 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2117 * breakpoint.c: Fix typos in comments.
2118 * linespec.c: Likewise.
2119 * symtab.c: Likewise.
2121 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2123 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2124 section in separate object files.
2126 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2128 Fix false GCC warning.
2129 * linespec.c (decode_line_1): Initialize values.
2131 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * linespec.c (find_method): Accept the function type automatically only
2134 if it was specified with parameter types.
2136 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2138 Stop on first linespec terminator instead of eating what we can.
2139 * linespec.c (is_linespec_boundary): New function.
2140 (name_end): Remove function.
2141 (keep_name_info): New parameter on_boundary, replace the body.
2142 (decode_line_1): Provide the parameter to keep_name_info.
2143 (decode_compound): Likewise. Drop the trailing java return type
2146 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2148 Fall back linespec to minimal symbols.
2149 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2150 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2151 (find_method, symbol_found): Change error to cplusplus_error.
2153 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2157 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Tom Tromey <tromey@redhat.com>
2160 * dwarf2read.c (check_physname): New variable.
2161 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2162 (show_check_physname): New function.
2163 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2165 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2167 * machoread.c (macho_symfile_read): Delete OBE comment.
2169 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2171 * machoread.c (struct macho_oso_data): Delete.
2172 (current_oso): Delete.
2173 (macho_relocate_common_syms): New function, mostly extracted
2175 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2176 Remove code that sets and unset current_oso.
2177 (macho_symfile_relocate): Delete handling of common symbols,
2178 now moved to macho_relocate_common_syms.
2180 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2182 * darwin-nat.c (darwin_ptrace): Add documentation.
2183 Set errno to zero before calling ptrace. If ptrace returns
2184 -1 and errno is zero, then change then return zero.
2185 (darwin_kill_inferior): Issue a warning instead of triggering
2186 a failed assertion when the PT_KILL ptrace operations returned
2189 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2191 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2192 only when inf->private->no_ptrace.
2194 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2196 * ada-lang.c (print_it_exception): Print temporary catchpoints
2197 as "Temporary catchpoint".
2198 (print_mention_exception): Likewise.
2200 2011-07-01 Tom Tromey <tromey@redhat.com>
2202 * jv-lang.c (java_language_defn): Use java_printchar,
2204 (java_get_encoding): New function.
2205 (java_emit_char): Use generic_emit_char.
2206 (java_printchar): New function.
2207 (java_printstr): Likewise.
2209 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2211 * ada-typeprint.c (print_record_type): If unable to decode
2212 the name of the parent type, use the encoded name.
2214 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2216 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2217 pointer to constrained packed array type output.
2218 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2219 packed array output.
2221 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2223 * ada-typeprint.c (print_array_type): removed if condition on show
2224 being negative for bounds printing.
2226 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2228 * ada-lang.c (ada_identical_enum_types_p): New function.
2229 (symbols_are_identical_enums): New function.
2230 (remove_extra_symbols): Do nothing if NSYMS < 2.
2231 Use symbols_are_identical_enums.
2233 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2235 * ada-valprint.c (ada_value_print): Handle typedefs.
2237 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2239 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2241 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2243 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2244 (decode_constrained_packed_array): Likewise.
2245 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2247 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2249 * ada-exp.y (convert_char_literal): Handle typedef types.
2251 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2253 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2255 2011-06-30 Tom Tromey <tromey@redhat.com>
2257 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2258 * valops.c (find_overload_match): Call do_cleanups on early exit
2260 * solib.c (solib_find): Call do_cleanups on early exit path.
2262 2011-06-30 Tom Tromey <tromey@redhat.com>
2264 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2265 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2266 return paths. Defer final do_cleanups until last return.
2267 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2270 2011-06-30 Tom Tromey <tromey@redhat.com>
2272 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2274 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2276 * MAINTAINERS (Write After Approval): Add myself to the list.
2278 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2280 Disable epilogue unwinders on recent GCCs.
2281 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2282 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2283 * dwarf2read.c (process_full_comp_unit): Initialize
2284 EPILOGUE_UNWIND_VALID.
2285 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2286 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2287 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2289 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2291 Code cleanup - reformatting.
2292 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2293 (producer_is_gcc_ge_4): ... here, change the return value.
2294 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2297 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2299 Fix non-only rename list for Fortran modules import.
2300 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2301 cp_add_using_directive caller.
2302 (cp_add_using_directive): New parameter excludes, describe it. New
2303 variables ix and param. Compare if also excludes match. Allocate NEW
2304 with variable size, initialize EXCLUDES there.
2305 (cp_lookup_symbol_imports): New variable excludep, test
2306 current->EXCLUDES with it.
2307 * cp-support.h: Include vec.h.
2308 (struct using_direct): New field excludes, describe it.
2309 (DEF_VEC_P (const_char_ptr)): New.
2310 (cp_add_using_directive): New parameter excludes.
2311 * defs.h (const_char_ptr): New typedef.
2312 * dwarf2read.c (read_import_statement): New variables child_die,
2313 excludes and cleanups, read in excludes.
2314 (read_namespace): Adjust the cp_add_using_directive caller.
2316 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2319 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2320 negative comparisons.
2322 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2324 * mi/mi-main.c (mi_cmd_list_features): Emit
2325 breakpoint-notifications.
2327 2011-06-29 Tom Tromey <tromey@redhat.com>
2330 * valprint.h (generic_emit_char, generic_printstr): Declare.
2331 * valprint.c (wchar_printable, append_string_as_wide)
2332 (print_wchar): Move from c-lang.c.
2333 (generic_emit_char): New function; mostly taken from c_emit_char.
2334 (generic_printstr): New function; mostly taken from c_printstr.
2335 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2336 represented as arrays.
2337 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2339 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2340 identically to TYPE_CODE_INT.
2341 * f-lang.c (f_get_encoding): New function.
2342 (f_emit_char): Use generic_emit_char.
2343 (f_printchar): Replace comment.
2344 (f_printstr): Use generic_printstr.
2345 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2346 "character" types specially.
2347 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2349 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2351 (c_emit_char): Call generic_emit_char.
2352 (c_printstr): Call generic_printstr.
2354 2011-06-29 Gary Benson <gbenson@redhat.com>
2356 * breakpoint.c (bpstat_what): Removed duplicated case.
2358 2011-06-28 Tom Tromey <tromey@redhat.com>
2360 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2362 2011-06-27 Tom Tromey <tromey@redhat.com>
2364 * valops.c (find_overload_match): Call do_cleanups before early
2366 * top.c (execute_command): Call do_cleanups before early return.
2367 (command_loop): Likewise.
2368 * stack.c (backtrace_command): Make a null cleanup early. Don't
2369 conditionally call do_cleanups.
2370 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2372 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2373 so cleanups are always run.
2374 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2375 * findcmd.c (parse_find_args): Call do_cleanups on early return
2377 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2378 Don't conditionally call do_cleanups.
2379 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2382 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2384 * MAINTAINERS (Write After Approval): Use default email address.
2386 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2388 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2390 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2392 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2393 saved_regs_mask and copied_regs_mask fields.
2394 (sparc_record_save_insn): New prototype.
2395 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2396 (sparc_record_save_insn): New function.
2397 (sparc_analyze_prologue): Add head comment. Recognize store insns
2398 of call-saved registers. Use OFFSET consistently. Recognize flat
2399 frames and cache their settings.
2400 (sparc32_skip_prologue): Handle flat frames.
2401 (sparc_frame_cache): Add frame_offset to the base address.
2402 (sparc32_frame_cache): Adjust to new frame description.
2403 (sparc32_frame_prev_register): Likewise.
2404 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2405 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2406 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2407 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2408 frame by calling sparc_record_save_insn.
2409 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2410 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2411 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2413 2011-06-27 Tristan Gingold <gingold@adacore.com>
2415 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2416 field by map_addr and map_len.
2417 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2418 (munmap_section_buffer): Likewise.
2420 2011-06-24 Tom Tromey <tromey@redhat.com>
2422 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2423 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2424 * python/python.c (gdbpy_parameter): Make 'arg' const.
2425 (execute_gdb_command): Likewise.
2426 (gdbpy_decode_line): Likewise. Copy it.
2427 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2428 (gdbpy_write): Make 'arg' const.
2429 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2431 (gdbpy_lookup_type): Likewise.
2432 * python/py-prettyprint.c (print_children): Make 'name' const.
2433 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2434 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2436 * python/py-function.c (fnpy_init): Make 'name' const.
2437 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2438 (gdbpy_string_to_argv): Make 'input' const.
2439 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2441 * gdbtypes.h (lookup_typename): Update.
2442 * gdbtypes.c (lookup_typename): Make 'name' const.
2443 (lookup_struct): Likewise.
2444 (lookup_union): Likewise.
2445 (lookup_enum): Likewise.
2447 2011-06-24 Tom Tromey <tromey@redhat.com>
2449 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2450 gdb_thread_db.h. Move all common/ entries to be together.
2451 (TAGS): Don't depend on DEPFILES.
2453 2011-06-23 Yao Qi <yao@codesourcery.com>
2455 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2456 * remote.c (remote_start_remote): ... here.
2457 * monitor.c (monitor_open): ... here.
2459 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2461 * gdbtypes.c (append_composite_type_field_aligned): Fix
2462 calculation of bit position based on alignment.
2464 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2466 * breakpoint.c (bpstat_stop_status): Call the check_status
2467 breakpoint_ops method.
2468 (print_one_breakpoint_location): Also print the condition for Ada
2469 exception catchpoints.
2470 (allocate_bp_location): New, factored out from
2471 allocate_bp_location.
2472 (allocate_bp_location): Adjust. Call the owner breakpoint's
2473 allocate_location method, if there is one.
2474 (free_bp_location): Call the locations's dtor method, if there is
2476 (init_raw_breakpoint_without_location): New breakpoint_ops
2478 (set_raw_breakpoint_without_location): Adjust.
2479 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2480 (set_raw_breakpoint): Adjust.
2481 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2482 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2483 re_set and check_status methods.
2484 (init_catchpoint): Don't memset, initialize thread, addr_string
2485 and enable_state. Pass the ops down to init_raw_breakpoint.
2486 (install_catchpoint): Rename to ...
2487 (install_breakpoint): ... this, and make extern.
2488 (create_fork_vfork_event_catchpoint): Adjust.
2489 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2490 re_set and check_status methods.
2491 (create_syscall_event_catchpoint): Adjust.
2492 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2493 (masked_watchpoint_breakpoint_ops): Install NULL
2494 allocate_location, re_set and check_status methods.
2495 (catch_exec_command_1): Adjust.
2496 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2497 re_set and check_status methods.
2498 (create_ada_exception_breakpoint): Rename to ...
2499 (init_ada_exception_breakpoint): ... this. Add a struct
2500 breakpoint parameter, and delete the exp_string, cond_string and
2501 cond parameters. Use init_raw_breakpoint, and don't install or
2502 mention the breakpoint yet. Don't clear breakpoint fields that
2503 init_raw_breakpoint already clears.
2504 (re_set_breakpoint): Delete, split into ...
2505 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2507 (breakpoint_re_set_one): Call the breakpoint's
2508 breakpoint_ops->re_set implementation, if there's one. Adjust.
2509 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2510 (struct bp_location_ops): New type.
2511 (struct bp_location): New field `ops'.
2512 (struct breakpoint_ops): New `allocate_location', `re_set' and
2513 `check_status' fields. Make `breakpoint_hit''s description match
2515 (init_bp_location): Declare.
2516 (breakpoint_re_set_default): Declare.
2517 (create_ada_exception_breakpoint): Rename to ...
2518 (init_ada_exception_breakpoint): ... this. Add a struct
2519 breakpoint parameter, and delete the exp_string, cond_string and
2521 (install_breakpoint): Declare.
2522 * ada-lang.c: Include exceptions.h.
2523 <Ada exceptions description>: Update.
2524 (struct ada_catchpoint_location): New type.
2525 (ada_catchpoint_location_dtor): New function.
2526 (ada_catchpoint_location_ops): New global.
2527 (ada_catchpoint): New type.
2528 (create_excep_cond_exprs): New function.
2529 (dtor_exception, allocate_location_exception, re_set_exception)
2530 (should_stop_exception, check_status_exception): New functions.
2531 (print_one_exception, print_mention_exception)
2532 (print_recreate_exception): Adjust.
2533 (dtor_catch_exception, allocate_location_catch_exception)
2534 (re_set_catch_exception, check_status_catch_exception): New
2536 (catch_exception_breakpoint_ops): Install them.
2537 (dtor_catch_exception_unhandled)
2538 (allocate_location_catch_exception_unhandled)
2539 (re_set_catch_exception_unhandled)
2540 (check_status_catch_exception_unhandled): New functions.
2541 (catch_exception_unhandled_breakpoint_ops): Install them.
2542 (dtor_catch_assert, allocate_location_catch_assert)
2543 (re_set_catch_assert, check_status_catch_assert): New functions.
2544 (catch_assert_breakpoint_ops): Install them.
2545 (ada_exception_catchpoint_p): Delete.
2546 (catch_ada_exception_command_split)
2547 (ada_exception_catchpoint_cond_string): Rename exp_string
2548 parameter to excep_string. Adjust.
2549 (ada_parse_catchpoint_condition): Delete.
2550 (ada_exception_sal): Rename the exp_string parameter to
2551 excep_string. Delete the cond_string and cond parameters.
2553 (ada_decode_exception_location): Rename the exp_string parameter
2554 to excep_string. Delete the cond_string and cond parameters.
2556 (create_ada_exception_catchpoint): New function.
2557 (catch_ada_exception_command, ada_decode_assert_location)
2558 (catch_assert_command): Adjust.
2559 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2561 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2563 * ada-lang.c: Include arch-utils.h.
2564 (ada_decode_exception_location): Make static.
2565 (catch_ada_exception_command): Moved here from breakpoint.c.
2566 (ada_decode_assert_location): Make static.
2567 (catch_assert_command): Moved here from breakpoint.c.
2568 (_initialize_ada_lang): Install the exception and assert
2569 catchpoint commands here.
2570 * ada-lang.h (ada_decode_exception_location)
2571 (ada_decode_assert_location): Delete declarations.
2572 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2574 (create_ada_exception_breakpoint): Make extern.
2575 (catch_ada_exception_command, catch_assert_command): Moved to
2577 (add_catch_command): Make extern.
2578 (_initilize_breakpoint): Don't install the exception and assert
2579 catchpoint commands here.
2580 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2582 (add_catch_command, create_ada_exception_breakpoint): Declare.
2584 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2586 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2587 the breakpoint to the breakpoint chain here.
2588 (set_raw_breakpoint_without_location): Add the breakpoint to the
2589 breakpoint chain here.
2590 (init_raw_breakpoint): Adjust comments.
2591 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2593 (init_catchpoint): Don't set the catchpoint's breakpoint number
2595 (install_catchpoint): New function.
2596 (create_fork_vfork_event_catchpoint)
2597 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2598 use install_catchpoint.
2600 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2602 * breakpoint.c (create_catchpoint_without_mention)
2603 (create_catchpoint): Delete.
2605 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2607 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2608 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2609 reference to exec_pathname.
2610 (struct exec_catchpoint): New type.
2611 (dtor_catch_exec): New function.
2612 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2613 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2614 (catch_exec_command_1): Adjust to use init_catchpoint.
2615 (delete_breakpoint): Remove reference to exec_pathname.
2617 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2619 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2620 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2621 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2622 reference to syscalls_to_be_caught.
2623 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2625 (struct syscall_catchpoint): New type.
2626 (dtor_catch_syscall): New function.
2627 (insert_catch_syscall, remove_catch_syscall)
2628 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2629 (print_recreate_catch_syscall): Adjust.
2630 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2631 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2632 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2633 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2634 (masked_watchpoint_breakpoint_ops)
2635 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2636 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2637 there is one. Remove references to syscalls_to_be_caught.
2638 (catching_syscall_number): Adjust.
2639 * ada-lang.c (catch_exception_breakpoint_ops)
2640 (catch_exception_unhandled_breakpoint_ops)
2641 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2643 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2645 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2647 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2648 reference to forked_inferior_pid.
2649 (struct fork_catchpoint): New type.
2650 (breakpoint_hit_catch_fork, print_it_catch_fork)
2651 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2652 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2653 (create_fork_vfork_event_catchpoint): Adjust to use
2656 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2658 * breakpoint.c (add_to_breakpoint_chain)
2659 (init_raw_breakpoint_without_location): New functions, factored
2661 (set_raw_breakpoint_without_location): ... this one.
2662 (init_raw_breakpoint): New function, factored out from
2663 set_raw_breakpoint and adjusted to use
2664 init_raw_breakpoint_without_location.
2665 (set_raw_breakpoint): Adjust.
2666 (init_catchpoint): New function, factored out from
2667 create_catchpoint_without_mention and adjusted to use
2668 init_raw_breakpoint.
2669 (create_catchpoint_without_mention): Adjust.
2671 2011-06-22 Tom Tromey <tromey@redhat.com>
2673 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2674 argument of 0 specially.
2676 2011-06-22 Yao Qi <yao@codesourcery.com>
2678 * infrun.c (handle_inferior_event): Remove write-only local variable
2679 `sw_single_step_trap_p'.
2681 2011-06-20 Tom Tromey <tromey@redhat.com>
2683 * symtab.c (lookup_language_this): End loop if block is NULL.
2685 2011-06-17 Tom Tromey <tromey@redhat.com>
2687 * valops.c (value_of_this): Use lookup_language_this.
2688 * symtab.h (lookup_language_this): Declare.
2689 * symtab.c (lookup_language_this): New function.
2690 (lookup_symbol_aux): Use lookup_language_this.
2691 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2693 2011-06-17 Tom Tromey <tromey@redhat.com>
2695 * value.h (value_of_this): Update.
2696 (value_of_local): Remove.
2697 * valops.c (value_of_this): Rename from value_of_local. Change
2699 * p-exp.y (exp): Update.
2700 (variable): Likewise.
2701 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2703 2011-06-17 Tom Tromey <tromey@redhat.com>
2705 * valops.c (value_of_local): Complain if NAME is NULL.
2706 * std-operator.def (OP_OBJC_SELF): Remove.
2707 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2708 * objc-exp.y (name_not_typename): Use OP_THIS.
2709 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2711 <OP_OBJC_SELF>: Remove.
2712 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2714 2011-06-16 Tristan Gingold <gingold@adacore.com>
2716 * python/py-events.h (gdb_py_events): Make it extern.
2717 * python/py-evtregistry.c (gdb_py_events): Declare.
2719 2011-06-16 Hui Zhu <teawater@gmail.com>
2721 * remote.c (remote_trace_set_readonly_regions): Add check for
2722 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2725 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2727 * arm-linux-tdep.c: Include "auxv.h".
2729 (ARM_LINUX_SIZEOF_VFP): Define.
2730 (arm_linux_supply_vfp): New function.
2731 (arm_linux_collect_vfp): Likewise.
2732 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2733 (arm_linux_fpa_regset_sections): New variable.
2734 (arm_linux_vfp_regset_sections): Likewise.
2735 (arm_linux_core_read_description): New function.
2736 (arm_linux_init_abi): Install arm_linux_core_read_description and
2737 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2738 appropriate for the architecture.
2739 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2740 (tdesc_arm_with_m): Declare.
2741 (tdesc_arm_with_iwmmxt): Likewise.
2742 (tdesc_arm_with_vfpv2): Likewise.
2743 (tdesc_arm_with_vfpv3): Likewise.
2744 (tdesc_arm_with_neon): Likewise.
2745 * arm-linux-nat.c: Move features/*.c includes ...
2746 * arm-tdep.c: ... here.
2747 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2748 target description data structures ...
2749 * arm-tdep.c (_initialize_arm_tdep): ... here.
2750 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2751 HWCAP_VFPv3D16): Move definitions ...
2752 * arm-linux-tdep.h: ... here.
2754 2011-06-15 Hui Zhu <teawater@gmail.com>
2756 * remote.c (remote_trace_set_readonly_regions): Add a check for
2759 2011-06-14 Tom Tromey <tromey@redhat.com>
2761 * coffread.c (coffread_objfile): Rename from current_objfile.
2762 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2763 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2765 2011-06-14 Tom Tromey <tromey@redhat.com>
2767 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2768 (class_symtab): Remove.
2769 (jv_dynamics_progspace_key): New global.
2770 (jv_per_objfile_free): Reset program space data. Update assert.
2771 Don't clear globals.
2772 (get_dynamics_objfile): Use and set program space data.
2773 (get_java_class_symtab): Use get_dynamics_objfile.
2774 (add_class_symbol): Likewise.
2775 (java_link_class_type): Likewise.
2776 (java_object_type, jv_clear_object_type, set_java_object_type):
2778 (get_java_object_type): Update. Don't cache result.
2779 (is_object_type): Don't call set_java_object_type.
2780 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2781 initialize jv_dynamics_progspace_key.
2783 2011-06-14 Tom Tromey <tromey@redhat.com>
2785 * symtab.h (current_objfile): Don't declare.
2786 * objfiles.h (current_objfile): Don't declare.
2787 * objfiles.c (current_objfile): Remove.
2788 * mdebugread.c (current_objfile): New file-scope global.
2789 * dbxread.c (current_objfile): New file-scope global.
2790 * coffread.c (current_objfile): New file-scope global.
2792 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2794 * top.h (line): Rename to ...
2795 (saved_command_line): ... this.
2796 (linesize): Rename to ...
2797 (saved_command_line_size): ... this.
2798 * top.c (line): Rename to ...
2799 (saved_command_line): ... this.
2800 (linesize): Rename to ...
2801 (saved_command_line_size): ... this.
2802 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2803 * event-top.c (command_line_handler): Adjust.
2804 * main.c (captured_main): Adjust.
2806 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2808 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2809 get_frame_func instead of get_frame_pc to determine the code
2810 address used to construct the frame ID.
2811 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2812 (i386_epilogue_frame_this_id): Likewise.
2813 (i386_epilogue_frame_prev_register): New function.
2814 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2815 (i386_stack_tramp_frame_sniffer): Fix coding style.
2816 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2817 (i386_gdbarch_init): Fix comments.
2819 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2821 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2822 instruction when walking back through the instruction stream.
2824 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2826 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2827 fullname parameters order.
2829 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2832 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2834 * psymtab.c (map_symbol_filenames_psymtab)
2835 (map_partial_symbol_filenames): Likewise.
2836 * psymtab.h: Include symfile.h.
2837 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2838 * symfile.h (symbol_filename_ftype): New.
2839 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2840 map_symbol_filenames, clarify more the naming in comment.
2842 2011-06-07 Doug Evans <dje@google.com>
2844 * cc-with-index.sh: Fix typos in comment.
2845 Look for ../../gdb, for fullname.exp.
2847 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2848 Pedro Alves <pedro@codesourcery.com>
2850 * cli/cli-cmds.c (shell_escape): Use waitpid.
2851 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2853 2011-06-07 Tristan Gingold <gingold@adacore.com>
2855 * xcoffread.c (dwarf2_xcoff_names): New variable.
2856 (aix_process_linenos): Add a guard.
2857 (xcoff_symfile_finish): Free dwarf2.
2858 (xcoff_initial_scan): Add dwarf2 support.
2860 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2862 * infcall.c (run_inferior_call): Don't mask async. Instead force
2863 a synchronous wait, if the target can async.
2865 * target.h (struct target_ops): Delete to_async_mask.
2866 (target_async_mask): Delete.
2867 * target.c (update_current_target): Delete references to to_async_mask.
2868 * linux-nat.c (linux_nat_async_mask_value): Delete.
2869 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2870 to linux_nat_async_mask_value.
2871 (linux_nat_async_mask): Delete.
2872 (linux_nat_async, linux_nat_close): Remove references to
2873 linux_nat_async_mask_value.
2874 * record.c (record_async_mask_value): Delete.
2875 (record_async): Remove references to record_async_mask_value.
2876 (record_async_mask): Delete.
2877 (record_can_async_p, record_is_async_p): Remove references to
2878 record_async_mask_value.
2879 (init_record_ops, init_record_core_ops): Remove references to
2881 * remote.c (remote_async_mask_value): Delete.
2882 (init_remote_ops): Remove reference to remote_async_mask.
2883 (remote_can_async_p, remote_is_async_p): Remove references to
2884 remote_async_mask_value.
2885 (remote_async): Remove references to remote_async_mask_value.
2886 (remote_async_mask): Delete.
2888 * infrun.c (fetch_inferior_event): Don't claim registers changed
2889 if the current thread is already not executing.
2891 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2893 From Stephen Kitt <steve@sk2.org>
2894 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2895 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2897 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2899 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2900 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2902 2011-06-03 Tom Tromey <tromey@redhat.com>
2904 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2906 * python/py-exitedevent.c (create_exited_event_object): Change
2907 type of 'exit_code'. Optionally add exit_code attribute.
2908 (emit_exited_event): Change type of 'exit_code'.
2909 * python/py-event.h (emit_exited_event): Update.
2910 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2911 * infrun.c (handle_inferior_event): Set exit code fields on
2913 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2915 * inferior.c (exit_inferior_1): Initialize new fields.
2917 2011-06-03 Tom Tromey <tromey@redhat.com>
2919 * dwarf2expr.c (get_signed_type): New function.
2920 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2922 2011-06-02 Keith Seitz <keiths@redhat.com>
2924 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2926 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2928 * top.h (simplified_command_loop): Delete declaration.
2930 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2932 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2933 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2935 2011-06-01 Yao Qi <yao@codesourcery.com>
2937 * objfiles.h (obj_section_addr): Update reference to objfile from
2939 (obj_section_endaddr): Likewise.
2941 2011-06-01 Daniel Jacobowitz <drow@false.org>
2943 * MAINTAINERS: Update my email address and affiliation. Also
2944 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2946 2010-05-31 Keith Seitz <keiths@redhat.com>
2949 * linespec.c (get_search_block): New function.
2950 (find_methods): Add FILE_SYMTATB parameter and use it and
2951 get_search_block to pass an appropriate block to
2952 lookup_symbol_in_namespace.
2953 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2954 Check if *ARGPTR starts with a filename first.
2955 If it does, call locate_first_half again to locate the next
2956 "first half" of the linespec.
2957 Pass FILE_SYMTATB to decode_objc and decode_compound.
2958 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2959 (locate_first_half): Stop on the first colon seen.
2960 (decode_compound): Add FILE_SYMTAB parameter.
2961 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2962 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2963 get_search_block with lookup_symbol.
2964 (find_method): Add FILE_SYMTAB parameter and pass it to
2966 (decode_objc): Use get_search_block.
2968 2010-05-31 Keith Seitz <keiths@redhat.com>
2971 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2972 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2973 and CP_ANONYMOUS_NAMESPACE_LEN.
2974 (cp_is_anonymous): Likewise.
2975 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2976 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2977 * dwarf2read.c (namespace_name): Likewise.
2978 (fixup_partial_die): Likewise.
2979 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2980 seen in the input, keep it.
2982 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2984 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2985 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2986 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2987 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2988 * remote.c (_initialize_remote): Register
2989 async_remote_interrupt_twice directly as
2990 sigint_remote_twice_token event.
2992 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2994 * target.h (enum inferior_event_type): Delete INF_ERROR.
2995 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2997 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2999 * interps.c (interp_set): Don't cancel continuations.
3001 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3003 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3005 2011-05-30 Pedro Alves <pedro@codesourcery.com>
3007 * continuations.h (continuation_ftype): Add `err' parameter.
3008 Document parameters.
3009 (do_all_continuations, do_all_continuations_thread)
3010 (do_all_intermediate_continuations)
3011 (do_all_intermediate_continuations_thread)
3012 (do_all_inferior_continuations): Add `err' parameter.
3013 * continuations.c (do_my_continuations_1, do_my_continuations)
3014 (do_all_inferior_continuations, do_all_continuations_ptid)
3015 (do_all_continuations_thread_callback)
3016 (do_all_continuations_thread, do_all_continuations)
3017 (do_all_intermediate_continuations_thread_callback)
3018 (do_all_intermediate_continuations_thread)
3019 (do_all_intermediate_continuations): Add `err' parameter, and pass
3020 it down all the way to the continuations proper.
3021 * inf-loop.c (inferior_event_handler): If fetching an inferior
3022 event throws an error, don't pop the target, and still call the
3023 continuations, but with `err' set. Adjust all other continuation
3025 * breakpoint.c (until_break_command_continuation): Add `err'
3027 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3028 issue another step if `err' is set.
3029 (struct until_next_continuation_args): New.
3030 (until_next_continuation): Add `err' parameter. Adjust.
3031 (until_next_command): Adjust.
3032 (struct finish_command_continuation_args): Add `thread' field.
3033 (finish_command_continuation): Add `err' parameter. Handle it.
3034 (finish_forward): Adjust.
3035 (attach_command_continuation): Add `err' parameter. Handle it.
3036 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3037 cancel the continuations.
3038 * interps.c (interp_set): Adjust to cancel the continuations.
3039 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3040 continuations rather than discarding.
3041 (free_thread): Don't clear thread inferior resources here.
3042 (delete_thread_1): Do it here instead. And do it before removing
3043 the thread from the threads list. Tag the thread as exited before
3044 clearing thread inferior resources.
3046 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3048 * infcall.c (call_function_by_hand): Rephrase error message.
3050 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3052 * defs.h (struct thread_info, struct inferior): Delete forward
3054 * breakpoint.h (struct thread_info): New forward declaration.
3055 * observer.sh (struct inferior): New forward declaration.
3056 * python/python-internal.h (struct inferior): New forward
3059 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3061 * defs.h (struct continuation, continuation_ftype)
3062 (continuation_free_arg_ftype, add_continuation)
3063 (do_all_continuations, do_all_continuations_thread)
3064 (discard_all_continuations, discard_all_continuations_thread)
3065 (add_intermediate_continuation, do_all_intermediate_continuations)
3066 (do_all_intermediate_continuations_thread)
3067 (discard_all_intermediate_continuations)
3068 (discard_all_intermediate_continuations_thread)
3069 (add_inferior_continuation, do_all_inferior_continuations)
3070 (discard_all_inferior_continuations): Move to ...
3071 * continuations.h: ... this new file.
3072 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3073 infcmd.c, inferior.c, infrun.c, interps.c: Include
3076 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3077 Doug Evans <dje@google.com>
3079 Fix PR 10970, PR 12702.
3080 * linux-nat.c (linux_lwp_is_zombie): New function.
3081 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3082 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3084 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3086 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3088 (add_continuation, add_intermediate_continuation)
3089 (add_inferior_continuation): Use them.
3090 * continuations.c (struct continuation): Use them.
3091 (make_continuation_ftype): Delete.
3092 (make_continuation, add_inferior_continuation, add_continuation)
3093 (add_intermediate_continuation): Use continuation_ftype and
3094 continuation_free_arg_ftype. Rename parameters to shorter names.
3096 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3098 * continuations.c (make_continuation): Make it return void.
3099 (do_my_continuations): Rename to ...
3100 (do_my_continuations_1): ... this. Remove old_chain parameter and
3102 (do_my_continuations): New.
3103 (discard_my_continuations): Rename to ...
3104 (discard_my_continuations_1): ... this. Remove old_chain
3105 parameter and adjust.
3106 (discard_my_continuations): New.
3107 (add_inferior_continuation): Simplify.
3108 (do_all_inferior_continuations): Reimplement on top
3109 do_my_continuations.
3110 (discard_all_inferior_continuations): Simplify.
3111 (add_continuation): Simplify.
3112 (do_all_continuations_ptid): Simplify.
3113 (discard_all_continuations_thread_callback): Simplify.
3114 (add_intermediate_continuation): Simplify.
3115 (discard_all_intermediate_continuations_thread_callback):
3118 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3120 * utils.c (struct continuation, add_continuation)
3121 (add_inferior_continuation)
3122 (do_all_inferior_continuations, discard_all_inferior_continuations)
3123 (restore_thread_cleanup, do_all_continuations_ptid)
3124 (do_all_continuations_thread_callback)
3125 (do_all_continuations_thread, do_all_continuations)
3126 (discard_all_continuations_thread_callback)
3127 (discard_all_continuations_thread, discard_all_continuations)
3128 (add_intermediate_continuation)
3129 (do_all_intermediate_continuations_thread_callback)
3130 (do_all_intermediate_continuations_thread)
3131 (do_all_intermediate_continuations)
3132 (discard_all_intermediate_continuations_thread_callback)
3133 (discard_all_intermediate_continuations_thread)
3134 (discard_all_intermediate_continuations): Move to ...
3135 * continuations.c: ... this new file, and adjust to no longer
3136 implement continuations on top of cleanups.
3137 * Makefile.in (SFILES): Add continuations.c.
3138 (COMMON_OBS): Add continuations.o.
3140 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3142 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3143 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3144 Internal error on invalid values.
3145 * reverse.c: Don't handle EXEC_ERROR.
3146 * mi/mi-main.c: Don't handle EXEC_ERROR.
3148 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3150 * record.c: Include event-loop.h, inf-loop.h.
3151 (record_beneath_to_async): New global.
3152 (tmp_to_async): New global.
3153 (record_async_inferior_event_token): New global.
3154 (record_open_1): Don't error out if async is enabled.
3155 (record_open): Handle to_async. Create an async event source in
3157 (record_close): Delete the async event source.
3158 (record_resumed): New global.
3159 (record_execution_dir): New global.
3160 (record_resume, record_core_resume): Set them. Register the
3161 target on the event loop.
3162 (record_wait): Rename to ...
3163 (record_wait_1): ... this. Add more debug output. Handle
3164 TARGET_WNOHANG, and the target beneath returning
3165 TARGET_WAITKIND_IGNORE.
3166 (record_wait): Reimplement on top of record_wait_1.
3167 (record_async_mask_value): New global.
3168 (record_async, record_async_mask, record_can_async_p)
3169 (record_is_async_p, record_execution_direction): New functions.
3170 (init_record_ops, init_record_core_ops): Install new methods.
3171 * infrun.c (fetch_inferior_event): Temporarily switch the global
3172 execution direction to the direction the target was going.
3173 (execution_direction): Change type to int.
3174 * target.c (default_execution_direction): New function.
3175 (update_current_target): Inherit and de_fault
3176 to_execution_direction.
3177 * target.h (struct target_ops) <to_execution_direction>: New
3179 (target_execution_direction): New macro.
3180 * inferior.h (execution_direction): Change type to int.
3182 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3184 * infcall.c (call_function_by_hand): Don't allow calling functions
3185 in reverse execution mode.
3187 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3189 * infcmd.c (finish_command): Allow async finish in reverse.
3191 2011-05-26 Yao Qi <yao@codesourcery.com>
3193 * gdb_thread_db.h: Delete. Move to ...
3194 * common/gdb_thread_db.h: ... here.
3196 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3198 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3199 function's entry point instead of a manually managed momentary
3200 breakpoint, and only ever issue one proceed call.
3201 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3202 doing a reverse-finish, switch to stepi mode, to do another step.
3203 (insert_step_resume_breakpoint_at_sal): Make public.
3204 (normal_stop): No need to save function value return registers if
3206 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3208 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3210 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3211 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3212 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3214 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3215 step-resume breakpoints.
3216 (print_it_typical): Handle bp_hp_step_resume.
3217 (bpstat_what): Ditto.
3218 (bptype_string): Ditto.
3219 (print_one_breakpoint_location): Ditto.
3220 (allocate_bp_location): Ditto.
3222 (breakpoint_re_set_one): Ditto.
3223 * infrun.c (handle_inferior_event): Adjust. Split
3224 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3225 BPSTAT_WHAT_HP_STEP_RESUME.
3226 (insert_step_resume_breakpoint_at_sal): Rename to ...
3227 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3228 parameter. Handle it.
3229 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3230 insert_step_resume_breakpoint_at_sal_1.
3231 (insert_step_resume_breakpoint_at_frame): Rename to ...
3232 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3233 set a high-priority step-resume breakpoint.
3234 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3235 (insert_step_resume_breakpoint_at_caller): Ditto.
3237 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3239 * breakpoint.c (iterate_over_related_breakpoints): New.
3240 (do_map_delete_breakpoint): New.
3241 (delete_command): Pass do_map_delete_breakpoint to
3242 map_breakpoint_numbers.
3243 (do_disable_breakpoint): New.
3244 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3246 (do_enable_breakpoint): Rename to ...
3247 (enable_breakpoint_disp): ... this.
3248 (enable_breakpoint): Adjust.
3249 (do_enable_breakpoint): New.
3250 (enable_once_breakpoint): Delete.
3251 (do_map_enable_breakpoint): New.
3252 (do_map_enable_once_breakpoint): New.
3253 (enable_once_command, enable_delete_command)
3254 (delete_trace_command): Iterate over the breakpoint's related
3257 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3259 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3260 for ALPHA_ZERO_REGNUM.
3261 (alpha_supply_int_regs): Explicitly supply zero as the value for
3262 ALPHA_ZERO_REGNUM in the register cache.
3263 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3265 2011-05-26 Yao Qi <yao@codesourcery.com>
3267 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3269 2011-05-26 Tristan Gingold <gingold@adacore.com>
3271 * symfile.h (struct dwarf2_section_names): New type.
3272 (struct dwarf2_debug_sections): New type.
3273 (dwarf2_has_info): Add parameter.
3274 * dwarf2read.c (dwarf2_elf_names): New variable.
3275 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3276 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3277 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3278 (dwarf2_has_info): Add names parameter. Pass names
3279 to dwarf2_locate_sections.
3280 (section_is_p): Rewrite using the names parameter.
3281 (dwarf2_locate_sections): Use section names from the names parameter.
3282 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3283 * elfread.c (read_psyms): Ditto.
3284 * machoread.c (macho_symfile_read): Ditto.
3286 2011-05-25 Andreas Schwab <schwab@redhat.com>
3289 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3291 2011-05-24 Keith Seitz <keiths@redhat.com>
3294 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3295 (decode_compound): Unconditionally call keep_name_info.
3297 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3299 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3300 scope, clear its command list.
3301 (map_breakpoint_numbers): Don't walk the related breakpoints list
3304 2011-05-24 Tom Tromey <tromey@redhat.com>
3306 * MAINTAINERS: Move Jim Blandy to past maintainers.
3308 2011-05-24 Tristan Gingold <gingold@adacore.com>
3310 * symfile.h (enum dwarf2_section_enum): New type.
3311 (dwarf2_get_section_info): New prototype.
3312 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3313 section_name by sect. Use a switch to select the info.
3314 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3315 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3317 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3319 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3320 shared library event breakpoint if there's no execution.
3322 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3324 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3325 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3327 2011-05-23 Tom Tromey <tromey@redhat.com>
3329 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3332 2011-05-23 Doug Evans <dje@google.com>
3334 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3335 entry for RuntimeError to doc string.
3337 2011-05-23 Jerome Guitton <guitton@adacore.com>
3339 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3340 sequence for probing loops.
3342 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3344 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3347 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3349 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3350 zero as the value for %g0 in the register cache.
3351 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3352 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3354 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3356 * infrun.c (proceed): Set previous_inferior_ptid here.
3357 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3358 inferior_ptid, not null_ptid.
3359 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3360 (fetch_inferior_event): Nor here.
3362 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3364 * inf-loop.c (inferior_event_handler): Only output a message if
3367 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3369 * MAINTAINERS: Update my e-mail address.
3371 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3373 * infrun.c (proceed): Switch the inferior event loop to
3374 INF_EXEC_COMPLETE if the target refused to resume from a
3377 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3379 * infcmd.c: Include "inf-loop.h".
3380 (step_once): When stepping into an inline subroutine, pretend the
3381 target has run. If the target can async, switch the inferior
3382 event loop to INF_EXEC_COMPLETE.
3383 * inferior.h (user_visible_resume_ptid): Declare.
3384 * infrun.c (user_visible_resume_ptid): New function, factored out
3387 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3388 that the current thread is running. Merge async and sync
3391 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3393 * infcmd.c (step_1): Simplify synchronous case.
3395 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3397 * tracepoint.c: Include exceptions.h.
3398 (TFILE_PID): Move higher in file.
3399 (tfile_open): Delay pushing the tfile target until we're assured
3400 the tfile header is present in the file. Wrap reading the initial
3401 newline-terminated lines in TRY_CATCH. Pop the target if the
3402 initial setup failed. Add the tfile's thread immediately
3403 aftwards, before any non-essential setup. Don't skip
3404 post_create_inferior if there are no traceframes present in the
3406 (tfile_close): Remove redundant check for null before xfree call.
3407 (tfile_thread_alive): New function.
3408 (init_tfile_ops): Register it as to_thread_alive callback.
3410 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3412 * tracepoint.c (tfile_open): Delete #if 0'd code.
3414 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3416 Fix -readnow for -gdwarf-4 unused type units.
3417 * dwarf2read.c (struct signatured_type): Remove the field offset.
3418 (create_signatured_type_table_from_index): Remove its initialization.
3419 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3420 instead. Add a complaint call.
3421 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3422 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3423 (lookup_signatured_type_at_offset, read_signatured_type)
3424 (write_one_signatured_type): Update the field for per_cu.
3426 2011-05-19 Tom Tromey <tromey@redhat.com>
3428 * python/py-inferior.c (python_inferior_exit): Use
3430 (python_on_resume): Likewise.
3432 2011-05-19 Matt Rice <ratmice@gmail.com>
3434 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3436 2011-05-19 Hui Zhu <teawater@gmail.com>
3438 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3440 2011-05-19 Hui Zhu <teawater@gmail.com>
3442 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3444 2011-05-18 Tom Tromey <tromey@redhat.com>
3446 * dwarf2read.c (dwarf2_add_field): Constify.
3447 * value.c (value_static_field): Constify.
3448 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3450 * ax-gdb.c (gen_static_field): Constify
3452 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3454 * linux-nat.c (kill_callback): Use SIGKILL first.
3456 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3458 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3460 2011-05-18 Tom Tromey <tromey@redhat.com>
3462 * value.c (value_fn_field): Constify.
3463 * symtab.c (gdb_mangle_name): Constify.
3464 * stabsread.c (update_method_name_from_physname): Make 'physname'
3466 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3467 const. Use explicit fputc_filtered loop.
3468 (pascal_type_print_base): Constify.
3469 * p-lang.h (pascal_type_print_method_args): Update.
3470 * linespec.c (add_matching_methods): Constify.
3471 (add_constructors): Likewise.
3472 * jv-typeprint.c (java_type_print_base): Constify.
3473 * gdbtypes.h (struct cplus_struct_type)
3474 <fn_fieldlist.fn_field.physname>: Now const.
3475 * dwarf2read.c (compute_delayed_physnames): Constify.
3476 (dwarf2_add_member_fn): Likewise.
3477 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3479 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3481 * infrun.c (resume): Mention which is the current thread, and its
3482 current PC in debug output.
3483 (prepare_to_proceed): Mention the thread switching in debug
3486 2011-05-18 Tom Tromey <tromey@redhat.com>
3488 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3489 path check. Use xmalloc and cleanups.
3490 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3492 2011-05-17 Tom Tromey <tromey@redhat.com>
3494 * cp-valprint.c (cp_print_value_fields): Catch errors from
3497 2011-05-17 Tom Tromey <tromey@redhat.com>
3499 * dwarf2read.c (dwarf2_get_die_type): Call
3500 get_die_type_at_offset.
3501 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3502 get_base_type function.
3504 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3506 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3509 2011-05-16 Doug Evans <dje@google.com>
3511 * python/py-auto-load.c (source_section_scripts): Mention objfile
3514 2011-05-15 Doug Evans <dje@google.com>
3516 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3517 (try_thread_db_load_from_pdir): Call it. If unable to find
3518 libthread_db in directory of libpthread, see if we're looking at
3519 the separate-debug-info copy.
3521 * python/py-autoload.c (print_script): Print "Missing" instead of
3522 "No" for missing scripts.
3523 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3525 2011-05-13 Doug Evans <dje@google.com>
3527 * ui-file.c (stdio_file_write_async_safe): Add comment.
3529 2011-05-14 Hui Zhu <teawater@gmail.com>
3531 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3533 2011-05-13 Doug Evans <dje@google.com>
3535 Support $pdir and $sdir in libthread-db-search-path.
3536 * NEWS: Mention $sdir,$pdir.
3537 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3538 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3539 (try_thread_db_load_from_sdir): New function.
3540 (try_thread_db_load_from_dir): New function.
3541 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3542 system directories if search of libthread-db-search-path fails,
3543 that is now done via $sdir.
3544 (has_libpthread): New function.
3545 (thread_db_load): Remove search for libthread_db in directory of
3546 libpthread, that is now done via $pdir.
3548 * NEWS: Mention "info auto-load-scripts".
3549 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3550 script_not_found_warning_printed.
3551 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3552 all callers updated. Initialize script_not_found_warning_printed.
3553 (get_auto_load_pspace_data_for_loading): New function.
3554 (maybe_add_script): New function.
3555 (source_section_scripts): Simplify. Only print one warning regardless
3556 of the number of auto-load scripts not found.
3557 (clear_section_scripts): Clear script_not_found_warning_printed.
3558 (auto_load_objfile_script): Record script in hash table.
3559 (count_matching_scripts): New function.
3560 (maybe_print_script): Renamed from maybe_print_section_script, all
3561 callers updated. Rewrite to use ui_out_*.
3562 (info_auto_load_scripts): Renamed from
3563 maintenance_print_section_scripts, all callers updated.
3564 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3565 renamed as "info auto-load-scripts".
3567 2011-05-13 Tom Tromey <tromey@redhat.com>
3569 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3570 (read_sleb128): Likewise.
3572 2011-05-13 Tom Tromey <tromey@redhat.com>
3574 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3577 2011-05-13 Doug Evans <dje@google.com>
3579 * linux-nat.c (debug_linux_nat_async): Delete.
3580 Replace all references to use debug_linux_nat instead.
3581 (show_debug_linux_nat_async): Delete.
3582 (sigchld_handler): Call ui_file_write_async_safe instead of
3584 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3585 * ui-file.c (struct ui_file): New member to_write_async_safe.
3586 (null_file_write_async_safe): New function.
3587 (ui_file_write_async_safe): New function.
3588 (set_ui_file_write_async_safe): New function.
3589 (ui_file_new): Initialize to_write_async_safe.
3590 (stdio_file_write_async_safe): New function.
3591 (struct stdio_file): New member fd.
3592 (stdio_file_new): Initialize to_write_async_safe, fd.
3593 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3595 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3596 (set_ui_file_write_async_safe): Declare.
3597 (ui_file_write_async_safe): Declare.
3599 2011-05-13 Tom Tromey <tromey@redhat.com>
3601 * utils.c (do_value_free): New function.
3602 (make_cleanup_value_free): Likewise.
3603 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3605 (dwarf2_loc_desc_needs_frame): Call
3606 make_cleanup_value_free_to_mark.
3607 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3608 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3610 (new_dwarf_expr_context): Don't call value_mark.
3611 * dwarf2-frame.c (execute_stack_op): Call
3612 make_cleanup_value_free_to_mark.
3613 * defs.h (make_cleanup_value_free): Declare.
3615 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3617 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3618 prepare_execute_command.
3619 * top.c (prepare_execute_command): Return cleanup.
3620 (execute_command): Use cleanup from prepare_execute_command.
3621 * top.h (prepare_execute_command): Change prototype to return
3623 * defs.h (struct value): Add opaque declaration.
3624 (make_cleanup_value_free_to_mark): Add prototype.
3625 * utils.c (do_value_free_to_mark): New function.
3626 (make_cleanup_value_free_to_mark): Likewise.
3628 2011-05-12 Tom Tromey <tromey@redhat.com>
3630 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3631 cast left-hand-side to unsigned.
3633 2011-05-12 Tom Tromey <tromey@redhat.com>
3636 * value.h (value_from_contents): Declare.
3637 * value.c (value_from_contents): New function.
3638 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3639 (dwarf2_get_die_type): New function.
3640 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3641 (allocate_piece_closure): Acquire reference to values.
3642 (read_pieced_value): Update for value-based expressions.
3643 (write_pieced_value): Likewise.
3644 (free_pieced_value_closure): Call value_free as needed.
3645 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3646 Update for value-based expressions.
3647 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3648 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3649 <get_base_type>: New field.
3650 (struct dwarf_expr_piece) <v.value>: Change type.
3651 <v.regno>: New field.
3652 (struct dwarf_expr_context) <mark>: New field.
3653 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3654 (dwarf_expr_pop, dwarf_expr_push): Remove.
3655 (dwarf_expr_push_address): Declare.
3656 * dwarf2expr.c (dwarf_arch_cookie): New global.
3657 (struct dwarf_gdbarch_types): New.
3658 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3660 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3662 (dwarf_expr_push_address): New function.
3663 (dwarf_expr_pop): Now static.
3664 (dwarf_expr_fetch): Change return type.
3665 (dwarf_require_integral): New function.
3666 (dwarf_expr_fetch): Simplify.
3667 (add_piece): Update.
3668 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3670 (execute_stack_op) <sign_ext>: Remove.
3671 Use values for DWARF stack.
3672 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3673 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3675 (_initialize_dwarf2expr): New function.
3676 (add_piece): Update.
3677 (new_dwarf_expr_context): Set new field.
3678 (free_dwarf_expr_context): Call value_free_to_mark.
3679 * dwarf2-frame.c (no_base_type): New function.
3680 (execute_stack_op): Set get_base_type field. Update.
3682 2011-05-12 Tom Tromey <tromey@redhat.com>
3684 * dwarf2read.c (read_common_block): Fix formatting.
3686 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3688 * breakpoint.c (disable_breakpoint): Disable all locations
3689 associated with a tracepoint on target if a trace experiment is
3691 (disable_command): Disable a specific tracepoint location on target if
3692 a trace experiment is running.
3693 (do_enable_breakpoint): Enable all locations associated with a
3694 tracepoint on target if a trace experiment is running.
3695 (enable_command) Enable a specific tracepoint location on target if a
3696 trace experiment is running.
3697 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3698 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3699 to_disable_tracepoint.
3700 * target.h: Add declaration of struct bp_location.
3701 (struct target_ops): Add new functions
3702 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3703 to_disable_tracepoint to target operations.
3704 (target_supports_enable_disable_tracepoint): New macro.
3705 (target_enable_tracepoint): New macro.
3706 (target_disable_tracepoint): New macro.
3707 * remote.c (struct remote_state): Add new field.
3708 (remote_enable_disable_tracepoint_feature): New.
3709 (remote_protocol_features): Add new entry.
3710 (remote_supports_enable_disable_tracepoint): New.
3711 (remote_enable_tracepoint): New.
3712 (remote_disable_tracepoint): New.
3713 (init_remote_ops): Add remote_enable_tracepoint,
3714 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3715 to remote operations.
3716 * tracepoint.c (start_tracing): Allow tracing to start without any
3717 tracepoints enabled with just a warning if they can be re-enabled
3719 * NEWS: Add news item for the new behaviour of the enable and disable
3720 GDB commands when applied to tracepoints.
3721 Add news items for the new remote packets QTEnable and QTDisable.
3723 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 * config.in: Regenerate.
3726 * configure: Regenerate.
3727 * configure.ac <--with-system-readline> (for readline_echoing_p):
3729 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3730 (tui_old_rl_echoing_p): ... here.
3731 (tui_setup_io): Rename extern declaration readline_echoing_p to
3732 _rl_echoing_p. Adjust assignments for the both renames.
3734 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3736 * symtab.c (lookup_symtab): Run cleanup before returning.
3738 2011-05-11 Tom Tromey <tromey@redhat.com>
3740 * dwarf2read.c (handle_data_member_location): New function.
3741 (dwarf2_add_field): Use it.
3742 (read_common_block): Likewise.
3744 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3746 Make addrs->SECTINDEX always defined.
3747 * symfile.c (relative_addr_info_to_section_offsets): Check for
3748 SECTINDEX -1, not for zero ADDR.
3749 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3750 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3751 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3754 2011-05-10 Doug Evans <dje@google.com>
3756 * linux-thread-db.c: Whitespace cleanup.
3757 (try_thread_db_load_1): Fix comment.
3759 * linux-thread-db.c (set_libthread_db_search_path): New function.
3760 (_initialize_thread_db): Add setter for libthread-db-search-path.
3762 2011-05-09 Doug Evans <dje@google.com>
3764 * NEWS: Mention --with-iconv-bin.
3765 * configure.ac: New option --with-iconv-bin.
3766 * configure: Regenerate.
3767 * config.in: Regenerate.
3768 * defs.h (relocate_gdb_directory): Declare.
3769 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3770 removed progname parameter, and exported. All callers updated.
3771 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3773 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3774 adding missing call to restore_child_signals_mask.
3776 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3778 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3780 * infrun.c (proceed, start_remote): Adjust.
3781 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3782 and adjust to not handle it.
3783 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3784 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3785 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3786 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3787 * windows-nat.c (do_initial_windows_stuff): Adjust.
3788 * infcmd.c (attach_command): Adjust.
3789 (notice_new_inferior): Adjust.
3791 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3793 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3794 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3795 * spu-tdep.c (op_selb): Use correct value.
3797 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3799 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3800 "parent" parameter to symbol_file_add_from_bfd call.
3802 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3803 Thiago Jung Bauermann <bauerman@br.ibm.com>
3805 Implement support for PowerPC BookE masked watchpoints.
3806 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3808 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3809 method. Initialize to NULL in all existing breakpoint_ops instances.
3810 (struct breakpoint) <hw_wp_mask>: New field.
3811 * breakpoint.c (is_masked_watchpoint): Add prototype.
3812 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3813 breakpoint's breakpoint_ops.works_in_software_mode if available.
3814 (watchpoints_triggered): Handle the case of a hardware masked
3816 (watchpoint_check): Likewise.
3817 (works_in_software_mode_watchpoint): New function.
3818 (insert_masked_watchpoint, remove_masked_watchpoint)
3819 (resources_needed_masked_watchpoint)
3820 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3821 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3822 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3824 (masked_watchpoint_breakpoint_ops): New structure.
3825 (watch_command_1): Check for the existence of the `mask' parameter.
3826 Set b->ops according to the type of hardware watchpoint being created.
3827 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3828 (ppc_linux_remove_mask_watchpoint)
3829 (ppc_linux_masked_watch_num_registers): New functions.
3830 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3831 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3832 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3833 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3834 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3835 (target_masked_watch_num_registers): New functions.
3836 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3837 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3839 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3840 (target_masked_watch_num_registers): Add prototypes.
3842 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3845 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3846 (producer_is_gcc_ge_4_0): New function.
3847 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3848 symtab->language code.
3849 (var_decode_location): Set cu->has_loclist.
3850 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3851 skip. Intialize force_skip from locations_valid. Move the prologue
3852 skipping code into two passes.
3853 * symtab.h (struct symtab): Make the primary field a bitfield. New
3854 field locations_valid.
3856 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3859 (classify_inner_name): Call cp_lookup_nested_type with
3861 * cp-namespace.c (cp_lookup_nested_type): New variable
3862 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3863 type_name_no_tag_or_error with saved_parent_type.
3864 * dwarf2read.c (load_partial_dies): Read in any children of
3865 DW_TAG_typedef with complaint in such case.
3866 * gdbtypes.c (type_name_no_tag_or_error): New function.
3867 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3868 * valops.c (destructor_name_p): New comment for parameter type. Remove
3869 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3870 * value.h (destructor_name_p): Remove type const.
3872 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3874 * symtab.c (compare_symbol_name): New function.
3875 (completion_list_add_name, expand_partial_symbol_name): Call it,
3876 remove the variable ncmp.
3877 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3880 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3882 Demote to sw watchpoint only in update_watchpoint.
3883 * breakpoint.c (update_watchpoint): Change between software and
3884 hardware watchpoint for all kinds of watchpoints, not just
3885 read/write ones. Determine b->exact value here instead of
3886 in watch_command_1. Error out if there are not enough resources
3887 for a read or access hardware watchpoint.
3888 (watch_command_1): Remove logic of checking whether there are
3889 enough resources available, since update_watchpoint will do that
3890 work now. Don't set b->exact here. Catch exceptions thrown by
3891 update_watchpoint and delete the watchpoint.
3892 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3893 Use target_exact_watchpoints instead.
3894 (delete_breakpoint): Notify observers only if deleted watchpoint
3895 has a breakpoint number assigned to it.
3897 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3899 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3901 2011-05-05 Jerome Guitton <guitton@adacore.com>
3903 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3905 (i386_stack_tramp_frame_unwind): New static global.
3906 (i386_match_pattern): New function, extracted from i386_match_insn.
3907 (i386_match_insn): Use i386_match_pattern.
3908 (i386_match_insn_block): New function.
3909 (i386_tramp_chain_in_reg_insns)
3910 (i386_tramp_chain_on_stack_insns): New static variables.
3911 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3914 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3916 * configure.host (xscale*): Don't handle target.
3917 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3920 2011-05-04 Yao Qi <yao@codesourcery.com>
3922 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3924 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3927 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3928 | * elfread.c (elf_symtab_read): Stop memory leak.
3930 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3932 * nto-tdep.c (nto_target): Replace deprecated call to
3933 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3935 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3937 Fix false GCC warning.
3938 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3940 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3942 * breakpoint.c (update_watchpoint): Move code to change
3943 the enable state of breakpoint from here ...
3944 (do_enable_breakpoint): ... to here.
3946 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3948 * valprint.c (val_print_array_elements): Fixed poor performance
3949 of printing very large arrays with repeat_count_threshold set
3950 to unlimited. New comment.
3952 2011-04-29 Tom Tromey <tromey@redhat.com>
3954 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3955 (mi_parse): Likewise.
3956 * breakpoint.c (break_range_command): Use sizeof char*, not
3958 (create_breakpoint): Likewise.
3959 (parse_breakpoint_sals): Likewise.
3961 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3963 * linux-nat.c (linux_child_remove_fork_catchpoint)
3964 (linux_child_remove_vfork_catchpoint)
3965 (linux_child_remove_exec_catchpoint): New functions.
3966 (linux_target_install_ops): Install them.
3968 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3972 * varobj.c (install_default_visualizer): Do not install a
3973 visualizer if the varobj is CPLUS_FAKE_CHILD.
3974 (construct_visualizer): Likewise.
3976 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3978 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3979 case insensitive comparison.
3981 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3983 * infrun.c (proceed): Revert previous change.
3984 (resume): Instead, handle the case of signal delivery while stepping
3985 off a breakpoint location here, and only if software single-stepping
3986 is used. Handle nested signals.
3988 2011-04-28 Yao Qi <yao@codesourcery.com>
3990 * arm-tdep.c (copy_unmodified): Rename to ...
3991 (arm_copy_unmodified): .. this. New.
3992 (copy_preload): Move common part to ...
3993 (install_preload): .. this. New.
3994 (arm_copy_preload): New.
3995 (copy_preload_reg): Move common part to ...
3996 (install_preload_reg): ... this. New.
3997 (arm_copy_preload_reg): New.
3998 (copy_b_bl_blx): Move common part to ...
3999 (install_b_bl_blx): .. this. New.
4000 (arm_copy_b_bl_blx): New.
4001 (copy_bx_blx_reg): Move common part to ...
4002 (install_bx_blx_reg): ... this. New.
4003 (arm_copy_bx_blx_reg): New.
4004 (copy_alu_reg): Move common part to ...
4005 (install_alu_reg): ... this. New.
4006 (arm_copy_alu_reg): New.
4007 (copy_alu_shifted_reg): Move common part to ...
4008 (install_alu_shifted_reg): ... this. New.
4009 (copy_ldr_str_ldrb_strb): Move common part to ...
4010 (install_ldr_str_ldrb_strb): ... this. New.
4011 (arm_copy_ldr_str_ldrb_strb): New.
4012 (copy_copro_load_store): Move some common part to ...
4013 (install_copy_copro_load_store): ... this. New.
4014 (arm_copy_copro_load_store): New.
4016 (arm_copy_svc): Renamed from copy_svc.
4017 (copy_undef): Delete.
4018 (arm_copy_undef): Renamed from copy_undef.
4019 (decode_ext_reg_ld_st): Delete.
4020 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4021 (decode_svc_copro): Delete.
4022 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4023 (copy_copro_load_store, copy_alu_imm): update callers.
4024 (copy_extra_ld_st, copy_block_xfer): Likewise.
4025 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4026 (decode_miscellaneous, decode_dp_misc): Likewise.
4027 (decode_ld_st_word_ubyte, decode_media): Likewise.
4028 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4029 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4030 (decode_unconditional, decode_miscellaneous): Likewise.
4031 (decode_media, decode_b_bl_ldmstm): Likewise.
4032 (arm_process_displaced_insn): Likewise..
4033 (decode_misc_memhint_neon): Delete.
4034 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4035 (decode_miscellaneous): Delete.
4036 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4037 (decode_dp_misc): Delete.
4038 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4039 (decode_ld_st_word_ubyte): Delete.
4040 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4041 (decode_media): Delete.
4042 (arm_decode_media): Renamed from decode_media.
4043 (decode_b_bl_ldmstm): Delete.
4044 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4045 (decode_ext_reg_ld_st): Delete.
4046 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4047 (decode_unconditional): Delete.
4048 (arm_decode_unconditional): Renamed from decode_unconditional.
4050 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4052 Case insensitive lookups implementation.
4053 * dwarf2read.c: Include ctype.h.
4054 (struct mapped_index): New field version.
4055 (mapped_index_string_hash): New parameter index_version. New comment
4056 for it. Call tolower appropriately.
4057 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4058 Choose the right index version for mapped_index_string_hash.
4059 (dwarf2_read_index): Support also the index version 5. Initialize the
4060 new struct mapped_index field version.
4061 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4062 (find_slot): Explain the version needs. Pass INT_MAX for the new
4064 (write_psymtabs_to_index): Produce version 5.
4065 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4066 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4067 * psymtab.c (lookup_partial_symbol): Find the
4068 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4070 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4072 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4073 (completion_list_add_name): New variable ncmp, initialize it, use it.
4074 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4075 * utils.c (strcmp_iw): Support case_sensitive_off.
4076 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4077 New function comment part. New variables saved_string1,
4078 saved_string2 and case_pass. Add a proper second pass.
4080 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4082 Replace re_comp/re_exec by regcomp/regexec.
4083 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4084 (search_symbols_name_matches): Use them, use regexec.
4085 (search_symbols): New variable retval_chain, adjust the use of
4086 old_chain against it. Replace re_comp by regcomp. Use the new struct
4087 search_symbols_data fields, use regexec instead of re_exec.
4089 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4091 Format the code for the next patch.
4092 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4093 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4094 New variables c1 and c2.
4096 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4098 * infrun.c (proceed): Do not single-step into signal delivery
4099 when stepping off a breakpoint location.
4100 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4101 (insert_step_resume_breakpoint_at_caller): Likewise.
4102 (insert_step_resume_breakpoint_at_sal): Likewise.
4103 (insert_longjmp_resume_breakpoint): Likewise.
4105 2011-04-27 Yao Qi <yao@codesourcery.com>
4107 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4109 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4111 * procfs.c (procfs_pass_signals): Fix advance declaration.
4113 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4115 * target.h (struct target_ops): Remove to_notice_signals;
4116 add to_pass_signals.
4117 (target_notice_signals): Remove.
4118 (target_pass_signals): Add prototype.
4119 * target.c (update_current_target): Remove to_notice_signals;
4120 mention to_pass_signals.
4121 (target_pass_signals): New function.
4122 (debug_to_notice_signals): Remove.
4123 (setup_target_debug): Do not install debug_to_notice_signals.
4125 * infrun.c (signal_pass): New global.
4126 (resume): Call target_pass_signals.
4127 (handle_inferior_event): Report all signals while stepping over
4128 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4129 are re-inserted when stepping over a signal handler.
4130 (signal_cache_update): New function.
4131 (signal_stop_update): Call it.
4132 (signal_print_update): Likewise.
4133 (signal_pass_update): Likewise.
4134 (handle_command): Call signal_cache_update and target_pass_signals
4135 instead of target_notice_signals.
4136 (_initialize_infrun): Initialize signal_pass.
4138 * linux-nat.c (pass_mask): New global.
4139 (linux_nat_pass_signals): New function.
4140 (linux_nat_create_inferior): Report all signals initially.
4141 (linux_nat_attach): Likewise.
4142 (linux_nat_resume): Use pass_mask to decide whether to directly
4143 handle an inferior signal.
4144 (linux_nat_wait_1): Likewise.
4145 (linux_nat_add_target): Install to_pass_signals callback.
4147 * nto-procfs.c (notice_signals): Remove.
4148 (procfs_resume): Do not call notice_signals.
4149 (procfs_notice_signals): Remove.
4150 (procfs_pass_signals): New function.
4151 (init_procfs_ops): Install to_pass_signals callback instead of
4152 to_notice_signals callback.
4153 (_initialize_procfs): Report all signals initially.
4155 * procfs.c (procfs_notice_signals): Remove.
4156 (procfs_pass_signals): New function.
4157 (procfs_target): Install to_pass_signals callback instead of
4158 to_notice_signals callback.
4159 (register_gdb_signals): Remove.
4160 (procfs_debug_inferior): Report all signals initially.
4161 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4163 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4164 parameters; use them instead of calling signal_..._state routines.
4165 (remote_notice_signals): Remove.
4166 (remote_start_remote): Report all signals initially.
4167 (remote_resume): Do not call remote_pass_signals.
4168 (_initialize_remote): Install to_pass_signals callback instead of
4169 to_notice_signals callback.
4171 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4173 * breakpoint.c (user_settable_breakpoint): Delete.
4174 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4175 (delete_command): Check user_breakpoint_p instead of looking at
4176 the breakpoint's type.
4177 (disable_command): Ditto.
4178 (enable_command): Ditto.
4179 (delete_trace_command): Use user_breakpoint_p instead of looking
4180 at the breakpoint number directly. When checking if there are
4181 user visible tracepoints, in order to know whether to ask the user
4182 for confirmation, check whether the breakpoint is actually a
4185 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4187 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4190 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4192 MI breakpoint notifications.
4194 * annotate.c (breakpoint_changed): Adjust parameter type.
4195 * breakpoint.c (set_breakpoint_condition): Adjust to change
4196 in breakpoint_modified type.
4197 (breakpoint_set_commands): Likewise.
4198 (do_map_commands_command): Likewise.
4199 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4200 changed after bumping hit count.
4201 (bpstat_stop_status): Likewise.
4202 (print_one_breakpoint_location): Don't wrap in tuple here.
4203 (print_one_breakpoint): Always print individual locations.
4204 For locations, use unnamed tuple.
4205 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4207 (create_catchpoint, create_syscall_event_catchpoint): Call
4208 breakpoint_created obsever.
4209 (mention): Don't call breakpoint_created observer.
4210 (create_breakpoint_sal): Call breakpoint_created observer.
4211 (create_breakpoint, watch_command_1): Likewise.
4212 (create_ada_exception_breakpoint): Likewise.
4213 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4214 (locations_are_equal): New.
4215 (update_breakpoint_locations): If locations were changed, notify.
4216 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4217 Call breakpoint_modified observer.
4219 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4220 (mi_cmd_break_insert): Don't set observers for modify and delete.
4221 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4222 (mi_breakpoint_created, mi_breakpoint_deleted)
4223 (mi_breakpoint_modified): New.
4224 (mi_interpreter_init): Hook the above.
4225 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4226 while -break-* commands are executing.
4227 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4228 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4230 (mi_ui_out_impl): Hook in mi_redirect.
4231 (mi_field_skip): True to the name, skip the field, don't output
4232 a field with an empty value.
4234 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4235 (gdbpy_breakpoint_deleted): Adjust.
4236 * tui/tui-hooks.c (tui_event_create_breakpoint)
4237 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4239 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4241 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4242 (procfs_remove_hw_watchpoint): Likewise.
4244 2011-04-26 Michael Walle <michael@walle.cc>
4246 * remote.c (remote_start_remote): Ack packet after sending the
4249 2011-04-26 Yao Qi <yao@codesourcery.com>
4251 * linux-nat.c: Move common macros to ...
4252 Include linux-ptrace.h.
4253 * common/linux-ptrace.h: ... here. New.
4255 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4257 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4258 !objfile_has_partial_symbols. New comment.
4259 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4260 SYM_READ_PSYMBOLS is not present. Extend the comment.
4261 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4263 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4265 * defs.h (ENUM_BITFIELD): Remove.
4267 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4268 Eli Zaretskii <eliz@gnu.org>
4270 * NEWS: Document the new gdbserver --once option.
4272 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4274 * MAINTAINERS: Update my email address.
4276 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4278 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4279 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4280 function call if __STDC_ISO_10646__ macro is defined.
4281 (intermediate_encoding): New prototype.
4282 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4283 to generate compile time error for unsupported gdb_wchar_t size.
4284 (ENDIAN_SUFFIX): New macro.
4285 (intermediate_encoding): New function.
4287 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4289 * ada-lang.c (struct add_partial_datum): Update the comment for
4290 expand_partial_symbol_name.
4291 (ada_add_partial_symbol_completions): Rename to ...
4292 (ada_expand_partial_symbol_name): ... here, change return type, update
4293 function comment, call symbol_completion_match instead of
4294 symbol_completion_add.
4295 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4296 and ada_expand_partial_symbol_name.
4297 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4299 (dw2_map_symbol_names): Remove.
4300 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4301 * psymtab.c (map_symbol_names_psymtab): Remove.
4302 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4303 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4305 (psym_functions): Unlist map_symbol_names_psymtab.
4306 (map_partial_symbol_names): Rename to ...
4307 (expand_partial_symbol_names): ... here, change the FUN type, call
4308 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4309 * psymtab.h (map_partial_symbol_names): Rename to ...
4310 (expand_partial_symbol_names): ... here, change the FUN type.
4311 * symfile.h (struct quick_symbol_functions): Update the description of
4312 expand_symtabs_matching. Remove map_symbol_names.
4313 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4314 (struct add_name_data): Update the comment for
4315 expand_partial_symbol_name.
4316 (add_partial_symbol_name): Rename to ...
4317 (expand_partial_symbol_name): ... here. Replace
4318 completion_list_add_name call by strncmp.
4319 (default_make_symbol_completion_list_break_on): Use now
4320 expand_partial_symbol_names and expand_partial_symbol_name.
4321 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4323 2011-04-20 Tom Tromey <tromey@redhat.com>
4325 * dwarf2read.c (save_gdb_index_command): Replace format
4326 documentation with a pointer to the manual.
4328 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4330 * regcache.c: Include remote.h.
4331 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4332 (regcache_dump): Handle regcache_dump_remote.
4333 (maintenance_print_remote_registers): New function.
4334 (_initialize_regcache): Install "maint print remote-registers"
4336 * remote.c (map_regcache_remote_table): New function, factored out
4338 (init_remote_state): ... here.
4339 (remote_register_number_and_offset): New.
4340 * remote.h (remote_register_number_and_offset): Declare.
4342 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4344 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4345 null_ptid, assume and allow a NULL address space, instead of
4346 asking the target for the ptid's address space.
4347 * infrun.c (ptid_is_pid): Remove assertion.
4349 2011-04-19 Tom Tromey <tromey@redhat.com>
4351 * windows-tdep.c (windows_xfer_shared_library):
4352 * windows-nat.c (get_module_name, windows_make_so):
4353 * v850-tdep.c (v850_handle_pushm):
4354 * utils.c (null_cleanup, gdb_realpath):
4355 * ui-out.c (get_next_header):
4356 * tracepoint.c (clear_traceframe_info):
4357 * symtab.c (lookup_symtab):
4358 * serial.h (struct serial_ops):
4359 * mipsread.c (read_alphacoff_dynamic_symtab):
4360 * infcmd.c (print_return_value):
4361 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4362 * f-exp.y (parse_number):
4363 * exceptions.c (catch_exceptions):
4364 * dummy-frame.c (dummy_frame_this_id):
4365 * defs.h (struct cleanup):
4366 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4367 * arm-tdep.c (arm_push_dummy_call):
4368 * amd64-tdep.h (amd64_collect_xsave):
4369 * amd64-tdep.c (amd64_collect_xsave):
4370 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4371 * README (typing): Remove duplicate words.
4372 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4373 * infrun.c (siginfo_value_read): Fix typo.
4374 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4375 * top.c (source_line_number): Add comma.
4377 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4379 * thread.c (any_live_thread_of_process): Prioritize threads
4380 that are not executing.
4381 * gdbthread.h (any_live_thread_of_process): Update comment
4382 as per above change.
4384 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4386 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4387 (scan_xcoff_symtab): Likewise.
4389 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4391 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4394 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4395 Pedro Alves <pedro@codesourcery.com>
4397 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4398 variables to simplify code and avoid == operator at end of
4399 line as this is against GNU coding standards.
4401 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4403 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4404 lm_name to name_lm to avoid conflict with lm_name function.
4406 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4408 ARI fixes: Use only lowercase function name for static functions.
4409 * nto-tdep.c (LM_ADDR): Rename to...
4410 (lm_addr): New function name.
4411 (nto_relocate_section_addresses): Adapt to change above.
4412 * solib-sunos.c (LM_ADDR): Rename to...
4413 (lm_addr): New function name.
4414 (LM_NEXT): Rename to...
4415 (lm_next): New function name.
4416 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4417 function name changes above.
4418 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4419 (lm_addr_from_link_map): New function name.
4420 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4421 (has_lm_dynamic_from_link_map): New function name.
4422 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4423 (lm_dynamic_from_link_map): New function name.
4424 (LM_ADDR_CHECK): Rename to...
4425 (lm_addr_check): New function name.
4426 (LM_NEXT): Rename to...
4427 (lm_next): New function name.
4428 (LM_PREV): Rename to...
4429 (lm_prev): New function name.
4430 (LM_NAME): Rename to...
4431 (lm_name): New function name.
4432 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4433 (ignore_first_link_map_entry): New function name.
4434 (svr4_keep_data_in_core): Adapt to function name changes above.
4435 (svr4_current_sos): Likewise.
4436 (enable_break): Likewise.
4437 (svr4_relocate_section_addresses): Likewise.
4439 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4442 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4443 sprintf. Simplify code and avoid loosing memory.
4444 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4445 (call0_frame_cache): Remove && operator from end of line.
4447 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4449 Fix libraries displacement if they change whether they were prelinked.
4450 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4451 does not match. Comment why.
4453 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 * corelow.c: Include wrapper.h.
4456 (core_open): Call now gdb_target_find_new_threads.
4457 * wrapper.c: Include target.h.
4458 (gdb_target_find_new_threads): New.
4459 * wrapper.h (gdb_target_find_new_threads): New declaration.
4461 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4463 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4464 even if !TARGET_HAS_EXECUTION.
4466 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4469 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4470 bfd_get_synthetic_symtab.
4471 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4472 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4473 parameter parent, remove the call to add_separate_debug_objfile.
4474 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4475 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4476 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4477 parent, new comment for it, call add_separate_debug_objfile for it.
4478 (symbol_file_add_separate): Pass objfile as the parameter parent,
4479 remove the call to add_separate_debug_objfile.
4480 (symbol_file_add_from_bfd): New parameter parent, pass it.
4481 (symbol_file_add): Pass NULL to the new parameter parent.
4482 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4484 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4489 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4491 Fix Python access to inlined frames.
4492 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4493 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4495 2011-04-15 Tom Tromey <tromey@redhat.com>
4497 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4499 2011-04-15 Gary Benson <gbenson@redhat.com>
4501 * MAINTAINERS: Add myself to write-after-approval section.
4503 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4505 * remote-sim.c (sim_command_completer): New function.
4506 (_initialize_remote_sim): Set completer to sim_command_completer.
4508 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4510 * breakpoint.c (print_exception_catchpoint): Rename to ...
4511 (print_it_exception_catchpoint): ... this.
4512 (gnu_v3_exception_catchpoint_ops): Update with new name
4513 for print_it_exception_catchpoint.
4515 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4517 * MAINTAINERS: Add myself for write after approval privileges.
4519 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4521 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4523 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4525 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4527 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4529 * breakpoint.c (save_breakpoints): Verify whether
4530 breakpoint_ops.print_recreate is defined before calling it.
4532 2011-04-11 Gary Benson <gbenson@redhat.com>
4534 Fix failure with --enable-maintainer-mode.
4535 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4537 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4540 * symtab.c (search_symbols): Reorder the KIND description in the
4541 function comment. Remove the unused 4th element of types, types2,
4542 types3 and types4. New gdb_assert on KIND.
4543 (symtab_symbol_info): Remove the unused 4th element of classnames.
4544 New gdb_assert on KIND.
4545 * symtab.h (enum search_domain): New warning in the enum comment.
4546 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4549 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4551 Fix crash of gdb save-index on a STABS file.
4552 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4555 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4557 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4558 * dwarf2read.c: Include ctype.h.
4559 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4561 (dwarf2_add_field): Fix new_field->accessibility by calling
4562 dwarf2_default_access_attribute. Restructure setting accessibility
4564 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4565 is_private and is_protected by calling
4566 dwarf2_default_access_attribute.
4568 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4570 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4571 to the initialization.
4573 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4575 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4578 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4580 Remove support for old Cygwin 1.5 versions.
4581 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4582 function on old Cygwin version.
4583 * windows-nat.c: Remove cygwin version check and always define
4584 __USEWIDE for Cygwin compilation.
4586 2011-04-07 Yao Qi <yao@codesourcery.com>
4588 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4590 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4591 (arm_copy_svc): Remove parameters INSN and TO.
4592 (decode_svc_copro): Update caller.
4593 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4594 from function pointer `copy_svc_os'.
4596 2011-04-07 Yao Qi <yao@codesourcery.com>
4598 * arm-tdep.c (cleanup_branch): Set a correct return address in
4599 LR for ARM and Thumb.
4601 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4604 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4605 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4606 in the function comment, a new note on values compatibility.
4607 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4608 * symtab.h (SYMBOL_HASH_NEXT): New.
4610 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4612 * ppc-linux-nat.c (check_condition): Add len output parameter.
4613 Set it based on the memory region referenced in the condition
4614 expression. Update all callers.
4616 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4618 Fix crash regression on systems featuring .gdb_index.
4619 * objfiles.c (free_objfile): Move the
4620 forget_cached_source_info_for_objfile call earlier. Comment it.
4621 Extend the comment for objfile_free_data.
4623 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4625 Fix regression of displaying the debug format.
4626 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4629 2011-04-04 Tom Tromey <tromey@redhat.com>
4631 * cli/cli-interp.c (struct captured_execute_command_args):
4633 (do_captured_execute_command): Remove.
4634 (safe_execute_command): Use TRY_CATCH.
4635 * cli/cli-script.c (struct wrapped_read_command_file_args):
4637 (wrapped_read_command_file): Remove.
4638 (script_from_file): Use TRY_CATCH.
4639 * exceptions.c (catch_exception): Remove.
4640 * exceptions.h (catch_exception): Remove.
4641 (deprecated_throw_reason): Update comment.
4642 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4643 argument to 'context'.
4644 (mi_execute_command): Use TRY_CATCH.
4645 * remote.c (struct start_remote_args): Remove.
4646 (remote_start_remote): Update; change arguments.
4647 (remote_open_1): Use TRY_CATCH.
4649 2011-04-04 Tom Tromey <tromey@redhat.com>
4651 * tracepoint.c (scope_info): Update.
4652 * symtab.c (decode_line_spec): Update.
4653 * python/python.c (gdbpy_decode_line): Update.
4654 * linespec.h (decode_line_1): Update.
4655 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4656 (decode_compound, find_method, symtab_from_filename)
4657 (decode_variable): Likewise.
4658 * cli/cli-cmds.c (edit_command): Update.
4659 (list_command): Update.
4660 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4662 (create_breakpoint): Update.
4663 (until_break_command): Update.
4664 (addr_string_to_sals): Update.
4665 (decode_line_spec_1): Update.
4667 2011-04-04 Tom Tromey <tromey@redhat.com>
4669 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4670 (do_captured_parse_breakpoint): Remove.
4671 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4672 Use TRY_CATCH directly.
4674 2011-04-04 Tom Tromey <tromey@redhat.com>
4676 * symtab.h (free_symtab): Remove.
4677 (forget_cached_source_info_for_objfile): Declare.
4678 * symmisc.c (free_symtab): Remove.
4679 * source.c (forget_cached_source_info_for_objfile): New function.
4680 (forget_cached_source_info): Use it.
4681 * objfiles.c (free_objfile): Simplify check before calling
4682 clear_current_source_symtab_and_line. Call
4683 forget_cached_source_info_for_objfile.
4685 2011-04-04 Tom Tromey <tromey@redhat.com>
4687 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4688 (new_symtab): Don't set `free_code' on symtab.
4689 (new_linetable): Properly handle size==0.
4690 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4691 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4693 * jv-lang.c (struct jv_per_objfile_data): New.
4694 (jv_per_objfile_free): Free the data.
4695 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4696 (get_java_class_symtab): Set the `dict' field on the
4697 jv_per_objfile_data.
4698 (free_class_block): Remove.
4699 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4702 2011-04-04 Tom Tromey <tromey@redhat.com>
4704 * symfile.c (reread_symbols): Update.
4705 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4707 * objfiles.c (allocate_objfile): Update.
4708 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4710 * cp-namespace.c (lookup_symbol_file): Don't call
4711 lookup_possible_namespace_symbol.
4712 (initialize_namespace_symtab, get_possible_namespace_block)
4713 (free_namespace_block, cp_check_possible_namespace_symbols)
4714 (check_possible_namespace_symbols_loop)
4715 (check_one_possible_namespace_symbol)
4716 (lookup_possible_namespace_symbol): Remove.
4717 (maintenance_cplus_namespace): Replace with notice.
4718 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4720 2011-04-04 Tom Tromey <tromey@redhat.com>
4722 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4723 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4724 * symmisc.c (free_symtab): Don't free debugformat.
4725 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4726 (record_debugformat, record_producer): Document.
4727 * buildsym.c (end_symtab): Don't save debugformat and producer
4729 (end_symtab): Don't free debugformat and producer fields.
4730 (record_debugformat): Don't call xstrdup.
4731 (record_producer): Likewise.
4733 2011-04-04 Tom Tromey <tromey@redhat.com>
4735 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4736 (source_line_charpos, source_charpos_line): Remove.
4738 2011-04-04 Tom Tromey <tromey@redhat.com>
4740 * symtab.h (domain_enum): Split in two...
4741 (enum search_domain): New.
4742 (search_symbols): Update.
4743 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4744 redundant declarations.
4745 (search_symbols): Change 'kind' argument to search_domain.
4747 (print_symbol_info): Likewise.
4748 (symtab_symbol_info): Likewise.
4749 * symfile.h (struct quick_symbol_functions)
4750 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4751 <expand_symtabs_matching>: Likewise.
4752 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4753 (expand_symtabs_matching_via_partial): Update.
4754 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4755 (dw2_expand_symtabs_for_function): Update.
4756 * block.h: Moved anonymous enum...
4757 * defs.h (enum block_enum): ... here. Now named.
4759 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4761 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4762 * version.in: Bump version to 7.3.50.20110403-cvs.
4764 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4766 * NEWS: Create a new section for the next release branch.
4767 Rename the section of the current branch, now that it has
4770 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4772 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4773 for "fpscr" in target description.
4775 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4777 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4778 initialize it. Delay HASH initialization. Strip the part after open
4779 parenthesis for languages with qualifiers. Call do_cleanups.
4781 2011-04-01 Tom Tromey <tromey@redhat.com>
4783 * utils.c (report_command_stats): Don't print `-' for negative
4786 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4788 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4789 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4792 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4794 * breakpoint.h (bpdisp_text): Add declaration.
4795 * breakpoint.c (bpdisp_text): Make non-static.
4796 * ada-lang.c: #include "mi/mi-common.h".
4797 (print_it_exception): Rewrite to improve GDB/MI output.
4799 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4801 * arm-tdep.h (struct address_space): Add forward declaration.
4803 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4805 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4806 * arm-tdep.c (arm_override_mode): New global.
4807 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4808 execution mode heuristics.
4809 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4810 second single-step breakpoint if needed, using
4811 arm_insert_single_step_breakpoint.
4812 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4813 ARM execution mode, do not call thumb_get_next_pc_raw.
4814 (arm_get_next_pc): Encode execution mode in return value. Call
4815 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4816 (arm_insert_single_step_breakpoint): New function.
4817 (arm_software_single_step): Call it.
4818 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4819 argument to return execution mode of sigreturn target.
4820 (arm_linux_syscall_next_pc): Use it.
4821 (arm_linux_copy_svc): Update call.
4822 (arm_linux_software_single_step): Call
4823 arm_insert_single_step_breakpoint.
4825 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4827 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4830 2011-03-31 Tom Tromey <tromey@redhat.com>
4832 * varobj.c (update_dynamic_varobj_children): Properly handle
4833 errors from iterator.
4835 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4838 struct linkage name twice.
4840 2011-03-31 Tom Tromey <tromey@redhat.com>
4842 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4843 missing ">" to message.
4845 2011-03-31 Tom Tromey <tromey@redhat.com>
4847 * varobj.c (instantiate_pretty_printer): Remove duplicate
4850 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4852 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4853 if neither saved value nor register available (e.g. signal frame).
4855 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4857 * macroexp.c (expand): Avoid uninitialized variable
4860 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4862 * breakpoint.c (break_range_command): Fix typo in comment.
4864 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4865 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4867 Implement support for PowerPC BookE ranged breakpoints.
4868 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4869 * breakpoint.h (struct bp_target_info) <length>: New member
4871 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4872 instead of struct breakpoint as argument, and also add ASPACE
4873 and BP_ADDR arguments. Update all callers.
4874 (struct breakpoint_ops) <print_one_detail>: New method.
4875 (struct breakpoint) <addr_string_range_end>: New member variable.
4876 * breakpoint.c (breakpoint_location_address_match): Add function
4878 (insert_bp_location): Set bl->target_info.length.
4879 (breakpoint_here_p): Call breakpoint_location_address_match.
4880 (moribund_breakpoint_here_p): Likewise.
4881 (regular_breakpoint_inserted_here_p): Likewise.
4882 (breakpoint_thread_match): Likewise.
4883 (bpstat_stop_status): Likewise.
4884 (bpstat_check_location): Move call to
4885 breakpoint_ops.breakpoint_hit to the top.
4886 (print_one_breakpoint_location): Call
4887 breakpoint_ops.print_one_detail if available.
4888 (breakpoint_address_match_range): New function.
4889 (breakpoint_location_address_match): Likewise.
4890 (breakpoint_locations_match): Compare the length field of the
4892 (hw_breakpoint_used_count): Count resources used by all locations
4893 in a breakpoint, and use breakpoint_ops.resources_needed if
4895 (breakpoint_hit_ranged_breakpoint): New function.
4896 (resources_needed_ranged_breakpoint): Likewise.
4897 (print_it_ranged_breakpoint): Likewise.
4898 (print_one_ranged_breakpoint): Likewise.
4899 (print_one_detail_ranged_breakpoint): Likewise.
4900 (print_mention_ranged_breakpoint): Likewise.
4901 (print_recreate_ranged_breakpoint): Likewise.
4902 (ranged_breakpoint_ops): New structure.
4903 (find_breakpoint_range_end): New function.
4904 (break_range_command): Likewise.
4905 (delete_breakpoint): Free addr_string_range_end.
4906 (update_breakpoint_locations): Add SALS_END argument. Update
4907 all callers. Calculate breakpoint length if a non-zero SALS_END
4908 is given. Call breakpoint_locations_match instead of
4909 breakpoint_address_match.
4910 (reset_breakpoint): Find SaL of the end of the range if B is a
4912 (_initialize_breakpoint): Register break-range command.
4913 * defs.h (print_core_address): Add function prototype.
4914 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4916 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4917 (ppc_linux_remove_hw_breakpoint): Likewise.
4918 (_initialize_ppc_linux_nat): Initialize
4919 to_ranged_break_num_registers.
4920 * target.c (update_current_target): Add comment about
4921 to_ranged_break_num_registers.
4922 (target_ranged_break_num_registers): New function.
4923 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4925 (target_ranged_break_num_registers): Add function prototype.
4926 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4927 * utils.c (print_core_address): ... here.
4929 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4931 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4932 variable compiler warning.
4934 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4936 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4938 (re_set_breakpoint): ... to here ...
4939 (addr_string_to_sals): ... and here.
4941 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4943 * Makefile.in (SFILES): Add missing C sources.
4944 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4945 Add missing headers.
4947 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4949 * .gitignore: New file.
4951 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4953 * NEWS: Mention new cfi device simulation.
4955 2011-03-29 Tom Tromey <tromey@redhat.com>
4957 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4958 otherwise anonymous types.
4959 (dwarf2_name): Likewise.
4960 * valops.c (value_struct_elt_for_reference): Refine artificial
4961 type logic. Call error if j==-1.
4963 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4965 Fix false GCC warning.
4966 * infcall.c (find_function_addr): Initialize funaddr.
4968 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4970 Fix mingw compilation with --enable-targets=all.
4971 * remote-mips.c (gdb_usleep.h): Include header.
4972 (mips_enter_debug): Use gdb_usleep instead of sleep.
4974 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4976 Support resolution of STT_GNU_IFUNC via breakpoints.
4977 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4978 bp_gnu_ifunc_resolver_return.
4979 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4980 the loop. Support bp_gnu_ifunc_resolver and
4981 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4982 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4984 (bptype_string, print_one_breakpoint_location): Support
4985 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4986 (user_settable_breakpoint): Return true also for
4987 bp_gnu_ifunc_resolver.
4988 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4989 bp_gnu_ifunc_resolver_return.
4990 (set_breakpoint_location_function): New parameter explicit_loc,
4991 describe it. Call find_pc_partial_function_gnu_ifunc with new
4992 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4993 EXPLICIT_LOC is not set.
4994 (set_raw_breakpoint): Set EXPLICIT_LOC for
4995 set_breakpoint_location_function.
4996 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4997 set_breakpoint_location_function.
4998 (mention): Support bp_gnu_ifunc_resolver and
4999 bp_gnu_ifunc_resolver_return.
5000 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5001 set_breakpoint_location_function.
5002 (update_breakpoint_locations): Remove static.
5003 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5004 bp_gnu_ifunc_resolver_return.
5005 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5006 bp_gnu_ifunc_resolver_return.
5007 (update_breakpoint_locations): New declaration.
5008 * elfread.c: Include gdbthread.h and regcache.h.
5009 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5011 (elf_gnu_ifunc_fns): Install them.
5012 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5013 (stub_gnu_ifunc_resolver_return_stop): New functions.
5014 (stub_gnu_ifunc_fns): Install them.
5015 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5016 and gnu_ifunc_resolver_return_stop.
5017 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5019 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5021 STT_GNU_IFUNC reader implementation.
5022 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5023 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5024 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5025 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5026 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5027 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5028 (elf_gnu_ifunc_resolve_addr): New.
5029 (elf_symfile_read): Call elf_rel_plt_read.
5030 (elf_gnu_ifunc_fns): New.
5031 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5032 Install elf_gnu_ifunc_fns.
5033 * infcall.c (find_function_return_type): New function.
5034 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5035 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5036 (stub_gnu_ifunc_resolve_name): New functions.
5037 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5038 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5039 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5041 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5043 Code cleanup for later STT_GNU_IFUNC support.
5044 * infcall.c (find_function_addr): Remove variable code, use explicit
5045 dereferences for it. Move VALUE_TYPE initialization later.
5047 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5049 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5050 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5051 (clear_pc_function_cache): Clear it.
5052 (find_pc_partial_function): Rename to ...
5053 (find_pc_partial_function_gnu_ifunc): ... this function. New
5054 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5055 (find_pc_partial_function): New wrapper for this function.
5056 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5058 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5060 GDB internal type support for STT_GNU_IFUNC.
5061 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5062 (elf_symtab_read): Set mst_text_gnu_ifunc for
5063 BSF_GNU_INDIRECT_FUNCTION.
5064 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5065 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5066 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5067 nodebug_got_plt_symbol.
5068 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5069 (TYPE_GNU_IFUNC): New.
5070 (struct main_type): New field flag_gnu_ifunc.
5071 (struct builtin_type): New field builtin_func_func.
5072 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5073 nodebug_got_plt_symbol.
5074 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5075 (in_gnu_ifunc_stub): New.
5076 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5078 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5079 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5080 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5082 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5083 * symtab.c (search_symbols): Likewise.
5084 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5085 and mst_slot_got_plt.
5086 (in_gnu_ifunc_stub): New declaration.
5088 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 Support a ring of related breakpoints.
5091 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5092 other functions, add gdb_assert.
5093 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5094 watchpoint_del_at_next_stop.
5095 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5096 (bpstat_stop_status): Handle ring in related_breakpoint.
5097 (set_raw_breakpoint_without_location): Initialize ring in
5099 (delete_breakpoint): Handle ring in related_breakpoint, use
5100 watchpoint_del_at_next_stop.
5101 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5103 2011-03-28 Tom Tromey <tromey@redhat.com>
5106 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5107 with `language_minimal'.
5109 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5111 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5112 instead of checking for STT_ARM_TFUNC symbol type.
5114 2011-03-25 Tom Tromey <tromey@redhat.com>
5116 * linespec.c (symbol_found): Restore line-based result for
5117 non-LOC_LABEL symbols.
5119 2011-03-25 Kai Tietz <ktietz@redhat.com>
5121 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5122 instead of strcmp for comparison.
5123 (tui_source_is_displayed): Likewise.
5124 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5126 2011-03-24 Mark Wielaard <mjw@redhat.com>
5128 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5130 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5131 (find_partial_die_in_comp_unit): Likewise in comment.
5132 (read_attribute_value): Likewise.
5133 (lookup_die_type): Likewise.
5134 (dwarf_form_name): Likewise.
5135 (dump_die_shallow): Likewise.
5136 (follow_die_ref_or_sig): Likewise.
5138 2011-03-24 Tom Tromey <tromey@redhat.com>
5140 PR breakpoints/11816:
5141 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5142 (decode_compound): Update.
5143 (find_function_symbol): New function.
5144 (decode_dollar): Update.
5145 (decode_label): Add 'function_symbol' parameter. Handle
5146 function-relative labels.
5147 (decode_variable): Update.
5148 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5149 not its line. Set `special_display' and canonical name for
5152 2011-03-24 Tom Tromey <tromey@redhat.com>
5154 * linespec.h (struct linespec_result) <special_display>: New
5156 * breakpoint.h (struct breakpoint) <display_canonical>: New
5158 * breakpoint.c (print_breakpoint_location): Respect
5160 (create_breakpoint_sal): Add 'display_canonical' parameter.
5161 (create_breakpoints_sal): Update.
5162 (create_breakpoint): Update.
5164 2011-03-24 Tom Tromey <tromey@redhat.com>
5166 * symtab.c (decode_line_spec): Update.
5167 * linespec.c (build_canonical_line_spec): Change type of
5169 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5170 (find_method, decode_all_digits, decode_dollar, decode_label)
5171 (symbol_found): Likewise.
5172 (init_linespec_result): New function.
5173 * breakpoint.c (struct captured_parse_breakpoint_args)
5174 <canonical_p>: New field, replaces addr_string_p.
5175 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5177 (parse_breakpoint_sals): Likewise.
5178 (do_captured_parse_breakpoint): Update.
5179 (create_breakpoint): Use struct linespec_result.
5180 (until_break_command): Update.
5181 (breakpoint_re_set_one): Update.
5182 (decode_line_spec_1): Update.
5183 * linespec.h (struct linespec_result): New.
5184 (init_linespec_result): Declare.
5186 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5188 * regcache.c (regcache_raw_read): If the target didn't supply a
5189 given raw register, mark it as unavailable.
5191 2011-03-23 Kai Tietz <ktietz@redhat.com>
5193 * breakpoint.c (clear_command): Use filename_cmp
5194 instead of strcmp for comparison.
5195 * buildsym.c (watch_main_source_file_lossage): Likewise.
5196 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5197 checking just for slash.
5198 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5199 strrchr and filename_cmp instead of strcmp for filenames.
5200 (add_old_header_file): Use filename_cmp
5201 instead of strcmp for comparison.
5202 * exec.c (exec_set_section_address): Likewise.
5203 * macrotab.c (macro_lookup_inclusion): Likewise.
5204 (macro_lookup_inclusion): Likewise.
5205 * elfread.c (_initialize_elfread): Likewise.
5206 (elfstab_offset_sections): Likewise.
5207 (elfstab_offset_sections): Use lbasename instead of
5209 * mdebugread.c (parse_partial_symbols): Likewise.
5210 (arse_partial_symbols): Use filename_(n)cmp instead of
5211 str(n)cmp for comparison.
5212 * minsyms.c (lookup_minimal_symbol): Likewise.
5213 * psymtab.c (read_psymtabs_with_filename): Likewise.
5214 * solib.c (solib_read_symbols): Likewise.
5215 (reload_shared_libraries_1): Likewise.
5216 * symmisc.c (maintenance_print_symbols): Likewise.
5217 * symfile.c (separate_debug_file_exists): Likewise.
5218 (reread_symbols): Likewise.
5219 (find_separate_debug_file_by_debuglink): Likewise.
5220 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5221 * source.c (add_path): Likewise.
5222 * symtab.c (filename_seen): Likewise.
5223 (file_matches): Likewise.
5224 (print_symbol_info): Likewise.
5225 (maybe_add_partial_symtab_filename): Likewise.
5226 (make_source_files_completion_list): Likewise.
5227 * xml-syscall.c (init_sysinfo): Likewise.
5228 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5229 IS_DIR_SEPARATOR for checking for trailing path separator.
5231 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5233 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5234 label abort_expression.
5235 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5236 DWARF_VALUE_OPTIMIZED_OUT.
5238 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5242 to linkage_name. Invert its value. Update the function comment.
5243 (c_type_print_varspec_suffix): Invert it at the caller.
5244 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5246 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5248 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5249 errors when reading the `stop_pc'.
5250 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5253 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5255 * NEWS: Document gdb.Write stream keyword.
5257 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5260 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5261 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5262 (dwarf2_add_field): Fix new_field->accessibility for
5263 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5265 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5269 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5270 other error classes. Do not print stack trace.
5272 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5274 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5275 (dwarf2_add_field): Fix new_field->accessibility for
5276 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5278 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5280 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5281 encountering a load via a non-SP register.
5283 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5285 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5286 field in returned unwinder.
5288 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5290 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5292 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5294 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5297 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5299 * frame.c (frame_unwind_register): Throw an error if unwinding the
5301 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5302 an unwind stop reason.
5303 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5304 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5305 UNWIND_UNAVAILABLE>: New.
5306 * inline-frame.c (inline_frame_unwind): Install
5307 default_frame_unwind_stop_reason.
5308 * frame-unwind.c: Include "exceptions.h".
5309 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5310 (default_frame_unwind_stop_reason): New.
5311 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5312 (default_frame_unwind_stop_reason): Declare.
5313 (struct frame_unwind) <stop_reason>: New function pointer.
5315 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5316 * dwarf2-frame.c: Include exceptions.h.
5317 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5318 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5319 computing the CFA. If such an error was thrown, set
5320 unavailable_retaddr.
5321 (dwarf2_frame_unwind_stop_reason): New.
5322 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5324 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5325 (dwarf2_signal_frame_unwind): Ditto.
5327 * amd64-tdep.c: Include "exceptions.h".
5328 (struct amd64_frame_cache): New field "base_p".
5329 (amd64_init_frame_cache): Clear it.
5330 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5331 Avoid reading registers with functions that throw if the register
5332 is not necessary to compute the frame base.
5333 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5334 swallowing NOT_AVAILABLE_ERROR.
5335 (amd64_frame_unwind_stop_reason): New.
5336 (amd64_frame_this_id): Don't build a frame id if the frame base
5338 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5339 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5340 base_p if the frame base was computable.
5341 (amd64_sigtramp_frame_unwind_stop_reason): New.
5342 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5343 frame base was unavailable.
5344 (amd64_sigtramp_frame_unwind): Install
5345 amd64_sigtramp_frame_unwind_stop_reason.
5346 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5347 base_p if the frame base was computable.
5348 (amd64_epilogue_frame_unwind_stop_reason): New.
5349 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5350 frame base was unavailable.
5351 (amd64_epilogue_frame_unwind): Install
5352 amd64_epilogue_frame_unwind_stop_reason.
5353 * i386-tdep.c: Include "exceptions.h".
5354 (struct i386_frame_cache): New field "base_p".
5355 (i386_init_frame_cache): Clear it.
5356 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5357 Avoid reading registers with functions that throw if the register
5358 is not necessary to compute the frame base.
5359 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5360 swallowing NOT_AVAILABLE_ERROR.
5361 (i386_frame_unwind_stop_reason): New.
5362 (i386_frame_this_id): Don't build a frame id if the frame base was
5364 (i386_frame_prev_register): Handle unavailable SP.
5365 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5366 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5367 base_p if the frame base was computable.
5368 (i386_epilogue_frame_unwind_stop_reason): New.
5369 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5370 base was unavailable.
5371 (i386_epilogue_frame_unwind): Install
5372 i386_epilogue_frame_unwind_stop_reason.
5373 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5374 base_p if the frame base was computable.
5375 (i386_sigtramp_frame_unwind_stop_reason): New.
5376 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5377 base was unavailable.
5378 (i386_sigtramp_frame_unwind): Install
5379 i386_sigtramp_frame_unwind_stop_reason.
5380 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5381 type's size, not the register's.
5382 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5384 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5385 default_frame_unwind_stop_reason.
5386 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5387 (alpha_heuristic_frame_unwind): Ditto.
5388 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5389 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5390 * avr-tdep.c (avr_frame_unwind): Ditto.
5391 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5393 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5394 * frv-tdep.c (frv_frame_unwind): Ditto.
5395 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5396 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5397 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5398 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5399 (hppa_stub_frame_unwind): Ditto.
5400 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5401 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5402 (ia64_libunwind_frame_unwind)
5403 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5404 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5405 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5406 * m32c-tdep.c (m32c_unwind): Ditto.
5407 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5408 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5409 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5410 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5411 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5412 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5413 * mep-tdep.c (mep_frame_unwind): Ditto.
5414 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5415 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5416 (mips_stub_frame_unwind): Ditto.
5417 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5418 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5419 * mt-tdep.c (mt_frame_unwind): Ditto.
5420 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5421 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5422 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5423 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5424 (s390_sigtramp_frame_unwind): Ditto.
5425 * score-tdep.c (score_prologue_unwind): Ditto.
5426 * sh-tdep.c (sh_frame_unwind): Ditto.
5427 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5428 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5429 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5430 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5431 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5432 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5433 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5434 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5435 (sparc64obsd_trapframe_unwind): Ditto.
5436 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5437 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5438 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5439 * v850-tdep.c (v850_frame_unwind): Ditto.
5440 * vax-tdep.c (vax_frame_unwind): Ditto.
5441 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5442 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5443 * xtensa-tdep.c (xtensa_unwind): Ditto.
5445 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5447 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5448 there's always a frame. Use get_frame_pc_if_available instead of
5449 get_frame_pc, and if there's no PC available, don't look up a
5452 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5454 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5457 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5459 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5462 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5464 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5465 * frame.c (frame_unwind_caller_pc_if_available): New.
5466 * stack.c (frame_info): Handle unavailable PC.
5468 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5470 * frame.c (frame_unwind_pc): Rename to ...
5471 (frame_unwind_pc_if_available): ... this. New `pc' output
5472 parameter. Change return type to int. Gracefully handle
5473 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5474 happened, or 1 otherwise.
5475 (frame_unwind_pc): Reimplement on top of
5476 frame_unwind_pc_if_available.
5477 (get_frame_func): Rename to ...
5478 (get_frame_func_if_available): New `pc' output parameter. Change
5479 return type to int. Gracefully handle the PC not being available.
5480 (get_frame_func): Reimplement on top of
5481 get_frame_func_if_available.
5482 (select_frame): Handle the PC being unavailable.
5483 (get_prev_frame): Handle the PC being unavailable.
5484 (get_frame_pc_if_available): New.
5485 (get_frame_address_in_block_if_available): New.
5486 (find_frame_sal): Handle the frame PC not being available.
5487 * frame.h (get_frame_pc_if_available): Declare.
5488 (get_frame_address_in_block_if_available): Declare.
5489 (get_frame_func_if_available): Declare.
5490 * stack.c (print_frame_info): Handle the PC being unavailable.
5491 (find_frame_funname): Ditto.
5492 (print_frame): Handle the PC being unavailable.
5493 (get_frame_language): Ditto.
5494 * blockframe.c (get_frame_block): Ditto.
5495 * macroscope.c (default_macro_scope): Ditto.
5496 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5498 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5500 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5501 NOT_AVAILABLE_ERROR when evaluating the location expression.
5503 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5505 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5506 returning that the register piece is unavailable/optimized out.
5507 (write_pieced_value): Handle get_frame_register_bytes returning
5508 that the register piece is unavailable/optimized out when doing a
5509 read-modify write of a bitfield.
5510 * findvar.c (value_from_register): Handle get_frame_register_bytes
5511 returning that the register piece is unavailable/optimized out.
5512 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5513 and `unavailablep'. Throw error on bad debug info. Use
5514 frame_register instead of frame_register_read, to fill in the new
5516 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5518 * valops.c: (value_assign): Adjust, and handle
5519 get_frame_register_bytes failing.
5520 * spu-tdep.c: Include exceptions.h.
5521 (spu_software_single_step): Adjust, and handle
5522 get_frame_register_bytes failing.
5523 (spu_get_longjmp_target): Ditto.
5524 * gdbarch.sh (register_to_value): Change to return int. New
5525 parameters `optimizedp' and `unavailablep'.
5526 * gdbarch.h, gdbarch.c: Regenerate.
5527 * i386-tdep.c (i386_register_to_value): Adjust to new
5528 gdbarch_register_to_value interface.
5529 * i387-tdep.c (i387_register_to_value): Ditto.
5530 * i387-tdep.h (i387_register_to_value): Ditto.
5531 * alpha-tdep.c (alpha_register_to_value): Ditto.
5532 * ia64-tdep.c (ia64_register_to_value): Ditto.
5533 * m68k-tdep.c (m68k_register_to_value): Ditto.
5534 * mips-tdep.c (mips_register_to_value): Ditto.
5535 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5537 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5539 * findvar.c (value_of_register): Mark the value as unavailable, if
5540 the register is unavailable.
5541 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5542 (frame_register): New `unavailablep' parameter.
5543 (frame_register_read): Update comment.
5544 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5545 Set it if the register is unavailable. If the register is
5546 unavailable, clear the output buffer.
5547 (frame_register): New `unavailablep' parameter. Pass it down.
5548 (frame_unwind_register): Adjust.
5549 (put_frame_register): Adjust.
5550 (frame_register_read): Adjust. Also return false if the register
5552 (frame_register_unwind_location): Adjust.
5553 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5554 is unavailable, mark the value accordingly.
5555 * stack.c (frame_info): Handle unavailable registers.
5557 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5559 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5560 simplify, using regcache_cooked_read.
5562 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5564 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5565 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5566 (regcache_raw_read_unsigned, regcache_raw_read_part)
5567 (regcache_cooked_read, regcache_cooked_read_signed)
5568 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5569 (regcache_cooked_read_ftype): Change return to enum
5571 * regcache.c: Include exceptions.h
5572 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5573 (do_cooked_read): Change return to enum register_status. Always
5574 forward to regcache_cooked_read.
5575 (regcache_raw_read): Change return to enum register_status. If
5576 the register is not REG_VALID, memset the buffer. Return the
5578 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5579 return the register's status.
5580 (regcache_raw_read_unsigned): Ditto.
5581 (regcache_cooked_read): Change return to enum register_status.
5582 Assert that with read-only regcaches, the register's status must
5583 be known. If the regcache is read-only, and the register is not
5584 REG_VALID, memset the buffer. Return the register's status.
5585 (regcache_cooked_read_signed): Change return to enum
5586 register_status. Handle non-REG_VALID registers and return the
5588 (regcache_cooked_read_unsigned): Change return to enum
5589 register_status. Handle non-REG_VALID registers and return the
5591 (regcache_xfer_part, regcache_raw_read_part)
5592 (regcache_cooked_read_part): Change return to enum
5593 register_status. Return the register's status.
5594 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5596 (regcache_dump): Handle unavailable cooked registers.
5597 * frame.c (do_frame_register_read): Adjust interface to match
5598 regcache_cooked_read_ftype.
5599 * gdbarch.sh (pseudo_register_read): Change return to enum
5601 * gdbarch.h, gdbarch.c: Regenerate.
5603 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5605 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5606 register_status. If reading a raw register indicates the raw
5607 register is not valid, return the raw register's status,
5608 otherwise, return REG_VALID.
5609 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5610 register_status. Handle non-REG_VALID raw registers and return
5611 the register's status.
5612 * arm-tdep.c (arm_neon_quad_read)
5613 (arm_pseudo_read): Change return to enum register_status. Handle
5614 non-REG_VALID raw registers and return the register's status.
5615 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5616 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5617 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5618 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5619 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5621 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5622 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5623 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5624 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5625 (m32c_pseudo_register_read): Change return to enum
5626 register_status. Adjust.
5627 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5628 enum register_status. Return the register's status.
5629 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5630 register_status. Return the register's status.
5631 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5632 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5633 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5634 * rs6000-tdep.c (move_ev_register_func): New typedef.
5635 (e500_move_ev_register): Use it. Change return to enum
5636 register_status. Return the register's status.
5637 (do_regcache_raw_read): New function.
5638 (do_regcache_raw_write): New function.
5639 (e500_pseudo_register_read): Change return to enum
5640 register_status. Return the register's status. Use
5641 do_regcache_raw_read.
5642 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5643 (dfp_pseudo_register_read): Change return to enum register_status.
5644 Return the register's status.
5645 (vsx_pseudo_register_read): Ditto.
5646 (efpr_pseudo_register_read): Ditto.
5647 (rs6000_pseudo_register_read): Ditto.
5648 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5649 register_status. Return the register's status.
5650 * sh64-tdep.c (pseudo_register_read_portions): New function.
5651 (sh64_pseudo_register_read): Change return to enum
5652 register_status. Use pseudo_register_read_portions. Return the
5654 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5655 register_status. Return the register's status.
5656 * sh-tdep.c (pseudo_register_read_portions): New function.
5657 (sh_pseudo_register_read): Change return to enum register_status.
5658 Use pseudo_register_read_portions. Return the register's status.
5659 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5660 enum register_status. Return the register's status.
5661 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5662 * spu-tdep.c (spu_pseudo_register_read_spu)
5663 (spu_pseudo_register_read): Ditto.
5664 * xtensa-tdep.c (xtensa_register_read_masked)
5665 (xtensa_pseudo_register_read): Ditto.
5666 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5668 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5670 * python/py-value.c (valpy_getitem): Fix formatting of error function
5673 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5675 ARI fixes: Add missing internationalization markups throughout
5677 * darwin-nat-info.c: Ditto.
5680 * mi/mi-main.c: Ditto.
5682 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5684 ARI fixes: Add missing internationalization markups throughout
5687 * cp-name-parser.y: Ditto.
5690 * objc-exp.y: Ditto.
5693 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5695 ARI fixes: Messages should have no trailing new lines.
5696 * darwin-nat.c (mach_check_error): Remove trailing new line from
5697 warning function call message.
5698 * record.c (bfdcore_read): Idem for error call.
5700 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5702 * common/signals.c (target_signal_from_host): Add _ markup to error
5703 function call message.
5704 (target_signal_to_host): Add _ markup and remove trailing new line
5705 from warning call message.
5706 (target_signal_from_command): Add _ markup to error function call
5709 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5713 * python/python.c (gdbpy_write): Accept a stream argument and
5714 operate to the appropriate stream.
5715 (gdbpy_flush): Likewise.
5716 (_initialize_python): Add stream constants.
5717 (finish_python_initialization): Add GdbOutputErrorFile class.
5719 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5721 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5723 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5725 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5726 to store_signed_integer. Add debug message when relocating CALL
5727 instructions. Fix formatting of debug message.
5728 * i386-tdep.c (i386_relocate_instruction): Ditto.
5730 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5732 * target.h (struct target_ops): Remove to_lookup_symbol field.
5733 (target_lookup_symbol): Delete macro.
5734 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5735 (update_current_target, setup_target_debug): Remove handling
5736 of to_lookup_symbol target_ops field.
5737 * ada-tasks.c (get_known_tasks_addr): Remove use of
5738 target_lookup_symbol.
5739 * coffread.c (coff_symtab_read): Likewise.
5740 * dbxread.c (read_dbx_symtab): Ditto.
5742 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5745 * configure.ac: Add getthrds declaration check.
5746 * configure, config.in: Regenerate.
5747 * aix-thread.c (getthrds): Declare only if not already declared
5748 in procinfo.h. More declaration out of get_signaled_thread to
5751 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5753 * python/py-symtab.c: Populate symtab_object_methods,
5755 (stpy_is_valid): New function.
5756 (salpy_is_valid): Ditto.
5757 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5758 (sympy_is_valid): New function.
5759 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5760 (objfpy_is_valid): New function.
5761 * python/py-inferior.c: Populate inferior_object_methods.
5762 (infpy_is_valid): New function.
5763 * python/py-infthread.c: Populate thread_object_methods.
5764 (thpy_is_valid): New function.
5765 * python/py-block.c: Declare block_object_methods. Populate. Declare
5766 block_iterator_object_methods. Populate.
5767 (blpy_is_valid): New function.
5768 (blpy_iter_is_valid): Ditto.
5770 2011-03-16 Keith Seitz <keiths@redhat.com>
5772 * linespec.c (find_methods): Canonicalize NAME before looking
5774 (name_end): New function.
5775 (keep_name_info): New function.
5776 (decode_line_1): Use keep_name_info.
5777 (decode_compound): Likewise.
5778 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5779 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5782 * linespec.c (locate_first_half): Keep overload information, too.
5783 (decode_compound): Use a string to represent break characters
5785 If P points to a break character, do not increment it.
5786 For C++ and Java, keep overload information and relevant keywords.
5787 If we cannot find a symbol, search the minimal symbols.
5790 * linespec.c (decode_compound): Rename SAVED_ARG to
5792 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5794 Pass a valid block to lookup_symbol.
5795 (lookup_prefix_sym): Likewise.
5796 (find_method): Construct search name based on SYM_CLASS instead
5798 * psymtab.c (lookup_partial_symbol): Add language parameter.
5799 (lookup_symbol_aux_psymtabs): Likewise.
5800 Don't assume that the psymtab we found was the right one. Search
5801 for the desired symbol in the symtab to be certain.
5802 (psymtab_search_name): New function.
5803 (lookup_partial_symbol): Use psymtab_search_name.
5804 Add language parameter.
5805 (read_symtabs_for_function): Add language parameter and pass to
5806 lookup_partial_symbol.
5807 (find_symbol_file_from_partial): Likewise.
5809 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5812 * dwarf2read.c (noop_record_line): New function.
5813 (dwarf_decode_lines): Ignore line tables for GCd functions.
5815 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5817 Fix ARI warnings about new lines at the end of messages, which
5818 are unneeded as there is a new line added at the end of the message
5820 * darwin-nat.c (darwin_stop_inferior): Ditto.
5821 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5822 * dfp.c (decimal_to_number): Ditto.
5823 * exec.c (print_section_info): Ditto.
5824 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5825 * osdata.c (get_osdata): Ditto.
5826 * record.c (bfdcore_write): Ditto.
5827 * remote-mips.c (mips_readchar): Ditto.
5828 * remote.c (read_ptid): Ditto.
5829 * ser-mingw.c (ser_windows_raw): Ditto.
5830 * tracepoint.c (add_local_symbols): Ditto.
5831 * windows-nat.c (fake_create_process): Ditto.
5833 2011-03-16 Tom Tromey <tromey@redhat.com>
5835 * tracepoint.c (stop_tracing): Don't declare.
5836 * event-top.c (after_char_processing_hook): Add `(void)'.
5838 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5840 * NEWS: Add Parameter sub-classing description.
5842 2011-03-16 Kai Tietz <ktietz@redhat.com>
5844 * MAINTAINERS: Update my e-mail address.
5846 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5848 * MAINTAINERS: Add myself for write after approval privileges.
5850 2011-03-15 Michael Snyder <msnyder@vmware.com>
5852 * frame.c (find_frame_sal): Assert sym is not null.
5854 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5856 * objc-lang.c (selectors_info): Check strchr for null result.
5858 * stabsread.c (define_symbol): Guard against bad stabstring input.
5860 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5862 Remove trailing spaces and tabulations from pascal language
5867 p-valprint.c: Ditto.
5869 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5871 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5872 than LOW. Comment it.
5873 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5874 HIGHPC not strictly higher than LOWPC.
5876 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5878 Fix formatting of function declarations returning a pointer in
5880 * varobj.c (varobj_add_child): Ditto.
5881 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5882 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5884 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5886 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5887 for the "generic" vector ABI used with GCC 4.3 and later.
5888 (ppc64_sysv_abi_return_value): Likewise.
5890 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5892 * infcall.c (call_function_by_hand): Function return value is
5893 always a non_lval, even when using struct_return.
5895 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5897 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5898 (map_display_numbers): New.
5899 (do_delete_display): New.
5900 (undisplay_command): Use map_display_numbers.
5901 (do_enable_disable_display): New.
5902 (enable_disable_display_command): New function.
5903 (enable_display): Delete.
5904 (enable_display_command): New.
5905 (disable_display_command): Reimplement.
5906 (_initialize_printcmd): Adjust "enable display" command to use
5907 `enable_display_command' as callback.
5909 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5911 * NEWS: Add Python breakpoint 'stop' operation.
5913 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5915 * NEWS: Delete duplicate entry. Fix typo.
5917 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5919 Fix ARI warning about function names in first column.
5920 Put prototype declaration on same line as return type.
5921 * objc-exp.y: Ditto.
5923 * python/py-stopevent.h: Ditto.
5924 For long function names, split parameters to
5925 allow function name on same line as return type.
5926 * solib-pa64.c: Ditto.
5929 For long function declaration, use single line.
5930 * hppa-tdep.h: Ditto.
5931 * inferior.h: Ditto.
5933 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5935 * python/python.h: Declare gdbpy_should_stop and
5936 gdbpy_breakpoint_has_py_cond.
5937 * python/python.c: Add python.h to includes. Remove python.h from
5938 HAVE_PYTHON definition
5939 (gdbpy_should_stop): New dummy function.
5940 (gdbpy_breakpoint_has_py_cond): New dummy function.
5941 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5942 sub-classing capabilities.
5943 (gdbpy_should_stop): New function.
5944 (gdbpy_breakpoint_has_py_cond): New function.
5945 (local_setattro): New function.
5946 * breakpoint.c (condition_command): Add check for Python 'stop'
5948 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5949 operation function as part of stop/continue tests.
5951 2011-03-14 Tom Tromey <tromey@redhat.com>
5954 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5955 (needs_frame_dwarf_call): Likewise.
5957 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5959 Fix ARI warning about functions without parameters that do not
5961 * breakpoint.c (all_tracepoints): Replace () by (void).
5962 * f-exp.y (match_string_literal): Ditto.
5964 * m2-exp.y (yylex): Ditto.
5965 * mep-tdep.c (current_me_module): Ditto.
5966 (current_options): Ditto.
5967 (current_cop_data_bus_width): Ditto.
5968 (current_cr_names): Ditto.
5969 (current_cr_is_float): Ditto.
5970 (current_ccr_names): Ditto.
5971 * objc-exp.y (yylex): Ditto.
5972 * p-exp.y (yylex): Ditto.
5973 * remote.c (send_interrupt_sequence): Ditto.
5974 * tracepoint.c (current_trace_status): Ditto.
5975 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5976 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5978 2011-03-11 Michael Snyder <msnyder@vmware.com>
5980 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5981 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5982 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5983 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5984 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5986 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5987 (delete_async_event_handler): Ditto.
5989 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5991 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5993 * top.c (set_verbose): Assert showcmd was found.
5995 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5997 * xtensa-tdep.c (warning_once): Correct style issues.
5999 2011-03-11 Yao Qi <yao@codesourcery.com>
6001 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6003 2011-03-11 Andreas Schwab <schwab@redhat.com>
6005 * common/aclocal.m4: Remove.
6007 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6009 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6010 (xtensa_write_register, xtensa_read_register): Likewise.
6011 (xtensa_hextochar): Removed.
6012 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6014 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6016 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
6017 (xtensa_call0_frame_cache_t): Update comments. New fields added.
6018 (xtensa_alloc_frame_cache): Add initialization for new fields.
6019 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6020 (warning_once): New function.
6021 (xtensa_insn_kind): New item c0opc_and.
6022 (call0_classify_opcode): Add the case for AND instruction.
6023 (call0_track_op): Change arguments. New local variable litbase.
6024 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6025 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6027 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
6028 (call0_analyze_prologue): Update the comments. Change arguments.
6029 Add the variety of updates to handle extended prologues, which now can
6030 conduct dynamic stack adjustments.
6031 (call0_frame_cache): Likewise.
6032 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6033 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6035 2011-03-10 Michael Snyder <msnyder@vmware.com>
6037 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6038 (cmd_qtframe): Ditto.
6039 (cmd_qtbuffer): Ditto.
6040 (cmd_bigqtbuffer): Ditto.
6042 2011-03-10 Tom Tromey <tromey@redhat.com>
6044 * tracepoint.c (trace_actions_command): Update.
6045 * thread.c (thread_apply_command): Update.
6046 * reverse.c (delete_bookmark_command): Update.
6047 (bookmarks_info): Update.
6048 * printcmd.c (undisplay_command): Update.
6049 * memattr.c (mem_enable_command): Update.
6050 (mem_disable_command): Update.
6051 (mem_delete_command): Update.
6052 * inferior.c (detach_inferior_command): Update.
6053 (kill_inferior_command): Update.
6054 (remove_inferior_command): Update.
6055 * cli/cli-utils.h (struct get_number_or_range_state): New.
6056 (init_number_or_range): Declare.
6057 (get_number_or_range): Update.
6058 * cli/cli-utils.c (init_number_or_range): New function.
6059 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6061 (number_is_in_list): Update.
6062 * breakpoint.h (get_tracepoint_by_number): Update.
6063 * breakpoint.c (map_breakpoint_numbers): Update for change to
6064 get_number_or_range.
6065 (find_location_by_number): Use get_number, not
6066 get_number_or_range.
6067 (trace_pass_set_count): New function.
6068 (trace_pass_command): Update for change to get_number_or_range.
6070 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6073 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6075 * python/py-param.c (add_setshow_generic): Add set/show callback
6076 parameters. Register Python object context.
6077 (get_show_value): New function.
6078 (get_set_value): New function.
6079 (call_doc_function): New function.
6080 (get_doc_string): Move behind get_show_value/get_set_value.
6082 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6084 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6086 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6088 * xtensa-tdep.c (xtensa_read_register): Add comment.
6089 (xtensa_write_register): Likewise.
6090 (xtensa_hextochar): Add comment and update to match coding conventions.
6091 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6092 (execute_l32e, execute_s32e, execute_code): Update comments.
6093 (xtensa_exception_handler_t): Update to match coding conventions.
6094 (xtensa_insn_kind): Likewise.
6096 2011-03-09 Michael Snyder <msnyder@vmware.com>
6098 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6100 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6102 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6104 2011-03-09 Tom Tromey <tromey@redhat.com>
6106 * thread.c (restore_selected_frame): Handle frame_level == -1.
6107 (make_cleanup_restore_current_thread): Use
6108 get_selected_frame_if_set.
6109 * frame.h (get_selected_frame_if_set): Declare.
6110 * frame.c (get_selected_frame_if_set): New function.
6112 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6114 * cli/cli-cmds.c (shell_escape): Use lbasename.
6115 * coffread.c (coff_start_symtab): Constify parameter.
6116 (complete_symtab): Constify `name' parameter.
6117 (coff_symtab_read): Constify `filestring' local.
6118 (coff_getfilename): Constify return and `result' local.
6120 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6121 * linux-fork.c (info_checkpoints_command): Use lbasename.
6122 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6123 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6124 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6125 * procfs.c (procfs_make_note_section): Use lbasename.
6126 * tui/tui-io.c (printable_part): Constity return and parameter.
6128 (print_filename): Constify parameters, and local `s'.
6129 (tui_rl_display_match_list): Constify local `temp'.
6131 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6134 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6135 Fix DWARF-3+ DW_AT_accessibility default assumption.
6136 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6137 cu->header.version >= 3.
6139 2011-03-09 Yao Qi <yao@codesourcery.com>
6141 * common/Makefile.in: Remove.
6142 * common/configure: Remove.
6143 * common/configure.ac: Remove.
6145 2011-03-09 Yao Qi <yao@codesourcery.com>
6148 2011-02-11 Yao Qi <yao@codesourcery.com>
6150 * common/Makefile.in: Add copyright header.
6152 2011-02-11 Yao Qi <yao@codesourcery.com>
6154 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6156 * configure.ac: Add common to sub dir.
6157 * configure: Regenerate.
6159 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6161 * xtensa-tdep.c (call0_ret): New function.
6162 (xtensa_skip_prologue): Speed up analysis.
6164 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6166 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6167 while executing MI command -data-list-changed-registers.
6169 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6171 * xtensa-tdep.c (xtensa_read_register): New function.
6172 (xtensa_write_register): New function.
6173 (xtensa_find_register_by_name): New function.
6174 (xtensa_windowed_frame_cache): Update comments in type description.
6175 (xtensa_frame_cache): Likewise.
6176 (xtensa_window_interrupt_insn): New function.
6177 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6178 (xtensa_insn_kind): Add new instructions.
6179 (rwx_special_register): New function.
6180 (call0_classify_opcode): Add new instructions to the analysis.
6181 (a0_saved, a7_saved, a11_saved): New variables.
6182 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6183 (execute_l32e): New function.
6184 (execute_s32e): New function.
6185 (xtensa_exception_handler_t): New type.
6186 (execute_code): New function.
6187 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6188 analysis for Xtensa Window Exception handlers.
6190 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6192 * xtensa-tdep.c (TX_PS): New.
6193 (windowing_enabled): Update to count for Call0 ABI.
6194 (xtensa_hextochar): New.
6195 (xtensa_init_reggroups): Make algorithm generic.
6196 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6198 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6200 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6202 2011-03-08 Michael Snyder <msnyder@vmware.com>
6204 * i386-tdep.c (i386_follow_jump): Check return value of
6206 (i386_analyze_struct_return): Ditto.
6207 (i386_skip_probe): Ditto.
6208 (i386_match_insn): Ditto.
6209 (i386_skip_noop): Ditto.
6210 (i386_analyze_frame_setup): Ditto.
6211 (i386_analyze_register_saves): Ditto.
6212 (i386_skip_prologue): Ditto.
6213 (i386_skip_main_prologue): Ditto.
6215 * target.c (read_whatever_is_readable): Fix memory leak.
6217 * i386-tdep.c (i386_process_record): Document fall through.
6219 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6221 Fix DWARF-3+ DW_AT_accessibility default assumption.
6222 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6223 cu->header.version >= 3.
6225 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6227 * remote.c (remote_check_symbols): Skip if the target has no
6230 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6232 * target.c (read_whatever_is_readable): Reformat comment,
6233 with a minor typo fix. Minor reformatting of the code.
6235 2011-03-08 Yao Qi <yao@codesourcery.com>
6237 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6238 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6239 Use cached result instead of calling displaced_in_arm_mode again.
6240 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6241 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6242 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6243 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6244 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6245 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6246 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6247 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6248 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6249 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6250 (arm_catch_kernel_helper_return): Likewise.
6251 * gdb/arm-tdep.h : Update function declarations.
6253 2011-03-07 Michael Snyder <msnyder@vmware.com>
6255 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6257 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6259 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6261 * elfread.c (elf_symtab_read): Stop memory leak.
6263 * main.c (captured_main): Fix memory leak.
6265 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6267 * ada-lang.c (compare_names): Call is_name_suffix with string1
6270 2011-03-07 Tom Tromey <tromey@redhat.com>
6272 * xcoffread.c (xcoff_sym_fns): Update.
6273 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6274 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6275 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6276 (symbol_file_add_with_addrs_or_offsets): Likewise.
6277 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6278 * somread.c (som_sym_fns): Update.
6279 * psymtab.h (require_partial_symbols): Declare.
6280 * psymtab.c (require_partial_symbols): New function.
6281 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6282 (ALL_OBJFILE_PSYMTABS): Undef.
6283 (ALL_PSYMTABS): Move from psympriv.h.
6284 (lookup_partial_symtab, find_pc_sect_psymtab)
6285 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6286 (find_last_source_symtab_from_partial)
6287 (forget_cached_source_info_partial)
6288 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6289 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6290 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6291 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6292 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6293 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6294 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6295 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6296 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6298 * mipsread.c (ecoff_sym_fns): Update.
6299 * machoread.c (macho_sym_fns): Update.
6300 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6301 (read_psyms): New function.
6302 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6303 (elf_sym_fns_lazy_psyms): New global.
6304 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6305 dwarf2_build_psymtabs.
6306 * dbxread.c (aout_sym_fns): Update.
6307 * coffread.c (coff_sym_fns): Update.
6309 2011-03-07 Tom Tromey <tromey@redhat.com>
6311 * infrun.c (print_exited_reason): Include inferior id and pid in
6314 2011-03-07 Tom Tromey <tromey@redhat.com>
6316 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6318 (target_has_execution_1): Update.
6319 (target_has_execution_current): Declare.
6320 (target_has_execution): Call target_has_execution_current.
6321 (default_child_has_execution): Update.
6322 * target.c (default_child_has_execution): Add 'the_ptid'
6324 (target_has_execution_1): Likewise.
6325 (target_has_execution_current): New function.
6326 (add_target): Update.
6327 (init_dummy_target): Update.
6328 * remote-m32r-sdi.c (m32r_has_execution): New function.
6329 (init_m32r_ops): Use it.
6330 * record.c (record_core_has_execution): Now static. Add
6331 'the_ptid' parameter.
6332 * inferior.c (have_live_inferiors): Don't save current thread.
6333 Use target_has_execution_1.
6335 2011-03-07 Yao Qi <yao@codesourcery.com>
6337 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6339 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6341 * elfread.c (elf_symtab_read): Minor reformatting.
6343 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6345 * objc-lang.c (selectors_info): Minor reformatting.
6347 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6349 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6351 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6352 Michael Snyder <msnyder@vmware.com>
6354 * ada-valprint.c (ada_val_print_array): Move the declaration of
6355 "byte_order" and "elttype" inside the block where these variables
6356 are actually used. Remove some special handling for the case
6357 where "elttype" and "eltlen" are null. Replace by a comment
6358 and a couple of assertion checks.
6360 2011-03-05 Michael Snyder <msnyder@vmware.com>
6362 * source.c (add_path): Replace semicolon at end of block.
6363 * dwarf2expr.c (execute_stack_op): Ditto.
6365 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6367 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6368 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6369 (bfin-*-*): Likewise.
6371 2011-03-05 Michael Snyder <msnyder@vmware.com>
6373 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6374 * mdebugread.c (parse_symbol): Ditto.
6375 * parse.c (parse_exp_in_context): Ditto.
6376 * source.c (add_path): Ditto.
6377 * utils.c (gnu_debuglink_crc32): Ditto.
6378 * varobj.c (variable_language): Ditto.
6380 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6382 2011-03-04 Michael Snyder <msnyder@vmware.com>
6384 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6386 * symfile.c (simple_overlay_update): Check for null return value
6387 from lookup_minimal_symbol.
6389 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6391 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6393 * eval.c (parse_and_eval_address_1): Remove function.
6394 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6395 instead of parse_and_eval_address_1.
6396 * value.h (parse_and_eval_address_1): Remove prototype.
6398 2011-03-04 Michael Snyder <msnyder@vmware.com>
6400 * remote.c (putpkt_binary): Document that case stmt falls through.
6402 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6404 * breakpointc (print_it_typical): Move NULL check from here...
6405 (print_bp_stop_message): ... to here.
6407 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6409 * breakpoint.c (enable_command): Use break instead of continue,
6410 and fill in a missing break.
6411 (disable_command): Ditto.
6413 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6415 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6416 (terminal_save_ours): Remove misleading comment.
6417 (inflow_inferior_data_cleanup): Free ttystate.
6418 (inflow_inferior_exit): Likewise.
6419 (copy_terminal_info): Copy ttystate.
6421 * serial.c (serial_copy_tty_state): New function.
6422 * serial.h (serial_copy_tty_state): Add prototype.
6423 (struct serial_ops): Add copy_tty_state callback.
6424 * ser-base.c (ser_base_copy_tty_state): New function.
6425 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6426 * ser-go32.c (dos_copy_tty_state): New function.
6427 (dos_ops): Install copy_tty_state callback.
6428 * ser-mingw.c (_initialize_ser_windows): Likewise.
6429 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6430 * ser-unix.c (hardwire_copy_tty_state): New function.
6431 (_initialize_ser_hardwire): Install it.
6433 2011-03-04 Michael Snyder <msnyder@vmware.com>
6435 * breakpoint.c (create_breakpoint): Add missing break statement.
6437 Reverting this patch:
6438 * infcall.c (call_function_by_hand): Add break statements for lint.
6440 Reverting this patch:
6441 * cli/cli-script.c (script_from_file): Add break for lint.
6443 2011-03-04 Michael Snyder <msnyder@vmware.com>
6445 * solib.c (reload_shared_libraries_1): Close memory leak.
6447 2011-03-03 Tom Tromey <tromey@redhat.com>
6450 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6453 2011-03-03 Michael Snyder <msnyder@vmware.com>
6455 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6456 fields of struct 'st' to zero.
6458 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6459 sal.pspace before calling set_current_source_symtab_and_line.
6461 2011-03-03 Yao Qi <yao@codesourcery.com>
6463 * Makefile.in (configure-common): Remove. Let Makefile
6464 in dir common to rebuild itself.
6465 (common/Makefile): Likewise.
6467 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6469 * utils.c (parse_escape): Add i18n markup in error message.
6471 2011-03-03 Yao Qi <yao@codesourcery.com>
6473 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6475 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6476 (displaced_write_reg, displaced_read_reg): Likewise.
6477 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6478 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6479 (cleanup_branch): Replace magic number 14 and 15 with
6480 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6482 2011-03-02 Michael Snyder <msnyder@vmware.com>
6484 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6486 * cli/cli-script.c (script_from_file): Add break for lint.
6488 * mdebugread.c (parse_partial_symbols): Fix indent.
6490 * target-descriptions.c (tdesc_gdb_type): No need to call
6491 xstrdup, callee saves a copy.
6493 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6495 * infcall.c (call_function_by_hand): Add break statements for lint.
6497 * utils.c (parse_escape): Escape the escape char.
6499 * python/py-inferior.c (build_inferior_list): Error out if
6500 PyList_Append fails.
6501 (gdbpy_inferiors): Error out if build_inferior_list fails.
6503 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6506 * record.c (record_restore): Move printf to before error return.
6508 2011-03-02 Yao Qi <yao@codesourcery.com>
6510 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6511 is_thumb and insn_size.
6512 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6513 on both ARM and Thumb mode.
6514 (arm_process_displaced_insn): Set is_thumb and insn_size.
6515 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6516 (arm_displaced_step_fixup): Likewise.
6518 2011-03-01 Michael Snyder <msnyder@vmware.com>
6520 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6522 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6524 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6526 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6528 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6531 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6532 which shadows function parameter.
6534 * tracepoint.c (create_tsv_from_upload): Superfluous call
6535 to xstrdup. Callee already calls xstrdup.
6537 * linespec.c (decode_line_1): Remove unnecessary null check.
6539 * tracepoint.c (scope_info): Fix mem leak, remove underused
6542 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6543 superfluous null check.
6545 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6546 (value_of_builtin_frame_fp_reg): Ditto.
6548 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6550 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6553 * linespec.c (decode_line_1): Check for null before dereference.
6555 * reverse.c (record_restore): Move null-check to before pointer
6558 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6560 * objc-lang.c (selectors_info): Add explanitory comment.
6561 (classes_info): Ditto.
6563 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6565 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6566 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6567 versions of the trampoline. Handle Thumb vs. ARM addresses.
6568 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6569 (arm_linux_init_abi): Install it.
6570 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6571 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6573 2011-02-28 Michael Snyder <msnyder@vmware.com>
6575 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6576 a little bigger, to avoid possibility of an overflow.
6578 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6579 buffers a little bigger, to avoid possibility of an overflow.
6581 * coffread.c (coff_getfilename): Add check to avoid overflow.
6583 * objc-lang.c (selectors_info): Add a small safety margin to
6585 (classes_info): Error out on too long REGEXP.
6587 * infrun.c (handle_inferior_event): Remove unused function call.
6589 * fork-child.c (fork_inferior): Remove ifdef'd code and
6592 * linux-thread-db.c (attach_thread): Discard unused value.
6594 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6596 * remote.c (remote_get_noisy_reply): Discard unused value.
6597 (remote_vcont_resume): Ditto.
6598 (remote_stop_ns): Ditto.
6600 * linespec.c (decode_objc): Delete unused variable.
6602 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6604 * dwarf2read.c (add_partial_symbol): Discard unused values.
6605 (read_base_type): Delete unused variable.
6607 * dbxread.c (read_dbx_symtab): Discard unused value.
6609 * eval.c (evaluate_subexp_standard): Delete unused variable,
6610 and discard unused values.
6612 * infcmd.c (_initialize_infcmd): Discard unused values.
6614 * stabsread.c (rs6000_builtin_type): Missing break statement.
6616 * dbxread.c (process_one_symbol): Discard unused value.
6618 * coffread.c (coff_end_symtab): Delete unused variable.
6620 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6621 (dwarf2_add_typedef): Delete unused variable.
6622 (read_namespace): Ditto.
6623 (dwarf_decode_macros): Ditto.
6625 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6627 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6629 * p-valprint.c (pascal_val_print): Discard unused value.
6631 * utils.c (nquery): Call va_end before return;
6635 * proc-service.c (ps_plog): Call va_end before return.
6637 2011-02-28 Tom Tromey <tromey@redhat.com>
6639 * python/python.c (gdbpy_value_cst): New global.
6640 (_initialize_python): Initialize it.
6641 * python/python-internal.h (gdbpy_value_cst): Declare.
6642 * python/py-value.c (convert_value_from_python): Use
6645 2011-02-28 Michael Snyder <msnyder@vmware.com>
6647 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6649 * breakpoint.c (catch_syscall_completer): Free malloced list.
6651 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6653 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6654 (lval_func_check_synthetic_pointer): Ditto.
6655 (lval_func_free_closure): Fix use-after-free.
6657 2011-02-28 Tom Tromey <tromey@redhat.com>
6659 * psymtab.c (expand_partial_symbol_tables): Use
6660 ALL_OBJFILE_PSYMTABS.
6662 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 * objc-lang.c (selectors_info): Error on too long REGEXP.
6666 2011-02-28 Michael Snyder <msnyder@vmware.com>
6668 * python/py-param.c (set_parameter_value): Add missing
6671 * linux-record.c (record_linux_system_call): Add missing
6674 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6676 * breakpoint.c (print_one_breakpoint_location): Remove unused
6677 argument PRINT_ADDRESS_BITS. Update callers.
6678 (print_one_breakpoint): Likewise.
6680 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6682 * breakpoint.c (wrap_indent_at_field): New function.
6683 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6684 Allocate ui_stream locally instead of using STB argument.
6685 (print_one_breakpoint_location): Update call.
6686 * ui-out.c (ui_out_query_field): New function.
6687 * ui-out.h (ui_out_query_field): Add prototype.
6689 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6691 From Michael Snyder <msnyder@vmware.com>
6692 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6694 2011-02-27 Michael Snyder <msnyder@vmware.com>
6696 * objc-lang.c (selectors_info): Prevent string overrun.
6698 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6701 * symtab.c (rbreak_command): Move variable 'file_name' to
6704 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6705 param with a local variable of the same name.
6707 2011-02-27 Michael Snyder <msnyder@vmware.com>
6709 * value.c (value_from_history_ref): New function.
6710 * value.h (value_from_history_ref): Export.
6711 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6712 to parse value history references.
6713 * cli/cli-utils.h (get_number_trailer): Update comment.
6715 2011-02-27 Michael Snyder <msnyder@vmware.com>
6717 * inferior.c (detach_inferior_command): Use get_number_or_range.
6718 (kill_inferior_command): Ditto.
6719 (remove_inferior_command): Ditto.
6720 (initialize_inferiors): Make command names plural.
6721 Update help strings.
6723 2011-02-27 Michael Snyder <msnyder@vmware.com>
6725 * darwin-nat-info.c: Fix comment typo.
6726 * dwarf2expr.h: Ditto.
6727 * fbsd-nat.c: Ditto.
6728 * fbsd-nat.h: Ditto.
6729 * frame-unwind.h: Ditto.
6731 * hppa-hpux-tdep.c: Ditto.
6732 * i386-linux-nat.c: Ditto.
6733 * linux-nat.c: Ditto.
6734 * nbsd-nat.c: Ditto.
6735 * nbsd-nat.h: Ditto.
6736 * ppc-linux-tdep.c: Ditto.
6739 * tui/tui-winsource.c: Ditto.
6741 2011-02-26 Michael Snyder <msnyder@vmware.com>
6743 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6745 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6747 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6748 with a local variable of the same name.
6750 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6751 param with a local variable of the same name.
6752 (i387_supply_xsave): Ditto.
6754 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6755 that it does not shadow a function parameter.
6757 * i386-nat.c (i386_length_and_rw_bits): Document that case
6758 statement is meant to fall through.
6760 * expprint.c (dump_subexp_body_standard): Document that case
6761 statement is meant to fall through.
6763 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6764 dead if statement. Condition can't be false.
6766 2011-02-25 Michael Snyder <msnyder@vmware.com>
6768 * arm-tdep.c: Fix typos in comments.
6769 * bsd-uthread.c: Ditto.
6770 * completer.c: Ditto.
6772 * cp-namespace.c: Ditto.
6773 * cp-support.c: Ditto.
6774 * cris-tdep.c: Ditto.
6776 * dwarf2read.c: Ditto.
6778 * gdbtypes.h: Ditto.
6779 * inferior.h: Ditto.
6780 * mdebugread.c: Ditto.
6781 * mips-tdep.c: Ditto.
6782 * ppc-linux-nat.c: Ditto.
6783 * ppc-linux-tdep.c: Ditto.
6784 * printcmd.c: Ditto.
6785 * sol-thread.c: Ditto.
6786 * solib-frv.c: Ditto.
6788 * sparc64-tdep.c: Ditto.
6789 * spu-tdep.c: Ditto.
6790 * stabsread.c: Ditto.
6795 * python/py-block.c: Ditto.
6796 * python/py-symbol.c: Ditto.
6797 * python/py-symtab.c: Ditto.
6798 * python/py-value.c: Ditto.
6799 * tui/tui-win.c: Ditto.
6801 2011-02-25 Michael Snyder <msnyder@vmware.com>
6803 * inferior.c (print_inferior): Accept a string instead of an int
6804 for requested_inferiors, and use get_number_or_range to parse it.
6805 (info_inferiors_command): Pass args string to print_inferior.
6806 (initialize_inferiors): Change help string for info inferiors.
6807 * inferior.h (print_inferior): Export prototype change.
6809 2011-02-25 Tom Tromey <tromey@redhat.com>
6811 * common/ax.def (invalid2): Set to 0x31.
6813 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6815 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6817 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6819 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6821 2011-02-24 Michael Snyder <msnyder@vmware.com>
6823 * Makefile.in (clean): Make clean should remove generated files
6824 observer.h and observer.inc.
6826 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6828 Revert the following patch (not approved yet):
6829 2011-02-21 Hui Zhu <teawater@gmail.com>
6830 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6831 * ax-gdb.c (gen_printf_expr_callback): New function.
6832 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6833 * ax-general.c (ax_memcpy): New function.
6834 (ax_print): Handle "printf".
6836 * ax.h (ax_memcpy): Forward declare.
6837 * common/ax.def (invalid2): Removed.
6838 (printf): New entry.
6839 * printcmd.c (printcmd.h): New include.
6840 (string_printf): New function.
6841 (ui_printf): Removed.
6842 (printf_command): Remove static. Call string_printf.
6843 (eval_command): Call string_printf.
6844 * printcmd.h: New file.
6845 * tracepoint.c (validate_actionline,
6846 encode_actions_1): handle printf_command.
6848 2011-02-23 Tom Tromey <tromey@redhat.com>
6850 * ax-general.c (ax_pick): Add missing newline.
6852 2011-02-23 Michael Snyder <msnyder@vmware.com>
6854 * breakpoint.c (breakpoint_1): Change first argument from an int
6855 to a char pointer, so that the function now accepts a list of
6856 breakpoints rather than just one. Use new function
6857 'number_is_in_list' to implement.
6858 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6859 (watchpoints_info): Ditto.
6860 (tracepoints_info): Ditto.
6861 (maintenance_info_breakpoints): Ditto.
6862 (_initialize_breakpoint): Update help strings to reflect the fact
6863 that these functions can now take more than one argument.
6864 * cli/cli-utils.c (number_is_in_list): New function.
6865 * cli/cli-utils.h (number_is_in_list): Export.
6867 2011-02-23 Michael Snyder <msnyder@vmware.com>
6869 * memattr.c (mem_enable_command): Use get_number_or_range.
6870 (mem_disable_command): Ditto.
6871 (mem_delete_command): Ditto.
6872 (_initialize_mem): Tweak usage message to reflect multiple
6875 2011-02-22 Doug Evans <dje@google.com>
6877 Add gdb.lookup_global_symbol python function.
6879 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6880 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6881 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6883 2011-02-22 Tom Tromey <tromey@redhat.com>
6885 * language.c (language_class_name_from_physname): Rename
6886 'curr_language' argument to 'lang'; use in body.
6888 2011-02-22 Michael Snyder <msnyder@vmware.com>
6890 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6892 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6894 * frame-unwind.h: Fix comment to mention the this frame, not the
6897 2011-02-22 Tom Tromey <tromey@redhat.com>
6899 * symfile.c (auto_solib_limit): Remove.
6900 * symfile.h (auto_solib_limit): Remove.
6902 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6904 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6906 2011-02-21 Michael Snyder <msnyder@vmware.com>
6908 * gdbthread.h (print_thread_info): Change prototype.
6909 * thread.c (print_thread_info): Accept char* instead of int for
6910 requested_threads argument. Use new function number_is_in_list
6911 to determine which threads to list.
6912 (info_threads_command): Pass char* to print_thread_info.
6913 * cli/cli-utils.c (number_is_in_list): New function.
6914 * cli/cli-utils.h (number_is_in_list): Export.
6915 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6917 (print_one_inferior): Ditto.
6918 (mi_cmd_list_thread_groups): Ditto.
6920 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6922 * common/Makefile.in (CFLAGS): New.
6923 (COMPILE): Add $(CFLAGS).
6925 2011-02-21 Tom Tromey <tromey@redhat.com>
6927 * breakpoint.c (catch_syscall_command_1): Fix typo.
6929 2011-02-21 Tom Tromey <tromey@redhat.com>
6931 * reverse.c: Include cli-utils.h.
6932 * printcmd.c: Include cli-utils.h.
6933 (string_printf): Use skip_spaces.
6934 * cli/cli-utils.h: New file.
6935 * cli/cli-utils.c: New file.
6936 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6937 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6938 * breakpoint.h (get_number, get_number_or_range): Move to
6940 * breakpoint.c: Include cli-utils.h.
6941 (get_number_trailer, get_number, get_number_or_range)
6942 (ep_skip_leading_whitespace): Move to cli-utils.c.
6943 (create_breakpoint_sal, find_condition_and_thread)
6944 (decode_static_tracepoint_spec, watch_command_1)
6945 (watch_maybe_just_location, ep_parse_optional_if_clause)
6946 (catch_fork_command_1, catch_exec_command_1)
6947 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6948 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6949 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6950 (HFILES_NO_SRCDIR): Add cli-utils.h.
6951 (cli-utils.o): New target.
6953 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6955 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6956 before calling discard_all_inferiors.
6958 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6960 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6961 (struct builtin_opencl_type): Remove.
6962 (builtin_opencl_type): Change return type to "struct type **".
6963 (lookup_opencl_vector_type): Update caller.
6964 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6965 (build_opencl_types): Install plain array of "struct type *"
6966 instead of "struct builtin_opencl_type".
6968 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6969 Ulrich Weigand <uweigand@de.ibm.com>
6971 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6972 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6973 (struct arm_linux_hwbp_cap): New type.
6974 (arm_linux_get_hwbp_cap): New function.
6975 (arm_linux_get_hw_breakpoint_count): Likewise.
6976 (arm_linux_get_hw_watchpoint_count): Likewise.
6977 (arm_linux_can_use_hw_breakpoint): Likewise.
6978 (arm_hwbp_type): New type.
6979 (arm_hwbp_control_t): Likewise.
6980 (struct arm_linux_hw_breakpoint): Likewise.
6981 (struct arm_linux_thread_points): Likewise.
6982 (arm_threads): New global variable.
6983 (arm_linux_find_breakpoints_by_tid): New function.
6984 (arm_hwbp_control_initialize): Likewise.
6985 (arm_hwbp_control_is_enabled): Likewise.
6986 (arm_hwbp_control_disable): Likewise.
6987 (arm_linux_hw_breakpoint_initialize): Likewise.
6988 (arm_linux_get_hwbp_type): Likewise.
6989 (arm_linux_hw_watchpoint_initialize): Likewise.
6990 (arm_linux_hw_breakpoint_equal): Likewise.
6991 (arm_linux_insert_hw_breakpoint1): Likewise.
6992 (arm_linux_remove_hw_breakpoint1): Likewise.
6993 (arm_linux_insert_hw_breakpoint): Likewise.
6994 (arm_linux_remove_hw_breakpoint): Likewise.
6995 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6996 (arm_linux_insert_watchpoint): Likewise.
6997 (arm_linux_remove_watchpoint): Likewise.
6998 (arm_linux_stopped_data_address): Likewise.
6999 (arm_linux_stopped_by_watchpoint): Likewise.
7000 (arm_linux_watchpoint_addr_within_range): Likewise.
7001 (arm_linux_new_thread): Likewise.
7002 (arm_linux_thread_exit): Likewise.
7003 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7004 related target callbacks. Register arm_linux_new_thread and
7005 arm_linux_thread_exit.
7006 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7007 * arm-tdep.c (arm_pc_is_thumb): Make global.
7008 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7010 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7012 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7013 per-frame locations while within a function epilogue.
7015 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7017 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7018 to GNU coding standards.
7020 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7022 Allow use of mingw native on Windows 95 OS.
7023 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
7024 (ser_windows_close): Only call CancelIo if function exists.
7025 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7026 to check for existence of CancelIo function in kernel32 DLL.
7028 2011-02-21 Hui Zhu <teawater@gmail.com>
7030 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7031 * ax-gdb.c (gen_printf_expr_callback): New function.
7032 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7033 * ax-general.c (ax_memcpy): New function.
7034 (ax_print): Handle "printf".
7036 * ax.h (ax_memcpy): Forward declare.
7037 * common/ax.def (invalid2): Removed.
7038 (printf): New entry.
7039 * printcmd.c (printcmd.h): New include.
7040 (string_printf): New function.
7041 (ui_printf): Removed.
7042 (printf_command): Remove static. Call string_printf.
7043 (eval_command): Call string_printf.
7044 * printcmd.h: New file.
7045 * tracepoint.c (validate_actionline,
7046 encode_actions_1): handle printf_command.
7048 2011-02-19 Michael Snyder <msnyder@vmware.com>
7050 * reverse.c (delete_one_bookmark): Argument is now bookmark
7051 id rather than pointer to bookmark struct.
7052 (delete_bookmark_command): Use get_number_or_range.
7053 (goto_bookmark_command): Parse with get_number instead of strtoul.
7054 (bookmark_1): New function. Print info for one bookmark.
7055 (bookmarks_info): Use get_number_or_range and bookmark_1.
7057 2011-02-18 Michael Snyder <msnyder@vmware.com>
7059 * thread.c (info_threads_command): Re-implement using
7060 get_number_or_range.
7061 (thread_apply_command): Ditto.
7063 2011-02-18 Tom Tromey <tromey@redhat.com>
7065 * common/ax.def: New file.
7066 * ax.h (enum agent_op): Use ax.def.
7067 * ax-general.c (aop_map): Use ax.def.
7069 2011-02-18 Tom Tromey <tromey@redhat.com>
7071 * ax-general.c (aop_map): Add pick and rot.
7072 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7073 <DW_OP_rot>: Implement.
7074 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7076 * ax-general.c (ax_pick): New function.
7078 2011-02-18 Tom Tromey <tromey@redhat.com>
7080 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7082 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7083 Tom Tromey <tromey@redhat.com>
7085 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7086 make_symbol_overload_list_block with NULL BLOCK.
7087 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7089 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7091 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7092 * breakpoint.h (get_number_or_range): Declare.
7093 * printcmd.c (ALL_DISPLAYS): Declare.
7094 (delete_display): Reimplement taking a display pointer.
7095 (undisplay_command): Accept a range of displays to delete, using
7096 get_number_or_range.
7098 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7100 * c-valprint.c (c_val_print): Add embedded_offset to address
7101 for arrays of unspecified length.
7102 * p-valprint.c (pascal_val_print): Likewise.
7104 2011-02-18 Yao Qi <yao@codesourcery.com>
7106 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7107 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7108 (thumb_process_displaced_insn): New.
7109 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7110 call to arm_process_displaced_insn.
7111 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7113 2011-02-17 Tom Tromey <tromey@redhat.com>
7115 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7116 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7117 compile_dwarf_to_ax. No longer static. Call
7118 dwarf2_compile_cfa_to_ax.
7119 (locexpr_tracepoint_var_ref): Update.
7120 (loclist_tracepoint_var_ref): Update.
7121 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7122 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7123 argument; add 'gdbarch' and 'pc'.
7124 (dwarf2_compile_cfa_to_ax): New function.
7125 (dwarf2_frame_cache): Update.
7127 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7129 * ada-lang.c (ada_type_of_array): Fix the size of the array
7130 in the case of an unconstrained packed array.
7132 2011-02-17 Yao Qi <yao@codesourcery.com>
7134 * common/Makefile.in: Add more targets for make.
7136 2011-02-16 Tom Tromey <tromey@redhat.com>
7138 * dwarf2loc.c (unimplemented): Fix typo.
7140 2011-02-16 Tom Tromey <tromey@redhat.com>
7142 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7143 (compile_dwarf_to_ax) <default>: Use unimplemented.
7144 <DW_OP_deref>: Update.
7145 (disassemble_dwarf_expression): Update.
7146 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7147 (decode_locdesc): Update.
7148 * dwarf2expr.h (dwarf_stack_op_name): Update.
7150 2011-02-16 Tom Tromey <tromey@redhat.com>
7152 * ax.h (struct aop_map) <name>: Now const.
7154 2011-02-16 Tom Tromey <tromey@redhat.com>
7156 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7159 2011-02-16 Yao Qi <yao@codesourcery.com>
7161 * infrun.c (get_displaced_step_closure_by_addr): New.
7162 * inferior.h: Declare it.
7163 * arm-tdep.c: (arm_pc_is_thumb): Call
7164 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7167 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7168 Jan Kratochvil <jan.kratochvil@redhat.com>
7171 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7173 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7174 Jan Kratochvil <jan.kratochvil@redhat.com>
7176 * value.c (value_contents_copy_raw): Extend describing comment.
7177 Assert that the destination contents we're overwriting are wholly
7179 (value_contents_copy): Extend describing comment.
7181 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7182 Jan Kratochvil <jan.kratochvil@redhat.com>
7184 * value.c (value_available_contents_eq): Remove redundant local
7185 variables. Fix available contents comparision.
7186 * value.h (value_available_contents_eq): Extend describing
7189 2011-02-16 Yao Qi <yao@codesourcery.com>
7191 * thread.c (info_threads_command): Add missing i18n markup and remove
7194 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7196 * breakpoint.c (longjmp_names): New variable.
7197 (struct breakpoint_objfile_data): New type.
7198 (breakpoint_objfile_key): New variable.
7199 (msym_not_found): New variable.
7200 (msym_not_found_p): New predicate.
7201 (get_breakpoint_objfile_data): New function.
7202 (create_overlay_event_breakpoint): Check per-objfile cache for
7204 (create_longjmp_master_breakpoint): Likewise.
7205 (create_std_terminate_master_breakpoint): Likewise.
7206 (create_exception_master_breakpoint): Likewise.
7207 (_initialize_breakpoint): Register per-objfile data key.
7209 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7211 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7213 (create_longjmp_master_breakpoint): Loop over longjmp names.
7214 (create_std_terminate_master_breakpoint): Const-propagate parameter
7216 (update_breakpoints_after_exec): Adjust.
7217 (breakpoint_re_set): Adjust.
7219 2011-02-15 Michael Snyder <msnyder@vmware.com>
7221 * thread.c (info_threads_command): Process arg as thread id,
7222 or list of thread ids.
7223 (thread_find_command): New command.
7224 (_initialize_thread): Document argument for info threads.
7225 Document 'thread find' command.
7226 * NEWS: Document new command "thread find".
7228 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7230 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7231 * aclocal.m4: Regenerated with aclocal-1.11.1.
7232 * common/configure: Regenerate with autoconf-2.64.
7234 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7236 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7237 bool data type to a size of one byte.
7239 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7240 Jan Kratochvil <jan.kratochvil@redhat.com>
7242 * target.c (memory_xfer_live_readonly_partial): Document where to
7243 look for interface description.
7245 2011-02-15 Yao Qi <yao@codesourcery.com>
7248 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7249 order to store PC value on stack instead of text section.
7251 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7253 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7254 the EFP register set size.
7255 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7256 data from the VMX register.
7257 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7258 and write data from/to the VMX register.
7260 2011-02-14 Michael Snyder <msnyder@vmware.com>
7262 * command.h (enum command_class): New class 'no_set_class', for
7263 "show" commands without a corresponding "set" command.
7264 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7265 * copying.c (_initialize_copying): Ditto for "show copying" and
7267 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7269 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7270 which there is no corresponding "set" command (eg. "show copying").
7272 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7273 Jan Kratochvil <jan.kratochvil@redhat.com>
7275 * exec.c (section_table_available_memory): Change `len' parameter
7277 * exec.h (section_table_available_memory): Ditto.
7278 * value.h (read_value_memory): Rename the `offset' parameter to
7281 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7282 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 * memrange.c (compare_mem_ranges): Mention sort order in
7286 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7287 * tracepoint.c (traceframe_available_memory): Extend comment to
7288 mention what happens to RESULT when the target does not support
7291 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7292 Jan Kratochvil <jan.kratochvil@redhat.com>
7294 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7297 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7299 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7300 No longer handle NULL values.
7302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7304 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7305 * value.c: Include "exceptions.h".
7306 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7308 * cp-abi.c: Include gdb_assert.h.
7309 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7310 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7312 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7313 parameters. No longer returns -1 on error.
7314 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7316 * cp-valprint.c: Include exceptions.h.
7317 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7318 the baseclass_offset. Handle unavailable base classes. Use
7319 val_print_invalid_address.
7320 * p-valprint.c: Include exceptions.h.
7321 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7322 when fetching the baseclass_offset. No longer expect
7323 baseclass_offset returning -1. Handle unavailable base classes.
7324 Use val_print_invalid_address.
7325 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7326 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7327 `embedded_offset' and `val' parameters. Adjust.
7328 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7329 parameter, and change its type to gdb_byte pointer. Add
7330 `embedded_offset' and `val' parameters. Adjust. No longer expect
7331 baseclass_offset returning -1.
7332 (value_dynamic_cast): Use value_contents_for_printing rather than
7333 value_contents. Adjust.
7334 (search_struct_field): No longer expect baseclass_offset returning
7336 (search_struct_method): If reading memory from the target is
7337 necessary, wrap it in a new value to pass to baseclass_offset. No
7338 longer expect baseclass_offset returning -1.
7339 (find_method_list): No longer expect baseclass_offset returning
7340 -1. Use value_contents_for_printing rather than value_contents.
7341 * valprint.c (val_print_invalid_address): New function.
7342 * valprint.h (val_print_invalid_address): Declare.
7343 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7344 and `val' parameters. No longer expect baseclass_offset returning
7346 * gnu-v2-abi.c: Include "exceptions.h".
7347 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7348 parameters. Handle unavailable memory. Recurse through
7349 gnuv2_baseclass_offset directly, rather than through
7350 baseclass_offset. No longer returns -1 on not found, instead
7352 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7353 `val' parameters. Adjust.
7355 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7357 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7358 almost but not quite adjacent.
7360 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7362 * value.h (value_entirely_available): Declare.
7363 * value.c (value_entirely_available): New function.
7364 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7365 real type if the pointer is unavailable.
7367 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7369 * valops.c (value_repeat): Use read_value_memory instead of
7372 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7374 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7375 * value.c (value_contents_copy_raw, value_contents_copy): New
7377 (value_primitive_field): Use value_contents_copy_raw instead of
7379 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7381 (value_array, value_slice): Ditto.
7382 * valarith.c (value_subscripted_rvalue): Use
7383 value_contents_copy_raw instead of memcpy.
7385 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7387 <unavailable> references.
7389 * valops.c (get_value_at): Use value_from_contents_and_address,
7390 avoiding read_memory.
7392 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7394 * c-valprint.c (c_val_print): Print a string with unavailable
7395 contents as an array.
7397 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7399 * value.h (unpack_bits_as_long): Delete declaration.
7400 (unpack_value_bits_as_long): Declare.
7401 (unpack_value_field_as_long): Declare.
7402 (value_field_bitfield): Declare.
7403 * value.c (unpack_bits_as_long): Rename to...
7404 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7405 value parameters. Return the extracted result in a new output
7406 parameter. If the value contents are unavailable, return false,
7407 otherwise return true.
7408 (unpack_value_bits_as_long): New.
7409 (unpack_field_as_long): Rename to...
7410 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7411 Add embedded_offset and value parameters. Return the extracted
7412 result in a new output parameter. If the value contents are
7413 unavailable, return false, otherwise return true.
7414 (unpack_value_field_as_long): New.
7415 (unpack_field_as_long_1): New.
7416 (unpack_field_as_long): Reimplement as wrapper around
7417 unpack_value_field_as_long_1.
7418 (value_field_bitfield): New function.
7419 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7420 unpack_value_bits_as_long. Mark the value as unavailable, if it
7422 * jv-valprint.c (java_print_value_fields): Use
7423 value_field_bitfield.
7424 * p-valprint.c (pascal_object_print_value_fields): Use
7425 value_field_bitfield.
7426 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7428 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7430 * value.c (get_internalvar_integer): Also return the int value of
7431 TYPE_CODE_INT INTERNALVAR_VALUE values.
7432 (set_internalvar): Don't special case TYPE_CODE_INT.
7434 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7436 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7437 INTERNALVAR_POINTER.
7439 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7440 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7441 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7443 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7445 * value.h (value_available_contents_eq): Declare.
7446 * value.c (find_first_range_overlap): New function.
7447 (value_available_contents_eq): New function.
7448 * valprint.c (val_print_array_elements): Use
7449 value_available_contents_eq.
7450 * ada-valprint.c (val_print_packed_array_elements): Use
7451 value_available_contents_eq.
7452 * jv-valprint.c (java_value_print): Use
7453 value_available_contents_eq.
7455 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7457 * target.c (target_read_live_memory): New function.
7458 (memory_xfer_live_readonly_partial): New.
7459 (memory_xfer_partial): If reading from a traceframe, fallback to
7460 reading unavailable read-only memory from read-only regions of
7462 * tracepoint.c (disconnect_tracing): Adjust.
7463 (set_current_traceframe): New, factored out from
7464 set_traceframe_number.
7465 (set_traceframe_number): Reimplement to only change the traceframe
7466 number on the GDB side.
7467 (do_restore_current_traceframe_cleanup): Adjust.
7468 (make_cleanup_restore_traceframe_number): New.
7469 (cur_traceframe_number): New global.
7470 (tfile_open): Set cur_traceframe_number to no traceframe.
7471 (set_tfile_traceframe): New function.
7472 (tfile_trace_find): If looking up a traceframe using any method
7473 other than by number, make sure the current tfile traceframe
7474 matches gdb's current traceframe. Update the current tfile
7475 traceframe if the lookup succeeded.
7476 (tfile_fetch_registers, tfile_xfer_partial)
7477 (tfile_get_trace_state_variable_value): Make sure the remote
7478 traceframe matches gdb's current traceframe.
7479 * remote.c (remote_traceframe_number): New global.
7480 (remote_open_1): Set it to -1.
7481 (set_remote_traceframe): New function.
7482 (remote_fetch_registers, remote_store_registers)
7483 (remote_xfer_memory, remote_xfer_partial)
7484 (remote_get_trace_state_variable_value): Make sure the remote
7485 traceframe matches gdb's current traceframe.
7486 (remote_trace_find): If looking up a traceframe using any method
7487 other than by number, make sure the current remote traceframe
7488 matches gdb's current traceframe. Update the current remote
7489 traceframe if the lookup succeeded.
7490 * infrun.c (fetch_inferior_event): Adjust.
7491 * tracepoint.h (set_current_traceframe): Declare.
7492 (get_traceframe_number, set_traceframe_number): Add describing
7495 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7497 Mark pieces of values as unavailable if the corresponding memory
7500 * valops.c: Include tracepoint.h.
7501 (value_fetch_lazy): Use read_value_memory.
7502 (read_value_memory): New.
7503 * value.h (read_value_memory): Declare.
7504 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7505 * exec.c (section_table_available_memory): New function.
7506 * exec.h (section_table_available_memory): Declare.
7508 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7510 * Makefile.in (SFILES): Add memrange.c.
7511 (HFILES_NO_SRCDIR): Add memrange.h.
7512 (COMMON_OBS): Add memrange.o.
7513 * memrange.c: New file.
7514 * memrange.h: New file.
7515 * tracepoint.c: Include memrange.h.
7516 (struct mem_range): Delete.
7517 (mem_range_s): Delete.
7518 (traceframe_available_memory): New function.
7519 * tracepoint.h (traceframe_available_memory): Declare.
7521 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7523 * target.h (struct traceframe_info): Forward declare.
7524 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7525 (struct target_ops) <to_traceframe_info>: New field.
7526 (target_traceframe_info): New.
7527 * target.c (update_current_target): Inherit and default
7529 * remote.c (PACKET_qXfer_traceframe_info): New.
7530 (remote_protocol_features): Register qXfer:traceframe-info:read.
7531 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7532 (remote_traceframe_info): New.
7533 (init_remote_ops): Install it.
7534 (_initialize_remote): Install "set/show remote traceframe-info"
7536 * tracepoint.h (parse_traceframe_info): Declare.
7537 * tracepoint.c (struct mem_range): New.
7538 (mem_range_s): New typedef.
7539 (struct traceframe_info): New.
7540 (traceframe_info): New global.
7541 (free_traceframe_info): New function.
7542 (clear_traceframe_info): New function.
7543 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7545 (build_traceframe_info): New function.
7546 (tfile_traceframe_info): New function.
7547 (init_tfile_ops): Install tfile_traceframe_info.
7548 (traceframe_info_start_memory, free_result): New functions.
7549 (memory_attributes, traceframe_info_elements): New globals.
7550 (parse_traceframe_info, get_traceframe_info): New functions.
7551 * features/traceframe-info.dtd: New file.
7552 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7554 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7556 Base support for <unavailable> value contents.
7558 * value.h (value_bytes_available): Declare.
7559 (mark_value_bytes_unavailable): Declare.
7560 * value.c (struct range): New struct.
7561 (range_s): New typedef.
7562 (ranges_overlap): New function.
7563 (range_lessthan): New function.
7564 (ranges_contain_p): New function.
7565 (struct value) <unavailable>: New field.
7566 (value_bytes_available): New function.
7567 (mark_value_bytes_unavailable): New function.
7568 (require_not_optimized_out): Constify parameter.
7569 (require_available): New function.
7570 (value_contents_all, value_contents): Require all bytes be
7572 (value_free): Free `unavailable'.
7573 (value_copy): Copy `unavailable'.
7574 * valprint.h (val_print_unavailable): Declare.
7575 * valprint.c (valprint_check_validity): Rename `offset' parameter
7576 to `embedded_offset'. If printing a scalar, check whether the
7577 value chunk is available.
7578 (val_print_unavailable): New.
7579 (val_print_scalar_formatted): Check whether the value is
7581 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7582 pretty-printing unavailable values.
7584 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7586 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7587 * c-typeprint.c (c_type_print_args): Update the function comment. New
7588 variable param_type, initialize it. Remove const/volatile qualifiers
7589 for language_cplus and !show_artificial. Use param_type.
7591 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7593 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7594 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7595 * symtab.h (struct symtab) <next>: Comment extension.
7597 2011-02-12 Yao Qi <yao@codesourcery.com>
7599 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7601 2011-02-11 Yao Qi <yao@codesourcery.com>
7603 * common/Makefile.in: Add copyright header.
7605 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7607 * infrun.c (proceed): Move switching out and in of tfind mode from
7609 (fetch_inferior_event): ... to here.
7611 2011-02-11 Yao Qi <yao@codesourcery.com>
7613 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7615 * configure.ac: Add common to sub dir.
7616 * configure: Regenerate.
7618 2011-02-11 Yao Qi <yao@codesourcery.com>
7622 * common/Makefile.in: New.
7623 * common/configure.ac: New.
7624 * common/aclocal.m4: New.
7625 * common/configure: Generate.
7627 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7629 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7630 side of the parenthesis.
7633 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7634 * vec.h (VEC_block_remove): Fix comment.
7636 2011-02-08 Michael Snyder <msnyder@vmware.com>
7638 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7640 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7642 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7643 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7646 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7649 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7651 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7652 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7654 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7656 * dwarf2read.c (read_subroutine_type): Set special calling
7657 convention flag for functions compiled by IBM XL C for OpenCL.
7658 * ppc-sysv-tdep.c: Include "dwarf2.h"
7659 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7661 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7662 IBM OpenCL vector types calling convention.
7663 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7664 (ppc_sysv_abi_broken_return_value): Likewise.
7665 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7666 types calling convention.
7667 (ppc64_sysv_abi_return_value): Likewise.
7668 * spu-tdep.c: Include "dwarf2.h"
7669 (spu_return_value): Implement IBM OpenCL vector types calling
7672 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7674 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7675 correct ABI for AltiVec vector arguments.
7677 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7679 * valprint.c (val_print): Extend comment.
7680 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7681 interface explanation to val_print.
7682 (ada_val_print_array): Adjust comment to current interface.
7683 (print_field_values): Adjust comment to current interface.
7684 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7685 explanation to val_print.
7686 * f-valprint.c (f_val_print): Ditto.
7687 * jv-valprint.c (java_val_print): Ditto.
7688 * m2-valprint.c (m2_val_print): Ditto.
7689 * p-valprint.c (pascal_val_print): Ditto.
7691 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7693 * breakpoint.c (parse_breakpoint_sals): Fix description.
7695 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7696 Oguz Kayral <oguzkayral@gmail.com>
7698 * python/py-inferior.c (python_on_normal_stop): New function.
7699 (python_on_resume): New function.
7700 (python_inferior_exit): New function.
7701 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7702 inferior_exit observers.
7703 * python/py-evtregistry.c: New file.
7704 * python/py-threadevent.c : New file.
7705 * python/py-event.c: New file.
7706 * python/py-evts.c: New file.
7707 * python/py-continueevent.c: New file.
7708 * python/py-bpevent.c: New file.
7709 * python/py-signalevent.c: New file.
7710 * python/py-exetiedevent.c: New file.
7711 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7712 Move struct breakpoint_object from here...
7713 * python/python-internal.h: ... to here.
7714 * python/py-event.h: New file.
7715 * python/py-events.h: New file.
7716 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7717 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7718 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7719 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7720 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7721 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7722 Add build rules for all the above.
7724 2011-02-04 Tom Tromey <tromey@redhat.com>
7726 * dwarf2read.c (dwarf2_section_empty_p): New function.
7727 (dwarf2_read_section): Use dwarf2_section_empty_p.
7728 (dwarf2_section_size): New function.
7729 (dwarf2_get_section_info): Unconditionally read section.
7730 (dwarf2_read_index): Use dwarf2_section_empty_p.
7731 (partial_read_comp_unit_head): Use dwarf2_section_size.
7732 (dwarf2_symbol_mark_computed): Likewise.
7734 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7736 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7738 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7740 * mips-linux-tdep.c: Include xml-syscall.h.
7741 (mips_linux_get_syscall_number): New function.
7742 (mips_linux_init_abi): Add calls to
7743 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7744 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7745 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7746 * syscalls/mips-n32-linux.xml: New file.
7747 * syscalls/mips-n64-linux.xml: New file.
7748 * syscalls/mips-o32-linux.xml: New file.
7750 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7752 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7753 Complain about inverted range entries.
7754 (dwarf2_record_block_ranges): Likewise.
7756 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7759 * breakpoint.c (update_watchpoint): Fix name of the
7760 update_global_location_list function.
7761 (print_one_breakpoint): Fix typo.
7762 (_initialize_breakpoint): Remove extra space in hbreak help
7764 * breakpoint.h (struct bp_location) <length>: Fix field
7767 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7769 * regcache.c (registers_changed_ptid): Don't explictly always
7770 clear `current_regcache'. Only clear current_thread_ptid and
7771 current_thread_arch when PTID matches. Only reinit the frame
7772 cache if PTID matches the current inferior_ptid. Move alloca(0)
7774 (registers_changed): ... here.
7776 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7778 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7779 starts with __stack_chk_guard as stack guard symbol.
7781 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7783 * disasm.c (compare_lines): Handle the end of sequence markers
7784 within the line table to better support disassembling over
7785 compilation unit boundaries.
7787 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7789 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7790 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7791 implementation even if no symbols are available.
7792 (thumb_analyze_prologue): Update call to skip_prologue_function.
7793 (arm_analyze_prologue): Likewise.
7795 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7797 * arm-tdep.c: Include "observer.h".
7798 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7799 (arm_exidx_data_key): New static variable.
7800 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7801 (struct arm_exidx_data): Likewise.
7802 (arm_exidx_data_free): New function.
7803 (arm_compare_exidx_entries): Likewise.
7804 (arm_obj_section_from_vma): Likewise.
7805 (arm_exidx_new_objfile): Likewise.
7806 (arm_find_exidx_entry): Likewise.
7807 (arm_exidx_fill_cache): Likewise.
7808 (arm_exidx_unwind_sniffer): Likewise.
7809 (arm_exidx_unwind): New global variable.
7810 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7811 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7812 observer. Register arm_exidx_data_key as objfile data.
7814 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7816 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7817 due to accessing uninitialized variable. Fix indentation.
7819 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7821 * c-valprint.c (c_value_print): When doing virtual base pointer
7822 adjustment, create a new value with adjusted contents rather than
7823 changing the contents of the value being printed (and getting it
7826 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7828 * xml-support.c (xml_find_attribute): New.
7829 (xinclude_start_include): Use it.
7830 * xml-support.h (xml_find_attribute): Declare.
7831 * memory-map.c (memory_map_start_memory)
7832 (memory_map_start_property): Use xml_find_attribute.
7833 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7835 * remote.c (start_thread): Use xml_find_attribute.
7836 * solib-target.c (library_list_start_segment)
7837 (library_list_start_section, library_list_start_library)
7838 (library_list_start_list): Use xml_find_attribute.
7839 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7840 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7841 (tdesc_start_field): Use xml_find_attribute.
7843 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7845 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7846 (BUILD_OCL_VTYPES): Update.
7848 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7850 * configure.ac: Work around non-GNU sed limitation when computing
7851 python version number.
7852 * configure: Regenerate.
7854 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7856 Fix debug printing of TYPE_INSTANCE.
7857 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7858 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7860 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7862 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7863 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7864 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7865 * ada-operator.inc: Rename the file to ...
7866 * ada-operator.def: ... here, wrap all the entries by macro OP.
7867 * expprint.c (op_name_standard): Remove all the entries. Include
7868 "std-operator.def" instead.
7869 * expression.h (enum exp_opcode): Include "std-operator.def" and
7870 "ada-operator.def". Move all the entries ...
7871 * std-operator.def: ... here, wrap all the entries by macro OP.
7873 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7875 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7876 * breakpoint.c (remove_jit_event_breakpoints): New function.
7877 * jit.c (jit_descriptor_addr): Delete.
7878 (registering_code): Delete.
7879 (clear_int): Delete.
7880 (jit_inferior_data): New variable.
7881 (struct jit_inferior_data): New type.
7882 (get_jit_inferior_data): New function.
7883 (jit_inferior_data_cleanup): New function.
7884 (jit_read_descriptor): Adjust.
7885 (jit_register_code): Adjust.
7886 (jit_breakpoint_re_set_internal): New function; move code here ...
7887 (jit_inferior_init): ... from here.
7888 (jit_breakpoint_re_set): Adjust.
7889 (jit_reset_inferior_data_and_breakpoints): New function.
7890 (jit_inferior_created_observer): Adjust.
7891 (jit_inferior_exit_hook): Adjust.
7892 (jit_executable_changed_observer): New function.
7893 (jit_event_handler): Adjust.
7894 (_initialize_jit): Adjust.
7896 2011-01-31 Michael Snyder <msnyder@vmware.com>
7898 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7901 2011-01-31 Tom Tromey <tromey@redhat.com>
7904 * python/python.c (execute_gdb_command): Call
7905 prevent_dont_repeat.
7906 * top.c (suppress_dont_repeat): New global.
7907 (dont_repeat): Use it.
7908 (prevent_dont_repeat): New function.
7909 * command.h (prevent_dont_repeat): Declare.
7911 2011-01-31 Tom Tromey <tromey@redhat.com>
7913 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7914 * python/py-breakpoint.c (bppy_set_silent): Use
7915 breakpoint_set_silent.
7916 (bppy_set_thread): Use breakpoint_set_thread.
7917 (bppy_set_task): Use breakpoint_set_task.
7918 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7919 (breakpoint_set_task): Declare.
7920 (make_breakpoint_silent): Remove.
7921 * breakpoint.c (breakpoint_set_silent): New function.
7922 (breakpoint_set_thread): Likewise.
7923 (breakpoint_set_task): Likewise.
7924 (make_breakpoint_silent): Remove.
7926 2011-01-31 Tom Tromey <tromey@redhat.com>
7928 * breakpoint.h (user_breakpoint_p): Declare.
7929 * breakpoint.c (user_breakpoint_p): New function.
7930 (breakpoint_1): Use it.
7931 (save_breakpoints): Likewise.
7933 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7935 * configure.ac: Add handling of Python distribution on Windows.
7936 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7937 sysconfig variables are not defined, then do not use them.
7938 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7939 instead. On Windows, return all paths using forward-slashes
7940 rather than backslashes.
7942 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7944 * configure.ac: Remove fallback behavior for building
7945 against Python. Remove tweaking of Python include path.
7946 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7947 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7948 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7949 Always restore CPPFLAGS and LIBS after linking test.
7950 * configure: Regenerated.
7951 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7952 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7953 * python/python-internal.h: Adjust includes of Python .h files.
7955 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7957 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7960 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7962 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7965 2011-01-31 Yao Qi <yao@codesourcery.com>
7967 * arm-linux-nat.c: Update calls to regcache_register_status
7968 instead of regcache_valid_p.
7969 * aix-thread.c: Likewise.
7970 * i386gnu-nat.c: Likewise.
7972 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7975 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7976 touching TYPE_FIELD_ARTIFICIAL.
7978 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7980 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7983 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7985 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7986 selected, don't try iterating over the traceframe's blocks.
7987 (tfile_has_stack): If there's no traceframe selected, then there's
7989 (tfile_has_registers): If there's no traceframe selected, then
7990 there's no registers.
7992 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7994 * target.c (memory_xfer_partial): No need to restore shadows if we
7995 haven't read anything.
7997 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7999 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8000 and val_print_scalar_formatted.
8002 2011-01-27 Pedro Alves <pedro@codesourcery.com>
8004 * tracepoint.c (tfile_read): New.
8005 (tfile_open): Use it.
8006 (tfile_get_traceframe_address): Use it.
8007 (tfile_trace_find): Use it.
8008 (walk_blocks_callback_func): New typedef.
8009 (match_blocktype): New function.
8010 (traceframe_walk_blocks): New function.
8011 (traceframe_find_block_type): New function.
8012 (tfile_fetch_registers, tfile_xfer_partial)
8013 (tfile_get_trace_state_variable_value): Use
8014 traceframe_find_block_type and tfile_read.
8016 2011-01-26 Kevin Buettner <kevinb@redhat.com>
8018 * remote-mips.c: Add internationalization mark ups. Remove
8019 trailing \n from already marked up strings.
8021 2011-01-26 Tom Tromey <tromey@redhat.com>
8023 * python/py-prettyprint.c (print_string_repr): Clear
8024 'addressprint' option when calling val_print_string.
8025 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8026 option when calling val_print_string.
8028 2011-01-26 Tom Tromey <tromey@redhat.com>
8030 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8032 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8034 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8035 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8036 (gdb_py_long_as_ulongest): New defines.
8037 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8038 (gdb_py_int_as_long): Declare.
8039 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8040 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8041 (valpy_long): Add comment.
8042 * python/py-utils.c (get_addr_from_python): Use
8043 gdb_py_long_as_ulongest. Handle overflow properly.
8044 (gdb_py_object_from_longest): New function.
8045 (gdb_py_object_from_ulongest): Likewise.
8046 (gdb_py_int_as_long): Likewise.
8047 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8048 * python/py-symtab.c (salpy_get_pc): Use
8049 gdb_py_long_from_ulongest.
8050 (salpy_get_line): Use PyInt_FromLong.
8051 * python/py-param.c (set_parameter_value): Use
8053 * python/py-lazy-string.c (stpy_get_address): Use
8054 gdb_py_long_from_ulongest.
8055 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8056 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8057 * python/py-breakpoint.c (bppy_set_thread): Use
8059 (bppy_set_task): Likewise.
8060 (bppy_set_ignore_count): Likewise.
8061 (bppy_set_hit_count): Likewise.
8062 * python/py-block.c (blpy_get_start): Use
8063 gdb_py_object_from_ulongest.
8064 (blpy_get_end): Likewise.
8065 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8067 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8070 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8071 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8072 equality test for objfile, initialize addr_low if needed.
8074 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8076 * tui/tui-regs.c (tui_register_format): Remove dead code.
8078 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8080 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8081 instead of print_scalar_formatted.
8082 (print_scalar_formatted): Don't handle 's' format strings here,
8083 and add an assertion that we never see such format here.
8084 * valprint.h (val_print_scalar_formatted): Declare.
8085 * valprint.c (val_print_scalar_formatted): New.
8086 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8087 instead of print_scalar_formatted.
8088 * jv-valprint.c (java_val_print): Ditto.
8089 * p-valprint.c (pascal_val_print): Ditto.
8090 * ada-valprint.c (ada_val_print_1): Ditto.
8091 * f-valprint.c (f_val_print): Ditto.
8092 * infcmd.c (registers_info): Ditto.
8093 * m2-valprint.c (m2_val_print): Ditto.
8095 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8097 * m2-valprint.c (print_unbounded_array): Pass
8098 value_contents_for_printing rather than value_contents, to
8099 m2_print_array_contents. Also pass in the value.
8101 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8103 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8104 (save_gdb_index_command): Switch to .gdb_index version 4.
8106 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8108 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8109 than frame_register, and always pass a valid value to val_print.
8111 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8113 Centralize printing "<optimized out>".
8115 * valprint.h (val_print_optimized_out): Declare.
8116 * cp-valprint.c (cp_print_value_fields): Use
8117 val_print_optimized_out.
8118 * jv-valprint.c (java_print_value_fields): Ditto.
8119 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8120 * printcmd.c (print_formatted): Ditto.
8121 * valprint.c (valprint_check_validity): Ditto.
8122 (value_check_printable): Ditto.
8123 (val_print_optimized_out): New.
8125 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8127 * infcmd.c (default_print_registers_info): Allocate values so to
8128 never pass a NULL value to val_print.
8130 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8132 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8133 boolean. Make sure to always pass a value that matches the
8134 contents buffer to callees. Preserve `address' for following
8136 * value.c (value_contents_for_printing_const): New.
8137 (value_address): Constify value argument.
8138 * value.h (value_contents_for_printing_const): Declare.
8139 (value_address): Constify value argument.
8141 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8143 * regcache.c (struct regcache_descr): Rename
8144 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8145 and sizeof_cooked_register_valid_p to
8146 sizeof_cooked_register_status.
8147 (init_regcache_descr): Adjust.
8148 (struct regcache): Rename register_valid_p field to
8150 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8151 (do_cooked_read): Adjust.
8152 (regcache_valid_p): Rename to ...
8153 (regcache_register_status): ... this. Adjust.
8154 (regcache_invalidate): Adjust.
8155 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8157 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8158 as unavailable, not valid.
8159 (regcache_dump): Adjust.
8160 * regcache.h (enum register_status): New.
8161 (regcache_register_status): Declare.
8162 (regcache_invalidate): Delete declaration.
8163 * corelow.c (get_core_registers): Adjust.
8164 * tracepoint.c (tfile_fetch_registers): Adjust.
8165 * trad-frame.c (REG_VALUE): Rename to ...
8166 (TF_REG_VALUE): ... this.
8167 (REG_UNKNOWN): Rename to ...
8168 (TF_REG_UNKNOWN): ... this.
8169 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8170 * mi/mi-main.c (register_changed_p): Adjust.
8172 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8174 * regcache.c (struct regcache_descr): Remove outdated comment.
8175 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8177 (regcache_xmalloc): Rename to ...
8178 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8179 Allocate the regcache type accordingly.
8180 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8181 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8182 cooked registers, not raw.
8183 (regcache_dup_no_passthrough): Delete.
8184 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8185 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8186 mention obsolete write_register_bytes.
8187 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8189 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8191 Stop remote_read_bytes from handling partial reads itself.
8193 * remote-fileio.c: Include target.h.
8194 (remote_fileio_write_bytes): Delete.
8195 (remote_fileio_func_open, remote_fileio_func_write)
8196 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8198 (remote_fileio_func_stat): Use target_read_memory and
8199 target_write_memory.
8200 (remote_fileio_func_gettimeofday): Use target_write_memory.
8201 (remote_fileio_func_system): Use target_read_memory.
8202 * remote.c (remote_write_bytes): Make it static.
8203 (remote_read_bytes): Don't handle partial reads here.
8204 * remote.h (remote_read_bytes): Delete declaration.
8206 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8208 Simplify XML parsing a bit.
8210 * xml-support.h (gdb_xml_parse_quick): Declare.
8211 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8212 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8214 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8215 gdb_xml_create_parser_and_cleanup_1.
8216 (gdb_xml_parse_quick): New.
8217 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8218 * osdata.c (osdata_parse): Ditto.
8219 * remote.c (remote_threads_info): Ditto.
8220 * solib-target.c (solib_target_parse_libraries): Ditto.
8221 * xml-syscall.c (syscall_parse_xml): Ditto.
8222 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8224 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8226 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8227 with remote-mips.o added to gdb_target_obs.
8228 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8230 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8232 * ada-valprint.c (val_print_packed_array_elements): Pass the
8233 correct struct value to val_print.
8234 (ada_val_print_1): Ditto.
8236 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8238 Don't lose embedded_offset in printing routines throughout.
8240 * valprint.h (val_print_array_elements): Change prototype.
8241 * valprint.c (val_print_array_elements): Add `embedded_offset'
8242 parameter, and adjust to pass it down to val_print, while passing
8243 `valaddr' or `address' unmodified. Take embedded_offset into
8244 account when checking repetitions.
8245 * c-valprint.c (c_val_print): Pass embedded_offset to
8246 val_print_array_elements instead of adjusting `valaddr' and
8248 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8249 embedded_offset to val_print_array_elements instead of adjusting
8251 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8252 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8253 val_print_array_elements and pascal_object_print_value_fields
8254 instead of adjusting `valaddr'.
8255 (pascal_object_print_value_fields): Add `offset' parameter, and
8257 (pascal_object_print_value): Add `offset' parameter, and adjust to
8259 (pascal_object_print_static_field): Use
8260 value_contents_for_printing/value_embedded_offset, rather than
8262 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8263 parameter, and adjust to use it. Use
8264 value_contents_for_printing/value_embedded_offset, rather than
8266 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8267 (ada_val_print_array): Add `offset' parameter, and adjust to use
8269 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8270 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8271 Instead work with offsets. Use
8272 value_contents_for_printing/value_embedded_offset, rather than
8273 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8274 and use value_from_pointer to extract a target pointer, rather
8275 than value_from_longest.
8276 (print_variant_part): Add `offset' parameter. Replace
8277 `outer_valaddr' parameter by a new `outer_offset' parameter.
8278 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8279 (ada_value_print): Use
8280 value_contents_for_printing/value_embedded_offset, rather than
8282 (print_record): Add `offset' parameter, and adjust to pass it
8284 (print_field_values): Add `offset' parameter. Replace
8285 `outer_valaddr' parameter by a new `outer_offset' parameter.
8286 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8287 Use value_contents_for_printing/value_embedded_offset, rather than
8289 * d-valprint.c (dynamic_array_type): Use
8290 value_contents_for_printing/value_embedded_offset, rather than
8292 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8293 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8294 (java_print_value_fields): Take `offset' into account. Don't
8295 re-adjust `valaddr'. Instead pass down adjusted offsets.
8296 (java_val_print): Take `embedded_offset' into account. Pass it to
8297 java_print_value_fields.
8298 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8299 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8300 down adjusted offsets.
8301 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8302 (f_val_print): Take `embedded_offset' into account.
8304 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8306 * inflow.c: Include "gdbcmd.h".
8307 (interactive_mode): New static global, moved here from top.c.
8308 (show_interactive_mode): New function, moved here from top.c.
8309 use gdb_has_a_terminal instead of input_from_terminal_p to
8310 determine the current mode.
8311 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8313 (_initialize_inflow): Add the "set/show interactive-mode"
8314 commands. Moved here from top.c, after having adjusted slightly
8316 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8318 (input_from_terminal_p): Remove handling of "interactive-mode"
8319 setting, moved to infow.c.
8320 (init_main): Remove creation of the "set/show interactive-mode"
8321 commands, moved to inflow.c.
8323 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8325 * NEWS: Add entry for native ia64-hpux support.
8327 2011-01-19 Tom Tromey <tromey@redhat.com>
8330 * thread.c (free_thread): Free 'name'.
8331 (print_thread_info): Emit thread name. Change CLI output.
8332 (thread_name_command): New function.
8333 (do_captured_thread_select): Emit newline.
8334 (_initialize_thread): Register 'thread name' command.
8335 * target.h (struct target_ops) <to_thread_name>: New field.
8336 (target_thread_name): New macro.
8337 * target.c (update_current_target): Handle to_thread_name.
8338 * python/py-infthread.c (thpy_get_name): New function.
8339 (thpy_set_name): Likewise.
8340 (thread_object_getset): Add "name".
8341 * linux-nat.c (linux_nat_thread_name): New function.
8342 (linux_nat_add_target): Set to_thread_name.
8343 * gdbthread.h (struct thread_info) <name>: New field.
8345 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8347 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8348 (ada_val_print_1): Likewise.
8350 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8352 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8353 upper limit address is not greater than the function end address
8354 when the upper limit could not be computed using the debugging
8357 2011-01-17 Tom Tromey <tromey@redhat.com>
8359 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8361 * utils.c: Include gdb_regex.h.
8362 (do_regfree_cleanup): New function.
8363 (make_regfree_cleanup): Likewise.
8364 (get_regcomp_error): Likewise.
8365 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8367 2011-01-17 Tom Tromey <tromey@redhat.com>
8369 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8372 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8374 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8375 for internal variables.
8376 (last_was_structop): New static variable.
8377 (COMPLETE): New token.
8378 (field_exp): New rule to group all '.' suffix handling.
8379 Add mark_struct_expression calls when approriate to be able
8380 to correctly find fields for completion.
8381 (yylex): Adapt to handle field completion and set INTVAR when
8384 2011-01-14 Yao Qi <yao@codesourcery.com>
8386 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8387 save_reggroup, restore_reggroup and all_reggroup.
8389 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8391 * ada-valprint. (ada_printchar): Use the correct type length
8392 in call to ada_emit_char.
8393 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8395 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8397 * solib-som.h (hpux_major_release): Declare variable here.
8398 * solib-som.c: Remove <sys/utsname.h> header.
8399 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8400 (hpux_major_release): Make global, change default value to
8401 DEFAULT_HPUX_MAJOR_RELEASE.
8402 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8403 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8404 Add "solib-som.h" header.
8405 (set_hpux_major_release): New function.
8406 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8408 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8410 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8412 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8414 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8415 new-line at end of warning message.
8416 (ia64_hpux_store_register): Remove trailing new-line at end of
8418 * ia64-hpux-tdep.c: Rephrase comment.
8419 * solib-ia64-hpux.c (struct dld_info): Change type of field
8420 dld_flags from "long long" to ULONGEST.
8422 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8424 * target.h (deprecated_child_ops): Delete declaration.
8425 * target.c (deprecated_child_ops): Delete definition.
8427 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8429 * Makefile.in (hpux-thread.o): Delete rule.
8430 * configure.ac: Don't check for HPUX DCE threads support.
8431 * configure, config.in: Regenerate.
8432 * hppa-hpux-nat.c (child_suppress_run): Delete.
8433 (hppa_hpux_child_can_run): Delete.
8434 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8435 * hpux-thread.c: Delete.
8437 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8439 * hpux-thread.c (hpux_pid_to_str): Delete.
8441 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8443 * ada-valprint.c (ada_emit_char): Remove strange code.
8444 Check that c is <= UCHAR_MAX before passing it to isascii.
8445 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8447 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8449 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8450 to the case where instream is stdin.
8452 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8454 * ia64-tdep.h (struct regcache): Forward declare.
8455 (struct ia64_infcall_ops): New struct type.
8456 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8458 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8459 Renames ia64_find_global_pointer.
8460 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8461 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8462 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8464 (ia64_infcall_ops): New static global constant.
8465 (ia64_gdbarch_init): Set tdep->infcall_ops.
8466 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8467 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8468 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8469 (ia64_hpux_dummy_code): New static global constant.
8470 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8471 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8472 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8474 (ia64_hpux_infcall_ops): New static global constant.
8475 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8476 for inferior function calls to work properly on ia64-hpux.
8478 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8480 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8481 * ia64-tdep.h (struct frame_info): forward declaration.
8482 (struct gdbarch_tdep): Add field size_of_register_frame.
8483 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8484 to determine the size of the register frame.
8485 (ia64_size_of_register_frame): New function.
8486 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8487 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8488 (IA64_HPUX_UREG_REASON): New macro.
8489 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8491 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8492 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8493 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8496 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8498 Add support for ia64-hpux.
8499 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8500 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8502 * configure.host: Add handling for ia64-hpux hosts. Add associated
8504 * configure.tgt: Add handling for ia64-hpux targets.
8505 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8506 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8507 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8509 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8511 [ttrace] Compute thread list immediately after attach.
8512 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8514 (inf_ttrace_attach): Use it.
8516 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8518 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8519 if we could not determine the frame's function address. Instead,
8520 use the frame's PC, and then continue.
8522 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8524 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8525 not already defined.
8527 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8529 * ia64-tdep.c (ia64_struct_type_p): New function.
8530 (ia64_extract_return_value): Handle integral values that are
8531 less than 8 bytes long.
8532 (ia64_push_dummy_call): Likewise.
8534 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8536 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8537 floatformat_ia64_ext.
8538 (floatformat_ia64_ext_big): New static const.
8539 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8541 2011-01-12 Tom Tromey <tromey@redhat.com>
8543 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8545 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8546 (mi_cmd_thread_list_ids): Likewise.
8547 (mi_cmd_data_list_changed_registers): Likewise.
8548 (mi_cmd_data_list_register_values): Likewise.
8549 (mi_cmd_data_write_register_values): Likewise.
8550 (mi_cmd_data_evaluate_expression): Likewise.
8551 (mi_cmd_data_read_memory): Likewise.
8552 (mi_cmd_data_read_memory_bytes): Likewise.
8553 (mi_cmd_data_write_memory): Likewise.
8554 (mi_cmd_enable_timings): Likewise.
8555 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8556 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8557 (mi_cmd_var_delete): Likewise.
8558 (mi_cmd_var_set_format): Likewise.
8559 (mi_cmd_var_show_format): Likewise.
8560 (mi_cmd_var_info_num_children): Likewise.
8561 (mi_cmd_var_list_children): Likewise.
8562 (mi_cmd_var_info_type): Likewise.
8563 (mi_cmd_var_info_expression): Likewise.
8564 (mi_cmd_var_show_attributes): Likewise.
8565 (mi_cmd_var_assign): Likewise.
8566 (mi_cmd_var_update): Likewise.
8567 (mi_cmd_enable_pretty_printing): Likewise.
8568 (mi_cmd_var_set_update_range): Likewise.
8569 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8571 (mi_cmd_target_file_put): Likewise.
8572 (mi_cmd_target_file_delete): Likewise.
8573 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8575 (mi_cmd_stack_info_depth): Likewise.
8576 (mi_cmd_stack_list_locals): Likewise.
8577 (mi_cmd_stack_list_args): Likewise.
8578 (mi_cmd_stack_select_frame): Likewise.
8579 (mi_cmd_stack_select_frame): Likewise.
8580 (mi_cmd_stack_info_frame): Likewise.
8581 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8583 (mi_cmd_file_list_exec_source_files): Likewise.
8584 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8585 (mi_cmd_env_cd): Likewise.
8586 (mi_cmd_env_path): Likewise.
8587 (mi_cmd_env_dir): Likewise.
8588 (mi_cmd_inferior_tty_show): Likewise.
8589 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8590 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8591 (mi_cmd_break_watch): Likewise.
8593 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8595 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8596 (ppc_linux_insert_hw_breakpoint): Likewise.
8597 (ppc_linux_remove_hw_breakpoint): Likewise.
8598 (ppc_linux_insert_watchpoint): Likewise.
8600 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8601 Jan Kratochvil <jan.kratochvil@redhat.com>
8603 PR fortran/11104 and DWARF unbound arrays detection.
8604 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8605 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8606 unspecified upper bound.
8607 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8608 variables array_size_array, tmp_type and offset_item. New variable
8609 array. Remove call to f77_get_upperbound. New variables array_type
8610 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8611 the final call to deprecated_set_value_type.
8613 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8615 Make value allocations more lazy.
8616 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8617 instead of allocate_value and set_value_lazy when possible.
8618 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8619 instead of allocate_value and set_value_lazy.
8620 * findvar.c (value_of_register_lazy): Likewise.
8621 (read_var_value): Remove V preallocation, call just check_typedef in
8622 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8623 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8624 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8625 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8626 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8627 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8628 the end, remove set_value_lazy there.
8629 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8630 instead of allocate_value and set_value_lazy when possible.
8631 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8632 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8633 of allocate_value and set_value_lazy.
8634 (value_from_contents_and_address): Use allocate_value_lazy instead of
8635 allocate_value and set_value_lazy when possible.
8637 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8639 * disasm.c (dump_insns): Support dumping opcodes for MI.
8640 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8641 dumping of instruction opcodes.
8643 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8645 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8648 2011-01-11 Tom Tromey <tromey@redhat.com>
8650 * thread.c (do_captured_thread_select): Emit newline before
8653 2011-01-11 Michael Snyder <msnyder@vmware.com>
8655 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8656 * score-tdep.c: Ditto.
8657 * score-tdep.h: Ditto.
8658 * ser-base.c: Ditto.
8659 * ser-go32.c: Ditto.
8662 * ser-mingw.c: Ditto.
8663 * ser-pipe.c: Ditto.
8665 * ser-unix.c: Ditto.
8666 * sh64-tdep.c: Ditto.
8667 * shnbsd-nat.c: Ditto.
8671 * solib-darwin.c: Ditto.
8672 * solib-frv.c: Ditto.
8674 * solib-irix.c: Ditto.
8675 * solib-osf.c: Ditto.
8676 * solib-pa64.c: Ditto.
8677 * solib-som.c: Ditto.
8678 * solib-spu.c: Ditto.
8679 * solib-sunos.c: Ditto.
8680 * solib-svr4.c: Ditto.
8682 * sol-thread.c: Ditto.
8686 * sparc64-linux-tdep.c: Ditto.
8687 * sparc64-tdep.c: Ditto.
8688 * sparc-linux-nat.c: Ditto.
8689 * sparc-linux-tdep.c: Ditto.
8690 * sparc-sol2-nat.c: Ditto.
8691 * sparc-sol2-tdep.c: Ditto.
8692 * sparc-tdep.c: Ditto.
8693 * sparc-tdep.h: Ditto.
8694 * spu-tdep.c: Ditto.
8695 * stabsread.c: Ditto.
8696 * stabsread.h: Ditto.
8704 * target-descriptions.c: Ditto.
8705 * target-descriptions.h: Ditto.
8707 * target-memory.c: Ditto.
8708 * terminal.h: Ditto.
8711 * tracepoint.c: Ditto.
8712 * tracepoint.h: Ditto.
8713 * trad-frame.h: Ditto.
8714 * typeprint.c: Ditto.
8716 2011-01-11 Michael Snyder <msnyder@vmware.com>
8718 * ui-file.c: Comment cleanup, mostly periods and spaces.
8723 * v850-tdep.c: Ditto.
8724 * valarith.c: Ditto.
8726 * valprint.c: Ditto.
8727 * valprint.h: Ditto.
8732 * vax-tdep.c: Ditto.
8736 * windows-nat.c: Ditto.
8737 * windows-tdep.c: Ditto.
8738 * xcoffread.c: Ditto.
8739 * xcoffsolib.c: Ditto.
8740 * xml-support.c: Ditto.
8741 * xstormy16-tdep.c: Ditto.
8742 * xtensa-tdep.c: Ditto.
8743 * xtensa-tdep.h: Ditto.
8745 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8747 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8748 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8750 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8751 Thiago Jung Bauermann <bauerman@br.ibm.com>
8753 Implement support for PowerPC BookE ranged watchpoints.
8755 (struct breakpoint_ops) <resources_needed>: New method.
8756 Initialize to NULL in all existing breakpoint_ops instances.
8757 (struct breakpoint) <exact>: New field.
8758 (target_exact_watchpoints): Declare external global.
8759 * breakpoint.c (target_exact_watchpoints): New global flag.
8760 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8761 b->enable_state to bp_enabled before calling
8762 hw_watchpoint_used_count.
8763 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8764 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8766 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8767 if the watchpoint is exact.
8768 (resources_needed_watchpoint): New function.
8769 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8770 (watch_command_1): Set b->exact if the user asked for an exact
8771 watchpoint and one can be set.
8772 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8773 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8774 the user asks for an exact watchpoint and one can be set. Return
8775 number of needed debug registers to watch the expression.
8776 * gdbtypes.c (is_scalar_type): New function, based on
8777 valprint.c:scalar_type_p.
8778 (is_scalar_type_recursive): New function.
8779 * gdbtypes.h (is_scalar_type_recursive): Declare.
8780 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8781 handle regions when ranged watchpoints are available.
8782 (create_watchpoint_request): New function.
8783 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8784 create_watchpoint_request.
8785 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8786 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8787 `set powerpc' and `show powerpc' commands.
8788 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8789 Mention documentation comment in the target macro.
8790 (target_region_ok_for_hw_watchpoint): Document return value.
8792 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8794 * breakpoint.c (update_watchpoint): Decide on using a software or
8795 hardware watchpoint after the bp_locations are created.
8797 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8799 Convert hardware watchpoints to use breakpoint_ops.
8800 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8801 <insert_location>: ... this. Return int instead of void.
8802 Accept pointer to struct bp_location instead of pointer to
8803 struct breakpoint. Adapt all implementations.
8804 (breakpoint_ops) <remove>: Rename to...
8805 <remove_location>: ... this. Accept pointer to struct bp_location
8806 instead of pointer to struct breakpoint. Adapt all implementations.
8807 * breakpoint.c (insert_catchpoint): Delete function.
8808 (insert_bp_location): Call the watchpoint or catchpoint's
8809 breakpoint_ops.insert method.
8810 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8811 breakpoint_ops.remove method.
8812 (insert_watchpoint, remove_watchpoint): New functions.
8813 (watchpoint_breakpoint_ops): New structure.
8814 (watch_command_1): Initialize the OPS field.
8815 * inf-child.c (inf_child_insert_fork_catchpoint)
8816 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8817 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8818 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8820 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8821 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8822 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8823 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8824 * target.c (update_current_target): Change default implementation of
8825 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8826 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8827 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8828 to_set_syscall_catchpoint to return_one.
8829 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8830 (debug_to_insert_exec_catchpoint): Report return value.
8831 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8832 (to_insert_exec_catchpoint): Change declaration to return int instead
8835 2011-01-11 Michael Snyder <msnyder@vmware.com>
8837 * arm-tdep.c: Internationalization.
8840 * fork-child.c: Ditto.
8841 * nto-procfs.c: Ditto.
8842 * ppc-sysv-tdep.c: Ditto.
8844 * remote-mips.c: Ditto.
8846 * rs6000-nat.c: Ditto.
8847 * rs6000-tdep.c: Ditto.
8851 * xml-support.c: Ditto.
8852 * mi/mi-cmd-break.c: Ditto.
8853 * mi/mi-cmd-var.c: Ditto.
8854 * mi/mi-interp.c: Ditto.
8855 * mi/mi-main.c: Ditto.
8857 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8859 * remote-sim.c (gdbsim_store_register): Update API to
8860 sim_store_register to check more error conditions.
8862 2011-01-10 Michael Snyder <msnyder@vmware.com>
8864 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8865 * nto-tdep.c: Ditto.
8866 * nto-tdep.h: Ditto.
8867 * objc-exp.y: Ditto.
8868 * objc-lang.c: Ditto.
8869 * objfiles.c: Ditto.
8870 * objfiles.h: Ditto.
8871 * observer.c: Ditto.
8872 * opencl-lang.c: Ditto.
8875 * parser-defs.h: Ditto.
8878 * posix-hdep.c: Ditto.
8879 * ppcbug-rom.c: Ditto.
8880 * ppc-linux-nat.c: Ditto.
8881 * ppc-linux-tdep.c: Ditto.
8882 * ppc-linux-tdep.h: Ditto.
8883 * ppcnbsd-tdep.c: Ditto.
8884 * ppcobsd-tdep.c: Ditto.
8885 * ppcobsd-tdep.h: Ditto.
8886 * ppc-sysv-tdep.c: Ditto.
8887 * ppc-tdep.h: Ditto.
8888 * printcmd.c: Ditto.
8889 * proc-abi.c: Ditto.
8890 * proc-flags.c: Ditto.
8892 * proc-utils.h: Ditto.
8893 * progspace.h: Ditto.
8894 * prologue-value.c: Ditto.
8895 * prologue-value.h: Ditto.
8896 * psympriv.h: Ditto.
8898 * p-typeprint.c: Ditto.
8899 * p-valprint.c: Ditto.
8900 * ravenscar-sparc-thread.c: Ditto.
8901 * ravenscar-thread.c: Ditto.
8902 * ravenscar-thread.h: Ditto.
8904 * regcache.c: Ditto.
8905 * regcache.h: Ditto.
8907 * remote-fileio.c: Ditto.
8908 * remote-fileio.h: Ditto.
8910 * remote-m32r-sdi.c: Ditto.
8911 * remote-mips.c: Ditto.
8912 * remote-sim.c: Ditto.
8913 * rs6000-aix-tdep.c: Ditto.
8914 * rs6000-nat.c: Ditto.
8915 * rs6000-tdep.c: Ditto.
8917 2011-01-10 Michael Snyder <msnyder@vmware.com>
8919 * charset.c (validate): Internationalization.
8920 * coffread.c (read_one_sym): Ditto.
8921 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8922 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8923 * inflow.c (new_tty): Ditto.
8924 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8925 * m32c-tdep.c (m32c_return_value): Ditto.
8926 * mep-tdep.c (mep_store_return_value): Ditto.
8927 * score-tdep.c (score7_fetch_insn): Ditto.
8928 * ser-mingw.c (pipe_windows_open): Ditto.
8929 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8930 * spu-tdep.c (spu_register_type): Ditto.
8931 * tracepoint.c (trace_find_command): Ditto.
8932 * valarith.c (value_pos): Ditto.
8934 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8936 * ada-valprint.c (printstr): Minor comment reformatting.
8938 2011-01-08 Michael Snyder <msnyder@vmware.com>
8940 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8943 2011-01-08 Michael Snyder <msnyder@vmware.com>
8945 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8946 * hppa-hpux-tdep.c: Ditto.
8947 * hppa-linux-nat.c: Ditto.
8948 * hppa-linux-tdep.c: Ditto.
8949 * hppanbsd-tdep.c: Ditto.
8950 * hppa-tdep.c: Ditto.
8951 * hppa-tdep.h: Ditto.
8952 * hpux-thread.c: Ditto.
8953 * i386-cygwin-tdep.c: Ditto.
8954 * i386-darwin-nat.c: Ditto.
8955 * i386gnu-nat.c: Ditto.
8956 * i386-linux-nat.c: Ditto.
8957 * i386-linux-tdep.c: Ditto.
8958 * i386-nat.c: Ditto.
8959 * i386-nat.h: Ditto.
8960 * i386nbsd-tdep.c: Ditto.
8961 * i386-sol2-nat.c: Ditto.
8962 * i386-stub.c: Ditto.
8963 * i386-tdep.c: Ditto.
8964 * i386-tdep.h: Ditto.
8965 * i387-tdep.c: Ditto.
8966 * ia64-linux-nat.c: Ditto.
8967 * ia64-linux-tdep.c: Ditto.
8968 * ia64-tdep.c: Ditto.
8972 * inferior.c: Ditto.
8973 * inferior.h: Ditto.
8979 * iq2000-tdep.c: Ditto.
8980 * irix5-nat.c: Ditto.
8986 * jv-typeprint.c: Ditto.
8987 * jv-valprint.c: Ditto.
8988 * language.c: Ditto.
8989 * language.h: Ditto.
8990 * linespec.c: Ditto.
8991 * linux-fork.c: Ditto.
8992 * linux-nat.c: Ditto.
8993 * linux-thread-db.c: Ditto.
8994 * lm32-tdep.c: Ditto.
8996 2011-01-08 Michael Snyder <msnyder@vmware.com>
8998 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9000 * m2-typeprint.c: Ditto.
9001 * m2-valprint.c: Ditto.
9002 * m32c-tdep.c: Ditto.
9003 * m32r-linux-nat.c: Ditto.
9004 * m32r-rom.c: Ditto.
9005 * m32r-tdep.c: Ditto.
9006 * m32r-tdep.h: Ditto.
9007 * m68hc11-tdep.c: Ditto.
9008 * m58klinux-nat.c: Ditto.
9009 * m68k-tdep.c: Ditto.
9010 * m88k-tdep.c: Ditto.
9011 * m88k-tdep.h: Ditto.
9012 * machoread.c: Ditto.
9013 * macrocmd.c: Ditto.
9014 * macroexp.c: Ditto.
9015 * macrotab.c: Ditto.
9018 * mdebugread.c: Ditto.
9019 * mdebugread.h: Ditto.
9022 * memory-map.h: Ditto.
9023 * mep-tdep.c: Ditto.
9024 * microblaze-rom.c: Ditto.
9025 * microblaze-tdep.c: Ditto.
9027 * mips-irix-tdep.c: Ditto.
9028 * mips-linux-nat.c: Ditto.
9029 * mips-linux-tdep.c: Ditto.
9030 * mips-linux-tdep.h: Ditto.
9031 * mipsnbsd-nat.c: Ditto.
9032 * mipsnbsd-tdep.c: Ditto.
9033 * mipsread.c: Ditto.
9034 * mips-tdep.c: Ditto.
9035 * mips-tdep.h: Ditto.
9036 * mn10300-linux-tdep.c: Ditto.
9037 * mn10300-tdep.c: Ditto.
9038 * mn10300-tdep.h: Ditto.
9041 * moxie-tdep.c: Ditto.
9042 * moxie-tdep.h: Ditto.
9045 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9047 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9049 2011-01-08 Robert Millan <rmh@gnu.org>
9051 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9053 2011-01-07 Michael Snyder <msnyder@vmware.com>
9055 * charset.c (_initialize_charset): Fix typo in string.
9057 2011-01-07 Michael Snyder <msnyder@vmware.com>
9059 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9061 * tui/tui-layout.c (tui_set_layout_for_display_command):
9062 Split line so that operator goes to beginning of line.
9063 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9064 assignment out of if statement.
9066 2011-01-07 Michael Snyder <msnyder@vmware.com>
9068 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9069 * ada-lang.h: Ditto.
9070 * ada-tasks.c: Ditto.
9071 * ada-valprint.c: Ditto.
9072 * aix-threads.c: Ditto.
9073 * alpha-linux-nat.c: Ditto.
9074 * alpha-linux-tdep.c: Ditto.
9075 * alpha-mdebug-tdep.c: Ditto.
9076 * alpha-nat.c: Ditto.
9077 * alpha-osf1-tdep.c: Ditto.
9078 * alpha-tdep.c: Ditto.
9079 * alphabsd-nat.c: Ditto.
9080 * alphabsd-tdep.c: Ditto.
9081 * amd64-darwin-tdep.c: Ditto.
9082 * amd64-linux-nat.c: Ditto.
9083 * amd64-linux-tdep.c: Ditto.
9084 * amd64-sol2-tdep.c: Ditto.
9085 * amd64-tdep.c: Ditto.
9086 * amd64-fbsd-tdep.c: Ditto.
9087 * amd64-nbsd-tdep.c: Ditto.
9088 * amd64-obsd-tdep.c: Ditto.
9089 * amd64-linux-nat.c: Ditto.
9090 * amd64-linux-tdep.c: Ditto.
9091 * arm-tdep.c: Ditto.
9092 * arm-tdep.h: Ditto.
9093 * armnbsd-nat.c: Ditto.
9094 * avr-tdep.c: Ditto.
9095 * bfin-tdep.c: Ditto.
9097 * c-typeprintc: Ditto.
9098 * c-valprint.c: Ditto.
9099 * coff-pe-read.h: Ditto.
9100 * coffreead.c: Ditto.
9101 * cris-tdep.c: Ditto.
9103 * darwin-nat-info.c: Ditto.
9104 * darwin-nat.c: Ditto.
9105 * dbug-rom.c: Ditto.
9109 * dec-thread.c: Ditto.
9111 * demangle.c: Ditto.
9112 * dicos-tdep.c: Ditto.
9113 * dictionary.c: Ditto.
9114 * dictionary.h: Ditto.
9115 * dink32-rom.c: Ditto.
9117 * doublest.c: Ditto.
9119 * dummy-frame.c: Ditto.
9120 * dwarf2-frame.c: Ditto.
9121 * dwarf2expr.c: Ditto.
9122 * dwarf2loc.c: Ditto.
9123 * dwarf2read.c: Ditto.
9127 * event-top.h: Ditto.
9128 * exceptions.c: Ditto.
9129 * exceptions.h: Ditto.
9131 * expprint.c: Ditto.
9132 * expression.h: Ditto.
9136 * f-typeprint.c: Ditto.
9137 * f-valprint.c: Ditto.
9138 * fbsd-nat.c: Ditto.
9140 * fork-child.c: Ditto.
9143 * frv-linux-tdep.c: Ditto.
9144 * frv-tdep.c: Ditto.
9146 * gdb-stabs.h: Ditto.
9147 * gdb_assert.h: Ditto.
9148 * gdb_string.h: Ditto.
9149 * gdb_thread_db.h: Ditto.
9150 * gdb_wait.h: Ditto.
9151 * gdbarch.sh: Ditto.
9153 * gdbthread.h: Ditto.
9154 * gdbtypes.c: Ditto.
9155 * gdbtypes.h: Ditto.
9158 * gnu-v2-abi.c: Ditto.
9159 * gnu-v3-abi.c: Ditto.
9160 * go32-nat.c: Ditto.
9161 * gdbarch.c: Regenerate.
9162 * gdbarch.h: Regenerate.
9164 2011-01-07 Michael Snyder <msnyder@vmware.com>
9166 * ax-gdb.c: Adjust some long output strings.
9167 * breakpoint.c: Ditto.
9172 * linux-nat.c: Ditto.
9173 * solib-pa64.c: Ditto.
9174 * solib-som.c: Ditto.
9176 2011-01-06 Tom Tromey <tromey@redhat.com>
9180 * python/python.c (GdbMethods): Add "newest_frame" method.
9181 * python/python-internal.h (gdbpy_newest_frame): Declare.
9182 * python/py-frame.c (gdbpy_newest_frame): New function.
9184 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9186 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9187 * jit.c (jit_debug): New variable.
9188 (show_jit_debug): New function.
9189 (struct target_buffer): Use ULONGEST.
9190 (bfd_open_from_target_memory): Likewise.
9191 (jit_register_code, jit_inferior_init): Add debug output.
9192 (_initialize_jit): Register "debug jit" command.
9194 2011-01-06 Tom Tromey <tromey@redhat.com>
9196 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9197 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9200 2011-01-06 Tom Tromey <tromey@redhat.com>
9202 * python/py-frame.c (frapy_block): Use get_frame_block.
9204 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9206 Do not stop on SIGPRIO signals by default
9207 * infrun.c (_initialize_infrun): Unset signal_stop and
9208 signal_print for TARGET_SIGNAL_PRIO.
9210 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9212 * ada-tasks.c: Fix style violation in comment.
9214 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9216 * linespec.c (decode_compound, find_method): Remove trailing \n
9217 at end of error string.
9218 * solib-irix.c (irix_current_sos): Likewise.
9219 * varobj.c (uninstall_variable): Likewise.
9221 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9223 * copyright.py: New script.
9224 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9225 Launch emacs without exec'ing. Call copyright.py afterwards.
9227 2011-01-05 Michael Snyder <msnyder@vmware.com>
9229 * addrmap.c: Shorten lines of >= 80 columns.
9230 * arch-utils.c: Ditto.
9231 * arch-utils.h: Ditto.
9233 * ax-general.c: Ditto.
9235 * blockframe.c: Ditto.
9236 * breakpoint.c: Ditto.
9237 * buildsym.c: Ditto.
9239 * c-typeprint.c: Ditto.
9241 * coffread.c: Ditto.
9245 * cp-namespace.c: Ditto.
9246 * cp-support.c: Ditto.
9247 * dbug-rom.c: Ditto.
9252 * dictionary.c: Ditto.
9254 * doublest.c: Ditto.
9255 * dwarf2-frame.c: Ditto.
9256 * dwarf2expr.c: Ditto.
9257 * dwarf2loc.c: Ditto.
9258 * dwarf2read.c: Ditto.
9261 * event-loop.c: Ditto.
9262 * event-loop.h: Ditto.
9263 * exceptions.h: Ditto.
9265 * expprint.c: Ditto.
9266 * expression.h: Ditto.
9268 * f-valprint.c: Ditto.
9270 * frame-base.c: Ditto.
9271 * frame-unwind.c: Ditto.
9272 * frame-unwind.h: Ditto.
9276 * gdb-stabs.h: Ditto.
9277 * gdb_assert.h: Ditto.
9278 * gdb_dirent.h: Ditto.
9279 * gdb_obstack.h: Ditto.
9281 * gdbtypes.c: Ditto.
9282 * gdbtypes.h: Ditto.
9283 * inf-ttrace.c: Ditto.
9288 * inline-frame.h: Ditto.
9289 * language.c: Ditto.
9290 * language.h: Ditto.
9291 * libunwind-frame.c: Ditto.
9292 * libunwind-frame.h: Ditto.
9293 * linespec.c: Ditto.
9294 * linux-nat.c: Ditto.
9295 * linux-nat.h: Ditto.
9296 * linux-thread-db.c: Ditto.
9297 * machoread.c: Ditto.
9298 * macroexp.c: Ditto.
9299 * macrotab.c: Ditto.
9302 * mdebugread.c: Ditto.
9307 * objfiles.c: Ditto.
9308 * objfiles.h: Ditto.
9310 * p-typeprint.c: Ditto.
9311 * p-valprint.c: Ditto.
9313 * printcmd.c: Ditto.
9314 * proc-events.c: Ditto.
9316 * progspace.c: Ditto.
9317 * progspace.h: Ditto.
9318 * psympriv.h: Ditto.
9321 * regcache.c: Ditto.
9322 * regcache.h: Ditto.
9323 * remote-fileio.c: Ditto.
9325 * ser-mingw.c: Ditto.
9327 * ser-unix.c: Ditto.
9330 * solib-frv.c: Ditto.
9331 * solib-irix.c: Ditto.
9332 * solib-osf.c: Ditto.
9333 * solib-pa64.c: Ditto.
9334 * solib-som.c: Ditto.
9335 * solib-sunos.c: Ditto.
9336 * solib-svr4.c: Ditto.
9337 * solib-target.c: Ditto.
9341 * stabsread.c: Ditto.
9342 * stabsread.c: Ditto.
9345 * symfile-mem.c: Ditto.
9351 * target-descriptions.c: Ditto.
9352 * target-memory.c: Ditto.
9355 * terminal.h: Ditto.
9358 * tracepoint.c: Ditto.
9359 * tracepoint.h: Ditto.
9363 * user-regs.c: Ditto.
9364 * user-regs.h: Ditto.
9366 * valarith.c: Ditto.
9368 * valprint.c: Ditto.
9369 * valprint.h: Ditto.
9374 * xcoffread.c: Ditto.
9375 * xcoffsolib.c: Ditto.
9376 * xcoffsolib.h: Ditto.
9377 * xml-syscall.c: Ditto.
9378 * xml-tdesc.c: Ditto.
9380 2011-01-05 Michael Snyder <msnyder@vmware.com>
9382 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9383 * cli/cli-decode.c: Ditto.
9384 * cli/cli-dump.c: Ditto.
9385 * cli/cli-logging.c: Ditto.
9386 * cli/cli-script.c: Ditto.
9387 * cli/cli-setshow.c: Ditto.
9388 * common/signals.c: Ditto.
9389 * mi/mi-cmd-break.c: Ditto.
9390 * mi/mi-cmd-disas.c: Ditto.
9391 * mi/mi-cmd-stack.c: Ditto.
9392 * mi/mi-cmd-var.c: Ditto.
9393 * mi/mi-cmds.c: Ditto.
9394 * mi/mi-common.h: Ditto.
9395 * mi/mi-console.c: Ditto.
9396 * mi/mi-interp.c: Ditto.
9397 * mi/mi-main.c: Ditto.
9398 * osf-share/cma_attr.c: Ditto.
9399 * osf-share/cma_deb_core.h: Ditto.
9400 * osf-share/cma_debug_client.h: Ditto.
9401 * osf-share/cma_handle.h: Ditto.
9402 * osf-share/cma_mutex.h: Ditto.
9403 * osf-share/cma_stack_int.h: Ditto.
9404 * osf-share/cma_tcb_defs.h: Ditto.
9405 * python/py-auto-load.c: Ditto.
9406 * python/py-breakpoint.c: Ditto.
9407 * python/py-cmd.c: Ditto.
9408 * python/py-frame.c: Ditto.
9409 * python/py-objfile.c: Ditto.
9410 * python/py-param.c: Ditto.
9411 * python/py-progspace.c: Ditto.
9412 * python/py-symbol.c: Ditto.
9413 * python/py-value.c: Ditto.
9414 * python/python-internal.h: Ditto.
9415 * python/python.c: Ditto.
9416 * tui/tui-data.c: Ditto.
9417 * tui/tui-disasm.c: Ditto.
9418 * tui/tui-hooks.c: Ditto.
9419 * tui/tui-io.c: Ditto.
9420 * tui/tui-layout.c: Ditto.
9421 * tui/tui-regs.c: Ditto.
9422 * tui/tui-source.c: Ditto.
9423 * tui/tui-stack.c: Ditto.
9424 * tui/tui-win.c: Ditto.
9425 * tui/tui-windata.c: Ditto.
9426 * tui/tui-winsource.c: Ditto.
9428 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9430 * configure.ac, gdb.1: Copyright year update.
9432 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9435 this_pc_in_block, morestack_msym and morestack_name. Check for
9436 "__morestack" minimal symbol there.
9438 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9440 * symfile.c (find_sym_fns): Add call to dont_repeat.
9442 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9444 Copyright year update in most files (performed by copyright.sh).
9446 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9448 * top.c (print_gdb_version): Update copyright year in version output.
9450 For older changes see ChangeLog-2010.
9456 version-control: never