1 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
4 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
5 (ada_tasks_inferior_data_handle): New static global.
6 (get_ada_tasks_inferior_data): New function.
7 (ada_get_task_number, get_task_number_from_id, valid_task_id)
8 (ada_get_environment_task, iterate_over_live_ada_tasks)
9 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
11 (ada_set_current_inferior_known_tasks_addr): New function.
12 (read_known_tasks, ada_build_task_list, short_task_info)
13 (info_tasks, info_task, info_tasks_command, task_command_1)
14 (task_command, ada_task_list_changed): Adjust.
15 (ada_tasks_invalidate_inferior_data): New function.
16 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
17 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
18 * ada-lang.h (struct inferior): Add declaration.
19 (ada_task_list_changed): Update profile.
20 * remote-wtx-pd.c: #include "inferior.h".
21 (switch_to_pd_internal): Update call to ada_task_list_changed.
23 2011-09-16 Joel Brobecker <brobecker@adacore.com>
25 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
26 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
27 (atcb_fieldno): Delete these static globals.
28 (struct ada_tasks_pspace_data): New struct.
29 (ada_tasks_pspace_data_handle): New static global.
30 (get_ada_tasks_pspace_data): New function.
31 (ada_tasks_invalidate_pspace_data): New function.
32 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
33 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
34 (_initialize_tasks): Create this module's per-progspace
37 2011-09-16 Joel Brobecker <brobecker@adacore.com>
39 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
41 2011-09-16 Tristan Gingold <gingold@adacore.com>
43 * fork-child.c (fork_inferior): Update comment. Use alloca
44 instead of xmalloc for argv. Move len and shell_command
45 declarations in the block where they are used.
46 Only call execvp. Factorize failure code.
48 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
51 * parse.c (write_exp_elt): Change argument to pass a pointer of union
52 `exp_element' instead of an element of the same and make the function
54 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
55 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
56 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
57 Change argument of `write_exp_elt' function call.
58 Remove extra spaces from comments.
59 * parser-defs.h (write_exp_elt): Remove prototype.
61 2011-09-15 Paul Koning <paul_koning@dell.com>
63 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
64 count of item appended to list.
65 * python/py-type.c (typy_fields): Likewise.
67 2011-09-15 Paul Koning <paul_koning@dell.com>
69 * MAINTAINERS (Write After Approval): Add myself to the list.
71 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
74 * linux-fork.c (checkpoint_command): Disallow checkpointing of
75 processes with multiple threads.
76 (inf_has_multiple_thread_cb): New function.
77 (inf_has_multiple_threads): New function.
79 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
81 PR Python/12692 Add gdb.selected_inferior() to Python interface.
82 * python/py-inferior.c (GdbMethods): New Python method definition.
84 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
86 Handle multiple breakpoint hits in Python interface:
87 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
88 variable to breakpoints.
89 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
90 bps instead of single breakpoint. Fix some space typos.
91 * python/py-stopevent.c (create_breakpoint_event_object): Rename
92 variable to breakpoints.
94 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
96 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
97 note if the breakpoint is internal.
99 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
101 * MAINTAINERS (Right After Approval): Add myself to the list
103 2011-09-14 Pedro Alves <pedro@codesourcery.com>
105 * infrun.c (prepare_for_detach, wait_for_inferior)
106 (fetch_inferior_event): Don't flush the register cache.
107 * remote.c (struct stop_reply) <regcache>: Add comment.
109 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
111 Remove excessive DWARF expressions memory duplication.
112 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
114 (indirect_pieced_value): Remove variable result. Remove variable
115 back_to and its use for baton.data.
116 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
118 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
119 Update the function comment.
121 2011-09-13 Pedro Alves <pedro@codesourcery.com>
123 * inferior.h (ALL_INFERIORS): New.
124 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
125 for a stopped thread.
126 (thread_db_find_new_threads): Look for threads in all inferiors.
128 2011-09-13 Pedro Alves <pedro@codesourcery.com>
130 * breakpoint.c (update_watchpoint): Handle the case of the
131 watchpoint to update not being in the breakpoint list yet.
132 (hw_watchpoint_use_count): New, factored out from
133 hw_watchpoint_used_count.
134 (hw_watchpoint_used_count): Rename to ...
135 (hw_watchpoint_used_count_others): ... this. Add `except'
136 parameter. Don't count resources of `except'. Use
137 hw_watchpoint_use_count.
139 2011-09-13 Pedro Alves <pedro@codesourcery.com>
141 * gdbthread.h (enum thread_state): Moved here.
142 (struct thread_info): Rename `executing_' field to `executing' and
144 * thread.c (enum thread_state): Moved to gdbthread.h.
145 (new_thread, add_thread_silent, delete_thread_1)
146 (any_live_thread_of_process, thread_alive, set_running)
147 (set_running, is_thread_state, any_running, is_executing)
148 (set_executing, finish_thread_state, print_thread_info)
149 (do_captured_thread_select): Adjust.
151 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
153 Fix compatibility with gcc < 4.3 and non-gcc compilers.
154 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
156 2011-09-12 Pedro Alves <pedro@codesourcery.com>
157 Matt Rice <ratmice@gmail.com>
161 * interps.c (struct interp) <interpreter_out>: Delete field.
162 (interp_new): Remove the data and uiout parameters and adjust.
163 (interp_set): Only set the current_uiout from the interpreter's
164 uiout after initializing the interpreter. Adjust call to
166 (interp_ui_out): Adjust to call procs->ui_out_proc.
167 (interp_data, interp_name): New.
168 * interps.h (interp_init_ftype): Add `self' parameter.
169 (interp_ui_out_ftype): New typedef.
170 (struct interp_procs) <ui_out_proc>: New method pointer.
171 (interp_new): Remove the data and uiout parameters.
172 (interp_data, interp_name): Declare.
173 * tui/tui-interp.c (tui_init): Adjust prototype.
175 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
176 tui_out here. Adjust call to interp_new.
177 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
178 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
180 (_initialize_cli_interp): Install it. Adjust call to interp_new.
181 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
182 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
183 Initialize mi->uiout depending on the mi_version as extracted from
184 the interpreter's name.
186 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
187 interp_new. Don't allocate the ui_out's of the interpreters here.
189 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
191 * solib.c (solib_used): New function.
192 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
193 by another so_list object before freeing it.
195 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
198 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
201 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
204 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
205 (amd64_skip_xmm_prologue): ... this new function. Describe its
206 parameters. No longer use amd64_prologue_line_bug.
207 * defs.h (producer_is_gcc_ge_4): New declaration.
208 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
209 (process_full_comp_unit): Update its caller. Remove
210 amd64_prologue_line_bug initialization.
211 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
212 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
214 2011-09-09 Pedro Alves <pedro@codesourcery.com>
216 * linux-nat.h (enum resume_kind): New.
217 (struct lwp_info) <last_resume_kind>: New field.
218 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
219 resume_stop on the new lwp.
220 (add_lwp): Set last_resume_kind as resume_continue by default.
221 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
222 (resume_lwp): New, factored out from resume_callback. Also check
223 for pending status in lp->waitstatus.
224 (resume_callback): Reimplement.
225 (resume_clear_callback): Set last_resume_kind as resume_stop.
226 (resume_set_callback): Set last_resume_kind as resume_continue.
227 (linux_nat_resume, linux_handle_extended_wait): Set
229 (running_callback): Also check lp->waitstatus for pending events.
230 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
232 (stop_and_resume_callback): Don't re-resume if the core wanted the
233 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
234 using an invalidated pointer.
235 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
236 SIGSTOPs if the core wanted the LWP to stop.
237 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
238 wanted the lwp to stop. If the core wanted the lwp to stop, and
239 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
240 of TARGET_SIGNAL_STOP.
241 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
242 here. Instead, signal the lwp, and set the last_resume_kind to
245 2011-09-09 Pedro Alves <pedro@codesourcery.com>
247 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
248 -1 (error), if the lwp exits right after attaching.
250 2011-09-08 Doug Evans <dje@google.com>
252 * py-cmd.c: Some minor formatting fixes.
253 (gdbpy_parse_command_name): Rename text arg to name, make const.
255 * python-internal.h (gdbpy_parse_command_name): Update.
257 * cli/cli-decode.c (add_cmd): Add comment.
259 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
262 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
263 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
264 * dwarf2read.c (process_full_comp_unit): Initialize
265 amd64_prologue_line_bug.
266 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
268 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
270 Fix TUI screen corruption.
271 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
274 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
276 * findvar.c (read_var_value): Never return NULL, throw an error
277 instead. Update the function comment. State symbol name in the error
279 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
281 * stack.c (print_frame_args): Likewise.
282 * valops.c (value_of_variable): Likewise.
284 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
286 * stack.c (print_frame_args): New variable except. Wrap
287 read_var_value and common_val_print into TRY_CATCH.
289 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
291 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
292 caller to value_of_this.
293 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
295 * valops.c (value_of_this): Remove parameter complain and variable ret.
296 Update function comment. Never return NULL by this code.
297 (value_of_this_silent): New function.
298 * value.h (value_of_this): Remove parameter complain.
299 (value_of_this_silent): New declaration.
301 2011-09-07 Yao Qi <yao@codesourcery.com>
303 * gdbthread.h (struct thread_info): Remove fields
304 `stepping_through_solib_after_catch' and
305 `stepping_through_solib_catchpoints'.
306 * infrun.c (init_thread_stepping_state): Update.
307 (process_event_stop_test, currently_stepping): Update.
308 (currently_stepping_or_nexting_callback): Update.
310 2011-09-07 Yao Qi <yao@codesourcery.com>
312 * gdbthread.h (struct thread_info): Comment on field
313 `step_after_step_resume_breakpoint'.
315 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
317 * remote.c (remote_console_output): Reindent.
319 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
321 * frame.c (has_stack_frames): Check for currently selected
324 2011-09-06 Pedro Alves <pedro@codesourcery.com>
326 * event-top.h (MAXPROMPTS, struct prompts): Delete.
327 (set_async_annotation_level, set_async_prompt, pop_prompt)
328 (push_prompt, new_async_prompt): Delete declarations.
329 * top.h (get_prompt, set_prompt): Change prototype.
330 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
332 * top.c (command_loop):
333 (top_prompt): New global.
334 (get_prefix, set_prefix, get_suffix, ): Delete.
335 (get_prompt, set_prompt): Rewrite.
336 (show_new_async_prompt): Rename to ...
337 (show_prompt): ... this.
338 (init_main): Adjust. Don't handle --annotate=2 here.
339 * event-top.c (new_async_prompt): Delete.
340 (the_prompts): Delete.
341 (more_to_come): Make static.
342 (display_gdb_prompt): Use top_level_prompt() to compute the top
343 level prompt, and don't notify the before_prompt observers
344 directly here. Always trick readline into not trying to display
345 the prompt if sync_execution and displaying the primary prompt.
346 If displaying a local/secondary prompt, always show it, even if
347 sync_execution is set.
348 (change_annotation_level): Delete.
349 (top_level_prompt): New, based on change_annotation_level.
350 (push_prompt, pop_prompt): Delete.
351 (async_disable_stdin): No longer pushes prompt.
352 (command_line_handler): No longer pushes or pops prompt. If more
353 input is expected, call display_gdb_prompt with an explicit empty
355 (async_stop_sig): Adjust.
356 (set_async_annotation_level, set_async_prompt): Delete.
357 * python/python.c (before_prompt_hook): Adjust.
359 2011-09-05 Pedro Alves <pedro@codesourcery.com>
363 * infrun.c (fetch_inferior_event): Check if there's a selected
364 thread before checking if the selected thread is executing.
366 2011-09-05 Pedro Alves <pedro@codesourcery.com>
368 * inf-loop.c (execute_command): Don't check if the current thread
369 if running before synchronously waiting for command completion.
370 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
372 (normal_stop): Call async_enable_stdin here.
373 * inf-loop.c (inferior_event_handler): Don't call
374 async_enable_stdin, nor handle "set exec-done-display" here.
376 2011-09-04 Joel Brobecker <brobecker@adacore.com>
380 2011-09-04 Joel Brobecker <brobecker@adacore.com>
382 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
384 2011-09-04 Joel Brobecker <brobecker@adacore.com>
386 * NEWS: Add entry for OpenBSD/NetBSD build failure.
388 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
390 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
392 2011-09-02 Matt Rice <ratmice@gmail.com>
395 * event-top.c (cli_command_loop): Replace readline setup with
396 direct call to display_gdb_prompt.
397 (display_gdb_prompt): Do not call observer mechanism during
398 synchronous execution.
400 2011-09-02 Pedro Alves <pedro@codesourcery.com>
402 * linux-nat.c (in_pid_list_p): New.
403 (linux_record_stopped_pid): Delete.
404 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
405 already attached to the LWP. Return an indication if so.
406 (linux_nat_filter_event): Adjust.
407 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
408 returning an indication to ignore this thread.
410 2011-09-02 Pedro Alves <pedro@codesourcery.com>
412 * top.c: Include interps.h.
413 (execute_command): If the target can async, but the interpreter is
414 in sync mode, synchronously wait for the command to finish before
416 (execute_command_to_string): Force the interpreter to sync mode.
417 * infrun.c: Include interps.h.
418 (fetch_inferior_event): Don't restore the prompt yet if the
419 interpreter is in sync mode.
420 * interps.c (interpreter_async): New global.
421 * interps.h (interpreter_async): Declare.
422 * inf-loop.c: Include interps.h.
423 (inferior_event_handler): Don't print the language change or run
424 breakpoint commands yet if the interpreter in is sync mode.
425 * main.c (captured_command_loop): Flip the interpreter to async
427 * cli/cli-script.c: Include interps.h.
428 (execute_user_command, while_command, if_command): Force the
429 interpreter to sync mode.
430 * python/python.c: Include interps.h.
431 (python_command, execute_gdb_command): Force the interpreter to
434 2011-09-02 Pedro Alves <pedro@codesourcery.com>
436 * value.c (show_convenience): Catch errors thrown while printing
437 each internal variable.
438 * infrun.c (validate_siginfo_access): New function.
439 (siginfo_value_read, siginfo_value_write): Call it.
441 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
444 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
445 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
448 2011-08-29 Yao Qi <yao@codesourcery.com>
450 * solib-dsbt.c (bfd_lookup_symbol): Removed.
452 (enable_break2): Update caller.
453 * solib-frv.c (bfd_lookup_symbol): Removed.
455 (enable_break2): Update caller.
456 * solib-pa64.c (bfd_lookup_symbol): Removed.
458 * solib-svr4.c (bfd_lookup_symbol): Removed.
459 (cmp_name_and_sec_flags): New.
460 (enable_break): Update caller.
461 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
462 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
463 (gdb_bfd_lookup_symbol): New.
464 * solib.h: Functions declarations.
466 2011-08-29 Yao Qi <yao@codesourcery.com>
468 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
471 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
473 Fix TUI stepi on code without symbols.
474 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
477 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
480 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
481 and the static keyword.
482 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
483 Make prefix an array.
484 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
485 * mi/mi-main.c (get_register): Remove stb initialization and the static
488 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
490 Code cleanup - make mi_opt const.
491 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
493 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
494 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
495 (mi_cmd_env_dir): Likewise.
496 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
497 (mi_cmd_target_file_put): Likewise.
498 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
499 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
500 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
501 (mi_valid_noargs): Make opts const.
502 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
503 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
504 (mi_cmd_data_read_memory): Likewise.
505 (mi_cmd_data_read_memory_bytes): Likewise.
506 (mi_cmd_data_write_memory): Likewise.
508 2011-08-26 Matt Rice <ratmice@gmail.com>
510 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
511 bcache_xmalloc, replace bcache_xmalloc with call to
512 psymbol_bcache_init for psymbol_cache.
513 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
515 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
517 * inf-loop.c (inferior_event_handler): Add exception_print in
520 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
522 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
523 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
524 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
525 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
526 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
527 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
528 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
529 * infrun.c (fetch_inferior_event): Call
530 make_bpstat_clear_actions_cleanup.
531 * top.c (execute_command): New variable cleanup_if_error, call
532 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
533 * utils.c (do_bpstat_clear_actions_cleanup)
534 (make_bpstat_clear_actions_cleanup): New functions.
536 2011-08-26 Pedro Alves <pedro@codesourcery.com>
538 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
539 either the parent or the child forks. Rename a couple locals.
541 2011-08-26 Pedro Alves <pedro@codesourcery.com>
543 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
544 library call. Avoid reading the `status' local if all waitpid
547 2011-08-26 Pedro Alves <pedro@codesourcery.com>
549 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
550 opening /proc/PID/task always succeeds.
552 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
554 * linespec.c (symtab_from_filename): Check for the end of string.
556 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
559 * varobj.c (cplus_describe_child): Add the keyword
560 'class' to the output of the method when dealing
561 with a cast to a base class.
563 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
565 No functionality change.
566 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
567 function comment a reference, new variables tp and bs, move here code
568 from throw_exception.
569 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
570 describe it in the comment.
571 * exceptions.c (throw_exception): Remove variable tp, move the code for
572 bpstat_clear_actions to bpstat_clear_actions.
574 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
576 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
577 * linux-nat.c: Include linux-procfs.h.
578 (linux_proc_get_tgid): Move to ...
579 * common/linux-procfs.c: ... here. New file.
580 * common/linux-procfs.h: New file.
581 * linux-thread-db.c: Include linux-procfs.h.
582 * Makefile.in: Update dependencies.
583 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
584 * config/arm/linux.mh: Likewise.
585 * config/i386/linux.mh: Likewise.
586 * config/i386/linux64.mh: Likewise.
587 * config/ia64/linux.mh: Likewise.
588 * config/m32r/linux.mh: Likewise.
589 * config/m68k/linux.mh: Likewise.
590 * config/mips/linux.mh: Likewise.
591 * config/pa/linux.mh: Likewise.
592 * config/pa/linux.mh: Likewise.
593 * config/powerpc/linux.mh: Likewise.
594 * config/powerpc/ppc64-linux.mh: Likewise.
595 * config/powerpc/spu-linux.mh: Likewise.
596 * config/sparc/linux.mh: Likewise.
597 * config/sparc/linux64.mh: Likewise.
598 * config/xtensa/linux.mh: Likewise.
600 2011-08-24 Hui Zhu <teawater@gmail.com>
602 * tracepoint.c (cond_string_is_same): New function.
603 (find_matching_tracepoint): Add condition check
604 by cond_string_is_same.
606 2011-08-23 Josh Matthews <josh@joshmatthews.net>
608 Fix build error in Darwin port.
609 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
611 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
614 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
615 (command_line_is_silent): New function.
616 (bpstat_do_actions_1): No longer use commands_left, use
617 command_line_is_silent for commands.
618 (bpstat_alloc): Remove clearing of commands_left.
619 (bpstat_stop_status): Remove initialization of commands_left, use
620 command_line_is_silent.
621 * breakpoint.h (struct bpstats): Remove commands_left.
623 2011-08-18 Keith Seitz <keiths@redhat.com>
626 * cp-name-parser.y (struct demangle_info): Remove unused
629 (allocate_info): Change return type to struct demangle_info *.
630 Always allocate a new demangle_info.
631 Remove unused PREV pointer.
632 (cp_new_demangle_parse_info): New function.
633 (cp_demangled_name_parse_free): New function.
634 (do_demangled_name_parse_free_cleanup): New function.
635 (make_cleanup_cp_demangled_name_parse_free): New function.
636 (cp_demangled_name_to_comp): Change return type to
637 struct demangle_parse_info *.
638 Allocate a new storage for each call.
639 (main): Update usage for cp_demangled_name_to_comp
641 * cp-support.h (struct demangle_parse_info): New structure.
642 (cp_demangled_name_to_comp): Update API change for
644 (cp_new_demangle_parse_info): Declare.
645 (make_cleanup_cp_demangled_name_parse_free): New declaration.
646 (cp_demangled_name_parse_free): Declare.
647 * cp-support.c (cp_canonicalize_string): Update API
648 change for cp_demangled_name_to_comp.
649 (mangled_name_to_comp): Likewise.
650 Return struct demangle_parse_info, too.
651 (cp_class_name_from_physname): Update mangled_name_to_comp
653 (method_name_from_physname): Likewise.
654 (cp_func_name): Update API change for cp_demangled_name_to_comp.
655 (cp_remove_params): Likewise.
656 * python/py-type.c (typy_legacy_template_argument): Likewise.
658 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
659 (cp_merge_demangle_parse_infos): Declare.
660 * cp-support.c (ignore_typedefs): New file global.
661 (copy_string_to_obstack): New function.
662 (inspect_type): New function.
663 (replace_typedefs): New function.
664 (replace_typedefs_qualified_name): New function.
665 (cp_canonicalize_string_no_typedefs): New function.
666 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
667 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
668 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
669 instead of cp_canonicalize_string.
670 (find_method): Likewise.
671 (decode_compound): Before looking up the name, call
672 cp_canonicalize_string_no_typedefs.
673 (decode_variable): Likewise.
675 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
676 Tom Tromey <tromey@redhat.com>
677 Matt Rice <ratmice@gmail.com>
679 * python/lib/gdb/prompt.py: New file.
680 * python/lib/gdb/command/prompt.py: New file.
681 * NEWS: Document set extended-prompt and gdb.prompt library
683 2011-08-16 Yao Qi <yao@codesourcery.com>
685 * tic6x-linux-tdep.c: Move const arrays definition from here...
686 * tic6x-tdep.c: to here ...
688 2011-08-14 Yao Qi <yao@codesourcery.com>
690 * NEWS: New port to Texas Instruments TMS320C6x.
692 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
693 Bernd Schmidt <bernds@codesourcery.com>
694 Yao Qi <yao@codesourcery.com>
696 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
697 * solib-dsbt.c: New file. Support DSBT shared object.
698 * tic6x-linux-tdep.c: New file.
699 * tic6x-tdep.c: New file.
700 * tic6x-tdep.h: New file.
702 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
703 Yao Qi <yao@codesourcery.com>
705 * remote.c (PACKET_qXfer_fdpic): New enum value.
706 (remote_protocol_features): Add qXfer:fdpic:read packet.
707 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
708 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
709 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
711 2011-08-14 Yao Qi <yao@codesourcery.com>
713 Target description for tic6x.
714 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
715 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
716 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
717 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
718 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
719 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
720 * features/tic6x-c64xp-linux.xml: New.
721 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
722 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
723 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
724 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
725 * regformats/tic6x-c64xp.dat,
726 regformats/tic6x-c62x-linux.dat: Generated.
727 * regformats/tic6x-c64x-linux.dat,
728 regformats/tic6x-c64xp-linux.dat: Generated.
729 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
730 features/tic6x-*.c files.
731 Add regformats/tic6x-*.dat files.
733 2011-08-12 Doug Evans <dje@google.com>
735 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
736 * python/py-symbol.c (sympy_get_type): New function.
737 (symbol_object_getset): Add "type".
739 2011-08-12 Pedro Alves <pedro@codesourcery.com>
743 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
745 (tui_show_register_group): Don't store a byte buffer in the data
747 (tui_register_format): Skip registers with an empty name.
748 (tui_get_register): Store a struct value in the data element's
749 value field instead of a byte buffer holding the raw register
750 contents. Account for optimized-out and unavailable registers
751 when comparing register contents.
753 2011-08-09 Pedro Alves <pedro@codesourcery.com>
755 * printcmd.c (current_display_number): Update comment.
756 (disable_current_display_cleanup): Delete.
757 (do_one_display): Use make_cleanup_restore_integer. Gracefully
758 catch errors thrown while evaluating and printing the display.
760 2011-08-09 Tom Tromey <tromey@redhat.com>
762 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
764 2011-08-09 Pedro Alves <pedro@codesourcery.com>
766 * elfread.c (elf_symtab_read): Rework comments.
767 * maint.c (maintenance_command): Ditto.
768 * somread.c (som_symtab_read): Ditto.
769 * solib.c (solib_find, solib_map_sections, update_solib_list)
770 (solib_add, info_sharedlibrary_command, solib_name_from_address)
771 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
772 (sharedlibrary_command, no_shared_libraries): Ditto.
773 * solib-irix.c (locate_base, disable_break, enable_break)
774 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
775 (irix_current_sos, irix_open_symbol_file_object)
776 (irix_special_symbol_handling): Ditto.
777 * solib-sunos.c (locate_base, first_link_map_member)
778 (sunos_current_sos, disable_break, enable_break)
779 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
781 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
782 (open_symbol_file_object, svr4_current_sos, enable_break)
783 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
785 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
786 (frv_current_sos, enable_break, frv_special_symbol_handling)
787 (frv_solib_create_inferior_hook): Ditto.
788 * solist.h (struct target_so_ops): Extend the comments of the
789 special_symbol_handling, current_sos and open_symbol_file_object
792 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
794 * python/lib/gdb/__init__.py: Auto-load files in command and
795 function directories.
796 * python/python.c (finish_python_initialization): Use
798 * python/lib/gdb/command/pretty_printers.py: Self register
800 * NEWS: Document auto-loading.
802 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
805 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
806 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
808 2011-08-08 Tom Tromey <tromey@redhat.com>
810 * breakpoint.c (clean_up_filters): Remove.
811 (catch_syscall_split_args): Use VEC_cleanup.
813 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
815 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
816 (main): Uncomment "Demangling error\n".
818 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
820 * solib-target.c (segment_attributes): Make them static.
821 (section_attributes, library_children, library_attributes): Likewise.
822 (library_list_children, library_list_attributes): Likesise.
823 (library_list_elements): Likewise.
825 2011-08-05 Pedro Alves <pedro@codesourcery.com>
827 * exceptions.c (throw_exception): Don't disable the current
829 * printcmd.c (disable_current_display_cleanup): New function.
830 (do_one_display): Install a cleanup to disable the current display
831 if doing the display throws.
833 2011-08-05 Eli Zaretskii <eliz@gnu.org>
835 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
836 initialization of the tp_new member to the corresponding
837 gdbpy_initialize_* function.
838 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
839 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
840 * python/py-function.c (gdbpy_initialize_functions): Likewise.
841 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
842 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
844 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
846 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
847 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
848 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
849 references to current_uiout.
851 2011-08-04 Pedro Alves <pedro@codesourcery.com>
853 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
854 (start_event_loop): Use TRY_CATCH instead of catch_errors.
855 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
856 * top.c (gdb_readline_wrapper): Adjust.
857 * tui/tui-interp.c (tui_command_loop):
858 (_initialize_tui_interp): Don't install it.
860 2011-08-04 Pedro Alves <pedro@codesourcery.com>
862 * ui-out.h (uiout): Rename to ...
863 (current_uiout): ... this.
864 * ui-out.c (uiout): Rename to ...
865 (current_uiout): ... this.
866 * ada-lang.c (print_it_exception, print_one_exception)
867 (print_mention_exception): Adjust.
868 * breakpoint.c (watchpoint_check): Adjust.
869 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
870 (default_collect_info, watchpoints_info, print_one_catch_fork)
871 (print_one_catch_vfork, print_one_catch_syscall)
872 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
873 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
874 (print_it_watchpoint, print_mention_watchpoint)
875 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
876 (print_it_exception_catchpoint, print_one_exception_catchpoint)
877 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
878 (bkpt_print_mention, momentary_bkpt_print_it)
879 (tracepoint_print_mention, update_static_tracepoint)
880 (tracepoints_info, save_breakpoints): Adjust.
881 * cli-out.c (field_separator): Adjust.
882 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
883 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
884 * frame.c (get_current_frame): Adjust.
885 * infcmd.c (run_command_1, print_return_value): Adjust.
886 * inferior.c (inferior_command, info_inferiors_command): Adjust.
887 * infrun.c (print_end_stepping_range_reason): Adjust.
888 (print_signal_exited_reason, print_exited_reason): Adjust.
889 (print_signal_received_reason, print_no_history_reason): Adjust.
890 * interps.c (interp_set): Adjust.
891 * osdata.c (info_osdata_command): Adjust.
892 * progspace.c (maintenance_info_program_spaces_command): Adjust.
893 * remote-fileio.c (remote_fileio_request): Adjust.
894 * remote.c (show_remote_cmd): Adjust.
895 * solib.c (info_sharedlibrary_command): Adjust.
896 * source.c (print_source_lines_base): Adjust.
897 * stack.c (print_stack_frame): Adjust.
898 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
899 * symfile-mem.c (add_vsyscall_page): Adjust.
900 * symfile.c (load_progress, generic_load)
901 (print_transfer_performance): Adjust.
902 * thread.c (info_threads_command, restore_selected_frame)
903 (thread_command): Adjust.
904 * top.c (make_cleanup_restore_ui_file): Adjust.
905 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
906 (print_one_static_tracepoint_marker): Adjust.
907 * cli/cli-cmds.c (print_disassembly): Adjust.
908 * cli/cli-decode.c (print_doc_line): Adjust.
909 * cli/cli-interp.c (safe_execute_command): Adjust.
910 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
911 (handle_redirections): Adjust.
912 * cli/cli-script.c (show_user_1): Adjust.
913 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
914 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
915 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
916 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
917 (mi_cmd_env_dir): Adjust.
918 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
919 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
920 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
921 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
922 (list_args_or_locals): Adjust.
923 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
924 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
925 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
926 (mi_cmd_var_list_children, mi_cmd_var_info_type)
927 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
928 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
929 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
930 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
931 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
932 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
933 (list_available_thread_groups, mi_cmd_list_thread_groups)
934 (mi_cmd_data_list_register_names)
935 (mi_cmd_data_list_changed_registers)
936 (mi_cmd_data_list_register_values, get_register)
937 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
938 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
939 (mi_cmd_list_target_features, mi_cmd_add_inferior)
940 (mi_execute_command, mi_load_progress): Adjust.
941 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
942 * python/py-auto-load.c (print_script, info_auto_load_scripts):
944 * python/py-breakpoint.c (bppy_get_commands): Adjust.
945 * tui/tui-interp.c (tui_command_loop): Adjust.
946 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
948 2011-08-04 Pedro Alves <pedro@codesourcery.com>
950 * exceptions.c (struct catcher): Remove saved_uiout field.
951 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
952 no longer save/resvore the global ui_out builder.
953 (catch_exceptions_with_msg): Save/override/restore the global
954 ui_out builder manually instead of relying on TRY_CATCH to do it.
955 (catch_errors): Save/restore the global ui_out builder manually
956 instead of relying on TRY_CATCH to do it.
957 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
960 * cli/cli-interp.c (safe_execute_command): Save/override/restore
961 the global ui_out builder manually instead of relying on TRY_CATCH
964 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
966 * breakpoint.c (update_global_location_list): Ensure
967 invariant 'first loc marked not duplicated and inserted,
968 following locs marked duplicated/not inserted' is respected
969 for multiple locations at the same address.
970 (unduplicated_should_be_inserted) New function.
971 (swap_insertion) New function.
973 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
975 * stack.c (print_frame_arguments_choices): Comment typo fix.
977 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
980 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
981 * breakpoint.c (insert_bp_location): Remove disabled_breaks
982 argument. Update callers.
984 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
987 * doublest.c (convert_doublest_to_floatformat): Pass correct
988 mantissa length to put_field.
990 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
992 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
993 exception_print code path.
994 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
995 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
996 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
998 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1001 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1002 Remove, merge them into ...
1003 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1004 variable args and its initialization.
1005 (struct print_args_args, print_args_stub): Remove, merge them into
1007 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1009 (do_gdb_disassembly): ... here. Remove variable args and its
1011 (print_frame): Remove variable args and its initialization, new
1012 variable gdbarch and numargs (from print_args_stub), inline here
1013 print_args_stub with a TRY_CATCH.
1014 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1016 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
1017 New variable e, remove variable btargs and its initialization.
1019 2011-08-01 Tristan Gingold <gingold@adacore.com>
1021 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1023 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1025 * breakpoint.c (insert_bp_location): Document return value.
1026 (insert_breakpoint_locations): Fix documentation.
1027 (remove_breakpoints): Add documentation.
1029 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1031 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1032 argument. Update callers.
1034 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1036 * stack.c (print_frame_info): Comment typo fix.
1038 2011-07-29 Sterling Augustine <saugustine@google.com>
1040 * MAINTAINERS (Write After Approval): Add myself to the list.
1042 2011-07-29 Tom Tromey <tromey@redhat.com>
1044 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1045 (library_list_start_segment): Update.
1046 (library_list_start_section): Update.
1048 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1050 * varobj.c (value_get_print_value): Move hint check later into the
1051 function. Comment function. Free thevalue before reusing it.
1053 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1054 Pedro Alves <pedro@codesourcery.com>
1056 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1058 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1059 Assert the result kind.
1060 * value.h (value_one): Remove parameter lv.
1062 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1064 Fix crash on lval_computed values.
1065 * valops.c (value_zero): Use not_lval for lval_computed.
1067 2011-07-27 Tom Tromey <tromey@redhat.com>
1069 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1070 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1072 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1074 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1075 "ptype" by their typedefs difference.
1077 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * dwarf2expr.c (ctx_no_read_reg): New function.
1080 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1081 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1082 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1083 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1085 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1087 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1088 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1090 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1091 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1092 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1093 (ctx_no_get_base_type): Move the functions here.
1094 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1095 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1096 (ctx_no_get_base_type): New declarations.
1098 2011-07-27 Tom Tromey <tromey@redhat.com>
1100 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1102 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1103 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1105 2011-07-26 Sterling Augustine <saugustine@google.com>
1107 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1109 (dump_bfd_file): Likewise.
1111 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1113 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1114 (remote_hw_watchpoint_length_limit): New variable.
1115 (_initialize_remote) add set,show cmds for this new variable.
1116 * gdb.texinfo: document these new commands.
1117 * NEWS: Mention these new commands.
1119 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1121 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1122 true for software watchpoints.
1124 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1128 2011-07-26 Tom Tromey <tromey@redhat.com>
1130 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1131 * dwarf2read.c (read_indirect_string_at_offset): New function.
1132 (read_indirect_string): Use it.
1133 (dwarf_decode_macro_bytes): New function, taken from
1134 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1135 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1136 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1138 (struct dwarf2_per_objfile) <macro>: New field.
1139 (dwarf2_elf_names): Add .debug_macro.
1140 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1141 (dwarf2_locate_sections): Handle new section.
1142 (read_file_scope): Handle DW_AT_GNU_macros.
1143 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1145 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1147 * NEWS: Mention dcache configuration.
1148 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1149 (dcache_size, dcache_line_size): New variables.
1150 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1151 (struct dcache_block): Make it expandable.
1152 (struct dcache_struct): New field.
1153 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1154 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1155 (dcache_poke_byte, dcache_print_line): Adjust.
1156 (set_dcache_size, set_dcache_line_size): New functions.
1157 (set_dcache_command, show_dcache_command): New functions.
1158 (_initialize_dcache): Add new commands.
1160 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1162 * progspace.h (struct program_space): Add solib_add_generation.
1163 * infcmd.c (post_create_inferior): Only call solib_add if not
1165 * solib.c (solib_add): Increment solib_add_generation.
1167 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 Fix implicit pointer offsets.
1170 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1173 2011-07-25 Tom Tromey <tromey@redhat.com>
1175 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1177 (ada_exception_sal): Make 'ops' const.
1178 (ada_decode_exception_location): Likewise.
1179 (ada_decode_assert_location): Likewise.
1180 (catch_assert_command): Update.
1181 (catch_ada_exception_command): Update.
1182 (create_ada_exception_catchpoint): Make 'ops' const.
1183 * breakpoint.c (set_raw_breakpoint_without_location)
1184 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1186 (create_internal_breakpoint): Update.
1187 (init_raw_breakpoint_without_location): Make 'ops' const.
1188 (init_raw_breakpoint, init_catchpoint)
1189 (create_fork_vfork_event_catchpoint)
1190 (create_syscall_event_catchpoint, init_breakpoint_sal)
1191 (create_breakpoint_sal, create_breakpoints_sal)
1192 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1193 * breakpoint.h (struct breakpoint) <ops>: Now const.
1194 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1197 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1199 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1201 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1203 * breakpoint.h (print_recreate_thread): Declare.
1204 (struct breakpoint): Move step_count, pass_count,
1205 number_on_target, static_trace_marker_id,
1206 static_trace_marker_id_idx ...
1207 (struct tracepoint): ... to this new struct.
1208 (get_tracepoint, get_tracepoint_by_number_on_target)
1209 (get_tracepoint_by_number): Change return type to struct
1211 * breakpoint.c (is_tracepoint_type): New, factored out from
1213 (is_tracepoint): Adjust.
1214 (print_one_breakpoint_location): Cast to struct tracepoint as
1215 necessary, and adjust.
1216 (print_recreate_catch_fork, print_recreate_catch_vfork)
1217 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1218 print_recreate_thread.
1219 (init_breakpoint_sal): New, factored out from
1220 create_breakpoint_sal.
1221 (create_breakpoint_sal): Reimplement.
1222 (create_breakpoint): Allocate a struct tracecepoint if the caller
1223 wanted a tracepoint. Use init_breakpoint_sal and
1225 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1226 (print_recreate_masked_watchpoint)
1227 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1228 (tracepoint_print_one_detail): Adjust.
1229 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1230 Dump the pass count here.
1231 (update_static_tracepoint): Adjust.
1232 (addr_string_to_sals): Adjust.
1233 (create_tracepoint_from_upload): Adjust. Change return type to
1234 struct tracepoint pointer.
1235 (trace_pass_set_count): Change parameter type to struct tracepoint
1236 pointer, and adjust.
1237 (trace_pass_command): Adjust.
1238 (get_tracepoint, get_tracepoint_by_number_on_target)
1239 (get_tracepoint_by_number): Change return type to struct
1240 tracepoint pointer, and adjust.
1241 (print_recreate_thread): New, factored out from save_breakpoints.
1242 (save_breakpoints): Don't print thread and task and passcount
1244 * remote.c (remote_download_tracepoint): Adjust.
1245 * tracepoint.c (trace_actions_command, validate_actionline)
1246 (start_tracing, tfind_1, trace_find_tracepoint_command)
1247 (trace_dump_command): Adjust.
1248 (find_matching_tracepoint): Change return type to struct
1249 tracepoint pointer, and adjust.
1250 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1251 (tfile_trace_find, tfile_fetch_registers): Adjust.
1252 * tracepoint.h (create_tracepoint_from_upload): Change return type
1253 to struct tracepoint pointer.
1254 * ada-lang.c (print_recreate_exception): Call
1255 print_recreate_thread.
1256 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1258 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1260 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1261 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1262 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1263 watchpoint_thread, watchpoint_triggered ...
1264 (struct watchpoint): ... to this new struct.
1265 (is_watchpoint): Declare.
1266 (install_breakpoint): Add new `internal' parameter.
1267 * breakpoint.c (is_watchpoint): Delete declaration.
1268 (set_breakpoint_condition): Handle watchpoints.
1269 (is_watchpoint): Make public.
1270 (watchpoint_in_thread_scope): Change parameter type to struct
1272 (watchpoint_del_at_next_stop): Change parameter type to struct
1273 watchpoint. Remove assertion. Adjust.
1274 (update_watchpoint): Ditto.
1275 (insert_breakpoints, breakpoint_init_inferior)
1276 (watchpoints_triggered, watchpoint_check)
1277 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1278 (bpstat_stop_status, print_one_breakpoint_location)
1279 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1280 to struct watchpoint as necessary, and adjust.
1281 (install_breakpoint): Add `internal' argument. If true, don't
1282 mention the new breakpoint. Use set_breakpoint_number.
1283 (create_fork_vfork_event_catchpoint)
1284 (create_syscall_event_catchpoint): Adjust.
1285 (dtor_watchpoint): New.
1286 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1287 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1288 (print_it_watchpoint, print_mention_watchpoint)
1289 (print_recreate_watchpoint, insert_masked_watchpoint)
1290 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1291 (print_one_detail_masked_watchpoint)
1292 (print_mention_masked_watchpoint)
1293 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1294 necessary, and adjust.
1295 (watch_command_1): Allocate and initialize a struct watchpoint
1296 instead of a struct breakpoint. Use install_breakpoint.
1297 (catch_exec_command_1): Adjust.
1298 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1300 (delete_breakpoint, enable_breakpoint_disp)
1301 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1302 as necessary, and adjust.
1303 (initialize_breakpoint_ops): Install dtor_watchpoint as
1304 watchpoints' dtor method.
1305 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1306 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1307 to struct watchpoint as necessary, and adjust.
1309 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1311 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1312 the the base class ops table.
1313 (catch_exception_breakpoint_ops)
1314 (catch_exception_unhandled_breakpoint_ops)
1315 (catch_assert_breakpoint_ops): Don't statically initialize.
1316 (initialize_ada_catchpoint_ops): New.
1317 (_initialize_ada_language): Call it.
1318 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1319 (bkpt_breakpoint_ops): Forward declare.
1320 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1321 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1322 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1323 (masked_watchpoint_breakpoint_ops)
1324 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1325 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1326 base class ops table.
1327 (null_re_set, null_check_status, null_works_in_software_mode)
1328 (null_resources_needed, null_print_one_detail): Delete.
1329 (bkpt_dtor): Rename to ...
1330 (base_breakpoint_dtor): ... this. Make static.
1331 (bkpt_allocate_location): Rename to ...
1332 (base_breakpoint_allocate_location): ... this. Make static.
1333 (base_breakpoint_re_set): New.
1334 (internal_error_pure_virtual_called): New.
1335 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1336 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1337 (base_breakpoint_works_in_software_mode)
1338 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1339 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1340 (base_breakpoint_print_recreate): New functions.
1341 (base_breakpoint_ops): New global.
1342 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1343 (bkpt_breakpoint_hit): Make static.
1344 (bkpt_check_status): Delete.
1345 (bkpt_resources_needed): Make static.
1346 (bkpt_works_in_software_mode): Delete.
1347 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1349 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1350 (momentary_breakpoint_ops): Don't statically initialize.
1351 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1353 (tracepoint_insert_location, tracepoint_remove_location)
1354 (tracepoint_check_status, tracepoint_works_in_software_mode)
1355 (tracepoint_print_it): Delete.
1356 (tracepoint_breakpoint_ops): Don't statically initialize.
1357 (initialize_breakpoint_ops): New.
1358 (_initialize_breakpoint): Call it.
1359 * breakpoint.h (null_re_set, null_works_in_software_mode)
1360 (null_resources_needed, null_check_status, null_print_one_detail):
1361 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1362 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1363 (bkpt_check_status, bkpt_resources_needed)
1364 (bkpt_works_in_software_mode, bkpt_print_it)
1365 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1366 Delete declarations.
1367 (initialize_breakpoint_ops): Declare.
1369 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1371 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1372 (momentary_bkpt_print_it): Simplify.
1374 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1376 Split internal, momentary and user breakpoints breakpoint_ops
1379 * breakpoint.c (internal_breakpoint_ops)
1380 (momentary_breakpoint_ops): Forward declare.
1381 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1382 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1383 (create_overlay_event_breakpoint)
1384 (create_std_terminate_master_breakpoint)
1385 (create_exception_master_breakpoint): Create breakpoints with
1386 internal_breakpoint_ops vtable.
1387 (set_longjmp_breakpoint): Create momentary breakpoints with
1388 momentary_breakpoint_ops vtable, using
1389 momentary_breakpoint_from_master.
1390 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1391 (create_solib_event_breakpoint): Create breakpoints with
1392 internal_breakpoint_ops vtable.
1393 (set_momentary_breakpoint): Create breakpoints with
1394 momentary_breakpoint_ops vtable.
1395 (momentary_breakpoint_from_master): New, factored out from
1396 clone_momentary_breakpoint.
1397 (clone_momentary_breakpoint): Adjust.
1398 (watch_command_1): Create scope breakpoints with
1399 momentary_breakpoint_ops vtable.
1400 (bkpt_re_set): Remove handling of internal and momentary
1402 (bkpt_print_mention, bkpt_print_recreate): New.
1403 (bkpt_breakpoint_ops): Adjust.
1404 (internal_bkpt_re_set, internal_bkpt_check_status)
1405 (internal_bkpt_print_it, internal_bkpt_print_mention)
1406 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1407 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1408 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1409 (momentary_bkpt_print_recreate): New.
1410 (momentary_breakpoint_ops): New.
1412 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1414 Implement most breakpoint_ops methods for all breakpoint types,
1415 and move the default handlings to the proper callbacks.
1417 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1418 works_in_software_mode method.
1419 (insert_bp_location): Go through breakpoint_ops->insert_location
1420 for software and hardware watchpoints.
1421 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1423 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1424 for software and hardware watchpoints.
1425 (print_it_typical): Delete.
1426 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1428 (watchpoint_check): Adjust comment.
1429 (bpstat_check_location): Simply always call the breakpoint's
1430 breakpoint_hit method.
1431 (bpstat_stop_status): Always call the breakpoint's check_status
1432 method. Remove special cases for watchpoints and internal event
1433 breakpoints from here (moved to the check_status implementations).
1434 (print_one_breakpoint_location): Assume b->ops is never NULL.
1435 Remove static tracepoint marker id printing from here (moved to
1436 the print_one_detail callback implementation of tracepoints).
1437 (init_bp_location): Assert OPS is never NULL.
1438 (allocate_bp_location): Always call the breakpoint's
1439 allocate_location method, and remove the default code from here.
1440 (free_bp_location): Always call the location's dtor method, and
1441 remove the default code from here.
1442 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1443 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1444 parameter. Pass it down.
1445 (set_raw_breakpoint): Ditto.
1446 (print_it_catch_fork): Adjust to take a bpstat as argument.
1447 (catch_fork_breakpoint_ops): Install methods.
1448 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1449 (catch_vfork_breakpoint_ops): Install methods.
1450 (dtor_catch_syscall): Call the base dtor.
1451 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1452 (catch_syscall_breakpoint_ops): Install methods.
1453 (dtor_catch_exec): Call the base dtor.
1454 (print_it_catch_exec): Adjust to take a bpstat as argument.
1455 (catch_exec_breakpoint_ops): Install methods.
1456 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1457 the breakpoint's resources_needed method, and remove the default
1459 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1461 (clone_momentary_breakpoint): Clone the original's ops.
1462 (mention): Always call the breakpoint's print_mention method, and
1463 remove the default code from here.
1464 (create_breakpoint_sal): Adjust to pass the ops to
1465 set_raw_breakpoint rather than setting it manually.
1466 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1467 ops to set_raw_breakpoint_without_location rather than setting it
1469 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1470 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1471 (ranged_breakpoint_ops): Install methods.
1472 (break_range_command): Adjust to pass the ops to
1473 set_raw_breakpoint rather than setting it manually.
1474 (re_set_watchpoint, breakpoint_hit_watchpoint)
1475 (check_status_watchpoint, resources_needed_watchpoint)
1476 (works_in_software_mode_watchpoint, print_it_watchpoint)
1477 (print_mention_watchpoint, print_recreate_watchpoint): New
1479 (watchpoint_breakpoint_ops): Install new methods.
1480 (print_it_masked_watchpoint): New function.
1481 (masked_watchpoint_breakpoint_ops): Install new methods.
1482 (watch_command_1): Adjust to pass the right breakpoint_ops to
1483 set_raw_breakpoint_without_location rather than setting it
1484 manually later. Record the current pspace.
1485 (print_it_exception_catchpoint): Adjust to take a bpstat as
1487 (gnu_v3_exception_catchpoint_ops): Install new methods.
1488 (say_where): New function.
1489 (null_re_set, null_check_status, null_works_in_software_mode)
1490 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1492 (bp_location_ops): New global.
1493 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1494 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1495 (bkpt_check_status, bkpt_resources_needed)
1496 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1497 (bkpt_print_recreate): New functions.
1498 (bkpt_breakpoint_ops): New global.
1499 (tracepoint_re_set, tracepoint_insert_location)
1500 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1501 (tracepoint_check_status, tracepoint_works_in_software_mode)
1502 (tracepoint_print_it, tracepoint_print_one_detail)
1503 (tracepoint_print_mention, tracepoint_print_recreate): New
1505 (tracepoint_breakpoint_ops): New global.
1506 (delete_breakpoint): Always call the breakpoint's dtor method, and
1507 remove the default handling from here.
1508 (breakpoint_re_set_default): Make static.
1509 (breakpoint_re_set_one): Always call the breakpoints re_set
1510 method, and remove the default handling from here.
1511 (trace_command, ftrace_command, strace_command)
1512 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1513 to create_breakpoint.
1514 (save_breakpoints): Always call the breakpoint's print_recreate
1515 method, and remove the default handling from here.
1517 * ada-lang.c (dtor_exception): Call the base dtor.
1518 (re_set_exception): Call the base method.
1519 (print_it_exception, print_it_catch_exception): Adjust to take a
1521 (catch_exception_breakpoint_ops): Install methods.
1522 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1524 (catch_exception_unhandled_breakpoint_ops): Install methods.
1525 (print_it_catch_assert): Adjust to take a bpstat as argument.
1526 (catch_assert_breakpoint_ops): Install methods.
1528 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1529 to take a bpstat as argument.
1530 (enum print_stop_action): Add describing comments to each enum
1532 (breakpoint_re_set_default): Delete declaration.
1533 (null_re_set, null_works_in_software_mode, null_resources_needed)
1534 (null_check_status, null_print_one_detail): Declare.
1535 (bkpt_breakpoint_ops): Declare.
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)
1540 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1543 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1544 bkpt_breakpoint_ops.
1545 * python/py-breakpoint.c (bppy_init): Ditto.
1547 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1549 * MAINTAINERS (Write After Approval): Add myself to the list.
1551 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1553 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1555 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1557 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1558 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1559 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1561 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1562 (struct i386_debug_reg_state): New.
1563 (i386_init_dregs): New.
1565 (i386_cleanup_dregs): Use i386_init_dregs.
1566 (i386_show_dr): Add state parameter and adjust.
1567 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1569 (i386_remove_aligned_watchpoint): Likewise.
1570 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1571 (i386_update_inferior_debug_regs): New.
1572 (i386_insert_watchpoint): Work on a local mirror of the debug
1573 registers, and only update the inferior on success.
1574 (i386_remove_watchpoint): Ditto.
1575 (i386_region_ok_for_watchpoint): Adjust.
1576 (i386_stopped_data_address): Adjust.
1577 (i386_insert_hw_breakpoint): Adjust.
1578 (i386_remove_hw_breakpoint): Adjust.
1580 2011-07-22 Tom Tromey <tromey@redhat.com>
1582 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1583 from amd64_pseudo_register_read. Change arguments. Call
1584 mark_value_bytes_unavailable when needed.
1585 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1586 set_gdbarch_pseudo_register_read.
1587 * sentinel-frame.c (sentinel_frame_prev_register): Use
1588 regcache_cooked_read_value.
1589 * regcache.h (regcache_cooked_read_value): Declare.
1590 * regcache.c (regcache_cooked_read_value): New function.
1591 (regcache_cooked_read): Call
1592 gdbarch_pseudo_register_read_value if available.
1593 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1594 (i386_pseudo_register_read): Remove.
1595 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1596 i386_pseudo_register_read. Change arguments. Call
1597 mark_value_bytes_unavailable when needed.
1598 (i386_pseudo_register_read_value): New function.
1599 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1600 not set_gdbarch_pseudo_register_read.
1601 * gdbarch.sh (pseudo_register_read_value): New method.
1602 * gdbarch.c, gdbarch.h: Rebuild.
1603 * findvar.c (value_from_register): Call get_frame_register_value.
1605 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1607 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1609 (display_gdb_prompt): Likewise.
1610 (change_annotation_level): Likewise.
1611 (push_prompt): Likewise.
1612 (pop_prompt): Likewise.
1613 (handle_stop_sig): Use get_prompt with a level.
1614 * top.c (command_loop): Use get_prompt with a level.
1615 (set_async_annotation_level): Use set_prompt with a level.
1616 (get_prefix): New function.
1617 (set_prefix): Ditto.
1618 (set_suffix): Ditto.
1619 (get_suffix): Ditto.
1620 (get_prompt): Accept a level argument.
1621 (set_prompt): Accept a level argument. Free old prompts. Set
1622 new_async_prompt if level is 0.
1623 (init_main): Use set_prompt with a level. Do not set
1625 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1626 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1627 Modify set_prompt, get_prompt to account for levels.
1628 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1630 * python/python.c (before_prompt_hook): Use set_prompt.
1632 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1634 * defs.h: Add guard against inclusion in gdbserver.
1635 (struct ptid, ptid_t): Move to common/ptid.h.
1636 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1637 xsnprintf, internal_error): Move to common/common-utils.h.
1639 * gdb_assert.h: Move into common/ sub-directory.
1640 * gdb_locale.h: Ditto.
1641 * gdb_dirent.h: Ditto.
1642 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1643 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1644 Move into common/ptid.h.
1645 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1646 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1647 Change nomem to malloc_failure.
1648 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1649 * utils.c (nomem): Rename to malloc_failure.
1650 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1651 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1652 (gdb_buildargv): Change nomem to malloc_failure.
1653 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1654 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1655 ptid_is_pid): Move into common/ptid.c.
1656 (initialize_infrun): Delete initialization of null_ptid and
1658 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1659 linux_common_xfer_osdata.
1660 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1661 common/ptid.c and common/buffer.c.
1662 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1663 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1664 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1665 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1667 * common/gdb_assert.h: New.
1668 * common/gdb_dirent.h: New.
1669 * common/gdb_locale.h: New.
1670 * common/buffer.c: New.
1671 * common/buffer.h: New.
1672 * common/ptid.c: New.
1673 * common/ptid.h: New.
1674 * common/xml-utils.c: New.
1675 * common/xml-utils.h: New.
1676 * common/common-utils.c: New.
1677 * common/common-utils.h: New.
1678 * common/linux-osdata.c: New.
1679 * common/linux-osdata.h: New.
1680 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1681 * config/arm/linux.mh (NATDEPFILES): Ditto.
1682 * config/i386/linux.mh (NATDEPFILES): Ditto.
1683 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1684 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1685 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1686 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1687 * config/mips/linux.mh (NATDEPFILES): Ditto.
1688 * config/pa/linux.mh (NATDEPFILES): Ditto.
1689 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1690 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1691 * config/s390/s390.mh (NATDEPFILES): Ditto.
1692 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1693 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1694 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1696 2011-07-21 Matt Rice <ratmice@gmail.com>
1698 * NEWS: Add info macros and info definitions commands.
1700 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1702 * NEWS: Document Python prompt substitution hook.
1704 2011-07-18 Matt Rice <ratmice@gmail.com>
1707 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1708 * macrotab.c (foreach_macro): Ditto.
1709 (foreach_macro_in_scope): Ditto.
1710 * macrocmd.c (print_macro_callback): New function.
1711 (info_macro_command): Move some code to print_macro_definition.
1712 (print_macro_definition): New function.
1713 (print_one_macro): Add new arguments to callback.
1714 (info_definitions_command): New function.
1715 (info_macros_command): Ditto.
1716 (_initialize_macrocmd): Add info macros and info definitions commands.
1717 * symtab.c (add_macro_name): Add new arguments to callback.
1719 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1720 Tom Tromey <tromey@redhat.com>
1722 * top.c (set_prompt): Rewrite to free previous prompt, free
1723 asynch_new_prompt and set both on new prompts.
1724 * event-top.c (display_gdb_prompt): Add prompt substitution
1726 * python/python.c (before_prompt_hook): New function.
1728 2011-07-20 Matt Rice <ratmice@gmail.com>
1730 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1731 arguments to store_unsigned_integer.
1733 2011-07-20 Tom Tromey <tromey@redhat.com>
1735 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1736 in some declaration-only cases.
1738 2011-07-18 Tom Tromey <tromey@redhat.com>
1741 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1742 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1743 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1744 <debug_type_section>: New field.
1745 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1746 (load_cu): Use appropriate section.
1747 (create_signatured_type_table_from_index): Add 'section'
1749 (dwarf2_read_index): Only allow a single .debug_types section.
1750 (dw2_get_file_names): Use appropriate section.
1751 (read_type_comp_unit_head): Add 'section' argument.
1752 (create_debug_types_hash_table): Loop over all .debug_types
1754 (init_cu_die_reader): Use appropriate section.
1755 (process_psymtab_comp_unit, load_partial_comp_unit)
1756 (load_full_comp_unit, read_die_and_children, find_partial_die)
1757 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1758 (lookup_signatured_type_at_offset): Add 'section' argument.
1759 (read_signatured_type_at_offset): Add 'sect' argument.
1760 (read_signatured_type): Use appropriate section.
1761 (set_die_type, get_die_type_at_offset): Update.
1762 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1764 (write_psymtabs_to_index): Don't allow index with more than one
1765 .debug_types section.
1767 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1769 Fix crash if referenced CU is aged out.
1770 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1771 xfree of block.data.
1772 (indirect_pieced_value): New variable back_to, use to for xfree of
1774 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1776 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1777 (load_cu): New function from ...
1778 (dw2_do_instantiate_symtab): ... the code here ...
1779 (process_full_comp_unit): ... and here.
1780 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1783 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1785 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1788 2011-07-19 Gary Benson <gbenson@redhat.com>
1790 * infrun.c (struct execution_control_state): New member
1791 stop_func_filled_in.
1792 (clear_stop_func, fill_in_stop_func): New functions.
1793 (handle_inferior_event): Call clear_stop_func rather than
1794 manipulating the execution control state directly.
1795 Call fill_in_stop_func lazily as required rather than
1796 directly calling find_pc_partial_function in all cases.
1798 2011-07-18 Tom Tromey <tromey@redhat.com>
1800 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1801 checking for variable-sized array.
1803 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1805 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1806 of supported languages.
1807 * varobj.c: Add top definitions and basic implementation of the
1808 following callbacks: ada_number_of_children, ada_name_of_variable,
1809 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1810 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1811 (languages): Register Ada-specific callbacks.
1812 (variable_language): Add the Ada case in the language setter switch.
1814 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1818 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1821 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1822 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1823 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1824 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1825 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1826 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1827 (struct dwarf_expr_context_funcs): New, move here methods from ...
1828 (struct dwarf_expr_context): ... here. New fields funcs.
1829 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1830 (dwarf_expr_ctx_funcs): New.
1831 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1832 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1833 (needs_frame_ctx_funcs): New.
1834 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1836 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1838 * MAINTAINERS (Write After Approval): Add myself to the list.
1840 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1842 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1843 that CIE pointer of an FDE really points to a CIE .
1845 2011-07-15 Hui Zhu <teawater@gmail.com>
1847 * remote.c (remote_get_trace_status): Add comments.
1849 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 Code cleanup - constify struct lval_funcs.
1852 * dwarf2loc.c (pieced_value_funcs): Make it const.
1853 * infrun.c (siginfo_value_funcs): Likewise.
1854 * opencl-lang.c (opencl_value_funcs): Likewise.
1855 * valops.c (value_assign, value_ind): Make the funcs variable const.
1856 * value.c (struct value): Make location.computed.funcs target const.
1857 Rearrange the comments.
1858 (allocate_computed_value): Make the funcs parameter target const.
1859 (value_computed_funcs): Return the funcs target const.
1860 (value_free, value_copy, set_value_component_location): Make the funcs
1862 * value.h (allocate_computed_value): Make the funcs parameter target
1864 (value_computed_funcs): Return the funcs target const.
1865 * windows-tdep.c (tlb_value_funcs): Make it const.
1867 2011-07-14 Hui Zhu <teawater@gmail.com>
1869 * remote.c (remote_get_trace_status): Initialize p.
1871 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 * remote.c (remote_get_trace_status): New variable ex. Put
1875 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1877 2011-07-13 Tom Tromey <tromey@redhat.com>
1879 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1880 value_from_contents for final conversion.
1882 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1885 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1886 Indent prototypes so they do not get into tags.
1888 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1890 Code cleanup making also optimized out values lazy.
1891 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1892 allocate_optimized_out_value. Twice.
1893 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1894 * findvar.c (read_var_value): Likewise.
1895 * value.c (allocate_optimized_out_value): New function.
1896 * value.h (allocate_optimized_out_value): New declaration.
1898 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1900 Fix occasional crash of CTRL-C during DWARF read in.
1901 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1903 2011-07-11 Tom Tromey <tromey@redhat.com>
1905 * regcache.c (struct regcache_descr): Fix typo.
1906 * i387-tdep.c (i387_supply_xsave): Fix typo.
1908 2011-07-11 Tom Tromey <tromey@redhat.com>
1910 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1911 (read_file_scope, read_type_unit_scope): Use it.
1913 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1915 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1918 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1921 * python/python.c: Set gdbpy_should_print_stack default to off.
1922 (set_python): Deprecate maint set python print-stack to
1924 (_initialize_python): Deprecate maint set/show python print-stack.
1925 Add new prefix command, python. Add new setting, print-backtrace.
1926 * NEWS: Document set python print-stack. Document default change.
1928 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1930 * python/py-inferior.c (infpy_dealloc): New function.
1931 (inferior_to_inferior_object): Return a new object, or a
1932 new reference to the existing object.
1933 (find_thread_object): Cleanup references to inferior.
1934 (delete_thread_object): Ditto.
1935 * python/py-infthread.c (create_thread_object): Do not increment
1936 inferior reference count.
1938 2011-07-08 Tom Tromey <tromey@redhat.com>
1940 * dwarf2loc.c (locexpr_regname): New function.
1941 (locexpr_describe_location_piece): Use it.
1942 (disassemble_dwarf_expression): Add per_cu argument. Use
1944 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1945 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1947 (locexpr_describe_location_1): Add per_cu argument.
1948 (locexpr_describe_location): Update.
1949 (loclist_describe_location): Update.
1951 2011-07-08 Tom Tromey <tromey@redhat.com>
1953 * dwarf2expr.c (execute_stack_op): Add QUIT.
1955 2011-07-07 Hui Zhu <teawater@gmail.com>
1958 2011-07-06 Hui Zhu <teawater@gmail.com>
1959 * remote.c (remote_start_remote): Add TRY_CATCH for
1960 remote_get_trace_status.
1961 * tracepoint.c (disconnect_tracing): Ditto.
1963 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1965 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1966 variables as signed, not unsigned.
1968 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1970 * jit.c (jit_inferior_init): Reformat forward declaration.
1972 2011-07-06 Matt Rice <ratmice@gmail.com>
1974 * MAINTAINERS (Write After Approval): Add myself to the list.
1976 2011-07-06 Hui Zhu <teawater@gmail.com>
1978 * remote.c (remote_start_remote): Add TRY_CATCH for
1979 remote_get_trace_status.
1980 * tracepoint.c (disconnect_tracing): Ditto.
1982 2011-07-05 Tom Tromey <tromey@redhat.com>
1984 * symtab.c (operator_chars): Now static.
1985 * linespec.c (operator_chars): Don't declare.
1987 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1989 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1991 2011-07-05 Tom Tromey <tromey@redhat.com>
1993 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1994 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1995 (TYPE_CPLUS_REALLY_JAVA): New macro.
1996 * dwarf2read.c (process_structure_scope): Set
1997 TYPE_CPLUS_REALLY_JAVA.
1999 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2001 * ada-lang.c: Fix typos.
2002 * amd64-tdep.c: Likewise.
2003 * breakpoint.c: Likewise.
2004 * cli/cli-decode.c: Likewise.
2005 * findcmd.c: Likewise.
2006 * inline-frame.c: Likewise.
2007 * mi/mi-main.c: Likewise.
2008 * minsyms.c: Likewise.
2009 * monitor.c: Likewise.
2010 * monitor.h: Likewise.
2011 * prologue-value.c: Likewise.
2012 * reverse.c: Likewise.
2013 * s390-tdep.c: Likewise.
2015 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2017 * jit.c (jit_inferior_init): Forward declare.
2018 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2020 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2022 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2024 2011-07-04 Tristan Gingold <gingold@adacore.com>
2026 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2027 (tcb_fieldno): Add activation_link field.
2028 (get_known_tasks_addr): Moved and rewritten.
2029 (get_tcb_types_info): Set activation_link field.
2030 (read_known_tasks_array): Add parameter. Rewritten.
2031 (read_known_tasks_list): New function.
2032 (read_known_tasks): New function.
2033 (ada_build_task_list): Call read_known_tasks instead of
2034 read_known_tasks_array.
2035 * ravenscar-thread.c: Add first_task_name constant.
2036 (has_ravenscar_runtime): Check for task list too.
2038 2011-07-04 Tristan Gingold <gingold@adacore.com>
2040 * ada-tasks.c: Renames fieldno to actb_fieldno.
2041 (ada_get_task_number): Indentation.
2042 (get_tcb_types_info): Remove all parameters. Write directly
2044 (ptid_from_atcb_common): Adjust.
2045 (read_atcb): Adjust.
2047 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2049 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2051 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2053 * ui-out.c (ui_out_field_core_addr): Mention that the function
2054 description is in the header file.
2055 * ui-out.h (ui_out_field_core_addr): Document function.
2057 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2059 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2060 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2062 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2064 * symtab.c (expand_line_sal): Remove empty line.
2066 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2068 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2069 same way as ELFOSABI_NONE.
2070 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2072 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2074 * breakpoint.c: Fix typos in comments.
2075 * linespec.c: Likewise.
2076 * symtab.c: Likewise.
2078 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2080 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2081 section in separate object files.
2083 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2085 Fix false GCC warning.
2086 * linespec.c (decode_line_1): Initialize values.
2088 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2090 * linespec.c (find_method): Accept the function type automatically only
2091 if it was specified with parameter types.
2093 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2095 Stop on first linespec terminator instead of eating what we can.
2096 * linespec.c (is_linespec_boundary): New function.
2097 (name_end): Remove function.
2098 (keep_name_info): New parameter on_boundary, replace the body.
2099 (decode_line_1): Provide the parameter to keep_name_info.
2100 (decode_compound): Likewise. Drop the trailing java return type
2103 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 Fall back linespec to minimal symbols.
2106 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2107 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2108 (find_method, symbol_found): Change error to cplusplus_error.
2110 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2112 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2114 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2115 Tom Tromey <tromey@redhat.com>
2117 * dwarf2read.c (check_physname): New variable.
2118 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2119 (show_check_physname): New function.
2120 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2122 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2124 * machoread.c (macho_symfile_read): Delete OBE comment.
2126 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2128 * machoread.c (struct macho_oso_data): Delete.
2129 (current_oso): Delete.
2130 (macho_relocate_common_syms): New function, mostly extracted
2132 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2133 Remove code that sets and unset current_oso.
2134 (macho_symfile_relocate): Delete handling of common symbols,
2135 now moved to macho_relocate_common_syms.
2137 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2139 * darwin-nat.c (darwin_ptrace): Add documentation.
2140 Set errno to zero before calling ptrace. If ptrace returns
2141 -1 and errno is zero, then change then return zero.
2142 (darwin_kill_inferior): Issue a warning instead of triggering
2143 a failed assertion when the PT_KILL ptrace operations returned
2146 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2148 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2149 only when inf->private->no_ptrace.
2151 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2153 * ada-lang.c (print_it_exception): Print temporary catchpoints
2154 as "Temporary catchpoint".
2155 (print_mention_exception): Likewise.
2157 2011-07-01 Tom Tromey <tromey@redhat.com>
2159 * jv-lang.c (java_language_defn): Use java_printchar,
2161 (java_get_encoding): New function.
2162 (java_emit_char): Use generic_emit_char.
2163 (java_printchar): New function.
2164 (java_printstr): Likewise.
2166 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2168 * ada-typeprint.c (print_record_type): If unable to decode
2169 the name of the parent type, use the encoded name.
2171 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2173 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2174 pointer to constrained packed array type output.
2175 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2176 packed array output.
2178 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2180 * ada-typeprint.c (print_array_type): removed if condition on show
2181 being negative for bounds printing.
2183 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2185 * ada-lang.c (ada_identical_enum_types_p): New function.
2186 (symbols_are_identical_enums): New function.
2187 (remove_extra_symbols): Do nothing if NSYMS < 2.
2188 Use symbols_are_identical_enums.
2190 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2192 * ada-valprint.c (ada_value_print): Handle typedefs.
2194 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2196 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2198 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2200 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2201 (decode_constrained_packed_array): Likewise.
2202 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2204 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2206 * ada-exp.y (convert_char_literal): Handle typedef types.
2208 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2210 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2212 2011-06-30 Tom Tromey <tromey@redhat.com>
2214 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2215 * valops.c (find_overload_match): Call do_cleanups on early exit
2217 * solib.c (solib_find): Call do_cleanups on early exit path.
2219 2011-06-30 Tom Tromey <tromey@redhat.com>
2221 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2222 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2223 return paths. Defer final do_cleanups until last return.
2224 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2227 2011-06-30 Tom Tromey <tromey@redhat.com>
2229 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2231 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2233 * MAINTAINERS (Write After Approval): Add myself to the list.
2235 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Disable epilogue unwinders on recent GCCs.
2238 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2239 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2240 * dwarf2read.c (process_full_comp_unit): Initialize
2241 EPILOGUE_UNWIND_VALID.
2242 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2243 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2244 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2246 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 Code cleanup - reformatting.
2249 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2250 (producer_is_gcc_ge_4): ... here, change the return value.
2251 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2254 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2256 Fix non-only rename list for Fortran modules import.
2257 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2258 cp_add_using_directive caller.
2259 (cp_add_using_directive): New parameter excludes, describe it. New
2260 variables ix and param. Compare if also excludes match. Allocate NEW
2261 with variable size, initialize EXCLUDES there.
2262 (cp_lookup_symbol_imports): New variable excludep, test
2263 current->EXCLUDES with it.
2264 * cp-support.h: Include vec.h.
2265 (struct using_direct): New field excludes, describe it.
2266 (DEF_VEC_P (const_char_ptr)): New.
2267 (cp_add_using_directive): New parameter excludes.
2268 * defs.h (const_char_ptr): New typedef.
2269 * dwarf2read.c (read_import_statement): New variables child_die,
2270 excludes and cleanups, read in excludes.
2271 (read_namespace): Adjust the cp_add_using_directive caller.
2273 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2276 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2277 negative comparisons.
2279 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2281 * mi/mi-main.c (mi_cmd_list_features): Emit
2282 breakpoint-notifications.
2284 2011-06-29 Tom Tromey <tromey@redhat.com>
2287 * valprint.h (generic_emit_char, generic_printstr): Declare.
2288 * valprint.c (wchar_printable, append_string_as_wide)
2289 (print_wchar): Move from c-lang.c.
2290 (generic_emit_char): New function; mostly taken from c_emit_char.
2291 (generic_printstr): New function; mostly taken from c_printstr.
2292 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2293 represented as arrays.
2294 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2296 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2297 identically to TYPE_CODE_INT.
2298 * f-lang.c (f_get_encoding): New function.
2299 (f_emit_char): Use generic_emit_char.
2300 (f_printchar): Replace comment.
2301 (f_printstr): Use generic_printstr.
2302 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2303 "character" types specially.
2304 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2306 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2308 (c_emit_char): Call generic_emit_char.
2309 (c_printstr): Call generic_printstr.
2311 2011-06-29 Gary Benson <gbenson@redhat.com>
2313 * breakpoint.c (bpstat_what): Removed duplicated case.
2315 2011-06-28 Tom Tromey <tromey@redhat.com>
2317 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2319 2011-06-27 Tom Tromey <tromey@redhat.com>
2321 * valops.c (find_overload_match): Call do_cleanups before early
2323 * top.c (execute_command): Call do_cleanups before early return.
2324 (command_loop): Likewise.
2325 * stack.c (backtrace_command): Make a null cleanup early. Don't
2326 conditionally call do_cleanups.
2327 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2329 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2330 so cleanups are always run.
2331 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2332 * findcmd.c (parse_find_args): Call do_cleanups on early return
2334 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2335 Don't conditionally call do_cleanups.
2336 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2339 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2341 * MAINTAINERS (Write After Approval): Use default email address.
2343 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2345 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2347 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2349 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2350 saved_regs_mask and copied_regs_mask fields.
2351 (sparc_record_save_insn): New prototype.
2352 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2353 (sparc_record_save_insn): New function.
2354 (sparc_analyze_prologue): Add head comment. Recognize store insns
2355 of call-saved registers. Use OFFSET consistently. Recognize flat
2356 frames and cache their settings.
2357 (sparc32_skip_prologue): Handle flat frames.
2358 (sparc_frame_cache): Add frame_offset to the base address.
2359 (sparc32_frame_cache): Adjust to new frame description.
2360 (sparc32_frame_prev_register): Likewise.
2361 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2362 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2363 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2364 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2365 frame by calling sparc_record_save_insn.
2366 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2367 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2368 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2370 2011-06-27 Tristan Gingold <gingold@adacore.com>
2372 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2373 field by map_addr and map_len.
2374 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2375 (munmap_section_buffer): Likewise.
2377 2011-06-24 Tom Tromey <tromey@redhat.com>
2379 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2380 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2381 * python/python.c (gdbpy_parameter): Make 'arg' const.
2382 (execute_gdb_command): Likewise.
2383 (gdbpy_decode_line): Likewise. Copy it.
2384 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2385 (gdbpy_write): Make 'arg' const.
2386 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2388 (gdbpy_lookup_type): Likewise.
2389 * python/py-prettyprint.c (print_children): Make 'name' const.
2390 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2391 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2393 * python/py-function.c (fnpy_init): Make 'name' const.
2394 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2395 (gdbpy_string_to_argv): Make 'input' const.
2396 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2398 * gdbtypes.h (lookup_typename): Update.
2399 * gdbtypes.c (lookup_typename): Make 'name' const.
2400 (lookup_struct): Likewise.
2401 (lookup_union): Likewise.
2402 (lookup_enum): Likewise.
2404 2011-06-24 Tom Tromey <tromey@redhat.com>
2406 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2407 gdb_thread_db.h. Move all common/ entries to be together.
2408 (TAGS): Don't depend on DEPFILES.
2410 2011-06-23 Yao Qi <yao@codesourcery.com>
2412 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2413 * remote.c (remote_start_remote): ... here.
2414 * monitor.c (monitor_open): ... here.
2416 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2418 * gdbtypes.c (append_composite_type_field_aligned): Fix
2419 calculation of bit position based on alignment.
2421 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2423 * breakpoint.c (bpstat_stop_status): Call the check_status
2424 breakpoint_ops method.
2425 (print_one_breakpoint_location): Also print the condition for Ada
2426 exception catchpoints.
2427 (allocate_bp_location): New, factored out from
2428 allocate_bp_location.
2429 (allocate_bp_location): Adjust. Call the owner breakpoint's
2430 allocate_location method, if there is one.
2431 (free_bp_location): Call the locations's dtor method, if there is
2433 (init_raw_breakpoint_without_location): New breakpoint_ops
2435 (set_raw_breakpoint_without_location): Adjust.
2436 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2437 (set_raw_breakpoint): Adjust.
2438 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2439 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2440 re_set and check_status methods.
2441 (init_catchpoint): Don't memset, initialize thread, addr_string
2442 and enable_state. Pass the ops down to init_raw_breakpoint.
2443 (install_catchpoint): Rename to ...
2444 (install_breakpoint): ... this, and make extern.
2445 (create_fork_vfork_event_catchpoint): Adjust.
2446 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2447 re_set and check_status methods.
2448 (create_syscall_event_catchpoint): Adjust.
2449 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2450 (masked_watchpoint_breakpoint_ops): Install NULL
2451 allocate_location, re_set and check_status methods.
2452 (catch_exec_command_1): Adjust.
2453 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2454 re_set and check_status methods.
2455 (create_ada_exception_breakpoint): Rename to ...
2456 (init_ada_exception_breakpoint): ... this. Add a struct
2457 breakpoint parameter, and delete the exp_string, cond_string and
2458 cond parameters. Use init_raw_breakpoint, and don't install or
2459 mention the breakpoint yet. Don't clear breakpoint fields that
2460 init_raw_breakpoint already clears.
2461 (re_set_breakpoint): Delete, split into ...
2462 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2464 (breakpoint_re_set_one): Call the breakpoint's
2465 breakpoint_ops->re_set implementation, if there's one. Adjust.
2466 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2467 (struct bp_location_ops): New type.
2468 (struct bp_location): New field `ops'.
2469 (struct breakpoint_ops): New `allocate_location', `re_set' and
2470 `check_status' fields. Make `breakpoint_hit''s description match
2472 (init_bp_location): Declare.
2473 (breakpoint_re_set_default): Declare.
2474 (create_ada_exception_breakpoint): Rename to ...
2475 (init_ada_exception_breakpoint): ... this. Add a struct
2476 breakpoint parameter, and delete the exp_string, cond_string and
2478 (install_breakpoint): Declare.
2479 * ada-lang.c: Include exceptions.h.
2480 <Ada exceptions description>: Update.
2481 (struct ada_catchpoint_location): New type.
2482 (ada_catchpoint_location_dtor): New function.
2483 (ada_catchpoint_location_ops): New global.
2484 (ada_catchpoint): New type.
2485 (create_excep_cond_exprs): New function.
2486 (dtor_exception, allocate_location_exception, re_set_exception)
2487 (should_stop_exception, check_status_exception): New functions.
2488 (print_one_exception, print_mention_exception)
2489 (print_recreate_exception): Adjust.
2490 (dtor_catch_exception, allocate_location_catch_exception)
2491 (re_set_catch_exception, check_status_catch_exception): New
2493 (catch_exception_breakpoint_ops): Install them.
2494 (dtor_catch_exception_unhandled)
2495 (allocate_location_catch_exception_unhandled)
2496 (re_set_catch_exception_unhandled)
2497 (check_status_catch_exception_unhandled): New functions.
2498 (catch_exception_unhandled_breakpoint_ops): Install them.
2499 (dtor_catch_assert, allocate_location_catch_assert)
2500 (re_set_catch_assert, check_status_catch_assert): New functions.
2501 (catch_assert_breakpoint_ops): Install them.
2502 (ada_exception_catchpoint_p): Delete.
2503 (catch_ada_exception_command_split)
2504 (ada_exception_catchpoint_cond_string): Rename exp_string
2505 parameter to excep_string. Adjust.
2506 (ada_parse_catchpoint_condition): Delete.
2507 (ada_exception_sal): Rename the exp_string parameter to
2508 excep_string. Delete the cond_string and cond parameters.
2510 (ada_decode_exception_location): Rename the exp_string parameter
2511 to excep_string. Delete the cond_string and cond parameters.
2513 (create_ada_exception_catchpoint): New function.
2514 (catch_ada_exception_command, ada_decode_assert_location)
2515 (catch_assert_command): Adjust.
2516 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2518 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2520 * ada-lang.c: Include arch-utils.h.
2521 (ada_decode_exception_location): Make static.
2522 (catch_ada_exception_command): Moved here from breakpoint.c.
2523 (ada_decode_assert_location): Make static.
2524 (catch_assert_command): Moved here from breakpoint.c.
2525 (_initialize_ada_lang): Install the exception and assert
2526 catchpoint commands here.
2527 * ada-lang.h (ada_decode_exception_location)
2528 (ada_decode_assert_location): Delete declarations.
2529 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2531 (create_ada_exception_breakpoint): Make extern.
2532 (catch_ada_exception_command, catch_assert_command): Moved to
2534 (add_catch_command): Make extern.
2535 (_initilize_breakpoint): Don't install the exception and assert
2536 catchpoint commands here.
2537 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2539 (add_catch_command, create_ada_exception_breakpoint): Declare.
2541 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2543 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2544 the breakpoint to the breakpoint chain here.
2545 (set_raw_breakpoint_without_location): Add the breakpoint to the
2546 breakpoint chain here.
2547 (init_raw_breakpoint): Adjust comments.
2548 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2550 (init_catchpoint): Don't set the catchpoint's breakpoint number
2552 (install_catchpoint): New function.
2553 (create_fork_vfork_event_catchpoint)
2554 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2555 use install_catchpoint.
2557 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2559 * breakpoint.c (create_catchpoint_without_mention)
2560 (create_catchpoint): Delete.
2562 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2564 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2565 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2566 reference to exec_pathname.
2567 (struct exec_catchpoint): New type.
2568 (dtor_catch_exec): New function.
2569 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2570 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2571 (catch_exec_command_1): Adjust to use init_catchpoint.
2572 (delete_breakpoint): Remove reference to exec_pathname.
2574 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2576 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2577 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2578 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2579 reference to syscalls_to_be_caught.
2580 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2582 (struct syscall_catchpoint): New type.
2583 (dtor_catch_syscall): New function.
2584 (insert_catch_syscall, remove_catch_syscall)
2585 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2586 (print_recreate_catch_syscall): Adjust.
2587 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2588 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2589 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2590 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2591 (masked_watchpoint_breakpoint_ops)
2592 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2593 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2594 there is one. Remove references to syscalls_to_be_caught.
2595 (catching_syscall_number): Adjust.
2596 * ada-lang.c (catch_exception_breakpoint_ops)
2597 (catch_exception_unhandled_breakpoint_ops)
2598 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2600 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2602 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2604 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2605 reference to forked_inferior_pid.
2606 (struct fork_catchpoint): New type.
2607 (breakpoint_hit_catch_fork, print_it_catch_fork)
2608 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2609 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2610 (create_fork_vfork_event_catchpoint): Adjust to use
2613 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2615 * breakpoint.c (add_to_breakpoint_chain)
2616 (init_raw_breakpoint_without_location): New functions, factored
2618 (set_raw_breakpoint_without_location): ... this one.
2619 (init_raw_breakpoint): New function, factored out from
2620 set_raw_breakpoint and adjusted to use
2621 init_raw_breakpoint_without_location.
2622 (set_raw_breakpoint): Adjust.
2623 (init_catchpoint): New function, factored out from
2624 create_catchpoint_without_mention and adjusted to use
2625 init_raw_breakpoint.
2626 (create_catchpoint_without_mention): Adjust.
2628 2011-06-22 Tom Tromey <tromey@redhat.com>
2630 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2631 argument of 0 specially.
2633 2011-06-22 Yao Qi <yao@codesourcery.com>
2635 * infrun.c (handle_inferior_event): Remove write-only local variable
2636 `sw_single_step_trap_p'.
2638 2011-06-20 Tom Tromey <tromey@redhat.com>
2640 * symtab.c (lookup_language_this): End loop if block is NULL.
2642 2011-06-17 Tom Tromey <tromey@redhat.com>
2644 * valops.c (value_of_this): Use lookup_language_this.
2645 * symtab.h (lookup_language_this): Declare.
2646 * symtab.c (lookup_language_this): New function.
2647 (lookup_symbol_aux): Use lookup_language_this.
2648 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2650 2011-06-17 Tom Tromey <tromey@redhat.com>
2652 * value.h (value_of_this): Update.
2653 (value_of_local): Remove.
2654 * valops.c (value_of_this): Rename from value_of_local. Change
2656 * p-exp.y (exp): Update.
2657 (variable): Likewise.
2658 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2660 2011-06-17 Tom Tromey <tromey@redhat.com>
2662 * valops.c (value_of_local): Complain if NAME is NULL.
2663 * std-operator.def (OP_OBJC_SELF): Remove.
2664 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2665 * objc-exp.y (name_not_typename): Use OP_THIS.
2666 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2668 <OP_OBJC_SELF>: Remove.
2669 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2671 2011-06-16 Tristan Gingold <gingold@adacore.com>
2673 * python/py-events.h (gdb_py_events): Make it extern.
2674 * python/py-evtregistry.c (gdb_py_events): Declare.
2676 2011-06-16 Hui Zhu <teawater@gmail.com>
2678 * remote.c (remote_trace_set_readonly_regions): Add check for
2679 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2682 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2684 * arm-linux-tdep.c: Include "auxv.h".
2686 (ARM_LINUX_SIZEOF_VFP): Define.
2687 (arm_linux_supply_vfp): New function.
2688 (arm_linux_collect_vfp): Likewise.
2689 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2690 (arm_linux_fpa_regset_sections): New variable.
2691 (arm_linux_vfp_regset_sections): Likewise.
2692 (arm_linux_core_read_description): New function.
2693 (arm_linux_init_abi): Install arm_linux_core_read_description and
2694 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2695 appropriate for the architecture.
2696 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2697 (tdesc_arm_with_m): Declare.
2698 (tdesc_arm_with_iwmmxt): Likewise.
2699 (tdesc_arm_with_vfpv2): Likewise.
2700 (tdesc_arm_with_vfpv3): Likewise.
2701 (tdesc_arm_with_neon): Likewise.
2702 * arm-linux-nat.c: Move features/*.c includes ...
2703 * arm-tdep.c: ... here.
2704 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2705 target description data structures ...
2706 * arm-tdep.c (_initialize_arm_tdep): ... here.
2707 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2708 HWCAP_VFPv3D16): Move definitions ...
2709 * arm-linux-tdep.h: ... here.
2711 2011-06-15 Hui Zhu <teawater@gmail.com>
2713 * remote.c (remote_trace_set_readonly_regions): Add a check for
2716 2011-06-14 Tom Tromey <tromey@redhat.com>
2718 * coffread.c (coffread_objfile): Rename from current_objfile.
2719 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2720 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2722 2011-06-14 Tom Tromey <tromey@redhat.com>
2724 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2725 (class_symtab): Remove.
2726 (jv_dynamics_progspace_key): New global.
2727 (jv_per_objfile_free): Reset program space data. Update assert.
2728 Don't clear globals.
2729 (get_dynamics_objfile): Use and set program space data.
2730 (get_java_class_symtab): Use get_dynamics_objfile.
2731 (add_class_symbol): Likewise.
2732 (java_link_class_type): Likewise.
2733 (java_object_type, jv_clear_object_type, set_java_object_type):
2735 (get_java_object_type): Update. Don't cache result.
2736 (is_object_type): Don't call set_java_object_type.
2737 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2738 initialize jv_dynamics_progspace_key.
2740 2011-06-14 Tom Tromey <tromey@redhat.com>
2742 * symtab.h (current_objfile): Don't declare.
2743 * objfiles.h (current_objfile): Don't declare.
2744 * objfiles.c (current_objfile): Remove.
2745 * mdebugread.c (current_objfile): New file-scope global.
2746 * dbxread.c (current_objfile): New file-scope global.
2747 * coffread.c (current_objfile): New file-scope global.
2749 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2751 * top.h (line): Rename to ...
2752 (saved_command_line): ... this.
2753 (linesize): Rename to ...
2754 (saved_command_line_size): ... this.
2755 * top.c (line): Rename to ...
2756 (saved_command_line): ... this.
2757 (linesize): Rename to ...
2758 (saved_command_line_size): ... this.
2759 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2760 * event-top.c (command_line_handler): Adjust.
2761 * main.c (captured_main): Adjust.
2763 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2765 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2766 get_frame_func instead of get_frame_pc to determine the code
2767 address used to construct the frame ID.
2768 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2769 (i386_epilogue_frame_this_id): Likewise.
2770 (i386_epilogue_frame_prev_register): New function.
2771 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2772 (i386_stack_tramp_frame_sniffer): Fix coding style.
2773 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2774 (i386_gdbarch_init): Fix comments.
2776 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2778 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2779 instruction when walking back through the instruction stream.
2781 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2783 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2784 fullname parameters order.
2786 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2789 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2791 * psymtab.c (map_symbol_filenames_psymtab)
2792 (map_partial_symbol_filenames): Likewise.
2793 * psymtab.h: Include symfile.h.
2794 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2795 * symfile.h (symbol_filename_ftype): New.
2796 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2797 map_symbol_filenames, clarify more the naming in comment.
2799 2011-06-07 Doug Evans <dje@google.com>
2801 * cc-with-index.sh: Fix typos in comment.
2802 Look for ../../gdb, for fullname.exp.
2804 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2805 Pedro Alves <pedro@codesourcery.com>
2807 * cli/cli-cmds.c (shell_escape): Use waitpid.
2808 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2810 2011-06-07 Tristan Gingold <gingold@adacore.com>
2812 * xcoffread.c (dwarf2_xcoff_names): New variable.
2813 (aix_process_linenos): Add a guard.
2814 (xcoff_symfile_finish): Free dwarf2.
2815 (xcoff_initial_scan): Add dwarf2 support.
2817 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2819 * infcall.c (run_inferior_call): Don't mask async. Instead force
2820 a synchronous wait, if the target can async.
2822 * target.h (struct target_ops): Delete to_async_mask.
2823 (target_async_mask): Delete.
2824 * target.c (update_current_target): Delete references to to_async_mask.
2825 * linux-nat.c (linux_nat_async_mask_value): Delete.
2826 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2827 to linux_nat_async_mask_value.
2828 (linux_nat_async_mask): Delete.
2829 (linux_nat_async, linux_nat_close): Remove references to
2830 linux_nat_async_mask_value.
2831 * record.c (record_async_mask_value): Delete.
2832 (record_async): Remove references to record_async_mask_value.
2833 (record_async_mask): Delete.
2834 (record_can_async_p, record_is_async_p): Remove references to
2835 record_async_mask_value.
2836 (init_record_ops, init_record_core_ops): Remove references to
2838 * remote.c (remote_async_mask_value): Delete.
2839 (init_remote_ops): Remove reference to remote_async_mask.
2840 (remote_can_async_p, remote_is_async_p): Remove references to
2841 remote_async_mask_value.
2842 (remote_async): Remove references to remote_async_mask_value.
2843 (remote_async_mask): Delete.
2845 * infrun.c (fetch_inferior_event): Don't claim registers changed
2846 if the current thread is already not executing.
2848 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2850 From Stephen Kitt <steve@sk2.org>
2851 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2852 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2854 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2856 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2857 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2859 2011-06-03 Tom Tromey <tromey@redhat.com>
2861 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2863 * python/py-exitedevent.c (create_exited_event_object): Change
2864 type of 'exit_code'. Optionally add exit_code attribute.
2865 (emit_exited_event): Change type of 'exit_code'.
2866 * python/py-event.h (emit_exited_event): Update.
2867 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2868 * infrun.c (handle_inferior_event): Set exit code fields on
2870 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2872 * inferior.c (exit_inferior_1): Initialize new fields.
2874 2011-06-03 Tom Tromey <tromey@redhat.com>
2876 * dwarf2expr.c (get_signed_type): New function.
2877 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2879 2011-06-02 Keith Seitz <keiths@redhat.com>
2881 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2883 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2885 * top.h (simplified_command_loop): Delete declaration.
2887 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2889 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2890 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2892 2011-06-01 Yao Qi <yao@codesourcery.com>
2894 * objfiles.h (obj_section_addr): Update reference to objfile from
2896 (obj_section_endaddr): Likewise.
2898 2011-06-01 Daniel Jacobowitz <drow@false.org>
2900 * MAINTAINERS: Update my email address and affiliation. Also
2901 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2903 2010-05-31 Keith Seitz <keiths@redhat.com>
2906 * linespec.c (get_search_block): New function.
2907 (find_methods): Add FILE_SYMTATB parameter and use it and
2908 get_search_block to pass an appropriate block to
2909 lookup_symbol_in_namespace.
2910 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2911 Check if *ARGPTR starts with a filename first.
2912 If it does, call locate_first_half again to locate the next
2913 "first half" of the linespec.
2914 Pass FILE_SYMTATB to decode_objc and decode_compound.
2915 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2916 (locate_first_half): Stop on the first colon seen.
2917 (decode_compound): Add FILE_SYMTAB parameter.
2918 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2919 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2920 get_search_block with lookup_symbol.
2921 (find_method): Add FILE_SYMTAB parameter and pass it to
2923 (decode_objc): Use get_search_block.
2925 2010-05-31 Keith Seitz <keiths@redhat.com>
2928 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2929 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2930 and CP_ANONYMOUS_NAMESPACE_LEN.
2931 (cp_is_anonymous): Likewise.
2932 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2933 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2934 * dwarf2read.c (namespace_name): Likewise.
2935 (fixup_partial_die): Likewise.
2936 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2937 seen in the input, keep it.
2939 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2941 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2942 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2943 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2944 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2945 * remote.c (_initialize_remote): Register
2946 async_remote_interrupt_twice directly as
2947 sigint_remote_twice_token event.
2949 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2951 * target.h (enum inferior_event_type): Delete INF_ERROR.
2952 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2954 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2956 * interps.c (interp_set): Don't cancel continuations.
2958 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2960 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2962 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2964 * continuations.h (continuation_ftype): Add `err' parameter.
2965 Document parameters.
2966 (do_all_continuations, do_all_continuations_thread)
2967 (do_all_intermediate_continuations)
2968 (do_all_intermediate_continuations_thread)
2969 (do_all_inferior_continuations): Add `err' parameter.
2970 * continuations.c (do_my_continuations_1, do_my_continuations)
2971 (do_all_inferior_continuations, do_all_continuations_ptid)
2972 (do_all_continuations_thread_callback)
2973 (do_all_continuations_thread, do_all_continuations)
2974 (do_all_intermediate_continuations_thread_callback)
2975 (do_all_intermediate_continuations_thread)
2976 (do_all_intermediate_continuations): Add `err' parameter, and pass
2977 it down all the way to the continuations proper.
2978 * inf-loop.c (inferior_event_handler): If fetching an inferior
2979 event throws an error, don't pop the target, and still call the
2980 continuations, but with `err' set. Adjust all other continuation
2982 * breakpoint.c (until_break_command_continuation): Add `err'
2984 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2985 issue another step if `err' is set.
2986 (struct until_next_continuation_args): New.
2987 (until_next_continuation): Add `err' parameter. Adjust.
2988 (until_next_command): Adjust.
2989 (struct finish_command_continuation_args): Add `thread' field.
2990 (finish_command_continuation): Add `err' parameter. Handle it.
2991 (finish_forward): Adjust.
2992 (attach_command_continuation): Add `err' parameter. Handle it.
2993 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2994 cancel the continuations.
2995 * interps.c (interp_set): Adjust to cancel the continuations.
2996 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2997 continuations rather than discarding.
2998 (free_thread): Don't clear thread inferior resources here.
2999 (delete_thread_1): Do it here instead. And do it before removing
3000 the thread from the threads list. Tag the thread as exited before
3001 clearing thread inferior resources.
3003 2011-05-30 Joel Brobecker <brobecker@adacore.com>
3005 * infcall.c (call_function_by_hand): Rephrase error message.
3007 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3009 * defs.h (struct thread_info, struct inferior): Delete forward
3011 * breakpoint.h (struct thread_info): New forward declaration.
3012 * observer.sh (struct inferior): New forward declaration.
3013 * python/python-internal.h (struct inferior): New forward
3016 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3018 * defs.h (struct continuation, continuation_ftype)
3019 (continuation_free_arg_ftype, add_continuation)
3020 (do_all_continuations, do_all_continuations_thread)
3021 (discard_all_continuations, discard_all_continuations_thread)
3022 (add_intermediate_continuation, do_all_intermediate_continuations)
3023 (do_all_intermediate_continuations_thread)
3024 (discard_all_intermediate_continuations)
3025 (discard_all_intermediate_continuations_thread)
3026 (add_inferior_continuation, do_all_inferior_continuations)
3027 (discard_all_inferior_continuations): Move to ...
3028 * continuations.h: ... this new file.
3029 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3030 infcmd.c, inferior.c, infrun.c, interps.c: Include
3033 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3034 Doug Evans <dje@google.com>
3036 Fix PR 10970, PR 12702.
3037 * linux-nat.c (linux_lwp_is_zombie): New function.
3038 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3039 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3041 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3043 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3045 (add_continuation, add_intermediate_continuation)
3046 (add_inferior_continuation): Use them.
3047 * continuations.c (struct continuation): Use them.
3048 (make_continuation_ftype): Delete.
3049 (make_continuation, add_inferior_continuation, add_continuation)
3050 (add_intermediate_continuation): Use continuation_ftype and
3051 continuation_free_arg_ftype. Rename parameters to shorter names.
3053 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3055 * continuations.c (make_continuation): Make it return void.
3056 (do_my_continuations): Rename to ...
3057 (do_my_continuations_1): ... this. Remove old_chain parameter and
3059 (do_my_continuations): New.
3060 (discard_my_continuations): Rename to ...
3061 (discard_my_continuations_1): ... this. Remove old_chain
3062 parameter and adjust.
3063 (discard_my_continuations): New.
3064 (add_inferior_continuation): Simplify.
3065 (do_all_inferior_continuations): Reimplement on top
3066 do_my_continuations.
3067 (discard_all_inferior_continuations): Simplify.
3068 (add_continuation): Simplify.
3069 (do_all_continuations_ptid): Simplify.
3070 (discard_all_continuations_thread_callback): Simplify.
3071 (add_intermediate_continuation): Simplify.
3072 (discard_all_intermediate_continuations_thread_callback):
3075 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3077 * utils.c (struct continuation, add_continuation)
3078 (add_inferior_continuation)
3079 (do_all_inferior_continuations, discard_all_inferior_continuations)
3080 (restore_thread_cleanup, do_all_continuations_ptid)
3081 (do_all_continuations_thread_callback)
3082 (do_all_continuations_thread, do_all_continuations)
3083 (discard_all_continuations_thread_callback)
3084 (discard_all_continuations_thread, discard_all_continuations)
3085 (add_intermediate_continuation)
3086 (do_all_intermediate_continuations_thread_callback)
3087 (do_all_intermediate_continuations_thread)
3088 (do_all_intermediate_continuations)
3089 (discard_all_intermediate_continuations_thread_callback)
3090 (discard_all_intermediate_continuations_thread)
3091 (discard_all_intermediate_continuations): Move to ...
3092 * continuations.c: ... this new file, and adjust to no longer
3093 implement continuations on top of cleanups.
3094 * Makefile.in (SFILES): Add continuations.c.
3095 (COMMON_OBS): Add continuations.o.
3097 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3099 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3100 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3101 Internal error on invalid values.
3102 * reverse.c: Don't handle EXEC_ERROR.
3103 * mi/mi-main.c: Don't handle EXEC_ERROR.
3105 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3107 * record.c: Include event-loop.h, inf-loop.h.
3108 (record_beneath_to_async): New global.
3109 (tmp_to_async): New global.
3110 (record_async_inferior_event_token): New global.
3111 (record_open_1): Don't error out if async is enabled.
3112 (record_open): Handle to_async. Create an async event source in
3114 (record_close): Delete the async event source.
3115 (record_resumed): New global.
3116 (record_execution_dir): New global.
3117 (record_resume, record_core_resume): Set them. Register the
3118 target on the event loop.
3119 (record_wait): Rename to ...
3120 (record_wait_1): ... this. Add more debug output. Handle
3121 TARGET_WNOHANG, and the target beneath returning
3122 TARGET_WAITKIND_IGNORE.
3123 (record_wait): Reimplement on top of record_wait_1.
3124 (record_async_mask_value): New global.
3125 (record_async, record_async_mask, record_can_async_p)
3126 (record_is_async_p, record_execution_direction): New functions.
3127 (init_record_ops, init_record_core_ops): Install new methods.
3128 * infrun.c (fetch_inferior_event): Temporarily switch the global
3129 execution direction to the direction the target was going.
3130 (execution_direction): Change type to int.
3131 * target.c (default_execution_direction): New function.
3132 (update_current_target): Inherit and de_fault
3133 to_execution_direction.
3134 * target.h (struct target_ops) <to_execution_direction>: New
3136 (target_execution_direction): New macro.
3137 * inferior.h (execution_direction): Change type to int.
3139 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3141 * infcall.c (call_function_by_hand): Don't allow calling functions
3142 in reverse execution mode.
3144 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3146 * infcmd.c (finish_command): Allow async finish in reverse.
3148 2011-05-26 Yao Qi <yao@codesourcery.com>
3150 * gdb_thread_db.h: Delete. Move to ...
3151 * common/gdb_thread_db.h: ... here.
3153 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3155 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3156 function's entry point instead of a manually managed momentary
3157 breakpoint, and only ever issue one proceed call.
3158 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3159 doing a reverse-finish, switch to stepi mode, to do another step.
3160 (insert_step_resume_breakpoint_at_sal): Make public.
3161 (normal_stop): No need to save function value return registers if
3163 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3165 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3167 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3168 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3169 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3171 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3172 step-resume breakpoints.
3173 (print_it_typical): Handle bp_hp_step_resume.
3174 (bpstat_what): Ditto.
3175 (bptype_string): Ditto.
3176 (print_one_breakpoint_location): Ditto.
3177 (allocate_bp_location): Ditto.
3179 (breakpoint_re_set_one): Ditto.
3180 * infrun.c (handle_inferior_event): Adjust. Split
3181 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3182 BPSTAT_WHAT_HP_STEP_RESUME.
3183 (insert_step_resume_breakpoint_at_sal): Rename to ...
3184 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3185 parameter. Handle it.
3186 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3187 insert_step_resume_breakpoint_at_sal_1.
3188 (insert_step_resume_breakpoint_at_frame): Rename to ...
3189 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3190 set a high-priority step-resume breakpoint.
3191 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3192 (insert_step_resume_breakpoint_at_caller): Ditto.
3194 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3196 * breakpoint.c (iterate_over_related_breakpoints): New.
3197 (do_map_delete_breakpoint): New.
3198 (delete_command): Pass do_map_delete_breakpoint to
3199 map_breakpoint_numbers.
3200 (do_disable_breakpoint): New.
3201 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3203 (do_enable_breakpoint): Rename to ...
3204 (enable_breakpoint_disp): ... this.
3205 (enable_breakpoint): Adjust.
3206 (do_enable_breakpoint): New.
3207 (enable_once_breakpoint): Delete.
3208 (do_map_enable_breakpoint): New.
3209 (do_map_enable_once_breakpoint): New.
3210 (enable_once_command, enable_delete_command)
3211 (delete_trace_command): Iterate over the breakpoint's related
3214 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3216 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3217 for ALPHA_ZERO_REGNUM.
3218 (alpha_supply_int_regs): Explicitly supply zero as the value for
3219 ALPHA_ZERO_REGNUM in the register cache.
3220 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3222 2011-05-26 Yao Qi <yao@codesourcery.com>
3224 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3226 2011-05-26 Tristan Gingold <gingold@adacore.com>
3228 * symfile.h (struct dwarf2_section_names): New type.
3229 (struct dwarf2_debug_sections): New type.
3230 (dwarf2_has_info): Add parameter.
3231 * dwarf2read.c (dwarf2_elf_names): New variable.
3232 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3233 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3234 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3235 (dwarf2_has_info): Add names parameter. Pass names
3236 to dwarf2_locate_sections.
3237 (section_is_p): Rewrite using the names parameter.
3238 (dwarf2_locate_sections): Use section names from the names parameter.
3239 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3240 * elfread.c (read_psyms): Ditto.
3241 * machoread.c (macho_symfile_read): Ditto.
3243 2011-05-25 Andreas Schwab <schwab@redhat.com>
3246 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3248 2011-05-24 Keith Seitz <keiths@redhat.com>
3251 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3252 (decode_compound): Unconditionally call keep_name_info.
3254 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3256 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3257 scope, clear its command list.
3258 (map_breakpoint_numbers): Don't walk the related breakpoints list
3261 2011-05-24 Tom Tromey <tromey@redhat.com>
3263 * MAINTAINERS: Move Jim Blandy to past maintainers.
3265 2011-05-24 Tristan Gingold <gingold@adacore.com>
3267 * symfile.h (enum dwarf2_section_enum): New type.
3268 (dwarf2_get_section_info): New prototype.
3269 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3270 section_name by sect. Use a switch to select the info.
3271 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3272 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3274 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3276 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3277 shared library event breakpoint if there's no execution.
3279 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3281 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3282 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3284 2011-05-23 Tom Tromey <tromey@redhat.com>
3286 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3289 2011-05-23 Doug Evans <dje@google.com>
3291 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3292 entry for RuntimeError to doc string.
3294 2011-05-23 Jerome Guitton <guitton@adacore.com>
3296 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3297 sequence for probing loops.
3299 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3301 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3304 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3306 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3307 zero as the value for %g0 in the register cache.
3308 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3309 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3311 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3313 * infrun.c (proceed): Set previous_inferior_ptid here.
3314 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3315 inferior_ptid, not null_ptid.
3316 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3317 (fetch_inferior_event): Nor here.
3319 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3321 * inf-loop.c (inferior_event_handler): Only output a message if
3324 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3326 * MAINTAINERS: Update my e-mail address.
3328 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3330 * infrun.c (proceed): Switch the inferior event loop to
3331 INF_EXEC_COMPLETE if the target refused to resume from a
3334 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3336 * infcmd.c: Include "inf-loop.h".
3337 (step_once): When stepping into an inline subroutine, pretend the
3338 target has run. If the target can async, switch the inferior
3339 event loop to INF_EXEC_COMPLETE.
3340 * inferior.h (user_visible_resume_ptid): Declare.
3341 * infrun.c (user_visible_resume_ptid): New function, factored out
3344 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3345 that the current thread is running. Merge async and sync
3348 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3350 * infcmd.c (step_1): Simplify synchronous case.
3352 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3354 * tracepoint.c: Include exceptions.h.
3355 (TFILE_PID): Move higher in file.
3356 (tfile_open): Delay pushing the tfile target until we're assured
3357 the tfile header is present in the file. Wrap reading the initial
3358 newline-terminated lines in TRY_CATCH. Pop the target if the
3359 initial setup failed. Add the tfile's thread immediately
3360 aftwards, before any non-essential setup. Don't skip
3361 post_create_inferior if there are no traceframes present in the
3363 (tfile_close): Remove redundant check for null before xfree call.
3364 (tfile_thread_alive): New function.
3365 (init_tfile_ops): Register it as to_thread_alive callback.
3367 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3369 * tracepoint.c (tfile_open): Delete #if 0'd code.
3371 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3373 Fix -readnow for -gdwarf-4 unused type units.
3374 * dwarf2read.c (struct signatured_type): Remove the field offset.
3375 (create_signatured_type_table_from_index): Remove its initialization.
3376 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3377 instead. Add a complaint call.
3378 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3379 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3380 (lookup_signatured_type_at_offset, read_signatured_type)
3381 (write_one_signatured_type): Update the field for per_cu.
3383 2011-05-19 Tom Tromey <tromey@redhat.com>
3385 * python/py-inferior.c (python_inferior_exit): Use
3387 (python_on_resume): Likewise.
3389 2011-05-19 Matt Rice <ratmice@gmail.com>
3391 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3393 2011-05-19 Hui Zhu <teawater@gmail.com>
3395 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3397 2011-05-19 Hui Zhu <teawater@gmail.com>
3399 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3401 2011-05-18 Tom Tromey <tromey@redhat.com>
3403 * dwarf2read.c (dwarf2_add_field): Constify.
3404 * value.c (value_static_field): Constify.
3405 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3407 * ax-gdb.c (gen_static_field): Constify
3409 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * linux-nat.c (kill_callback): Use SIGKILL first.
3413 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3415 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3417 2011-05-18 Tom Tromey <tromey@redhat.com>
3419 * value.c (value_fn_field): Constify.
3420 * symtab.c (gdb_mangle_name): Constify.
3421 * stabsread.c (update_method_name_from_physname): Make 'physname'
3423 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3424 const. Use explicit fputc_filtered loop.
3425 (pascal_type_print_base): Constify.
3426 * p-lang.h (pascal_type_print_method_args): Update.
3427 * linespec.c (add_matching_methods): Constify.
3428 (add_constructors): Likewise.
3429 * jv-typeprint.c (java_type_print_base): Constify.
3430 * gdbtypes.h (struct cplus_struct_type)
3431 <fn_fieldlist.fn_field.physname>: Now const.
3432 * dwarf2read.c (compute_delayed_physnames): Constify.
3433 (dwarf2_add_member_fn): Likewise.
3434 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3436 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3438 * infrun.c (resume): Mention which is the current thread, and its
3439 current PC in debug output.
3440 (prepare_to_proceed): Mention the thread switching in debug
3443 2011-05-18 Tom Tromey <tromey@redhat.com>
3445 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3446 path check. Use xmalloc and cleanups.
3447 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3449 2011-05-17 Tom Tromey <tromey@redhat.com>
3451 * cp-valprint.c (cp_print_value_fields): Catch errors from
3454 2011-05-17 Tom Tromey <tromey@redhat.com>
3456 * dwarf2read.c (dwarf2_get_die_type): Call
3457 get_die_type_at_offset.
3458 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3459 get_base_type function.
3461 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3463 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3466 2011-05-16 Doug Evans <dje@google.com>
3468 * python/py-auto-load.c (source_section_scripts): Mention objfile
3471 2011-05-15 Doug Evans <dje@google.com>
3473 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3474 (try_thread_db_load_from_pdir): Call it. If unable to find
3475 libthread_db in directory of libpthread, see if we're looking at
3476 the separate-debug-info copy.
3478 * python/py-autoload.c (print_script): Print "Missing" instead of
3479 "No" for missing scripts.
3480 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3482 2011-05-13 Doug Evans <dje@google.com>
3484 * ui-file.c (stdio_file_write_async_safe): Add comment.
3486 2011-05-14 Hui Zhu <teawater@gmail.com>
3488 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3490 2011-05-13 Doug Evans <dje@google.com>
3492 Support $pdir and $sdir in libthread-db-search-path.
3493 * NEWS: Mention $sdir,$pdir.
3494 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3495 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3496 (try_thread_db_load_from_sdir): New function.
3497 (try_thread_db_load_from_dir): New function.
3498 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3499 system directories if search of libthread-db-search-path fails,
3500 that is now done via $sdir.
3501 (has_libpthread): New function.
3502 (thread_db_load): Remove search for libthread_db in directory of
3503 libpthread, that is now done via $pdir.
3505 * NEWS: Mention "info auto-load-scripts".
3506 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3507 script_not_found_warning_printed.
3508 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3509 all callers updated. Initialize script_not_found_warning_printed.
3510 (get_auto_load_pspace_data_for_loading): New function.
3511 (maybe_add_script): New function.
3512 (source_section_scripts): Simplify. Only print one warning regardless
3513 of the number of auto-load scripts not found.
3514 (clear_section_scripts): Clear script_not_found_warning_printed.
3515 (auto_load_objfile_script): Record script in hash table.
3516 (count_matching_scripts): New function.
3517 (maybe_print_script): Renamed from maybe_print_section_script, all
3518 callers updated. Rewrite to use ui_out_*.
3519 (info_auto_load_scripts): Renamed from
3520 maintenance_print_section_scripts, all callers updated.
3521 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3522 renamed as "info auto-load-scripts".
3524 2011-05-13 Tom Tromey <tromey@redhat.com>
3526 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3527 (read_sleb128): Likewise.
3529 2011-05-13 Tom Tromey <tromey@redhat.com>
3531 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3534 2011-05-13 Doug Evans <dje@google.com>
3536 * linux-nat.c (debug_linux_nat_async): Delete.
3537 Replace all references to use debug_linux_nat instead.
3538 (show_debug_linux_nat_async): Delete.
3539 (sigchld_handler): Call ui_file_write_async_safe instead of
3541 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3542 * ui-file.c (struct ui_file): New member to_write_async_safe.
3543 (null_file_write_async_safe): New function.
3544 (ui_file_write_async_safe): New function.
3545 (set_ui_file_write_async_safe): New function.
3546 (ui_file_new): Initialize to_write_async_safe.
3547 (stdio_file_write_async_safe): New function.
3548 (struct stdio_file): New member fd.
3549 (stdio_file_new): Initialize to_write_async_safe, fd.
3550 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3552 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3553 (set_ui_file_write_async_safe): Declare.
3554 (ui_file_write_async_safe): Declare.
3556 2011-05-13 Tom Tromey <tromey@redhat.com>
3558 * utils.c (do_value_free): New function.
3559 (make_cleanup_value_free): Likewise.
3560 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3562 (dwarf2_loc_desc_needs_frame): Call
3563 make_cleanup_value_free_to_mark.
3564 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3565 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3567 (new_dwarf_expr_context): Don't call value_mark.
3568 * dwarf2-frame.c (execute_stack_op): Call
3569 make_cleanup_value_free_to_mark.
3570 * defs.h (make_cleanup_value_free): Declare.
3572 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3574 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3575 prepare_execute_command.
3576 * top.c (prepare_execute_command): Return cleanup.
3577 (execute_command): Use cleanup from prepare_execute_command.
3578 * top.h (prepare_execute_command): Change prototype to return
3580 * defs.h (struct value): Add opaque declaration.
3581 (make_cleanup_value_free_to_mark): Add prototype.
3582 * utils.c (do_value_free_to_mark): New function.
3583 (make_cleanup_value_free_to_mark): Likewise.
3585 2011-05-12 Tom Tromey <tromey@redhat.com>
3587 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3588 cast left-hand-side to unsigned.
3590 2011-05-12 Tom Tromey <tromey@redhat.com>
3593 * value.h (value_from_contents): Declare.
3594 * value.c (value_from_contents): New function.
3595 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3596 (dwarf2_get_die_type): New function.
3597 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3598 (allocate_piece_closure): Acquire reference to values.
3599 (read_pieced_value): Update for value-based expressions.
3600 (write_pieced_value): Likewise.
3601 (free_pieced_value_closure): Call value_free as needed.
3602 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3603 Update for value-based expressions.
3604 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3605 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3606 <get_base_type>: New field.
3607 (struct dwarf_expr_piece) <v.value>: Change type.
3608 <v.regno>: New field.
3609 (struct dwarf_expr_context) <mark>: New field.
3610 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3611 (dwarf_expr_pop, dwarf_expr_push): Remove.
3612 (dwarf_expr_push_address): Declare.
3613 * dwarf2expr.c (dwarf_arch_cookie): New global.
3614 (struct dwarf_gdbarch_types): New.
3615 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3617 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3619 (dwarf_expr_push_address): New function.
3620 (dwarf_expr_pop): Now static.
3621 (dwarf_expr_fetch): Change return type.
3622 (dwarf_require_integral): New function.
3623 (dwarf_expr_fetch): Simplify.
3624 (add_piece): Update.
3625 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3627 (execute_stack_op) <sign_ext>: Remove.
3628 Use values for DWARF stack.
3629 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3630 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3632 (_initialize_dwarf2expr): New function.
3633 (add_piece): Update.
3634 (new_dwarf_expr_context): Set new field.
3635 (free_dwarf_expr_context): Call value_free_to_mark.
3636 * dwarf2-frame.c (no_base_type): New function.
3637 (execute_stack_op): Set get_base_type field. Update.
3639 2011-05-12 Tom Tromey <tromey@redhat.com>
3641 * dwarf2read.c (read_common_block): Fix formatting.
3643 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3645 * breakpoint.c (disable_breakpoint): Disable all locations
3646 associated with a tracepoint on target if a trace experiment is
3648 (disable_command): Disable a specific tracepoint location on target if
3649 a trace experiment is running.
3650 (do_enable_breakpoint): Enable all locations associated with a
3651 tracepoint on target if a trace experiment is running.
3652 (enable_command) Enable a specific tracepoint location on target if a
3653 trace experiment is running.
3654 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3655 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3656 to_disable_tracepoint.
3657 * target.h: Add declaration of struct bp_location.
3658 (struct target_ops): Add new functions
3659 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3660 to_disable_tracepoint to target operations.
3661 (target_supports_enable_disable_tracepoint): New macro.
3662 (target_enable_tracepoint): New macro.
3663 (target_disable_tracepoint): New macro.
3664 * remote.c (struct remote_state): Add new field.
3665 (remote_enable_disable_tracepoint_feature): New.
3666 (remote_protocol_features): Add new entry.
3667 (remote_supports_enable_disable_tracepoint): New.
3668 (remote_enable_tracepoint): New.
3669 (remote_disable_tracepoint): New.
3670 (init_remote_ops): Add remote_enable_tracepoint,
3671 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3672 to remote operations.
3673 * tracepoint.c (start_tracing): Allow tracing to start without any
3674 tracepoints enabled with just a warning if they can be re-enabled
3676 * NEWS: Add news item for the new behaviour of the enable and disable
3677 GDB commands when applied to tracepoints.
3678 Add news items for the new remote packets QTEnable and QTDisable.
3680 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 * config.in: Regenerate.
3683 * configure: Regenerate.
3684 * configure.ac <--with-system-readline> (for readline_echoing_p):
3686 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3687 (tui_old_rl_echoing_p): ... here.
3688 (tui_setup_io): Rename extern declaration readline_echoing_p to
3689 _rl_echoing_p. Adjust assignments for the both renames.
3691 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3693 * symtab.c (lookup_symtab): Run cleanup before returning.
3695 2011-05-11 Tom Tromey <tromey@redhat.com>
3697 * dwarf2read.c (handle_data_member_location): New function.
3698 (dwarf2_add_field): Use it.
3699 (read_common_block): Likewise.
3701 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Make addrs->SECTINDEX always defined.
3704 * symfile.c (relative_addr_info_to_section_offsets): Check for
3705 SECTINDEX -1, not for zero ADDR.
3706 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3707 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3708 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3711 2011-05-10 Doug Evans <dje@google.com>
3713 * linux-thread-db.c: Whitespace cleanup.
3714 (try_thread_db_load_1): Fix comment.
3716 * linux-thread-db.c (set_libthread_db_search_path): New function.
3717 (_initialize_thread_db): Add setter for libthread-db-search-path.
3719 2011-05-09 Doug Evans <dje@google.com>
3721 * NEWS: Mention --with-iconv-bin.
3722 * configure.ac: New option --with-iconv-bin.
3723 * configure: Regenerate.
3724 * config.in: Regenerate.
3725 * defs.h (relocate_gdb_directory): Declare.
3726 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3727 removed progname parameter, and exported. All callers updated.
3728 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3730 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3731 adding missing call to restore_child_signals_mask.
3733 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3735 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3737 * infrun.c (proceed, start_remote): Adjust.
3738 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3739 and adjust to not handle it.
3740 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3741 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3742 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3743 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3744 * windows-nat.c (do_initial_windows_stuff): Adjust.
3745 * infcmd.c (attach_command): Adjust.
3746 (notice_new_inferior): Adjust.
3748 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3750 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3751 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3752 * spu-tdep.c (op_selb): Use correct value.
3754 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3756 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3757 "parent" parameter to symbol_file_add_from_bfd call.
3759 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3760 Thiago Jung Bauermann <bauerman@br.ibm.com>
3762 Implement support for PowerPC BookE masked watchpoints.
3763 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3765 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3766 method. Initialize to NULL in all existing breakpoint_ops instances.
3767 (struct breakpoint) <hw_wp_mask>: New field.
3768 * breakpoint.c (is_masked_watchpoint): Add prototype.
3769 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3770 breakpoint's breakpoint_ops.works_in_software_mode if available.
3771 (watchpoints_triggered): Handle the case of a hardware masked
3773 (watchpoint_check): Likewise.
3774 (works_in_software_mode_watchpoint): New function.
3775 (insert_masked_watchpoint, remove_masked_watchpoint)
3776 (resources_needed_masked_watchpoint)
3777 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3778 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3779 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3781 (masked_watchpoint_breakpoint_ops): New structure.
3782 (watch_command_1): Check for the existence of the `mask' parameter.
3783 Set b->ops according to the type of hardware watchpoint being created.
3784 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3785 (ppc_linux_remove_mask_watchpoint)
3786 (ppc_linux_masked_watch_num_registers): New functions.
3787 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3788 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3789 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3790 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3791 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3792 (target_masked_watch_num_registers): New functions.
3793 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3794 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3796 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3797 (target_masked_watch_num_registers): Add prototypes.
3799 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3802 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3803 (producer_is_gcc_ge_4_0): New function.
3804 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3805 symtab->language code.
3806 (var_decode_location): Set cu->has_loclist.
3807 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3808 skip. Intialize force_skip from locations_valid. Move the prologue
3809 skipping code into two passes.
3810 * symtab.h (struct symtab): Make the primary field a bitfield. New
3811 field locations_valid.
3813 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3815 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3816 (classify_inner_name): Call cp_lookup_nested_type with
3818 * cp-namespace.c (cp_lookup_nested_type): New variable
3819 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3820 type_name_no_tag_or_error with saved_parent_type.
3821 * dwarf2read.c (load_partial_dies): Read in any children of
3822 DW_TAG_typedef with complaint in such case.
3823 * gdbtypes.c (type_name_no_tag_or_error): New function.
3824 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3825 * valops.c (destructor_name_p): New comment for parameter type. Remove
3826 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3827 * value.h (destructor_name_p): Remove type const.
3829 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3831 * symtab.c (compare_symbol_name): New function.
3832 (completion_list_add_name, expand_partial_symbol_name): Call it,
3833 remove the variable ncmp.
3834 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3837 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3839 Demote to sw watchpoint only in update_watchpoint.
3840 * breakpoint.c (update_watchpoint): Change between software and
3841 hardware watchpoint for all kinds of watchpoints, not just
3842 read/write ones. Determine b->exact value here instead of
3843 in watch_command_1. Error out if there are not enough resources
3844 for a read or access hardware watchpoint.
3845 (watch_command_1): Remove logic of checking whether there are
3846 enough resources available, since update_watchpoint will do that
3847 work now. Don't set b->exact here. Catch exceptions thrown by
3848 update_watchpoint and delete the watchpoint.
3849 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3850 Use target_exact_watchpoints instead.
3851 (delete_breakpoint): Notify observers only if deleted watchpoint
3852 has a breakpoint number assigned to it.
3854 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3856 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3858 2011-05-05 Jerome Guitton <guitton@adacore.com>
3860 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3862 (i386_stack_tramp_frame_unwind): New static global.
3863 (i386_match_pattern): New function, extracted from i386_match_insn.
3864 (i386_match_insn): Use i386_match_pattern.
3865 (i386_match_insn_block): New function.
3866 (i386_tramp_chain_in_reg_insns)
3867 (i386_tramp_chain_on_stack_insns): New static variables.
3868 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3871 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3873 * configure.host (xscale*): Don't handle target.
3874 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3877 2011-05-04 Yao Qi <yao@codesourcery.com>
3879 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3881 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3884 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3885 | * elfread.c (elf_symtab_read): Stop memory leak.
3887 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3889 * nto-tdep.c (nto_target): Replace deprecated call to
3890 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3892 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3894 Fix false GCC warning.
3895 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3897 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3899 * breakpoint.c (update_watchpoint): Move code to change
3900 the enable state of breakpoint from here ...
3901 (do_enable_breakpoint): ... to here.
3903 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3905 * valprint.c (val_print_array_elements): Fixed poor performance
3906 of printing very large arrays with repeat_count_threshold set
3907 to unlimited. New comment.
3909 2011-04-29 Tom Tromey <tromey@redhat.com>
3911 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3912 (mi_parse): Likewise.
3913 * breakpoint.c (break_range_command): Use sizeof char*, not
3915 (create_breakpoint): Likewise.
3916 (parse_breakpoint_sals): Likewise.
3918 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3920 * linux-nat.c (linux_child_remove_fork_catchpoint)
3921 (linux_child_remove_vfork_catchpoint)
3922 (linux_child_remove_exec_catchpoint): New functions.
3923 (linux_target_install_ops): Install them.
3925 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3929 * varobj.c (install_default_visualizer): Do not install a
3930 visualizer if the varobj is CPLUS_FAKE_CHILD.
3931 (construct_visualizer): Likewise.
3933 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3936 case insensitive comparison.
3938 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3940 * infrun.c (proceed): Revert previous change.
3941 (resume): Instead, handle the case of signal delivery while stepping
3942 off a breakpoint location here, and only if software single-stepping
3943 is used. Handle nested signals.
3945 2011-04-28 Yao Qi <yao@codesourcery.com>
3947 * arm-tdep.c (copy_unmodified): Rename to ...
3948 (arm_copy_unmodified): .. this. New.
3949 (copy_preload): Move common part to ...
3950 (install_preload): .. this. New.
3951 (arm_copy_preload): New.
3952 (copy_preload_reg): Move common part to ...
3953 (install_preload_reg): ... this. New.
3954 (arm_copy_preload_reg): New.
3955 (copy_b_bl_blx): Move common part to ...
3956 (install_b_bl_blx): .. this. New.
3957 (arm_copy_b_bl_blx): New.
3958 (copy_bx_blx_reg): Move common part to ...
3959 (install_bx_blx_reg): ... this. New.
3960 (arm_copy_bx_blx_reg): New.
3961 (copy_alu_reg): Move common part to ...
3962 (install_alu_reg): ... this. New.
3963 (arm_copy_alu_reg): New.
3964 (copy_alu_shifted_reg): Move common part to ...
3965 (install_alu_shifted_reg): ... this. New.
3966 (copy_ldr_str_ldrb_strb): Move common part to ...
3967 (install_ldr_str_ldrb_strb): ... this. New.
3968 (arm_copy_ldr_str_ldrb_strb): New.
3969 (copy_copro_load_store): Move some common part to ...
3970 (install_copy_copro_load_store): ... this. New.
3971 (arm_copy_copro_load_store): New.
3973 (arm_copy_svc): Renamed from copy_svc.
3974 (copy_undef): Delete.
3975 (arm_copy_undef): Renamed from copy_undef.
3976 (decode_ext_reg_ld_st): Delete.
3977 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3978 (decode_svc_copro): Delete.
3979 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3980 (copy_copro_load_store, copy_alu_imm): update callers.
3981 (copy_extra_ld_st, copy_block_xfer): Likewise.
3982 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3983 (decode_miscellaneous, decode_dp_misc): Likewise.
3984 (decode_ld_st_word_ubyte, decode_media): Likewise.
3985 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3986 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3987 (decode_unconditional, decode_miscellaneous): Likewise.
3988 (decode_media, decode_b_bl_ldmstm): Likewise.
3989 (arm_process_displaced_insn): Likewise..
3990 (decode_misc_memhint_neon): Delete.
3991 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3992 (decode_miscellaneous): Delete.
3993 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3994 (decode_dp_misc): Delete.
3995 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3996 (decode_ld_st_word_ubyte): Delete.
3997 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3998 (decode_media): Delete.
3999 (arm_decode_media): Renamed from decode_media.
4000 (decode_b_bl_ldmstm): Delete.
4001 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4002 (decode_ext_reg_ld_st): Delete.
4003 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4004 (decode_unconditional): Delete.
4005 (arm_decode_unconditional): Renamed from decode_unconditional.
4007 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4009 Case insensitive lookups implementation.
4010 * dwarf2read.c: Include ctype.h.
4011 (struct mapped_index): New field version.
4012 (mapped_index_string_hash): New parameter index_version. New comment
4013 for it. Call tolower appropriately.
4014 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4015 Choose the right index version for mapped_index_string_hash.
4016 (dwarf2_read_index): Support also the index version 5. Initialize the
4017 new struct mapped_index field version.
4018 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4019 (find_slot): Explain the version needs. Pass INT_MAX for the new
4021 (write_psymtabs_to_index): Produce version 5.
4022 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4023 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4024 * psymtab.c (lookup_partial_symbol): Find the
4025 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4027 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4029 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4030 (completion_list_add_name): New variable ncmp, initialize it, use it.
4031 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4032 * utils.c (strcmp_iw): Support case_sensitive_off.
4033 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4034 New function comment part. New variables saved_string1,
4035 saved_string2 and case_pass. Add a proper second pass.
4037 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4039 Replace re_comp/re_exec by regcomp/regexec.
4040 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4041 (search_symbols_name_matches): Use them, use regexec.
4042 (search_symbols): New variable retval_chain, adjust the use of
4043 old_chain against it. Replace re_comp by regcomp. Use the new struct
4044 search_symbols_data fields, use regexec instead of re_exec.
4046 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 Format the code for the next patch.
4049 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4050 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4051 New variables c1 and c2.
4053 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4055 * infrun.c (proceed): Do not single-step into signal delivery
4056 when stepping off a breakpoint location.
4057 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4058 (insert_step_resume_breakpoint_at_caller): Likewise.
4059 (insert_step_resume_breakpoint_at_sal): Likewise.
4060 (insert_longjmp_resume_breakpoint): Likewise.
4062 2011-04-27 Yao Qi <yao@codesourcery.com>
4064 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4066 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4068 * procfs.c (procfs_pass_signals): Fix advance declaration.
4070 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4072 * target.h (struct target_ops): Remove to_notice_signals;
4073 add to_pass_signals.
4074 (target_notice_signals): Remove.
4075 (target_pass_signals): Add prototype.
4076 * target.c (update_current_target): Remove to_notice_signals;
4077 mention to_pass_signals.
4078 (target_pass_signals): New function.
4079 (debug_to_notice_signals): Remove.
4080 (setup_target_debug): Do not install debug_to_notice_signals.
4082 * infrun.c (signal_pass): New global.
4083 (resume): Call target_pass_signals.
4084 (handle_inferior_event): Report all signals while stepping over
4085 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4086 are re-inserted when stepping over a signal handler.
4087 (signal_cache_update): New function.
4088 (signal_stop_update): Call it.
4089 (signal_print_update): Likewise.
4090 (signal_pass_update): Likewise.
4091 (handle_command): Call signal_cache_update and target_pass_signals
4092 instead of target_notice_signals.
4093 (_initialize_infrun): Initialize signal_pass.
4095 * linux-nat.c (pass_mask): New global.
4096 (linux_nat_pass_signals): New function.
4097 (linux_nat_create_inferior): Report all signals initially.
4098 (linux_nat_attach): Likewise.
4099 (linux_nat_resume): Use pass_mask to decide whether to directly
4100 handle an inferior signal.
4101 (linux_nat_wait_1): Likewise.
4102 (linux_nat_add_target): Install to_pass_signals callback.
4104 * nto-procfs.c (notice_signals): Remove.
4105 (procfs_resume): Do not call notice_signals.
4106 (procfs_notice_signals): Remove.
4107 (procfs_pass_signals): New function.
4108 (init_procfs_ops): Install to_pass_signals callback instead of
4109 to_notice_signals callback.
4110 (_initialize_procfs): Report all signals initially.
4112 * procfs.c (procfs_notice_signals): Remove.
4113 (procfs_pass_signals): New function.
4114 (procfs_target): Install to_pass_signals callback instead of
4115 to_notice_signals callback.
4116 (register_gdb_signals): Remove.
4117 (procfs_debug_inferior): Report all signals initially.
4118 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4120 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4121 parameters; use them instead of calling signal_..._state routines.
4122 (remote_notice_signals): Remove.
4123 (remote_start_remote): Report all signals initially.
4124 (remote_resume): Do not call remote_pass_signals.
4125 (_initialize_remote): Install to_pass_signals callback instead of
4126 to_notice_signals callback.
4128 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4130 * breakpoint.c (user_settable_breakpoint): Delete.
4131 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4132 (delete_command): Check user_breakpoint_p instead of looking at
4133 the breakpoint's type.
4134 (disable_command): Ditto.
4135 (enable_command): Ditto.
4136 (delete_trace_command): Use user_breakpoint_p instead of looking
4137 at the breakpoint number directly. When checking if there are
4138 user visible tracepoints, in order to know whether to ask the user
4139 for confirmation, check whether the breakpoint is actually a
4142 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4144 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4147 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4149 MI breakpoint notifications.
4151 * annotate.c (breakpoint_changed): Adjust parameter type.
4152 * breakpoint.c (set_breakpoint_condition): Adjust to change
4153 in breakpoint_modified type.
4154 (breakpoint_set_commands): Likewise.
4155 (do_map_commands_command): Likewise.
4156 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4157 changed after bumping hit count.
4158 (bpstat_stop_status): Likewise.
4159 (print_one_breakpoint_location): Don't wrap in tuple here.
4160 (print_one_breakpoint): Always print individual locations.
4161 For locations, use unnamed tuple.
4162 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4164 (create_catchpoint, create_syscall_event_catchpoint): Call
4165 breakpoint_created obsever.
4166 (mention): Don't call breakpoint_created observer.
4167 (create_breakpoint_sal): Call breakpoint_created observer.
4168 (create_breakpoint, watch_command_1): Likewise.
4169 (create_ada_exception_breakpoint): Likewise.
4170 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4171 (locations_are_equal): New.
4172 (update_breakpoint_locations): If locations were changed, notify.
4173 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4174 Call breakpoint_modified observer.
4176 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4177 (mi_cmd_break_insert): Don't set observers for modify and delete.
4178 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4179 (mi_breakpoint_created, mi_breakpoint_deleted)
4180 (mi_breakpoint_modified): New.
4181 (mi_interpreter_init): Hook the above.
4182 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4183 while -break-* commands are executing.
4184 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4185 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4187 (mi_ui_out_impl): Hook in mi_redirect.
4188 (mi_field_skip): True to the name, skip the field, don't output
4189 a field with an empty value.
4191 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4192 (gdbpy_breakpoint_deleted): Adjust.
4193 * tui/tui-hooks.c (tui_event_create_breakpoint)
4194 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4196 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4198 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4199 (procfs_remove_hw_watchpoint): Likewise.
4201 2011-04-26 Michael Walle <michael@walle.cc>
4203 * remote.c (remote_start_remote): Ack packet after sending the
4206 2011-04-26 Yao Qi <yao@codesourcery.com>
4208 * linux-nat.c: Move common macros to ...
4209 Include linux-ptrace.h.
4210 * common/linux-ptrace.h: ... here. New.
4212 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4214 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4215 !objfile_has_partial_symbols. New comment.
4216 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4217 SYM_READ_PSYMBOLS is not present. Extend the comment.
4218 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4220 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4222 * defs.h (ENUM_BITFIELD): Remove.
4224 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4225 Eli Zaretskii <eliz@gnu.org>
4227 * NEWS: Document the new gdbserver --once option.
4229 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4231 * MAINTAINERS: Update my email address.
4233 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4235 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4236 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4237 function call if __STDC_ISO_10646__ macro is defined.
4238 (intermediate_encoding): New prototype.
4239 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4240 to generate compile time error for unsupported gdb_wchar_t size.
4241 (ENDIAN_SUFFIX): New macro.
4242 (intermediate_encoding): New function.
4244 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4246 * ada-lang.c (struct add_partial_datum): Update the comment for
4247 expand_partial_symbol_name.
4248 (ada_add_partial_symbol_completions): Rename to ...
4249 (ada_expand_partial_symbol_name): ... here, change return type, update
4250 function comment, call symbol_completion_match instead of
4251 symbol_completion_add.
4252 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4253 and ada_expand_partial_symbol_name.
4254 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4256 (dw2_map_symbol_names): Remove.
4257 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4258 * psymtab.c (map_symbol_names_psymtab): Remove.
4259 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4260 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4262 (psym_functions): Unlist map_symbol_names_psymtab.
4263 (map_partial_symbol_names): Rename to ...
4264 (expand_partial_symbol_names): ... here, change the FUN type, call
4265 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4266 * psymtab.h (map_partial_symbol_names): Rename to ...
4267 (expand_partial_symbol_names): ... here, change the FUN type.
4268 * symfile.h (struct quick_symbol_functions): Update the description of
4269 expand_symtabs_matching. Remove map_symbol_names.
4270 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4271 (struct add_name_data): Update the comment for
4272 expand_partial_symbol_name.
4273 (add_partial_symbol_name): Rename to ...
4274 (expand_partial_symbol_name): ... here. Replace
4275 completion_list_add_name call by strncmp.
4276 (default_make_symbol_completion_list_break_on): Use now
4277 expand_partial_symbol_names and expand_partial_symbol_name.
4278 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4280 2011-04-20 Tom Tromey <tromey@redhat.com>
4282 * dwarf2read.c (save_gdb_index_command): Replace format
4283 documentation with a pointer to the manual.
4285 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4287 * regcache.c: Include remote.h.
4288 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4289 (regcache_dump): Handle regcache_dump_remote.
4290 (maintenance_print_remote_registers): New function.
4291 (_initialize_regcache): Install "maint print remote-registers"
4293 * remote.c (map_regcache_remote_table): New function, factored out
4295 (init_remote_state): ... here.
4296 (remote_register_number_and_offset): New.
4297 * remote.h (remote_register_number_and_offset): Declare.
4299 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4301 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4302 null_ptid, assume and allow a NULL address space, instead of
4303 asking the target for the ptid's address space.
4304 * infrun.c (ptid_is_pid): Remove assertion.
4306 2011-04-19 Tom Tromey <tromey@redhat.com>
4308 * windows-tdep.c (windows_xfer_shared_library):
4309 * windows-nat.c (get_module_name, windows_make_so):
4310 * v850-tdep.c (v850_handle_pushm):
4311 * utils.c (null_cleanup, gdb_realpath):
4312 * ui-out.c (get_next_header):
4313 * tracepoint.c (clear_traceframe_info):
4314 * symtab.c (lookup_symtab):
4315 * serial.h (struct serial_ops):
4316 * mipsread.c (read_alphacoff_dynamic_symtab):
4317 * infcmd.c (print_return_value):
4318 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4319 * f-exp.y (parse_number):
4320 * exceptions.c (catch_exceptions):
4321 * dummy-frame.c (dummy_frame_this_id):
4322 * defs.h (struct cleanup):
4323 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4324 * arm-tdep.c (arm_push_dummy_call):
4325 * amd64-tdep.h (amd64_collect_xsave):
4326 * amd64-tdep.c (amd64_collect_xsave):
4327 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4328 * README (typing): Remove duplicate words.
4329 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4330 * infrun.c (siginfo_value_read): Fix typo.
4331 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4332 * top.c (source_line_number): Add comma.
4334 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4336 * thread.c (any_live_thread_of_process): Prioritize threads
4337 that are not executing.
4338 * gdbthread.h (any_live_thread_of_process): Update comment
4339 as per above change.
4341 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4343 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4344 (scan_xcoff_symtab): Likewise.
4346 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4348 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4351 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4352 Pedro Alves <pedro@codesourcery.com>
4354 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4355 variables to simplify code and avoid == operator at end of
4356 line as this is against GNU coding standards.
4358 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4360 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4361 lm_name to name_lm to avoid conflict with lm_name function.
4363 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4365 ARI fixes: Use only lowercase function name for static functions.
4366 * nto-tdep.c (LM_ADDR): Rename to...
4367 (lm_addr): New function name.
4368 (nto_relocate_section_addresses): Adapt to change above.
4369 * solib-sunos.c (LM_ADDR): Rename to...
4370 (lm_addr): New function name.
4371 (LM_NEXT): Rename to...
4372 (lm_next): New function name.
4373 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4374 function name changes above.
4375 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4376 (lm_addr_from_link_map): New function name.
4377 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4378 (has_lm_dynamic_from_link_map): New function name.
4379 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4380 (lm_dynamic_from_link_map): New function name.
4381 (LM_ADDR_CHECK): Rename to...
4382 (lm_addr_check): New function name.
4383 (LM_NEXT): Rename to...
4384 (lm_next): New function name.
4385 (LM_PREV): Rename to...
4386 (lm_prev): New function name.
4387 (LM_NAME): Rename to...
4388 (lm_name): New function name.
4389 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4390 (ignore_first_link_map_entry): New function name.
4391 (svr4_keep_data_in_core): Adapt to function name changes above.
4392 (svr4_current_sos): Likewise.
4393 (enable_break): Likewise.
4394 (svr4_relocate_section_addresses): Likewise.
4396 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4399 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4400 sprintf. Simplify code and avoid loosing memory.
4401 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4402 (call0_frame_cache): Remove && operator from end of line.
4404 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4406 Fix libraries displacement if they change whether they were prelinked.
4407 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4408 does not match. Comment why.
4410 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 * corelow.c: Include wrapper.h.
4413 (core_open): Call now gdb_target_find_new_threads.
4414 * wrapper.c: Include target.h.
4415 (gdb_target_find_new_threads): New.
4416 * wrapper.h (gdb_target_find_new_threads): New declaration.
4418 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4420 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4421 even if !TARGET_HAS_EXECUTION.
4423 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4425 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4426 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4427 bfd_get_synthetic_symtab.
4428 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4429 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4430 parameter parent, remove the call to add_separate_debug_objfile.
4431 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4432 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4433 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4434 parent, new comment for it, call add_separate_debug_objfile for it.
4435 (symbol_file_add_separate): Pass objfile as the parameter parent,
4436 remove the call to add_separate_debug_objfile.
4437 (symbol_file_add_from_bfd): New parameter parent, pass it.
4438 (symbol_file_add): Pass NULL to the new parameter parent.
4439 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4441 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4443 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4446 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4448 Fix Python access to inlined frames.
4449 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4450 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4452 2011-04-15 Tom Tromey <tromey@redhat.com>
4454 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4456 2011-04-15 Gary Benson <gbenson@redhat.com>
4458 * MAINTAINERS: Add myself to write-after-approval section.
4460 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4462 * remote-sim.c (sim_command_completer): New function.
4463 (_initialize_remote_sim): Set completer to sim_command_completer.
4465 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4467 * breakpoint.c (print_exception_catchpoint): Rename to ...
4468 (print_it_exception_catchpoint): ... this.
4469 (gnu_v3_exception_catchpoint_ops): Update with new name
4470 for print_it_exception_catchpoint.
4472 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4474 * MAINTAINERS: Add myself for write after approval privileges.
4476 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4478 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4480 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4482 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4484 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4486 * breakpoint.c (save_breakpoints): Verify whether
4487 breakpoint_ops.print_recreate is defined before calling it.
4489 2011-04-11 Gary Benson <gbenson@redhat.com>
4491 Fix failure with --enable-maintainer-mode.
4492 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4494 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 * symtab.c (search_symbols): Reorder the KIND description in the
4498 function comment. Remove the unused 4th element of types, types2,
4499 types3 and types4. New gdb_assert on KIND.
4500 (symtab_symbol_info): Remove the unused 4th element of classnames.
4501 New gdb_assert on KIND.
4502 * symtab.h (enum search_domain): New warning in the enum comment.
4503 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4506 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4508 Fix crash of gdb save-index on a STABS file.
4509 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4512 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4514 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4515 * dwarf2read.c: Include ctype.h.
4516 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4518 (dwarf2_add_field): Fix new_field->accessibility by calling
4519 dwarf2_default_access_attribute. Restructure setting accessibility
4521 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4522 is_private and is_protected by calling
4523 dwarf2_default_access_attribute.
4525 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4527 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4528 to the initialization.
4530 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4532 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4535 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4537 Remove support for old Cygwin 1.5 versions.
4538 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4539 function on old Cygwin version.
4540 * windows-nat.c: Remove cygwin version check and always define
4541 __USEWIDE for Cygwin compilation.
4543 2011-04-07 Yao Qi <yao@codesourcery.com>
4545 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4547 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4548 (arm_copy_svc): Remove parameters INSN and TO.
4549 (decode_svc_copro): Update caller.
4550 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4551 from function pointer `copy_svc_os'.
4553 2011-04-07 Yao Qi <yao@codesourcery.com>
4555 * arm-tdep.c (cleanup_branch): Set a correct return address in
4556 LR for ARM and Thumb.
4558 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4561 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4562 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4563 in the function comment, a new note on values compatibility.
4564 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4565 * symtab.h (SYMBOL_HASH_NEXT): New.
4567 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4569 * ppc-linux-nat.c (check_condition): Add len output parameter.
4570 Set it based on the memory region referenced in the condition
4571 expression. Update all callers.
4573 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4575 Fix crash regression on systems featuring .gdb_index.
4576 * objfiles.c (free_objfile): Move the
4577 forget_cached_source_info_for_objfile call earlier. Comment it.
4578 Extend the comment for objfile_free_data.
4580 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4582 Fix regression of displaying the debug format.
4583 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4586 2011-04-04 Tom Tromey <tromey@redhat.com>
4588 * cli/cli-interp.c (struct captured_execute_command_args):
4590 (do_captured_execute_command): Remove.
4591 (safe_execute_command): Use TRY_CATCH.
4592 * cli/cli-script.c (struct wrapped_read_command_file_args):
4594 (wrapped_read_command_file): Remove.
4595 (script_from_file): Use TRY_CATCH.
4596 * exceptions.c (catch_exception): Remove.
4597 * exceptions.h (catch_exception): Remove.
4598 (deprecated_throw_reason): Update comment.
4599 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4600 argument to 'context'.
4601 (mi_execute_command): Use TRY_CATCH.
4602 * remote.c (struct start_remote_args): Remove.
4603 (remote_start_remote): Update; change arguments.
4604 (remote_open_1): Use TRY_CATCH.
4606 2011-04-04 Tom Tromey <tromey@redhat.com>
4608 * tracepoint.c (scope_info): Update.
4609 * symtab.c (decode_line_spec): Update.
4610 * python/python.c (gdbpy_decode_line): Update.
4611 * linespec.h (decode_line_1): Update.
4612 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4613 (decode_compound, find_method, symtab_from_filename)
4614 (decode_variable): Likewise.
4615 * cli/cli-cmds.c (edit_command): Update.
4616 (list_command): Update.
4617 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4619 (create_breakpoint): Update.
4620 (until_break_command): Update.
4621 (addr_string_to_sals): Update.
4622 (decode_line_spec_1): Update.
4624 2011-04-04 Tom Tromey <tromey@redhat.com>
4626 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4627 (do_captured_parse_breakpoint): Remove.
4628 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4629 Use TRY_CATCH directly.
4631 2011-04-04 Tom Tromey <tromey@redhat.com>
4633 * symtab.h (free_symtab): Remove.
4634 (forget_cached_source_info_for_objfile): Declare.
4635 * symmisc.c (free_symtab): Remove.
4636 * source.c (forget_cached_source_info_for_objfile): New function.
4637 (forget_cached_source_info): Use it.
4638 * objfiles.c (free_objfile): Simplify check before calling
4639 clear_current_source_symtab_and_line. Call
4640 forget_cached_source_info_for_objfile.
4642 2011-04-04 Tom Tromey <tromey@redhat.com>
4644 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4645 (new_symtab): Don't set `free_code' on symtab.
4646 (new_linetable): Properly handle size==0.
4647 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4648 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4650 * jv-lang.c (struct jv_per_objfile_data): New.
4651 (jv_per_objfile_free): Free the data.
4652 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4653 (get_java_class_symtab): Set the `dict' field on the
4654 jv_per_objfile_data.
4655 (free_class_block): Remove.
4656 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4659 2011-04-04 Tom Tromey <tromey@redhat.com>
4661 * symfile.c (reread_symbols): Update.
4662 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4664 * objfiles.c (allocate_objfile): Update.
4665 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4667 * cp-namespace.c (lookup_symbol_file): Don't call
4668 lookup_possible_namespace_symbol.
4669 (initialize_namespace_symtab, get_possible_namespace_block)
4670 (free_namespace_block, cp_check_possible_namespace_symbols)
4671 (check_possible_namespace_symbols_loop)
4672 (check_one_possible_namespace_symbol)
4673 (lookup_possible_namespace_symbol): Remove.
4674 (maintenance_cplus_namespace): Replace with notice.
4675 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4677 2011-04-04 Tom Tromey <tromey@redhat.com>
4679 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4680 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4681 * symmisc.c (free_symtab): Don't free debugformat.
4682 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4683 (record_debugformat, record_producer): Document.
4684 * buildsym.c (end_symtab): Don't save debugformat and producer
4686 (end_symtab): Don't free debugformat and producer fields.
4687 (record_debugformat): Don't call xstrdup.
4688 (record_producer): Likewise.
4690 2011-04-04 Tom Tromey <tromey@redhat.com>
4692 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4693 (source_line_charpos, source_charpos_line): Remove.
4695 2011-04-04 Tom Tromey <tromey@redhat.com>
4697 * symtab.h (domain_enum): Split in two...
4698 (enum search_domain): New.
4699 (search_symbols): Update.
4700 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4701 redundant declarations.
4702 (search_symbols): Change 'kind' argument to search_domain.
4704 (print_symbol_info): Likewise.
4705 (symtab_symbol_info): Likewise.
4706 * symfile.h (struct quick_symbol_functions)
4707 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4708 <expand_symtabs_matching>: Likewise.
4709 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4710 (expand_symtabs_matching_via_partial): Update.
4711 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4712 (dw2_expand_symtabs_for_function): Update.
4713 * block.h: Moved anonymous enum...
4714 * defs.h (enum block_enum): ... here. Now named.
4716 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4718 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4719 * version.in: Bump version to 7.3.50.20110403-cvs.
4721 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4723 * NEWS: Create a new section for the next release branch.
4724 Rename the section of the current branch, now that it has
4727 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4729 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4730 for "fpscr" in target description.
4732 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4734 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4735 initialize it. Delay HASH initialization. Strip the part after open
4736 parenthesis for languages with qualifiers. Call do_cleanups.
4738 2011-04-01 Tom Tromey <tromey@redhat.com>
4740 * utils.c (report_command_stats): Don't print `-' for negative
4743 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4745 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4746 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4749 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4751 * breakpoint.h (bpdisp_text): Add declaration.
4752 * breakpoint.c (bpdisp_text): Make non-static.
4753 * ada-lang.c: #include "mi/mi-common.h".
4754 (print_it_exception): Rewrite to improve GDB/MI output.
4756 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4758 * arm-tdep.h (struct address_space): Add forward declaration.
4760 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4762 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4763 * arm-tdep.c (arm_override_mode): New global.
4764 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4765 execution mode heuristics.
4766 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4767 second single-step breakpoint if needed, using
4768 arm_insert_single_step_breakpoint.
4769 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4770 ARM execution mode, do not call thumb_get_next_pc_raw.
4771 (arm_get_next_pc): Encode execution mode in return value. Call
4772 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4773 (arm_insert_single_step_breakpoint): New function.
4774 (arm_software_single_step): Call it.
4775 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4776 argument to return execution mode of sigreturn target.
4777 (arm_linux_syscall_next_pc): Use it.
4778 (arm_linux_copy_svc): Update call.
4779 (arm_linux_software_single_step): Call
4780 arm_insert_single_step_breakpoint.
4782 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4784 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4787 2011-03-31 Tom Tromey <tromey@redhat.com>
4789 * varobj.c (update_dynamic_varobj_children): Properly handle
4790 errors from iterator.
4792 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4794 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4795 struct linkage name twice.
4797 2011-03-31 Tom Tromey <tromey@redhat.com>
4799 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4800 missing ">" to message.
4802 2011-03-31 Tom Tromey <tromey@redhat.com>
4804 * varobj.c (instantiate_pretty_printer): Remove duplicate
4807 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4809 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4810 if neither saved value nor register available (e.g. signal frame).
4812 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4814 * macroexp.c (expand): Avoid uninitialized variable
4817 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4819 * breakpoint.c (break_range_command): Fix typo in comment.
4821 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4822 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4824 Implement support for PowerPC BookE ranged breakpoints.
4825 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4826 * breakpoint.h (struct bp_target_info) <length>: New member
4828 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4829 instead of struct breakpoint as argument, and also add ASPACE
4830 and BP_ADDR arguments. Update all callers.
4831 (struct breakpoint_ops) <print_one_detail>: New method.
4832 (struct breakpoint) <addr_string_range_end>: New member variable.
4833 * breakpoint.c (breakpoint_location_address_match): Add function
4835 (insert_bp_location): Set bl->target_info.length.
4836 (breakpoint_here_p): Call breakpoint_location_address_match.
4837 (moribund_breakpoint_here_p): Likewise.
4838 (regular_breakpoint_inserted_here_p): Likewise.
4839 (breakpoint_thread_match): Likewise.
4840 (bpstat_stop_status): Likewise.
4841 (bpstat_check_location): Move call to
4842 breakpoint_ops.breakpoint_hit to the top.
4843 (print_one_breakpoint_location): Call
4844 breakpoint_ops.print_one_detail if available.
4845 (breakpoint_address_match_range): New function.
4846 (breakpoint_location_address_match): Likewise.
4847 (breakpoint_locations_match): Compare the length field of the
4849 (hw_breakpoint_used_count): Count resources used by all locations
4850 in a breakpoint, and use breakpoint_ops.resources_needed if
4852 (breakpoint_hit_ranged_breakpoint): New function.
4853 (resources_needed_ranged_breakpoint): Likewise.
4854 (print_it_ranged_breakpoint): Likewise.
4855 (print_one_ranged_breakpoint): Likewise.
4856 (print_one_detail_ranged_breakpoint): Likewise.
4857 (print_mention_ranged_breakpoint): Likewise.
4858 (print_recreate_ranged_breakpoint): Likewise.
4859 (ranged_breakpoint_ops): New structure.
4860 (find_breakpoint_range_end): New function.
4861 (break_range_command): Likewise.
4862 (delete_breakpoint): Free addr_string_range_end.
4863 (update_breakpoint_locations): Add SALS_END argument. Update
4864 all callers. Calculate breakpoint length if a non-zero SALS_END
4865 is given. Call breakpoint_locations_match instead of
4866 breakpoint_address_match.
4867 (reset_breakpoint): Find SaL of the end of the range if B is a
4869 (_initialize_breakpoint): Register break-range command.
4870 * defs.h (print_core_address): Add function prototype.
4871 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4873 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4874 (ppc_linux_remove_hw_breakpoint): Likewise.
4875 (_initialize_ppc_linux_nat): Initialize
4876 to_ranged_break_num_registers.
4877 * target.c (update_current_target): Add comment about
4878 to_ranged_break_num_registers.
4879 (target_ranged_break_num_registers): New function.
4880 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4882 (target_ranged_break_num_registers): Add function prototype.
4883 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4884 * utils.c (print_core_address): ... here.
4886 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4888 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4889 variable compiler warning.
4891 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4893 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4895 (re_set_breakpoint): ... to here ...
4896 (addr_string_to_sals): ... and here.
4898 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4900 * Makefile.in (SFILES): Add missing C sources.
4901 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4902 Add missing headers.
4904 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4906 * .gitignore: New file.
4908 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4910 * NEWS: Mention new cfi device simulation.
4912 2011-03-29 Tom Tromey <tromey@redhat.com>
4914 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4915 otherwise anonymous types.
4916 (dwarf2_name): Likewise.
4917 * valops.c (value_struct_elt_for_reference): Refine artificial
4918 type logic. Call error if j==-1.
4920 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4922 Fix false GCC warning.
4923 * infcall.c (find_function_addr): Initialize funaddr.
4925 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4927 Fix mingw compilation with --enable-targets=all.
4928 * remote-mips.c (gdb_usleep.h): Include header.
4929 (mips_enter_debug): Use gdb_usleep instead of sleep.
4931 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4933 Support resolution of STT_GNU_IFUNC via breakpoints.
4934 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4935 bp_gnu_ifunc_resolver_return.
4936 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4937 the loop. Support bp_gnu_ifunc_resolver and
4938 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4939 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4941 (bptype_string, print_one_breakpoint_location): Support
4942 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4943 (user_settable_breakpoint): Return true also for
4944 bp_gnu_ifunc_resolver.
4945 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4946 bp_gnu_ifunc_resolver_return.
4947 (set_breakpoint_location_function): New parameter explicit_loc,
4948 describe it. Call find_pc_partial_function_gnu_ifunc with new
4949 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4950 EXPLICIT_LOC is not set.
4951 (set_raw_breakpoint): Set EXPLICIT_LOC for
4952 set_breakpoint_location_function.
4953 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4954 set_breakpoint_location_function.
4955 (mention): Support bp_gnu_ifunc_resolver and
4956 bp_gnu_ifunc_resolver_return.
4957 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4958 set_breakpoint_location_function.
4959 (update_breakpoint_locations): Remove static.
4960 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4961 bp_gnu_ifunc_resolver_return.
4962 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4963 bp_gnu_ifunc_resolver_return.
4964 (update_breakpoint_locations): New declaration.
4965 * elfread.c: Include gdbthread.h and regcache.h.
4966 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4968 (elf_gnu_ifunc_fns): Install them.
4969 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4970 (stub_gnu_ifunc_resolver_return_stop): New functions.
4971 (stub_gnu_ifunc_fns): Install them.
4972 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4973 and gnu_ifunc_resolver_return_stop.
4974 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4976 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4978 STT_GNU_IFUNC reader implementation.
4979 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4980 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4981 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4982 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4983 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4984 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4985 (elf_gnu_ifunc_resolve_addr): New.
4986 (elf_symfile_read): Call elf_rel_plt_read.
4987 (elf_gnu_ifunc_fns): New.
4988 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4989 Install elf_gnu_ifunc_fns.
4990 * infcall.c (find_function_return_type): New function.
4991 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4992 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4993 (stub_gnu_ifunc_resolve_name): New functions.
4994 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4995 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4996 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4998 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5000 Code cleanup for later STT_GNU_IFUNC support.
5001 * infcall.c (find_function_addr): Remove variable code, use explicit
5002 dereferences for it. Move VALUE_TYPE initialization later.
5004 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5006 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5007 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5008 (clear_pc_function_cache): Clear it.
5009 (find_pc_partial_function): Rename to ...
5010 (find_pc_partial_function_gnu_ifunc): ... this function. New
5011 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5012 (find_pc_partial_function): New wrapper for this function.
5013 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5015 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5017 GDB internal type support for STT_GNU_IFUNC.
5018 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5019 (elf_symtab_read): Set mst_text_gnu_ifunc for
5020 BSF_GNU_INDIRECT_FUNCTION.
5021 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5022 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5023 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5024 nodebug_got_plt_symbol.
5025 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5026 (TYPE_GNU_IFUNC): New.
5027 (struct main_type): New field flag_gnu_ifunc.
5028 (struct builtin_type): New field builtin_func_func.
5029 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5030 nodebug_got_plt_symbol.
5031 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5032 (in_gnu_ifunc_stub): New.
5033 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5035 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5036 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5037 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5039 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5040 * symtab.c (search_symbols): Likewise.
5041 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5042 and mst_slot_got_plt.
5043 (in_gnu_ifunc_stub): New declaration.
5045 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5047 Support a ring of related breakpoints.
5048 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5049 other functions, add gdb_assert.
5050 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5051 watchpoint_del_at_next_stop.
5052 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5053 (bpstat_stop_status): Handle ring in related_breakpoint.
5054 (set_raw_breakpoint_without_location): Initialize ring in
5056 (delete_breakpoint): Handle ring in related_breakpoint, use
5057 watchpoint_del_at_next_stop.
5058 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5060 2011-03-28 Tom Tromey <tromey@redhat.com>
5063 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5064 with `language_minimal'.
5066 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5068 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5069 instead of checking for STT_ARM_TFUNC symbol type.
5071 2011-03-25 Tom Tromey <tromey@redhat.com>
5073 * linespec.c (symbol_found): Restore line-based result for
5074 non-LOC_LABEL symbols.
5076 2011-03-25 Kai Tietz <ktietz@redhat.com>
5078 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5079 instead of strcmp for comparison.
5080 (tui_source_is_displayed): Likewise.
5081 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5083 2011-03-24 Mark Wielaard <mjw@redhat.com>
5085 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5087 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5088 (find_partial_die_in_comp_unit): Likewise in comment.
5089 (read_attribute_value): Likewise.
5090 (lookup_die_type): Likewise.
5091 (dwarf_form_name): Likewise.
5092 (dump_die_shallow): Likewise.
5093 (follow_die_ref_or_sig): Likewise.
5095 2011-03-24 Tom Tromey <tromey@redhat.com>
5097 PR breakpoints/11816:
5098 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5099 (decode_compound): Update.
5100 (find_function_symbol): New function.
5101 (decode_dollar): Update.
5102 (decode_label): Add 'function_symbol' parameter. Handle
5103 function-relative labels.
5104 (decode_variable): Update.
5105 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5106 not its line. Set `special_display' and canonical name for
5109 2011-03-24 Tom Tromey <tromey@redhat.com>
5111 * linespec.h (struct linespec_result) <special_display>: New
5113 * breakpoint.h (struct breakpoint) <display_canonical>: New
5115 * breakpoint.c (print_breakpoint_location): Respect
5117 (create_breakpoint_sal): Add 'display_canonical' parameter.
5118 (create_breakpoints_sal): Update.
5119 (create_breakpoint): Update.
5121 2011-03-24 Tom Tromey <tromey@redhat.com>
5123 * symtab.c (decode_line_spec): Update.
5124 * linespec.c (build_canonical_line_spec): Change type of
5126 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5127 (find_method, decode_all_digits, decode_dollar, decode_label)
5128 (symbol_found): Likewise.
5129 (init_linespec_result): New function.
5130 * breakpoint.c (struct captured_parse_breakpoint_args)
5131 <canonical_p>: New field, replaces addr_string_p.
5132 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5134 (parse_breakpoint_sals): Likewise.
5135 (do_captured_parse_breakpoint): Update.
5136 (create_breakpoint): Use struct linespec_result.
5137 (until_break_command): Update.
5138 (breakpoint_re_set_one): Update.
5139 (decode_line_spec_1): Update.
5140 * linespec.h (struct linespec_result): New.
5141 (init_linespec_result): Declare.
5143 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5145 * regcache.c (regcache_raw_read): If the target didn't supply a
5146 given raw register, mark it as unavailable.
5148 2011-03-23 Kai Tietz <ktietz@redhat.com>
5150 * breakpoint.c (clear_command): Use filename_cmp
5151 instead of strcmp for comparison.
5152 * buildsym.c (watch_main_source_file_lossage): Likewise.
5153 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5154 checking just for slash.
5155 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5156 strrchr and filename_cmp instead of strcmp for filenames.
5157 (add_old_header_file): Use filename_cmp
5158 instead of strcmp for comparison.
5159 * exec.c (exec_set_section_address): Likewise.
5160 * macrotab.c (macro_lookup_inclusion): Likewise.
5161 (macro_lookup_inclusion): Likewise.
5162 * elfread.c (_initialize_elfread): Likewise.
5163 (elfstab_offset_sections): Likewise.
5164 (elfstab_offset_sections): Use lbasename instead of
5166 * mdebugread.c (parse_partial_symbols): Likewise.
5167 (arse_partial_symbols): Use filename_(n)cmp instead of
5168 str(n)cmp for comparison.
5169 * minsyms.c (lookup_minimal_symbol): Likewise.
5170 * psymtab.c (read_psymtabs_with_filename): Likewise.
5171 * solib.c (solib_read_symbols): Likewise.
5172 (reload_shared_libraries_1): Likewise.
5173 * symmisc.c (maintenance_print_symbols): Likewise.
5174 * symfile.c (separate_debug_file_exists): Likewise.
5175 (reread_symbols): Likewise.
5176 (find_separate_debug_file_by_debuglink): Likewise.
5177 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5178 * source.c (add_path): Likewise.
5179 * symtab.c (filename_seen): Likewise.
5180 (file_matches): Likewise.
5181 (print_symbol_info): Likewise.
5182 (maybe_add_partial_symtab_filename): Likewise.
5183 (make_source_files_completion_list): Likewise.
5184 * xml-syscall.c (init_sysinfo): Likewise.
5185 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5186 IS_DIR_SEPARATOR for checking for trailing path separator.
5188 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5190 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5191 label abort_expression.
5192 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5193 DWARF_VALUE_OPTIMIZED_OUT.
5195 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5198 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5199 to linkage_name. Invert its value. Update the function comment.
5200 (c_type_print_varspec_suffix): Invert it at the caller.
5201 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5203 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5205 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5206 errors when reading the `stop_pc'.
5207 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5210 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5212 * NEWS: Document gdb.Write stream keyword.
5214 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5217 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5219 (dwarf2_add_field): Fix new_field->accessibility for
5220 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5222 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5226 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5227 other error classes. Do not print stack trace.
5229 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5231 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5232 (dwarf2_add_field): Fix new_field->accessibility for
5233 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5235 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5237 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5238 encountering a load via a non-SP register.
5240 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5242 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5243 field in returned unwinder.
5245 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5249 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5251 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5254 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5256 * frame.c (frame_unwind_register): Throw an error if unwinding the
5258 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5259 an unwind stop reason.
5260 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5261 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5262 UNWIND_UNAVAILABLE>: New.
5263 * inline-frame.c (inline_frame_unwind): Install
5264 default_frame_unwind_stop_reason.
5265 * frame-unwind.c: Include "exceptions.h".
5266 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5267 (default_frame_unwind_stop_reason): New.
5268 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5269 (default_frame_unwind_stop_reason): Declare.
5270 (struct frame_unwind) <stop_reason>: New function pointer.
5272 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5273 * dwarf2-frame.c: Include exceptions.h.
5274 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5275 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5276 computing the CFA. If such an error was thrown, set
5277 unavailable_retaddr.
5278 (dwarf2_frame_unwind_stop_reason): New.
5279 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5281 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5282 (dwarf2_signal_frame_unwind): Ditto.
5284 * amd64-tdep.c: Include "exceptions.h".
5285 (struct amd64_frame_cache): New field "base_p".
5286 (amd64_init_frame_cache): Clear it.
5287 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5288 Avoid reading registers with functions that throw if the register
5289 is not necessary to compute the frame base.
5290 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5291 swallowing NOT_AVAILABLE_ERROR.
5292 (amd64_frame_unwind_stop_reason): New.
5293 (amd64_frame_this_id): Don't build a frame id if the frame base
5295 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5296 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5297 base_p if the frame base was computable.
5298 (amd64_sigtramp_frame_unwind_stop_reason): New.
5299 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5300 frame base was unavailable.
5301 (amd64_sigtramp_frame_unwind): Install
5302 amd64_sigtramp_frame_unwind_stop_reason.
5303 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5304 base_p if the frame base was computable.
5305 (amd64_epilogue_frame_unwind_stop_reason): New.
5306 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5307 frame base was unavailable.
5308 (amd64_epilogue_frame_unwind): Install
5309 amd64_epilogue_frame_unwind_stop_reason.
5310 * i386-tdep.c: Include "exceptions.h".
5311 (struct i386_frame_cache): New field "base_p".
5312 (i386_init_frame_cache): Clear it.
5313 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5314 Avoid reading registers with functions that throw if the register
5315 is not necessary to compute the frame base.
5316 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5317 swallowing NOT_AVAILABLE_ERROR.
5318 (i386_frame_unwind_stop_reason): New.
5319 (i386_frame_this_id): Don't build a frame id if the frame base was
5321 (i386_frame_prev_register): Handle unavailable SP.
5322 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5323 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5324 base_p if the frame base was computable.
5325 (i386_epilogue_frame_unwind_stop_reason): New.
5326 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5327 base was unavailable.
5328 (i386_epilogue_frame_unwind): Install
5329 i386_epilogue_frame_unwind_stop_reason.
5330 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5331 base_p if the frame base was computable.
5332 (i386_sigtramp_frame_unwind_stop_reason): New.
5333 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5334 base was unavailable.
5335 (i386_sigtramp_frame_unwind): Install
5336 i386_sigtramp_frame_unwind_stop_reason.
5337 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5338 type's size, not the register's.
5339 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5341 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5342 default_frame_unwind_stop_reason.
5343 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5344 (alpha_heuristic_frame_unwind): Ditto.
5345 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5346 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5347 * avr-tdep.c (avr_frame_unwind): Ditto.
5348 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5350 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5351 * frv-tdep.c (frv_frame_unwind): Ditto.
5352 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5353 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5354 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5355 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5356 (hppa_stub_frame_unwind): Ditto.
5357 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5358 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5359 (ia64_libunwind_frame_unwind)
5360 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5361 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5362 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5363 * m32c-tdep.c (m32c_unwind): Ditto.
5364 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5365 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5366 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5367 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5368 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5369 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5370 * mep-tdep.c (mep_frame_unwind): Ditto.
5371 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5372 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5373 (mips_stub_frame_unwind): Ditto.
5374 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5375 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5376 * mt-tdep.c (mt_frame_unwind): Ditto.
5377 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5378 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5379 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5380 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5381 (s390_sigtramp_frame_unwind): Ditto.
5382 * score-tdep.c (score_prologue_unwind): Ditto.
5383 * sh-tdep.c (sh_frame_unwind): Ditto.
5384 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5385 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5386 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5387 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5388 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5389 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5390 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5391 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5392 (sparc64obsd_trapframe_unwind): Ditto.
5393 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5394 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5395 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5396 * v850-tdep.c (v850_frame_unwind): Ditto.
5397 * vax-tdep.c (vax_frame_unwind): Ditto.
5398 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5399 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5400 * xtensa-tdep.c (xtensa_unwind): Ditto.
5402 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5404 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5405 there's always a frame. Use get_frame_pc_if_available instead of
5406 get_frame_pc, and if there's no PC available, don't look up a
5409 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5411 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5414 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5416 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5419 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5421 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5422 * frame.c (frame_unwind_caller_pc_if_available): New.
5423 * stack.c (frame_info): Handle unavailable PC.
5425 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5427 * frame.c (frame_unwind_pc): Rename to ...
5428 (frame_unwind_pc_if_available): ... this. New `pc' output
5429 parameter. Change return type to int. Gracefully handle
5430 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5431 happened, or 1 otherwise.
5432 (frame_unwind_pc): Reimplement on top of
5433 frame_unwind_pc_if_available.
5434 (get_frame_func): Rename to ...
5435 (get_frame_func_if_available): New `pc' output parameter. Change
5436 return type to int. Gracefully handle the PC not being available.
5437 (get_frame_func): Reimplement on top of
5438 get_frame_func_if_available.
5439 (select_frame): Handle the PC being unavailable.
5440 (get_prev_frame): Handle the PC being unavailable.
5441 (get_frame_pc_if_available): New.
5442 (get_frame_address_in_block_if_available): New.
5443 (find_frame_sal): Handle the frame PC not being available.
5444 * frame.h (get_frame_pc_if_available): Declare.
5445 (get_frame_address_in_block_if_available): Declare.
5446 (get_frame_func_if_available): Declare.
5447 * stack.c (print_frame_info): Handle the PC being unavailable.
5448 (find_frame_funname): Ditto.
5449 (print_frame): Handle the PC being unavailable.
5450 (get_frame_language): Ditto.
5451 * blockframe.c (get_frame_block): Ditto.
5452 * macroscope.c (default_macro_scope): Ditto.
5453 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5455 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5457 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5458 NOT_AVAILABLE_ERROR when evaluating the location expression.
5460 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5462 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5463 returning that the register piece is unavailable/optimized out.
5464 (write_pieced_value): Handle get_frame_register_bytes returning
5465 that the register piece is unavailable/optimized out when doing a
5466 read-modify write of a bitfield.
5467 * findvar.c (value_from_register): Handle get_frame_register_bytes
5468 returning that the register piece is unavailable/optimized out.
5469 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5470 and `unavailablep'. Throw error on bad debug info. Use
5471 frame_register instead of frame_register_read, to fill in the new
5473 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5475 * valops.c: (value_assign): Adjust, and handle
5476 get_frame_register_bytes failing.
5477 * spu-tdep.c: Include exceptions.h.
5478 (spu_software_single_step): Adjust, and handle
5479 get_frame_register_bytes failing.
5480 (spu_get_longjmp_target): Ditto.
5481 * gdbarch.sh (register_to_value): Change to return int. New
5482 parameters `optimizedp' and `unavailablep'.
5483 * gdbarch.h, gdbarch.c: Regenerate.
5484 * i386-tdep.c (i386_register_to_value): Adjust to new
5485 gdbarch_register_to_value interface.
5486 * i387-tdep.c (i387_register_to_value): Ditto.
5487 * i387-tdep.h (i387_register_to_value): Ditto.
5488 * alpha-tdep.c (alpha_register_to_value): Ditto.
5489 * ia64-tdep.c (ia64_register_to_value): Ditto.
5490 * m68k-tdep.c (m68k_register_to_value): Ditto.
5491 * mips-tdep.c (mips_register_to_value): Ditto.
5492 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5494 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5496 * findvar.c (value_of_register): Mark the value as unavailable, if
5497 the register is unavailable.
5498 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5499 (frame_register): New `unavailablep' parameter.
5500 (frame_register_read): Update comment.
5501 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5502 Set it if the register is unavailable. If the register is
5503 unavailable, clear the output buffer.
5504 (frame_register): New `unavailablep' parameter. Pass it down.
5505 (frame_unwind_register): Adjust.
5506 (put_frame_register): Adjust.
5507 (frame_register_read): Adjust. Also return false if the register
5509 (frame_register_unwind_location): Adjust.
5510 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5511 is unavailable, mark the value accordingly.
5512 * stack.c (frame_info): Handle unavailable registers.
5514 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5516 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5517 simplify, using regcache_cooked_read.
5519 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5521 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5522 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5523 (regcache_raw_read_unsigned, regcache_raw_read_part)
5524 (regcache_cooked_read, regcache_cooked_read_signed)
5525 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5526 (regcache_cooked_read_ftype): Change return to enum
5528 * regcache.c: Include exceptions.h
5529 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5530 (do_cooked_read): Change return to enum register_status. Always
5531 forward to regcache_cooked_read.
5532 (regcache_raw_read): Change return to enum register_status. If
5533 the register is not REG_VALID, memset the buffer. Return the
5535 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5536 return the register's status.
5537 (regcache_raw_read_unsigned): Ditto.
5538 (regcache_cooked_read): Change return to enum register_status.
5539 Assert that with read-only regcaches, the register's status must
5540 be known. If the regcache is read-only, and the register is not
5541 REG_VALID, memset the buffer. Return the register's status.
5542 (regcache_cooked_read_signed): Change return to enum
5543 register_status. Handle non-REG_VALID registers and return the
5545 (regcache_cooked_read_unsigned): Change return to enum
5546 register_status. Handle non-REG_VALID registers and return the
5548 (regcache_xfer_part, regcache_raw_read_part)
5549 (regcache_cooked_read_part): Change return to enum
5550 register_status. Return the register's status.
5551 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5553 (regcache_dump): Handle unavailable cooked registers.
5554 * frame.c (do_frame_register_read): Adjust interface to match
5555 regcache_cooked_read_ftype.
5556 * gdbarch.sh (pseudo_register_read): Change return to enum
5558 * gdbarch.h, gdbarch.c: Regenerate.
5560 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5562 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5563 register_status. If reading a raw register indicates the raw
5564 register is not valid, return the raw register's status,
5565 otherwise, return REG_VALID.
5566 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5567 register_status. Handle non-REG_VALID raw registers and return
5568 the register's status.
5569 * arm-tdep.c (arm_neon_quad_read)
5570 (arm_pseudo_read): Change return to enum register_status. Handle
5571 non-REG_VALID raw registers and return the register's status.
5572 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5573 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5574 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5575 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5576 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5578 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5579 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5580 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5581 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5582 (m32c_pseudo_register_read): Change return to enum
5583 register_status. Adjust.
5584 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5585 enum register_status. Return the register's status.
5586 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5587 register_status. Return the register's status.
5588 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5589 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5590 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5591 * rs6000-tdep.c (move_ev_register_func): New typedef.
5592 (e500_move_ev_register): Use it. Change return to enum
5593 register_status. Return the register's status.
5594 (do_regcache_raw_read): New function.
5595 (do_regcache_raw_write): New function.
5596 (e500_pseudo_register_read): Change return to enum
5597 register_status. Return the register's status. Use
5598 do_regcache_raw_read.
5599 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5600 (dfp_pseudo_register_read): Change return to enum register_status.
5601 Return the register's status.
5602 (vsx_pseudo_register_read): Ditto.
5603 (efpr_pseudo_register_read): Ditto.
5604 (rs6000_pseudo_register_read): Ditto.
5605 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5606 register_status. Return the register's status.
5607 * sh64-tdep.c (pseudo_register_read_portions): New function.
5608 (sh64_pseudo_register_read): Change return to enum
5609 register_status. Use pseudo_register_read_portions. Return the
5611 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5612 register_status. Return the register's status.
5613 * sh-tdep.c (pseudo_register_read_portions): New function.
5614 (sh_pseudo_register_read): Change return to enum register_status.
5615 Use pseudo_register_read_portions. Return the register's status.
5616 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5617 enum register_status. Return the register's status.
5618 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5619 * spu-tdep.c (spu_pseudo_register_read_spu)
5620 (spu_pseudo_register_read): Ditto.
5621 * xtensa-tdep.c (xtensa_register_read_masked)
5622 (xtensa_pseudo_register_read): Ditto.
5623 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5625 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5627 * python/py-value.c (valpy_getitem): Fix formatting of error function
5630 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5632 ARI fixes: Add missing internationalization markups throughout
5634 * darwin-nat-info.c: Ditto.
5637 * mi/mi-main.c: Ditto.
5639 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5641 ARI fixes: Add missing internationalization markups throughout
5644 * cp-name-parser.y: Ditto.
5647 * objc-exp.y: Ditto.
5650 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5652 ARI fixes: Messages should have no trailing new lines.
5653 * darwin-nat.c (mach_check_error): Remove trailing new line from
5654 warning function call message.
5655 * record.c (bfdcore_read): Idem for error call.
5657 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5659 * common/signals.c (target_signal_from_host): Add _ markup to error
5660 function call message.
5661 (target_signal_to_host): Add _ markup and remove trailing new line
5662 from warning call message.
5663 (target_signal_from_command): Add _ markup to error function call
5666 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5670 * python/python.c (gdbpy_write): Accept a stream argument and
5671 operate to the appropriate stream.
5672 (gdbpy_flush): Likewise.
5673 (_initialize_python): Add stream constants.
5674 (finish_python_initialization): Add GdbOutputErrorFile class.
5676 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5678 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5680 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5682 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5683 to store_signed_integer. Add debug message when relocating CALL
5684 instructions. Fix formatting of debug message.
5685 * i386-tdep.c (i386_relocate_instruction): Ditto.
5687 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5689 * target.h (struct target_ops): Remove to_lookup_symbol field.
5690 (target_lookup_symbol): Delete macro.
5691 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5692 (update_current_target, setup_target_debug): Remove handling
5693 of to_lookup_symbol target_ops field.
5694 * ada-tasks.c (get_known_tasks_addr): Remove use of
5695 target_lookup_symbol.
5696 * coffread.c (coff_symtab_read): Likewise.
5697 * dbxread.c (read_dbx_symtab): Ditto.
5699 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5702 * configure.ac: Add getthrds declaration check.
5703 * configure, config.in: Regenerate.
5704 * aix-thread.c (getthrds): Declare only if not already declared
5705 in procinfo.h. More declaration out of get_signaled_thread to
5708 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5710 * python/py-symtab.c: Populate symtab_object_methods,
5712 (stpy_is_valid): New function.
5713 (salpy_is_valid): Ditto.
5714 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5715 (sympy_is_valid): New function.
5716 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5717 (objfpy_is_valid): New function.
5718 * python/py-inferior.c: Populate inferior_object_methods.
5719 (infpy_is_valid): New function.
5720 * python/py-infthread.c: Populate thread_object_methods.
5721 (thpy_is_valid): New function.
5722 * python/py-block.c: Declare block_object_methods. Populate. Declare
5723 block_iterator_object_methods. Populate.
5724 (blpy_is_valid): New function.
5725 (blpy_iter_is_valid): Ditto.
5727 2011-03-16 Keith Seitz <keiths@redhat.com>
5729 * linespec.c (find_methods): Canonicalize NAME before looking
5731 (name_end): New function.
5732 (keep_name_info): New function.
5733 (decode_line_1): Use keep_name_info.
5734 (decode_compound): Likewise.
5735 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5736 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5739 * linespec.c (locate_first_half): Keep overload information, too.
5740 (decode_compound): Use a string to represent break characters
5742 If P points to a break character, do not increment it.
5743 For C++ and Java, keep overload information and relevant keywords.
5744 If we cannot find a symbol, search the minimal symbols.
5747 * linespec.c (decode_compound): Rename SAVED_ARG to
5749 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5751 Pass a valid block to lookup_symbol.
5752 (lookup_prefix_sym): Likewise.
5753 (find_method): Construct search name based on SYM_CLASS instead
5755 * psymtab.c (lookup_partial_symbol): Add language parameter.
5756 (lookup_symbol_aux_psymtabs): Likewise.
5757 Don't assume that the psymtab we found was the right one. Search
5758 for the desired symbol in the symtab to be certain.
5759 (psymtab_search_name): New function.
5760 (lookup_partial_symbol): Use psymtab_search_name.
5761 Add language parameter.
5762 (read_symtabs_for_function): Add language parameter and pass to
5763 lookup_partial_symbol.
5764 (find_symbol_file_from_partial): Likewise.
5766 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5769 * dwarf2read.c (noop_record_line): New function.
5770 (dwarf_decode_lines): Ignore line tables for GCd functions.
5772 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5774 Fix ARI warnings about new lines at the end of messages, which
5775 are unneeded as there is a new line added at the end of the message
5777 * darwin-nat.c (darwin_stop_inferior): Ditto.
5778 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5779 * dfp.c (decimal_to_number): Ditto.
5780 * exec.c (print_section_info): Ditto.
5781 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5782 * osdata.c (get_osdata): Ditto.
5783 * record.c (bfdcore_write): Ditto.
5784 * remote-mips.c (mips_readchar): Ditto.
5785 * remote.c (read_ptid): Ditto.
5786 * ser-mingw.c (ser_windows_raw): Ditto.
5787 * tracepoint.c (add_local_symbols): Ditto.
5788 * windows-nat.c (fake_create_process): Ditto.
5790 2011-03-16 Tom Tromey <tromey@redhat.com>
5792 * tracepoint.c (stop_tracing): Don't declare.
5793 * event-top.c (after_char_processing_hook): Add `(void)'.
5795 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5797 * NEWS: Add Parameter sub-classing description.
5799 2011-03-16 Kai Tietz <ktietz@redhat.com>
5801 * MAINTAINERS: Update my e-mail address.
5803 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5805 * MAINTAINERS: Add myself for write after approval privileges.
5807 2011-03-15 Michael Snyder <msnyder@vmware.com>
5809 * frame.c (find_frame_sal): Assert sym is not null.
5811 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5813 * objc-lang.c (selectors_info): Check strchr for null result.
5815 * stabsread.c (define_symbol): Guard against bad stabstring input.
5817 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5819 Remove trailing spaces and tabulations from pascal language
5824 p-valprint.c: Ditto.
5826 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5828 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5829 than LOW. Comment it.
5830 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5831 HIGHPC not strictly higher than LOWPC.
5833 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5835 Fix formatting of function declarations returning a pointer in
5837 * varobj.c (varobj_add_child): Ditto.
5838 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5839 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5841 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5843 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5844 for the "generic" vector ABI used with GCC 4.3 and later.
5845 (ppc64_sysv_abi_return_value): Likewise.
5847 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5849 * infcall.c (call_function_by_hand): Function return value is
5850 always a non_lval, even when using struct_return.
5852 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5854 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5855 (map_display_numbers): New.
5856 (do_delete_display): New.
5857 (undisplay_command): Use map_display_numbers.
5858 (do_enable_disable_display): New.
5859 (enable_disable_display_command): New function.
5860 (enable_display): Delete.
5861 (enable_display_command): New.
5862 (disable_display_command): Reimplement.
5863 (_initialize_printcmd): Adjust "enable display" command to use
5864 `enable_display_command' as callback.
5866 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5868 * NEWS: Add Python breakpoint 'stop' operation.
5870 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5872 * NEWS: Delete duplicate entry. Fix typo.
5874 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5876 Fix ARI warning about function names in first column.
5877 Put prototype declaration on same line as return type.
5878 * objc-exp.y: Ditto.
5880 * python/py-stopevent.h: Ditto.
5881 For long function names, split parameters to
5882 allow function name on same line as return type.
5883 * solib-pa64.c: Ditto.
5886 For long function declaration, use single line.
5887 * hppa-tdep.h: Ditto.
5888 * inferior.h: Ditto.
5890 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5892 * python/python.h: Declare gdbpy_should_stop and
5893 gdbpy_breakpoint_has_py_cond.
5894 * python/python.c: Add python.h to includes. Remove python.h from
5895 HAVE_PYTHON definition
5896 (gdbpy_should_stop): New dummy function.
5897 (gdbpy_breakpoint_has_py_cond): New dummy function.
5898 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5899 sub-classing capabilities.
5900 (gdbpy_should_stop): New function.
5901 (gdbpy_breakpoint_has_py_cond): New function.
5902 (local_setattro): New function.
5903 * breakpoint.c (condition_command): Add check for Python 'stop'
5905 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5906 operation function as part of stop/continue tests.
5908 2011-03-14 Tom Tromey <tromey@redhat.com>
5911 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5912 (needs_frame_dwarf_call): Likewise.
5914 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5916 Fix ARI warning about functions without parameters that do not
5918 * breakpoint.c (all_tracepoints): Replace () by (void).
5919 * f-exp.y (match_string_literal): Ditto.
5921 * m2-exp.y (yylex): Ditto.
5922 * mep-tdep.c (current_me_module): Ditto.
5923 (current_options): Ditto.
5924 (current_cop_data_bus_width): Ditto.
5925 (current_cr_names): Ditto.
5926 (current_cr_is_float): Ditto.
5927 (current_ccr_names): Ditto.
5928 * objc-exp.y (yylex): Ditto.
5929 * p-exp.y (yylex): Ditto.
5930 * remote.c (send_interrupt_sequence): Ditto.
5931 * tracepoint.c (current_trace_status): Ditto.
5932 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5933 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5935 2011-03-11 Michael Snyder <msnyder@vmware.com>
5937 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5938 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5939 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5940 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5941 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5943 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5944 (delete_async_event_handler): Ditto.
5946 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5948 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5950 * top.c (set_verbose): Assert showcmd was found.
5952 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5954 * xtensa-tdep.c (warning_once): Correct style issues.
5956 2011-03-11 Yao Qi <yao@codesourcery.com>
5958 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5960 2011-03-11 Andreas Schwab <schwab@redhat.com>
5962 * common/aclocal.m4: Remove.
5964 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5966 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5967 (xtensa_write_register, xtensa_read_register): Likewise.
5968 (xtensa_hextochar): Removed.
5969 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5971 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5973 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5974 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5975 (xtensa_alloc_frame_cache): Add initialization for new fields.
5976 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5977 (warning_once): New function.
5978 (xtensa_insn_kind): New item c0opc_and.
5979 (call0_classify_opcode): Add the case for AND instruction.
5980 (call0_track_op): Change arguments. New local variable litbase.
5981 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5982 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5984 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5985 (call0_analyze_prologue): Update the comments. Change arguments.
5986 Add the variety of updates to handle extended prologues, which now can
5987 conduct dynamic stack adjustments.
5988 (call0_frame_cache): Likewise.
5989 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5990 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5992 2011-03-10 Michael Snyder <msnyder@vmware.com>
5994 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5995 (cmd_qtframe): Ditto.
5996 (cmd_qtbuffer): Ditto.
5997 (cmd_bigqtbuffer): Ditto.
5999 2011-03-10 Tom Tromey <tromey@redhat.com>
6001 * tracepoint.c (trace_actions_command): Update.
6002 * thread.c (thread_apply_command): Update.
6003 * reverse.c (delete_bookmark_command): Update.
6004 (bookmarks_info): Update.
6005 * printcmd.c (undisplay_command): Update.
6006 * memattr.c (mem_enable_command): Update.
6007 (mem_disable_command): Update.
6008 (mem_delete_command): Update.
6009 * inferior.c (detach_inferior_command): Update.
6010 (kill_inferior_command): Update.
6011 (remove_inferior_command): Update.
6012 * cli/cli-utils.h (struct get_number_or_range_state): New.
6013 (init_number_or_range): Declare.
6014 (get_number_or_range): Update.
6015 * cli/cli-utils.c (init_number_or_range): New function.
6016 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6018 (number_is_in_list): Update.
6019 * breakpoint.h (get_tracepoint_by_number): Update.
6020 * breakpoint.c (map_breakpoint_numbers): Update for change to
6021 get_number_or_range.
6022 (find_location_by_number): Use get_number, not
6023 get_number_or_range.
6024 (trace_pass_set_count): New function.
6025 (trace_pass_command): Update for change to get_number_or_range.
6027 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6030 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6032 * python/py-param.c (add_setshow_generic): Add set/show callback
6033 parameters. Register Python object context.
6034 (get_show_value): New function.
6035 (get_set_value): New function.
6036 (call_doc_function): New function.
6037 (get_doc_string): Move behind get_show_value/get_set_value.
6039 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6041 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6043 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6045 * xtensa-tdep.c (xtensa_read_register): Add comment.
6046 (xtensa_write_register): Likewise.
6047 (xtensa_hextochar): Add comment and update to match coding conventions.
6048 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6049 (execute_l32e, execute_s32e, execute_code): Update comments.
6050 (xtensa_exception_handler_t): Update to match coding conventions.
6051 (xtensa_insn_kind): Likewise.
6053 2011-03-09 Michael Snyder <msnyder@vmware.com>
6055 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6057 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6059 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6061 2011-03-09 Tom Tromey <tromey@redhat.com>
6063 * thread.c (restore_selected_frame): Handle frame_level == -1.
6064 (make_cleanup_restore_current_thread): Use
6065 get_selected_frame_if_set.
6066 * frame.h (get_selected_frame_if_set): Declare.
6067 * frame.c (get_selected_frame_if_set): New function.
6069 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6071 * cli/cli-cmds.c (shell_escape): Use lbasename.
6072 * coffread.c (coff_start_symtab): Constify parameter.
6073 (complete_symtab): Constify `name' parameter.
6074 (coff_symtab_read): Constify `filestring' local.
6075 (coff_getfilename): Constify return and `result' local.
6077 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6078 * linux-fork.c (info_checkpoints_command): Use lbasename.
6079 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6080 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6081 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6082 * procfs.c (procfs_make_note_section): Use lbasename.
6083 * tui/tui-io.c (printable_part): Constity return and parameter.
6085 (print_filename): Constify parameters, and local `s'.
6086 (tui_rl_display_match_list): Constify local `temp'.
6088 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6091 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6092 Fix DWARF-3+ DW_AT_accessibility default assumption.
6093 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6094 cu->header.version >= 3.
6096 2011-03-09 Yao Qi <yao@codesourcery.com>
6098 * common/Makefile.in: Remove.
6099 * common/configure: Remove.
6100 * common/configure.ac: Remove.
6102 2011-03-09 Yao Qi <yao@codesourcery.com>
6105 2011-02-11 Yao Qi <yao@codesourcery.com>
6107 * common/Makefile.in: Add copyright header.
6109 2011-02-11 Yao Qi <yao@codesourcery.com>
6111 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6113 * configure.ac: Add common to sub dir.
6114 * configure: Regenerate.
6116 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6118 * xtensa-tdep.c (call0_ret): New function.
6119 (xtensa_skip_prologue): Speed up analysis.
6121 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6123 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6124 while executing MI command -data-list-changed-registers.
6126 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6128 * xtensa-tdep.c (xtensa_read_register): New function.
6129 (xtensa_write_register): New function.
6130 (xtensa_find_register_by_name): New function.
6131 (xtensa_windowed_frame_cache): Update comments in type description.
6132 (xtensa_frame_cache): Likewise.
6133 (xtensa_window_interrupt_insn): New function.
6134 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6135 (xtensa_insn_kind): Add new instructions.
6136 (rwx_special_register): New function.
6137 (call0_classify_opcode): Add new instructions to the analysis.
6138 (a0_saved, a7_saved, a11_saved): New variables.
6139 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6140 (execute_l32e): New function.
6141 (execute_s32e): New function.
6142 (xtensa_exception_handler_t): New type.
6143 (execute_code): New function.
6144 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6145 analysis for Xtensa Window Exception handlers.
6147 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6149 * xtensa-tdep.c (TX_PS): New.
6150 (windowing_enabled): Update to count for Call0 ABI.
6151 (xtensa_hextochar): New.
6152 (xtensa_init_reggroups): Make algorithm generic.
6153 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6155 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6157 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6159 2011-03-08 Michael Snyder <msnyder@vmware.com>
6161 * i386-tdep.c (i386_follow_jump): Check return value of
6163 (i386_analyze_struct_return): Ditto.
6164 (i386_skip_probe): Ditto.
6165 (i386_match_insn): Ditto.
6166 (i386_skip_noop): Ditto.
6167 (i386_analyze_frame_setup): Ditto.
6168 (i386_analyze_register_saves): Ditto.
6169 (i386_skip_prologue): Ditto.
6170 (i386_skip_main_prologue): Ditto.
6172 * target.c (read_whatever_is_readable): Fix memory leak.
6174 * i386-tdep.c (i386_process_record): Document fall through.
6176 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6178 Fix DWARF-3+ DW_AT_accessibility default assumption.
6179 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6180 cu->header.version >= 3.
6182 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6184 * remote.c (remote_check_symbols): Skip if the target has no
6187 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6189 * target.c (read_whatever_is_readable): Reformat comment,
6190 with a minor typo fix. Minor reformatting of the code.
6192 2011-03-08 Yao Qi <yao@codesourcery.com>
6194 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6195 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6196 Use cached result instead of calling displaced_in_arm_mode again.
6197 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6198 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6199 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6200 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6201 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6202 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6203 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6204 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6205 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6206 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6207 (arm_catch_kernel_helper_return): Likewise.
6208 * gdb/arm-tdep.h : Update function declarations.
6210 2011-03-07 Michael Snyder <msnyder@vmware.com>
6212 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6214 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6216 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6218 * elfread.c (elf_symtab_read): Stop memory leak.
6220 * main.c (captured_main): Fix memory leak.
6222 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6224 * ada-lang.c (compare_names): Call is_name_suffix with string1
6227 2011-03-07 Tom Tromey <tromey@redhat.com>
6229 * xcoffread.c (xcoff_sym_fns): Update.
6230 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6231 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6232 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6233 (symbol_file_add_with_addrs_or_offsets): Likewise.
6234 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6235 * somread.c (som_sym_fns): Update.
6236 * psymtab.h (require_partial_symbols): Declare.
6237 * psymtab.c (require_partial_symbols): New function.
6238 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6239 (ALL_OBJFILE_PSYMTABS): Undef.
6240 (ALL_PSYMTABS): Move from psympriv.h.
6241 (lookup_partial_symtab, find_pc_sect_psymtab)
6242 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6243 (find_last_source_symtab_from_partial)
6244 (forget_cached_source_info_partial)
6245 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6246 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6247 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6248 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6249 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6250 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6251 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6252 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6253 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6255 * mipsread.c (ecoff_sym_fns): Update.
6256 * machoread.c (macho_sym_fns): Update.
6257 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6258 (read_psyms): New function.
6259 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6260 (elf_sym_fns_lazy_psyms): New global.
6261 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6262 dwarf2_build_psymtabs.
6263 * dbxread.c (aout_sym_fns): Update.
6264 * coffread.c (coff_sym_fns): Update.
6266 2011-03-07 Tom Tromey <tromey@redhat.com>
6268 * infrun.c (print_exited_reason): Include inferior id and pid in
6271 2011-03-07 Tom Tromey <tromey@redhat.com>
6273 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6275 (target_has_execution_1): Update.
6276 (target_has_execution_current): Declare.
6277 (target_has_execution): Call target_has_execution_current.
6278 (default_child_has_execution): Update.
6279 * target.c (default_child_has_execution): Add 'the_ptid'
6281 (target_has_execution_1): Likewise.
6282 (target_has_execution_current): New function.
6283 (add_target): Update.
6284 (init_dummy_target): Update.
6285 * remote-m32r-sdi.c (m32r_has_execution): New function.
6286 (init_m32r_ops): Use it.
6287 * record.c (record_core_has_execution): Now static. Add
6288 'the_ptid' parameter.
6289 * inferior.c (have_live_inferiors): Don't save current thread.
6290 Use target_has_execution_1.
6292 2011-03-07 Yao Qi <yao@codesourcery.com>
6294 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6296 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6298 * elfread.c (elf_symtab_read): Minor reformatting.
6300 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6302 * objc-lang.c (selectors_info): Minor reformatting.
6304 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6306 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6308 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6309 Michael Snyder <msnyder@vmware.com>
6311 * ada-valprint.c (ada_val_print_array): Move the declaration of
6312 "byte_order" and "elttype" inside the block where these variables
6313 are actually used. Remove some special handling for the case
6314 where "elttype" and "eltlen" are null. Replace by a comment
6315 and a couple of assertion checks.
6317 2011-03-05 Michael Snyder <msnyder@vmware.com>
6319 * source.c (add_path): Replace semicolon at end of block.
6320 * dwarf2expr.c (execute_stack_op): Ditto.
6322 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6324 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6325 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6326 (bfin-*-*): Likewise.
6328 2011-03-05 Michael Snyder <msnyder@vmware.com>
6330 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6331 * mdebugread.c (parse_symbol): Ditto.
6332 * parse.c (parse_exp_in_context): Ditto.
6333 * source.c (add_path): Ditto.
6334 * utils.c (gnu_debuglink_crc32): Ditto.
6335 * varobj.c (variable_language): Ditto.
6337 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6339 2011-03-04 Michael Snyder <msnyder@vmware.com>
6341 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6343 * symfile.c (simple_overlay_update): Check for null return value
6344 from lookup_minimal_symbol.
6346 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6348 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6350 * eval.c (parse_and_eval_address_1): Remove function.
6351 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6352 instead of parse_and_eval_address_1.
6353 * value.h (parse_and_eval_address_1): Remove prototype.
6355 2011-03-04 Michael Snyder <msnyder@vmware.com>
6357 * remote.c (putpkt_binary): Document that case stmt falls through.
6359 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6361 * breakpointc (print_it_typical): Move NULL check from here...
6362 (print_bp_stop_message): ... to here.
6364 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6366 * breakpoint.c (enable_command): Use break instead of continue,
6367 and fill in a missing break.
6368 (disable_command): Ditto.
6370 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6372 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6373 (terminal_save_ours): Remove misleading comment.
6374 (inflow_inferior_data_cleanup): Free ttystate.
6375 (inflow_inferior_exit): Likewise.
6376 (copy_terminal_info): Copy ttystate.
6378 * serial.c (serial_copy_tty_state): New function.
6379 * serial.h (serial_copy_tty_state): Add prototype.
6380 (struct serial_ops): Add copy_tty_state callback.
6381 * ser-base.c (ser_base_copy_tty_state): New function.
6382 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6383 * ser-go32.c (dos_copy_tty_state): New function.
6384 (dos_ops): Install copy_tty_state callback.
6385 * ser-mingw.c (_initialize_ser_windows): Likewise.
6386 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6387 * ser-unix.c (hardwire_copy_tty_state): New function.
6388 (_initialize_ser_hardwire): Install it.
6390 2011-03-04 Michael Snyder <msnyder@vmware.com>
6392 * breakpoint.c (create_breakpoint): Add missing break statement.
6394 Reverting this patch:
6395 * infcall.c (call_function_by_hand): Add break statements for lint.
6397 Reverting this patch:
6398 * cli/cli-script.c (script_from_file): Add break for lint.
6400 2011-03-04 Michael Snyder <msnyder@vmware.com>
6402 * solib.c (reload_shared_libraries_1): Close memory leak.
6404 2011-03-03 Tom Tromey <tromey@redhat.com>
6407 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6410 2011-03-03 Michael Snyder <msnyder@vmware.com>
6412 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6413 fields of struct 'st' to zero.
6415 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6416 sal.pspace before calling set_current_source_symtab_and_line.
6418 2011-03-03 Yao Qi <yao@codesourcery.com>
6420 * Makefile.in (configure-common): Remove. Let Makefile
6421 in dir common to rebuild itself.
6422 (common/Makefile): Likewise.
6424 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6426 * utils.c (parse_escape): Add i18n markup in error message.
6428 2011-03-03 Yao Qi <yao@codesourcery.com>
6430 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6432 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6433 (displaced_write_reg, displaced_read_reg): Likewise.
6434 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6435 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6436 (cleanup_branch): Replace magic number 14 and 15 with
6437 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6439 2011-03-02 Michael Snyder <msnyder@vmware.com>
6441 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6443 * cli/cli-script.c (script_from_file): Add break for lint.
6445 * mdebugread.c (parse_partial_symbols): Fix indent.
6447 * target-descriptions.c (tdesc_gdb_type): No need to call
6448 xstrdup, callee saves a copy.
6450 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6452 * infcall.c (call_function_by_hand): Add break statements for lint.
6454 * utils.c (parse_escape): Escape the escape char.
6456 * python/py-inferior.c (build_inferior_list): Error out if
6457 PyList_Append fails.
6458 (gdbpy_inferiors): Error out if build_inferior_list fails.
6460 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6463 * record.c (record_restore): Move printf to before error return.
6465 2011-03-02 Yao Qi <yao@codesourcery.com>
6467 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6468 is_thumb and insn_size.
6469 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6470 on both ARM and Thumb mode.
6471 (arm_process_displaced_insn): Set is_thumb and insn_size.
6472 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6473 (arm_displaced_step_fixup): Likewise.
6475 2011-03-01 Michael Snyder <msnyder@vmware.com>
6477 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6479 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6481 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6483 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6485 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6488 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6489 which shadows function parameter.
6491 * tracepoint.c (create_tsv_from_upload): Superfluous call
6492 to xstrdup. Callee already calls xstrdup.
6494 * linespec.c (decode_line_1): Remove unnecessary null check.
6496 * tracepoint.c (scope_info): Fix mem leak, remove underused
6499 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6500 superfluous null check.
6502 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6503 (value_of_builtin_frame_fp_reg): Ditto.
6505 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6507 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6510 * linespec.c (decode_line_1): Check for null before dereference.
6512 * reverse.c (record_restore): Move null-check to before pointer
6515 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6517 * objc-lang.c (selectors_info): Add explanitory comment.
6518 (classes_info): Ditto.
6520 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6522 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6523 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6524 versions of the trampoline. Handle Thumb vs. ARM addresses.
6525 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6526 (arm_linux_init_abi): Install it.
6527 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6528 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6530 2011-02-28 Michael Snyder <msnyder@vmware.com>
6532 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6533 a little bigger, to avoid possibility of an overflow.
6535 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6536 buffers a little bigger, to avoid possibility of an overflow.
6538 * coffread.c (coff_getfilename): Add check to avoid overflow.
6540 * objc-lang.c (selectors_info): Add a small safety margin to
6542 (classes_info): Error out on too long REGEXP.
6544 * infrun.c (handle_inferior_event): Remove unused function call.
6546 * fork-child.c (fork_inferior): Remove ifdef'd code and
6549 * linux-thread-db.c (attach_thread): Discard unused value.
6551 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6553 * remote.c (remote_get_noisy_reply): Discard unused value.
6554 (remote_vcont_resume): Ditto.
6555 (remote_stop_ns): Ditto.
6557 * linespec.c (decode_objc): Delete unused variable.
6559 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6561 * dwarf2read.c (add_partial_symbol): Discard unused values.
6562 (read_base_type): Delete unused variable.
6564 * dbxread.c (read_dbx_symtab): Discard unused value.
6566 * eval.c (evaluate_subexp_standard): Delete unused variable,
6567 and discard unused values.
6569 * infcmd.c (_initialize_infcmd): Discard unused values.
6571 * stabsread.c (rs6000_builtin_type): Missing break statement.
6573 * dbxread.c (process_one_symbol): Discard unused value.
6575 * coffread.c (coff_end_symtab): Delete unused variable.
6577 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6578 (dwarf2_add_typedef): Delete unused variable.
6579 (read_namespace): Ditto.
6580 (dwarf_decode_macros): Ditto.
6582 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6584 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6586 * p-valprint.c (pascal_val_print): Discard unused value.
6588 * utils.c (nquery): Call va_end before return;
6592 * proc-service.c (ps_plog): Call va_end before return.
6594 2011-02-28 Tom Tromey <tromey@redhat.com>
6596 * python/python.c (gdbpy_value_cst): New global.
6597 (_initialize_python): Initialize it.
6598 * python/python-internal.h (gdbpy_value_cst): Declare.
6599 * python/py-value.c (convert_value_from_python): Use
6602 2011-02-28 Michael Snyder <msnyder@vmware.com>
6604 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6606 * breakpoint.c (catch_syscall_completer): Free malloced list.
6608 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6610 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6611 (lval_func_check_synthetic_pointer): Ditto.
6612 (lval_func_free_closure): Fix use-after-free.
6614 2011-02-28 Tom Tromey <tromey@redhat.com>
6616 * psymtab.c (expand_partial_symbol_tables): Use
6617 ALL_OBJFILE_PSYMTABS.
6619 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6621 * objc-lang.c (selectors_info): Error on too long REGEXP.
6623 2011-02-28 Michael Snyder <msnyder@vmware.com>
6625 * python/py-param.c (set_parameter_value): Add missing
6628 * linux-record.c (record_linux_system_call): Add missing
6631 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6633 * breakpoint.c (print_one_breakpoint_location): Remove unused
6634 argument PRINT_ADDRESS_BITS. Update callers.
6635 (print_one_breakpoint): Likewise.
6637 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6639 * breakpoint.c (wrap_indent_at_field): New function.
6640 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6641 Allocate ui_stream locally instead of using STB argument.
6642 (print_one_breakpoint_location): Update call.
6643 * ui-out.c (ui_out_query_field): New function.
6644 * ui-out.h (ui_out_query_field): Add prototype.
6646 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6648 From Michael Snyder <msnyder@vmware.com>
6649 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6651 2011-02-27 Michael Snyder <msnyder@vmware.com>
6653 * objc-lang.c (selectors_info): Prevent string overrun.
6655 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6658 * symtab.c (rbreak_command): Move variable 'file_name' to
6661 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6662 param with a local variable of the same name.
6664 2011-02-27 Michael Snyder <msnyder@vmware.com>
6666 * value.c (value_from_history_ref): New function.
6667 * value.h (value_from_history_ref): Export.
6668 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6669 to parse value history references.
6670 * cli/cli-utils.h (get_number_trailer): Update comment.
6672 2011-02-27 Michael Snyder <msnyder@vmware.com>
6674 * inferior.c (detach_inferior_command): Use get_number_or_range.
6675 (kill_inferior_command): Ditto.
6676 (remove_inferior_command): Ditto.
6677 (initialize_inferiors): Make command names plural.
6678 Update help strings.
6680 2011-02-27 Michael Snyder <msnyder@vmware.com>
6682 * darwin-nat-info.c: Fix comment typo.
6683 * dwarf2expr.h: Ditto.
6684 * fbsd-nat.c: Ditto.
6685 * fbsd-nat.h: Ditto.
6686 * frame-unwind.h: Ditto.
6688 * hppa-hpux-tdep.c: Ditto.
6689 * i386-linux-nat.c: Ditto.
6690 * linux-nat.c: Ditto.
6691 * nbsd-nat.c: Ditto.
6692 * nbsd-nat.h: Ditto.
6693 * ppc-linux-tdep.c: Ditto.
6696 * tui/tui-winsource.c: Ditto.
6698 2011-02-26 Michael Snyder <msnyder@vmware.com>
6700 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6702 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6704 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6705 with a local variable of the same name.
6707 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6708 param with a local variable of the same name.
6709 (i387_supply_xsave): Ditto.
6711 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6712 that it does not shadow a function parameter.
6714 * i386-nat.c (i386_length_and_rw_bits): Document that case
6715 statement is meant to fall through.
6717 * expprint.c (dump_subexp_body_standard): Document that case
6718 statement is meant to fall through.
6720 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6721 dead if statement. Condition can't be false.
6723 2011-02-25 Michael Snyder <msnyder@vmware.com>
6725 * arm-tdep.c: Fix typos in comments.
6726 * bsd-uthread.c: Ditto.
6727 * completer.c: Ditto.
6729 * cp-namespace.c: Ditto.
6730 * cp-support.c: Ditto.
6731 * cris-tdep.c: Ditto.
6733 * dwarf2read.c: Ditto.
6735 * gdbtypes.h: Ditto.
6736 * inferior.h: Ditto.
6737 * mdebugread.c: Ditto.
6738 * mips-tdep.c: Ditto.
6739 * ppc-linux-nat.c: Ditto.
6740 * ppc-linux-tdep.c: Ditto.
6741 * printcmd.c: Ditto.
6742 * sol-thread.c: Ditto.
6743 * solib-frv.c: Ditto.
6745 * sparc64-tdep.c: Ditto.
6746 * spu-tdep.c: Ditto.
6747 * stabsread.c: Ditto.
6752 * python/py-block.c: Ditto.
6753 * python/py-symbol.c: Ditto.
6754 * python/py-symtab.c: Ditto.
6755 * python/py-value.c: Ditto.
6756 * tui/tui-win.c: Ditto.
6758 2011-02-25 Michael Snyder <msnyder@vmware.com>
6760 * inferior.c (print_inferior): Accept a string instead of an int
6761 for requested_inferiors, and use get_number_or_range to parse it.
6762 (info_inferiors_command): Pass args string to print_inferior.
6763 (initialize_inferiors): Change help string for info inferiors.
6764 * inferior.h (print_inferior): Export prototype change.
6766 2011-02-25 Tom Tromey <tromey@redhat.com>
6768 * common/ax.def (invalid2): Set to 0x31.
6770 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6772 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6774 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6776 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6778 2011-02-24 Michael Snyder <msnyder@vmware.com>
6780 * Makefile.in (clean): Make clean should remove generated files
6781 observer.h and observer.inc.
6783 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6785 Revert the following patch (not approved yet):
6786 2011-02-21 Hui Zhu <teawater@gmail.com>
6787 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6788 * ax-gdb.c (gen_printf_expr_callback): New function.
6789 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6790 * ax-general.c (ax_memcpy): New function.
6791 (ax_print): Handle "printf".
6793 * ax.h (ax_memcpy): Forward declare.
6794 * common/ax.def (invalid2): Removed.
6795 (printf): New entry.
6796 * printcmd.c (printcmd.h): New include.
6797 (string_printf): New function.
6798 (ui_printf): Removed.
6799 (printf_command): Remove static. Call string_printf.
6800 (eval_command): Call string_printf.
6801 * printcmd.h: New file.
6802 * tracepoint.c (validate_actionline,
6803 encode_actions_1): handle printf_command.
6805 2011-02-23 Tom Tromey <tromey@redhat.com>
6807 * ax-general.c (ax_pick): Add missing newline.
6809 2011-02-23 Michael Snyder <msnyder@vmware.com>
6811 * breakpoint.c (breakpoint_1): Change first argument from an int
6812 to a char pointer, so that the function now accepts a list of
6813 breakpoints rather than just one. Use new function
6814 'number_is_in_list' to implement.
6815 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6816 (watchpoints_info): Ditto.
6817 (tracepoints_info): Ditto.
6818 (maintenance_info_breakpoints): Ditto.
6819 (_initialize_breakpoint): Update help strings to reflect the fact
6820 that these functions can now take more than one argument.
6821 * cli/cli-utils.c (number_is_in_list): New function.
6822 * cli/cli-utils.h (number_is_in_list): Export.
6824 2011-02-23 Michael Snyder <msnyder@vmware.com>
6826 * memattr.c (mem_enable_command): Use get_number_or_range.
6827 (mem_disable_command): Ditto.
6828 (mem_delete_command): Ditto.
6829 (_initialize_mem): Tweak usage message to reflect multiple
6832 2011-02-22 Doug Evans <dje@google.com>
6834 Add gdb.lookup_global_symbol python function.
6836 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6837 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6838 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6840 2011-02-22 Tom Tromey <tromey@redhat.com>
6842 * language.c (language_class_name_from_physname): Rename
6843 'curr_language' argument to 'lang'; use in body.
6845 2011-02-22 Michael Snyder <msnyder@vmware.com>
6847 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6849 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6851 * frame-unwind.h: Fix comment to mention the this frame, not the
6854 2011-02-22 Tom Tromey <tromey@redhat.com>
6856 * symfile.c (auto_solib_limit): Remove.
6857 * symfile.h (auto_solib_limit): Remove.
6859 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6861 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6863 2011-02-21 Michael Snyder <msnyder@vmware.com>
6865 * gdbthread.h (print_thread_info): Change prototype.
6866 * thread.c (print_thread_info): Accept char* instead of int for
6867 requested_threads argument. Use new function number_is_in_list
6868 to determine which threads to list.
6869 (info_threads_command): Pass char* to print_thread_info.
6870 * cli/cli-utils.c (number_is_in_list): New function.
6871 * cli/cli-utils.h (number_is_in_list): Export.
6872 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6874 (print_one_inferior): Ditto.
6875 (mi_cmd_list_thread_groups): Ditto.
6877 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6879 * common/Makefile.in (CFLAGS): New.
6880 (COMPILE): Add $(CFLAGS).
6882 2011-02-21 Tom Tromey <tromey@redhat.com>
6884 * breakpoint.c (catch_syscall_command_1): Fix typo.
6886 2011-02-21 Tom Tromey <tromey@redhat.com>
6888 * reverse.c: Include cli-utils.h.
6889 * printcmd.c: Include cli-utils.h.
6890 (string_printf): Use skip_spaces.
6891 * cli/cli-utils.h: New file.
6892 * cli/cli-utils.c: New file.
6893 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6894 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6895 * breakpoint.h (get_number, get_number_or_range): Move to
6897 * breakpoint.c: Include cli-utils.h.
6898 (get_number_trailer, get_number, get_number_or_range)
6899 (ep_skip_leading_whitespace): Move to cli-utils.c.
6900 (create_breakpoint_sal, find_condition_and_thread)
6901 (decode_static_tracepoint_spec, watch_command_1)
6902 (watch_maybe_just_location, ep_parse_optional_if_clause)
6903 (catch_fork_command_1, catch_exec_command_1)
6904 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6905 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6906 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6907 (HFILES_NO_SRCDIR): Add cli-utils.h.
6908 (cli-utils.o): New target.
6910 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6912 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6913 before calling discard_all_inferiors.
6915 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6917 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6918 (struct builtin_opencl_type): Remove.
6919 (builtin_opencl_type): Change return type to "struct type **".
6920 (lookup_opencl_vector_type): Update caller.
6921 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6922 (build_opencl_types): Install plain array of "struct type *"
6923 instead of "struct builtin_opencl_type".
6925 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6926 Ulrich Weigand <uweigand@de.ibm.com>
6928 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6929 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6930 (struct arm_linux_hwbp_cap): New type.
6931 (arm_linux_get_hwbp_cap): New function.
6932 (arm_linux_get_hw_breakpoint_count): Likewise.
6933 (arm_linux_get_hw_watchpoint_count): Likewise.
6934 (arm_linux_can_use_hw_breakpoint): Likewise.
6935 (arm_hwbp_type): New type.
6936 (arm_hwbp_control_t): Likewise.
6937 (struct arm_linux_hw_breakpoint): Likewise.
6938 (struct arm_linux_thread_points): Likewise.
6939 (arm_threads): New global variable.
6940 (arm_linux_find_breakpoints_by_tid): New function.
6941 (arm_hwbp_control_initialize): Likewise.
6942 (arm_hwbp_control_is_enabled): Likewise.
6943 (arm_hwbp_control_disable): Likewise.
6944 (arm_linux_hw_breakpoint_initialize): Likewise.
6945 (arm_linux_get_hwbp_type): Likewise.
6946 (arm_linux_hw_watchpoint_initialize): Likewise.
6947 (arm_linux_hw_breakpoint_equal): Likewise.
6948 (arm_linux_insert_hw_breakpoint1): Likewise.
6949 (arm_linux_remove_hw_breakpoint1): Likewise.
6950 (arm_linux_insert_hw_breakpoint): Likewise.
6951 (arm_linux_remove_hw_breakpoint): Likewise.
6952 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6953 (arm_linux_insert_watchpoint): Likewise.
6954 (arm_linux_remove_watchpoint): Likewise.
6955 (arm_linux_stopped_data_address): Likewise.
6956 (arm_linux_stopped_by_watchpoint): Likewise.
6957 (arm_linux_watchpoint_addr_within_range): Likewise.
6958 (arm_linux_new_thread): Likewise.
6959 (arm_linux_thread_exit): Likewise.
6960 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6961 related target callbacks. Register arm_linux_new_thread and
6962 arm_linux_thread_exit.
6963 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6964 * arm-tdep.c (arm_pc_is_thumb): Make global.
6965 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6967 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6969 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6970 per-frame locations while within a function epilogue.
6972 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6974 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6975 to GNU coding standards.
6977 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6979 Allow use of mingw native on Windows 95 OS.
6980 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6981 (ser_windows_close): Only call CancelIo if function exists.
6982 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6983 to check for existence of CancelIo function in kernel32 DLL.
6985 2011-02-21 Hui Zhu <teawater@gmail.com>
6987 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6988 * ax-gdb.c (gen_printf_expr_callback): New function.
6989 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6990 * ax-general.c (ax_memcpy): New function.
6991 (ax_print): Handle "printf".
6993 * ax.h (ax_memcpy): Forward declare.
6994 * common/ax.def (invalid2): Removed.
6995 (printf): New entry.
6996 * printcmd.c (printcmd.h): New include.
6997 (string_printf): New function.
6998 (ui_printf): Removed.
6999 (printf_command): Remove static. Call string_printf.
7000 (eval_command): Call string_printf.
7001 * printcmd.h: New file.
7002 * tracepoint.c (validate_actionline,
7003 encode_actions_1): handle printf_command.
7005 2011-02-19 Michael Snyder <msnyder@vmware.com>
7007 * reverse.c (delete_one_bookmark): Argument is now bookmark
7008 id rather than pointer to bookmark struct.
7009 (delete_bookmark_command): Use get_number_or_range.
7010 (goto_bookmark_command): Parse with get_number instead of strtoul.
7011 (bookmark_1): New function. Print info for one bookmark.
7012 (bookmarks_info): Use get_number_or_range and bookmark_1.
7014 2011-02-18 Michael Snyder <msnyder@vmware.com>
7016 * thread.c (info_threads_command): Re-implement using
7017 get_number_or_range.
7018 (thread_apply_command): Ditto.
7020 2011-02-18 Tom Tromey <tromey@redhat.com>
7022 * common/ax.def: New file.
7023 * ax.h (enum agent_op): Use ax.def.
7024 * ax-general.c (aop_map): Use ax.def.
7026 2011-02-18 Tom Tromey <tromey@redhat.com>
7028 * ax-general.c (aop_map): Add pick and rot.
7029 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7030 <DW_OP_rot>: Implement.
7031 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7033 * ax-general.c (ax_pick): New function.
7035 2011-02-18 Tom Tromey <tromey@redhat.com>
7037 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7039 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7040 Tom Tromey <tromey@redhat.com>
7042 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7043 make_symbol_overload_list_block with NULL BLOCK.
7044 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7046 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7048 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7049 * breakpoint.h (get_number_or_range): Declare.
7050 * printcmd.c (ALL_DISPLAYS): Declare.
7051 (delete_display): Reimplement taking a display pointer.
7052 (undisplay_command): Accept a range of displays to delete, using
7053 get_number_or_range.
7055 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7057 * c-valprint.c (c_val_print): Add embedded_offset to address
7058 for arrays of unspecified length.
7059 * p-valprint.c (pascal_val_print): Likewise.
7061 2011-02-18 Yao Qi <yao@codesourcery.com>
7063 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7064 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7065 (thumb_process_displaced_insn): New.
7066 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7067 call to arm_process_displaced_insn.
7068 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7070 2011-02-17 Tom Tromey <tromey@redhat.com>
7072 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7073 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7074 compile_dwarf_to_ax. No longer static. Call
7075 dwarf2_compile_cfa_to_ax.
7076 (locexpr_tracepoint_var_ref): Update.
7077 (loclist_tracepoint_var_ref): Update.
7078 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7079 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7080 argument; add 'gdbarch' and 'pc'.
7081 (dwarf2_compile_cfa_to_ax): New function.
7082 (dwarf2_frame_cache): Update.
7084 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7086 * ada-lang.c (ada_type_of_array): Fix the size of the array
7087 in the case of an unconstrained packed array.
7089 2011-02-17 Yao Qi <yao@codesourcery.com>
7091 * common/Makefile.in: Add more targets for make.
7093 2011-02-16 Tom Tromey <tromey@redhat.com>
7095 * dwarf2loc.c (unimplemented): Fix typo.
7097 2011-02-16 Tom Tromey <tromey@redhat.com>
7099 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7100 (compile_dwarf_to_ax) <default>: Use unimplemented.
7101 <DW_OP_deref>: Update.
7102 (disassemble_dwarf_expression): Update.
7103 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7104 (decode_locdesc): Update.
7105 * dwarf2expr.h (dwarf_stack_op_name): Update.
7107 2011-02-16 Tom Tromey <tromey@redhat.com>
7109 * ax.h (struct aop_map) <name>: Now const.
7111 2011-02-16 Tom Tromey <tromey@redhat.com>
7113 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7116 2011-02-16 Yao Qi <yao@codesourcery.com>
7118 * infrun.c (get_displaced_step_closure_by_addr): New.
7119 * inferior.h: Declare it.
7120 * arm-tdep.c: (arm_pc_is_thumb): Call
7121 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7124 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7125 Jan Kratochvil <jan.kratochvil@redhat.com>
7128 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7130 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7131 Jan Kratochvil <jan.kratochvil@redhat.com>
7133 * value.c (value_contents_copy_raw): Extend describing comment.
7134 Assert that the destination contents we're overwriting are wholly
7136 (value_contents_copy): Extend describing comment.
7138 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7139 Jan Kratochvil <jan.kratochvil@redhat.com>
7141 * value.c (value_available_contents_eq): Remove redundant local
7142 variables. Fix available contents comparision.
7143 * value.h (value_available_contents_eq): Extend describing
7146 2011-02-16 Yao Qi <yao@codesourcery.com>
7148 * thread.c (info_threads_command): Add missing i18n markup and remove
7151 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7153 * breakpoint.c (longjmp_names): New variable.
7154 (struct breakpoint_objfile_data): New type.
7155 (breakpoint_objfile_key): New variable.
7156 (msym_not_found): New variable.
7157 (msym_not_found_p): New predicate.
7158 (get_breakpoint_objfile_data): New function.
7159 (create_overlay_event_breakpoint): Check per-objfile cache for
7161 (create_longjmp_master_breakpoint): Likewise.
7162 (create_std_terminate_master_breakpoint): Likewise.
7163 (create_exception_master_breakpoint): Likewise.
7164 (_initialize_breakpoint): Register per-objfile data key.
7166 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7168 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7170 (create_longjmp_master_breakpoint): Loop over longjmp names.
7171 (create_std_terminate_master_breakpoint): Const-propagate parameter
7173 (update_breakpoints_after_exec): Adjust.
7174 (breakpoint_re_set): Adjust.
7176 2011-02-15 Michael Snyder <msnyder@vmware.com>
7178 * thread.c (info_threads_command): Process arg as thread id,
7179 or list of thread ids.
7180 (thread_find_command): New command.
7181 (_initialize_thread): Document argument for info threads.
7182 Document 'thread find' command.
7183 * NEWS: Document new command "thread find".
7185 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7187 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7188 * aclocal.m4: Regenerated with aclocal-1.11.1.
7189 * common/configure: Regenerate with autoconf-2.64.
7191 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7193 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7194 bool data type to a size of one byte.
7196 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7197 Jan Kratochvil <jan.kratochvil@redhat.com>
7199 * target.c (memory_xfer_live_readonly_partial): Document where to
7200 look for interface description.
7202 2011-02-15 Yao Qi <yao@codesourcery.com>
7205 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7206 order to store PC value on stack instead of text section.
7208 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7210 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7211 the EFP register set size.
7212 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7213 data from the VMX register.
7214 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7215 and write data from/to the VMX register.
7217 2011-02-14 Michael Snyder <msnyder@vmware.com>
7219 * command.h (enum command_class): New class 'no_set_class', for
7220 "show" commands without a corresponding "set" command.
7221 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7222 * copying.c (_initialize_copying): Ditto for "show copying" and
7224 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7226 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7227 which there is no corresponding "set" command (eg. "show copying").
7229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7230 Jan Kratochvil <jan.kratochvil@redhat.com>
7232 * exec.c (section_table_available_memory): Change `len' parameter
7234 * exec.h (section_table_available_memory): Ditto.
7235 * value.h (read_value_memory): Rename the `offset' parameter to
7238 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7239 Jan Kratochvil <jan.kratochvil@redhat.com>
7241 * memrange.c (compare_mem_ranges): Mention sort order in
7243 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7244 * tracepoint.c (traceframe_available_memory): Extend comment to
7245 mention what happens to RESULT when the target does not support
7248 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7249 Jan Kratochvil <jan.kratochvil@redhat.com>
7251 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7254 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7256 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7257 No longer handle NULL values.
7259 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7261 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7262 * value.c: Include "exceptions.h".
7263 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7265 * cp-abi.c: Include gdb_assert.h.
7266 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7267 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7269 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7270 parameters. No longer returns -1 on error.
7271 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7273 * cp-valprint.c: Include exceptions.h.
7274 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7275 the baseclass_offset. Handle unavailable base classes. Use
7276 val_print_invalid_address.
7277 * p-valprint.c: Include exceptions.h.
7278 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7279 when fetching the baseclass_offset. No longer expect
7280 baseclass_offset returning -1. Handle unavailable base classes.
7281 Use val_print_invalid_address.
7282 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7283 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7284 `embedded_offset' and `val' parameters. Adjust.
7285 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7286 parameter, and change its type to gdb_byte pointer. Add
7287 `embedded_offset' and `val' parameters. Adjust. No longer expect
7288 baseclass_offset returning -1.
7289 (value_dynamic_cast): Use value_contents_for_printing rather than
7290 value_contents. Adjust.
7291 (search_struct_field): No longer expect baseclass_offset returning
7293 (search_struct_method): If reading memory from the target is
7294 necessary, wrap it in a new value to pass to baseclass_offset. No
7295 longer expect baseclass_offset returning -1.
7296 (find_method_list): No longer expect baseclass_offset returning
7297 -1. Use value_contents_for_printing rather than value_contents.
7298 * valprint.c (val_print_invalid_address): New function.
7299 * valprint.h (val_print_invalid_address): Declare.
7300 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7301 and `val' parameters. No longer expect baseclass_offset returning
7303 * gnu-v2-abi.c: Include "exceptions.h".
7304 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7305 parameters. Handle unavailable memory. Recurse through
7306 gnuv2_baseclass_offset directly, rather than through
7307 baseclass_offset. No longer returns -1 on not found, instead
7309 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7310 `val' parameters. Adjust.
7312 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7314 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7315 almost but not quite adjacent.
7317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7319 * value.h (value_entirely_available): Declare.
7320 * value.c (value_entirely_available): New function.
7321 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7322 real type if the pointer is unavailable.
7324 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7326 * valops.c (value_repeat): Use read_value_memory instead of
7329 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7331 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7332 * value.c (value_contents_copy_raw, value_contents_copy): New
7334 (value_primitive_field): Use value_contents_copy_raw instead of
7336 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7338 (value_array, value_slice): Ditto.
7339 * valarith.c (value_subscripted_rvalue): Use
7340 value_contents_copy_raw instead of memcpy.
7342 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7344 <unavailable> references.
7346 * valops.c (get_value_at): Use value_from_contents_and_address,
7347 avoiding read_memory.
7349 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7351 * c-valprint.c (c_val_print): Print a string with unavailable
7352 contents as an array.
7354 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7356 * value.h (unpack_bits_as_long): Delete declaration.
7357 (unpack_value_bits_as_long): Declare.
7358 (unpack_value_field_as_long): Declare.
7359 (value_field_bitfield): Declare.
7360 * value.c (unpack_bits_as_long): Rename to...
7361 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7362 value parameters. Return the extracted result in a new output
7363 parameter. If the value contents are unavailable, return false,
7364 otherwise return true.
7365 (unpack_value_bits_as_long): New.
7366 (unpack_field_as_long): Rename to...
7367 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7368 Add embedded_offset and value parameters. Return the extracted
7369 result in a new output parameter. If the value contents are
7370 unavailable, return false, otherwise return true.
7371 (unpack_value_field_as_long): New.
7372 (unpack_field_as_long_1): New.
7373 (unpack_field_as_long): Reimplement as wrapper around
7374 unpack_value_field_as_long_1.
7375 (value_field_bitfield): New function.
7376 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7377 unpack_value_bits_as_long. Mark the value as unavailable, if it
7379 * jv-valprint.c (java_print_value_fields): Use
7380 value_field_bitfield.
7381 * p-valprint.c (pascal_object_print_value_fields): Use
7382 value_field_bitfield.
7383 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7385 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7387 * value.c (get_internalvar_integer): Also return the int value of
7388 TYPE_CODE_INT INTERNALVAR_VALUE values.
7389 (set_internalvar): Don't special case TYPE_CODE_INT.
7391 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7393 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7394 INTERNALVAR_POINTER.
7396 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7397 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7398 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7402 * value.h (value_available_contents_eq): Declare.
7403 * value.c (find_first_range_overlap): New function.
7404 (value_available_contents_eq): New function.
7405 * valprint.c (val_print_array_elements): Use
7406 value_available_contents_eq.
7407 * ada-valprint.c (val_print_packed_array_elements): Use
7408 value_available_contents_eq.
7409 * jv-valprint.c (java_value_print): Use
7410 value_available_contents_eq.
7412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7414 * target.c (target_read_live_memory): New function.
7415 (memory_xfer_live_readonly_partial): New.
7416 (memory_xfer_partial): If reading from a traceframe, fallback to
7417 reading unavailable read-only memory from read-only regions of
7419 * tracepoint.c (disconnect_tracing): Adjust.
7420 (set_current_traceframe): New, factored out from
7421 set_traceframe_number.
7422 (set_traceframe_number): Reimplement to only change the traceframe
7423 number on the GDB side.
7424 (do_restore_current_traceframe_cleanup): Adjust.
7425 (make_cleanup_restore_traceframe_number): New.
7426 (cur_traceframe_number): New global.
7427 (tfile_open): Set cur_traceframe_number to no traceframe.
7428 (set_tfile_traceframe): New function.
7429 (tfile_trace_find): If looking up a traceframe using any method
7430 other than by number, make sure the current tfile traceframe
7431 matches gdb's current traceframe. Update the current tfile
7432 traceframe if the lookup succeeded.
7433 (tfile_fetch_registers, tfile_xfer_partial)
7434 (tfile_get_trace_state_variable_value): Make sure the remote
7435 traceframe matches gdb's current traceframe.
7436 * remote.c (remote_traceframe_number): New global.
7437 (remote_open_1): Set it to -1.
7438 (set_remote_traceframe): New function.
7439 (remote_fetch_registers, remote_store_registers)
7440 (remote_xfer_memory, remote_xfer_partial)
7441 (remote_get_trace_state_variable_value): Make sure the remote
7442 traceframe matches gdb's current traceframe.
7443 (remote_trace_find): If looking up a traceframe using any method
7444 other than by number, make sure the current remote traceframe
7445 matches gdb's current traceframe. Update the current remote
7446 traceframe if the lookup succeeded.
7447 * infrun.c (fetch_inferior_event): Adjust.
7448 * tracepoint.h (set_current_traceframe): Declare.
7449 (get_traceframe_number, set_traceframe_number): Add describing
7452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7454 Mark pieces of values as unavailable if the corresponding memory
7457 * valops.c: Include tracepoint.h.
7458 (value_fetch_lazy): Use read_value_memory.
7459 (read_value_memory): New.
7460 * value.h (read_value_memory): Declare.
7461 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7462 * exec.c (section_table_available_memory): New function.
7463 * exec.h (section_table_available_memory): Declare.
7465 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7467 * Makefile.in (SFILES): Add memrange.c.
7468 (HFILES_NO_SRCDIR): Add memrange.h.
7469 (COMMON_OBS): Add memrange.o.
7470 * memrange.c: New file.
7471 * memrange.h: New file.
7472 * tracepoint.c: Include memrange.h.
7473 (struct mem_range): Delete.
7474 (mem_range_s): Delete.
7475 (traceframe_available_memory): New function.
7476 * tracepoint.h (traceframe_available_memory): Declare.
7478 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7480 * target.h (struct traceframe_info): Forward declare.
7481 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7482 (struct target_ops) <to_traceframe_info>: New field.
7483 (target_traceframe_info): New.
7484 * target.c (update_current_target): Inherit and default
7486 * remote.c (PACKET_qXfer_traceframe_info): New.
7487 (remote_protocol_features): Register qXfer:traceframe-info:read.
7488 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7489 (remote_traceframe_info): New.
7490 (init_remote_ops): Install it.
7491 (_initialize_remote): Install "set/show remote traceframe-info"
7493 * tracepoint.h (parse_traceframe_info): Declare.
7494 * tracepoint.c (struct mem_range): New.
7495 (mem_range_s): New typedef.
7496 (struct traceframe_info): New.
7497 (traceframe_info): New global.
7498 (free_traceframe_info): New function.
7499 (clear_traceframe_info): New function.
7500 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7502 (build_traceframe_info): New function.
7503 (tfile_traceframe_info): New function.
7504 (init_tfile_ops): Install tfile_traceframe_info.
7505 (traceframe_info_start_memory, free_result): New functions.
7506 (memory_attributes, traceframe_info_elements): New globals.
7507 (parse_traceframe_info, get_traceframe_info): New functions.
7508 * features/traceframe-info.dtd: New file.
7509 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7511 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7513 Base support for <unavailable> value contents.
7515 * value.h (value_bytes_available): Declare.
7516 (mark_value_bytes_unavailable): Declare.
7517 * value.c (struct range): New struct.
7518 (range_s): New typedef.
7519 (ranges_overlap): New function.
7520 (range_lessthan): New function.
7521 (ranges_contain_p): New function.
7522 (struct value) <unavailable>: New field.
7523 (value_bytes_available): New function.
7524 (mark_value_bytes_unavailable): New function.
7525 (require_not_optimized_out): Constify parameter.
7526 (require_available): New function.
7527 (value_contents_all, value_contents): Require all bytes be
7529 (value_free): Free `unavailable'.
7530 (value_copy): Copy `unavailable'.
7531 * valprint.h (val_print_unavailable): Declare.
7532 * valprint.c (valprint_check_validity): Rename `offset' parameter
7533 to `embedded_offset'. If printing a scalar, check whether the
7534 value chunk is available.
7535 (val_print_unavailable): New.
7536 (val_print_scalar_formatted): Check whether the value is
7538 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7539 pretty-printing unavailable values.
7541 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7543 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7544 * c-typeprint.c (c_type_print_args): Update the function comment. New
7545 variable param_type, initialize it. Remove const/volatile qualifiers
7546 for language_cplus and !show_artificial. Use param_type.
7548 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7550 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7551 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7552 * symtab.h (struct symtab) <next>: Comment extension.
7554 2011-02-12 Yao Qi <yao@codesourcery.com>
7556 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7558 2011-02-11 Yao Qi <yao@codesourcery.com>
7560 * common/Makefile.in: Add copyright header.
7562 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7564 * infrun.c (proceed): Move switching out and in of tfind mode from
7566 (fetch_inferior_event): ... to here.
7568 2011-02-11 Yao Qi <yao@codesourcery.com>
7570 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7572 * configure.ac: Add common to sub dir.
7573 * configure: Regenerate.
7575 2011-02-11 Yao Qi <yao@codesourcery.com>
7579 * common/Makefile.in: New.
7580 * common/configure.ac: New.
7581 * common/aclocal.m4: New.
7582 * common/configure: Generate.
7584 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7586 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7587 side of the parenthesis.
7590 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7591 * vec.h (VEC_block_remove): Fix comment.
7593 2011-02-08 Michael Snyder <msnyder@vmware.com>
7595 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7597 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7599 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7600 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7603 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7606 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7608 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7609 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7611 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7613 * dwarf2read.c (read_subroutine_type): Set special calling
7614 convention flag for functions compiled by IBM XL C for OpenCL.
7615 * ppc-sysv-tdep.c: Include "dwarf2.h"
7616 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7618 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7619 IBM OpenCL vector types calling convention.
7620 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7621 (ppc_sysv_abi_broken_return_value): Likewise.
7622 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7623 types calling convention.
7624 (ppc64_sysv_abi_return_value): Likewise.
7625 * spu-tdep.c: Include "dwarf2.h"
7626 (spu_return_value): Implement IBM OpenCL vector types calling
7629 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7631 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7632 correct ABI for AltiVec vector arguments.
7634 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7636 * valprint.c (val_print): Extend comment.
7637 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7638 interface explanation to val_print.
7639 (ada_val_print_array): Adjust comment to current interface.
7640 (print_field_values): Adjust comment to current interface.
7641 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7642 explanation to val_print.
7643 * f-valprint.c (f_val_print): Ditto.
7644 * jv-valprint.c (java_val_print): Ditto.
7645 * m2-valprint.c (m2_val_print): Ditto.
7646 * p-valprint.c (pascal_val_print): Ditto.
7648 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7650 * breakpoint.c (parse_breakpoint_sals): Fix description.
7652 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7653 Oguz Kayral <oguzkayral@gmail.com>
7655 * python/py-inferior.c (python_on_normal_stop): New function.
7656 (python_on_resume): New function.
7657 (python_inferior_exit): New function.
7658 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7659 inferior_exit observers.
7660 * python/py-evtregistry.c: New file.
7661 * python/py-threadevent.c : New file.
7662 * python/py-event.c: New file.
7663 * python/py-evts.c: New file.
7664 * python/py-continueevent.c: New file.
7665 * python/py-bpevent.c: New file.
7666 * python/py-signalevent.c: New file.
7667 * python/py-exetiedevent.c: New file.
7668 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7669 Move struct breakpoint_object from here...
7670 * python/python-internal.h: ... to here.
7671 * python/py-event.h: New file.
7672 * python/py-events.h: New file.
7673 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7674 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7675 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7676 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7677 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7678 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7679 Add build rules for all the above.
7681 2011-02-04 Tom Tromey <tromey@redhat.com>
7683 * dwarf2read.c (dwarf2_section_empty_p): New function.
7684 (dwarf2_read_section): Use dwarf2_section_empty_p.
7685 (dwarf2_section_size): New function.
7686 (dwarf2_get_section_info): Unconditionally read section.
7687 (dwarf2_read_index): Use dwarf2_section_empty_p.
7688 (partial_read_comp_unit_head): Use dwarf2_section_size.
7689 (dwarf2_symbol_mark_computed): Likewise.
7691 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7693 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7695 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7697 * mips-linux-tdep.c: Include xml-syscall.h.
7698 (mips_linux_get_syscall_number): New function.
7699 (mips_linux_init_abi): Add calls to
7700 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7701 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7702 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7703 * syscalls/mips-n32-linux.xml: New file.
7704 * syscalls/mips-n64-linux.xml: New file.
7705 * syscalls/mips-o32-linux.xml: New file.
7707 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7709 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7710 Complain about inverted range entries.
7711 (dwarf2_record_block_ranges): Likewise.
7713 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7716 * breakpoint.c (update_watchpoint): Fix name of the
7717 update_global_location_list function.
7718 (print_one_breakpoint): Fix typo.
7719 (_initialize_breakpoint): Remove extra space in hbreak help
7721 * breakpoint.h (struct bp_location) <length>: Fix field
7724 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7726 * regcache.c (registers_changed_ptid): Don't explictly always
7727 clear `current_regcache'. Only clear current_thread_ptid and
7728 current_thread_arch when PTID matches. Only reinit the frame
7729 cache if PTID matches the current inferior_ptid. Move alloca(0)
7731 (registers_changed): ... here.
7733 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7735 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7736 starts with __stack_chk_guard as stack guard symbol.
7738 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7740 * disasm.c (compare_lines): Handle the end of sequence markers
7741 within the line table to better support disassembling over
7742 compilation unit boundaries.
7744 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7746 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7747 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7748 implementation even if no symbols are available.
7749 (thumb_analyze_prologue): Update call to skip_prologue_function.
7750 (arm_analyze_prologue): Likewise.
7752 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7754 * arm-tdep.c: Include "observer.h".
7755 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7756 (arm_exidx_data_key): New static variable.
7757 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7758 (struct arm_exidx_data): Likewise.
7759 (arm_exidx_data_free): New function.
7760 (arm_compare_exidx_entries): Likewise.
7761 (arm_obj_section_from_vma): Likewise.
7762 (arm_exidx_new_objfile): Likewise.
7763 (arm_find_exidx_entry): Likewise.
7764 (arm_exidx_fill_cache): Likewise.
7765 (arm_exidx_unwind_sniffer): Likewise.
7766 (arm_exidx_unwind): New global variable.
7767 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7768 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7769 observer. Register arm_exidx_data_key as objfile data.
7771 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7773 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7774 due to accessing uninitialized variable. Fix indentation.
7776 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7778 * c-valprint.c (c_value_print): When doing virtual base pointer
7779 adjustment, create a new value with adjusted contents rather than
7780 changing the contents of the value being printed (and getting it
7783 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7785 * xml-support.c (xml_find_attribute): New.
7786 (xinclude_start_include): Use it.
7787 * xml-support.h (xml_find_attribute): Declare.
7788 * memory-map.c (memory_map_start_memory)
7789 (memory_map_start_property): Use xml_find_attribute.
7790 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7792 * remote.c (start_thread): Use xml_find_attribute.
7793 * solib-target.c (library_list_start_segment)
7794 (library_list_start_section, library_list_start_library)
7795 (library_list_start_list): Use xml_find_attribute.
7796 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7797 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7798 (tdesc_start_field): Use xml_find_attribute.
7800 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7802 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7803 (BUILD_OCL_VTYPES): Update.
7805 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7807 * configure.ac: Work around non-GNU sed limitation when computing
7808 python version number.
7809 * configure: Regenerate.
7811 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 Fix debug printing of TYPE_INSTANCE.
7814 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7815 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7817 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7819 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7820 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7821 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7822 * ada-operator.inc: Rename the file to ...
7823 * ada-operator.def: ... here, wrap all the entries by macro OP.
7824 * expprint.c (op_name_standard): Remove all the entries. Include
7825 "std-operator.def" instead.
7826 * expression.h (enum exp_opcode): Include "std-operator.def" and
7827 "ada-operator.def". Move all the entries ...
7828 * std-operator.def: ... here, wrap all the entries by macro OP.
7830 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7832 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7833 * breakpoint.c (remove_jit_event_breakpoints): New function.
7834 * jit.c (jit_descriptor_addr): Delete.
7835 (registering_code): Delete.
7836 (clear_int): Delete.
7837 (jit_inferior_data): New variable.
7838 (struct jit_inferior_data): New type.
7839 (get_jit_inferior_data): New function.
7840 (jit_inferior_data_cleanup): New function.
7841 (jit_read_descriptor): Adjust.
7842 (jit_register_code): Adjust.
7843 (jit_breakpoint_re_set_internal): New function; move code here ...
7844 (jit_inferior_init): ... from here.
7845 (jit_breakpoint_re_set): Adjust.
7846 (jit_reset_inferior_data_and_breakpoints): New function.
7847 (jit_inferior_created_observer): Adjust.
7848 (jit_inferior_exit_hook): Adjust.
7849 (jit_executable_changed_observer): New function.
7850 (jit_event_handler): Adjust.
7851 (_initialize_jit): Adjust.
7853 2011-01-31 Michael Snyder <msnyder@vmware.com>
7855 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7858 2011-01-31 Tom Tromey <tromey@redhat.com>
7861 * python/python.c (execute_gdb_command): Call
7862 prevent_dont_repeat.
7863 * top.c (suppress_dont_repeat): New global.
7864 (dont_repeat): Use it.
7865 (prevent_dont_repeat): New function.
7866 * command.h (prevent_dont_repeat): Declare.
7868 2011-01-31 Tom Tromey <tromey@redhat.com>
7870 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7871 * python/py-breakpoint.c (bppy_set_silent): Use
7872 breakpoint_set_silent.
7873 (bppy_set_thread): Use breakpoint_set_thread.
7874 (bppy_set_task): Use breakpoint_set_task.
7875 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7876 (breakpoint_set_task): Declare.
7877 (make_breakpoint_silent): Remove.
7878 * breakpoint.c (breakpoint_set_silent): New function.
7879 (breakpoint_set_thread): Likewise.
7880 (breakpoint_set_task): Likewise.
7881 (make_breakpoint_silent): Remove.
7883 2011-01-31 Tom Tromey <tromey@redhat.com>
7885 * breakpoint.h (user_breakpoint_p): Declare.
7886 * breakpoint.c (user_breakpoint_p): New function.
7887 (breakpoint_1): Use it.
7888 (save_breakpoints): Likewise.
7890 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7892 * configure.ac: Add handling of Python distribution on Windows.
7893 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7894 sysconfig variables are not defined, then do not use them.
7895 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7896 instead. On Windows, return all paths using forward-slashes
7897 rather than backslashes.
7899 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7901 * configure.ac: Remove fallback behavior for building
7902 against Python. Remove tweaking of Python include path.
7903 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7904 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7905 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7906 Always restore CPPFLAGS and LIBS after linking test.
7907 * configure: Regenerated.
7908 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7909 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7910 * python/python-internal.h: Adjust includes of Python .h files.
7912 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7914 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7917 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7919 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7922 2011-01-31 Yao Qi <yao@codesourcery.com>
7924 * arm-linux-nat.c: Update calls to regcache_register_status
7925 instead of regcache_valid_p.
7926 * aix-thread.c: Likewise.
7927 * i386gnu-nat.c: Likewise.
7929 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7932 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7933 touching TYPE_FIELD_ARTIFICIAL.
7935 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7937 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7940 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7942 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7943 selected, don't try iterating over the traceframe's blocks.
7944 (tfile_has_stack): If there's no traceframe selected, then there's
7946 (tfile_has_registers): If there's no traceframe selected, then
7947 there's no registers.
7949 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7951 * target.c (memory_xfer_partial): No need to restore shadows if we
7952 haven't read anything.
7954 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7956 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7957 and val_print_scalar_formatted.
7959 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7961 * tracepoint.c (tfile_read): New.
7962 (tfile_open): Use it.
7963 (tfile_get_traceframe_address): Use it.
7964 (tfile_trace_find): Use it.
7965 (walk_blocks_callback_func): New typedef.
7966 (match_blocktype): New function.
7967 (traceframe_walk_blocks): New function.
7968 (traceframe_find_block_type): New function.
7969 (tfile_fetch_registers, tfile_xfer_partial)
7970 (tfile_get_trace_state_variable_value): Use
7971 traceframe_find_block_type and tfile_read.
7973 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7975 * remote-mips.c: Add internationalization mark ups. Remove
7976 trailing \n from already marked up strings.
7978 2011-01-26 Tom Tromey <tromey@redhat.com>
7980 * python/py-prettyprint.c (print_string_repr): Clear
7981 'addressprint' option when calling val_print_string.
7982 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7983 option when calling val_print_string.
7985 2011-01-26 Tom Tromey <tromey@redhat.com>
7987 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7989 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7991 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7992 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7993 (gdb_py_long_as_ulongest): New defines.
7994 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7995 (gdb_py_int_as_long): Declare.
7996 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7997 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7998 (valpy_long): Add comment.
7999 * python/py-utils.c (get_addr_from_python): Use
8000 gdb_py_long_as_ulongest. Handle overflow properly.
8001 (gdb_py_object_from_longest): New function.
8002 (gdb_py_object_from_ulongest): Likewise.
8003 (gdb_py_int_as_long): Likewise.
8004 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8005 * python/py-symtab.c (salpy_get_pc): Use
8006 gdb_py_long_from_ulongest.
8007 (salpy_get_line): Use PyInt_FromLong.
8008 * python/py-param.c (set_parameter_value): Use
8010 * python/py-lazy-string.c (stpy_get_address): Use
8011 gdb_py_long_from_ulongest.
8012 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8013 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8014 * python/py-breakpoint.c (bppy_set_thread): Use
8016 (bppy_set_task): Likewise.
8017 (bppy_set_ignore_count): Likewise.
8018 (bppy_set_hit_count): Likewise.
8019 * python/py-block.c (blpy_get_start): Use
8020 gdb_py_object_from_ulongest.
8021 (blpy_get_end): Likewise.
8022 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8024 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8027 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8028 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8029 equality test for objfile, initialize addr_low if needed.
8031 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8033 * tui/tui-regs.c (tui_register_format): Remove dead code.
8035 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8037 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8038 instead of print_scalar_formatted.
8039 (print_scalar_formatted): Don't handle 's' format strings here,
8040 and add an assertion that we never see such format here.
8041 * valprint.h (val_print_scalar_formatted): Declare.
8042 * valprint.c (val_print_scalar_formatted): New.
8043 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8044 instead of print_scalar_formatted.
8045 * jv-valprint.c (java_val_print): Ditto.
8046 * p-valprint.c (pascal_val_print): Ditto.
8047 * ada-valprint.c (ada_val_print_1): Ditto.
8048 * f-valprint.c (f_val_print): Ditto.
8049 * infcmd.c (registers_info): Ditto.
8050 * m2-valprint.c (m2_val_print): Ditto.
8052 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8054 * m2-valprint.c (print_unbounded_array): Pass
8055 value_contents_for_printing rather than value_contents, to
8056 m2_print_array_contents. Also pass in the value.
8058 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8060 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8061 (save_gdb_index_command): Switch to .gdb_index version 4.
8063 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8065 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8066 than frame_register, and always pass a valid value to val_print.
8068 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8070 Centralize printing "<optimized out>".
8072 * valprint.h (val_print_optimized_out): Declare.
8073 * cp-valprint.c (cp_print_value_fields): Use
8074 val_print_optimized_out.
8075 * jv-valprint.c (java_print_value_fields): Ditto.
8076 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8077 * printcmd.c (print_formatted): Ditto.
8078 * valprint.c (valprint_check_validity): Ditto.
8079 (value_check_printable): Ditto.
8080 (val_print_optimized_out): New.
8082 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8084 * infcmd.c (default_print_registers_info): Allocate values so to
8085 never pass a NULL value to val_print.
8087 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8089 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8090 boolean. Make sure to always pass a value that matches the
8091 contents buffer to callees. Preserve `address' for following
8093 * value.c (value_contents_for_printing_const): New.
8094 (value_address): Constify value argument.
8095 * value.h (value_contents_for_printing_const): Declare.
8096 (value_address): Constify value argument.
8098 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8100 * regcache.c (struct regcache_descr): Rename
8101 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8102 and sizeof_cooked_register_valid_p to
8103 sizeof_cooked_register_status.
8104 (init_regcache_descr): Adjust.
8105 (struct regcache): Rename register_valid_p field to
8107 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8108 (do_cooked_read): Adjust.
8109 (regcache_valid_p): Rename to ...
8110 (regcache_register_status): ... this. Adjust.
8111 (regcache_invalidate): Adjust.
8112 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8114 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8115 as unavailable, not valid.
8116 (regcache_dump): Adjust.
8117 * regcache.h (enum register_status): New.
8118 (regcache_register_status): Declare.
8119 (regcache_invalidate): Delete declaration.
8120 * corelow.c (get_core_registers): Adjust.
8121 * tracepoint.c (tfile_fetch_registers): Adjust.
8122 * trad-frame.c (REG_VALUE): Rename to ...
8123 (TF_REG_VALUE): ... this.
8124 (REG_UNKNOWN): Rename to ...
8125 (TF_REG_UNKNOWN): ... this.
8126 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8127 * mi/mi-main.c (register_changed_p): Adjust.
8129 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8131 * regcache.c (struct regcache_descr): Remove outdated comment.
8132 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8134 (regcache_xmalloc): Rename to ...
8135 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8136 Allocate the regcache type accordingly.
8137 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8138 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8139 cooked registers, not raw.
8140 (regcache_dup_no_passthrough): Delete.
8141 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8142 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8143 mention obsolete write_register_bytes.
8144 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8146 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8148 Stop remote_read_bytes from handling partial reads itself.
8150 * remote-fileio.c: Include target.h.
8151 (remote_fileio_write_bytes): Delete.
8152 (remote_fileio_func_open, remote_fileio_func_write)
8153 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8155 (remote_fileio_func_stat): Use target_read_memory and
8156 target_write_memory.
8157 (remote_fileio_func_gettimeofday): Use target_write_memory.
8158 (remote_fileio_func_system): Use target_read_memory.
8159 * remote.c (remote_write_bytes): Make it static.
8160 (remote_read_bytes): Don't handle partial reads here.
8161 * remote.h (remote_read_bytes): Delete declaration.
8163 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8165 Simplify XML parsing a bit.
8167 * xml-support.h (gdb_xml_parse_quick): Declare.
8168 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8169 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8171 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8172 gdb_xml_create_parser_and_cleanup_1.
8173 (gdb_xml_parse_quick): New.
8174 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8175 * osdata.c (osdata_parse): Ditto.
8176 * remote.c (remote_threads_info): Ditto.
8177 * solib-target.c (solib_target_parse_libraries): Ditto.
8178 * xml-syscall.c (syscall_parse_xml): Ditto.
8179 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8181 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8183 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8184 with remote-mips.o added to gdb_target_obs.
8185 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8187 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8189 * ada-valprint.c (val_print_packed_array_elements): Pass the
8190 correct struct value to val_print.
8191 (ada_val_print_1): Ditto.
8193 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8195 Don't lose embedded_offset in printing routines throughout.
8197 * valprint.h (val_print_array_elements): Change prototype.
8198 * valprint.c (val_print_array_elements): Add `embedded_offset'
8199 parameter, and adjust to pass it down to val_print, while passing
8200 `valaddr' or `address' unmodified. Take embedded_offset into
8201 account when checking repetitions.
8202 * c-valprint.c (c_val_print): Pass embedded_offset to
8203 val_print_array_elements instead of adjusting `valaddr' and
8205 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8206 embedded_offset to val_print_array_elements instead of adjusting
8208 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8209 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8210 val_print_array_elements and pascal_object_print_value_fields
8211 instead of adjusting `valaddr'.
8212 (pascal_object_print_value_fields): Add `offset' parameter, and
8214 (pascal_object_print_value): Add `offset' parameter, and adjust to
8216 (pascal_object_print_static_field): Use
8217 value_contents_for_printing/value_embedded_offset, rather than
8219 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8220 parameter, and adjust to use it. Use
8221 value_contents_for_printing/value_embedded_offset, rather than
8223 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8224 (ada_val_print_array): Add `offset' parameter, and adjust to use
8226 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8227 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8228 Instead work with offsets. Use
8229 value_contents_for_printing/value_embedded_offset, rather than
8230 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8231 and use value_from_pointer to extract a target pointer, rather
8232 than value_from_longest.
8233 (print_variant_part): Add `offset' parameter. Replace
8234 `outer_valaddr' parameter by a new `outer_offset' parameter.
8235 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8236 (ada_value_print): Use
8237 value_contents_for_printing/value_embedded_offset, rather than
8239 (print_record): Add `offset' parameter, and adjust to pass it
8241 (print_field_values): Add `offset' parameter. Replace
8242 `outer_valaddr' parameter by a new `outer_offset' parameter.
8243 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8244 Use value_contents_for_printing/value_embedded_offset, rather than
8246 * d-valprint.c (dynamic_array_type): Use
8247 value_contents_for_printing/value_embedded_offset, rather than
8249 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8250 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8251 (java_print_value_fields): Take `offset' into account. Don't
8252 re-adjust `valaddr'. Instead pass down adjusted offsets.
8253 (java_val_print): Take `embedded_offset' into account. Pass it to
8254 java_print_value_fields.
8255 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8256 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8257 down adjusted offsets.
8258 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8259 (f_val_print): Take `embedded_offset' into account.
8261 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8263 * inflow.c: Include "gdbcmd.h".
8264 (interactive_mode): New static global, moved here from top.c.
8265 (show_interactive_mode): New function, moved here from top.c.
8266 use gdb_has_a_terminal instead of input_from_terminal_p to
8267 determine the current mode.
8268 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8270 (_initialize_inflow): Add the "set/show interactive-mode"
8271 commands. Moved here from top.c, after having adjusted slightly
8273 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8275 (input_from_terminal_p): Remove handling of "interactive-mode"
8276 setting, moved to infow.c.
8277 (init_main): Remove creation of the "set/show interactive-mode"
8278 commands, moved to inflow.c.
8280 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8282 * NEWS: Add entry for native ia64-hpux support.
8284 2011-01-19 Tom Tromey <tromey@redhat.com>
8287 * thread.c (free_thread): Free 'name'.
8288 (print_thread_info): Emit thread name. Change CLI output.
8289 (thread_name_command): New function.
8290 (do_captured_thread_select): Emit newline.
8291 (_initialize_thread): Register 'thread name' command.
8292 * target.h (struct target_ops) <to_thread_name>: New field.
8293 (target_thread_name): New macro.
8294 * target.c (update_current_target): Handle to_thread_name.
8295 * python/py-infthread.c (thpy_get_name): New function.
8296 (thpy_set_name): Likewise.
8297 (thread_object_getset): Add "name".
8298 * linux-nat.c (linux_nat_thread_name): New function.
8299 (linux_nat_add_target): Set to_thread_name.
8300 * gdbthread.h (struct thread_info) <name>: New field.
8302 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8304 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8305 (ada_val_print_1): Likewise.
8307 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8309 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8310 upper limit address is not greater than the function end address
8311 when the upper limit could not be computed using the debugging
8314 2011-01-17 Tom Tromey <tromey@redhat.com>
8316 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8318 * utils.c: Include gdb_regex.h.
8319 (do_regfree_cleanup): New function.
8320 (make_regfree_cleanup): Likewise.
8321 (get_regcomp_error): Likewise.
8322 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8324 2011-01-17 Tom Tromey <tromey@redhat.com>
8326 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8329 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8331 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8332 for internal variables.
8333 (last_was_structop): New static variable.
8334 (COMPLETE): New token.
8335 (field_exp): New rule to group all '.' suffix handling.
8336 Add mark_struct_expression calls when approriate to be able
8337 to correctly find fields for completion.
8338 (yylex): Adapt to handle field completion and set INTVAR when
8341 2011-01-14 Yao Qi <yao@codesourcery.com>
8343 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8344 save_reggroup, restore_reggroup and all_reggroup.
8346 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8348 * ada-valprint. (ada_printchar): Use the correct type length
8349 in call to ada_emit_char.
8350 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8352 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8354 * solib-som.h (hpux_major_release): Declare variable here.
8355 * solib-som.c: Remove <sys/utsname.h> header.
8356 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8357 (hpux_major_release): Make global, change default value to
8358 DEFAULT_HPUX_MAJOR_RELEASE.
8359 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8360 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8361 Add "solib-som.h" header.
8362 (set_hpux_major_release): New function.
8363 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8365 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8367 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8369 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8371 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8372 new-line at end of warning message.
8373 (ia64_hpux_store_register): Remove trailing new-line at end of
8375 * ia64-hpux-tdep.c: Rephrase comment.
8376 * solib-ia64-hpux.c (struct dld_info): Change type of field
8377 dld_flags from "long long" to ULONGEST.
8379 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8381 * target.h (deprecated_child_ops): Delete declaration.
8382 * target.c (deprecated_child_ops): Delete definition.
8384 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8386 * Makefile.in (hpux-thread.o): Delete rule.
8387 * configure.ac: Don't check for HPUX DCE threads support.
8388 * configure, config.in: Regenerate.
8389 * hppa-hpux-nat.c (child_suppress_run): Delete.
8390 (hppa_hpux_child_can_run): Delete.
8391 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8392 * hpux-thread.c: Delete.
8394 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8396 * hpux-thread.c (hpux_pid_to_str): Delete.
8398 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8400 * ada-valprint.c (ada_emit_char): Remove strange code.
8401 Check that c is <= UCHAR_MAX before passing it to isascii.
8402 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8404 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8406 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8407 to the case where instream is stdin.
8409 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8411 * ia64-tdep.h (struct regcache): Forward declare.
8412 (struct ia64_infcall_ops): New struct type.
8413 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8415 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8416 Renames ia64_find_global_pointer.
8417 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8418 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8419 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8421 (ia64_infcall_ops): New static global constant.
8422 (ia64_gdbarch_init): Set tdep->infcall_ops.
8423 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8424 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8425 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8426 (ia64_hpux_dummy_code): New static global constant.
8427 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8428 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8429 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8431 (ia64_hpux_infcall_ops): New static global constant.
8432 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8433 for inferior function calls to work properly on ia64-hpux.
8435 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8437 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8438 * ia64-tdep.h (struct frame_info): forward declaration.
8439 (struct gdbarch_tdep): Add field size_of_register_frame.
8440 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8441 to determine the size of the register frame.
8442 (ia64_size_of_register_frame): New function.
8443 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8444 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8445 (IA64_HPUX_UREG_REASON): New macro.
8446 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8448 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8449 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8450 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8453 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8455 Add support for ia64-hpux.
8456 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8457 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8459 * configure.host: Add handling for ia64-hpux hosts. Add associated
8461 * configure.tgt: Add handling for ia64-hpux targets.
8462 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8463 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8464 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8466 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8468 [ttrace] Compute thread list immediately after attach.
8469 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8471 (inf_ttrace_attach): Use it.
8473 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8475 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8476 if we could not determine the frame's function address. Instead,
8477 use the frame's PC, and then continue.
8479 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8481 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8482 not already defined.
8484 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8486 * ia64-tdep.c (ia64_struct_type_p): New function.
8487 (ia64_extract_return_value): Handle integral values that are
8488 less than 8 bytes long.
8489 (ia64_push_dummy_call): Likewise.
8491 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8493 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8494 floatformat_ia64_ext.
8495 (floatformat_ia64_ext_big): New static const.
8496 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8498 2011-01-12 Tom Tromey <tromey@redhat.com>
8500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8502 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8503 (mi_cmd_thread_list_ids): Likewise.
8504 (mi_cmd_data_list_changed_registers): Likewise.
8505 (mi_cmd_data_list_register_values): Likewise.
8506 (mi_cmd_data_write_register_values): Likewise.
8507 (mi_cmd_data_evaluate_expression): Likewise.
8508 (mi_cmd_data_read_memory): Likewise.
8509 (mi_cmd_data_read_memory_bytes): Likewise.
8510 (mi_cmd_data_write_memory): Likewise.
8511 (mi_cmd_enable_timings): Likewise.
8512 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8513 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8514 (mi_cmd_var_delete): Likewise.
8515 (mi_cmd_var_set_format): Likewise.
8516 (mi_cmd_var_show_format): Likewise.
8517 (mi_cmd_var_info_num_children): Likewise.
8518 (mi_cmd_var_list_children): Likewise.
8519 (mi_cmd_var_info_type): Likewise.
8520 (mi_cmd_var_info_expression): Likewise.
8521 (mi_cmd_var_show_attributes): Likewise.
8522 (mi_cmd_var_assign): Likewise.
8523 (mi_cmd_var_update): Likewise.
8524 (mi_cmd_enable_pretty_printing): Likewise.
8525 (mi_cmd_var_set_update_range): Likewise.
8526 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8528 (mi_cmd_target_file_put): Likewise.
8529 (mi_cmd_target_file_delete): Likewise.
8530 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8532 (mi_cmd_stack_info_depth): Likewise.
8533 (mi_cmd_stack_list_locals): Likewise.
8534 (mi_cmd_stack_list_args): Likewise.
8535 (mi_cmd_stack_select_frame): Likewise.
8536 (mi_cmd_stack_select_frame): Likewise.
8537 (mi_cmd_stack_info_frame): Likewise.
8538 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8540 (mi_cmd_file_list_exec_source_files): Likewise.
8541 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8542 (mi_cmd_env_cd): Likewise.
8543 (mi_cmd_env_path): Likewise.
8544 (mi_cmd_env_dir): Likewise.
8545 (mi_cmd_inferior_tty_show): Likewise.
8546 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8547 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8548 (mi_cmd_break_watch): Likewise.
8550 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8552 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8553 (ppc_linux_insert_hw_breakpoint): Likewise.
8554 (ppc_linux_remove_hw_breakpoint): Likewise.
8555 (ppc_linux_insert_watchpoint): Likewise.
8557 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8558 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 PR fortran/11104 and DWARF unbound arrays detection.
8561 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8562 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8563 unspecified upper bound.
8564 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8565 variables array_size_array, tmp_type and offset_item. New variable
8566 array. Remove call to f77_get_upperbound. New variables array_type
8567 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8568 the final call to deprecated_set_value_type.
8570 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8572 Make value allocations more lazy.
8573 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8574 instead of allocate_value and set_value_lazy when possible.
8575 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8576 instead of allocate_value and set_value_lazy.
8577 * findvar.c (value_of_register_lazy): Likewise.
8578 (read_var_value): Remove V preallocation, call just check_typedef in
8579 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8580 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8581 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8582 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8583 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8584 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8585 the end, remove set_value_lazy there.
8586 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8587 instead of allocate_value and set_value_lazy when possible.
8588 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8589 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8590 of allocate_value and set_value_lazy.
8591 (value_from_contents_and_address): Use allocate_value_lazy instead of
8592 allocate_value and set_value_lazy when possible.
8594 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8596 * disasm.c (dump_insns): Support dumping opcodes for MI.
8597 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8598 dumping of instruction opcodes.
8600 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8602 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8605 2011-01-11 Tom Tromey <tromey@redhat.com>
8607 * thread.c (do_captured_thread_select): Emit newline before
8610 2011-01-11 Michael Snyder <msnyder@vmware.com>
8612 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8613 * score-tdep.c: Ditto.
8614 * score-tdep.h: Ditto.
8615 * ser-base.c: Ditto.
8616 * ser-go32.c: Ditto.
8619 * ser-mingw.c: Ditto.
8620 * ser-pipe.c: Ditto.
8622 * ser-unix.c: Ditto.
8623 * sh64-tdep.c: Ditto.
8624 * shnbsd-nat.c: Ditto.
8628 * solib-darwin.c: Ditto.
8629 * solib-frv.c: Ditto.
8631 * solib-irix.c: Ditto.
8632 * solib-osf.c: Ditto.
8633 * solib-pa64.c: Ditto.
8634 * solib-som.c: Ditto.
8635 * solib-spu.c: Ditto.
8636 * solib-sunos.c: Ditto.
8637 * solib-svr4.c: Ditto.
8639 * sol-thread.c: Ditto.
8643 * sparc64-linux-tdep.c: Ditto.
8644 * sparc64-tdep.c: Ditto.
8645 * sparc-linux-nat.c: Ditto.
8646 * sparc-linux-tdep.c: Ditto.
8647 * sparc-sol2-nat.c: Ditto.
8648 * sparc-sol2-tdep.c: Ditto.
8649 * sparc-tdep.c: Ditto.
8650 * sparc-tdep.h: Ditto.
8651 * spu-tdep.c: Ditto.
8652 * stabsread.c: Ditto.
8653 * stabsread.h: Ditto.
8661 * target-descriptions.c: Ditto.
8662 * target-descriptions.h: Ditto.
8664 * target-memory.c: Ditto.
8665 * terminal.h: Ditto.
8668 * tracepoint.c: Ditto.
8669 * tracepoint.h: Ditto.
8670 * trad-frame.h: Ditto.
8671 * typeprint.c: Ditto.
8673 2011-01-11 Michael Snyder <msnyder@vmware.com>
8675 * ui-file.c: Comment cleanup, mostly periods and spaces.
8680 * v850-tdep.c: Ditto.
8681 * valarith.c: Ditto.
8683 * valprint.c: Ditto.
8684 * valprint.h: Ditto.
8689 * vax-tdep.c: Ditto.
8693 * windows-nat.c: Ditto.
8694 * windows-tdep.c: Ditto.
8695 * xcoffread.c: Ditto.
8696 * xcoffsolib.c: Ditto.
8697 * xml-support.c: Ditto.
8698 * xstormy16-tdep.c: Ditto.
8699 * xtensa-tdep.c: Ditto.
8700 * xtensa-tdep.h: Ditto.
8702 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8704 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8705 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8707 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8708 Thiago Jung Bauermann <bauerman@br.ibm.com>
8710 Implement support for PowerPC BookE ranged watchpoints.
8712 (struct breakpoint_ops) <resources_needed>: New method.
8713 Initialize to NULL in all existing breakpoint_ops instances.
8714 (struct breakpoint) <exact>: New field.
8715 (target_exact_watchpoints): Declare external global.
8716 * breakpoint.c (target_exact_watchpoints): New global flag.
8717 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8718 b->enable_state to bp_enabled before calling
8719 hw_watchpoint_used_count.
8720 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8721 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8723 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8724 if the watchpoint is exact.
8725 (resources_needed_watchpoint): New function.
8726 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8727 (watch_command_1): Set b->exact if the user asked for an exact
8728 watchpoint and one can be set.
8729 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8730 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8731 the user asks for an exact watchpoint and one can be set. Return
8732 number of needed debug registers to watch the expression.
8733 * gdbtypes.c (is_scalar_type): New function, based on
8734 valprint.c:scalar_type_p.
8735 (is_scalar_type_recursive): New function.
8736 * gdbtypes.h (is_scalar_type_recursive): Declare.
8737 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8738 handle regions when ranged watchpoints are available.
8739 (create_watchpoint_request): New function.
8740 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8741 create_watchpoint_request.
8742 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8743 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8744 `set powerpc' and `show powerpc' commands.
8745 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8746 Mention documentation comment in the target macro.
8747 (target_region_ok_for_hw_watchpoint): Document return value.
8749 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8751 * breakpoint.c (update_watchpoint): Decide on using a software or
8752 hardware watchpoint after the bp_locations are created.
8754 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8756 Convert hardware watchpoints to use breakpoint_ops.
8757 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8758 <insert_location>: ... this. Return int instead of void.
8759 Accept pointer to struct bp_location instead of pointer to
8760 struct breakpoint. Adapt all implementations.
8761 (breakpoint_ops) <remove>: Rename to...
8762 <remove_location>: ... this. Accept pointer to struct bp_location
8763 instead of pointer to struct breakpoint. Adapt all implementations.
8764 * breakpoint.c (insert_catchpoint): Delete function.
8765 (insert_bp_location): Call the watchpoint or catchpoint's
8766 breakpoint_ops.insert method.
8767 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8768 breakpoint_ops.remove method.
8769 (insert_watchpoint, remove_watchpoint): New functions.
8770 (watchpoint_breakpoint_ops): New structure.
8771 (watch_command_1): Initialize the OPS field.
8772 * inf-child.c (inf_child_insert_fork_catchpoint)
8773 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8774 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8775 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8777 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8778 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8779 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8780 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8781 * target.c (update_current_target): Change default implementation of
8782 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8783 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8784 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8785 to_set_syscall_catchpoint to return_one.
8786 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8787 (debug_to_insert_exec_catchpoint): Report return value.
8788 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8789 (to_insert_exec_catchpoint): Change declaration to return int instead
8792 2011-01-11 Michael Snyder <msnyder@vmware.com>
8794 * arm-tdep.c: Internationalization.
8797 * fork-child.c: Ditto.
8798 * nto-procfs.c: Ditto.
8799 * ppc-sysv-tdep.c: Ditto.
8801 * remote-mips.c: Ditto.
8803 * rs6000-nat.c: Ditto.
8804 * rs6000-tdep.c: Ditto.
8808 * xml-support.c: Ditto.
8809 * mi/mi-cmd-break.c: Ditto.
8810 * mi/mi-cmd-var.c: Ditto.
8811 * mi/mi-interp.c: Ditto.
8812 * mi/mi-main.c: Ditto.
8814 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8816 * remote-sim.c (gdbsim_store_register): Update API to
8817 sim_store_register to check more error conditions.
8819 2011-01-10 Michael Snyder <msnyder@vmware.com>
8821 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8822 * nto-tdep.c: Ditto.
8823 * nto-tdep.h: Ditto.
8824 * objc-exp.y: Ditto.
8825 * objc-lang.c: Ditto.
8826 * objfiles.c: Ditto.
8827 * objfiles.h: Ditto.
8828 * observer.c: Ditto.
8829 * opencl-lang.c: Ditto.
8832 * parser-defs.h: Ditto.
8835 * posix-hdep.c: Ditto.
8836 * ppcbug-rom.c: Ditto.
8837 * ppc-linux-nat.c: Ditto.
8838 * ppc-linux-tdep.c: Ditto.
8839 * ppc-linux-tdep.h: Ditto.
8840 * ppcnbsd-tdep.c: Ditto.
8841 * ppcobsd-tdep.c: Ditto.
8842 * ppcobsd-tdep.h: Ditto.
8843 * ppc-sysv-tdep.c: Ditto.
8844 * ppc-tdep.h: Ditto.
8845 * printcmd.c: Ditto.
8846 * proc-abi.c: Ditto.
8847 * proc-flags.c: Ditto.
8849 * proc-utils.h: Ditto.
8850 * progspace.h: Ditto.
8851 * prologue-value.c: Ditto.
8852 * prologue-value.h: Ditto.
8853 * psympriv.h: Ditto.
8855 * p-typeprint.c: Ditto.
8856 * p-valprint.c: Ditto.
8857 * ravenscar-sparc-thread.c: Ditto.
8858 * ravenscar-thread.c: Ditto.
8859 * ravenscar-thread.h: Ditto.
8861 * regcache.c: Ditto.
8862 * regcache.h: Ditto.
8864 * remote-fileio.c: Ditto.
8865 * remote-fileio.h: Ditto.
8867 * remote-m32r-sdi.c: Ditto.
8868 * remote-mips.c: Ditto.
8869 * remote-sim.c: Ditto.
8870 * rs6000-aix-tdep.c: Ditto.
8871 * rs6000-nat.c: Ditto.
8872 * rs6000-tdep.c: Ditto.
8874 2011-01-10 Michael Snyder <msnyder@vmware.com>
8876 * charset.c (validate): Internationalization.
8877 * coffread.c (read_one_sym): Ditto.
8878 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8879 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8880 * inflow.c (new_tty): Ditto.
8881 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8882 * m32c-tdep.c (m32c_return_value): Ditto.
8883 * mep-tdep.c (mep_store_return_value): Ditto.
8884 * score-tdep.c (score7_fetch_insn): Ditto.
8885 * ser-mingw.c (pipe_windows_open): Ditto.
8886 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8887 * spu-tdep.c (spu_register_type): Ditto.
8888 * tracepoint.c (trace_find_command): Ditto.
8889 * valarith.c (value_pos): Ditto.
8891 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8893 * ada-valprint.c (printstr): Minor comment reformatting.
8895 2011-01-08 Michael Snyder <msnyder@vmware.com>
8897 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8900 2011-01-08 Michael Snyder <msnyder@vmware.com>
8902 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8903 * hppa-hpux-tdep.c: Ditto.
8904 * hppa-linux-nat.c: Ditto.
8905 * hppa-linux-tdep.c: Ditto.
8906 * hppanbsd-tdep.c: Ditto.
8907 * hppa-tdep.c: Ditto.
8908 * hppa-tdep.h: Ditto.
8909 * hpux-thread.c: Ditto.
8910 * i386-cygwin-tdep.c: Ditto.
8911 * i386-darwin-nat.c: Ditto.
8912 * i386gnu-nat.c: Ditto.
8913 * i386-linux-nat.c: Ditto.
8914 * i386-linux-tdep.c: Ditto.
8915 * i386-nat.c: Ditto.
8916 * i386-nat.h: Ditto.
8917 * i386nbsd-tdep.c: Ditto.
8918 * i386-sol2-nat.c: Ditto.
8919 * i386-stub.c: Ditto.
8920 * i386-tdep.c: Ditto.
8921 * i386-tdep.h: Ditto.
8922 * i387-tdep.c: Ditto.
8923 * ia64-linux-nat.c: Ditto.
8924 * ia64-linux-tdep.c: Ditto.
8925 * ia64-tdep.c: Ditto.
8929 * inferior.c: Ditto.
8930 * inferior.h: Ditto.
8936 * iq2000-tdep.c: Ditto.
8937 * irix5-nat.c: Ditto.
8943 * jv-typeprint.c: Ditto.
8944 * jv-valprint.c: Ditto.
8945 * language.c: Ditto.
8946 * language.h: Ditto.
8947 * linespec.c: Ditto.
8948 * linux-fork.c: Ditto.
8949 * linux-nat.c: Ditto.
8950 * linux-thread-db.c: Ditto.
8951 * lm32-tdep.c: Ditto.
8953 2011-01-08 Michael Snyder <msnyder@vmware.com>
8955 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8957 * m2-typeprint.c: Ditto.
8958 * m2-valprint.c: Ditto.
8959 * m32c-tdep.c: Ditto.
8960 * m32r-linux-nat.c: Ditto.
8961 * m32r-rom.c: Ditto.
8962 * m32r-tdep.c: Ditto.
8963 * m32r-tdep.h: Ditto.
8964 * m68hc11-tdep.c: Ditto.
8965 * m58klinux-nat.c: Ditto.
8966 * m68k-tdep.c: Ditto.
8967 * m88k-tdep.c: Ditto.
8968 * m88k-tdep.h: Ditto.
8969 * machoread.c: Ditto.
8970 * macrocmd.c: Ditto.
8971 * macroexp.c: Ditto.
8972 * macrotab.c: Ditto.
8975 * mdebugread.c: Ditto.
8976 * mdebugread.h: Ditto.
8979 * memory-map.h: Ditto.
8980 * mep-tdep.c: Ditto.
8981 * microblaze-rom.c: Ditto.
8982 * microblaze-tdep.c: Ditto.
8984 * mips-irix-tdep.c: Ditto.
8985 * mips-linux-nat.c: Ditto.
8986 * mips-linux-tdep.c: Ditto.
8987 * mips-linux-tdep.h: Ditto.
8988 * mipsnbsd-nat.c: Ditto.
8989 * mipsnbsd-tdep.c: Ditto.
8990 * mipsread.c: Ditto.
8991 * mips-tdep.c: Ditto.
8992 * mips-tdep.h: Ditto.
8993 * mn10300-linux-tdep.c: Ditto.
8994 * mn10300-tdep.c: Ditto.
8995 * mn10300-tdep.h: Ditto.
8998 * moxie-tdep.c: Ditto.
8999 * moxie-tdep.h: Ditto.
9002 2011-01-08 Mike Frysinger <vapier@gentoo.org>
9004 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9006 2011-01-08 Robert Millan <rmh@gnu.org>
9008 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9010 2011-01-07 Michael Snyder <msnyder@vmware.com>
9012 * charset.c (_initialize_charset): Fix typo in string.
9014 2011-01-07 Michael Snyder <msnyder@vmware.com>
9016 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9018 * tui/tui-layout.c (tui_set_layout_for_display_command):
9019 Split line so that operator goes to beginning of line.
9020 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9021 assignment out of if statement.
9023 2011-01-07 Michael Snyder <msnyder@vmware.com>
9025 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9026 * ada-lang.h: Ditto.
9027 * ada-tasks.c: Ditto.
9028 * ada-valprint.c: Ditto.
9029 * aix-threads.c: Ditto.
9030 * alpha-linux-nat.c: Ditto.
9031 * alpha-linux-tdep.c: Ditto.
9032 * alpha-mdebug-tdep.c: Ditto.
9033 * alpha-nat.c: Ditto.
9034 * alpha-osf1-tdep.c: Ditto.
9035 * alpha-tdep.c: Ditto.
9036 * alphabsd-nat.c: Ditto.
9037 * alphabsd-tdep.c: Ditto.
9038 * amd64-darwin-tdep.c: Ditto.
9039 * amd64-linux-nat.c: Ditto.
9040 * amd64-linux-tdep.c: Ditto.
9041 * amd64-sol2-tdep.c: Ditto.
9042 * amd64-tdep.c: Ditto.
9043 * amd64-fbsd-tdep.c: Ditto.
9044 * amd64-nbsd-tdep.c: Ditto.
9045 * amd64-obsd-tdep.c: Ditto.
9046 * amd64-linux-nat.c: Ditto.
9047 * amd64-linux-tdep.c: Ditto.
9048 * arm-tdep.c: Ditto.
9049 * arm-tdep.h: Ditto.
9050 * armnbsd-nat.c: Ditto.
9051 * avr-tdep.c: Ditto.
9052 * bfin-tdep.c: Ditto.
9054 * c-typeprintc: Ditto.
9055 * c-valprint.c: Ditto.
9056 * coff-pe-read.h: Ditto.
9057 * coffreead.c: Ditto.
9058 * cris-tdep.c: Ditto.
9060 * darwin-nat-info.c: Ditto.
9061 * darwin-nat.c: Ditto.
9062 * dbug-rom.c: Ditto.
9066 * dec-thread.c: Ditto.
9068 * demangle.c: Ditto.
9069 * dicos-tdep.c: Ditto.
9070 * dictionary.c: Ditto.
9071 * dictionary.h: Ditto.
9072 * dink32-rom.c: Ditto.
9074 * doublest.c: Ditto.
9076 * dummy-frame.c: Ditto.
9077 * dwarf2-frame.c: Ditto.
9078 * dwarf2expr.c: Ditto.
9079 * dwarf2loc.c: Ditto.
9080 * dwarf2read.c: Ditto.
9084 * event-top.h: Ditto.
9085 * exceptions.c: Ditto.
9086 * exceptions.h: Ditto.
9088 * expprint.c: Ditto.
9089 * expression.h: Ditto.
9093 * f-typeprint.c: Ditto.
9094 * f-valprint.c: Ditto.
9095 * fbsd-nat.c: Ditto.
9097 * fork-child.c: Ditto.
9100 * frv-linux-tdep.c: Ditto.
9101 * frv-tdep.c: Ditto.
9103 * gdb-stabs.h: Ditto.
9104 * gdb_assert.h: Ditto.
9105 * gdb_string.h: Ditto.
9106 * gdb_thread_db.h: Ditto.
9107 * gdb_wait.h: Ditto.
9108 * gdbarch.sh: Ditto.
9110 * gdbthread.h: Ditto.
9111 * gdbtypes.c: Ditto.
9112 * gdbtypes.h: Ditto.
9115 * gnu-v2-abi.c: Ditto.
9116 * gnu-v3-abi.c: Ditto.
9117 * go32-nat.c: Ditto.
9118 * gdbarch.c: Regenerate.
9119 * gdbarch.h: Regenerate.
9121 2011-01-07 Michael Snyder <msnyder@vmware.com>
9123 * ax-gdb.c: Adjust some long output strings.
9124 * breakpoint.c: Ditto.
9129 * linux-nat.c: Ditto.
9130 * solib-pa64.c: Ditto.
9131 * solib-som.c: Ditto.
9133 2011-01-06 Tom Tromey <tromey@redhat.com>
9137 * python/python.c (GdbMethods): Add "newest_frame" method.
9138 * python/python-internal.h (gdbpy_newest_frame): Declare.
9139 * python/py-frame.c (gdbpy_newest_frame): New function.
9141 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9143 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9144 * jit.c (jit_debug): New variable.
9145 (show_jit_debug): New function.
9146 (struct target_buffer): Use ULONGEST.
9147 (bfd_open_from_target_memory): Likewise.
9148 (jit_register_code, jit_inferior_init): Add debug output.
9149 (_initialize_jit): Register "debug jit" command.
9151 2011-01-06 Tom Tromey <tromey@redhat.com>
9153 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9154 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9157 2011-01-06 Tom Tromey <tromey@redhat.com>
9159 * python/py-frame.c (frapy_block): Use get_frame_block.
9161 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9163 Do not stop on SIGPRIO signals by default
9164 * infrun.c (_initialize_infrun): Unset signal_stop and
9165 signal_print for TARGET_SIGNAL_PRIO.
9167 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9169 * ada-tasks.c: Fix style violation in comment.
9171 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9173 * linespec.c (decode_compound, find_method): Remove trailing \n
9174 at end of error string.
9175 * solib-irix.c (irix_current_sos): Likewise.
9176 * varobj.c (uninstall_variable): Likewise.
9178 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9180 * copyright.py: New script.
9181 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9182 Launch emacs without exec'ing. Call copyright.py afterwards.
9184 2011-01-05 Michael Snyder <msnyder@vmware.com>
9186 * addrmap.c: Shorten lines of >= 80 columns.
9187 * arch-utils.c: Ditto.
9188 * arch-utils.h: Ditto.
9190 * ax-general.c: Ditto.
9192 * blockframe.c: Ditto.
9193 * breakpoint.c: Ditto.
9194 * buildsym.c: Ditto.
9196 * c-typeprint.c: Ditto.
9198 * coffread.c: Ditto.
9202 * cp-namespace.c: Ditto.
9203 * cp-support.c: Ditto.
9204 * dbug-rom.c: Ditto.
9209 * dictionary.c: Ditto.
9211 * doublest.c: Ditto.
9212 * dwarf2-frame.c: Ditto.
9213 * dwarf2expr.c: Ditto.
9214 * dwarf2loc.c: Ditto.
9215 * dwarf2read.c: Ditto.
9218 * event-loop.c: Ditto.
9219 * event-loop.h: Ditto.
9220 * exceptions.h: Ditto.
9222 * expprint.c: Ditto.
9223 * expression.h: Ditto.
9225 * f-valprint.c: Ditto.
9227 * frame-base.c: Ditto.
9228 * frame-unwind.c: Ditto.
9229 * frame-unwind.h: Ditto.
9233 * gdb-stabs.h: Ditto.
9234 * gdb_assert.h: Ditto.
9235 * gdb_dirent.h: Ditto.
9236 * gdb_obstack.h: Ditto.
9238 * gdbtypes.c: Ditto.
9239 * gdbtypes.h: Ditto.
9240 * inf-ttrace.c: Ditto.
9245 * inline-frame.h: Ditto.
9246 * language.c: Ditto.
9247 * language.h: Ditto.
9248 * libunwind-frame.c: Ditto.
9249 * libunwind-frame.h: Ditto.
9250 * linespec.c: Ditto.
9251 * linux-nat.c: Ditto.
9252 * linux-nat.h: Ditto.
9253 * linux-thread-db.c: Ditto.
9254 * machoread.c: Ditto.
9255 * macroexp.c: Ditto.
9256 * macrotab.c: Ditto.
9259 * mdebugread.c: Ditto.
9264 * objfiles.c: Ditto.
9265 * objfiles.h: Ditto.
9267 * p-typeprint.c: Ditto.
9268 * p-valprint.c: Ditto.
9270 * printcmd.c: Ditto.
9271 * proc-events.c: Ditto.
9273 * progspace.c: Ditto.
9274 * progspace.h: Ditto.
9275 * psympriv.h: Ditto.
9278 * regcache.c: Ditto.
9279 * regcache.h: Ditto.
9280 * remote-fileio.c: Ditto.
9282 * ser-mingw.c: Ditto.
9284 * ser-unix.c: Ditto.
9287 * solib-frv.c: Ditto.
9288 * solib-irix.c: Ditto.
9289 * solib-osf.c: Ditto.
9290 * solib-pa64.c: Ditto.
9291 * solib-som.c: Ditto.
9292 * solib-sunos.c: Ditto.
9293 * solib-svr4.c: Ditto.
9294 * solib-target.c: Ditto.
9298 * stabsread.c: Ditto.
9299 * stabsread.c: Ditto.
9302 * symfile-mem.c: Ditto.
9308 * target-descriptions.c: Ditto.
9309 * target-memory.c: Ditto.
9312 * terminal.h: Ditto.
9315 * tracepoint.c: Ditto.
9316 * tracepoint.h: Ditto.
9320 * user-regs.c: Ditto.
9321 * user-regs.h: Ditto.
9323 * valarith.c: Ditto.
9325 * valprint.c: Ditto.
9326 * valprint.h: Ditto.
9331 * xcoffread.c: Ditto.
9332 * xcoffsolib.c: Ditto.
9333 * xcoffsolib.h: Ditto.
9334 * xml-syscall.c: Ditto.
9335 * xml-tdesc.c: Ditto.
9337 2011-01-05 Michael Snyder <msnyder@vmware.com>
9339 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9340 * cli/cli-decode.c: Ditto.
9341 * cli/cli-dump.c: Ditto.
9342 * cli/cli-logging.c: Ditto.
9343 * cli/cli-script.c: Ditto.
9344 * cli/cli-setshow.c: Ditto.
9345 * common/signals.c: Ditto.
9346 * mi/mi-cmd-break.c: Ditto.
9347 * mi/mi-cmd-disas.c: Ditto.
9348 * mi/mi-cmd-stack.c: Ditto.
9349 * mi/mi-cmd-var.c: Ditto.
9350 * mi/mi-cmds.c: Ditto.
9351 * mi/mi-common.h: Ditto.
9352 * mi/mi-console.c: Ditto.
9353 * mi/mi-interp.c: Ditto.
9354 * mi/mi-main.c: Ditto.
9355 * osf-share/cma_attr.c: Ditto.
9356 * osf-share/cma_deb_core.h: Ditto.
9357 * osf-share/cma_debug_client.h: Ditto.
9358 * osf-share/cma_handle.h: Ditto.
9359 * osf-share/cma_mutex.h: Ditto.
9360 * osf-share/cma_stack_int.h: Ditto.
9361 * osf-share/cma_tcb_defs.h: Ditto.
9362 * python/py-auto-load.c: Ditto.
9363 * python/py-breakpoint.c: Ditto.
9364 * python/py-cmd.c: Ditto.
9365 * python/py-frame.c: Ditto.
9366 * python/py-objfile.c: Ditto.
9367 * python/py-param.c: Ditto.
9368 * python/py-progspace.c: Ditto.
9369 * python/py-symbol.c: Ditto.
9370 * python/py-value.c: Ditto.
9371 * python/python-internal.h: Ditto.
9372 * python/python.c: Ditto.
9373 * tui/tui-data.c: Ditto.
9374 * tui/tui-disasm.c: Ditto.
9375 * tui/tui-hooks.c: Ditto.
9376 * tui/tui-io.c: Ditto.
9377 * tui/tui-layout.c: Ditto.
9378 * tui/tui-regs.c: Ditto.
9379 * tui/tui-source.c: Ditto.
9380 * tui/tui-stack.c: Ditto.
9381 * tui/tui-win.c: Ditto.
9382 * tui/tui-windata.c: Ditto.
9383 * tui/tui-winsource.c: Ditto.
9385 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9387 * configure.ac, gdb.1: Copyright year update.
9389 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9391 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9392 this_pc_in_block, morestack_msym and morestack_name. Check for
9393 "__morestack" minimal symbol there.
9395 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9397 * symfile.c (find_sym_fns): Add call to dont_repeat.
9399 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9401 Copyright year update in most files (performed by copyright.sh).
9403 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9405 * top.c (print_gdb_version): Update copyright year in version output.
9407 For older changes see ChangeLog-2010.
9413 version-control: never