1 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
5 2011-09-16 Tristan Gingold <gingold@adacore.com>
7 * fork-child.c (fork_inferior): Update comment. Use alloca
8 instead of xmalloc for argv. Move len and shell_command
9 declarations in the block where they are used.
10 Only call execvp. Factorize failure code.
12 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
15 * parse.c (write_exp_elt): Change argument to pass a pointer of union
16 `exp_element' instead of an element of the same and make the function
18 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
19 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
20 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
21 Change argument of `write_exp_elt' function call.
22 Remove extra spaces from comments.
23 * parser-defs.h (write_exp_elt): Remove prototype.
25 2011-09-15 Paul Koning <paul_koning@dell.com>
27 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
28 count of item appended to list.
29 * python/py-type.c (typy_fields): Likewise.
31 2011-09-15 Paul Koning <paul_koning@dell.com>
33 * MAINTAINERS (Write After Approval): Add myself to the list.
35 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
38 * linux-fork.c (checkpoint_command): Disallow checkpointing of
39 processes with multiple threads.
40 (inf_has_multiple_thread_cb): New function.
41 (inf_has_multiple_threads): New function.
43 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
45 PR Python/12692 Add gdb.selected_inferior() to Python interface.
46 * python/py-inferior.c (GdbMethods): New Python method definition.
48 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
50 Handle multiple breakpoint hits in Python interface:
51 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
52 variable to breakpoints.
53 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
54 bps instead of single breakpoint. Fix some space typos.
55 * python/py-stopevent.c (create_breakpoint_event_object): Rename
56 variable to breakpoints.
58 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
60 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
61 note if the breakpoint is internal.
63 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
65 * MAINTAINERS (Right After Approval): Add myself to the list
67 2011-09-14 Pedro Alves <pedro@codesourcery.com>
69 * infrun.c (prepare_for_detach, wait_for_inferior)
70 (fetch_inferior_event): Don't flush the register cache.
71 * remote.c (struct stop_reply) <regcache>: Add comment.
73 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
75 Remove excessive DWARF expressions memory duplication.
76 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
78 (indirect_pieced_value): Remove variable result. Remove variable
79 back_to and its use for baton.data.
80 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
82 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
83 Update the function comment.
85 2011-09-13 Pedro Alves <pedro@codesourcery.com>
87 * inferior.h (ALL_INFERIORS): New.
88 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
90 (thread_db_find_new_threads): Look for threads in all inferiors.
92 2011-09-13 Pedro Alves <pedro@codesourcery.com>
94 * breakpoint.c (update_watchpoint): Handle the case of the
95 watchpoint to update not being in the breakpoint list yet.
96 (hw_watchpoint_use_count): New, factored out from
97 hw_watchpoint_used_count.
98 (hw_watchpoint_used_count): Rename to ...
99 (hw_watchpoint_used_count_others): ... this. Add `except'
100 parameter. Don't count resources of `except'. Use
101 hw_watchpoint_use_count.
103 2011-09-13 Pedro Alves <pedro@codesourcery.com>
105 * gdbthread.h (enum thread_state): Moved here.
106 (struct thread_info): Rename `executing_' field to `executing' and
108 * thread.c (enum thread_state): Moved to gdbthread.h.
109 (new_thread, add_thread_silent, delete_thread_1)
110 (any_live_thread_of_process, thread_alive, set_running)
111 (set_running, is_thread_state, any_running, is_executing)
112 (set_executing, finish_thread_state, print_thread_info)
113 (do_captured_thread_select): Adjust.
115 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
117 Fix compatibility with gcc < 4.3 and non-gcc compilers.
118 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
120 2011-09-12 Pedro Alves <pedro@codesourcery.com>
121 Matt Rice <ratmice@gmail.com>
125 * interps.c (struct interp) <interpreter_out>: Delete field.
126 (interp_new): Remove the data and uiout parameters and adjust.
127 (interp_set): Only set the current_uiout from the interpreter's
128 uiout after initializing the interpreter. Adjust call to
130 (interp_ui_out): Adjust to call procs->ui_out_proc.
131 (interp_data, interp_name): New.
132 * interps.h (interp_init_ftype): Add `self' parameter.
133 (interp_ui_out_ftype): New typedef.
134 (struct interp_procs) <ui_out_proc>: New method pointer.
135 (interp_new): Remove the data and uiout parameters.
136 (interp_data, interp_name): Declare.
137 * tui/tui-interp.c (tui_init): Adjust prototype.
139 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
140 tui_out here. Adjust call to interp_new.
141 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
142 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
144 (_initialize_cli_interp): Install it. Adjust call to interp_new.
145 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
146 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
147 Initialize mi->uiout depending on the mi_version as extracted from
148 the interpreter's name.
150 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
151 interp_new. Don't allocate the ui_out's of the interpreters here.
153 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
155 * solib.c (solib_used): New function.
156 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
157 by another so_list object before freeing it.
159 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
162 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
165 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
168 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
169 (amd64_skip_xmm_prologue): ... this new function. Describe its
170 parameters. No longer use amd64_prologue_line_bug.
171 * defs.h (producer_is_gcc_ge_4): New declaration.
172 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
173 (process_full_comp_unit): Update its caller. Remove
174 amd64_prologue_line_bug initialization.
175 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
176 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
178 2011-09-09 Pedro Alves <pedro@codesourcery.com>
180 * linux-nat.h (enum resume_kind): New.
181 (struct lwp_info) <last_resume_kind>: New field.
182 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
183 resume_stop on the new lwp.
184 (add_lwp): Set last_resume_kind as resume_continue by default.
185 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
186 (resume_lwp): New, factored out from resume_callback. Also check
187 for pending status in lp->waitstatus.
188 (resume_callback): Reimplement.
189 (resume_clear_callback): Set last_resume_kind as resume_stop.
190 (resume_set_callback): Set last_resume_kind as resume_continue.
191 (linux_nat_resume, linux_handle_extended_wait): Set
193 (running_callback): Also check lp->waitstatus for pending events.
194 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
196 (stop_and_resume_callback): Don't re-resume if the core wanted the
197 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
198 using an invalidated pointer.
199 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
200 SIGSTOPs if the core wanted the LWP to stop.
201 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
202 wanted the lwp to stop. If the core wanted the lwp to stop, and
203 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
204 of TARGET_SIGNAL_STOP.
205 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
206 here. Instead, signal the lwp, and set the last_resume_kind to
209 2011-09-09 Pedro Alves <pedro@codesourcery.com>
211 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
212 -1 (error), if the lwp exits right after attaching.
214 2011-09-08 Doug Evans <dje@google.com>
216 * py-cmd.c: Some minor formatting fixes.
217 (gdbpy_parse_command_name): Rename text arg to name, make const.
219 * python-internal.h (gdbpy_parse_command_name): Update.
221 * cli/cli-decode.c (add_cmd): Add comment.
223 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
226 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
227 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
228 * dwarf2read.c (process_full_comp_unit): Initialize
229 amd64_prologue_line_bug.
230 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
232 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
234 Fix TUI screen corruption.
235 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
238 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
240 * findvar.c (read_var_value): Never return NULL, throw an error
241 instead. Update the function comment. State symbol name in the error
243 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
245 * stack.c (print_frame_args): Likewise.
246 * valops.c (value_of_variable): Likewise.
248 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
250 * stack.c (print_frame_args): New variable except. Wrap
251 read_var_value and common_val_print into TRY_CATCH.
253 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
256 caller to value_of_this.
257 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
259 * valops.c (value_of_this): Remove parameter complain and variable ret.
260 Update function comment. Never return NULL by this code.
261 (value_of_this_silent): New function.
262 * value.h (value_of_this): Remove parameter complain.
263 (value_of_this_silent): New declaration.
265 2011-09-07 Yao Qi <yao@codesourcery.com>
267 * gdbthread.h (struct thread_info): Remove fields
268 `stepping_through_solib_after_catch' and
269 `stepping_through_solib_catchpoints'.
270 * infrun.c (init_thread_stepping_state): Update.
271 (process_event_stop_test, currently_stepping): Update.
272 (currently_stepping_or_nexting_callback): Update.
274 2011-09-07 Yao Qi <yao@codesourcery.com>
276 * gdbthread.h (struct thread_info): Comment on field
277 `step_after_step_resume_breakpoint'.
279 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
281 * remote.c (remote_console_output): Reindent.
283 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
285 * frame.c (has_stack_frames): Check for currently selected
288 2011-09-06 Pedro Alves <pedro@codesourcery.com>
290 * event-top.h (MAXPROMPTS, struct prompts): Delete.
291 (set_async_annotation_level, set_async_prompt, pop_prompt)
292 (push_prompt, new_async_prompt): Delete declarations.
293 * top.h (get_prompt, set_prompt): Change prototype.
294 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
296 * top.c (command_loop):
297 (top_prompt): New global.
298 (get_prefix, set_prefix, get_suffix, ): Delete.
299 (get_prompt, set_prompt): Rewrite.
300 (show_new_async_prompt): Rename to ...
301 (show_prompt): ... this.
302 (init_main): Adjust. Don't handle --annotate=2 here.
303 * event-top.c (new_async_prompt): Delete.
304 (the_prompts): Delete.
305 (more_to_come): Make static.
306 (display_gdb_prompt): Use top_level_prompt() to compute the top
307 level prompt, and don't notify the before_prompt observers
308 directly here. Always trick readline into not trying to display
309 the prompt if sync_execution and displaying the primary prompt.
310 If displaying a local/secondary prompt, always show it, even if
311 sync_execution is set.
312 (change_annotation_level): Delete.
313 (top_level_prompt): New, based on change_annotation_level.
314 (push_prompt, pop_prompt): Delete.
315 (async_disable_stdin): No longer pushes prompt.
316 (command_line_handler): No longer pushes or pops prompt. If more
317 input is expected, call display_gdb_prompt with an explicit empty
319 (async_stop_sig): Adjust.
320 (set_async_annotation_level, set_async_prompt): Delete.
321 * python/python.c (before_prompt_hook): Adjust.
323 2011-09-05 Pedro Alves <pedro@codesourcery.com>
327 * infrun.c (fetch_inferior_event): Check if there's a selected
328 thread before checking if the selected thread is executing.
330 2011-09-05 Pedro Alves <pedro@codesourcery.com>
332 * inf-loop.c (execute_command): Don't check if the current thread
333 if running before synchronously waiting for command completion.
334 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
336 (normal_stop): Call async_enable_stdin here.
337 * inf-loop.c (inferior_event_handler): Don't call
338 async_enable_stdin, nor handle "set exec-done-display" here.
340 2011-09-04 Joel Brobecker <brobecker@adacore.com>
344 2011-09-04 Joel Brobecker <brobecker@adacore.com>
346 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
348 2011-09-04 Joel Brobecker <brobecker@adacore.com>
350 * NEWS: Add entry for OpenBSD/NetBSD build failure.
352 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
354 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
356 2011-09-02 Matt Rice <ratmice@gmail.com>
359 * event-top.c (cli_command_loop): Replace readline setup with
360 direct call to display_gdb_prompt.
361 (display_gdb_prompt): Do not call observer mechanism during
362 synchronous execution.
364 2011-09-02 Pedro Alves <pedro@codesourcery.com>
366 * linux-nat.c (in_pid_list_p): New.
367 (linux_record_stopped_pid): Delete.
368 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
369 already attached to the LWP. Return an indication if so.
370 (linux_nat_filter_event): Adjust.
371 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
372 returning an indication to ignore this thread.
374 2011-09-02 Pedro Alves <pedro@codesourcery.com>
376 * top.c: Include interps.h.
377 (execute_command): If the target can async, but the interpreter is
378 in sync mode, synchronously wait for the command to finish before
380 (execute_command_to_string): Force the interpreter to sync mode.
381 * infrun.c: Include interps.h.
382 (fetch_inferior_event): Don't restore the prompt yet if the
383 interpreter is in sync mode.
384 * interps.c (interpreter_async): New global.
385 * interps.h (interpreter_async): Declare.
386 * inf-loop.c: Include interps.h.
387 (inferior_event_handler): Don't print the language change or run
388 breakpoint commands yet if the interpreter in is sync mode.
389 * main.c (captured_command_loop): Flip the interpreter to async
391 * cli/cli-script.c: Include interps.h.
392 (execute_user_command, while_command, if_command): Force the
393 interpreter to sync mode.
394 * python/python.c: Include interps.h.
395 (python_command, execute_gdb_command): Force the interpreter to
398 2011-09-02 Pedro Alves <pedro@codesourcery.com>
400 * value.c (show_convenience): Catch errors thrown while printing
401 each internal variable.
402 * infrun.c (validate_siginfo_access): New function.
403 (siginfo_value_read, siginfo_value_write): Call it.
405 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
408 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
409 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
412 2011-08-29 Yao Qi <yao@codesourcery.com>
414 * solib-dsbt.c (bfd_lookup_symbol): Removed.
416 (enable_break2): Update caller.
417 * solib-frv.c (bfd_lookup_symbol): Removed.
419 (enable_break2): Update caller.
420 * solib-pa64.c (bfd_lookup_symbol): Removed.
422 * solib-svr4.c (bfd_lookup_symbol): Removed.
423 (cmp_name_and_sec_flags): New.
424 (enable_break): Update caller.
425 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
426 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
427 (gdb_bfd_lookup_symbol): New.
428 * solib.h: Functions declarations.
430 2011-08-29 Yao Qi <yao@codesourcery.com>
432 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
435 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
437 Fix TUI stepi on code without symbols.
438 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
441 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
444 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
445 and the static keyword.
446 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
447 Make prefix an array.
448 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
449 * mi/mi-main.c (get_register): Remove stb initialization and the static
452 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
454 Code cleanup - make mi_opt const.
455 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
457 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
458 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
459 (mi_cmd_env_dir): Likewise.
460 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
461 (mi_cmd_target_file_put): Likewise.
462 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
463 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
464 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
465 (mi_valid_noargs): Make opts const.
466 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
467 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
468 (mi_cmd_data_read_memory): Likewise.
469 (mi_cmd_data_read_memory_bytes): Likewise.
470 (mi_cmd_data_write_memory): Likewise.
472 2011-08-26 Matt Rice <ratmice@gmail.com>
474 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
475 bcache_xmalloc, replace bcache_xmalloc with call to
476 psymbol_bcache_init for psymbol_cache.
477 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
479 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
481 * inf-loop.c (inferior_event_handler): Add exception_print in
484 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
486 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
487 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
488 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
489 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
490 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
491 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
492 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
493 * infrun.c (fetch_inferior_event): Call
494 make_bpstat_clear_actions_cleanup.
495 * top.c (execute_command): New variable cleanup_if_error, call
496 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
497 * utils.c (do_bpstat_clear_actions_cleanup)
498 (make_bpstat_clear_actions_cleanup): New functions.
500 2011-08-26 Pedro Alves <pedro@codesourcery.com>
502 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
503 either the parent or the child forks. Rename a couple locals.
505 2011-08-26 Pedro Alves <pedro@codesourcery.com>
507 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
508 library call. Avoid reading the `status' local if all waitpid
511 2011-08-26 Pedro Alves <pedro@codesourcery.com>
513 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
514 opening /proc/PID/task always succeeds.
516 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
518 * linespec.c (symtab_from_filename): Check for the end of string.
520 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
523 * varobj.c (cplus_describe_child): Add the keyword
524 'class' to the output of the method when dealing
525 with a cast to a base class.
527 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
529 No functionality change.
530 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
531 function comment a reference, new variables tp and bs, move here code
532 from throw_exception.
533 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
534 describe it in the comment.
535 * exceptions.c (throw_exception): Remove variable tp, move the code for
536 bpstat_clear_actions to bpstat_clear_actions.
538 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
540 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
541 * linux-nat.c: Include linux-procfs.h.
542 (linux_proc_get_tgid): Move to ...
543 * common/linux-procfs.c: ... here. New file.
544 * common/linux-procfs.h: New file.
545 * linux-thread-db.c: Include linux-procfs.h.
546 * Makefile.in: Update dependencies.
547 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
548 * config/arm/linux.mh: Likewise.
549 * config/i386/linux.mh: Likewise.
550 * config/i386/linux64.mh: Likewise.
551 * config/ia64/linux.mh: Likewise.
552 * config/m32r/linux.mh: Likewise.
553 * config/m68k/linux.mh: Likewise.
554 * config/mips/linux.mh: Likewise.
555 * config/pa/linux.mh: Likewise.
556 * config/pa/linux.mh: Likewise.
557 * config/powerpc/linux.mh: Likewise.
558 * config/powerpc/ppc64-linux.mh: Likewise.
559 * config/powerpc/spu-linux.mh: Likewise.
560 * config/sparc/linux.mh: Likewise.
561 * config/sparc/linux64.mh: Likewise.
562 * config/xtensa/linux.mh: Likewise.
564 2011-08-24 Hui Zhu <teawater@gmail.com>
566 * tracepoint.c (cond_string_is_same): New function.
567 (find_matching_tracepoint): Add condition check
568 by cond_string_is_same.
570 2011-08-23 Josh Matthews <josh@joshmatthews.net>
572 Fix build error in Darwin port.
573 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
575 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
578 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
579 (command_line_is_silent): New function.
580 (bpstat_do_actions_1): No longer use commands_left, use
581 command_line_is_silent for commands.
582 (bpstat_alloc): Remove clearing of commands_left.
583 (bpstat_stop_status): Remove initialization of commands_left, use
584 command_line_is_silent.
585 * breakpoint.h (struct bpstats): Remove commands_left.
587 2011-08-18 Keith Seitz <keiths@redhat.com>
590 * cp-name-parser.y (struct demangle_info): Remove unused
593 (allocate_info): Change return type to struct demangle_info *.
594 Always allocate a new demangle_info.
595 Remove unused PREV pointer.
596 (cp_new_demangle_parse_info): New function.
597 (cp_demangled_name_parse_free): New function.
598 (do_demangled_name_parse_free_cleanup): New function.
599 (make_cleanup_cp_demangled_name_parse_free): New function.
600 (cp_demangled_name_to_comp): Change return type to
601 struct demangle_parse_info *.
602 Allocate a new storage for each call.
603 (main): Update usage for cp_demangled_name_to_comp
605 * cp-support.h (struct demangle_parse_info): New structure.
606 (cp_demangled_name_to_comp): Update API change for
608 (cp_new_demangle_parse_info): Declare.
609 (make_cleanup_cp_demangled_name_parse_free): New declaration.
610 (cp_demangled_name_parse_free): Declare.
611 * cp-support.c (cp_canonicalize_string): Update API
612 change for cp_demangled_name_to_comp.
613 (mangled_name_to_comp): Likewise.
614 Return struct demangle_parse_info, too.
615 (cp_class_name_from_physname): Update mangled_name_to_comp
617 (method_name_from_physname): Likewise.
618 (cp_func_name): Update API change for cp_demangled_name_to_comp.
619 (cp_remove_params): Likewise.
620 * python/py-type.c (typy_legacy_template_argument): Likewise.
622 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
623 (cp_merge_demangle_parse_infos): Declare.
624 * cp-support.c (ignore_typedefs): New file global.
625 (copy_string_to_obstack): New function.
626 (inspect_type): New function.
627 (replace_typedefs): New function.
628 (replace_typedefs_qualified_name): New function.
629 (cp_canonicalize_string_no_typedefs): New function.
630 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
631 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
632 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
633 instead of cp_canonicalize_string.
634 (find_method): Likewise.
635 (decode_compound): Before looking up the name, call
636 cp_canonicalize_string_no_typedefs.
637 (decode_variable): Likewise.
639 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
640 Tom Tromey <tromey@redhat.com>
641 Matt Rice <ratmice@gmail.com>
643 * python/lib/gdb/prompt.py: New file.
644 * python/lib/gdb/command/prompt.py: New file.
645 * NEWS: Document set extended-prompt and gdb.prompt library
647 2011-08-16 Yao Qi <yao@codesourcery.com>
649 * tic6x-linux-tdep.c: Move const arrays definition from here...
650 * tic6x-tdep.c: to here ...
652 2011-08-14 Yao Qi <yao@codesourcery.com>
654 * NEWS: New port to Texas Instruments TMS320C6x.
656 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
657 Bernd Schmidt <bernds@codesourcery.com>
658 Yao Qi <yao@codesourcery.com>
660 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
661 * solib-dsbt.c: New file. Support DSBT shared object.
662 * tic6x-linux-tdep.c: New file.
663 * tic6x-tdep.c: New file.
664 * tic6x-tdep.h: New file.
666 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
667 Yao Qi <yao@codesourcery.com>
669 * remote.c (PACKET_qXfer_fdpic): New enum value.
670 (remote_protocol_features): Add qXfer:fdpic:read packet.
671 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
672 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
673 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
675 2011-08-14 Yao Qi <yao@codesourcery.com>
677 Target description for tic6x.
678 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
679 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
680 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
681 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
682 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
683 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
684 * features/tic6x-c64xp-linux.xml: New.
685 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
686 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
687 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
688 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
689 * regformats/tic6x-c64xp.dat,
690 regformats/tic6x-c62x-linux.dat: Generated.
691 * regformats/tic6x-c64x-linux.dat,
692 regformats/tic6x-c64xp-linux.dat: Generated.
693 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
694 features/tic6x-*.c files.
695 Add regformats/tic6x-*.dat files.
697 2011-08-12 Doug Evans <dje@google.com>
699 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
700 * python/py-symbol.c (sympy_get_type): New function.
701 (symbol_object_getset): Add "type".
703 2011-08-12 Pedro Alves <pedro@codesourcery.com>
707 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
709 (tui_show_register_group): Don't store a byte buffer in the data
711 (tui_register_format): Skip registers with an empty name.
712 (tui_get_register): Store a struct value in the data element's
713 value field instead of a byte buffer holding the raw register
714 contents. Account for optimized-out and unavailable registers
715 when comparing register contents.
717 2011-08-09 Pedro Alves <pedro@codesourcery.com>
719 * printcmd.c (current_display_number): Update comment.
720 (disable_current_display_cleanup): Delete.
721 (do_one_display): Use make_cleanup_restore_integer. Gracefully
722 catch errors thrown while evaluating and printing the display.
724 2011-08-09 Tom Tromey <tromey@redhat.com>
726 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
728 2011-08-09 Pedro Alves <pedro@codesourcery.com>
730 * elfread.c (elf_symtab_read): Rework comments.
731 * maint.c (maintenance_command): Ditto.
732 * somread.c (som_symtab_read): Ditto.
733 * solib.c (solib_find, solib_map_sections, update_solib_list)
734 (solib_add, info_sharedlibrary_command, solib_name_from_address)
735 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
736 (sharedlibrary_command, no_shared_libraries): Ditto.
737 * solib-irix.c (locate_base, disable_break, enable_break)
738 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
739 (irix_current_sos, irix_open_symbol_file_object)
740 (irix_special_symbol_handling): Ditto.
741 * solib-sunos.c (locate_base, first_link_map_member)
742 (sunos_current_sos, disable_break, enable_break)
743 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
745 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
746 (open_symbol_file_object, svr4_current_sos, enable_break)
747 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
749 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
750 (frv_current_sos, enable_break, frv_special_symbol_handling)
751 (frv_solib_create_inferior_hook): Ditto.
752 * solist.h (struct target_so_ops): Extend the comments of the
753 special_symbol_handling, current_sos and open_symbol_file_object
756 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
758 * python/lib/gdb/__init__.py: Auto-load files in command and
759 function directories.
760 * python/python.c (finish_python_initialization): Use
762 * python/lib/gdb/command/pretty_printers.py: Self register
764 * NEWS: Document auto-loading.
766 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
768 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
769 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
770 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
772 2011-08-08 Tom Tromey <tromey@redhat.com>
774 * breakpoint.c (clean_up_filters): Remove.
775 (catch_syscall_split_args): Use VEC_cleanup.
777 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
779 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
780 (main): Uncomment "Demangling error\n".
782 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
784 * solib-target.c (segment_attributes): Make them static.
785 (section_attributes, library_children, library_attributes): Likewise.
786 (library_list_children, library_list_attributes): Likesise.
787 (library_list_elements): Likewise.
789 2011-08-05 Pedro Alves <pedro@codesourcery.com>
791 * exceptions.c (throw_exception): Don't disable the current
793 * printcmd.c (disable_current_display_cleanup): New function.
794 (do_one_display): Install a cleanup to disable the current display
795 if doing the display throws.
797 2011-08-05 Eli Zaretskii <eliz@gnu.org>
799 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
800 initialization of the tp_new member to the corresponding
801 gdbpy_initialize_* function.
802 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
803 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
804 * python/py-function.c (gdbpy_initialize_functions): Likewise.
805 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
806 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
808 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
810 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
811 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
812 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
813 references to current_uiout.
815 2011-08-04 Pedro Alves <pedro@codesourcery.com>
817 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
818 (start_event_loop): Use TRY_CATCH instead of catch_errors.
819 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
820 * top.c (gdb_readline_wrapper): Adjust.
821 * tui/tui-interp.c (tui_command_loop):
822 (_initialize_tui_interp): Don't install it.
824 2011-08-04 Pedro Alves <pedro@codesourcery.com>
826 * ui-out.h (uiout): Rename to ...
827 (current_uiout): ... this.
828 * ui-out.c (uiout): Rename to ...
829 (current_uiout): ... this.
830 * ada-lang.c (print_it_exception, print_one_exception)
831 (print_mention_exception): Adjust.
832 * breakpoint.c (watchpoint_check): Adjust.
833 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
834 (default_collect_info, watchpoints_info, print_one_catch_fork)
835 (print_one_catch_vfork, print_one_catch_syscall)
836 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
837 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
838 (print_it_watchpoint, print_mention_watchpoint)
839 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
840 (print_it_exception_catchpoint, print_one_exception_catchpoint)
841 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
842 (bkpt_print_mention, momentary_bkpt_print_it)
843 (tracepoint_print_mention, update_static_tracepoint)
844 (tracepoints_info, save_breakpoints): Adjust.
845 * cli-out.c (field_separator): Adjust.
846 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
847 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
848 * frame.c (get_current_frame): Adjust.
849 * infcmd.c (run_command_1, print_return_value): Adjust.
850 * inferior.c (inferior_command, info_inferiors_command): Adjust.
851 * infrun.c (print_end_stepping_range_reason): Adjust.
852 (print_signal_exited_reason, print_exited_reason): Adjust.
853 (print_signal_received_reason, print_no_history_reason): Adjust.
854 * interps.c (interp_set): Adjust.
855 * osdata.c (info_osdata_command): Adjust.
856 * progspace.c (maintenance_info_program_spaces_command): Adjust.
857 * remote-fileio.c (remote_fileio_request): Adjust.
858 * remote.c (show_remote_cmd): Adjust.
859 * solib.c (info_sharedlibrary_command): Adjust.
860 * source.c (print_source_lines_base): Adjust.
861 * stack.c (print_stack_frame): Adjust.
862 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
863 * symfile-mem.c (add_vsyscall_page): Adjust.
864 * symfile.c (load_progress, generic_load)
865 (print_transfer_performance): Adjust.
866 * thread.c (info_threads_command, restore_selected_frame)
867 (thread_command): Adjust.
868 * top.c (make_cleanup_restore_ui_file): Adjust.
869 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
870 (print_one_static_tracepoint_marker): Adjust.
871 * cli/cli-cmds.c (print_disassembly): Adjust.
872 * cli/cli-decode.c (print_doc_line): Adjust.
873 * cli/cli-interp.c (safe_execute_command): Adjust.
874 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
875 (handle_redirections): Adjust.
876 * cli/cli-script.c (show_user_1): Adjust.
877 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
878 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
879 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
880 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
881 (mi_cmd_env_dir): Adjust.
882 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
883 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
884 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
885 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
886 (list_args_or_locals): Adjust.
887 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
888 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
889 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
890 (mi_cmd_var_list_children, mi_cmd_var_info_type)
891 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
892 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
893 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
894 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
895 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
896 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
897 (list_available_thread_groups, mi_cmd_list_thread_groups)
898 (mi_cmd_data_list_register_names)
899 (mi_cmd_data_list_changed_registers)
900 (mi_cmd_data_list_register_values, get_register)
901 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
902 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
903 (mi_cmd_list_target_features, mi_cmd_add_inferior)
904 (mi_execute_command, mi_load_progress): Adjust.
905 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
906 * python/py-auto-load.c (print_script, info_auto_load_scripts):
908 * python/py-breakpoint.c (bppy_get_commands): Adjust.
909 * tui/tui-interp.c (tui_command_loop): Adjust.
910 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
912 2011-08-04 Pedro Alves <pedro@codesourcery.com>
914 * exceptions.c (struct catcher): Remove saved_uiout field.
915 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
916 no longer save/resvore the global ui_out builder.
917 (catch_exceptions_with_msg): Save/override/restore the global
918 ui_out builder manually instead of relying on TRY_CATCH to do it.
919 (catch_errors): Save/restore the global ui_out builder manually
920 instead of relying on TRY_CATCH to do it.
921 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
924 * cli/cli-interp.c (safe_execute_command): Save/override/restore
925 the global ui_out builder manually instead of relying on TRY_CATCH
928 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
930 * breakpoint.c (update_global_location_list): Ensure
931 invariant 'first loc marked not duplicated and inserted,
932 following locs marked duplicated/not inserted' is respected
933 for multiple locations at the same address.
934 (unduplicated_should_be_inserted) New function.
935 (swap_insertion) New function.
937 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
939 * stack.c (print_frame_arguments_choices): Comment typo fix.
941 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
944 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
945 * breakpoint.c (insert_bp_location): Remove disabled_breaks
946 argument. Update callers.
948 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
951 * doublest.c (convert_doublest_to_floatformat): Pass correct
952 mantissa length to put_field.
954 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
956 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
957 exception_print code path.
958 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
959 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
960 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
962 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
965 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
966 Remove, merge them into ...
967 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
968 variable args and its initialization.
969 (struct print_args_args, print_args_stub): Remove, merge them into
971 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
973 (do_gdb_disassembly): ... here. Remove variable args and its
975 (print_frame): Remove variable args and its initialization, new
976 variable gdbarch and numargs (from print_args_stub), inline here
977 print_args_stub with a TRY_CATCH.
978 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
980 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
981 New variable e, remove variable btargs and its initialization.
983 2011-08-01 Tristan Gingold <gingold@adacore.com>
985 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
987 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
989 * breakpoint.c (insert_bp_location): Document return value.
990 (insert_breakpoint_locations): Fix documentation.
991 (remove_breakpoints): Add documentation.
993 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
995 * breakpoint.c (insert_bp_location): Remove disabled_breaks
996 argument. Update callers.
998 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1000 * stack.c (print_frame_info): Comment typo fix.
1002 2011-07-29 Sterling Augustine <saugustine@google.com>
1004 * MAINTAINERS (Write After Approval): Add myself to the list.
1006 2011-07-29 Tom Tromey <tromey@redhat.com>
1008 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1009 (library_list_start_segment): Update.
1010 (library_list_start_section): Update.
1012 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1014 * varobj.c (value_get_print_value): Move hint check later into the
1015 function. Comment function. Free thevalue before reusing it.
1017 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 Pedro Alves <pedro@codesourcery.com>
1020 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1022 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1023 Assert the result kind.
1024 * value.h (value_one): Remove parameter lv.
1026 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1028 Fix crash on lval_computed values.
1029 * valops.c (value_zero): Use not_lval for lval_computed.
1031 2011-07-27 Tom Tromey <tromey@redhat.com>
1033 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1034 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1036 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1038 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1039 "ptype" by their typedefs difference.
1041 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1043 * dwarf2expr.c (ctx_no_read_reg): New function.
1044 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1045 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1046 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1047 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1049 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1052 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1054 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1055 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1056 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1057 (ctx_no_get_base_type): Move the functions here.
1058 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1059 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1060 (ctx_no_get_base_type): New declarations.
1062 2011-07-27 Tom Tromey <tromey@redhat.com>
1064 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1066 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1067 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1069 2011-07-26 Sterling Augustine <saugustine@google.com>
1071 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1073 (dump_bfd_file): Likewise.
1075 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1077 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1078 (remote_hw_watchpoint_length_limit): New variable.
1079 (_initialize_remote) add set,show cmds for this new variable.
1080 * gdb.texinfo: document these new commands.
1081 * NEWS: Mention these new commands.
1083 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1085 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1086 true for software watchpoints.
1088 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1092 2011-07-26 Tom Tromey <tromey@redhat.com>
1094 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1095 * dwarf2read.c (read_indirect_string_at_offset): New function.
1096 (read_indirect_string): Use it.
1097 (dwarf_decode_macro_bytes): New function, taken from
1098 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1099 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1100 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1102 (struct dwarf2_per_objfile) <macro>: New field.
1103 (dwarf2_elf_names): Add .debug_macro.
1104 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1105 (dwarf2_locate_sections): Handle new section.
1106 (read_file_scope): Handle DW_AT_GNU_macros.
1107 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1109 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1111 * NEWS: Mention dcache configuration.
1112 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1113 (dcache_size, dcache_line_size): New variables.
1114 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1115 (struct dcache_block): Make it expandable.
1116 (struct dcache_struct): New field.
1117 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1118 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1119 (dcache_poke_byte, dcache_print_line): Adjust.
1120 (set_dcache_size, set_dcache_line_size): New functions.
1121 (set_dcache_command, show_dcache_command): New functions.
1122 (_initialize_dcache): Add new commands.
1124 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1126 * progspace.h (struct program_space): Add solib_add_generation.
1127 * infcmd.c (post_create_inferior): Only call solib_add if not
1129 * solib.c (solib_add): Increment solib_add_generation.
1131 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1133 Fix implicit pointer offsets.
1134 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1137 2011-07-25 Tom Tromey <tromey@redhat.com>
1139 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1141 (ada_exception_sal): Make 'ops' const.
1142 (ada_decode_exception_location): Likewise.
1143 (ada_decode_assert_location): Likewise.
1144 (catch_assert_command): Update.
1145 (catch_ada_exception_command): Update.
1146 (create_ada_exception_catchpoint): Make 'ops' const.
1147 * breakpoint.c (set_raw_breakpoint_without_location)
1148 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1150 (create_internal_breakpoint): Update.
1151 (init_raw_breakpoint_without_location): Make 'ops' const.
1152 (init_raw_breakpoint, init_catchpoint)
1153 (create_fork_vfork_event_catchpoint)
1154 (create_syscall_event_catchpoint, init_breakpoint_sal)
1155 (create_breakpoint_sal, create_breakpoints_sal)
1156 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1157 * breakpoint.h (struct breakpoint) <ops>: Now const.
1158 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1161 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1163 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1165 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1167 * breakpoint.h (print_recreate_thread): Declare.
1168 (struct breakpoint): Move step_count, pass_count,
1169 number_on_target, static_trace_marker_id,
1170 static_trace_marker_id_idx ...
1171 (struct tracepoint): ... to this new struct.
1172 (get_tracepoint, get_tracepoint_by_number_on_target)
1173 (get_tracepoint_by_number): Change return type to struct
1175 * breakpoint.c (is_tracepoint_type): New, factored out from
1177 (is_tracepoint): Adjust.
1178 (print_one_breakpoint_location): Cast to struct tracepoint as
1179 necessary, and adjust.
1180 (print_recreate_catch_fork, print_recreate_catch_vfork)
1181 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1182 print_recreate_thread.
1183 (init_breakpoint_sal): New, factored out from
1184 create_breakpoint_sal.
1185 (create_breakpoint_sal): Reimplement.
1186 (create_breakpoint): Allocate a struct tracecepoint if the caller
1187 wanted a tracepoint. Use init_breakpoint_sal and
1189 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1190 (print_recreate_masked_watchpoint)
1191 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1192 (tracepoint_print_one_detail): Adjust.
1193 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1194 Dump the pass count here.
1195 (update_static_tracepoint): Adjust.
1196 (addr_string_to_sals): Adjust.
1197 (create_tracepoint_from_upload): Adjust. Change return type to
1198 struct tracepoint pointer.
1199 (trace_pass_set_count): Change parameter type to struct tracepoint
1200 pointer, and adjust.
1201 (trace_pass_command): Adjust.
1202 (get_tracepoint, get_tracepoint_by_number_on_target)
1203 (get_tracepoint_by_number): Change return type to struct
1204 tracepoint pointer, and adjust.
1205 (print_recreate_thread): New, factored out from save_breakpoints.
1206 (save_breakpoints): Don't print thread and task and passcount
1208 * remote.c (remote_download_tracepoint): Adjust.
1209 * tracepoint.c (trace_actions_command, validate_actionline)
1210 (start_tracing, tfind_1, trace_find_tracepoint_command)
1211 (trace_dump_command): Adjust.
1212 (find_matching_tracepoint): Change return type to struct
1213 tracepoint pointer, and adjust.
1214 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1215 (tfile_trace_find, tfile_fetch_registers): Adjust.
1216 * tracepoint.h (create_tracepoint_from_upload): Change return type
1217 to struct tracepoint pointer.
1218 * ada-lang.c (print_recreate_exception): Call
1219 print_recreate_thread.
1220 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1222 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1224 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1225 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1226 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1227 watchpoint_thread, watchpoint_triggered ...
1228 (struct watchpoint): ... to this new struct.
1229 (is_watchpoint): Declare.
1230 (install_breakpoint): Add new `internal' parameter.
1231 * breakpoint.c (is_watchpoint): Delete declaration.
1232 (set_breakpoint_condition): Handle watchpoints.
1233 (is_watchpoint): Make public.
1234 (watchpoint_in_thread_scope): Change parameter type to struct
1236 (watchpoint_del_at_next_stop): Change parameter type to struct
1237 watchpoint. Remove assertion. Adjust.
1238 (update_watchpoint): Ditto.
1239 (insert_breakpoints, breakpoint_init_inferior)
1240 (watchpoints_triggered, watchpoint_check)
1241 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1242 (bpstat_stop_status, print_one_breakpoint_location)
1243 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1244 to struct watchpoint as necessary, and adjust.
1245 (install_breakpoint): Add `internal' argument. If true, don't
1246 mention the new breakpoint. Use set_breakpoint_number.
1247 (create_fork_vfork_event_catchpoint)
1248 (create_syscall_event_catchpoint): Adjust.
1249 (dtor_watchpoint): New.
1250 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1251 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1252 (print_it_watchpoint, print_mention_watchpoint)
1253 (print_recreate_watchpoint, insert_masked_watchpoint)
1254 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1255 (print_one_detail_masked_watchpoint)
1256 (print_mention_masked_watchpoint)
1257 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1258 necessary, and adjust.
1259 (watch_command_1): Allocate and initialize a struct watchpoint
1260 instead of a struct breakpoint. Use install_breakpoint.
1261 (catch_exec_command_1): Adjust.
1262 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1264 (delete_breakpoint, enable_breakpoint_disp)
1265 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1266 as necessary, and adjust.
1267 (initialize_breakpoint_ops): Install dtor_watchpoint as
1268 watchpoints' dtor method.
1269 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1270 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1271 to struct watchpoint as necessary, and adjust.
1273 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1275 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1276 the the base class ops table.
1277 (catch_exception_breakpoint_ops)
1278 (catch_exception_unhandled_breakpoint_ops)
1279 (catch_assert_breakpoint_ops): Don't statically initialize.
1280 (initialize_ada_catchpoint_ops): New.
1281 (_initialize_ada_language): Call it.
1282 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1283 (bkpt_breakpoint_ops): Forward declare.
1284 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1285 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1286 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1287 (masked_watchpoint_breakpoint_ops)
1288 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1289 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1290 base class ops table.
1291 (null_re_set, null_check_status, null_works_in_software_mode)
1292 (null_resources_needed, null_print_one_detail): Delete.
1293 (bkpt_dtor): Rename to ...
1294 (base_breakpoint_dtor): ... this. Make static.
1295 (bkpt_allocate_location): Rename to ...
1296 (base_breakpoint_allocate_location): ... this. Make static.
1297 (base_breakpoint_re_set): New.
1298 (internal_error_pure_virtual_called): New.
1299 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1300 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1301 (base_breakpoint_works_in_software_mode)
1302 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1303 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1304 (base_breakpoint_print_recreate): New functions.
1305 (base_breakpoint_ops): New global.
1306 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1307 (bkpt_breakpoint_hit): Make static.
1308 (bkpt_check_status): Delete.
1309 (bkpt_resources_needed): Make static.
1310 (bkpt_works_in_software_mode): Delete.
1311 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1313 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1314 (momentary_breakpoint_ops): Don't statically initialize.
1315 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1317 (tracepoint_insert_location, tracepoint_remove_location)
1318 (tracepoint_check_status, tracepoint_works_in_software_mode)
1319 (tracepoint_print_it): Delete.
1320 (tracepoint_breakpoint_ops): Don't statically initialize.
1321 (initialize_breakpoint_ops): New.
1322 (_initialize_breakpoint): Call it.
1323 * breakpoint.h (null_re_set, null_works_in_software_mode)
1324 (null_resources_needed, null_check_status, null_print_one_detail):
1325 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1326 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1327 (bkpt_check_status, bkpt_resources_needed)
1328 (bkpt_works_in_software_mode, bkpt_print_it)
1329 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1330 Delete declarations.
1331 (initialize_breakpoint_ops): Declare.
1333 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1335 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1336 (momentary_bkpt_print_it): Simplify.
1338 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1340 Split internal, momentary and user breakpoints breakpoint_ops
1343 * breakpoint.c (internal_breakpoint_ops)
1344 (momentary_breakpoint_ops): Forward declare.
1345 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1346 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1347 (create_overlay_event_breakpoint)
1348 (create_std_terminate_master_breakpoint)
1349 (create_exception_master_breakpoint): Create breakpoints with
1350 internal_breakpoint_ops vtable.
1351 (set_longjmp_breakpoint): Create momentary breakpoints with
1352 momentary_breakpoint_ops vtable, using
1353 momentary_breakpoint_from_master.
1354 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1355 (create_solib_event_breakpoint): Create breakpoints with
1356 internal_breakpoint_ops vtable.
1357 (set_momentary_breakpoint): Create breakpoints with
1358 momentary_breakpoint_ops vtable.
1359 (momentary_breakpoint_from_master): New, factored out from
1360 clone_momentary_breakpoint.
1361 (clone_momentary_breakpoint): Adjust.
1362 (watch_command_1): Create scope breakpoints with
1363 momentary_breakpoint_ops vtable.
1364 (bkpt_re_set): Remove handling of internal and momentary
1366 (bkpt_print_mention, bkpt_print_recreate): New.
1367 (bkpt_breakpoint_ops): Adjust.
1368 (internal_bkpt_re_set, internal_bkpt_check_status)
1369 (internal_bkpt_print_it, internal_bkpt_print_mention)
1370 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1371 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1372 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1373 (momentary_bkpt_print_recreate): New.
1374 (momentary_breakpoint_ops): New.
1376 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1378 Implement most breakpoint_ops methods for all breakpoint types,
1379 and move the default handlings to the proper callbacks.
1381 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1382 works_in_software_mode method.
1383 (insert_bp_location): Go through breakpoint_ops->insert_location
1384 for software and hardware watchpoints.
1385 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1387 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1388 for software and hardware watchpoints.
1389 (print_it_typical): Delete.
1390 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1392 (watchpoint_check): Adjust comment.
1393 (bpstat_check_location): Simply always call the breakpoint's
1394 breakpoint_hit method.
1395 (bpstat_stop_status): Always call the breakpoint's check_status
1396 method. Remove special cases for watchpoints and internal event
1397 breakpoints from here (moved to the check_status implementations).
1398 (print_one_breakpoint_location): Assume b->ops is never NULL.
1399 Remove static tracepoint marker id printing from here (moved to
1400 the print_one_detail callback implementation of tracepoints).
1401 (init_bp_location): Assert OPS is never NULL.
1402 (allocate_bp_location): Always call the breakpoint's
1403 allocate_location method, and remove the default code from here.
1404 (free_bp_location): Always call the location's dtor method, and
1405 remove the default code from here.
1406 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1407 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1408 parameter. Pass it down.
1409 (set_raw_breakpoint): Ditto.
1410 (print_it_catch_fork): Adjust to take a bpstat as argument.
1411 (catch_fork_breakpoint_ops): Install methods.
1412 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1413 (catch_vfork_breakpoint_ops): Install methods.
1414 (dtor_catch_syscall): Call the base dtor.
1415 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1416 (catch_syscall_breakpoint_ops): Install methods.
1417 (dtor_catch_exec): Call the base dtor.
1418 (print_it_catch_exec): Adjust to take a bpstat as argument.
1419 (catch_exec_breakpoint_ops): Install methods.
1420 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1421 the breakpoint's resources_needed method, and remove the default
1423 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1425 (clone_momentary_breakpoint): Clone the original's ops.
1426 (mention): Always call the breakpoint's print_mention method, and
1427 remove the default code from here.
1428 (create_breakpoint_sal): Adjust to pass the ops to
1429 set_raw_breakpoint rather than setting it manually.
1430 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1431 ops to set_raw_breakpoint_without_location rather than setting it
1433 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1434 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1435 (ranged_breakpoint_ops): Install methods.
1436 (break_range_command): Adjust to pass the ops to
1437 set_raw_breakpoint rather than setting it manually.
1438 (re_set_watchpoint, breakpoint_hit_watchpoint)
1439 (check_status_watchpoint, resources_needed_watchpoint)
1440 (works_in_software_mode_watchpoint, print_it_watchpoint)
1441 (print_mention_watchpoint, print_recreate_watchpoint): New
1443 (watchpoint_breakpoint_ops): Install new methods.
1444 (print_it_masked_watchpoint): New function.
1445 (masked_watchpoint_breakpoint_ops): Install new methods.
1446 (watch_command_1): Adjust to pass the right breakpoint_ops to
1447 set_raw_breakpoint_without_location rather than setting it
1448 manually later. Record the current pspace.
1449 (print_it_exception_catchpoint): Adjust to take a bpstat as
1451 (gnu_v3_exception_catchpoint_ops): Install new methods.
1452 (say_where): New function.
1453 (null_re_set, null_check_status, null_works_in_software_mode)
1454 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1456 (bp_location_ops): New global.
1457 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1458 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1459 (bkpt_check_status, bkpt_resources_needed)
1460 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1461 (bkpt_print_recreate): New functions.
1462 (bkpt_breakpoint_ops): New global.
1463 (tracepoint_re_set, tracepoint_insert_location)
1464 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1465 (tracepoint_check_status, tracepoint_works_in_software_mode)
1466 (tracepoint_print_it, tracepoint_print_one_detail)
1467 (tracepoint_print_mention, tracepoint_print_recreate): New
1469 (tracepoint_breakpoint_ops): New global.
1470 (delete_breakpoint): Always call the breakpoint's dtor method, and
1471 remove the default handling from here.
1472 (breakpoint_re_set_default): Make static.
1473 (breakpoint_re_set_one): Always call the breakpoints re_set
1474 method, and remove the default handling from here.
1475 (trace_command, ftrace_command, strace_command)
1476 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1477 to create_breakpoint.
1478 (save_breakpoints): Always call the breakpoint's print_recreate
1479 method, and remove the default handling from here.
1481 * ada-lang.c (dtor_exception): Call the base dtor.
1482 (re_set_exception): Call the base method.
1483 (print_it_exception, print_it_catch_exception): Adjust to take a
1485 (catch_exception_breakpoint_ops): Install methods.
1486 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1488 (catch_exception_unhandled_breakpoint_ops): Install methods.
1489 (print_it_catch_assert): Adjust to take a bpstat as argument.
1490 (catch_assert_breakpoint_ops): Install methods.
1492 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1493 to take a bpstat as argument.
1494 (enum print_stop_action): Add describing comments to each enum
1496 (breakpoint_re_set_default): Delete declaration.
1497 (null_re_set, null_works_in_software_mode, null_resources_needed)
1498 (null_check_status, null_print_one_detail): Declare.
1499 (bkpt_breakpoint_ops): Declare.
1500 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1501 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1502 (bkpt_check_status, bkpt_resources_needed)
1503 (bkpt_works_in_software_mode, bkpt_print_it)
1504 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1507 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1508 bkpt_breakpoint_ops.
1509 * python/py-breakpoint.c (bppy_init): Ditto.
1511 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1513 * MAINTAINERS (Write After Approval): Add myself to the list.
1515 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1517 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1519 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1521 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1522 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1523 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1525 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1526 (struct i386_debug_reg_state): New.
1527 (i386_init_dregs): New.
1529 (i386_cleanup_dregs): Use i386_init_dregs.
1530 (i386_show_dr): Add state parameter and adjust.
1531 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1533 (i386_remove_aligned_watchpoint): Likewise.
1534 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1535 (i386_update_inferior_debug_regs): New.
1536 (i386_insert_watchpoint): Work on a local mirror of the debug
1537 registers, and only update the inferior on success.
1538 (i386_remove_watchpoint): Ditto.
1539 (i386_region_ok_for_watchpoint): Adjust.
1540 (i386_stopped_data_address): Adjust.
1541 (i386_insert_hw_breakpoint): Adjust.
1542 (i386_remove_hw_breakpoint): Adjust.
1544 2011-07-22 Tom Tromey <tromey@redhat.com>
1546 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1547 from amd64_pseudo_register_read. Change arguments. Call
1548 mark_value_bytes_unavailable when needed.
1549 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1550 set_gdbarch_pseudo_register_read.
1551 * sentinel-frame.c (sentinel_frame_prev_register): Use
1552 regcache_cooked_read_value.
1553 * regcache.h (regcache_cooked_read_value): Declare.
1554 * regcache.c (regcache_cooked_read_value): New function.
1555 (regcache_cooked_read): Call
1556 gdbarch_pseudo_register_read_value if available.
1557 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1558 (i386_pseudo_register_read): Remove.
1559 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1560 i386_pseudo_register_read. Change arguments. Call
1561 mark_value_bytes_unavailable when needed.
1562 (i386_pseudo_register_read_value): New function.
1563 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1564 not set_gdbarch_pseudo_register_read.
1565 * gdbarch.sh (pseudo_register_read_value): New method.
1566 * gdbarch.c, gdbarch.h: Rebuild.
1567 * findvar.c (value_from_register): Call get_frame_register_value.
1569 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1571 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1573 (display_gdb_prompt): Likewise.
1574 (change_annotation_level): Likewise.
1575 (push_prompt): Likewise.
1576 (pop_prompt): Likewise.
1577 (handle_stop_sig): Use get_prompt with a level.
1578 * top.c (command_loop): Use get_prompt with a level.
1579 (set_async_annotation_level): Use set_prompt with a level.
1580 (get_prefix): New function.
1581 (set_prefix): Ditto.
1582 (set_suffix): Ditto.
1583 (get_suffix): Ditto.
1584 (get_prompt): Accept a level argument.
1585 (set_prompt): Accept a level argument. Free old prompts. Set
1586 new_async_prompt if level is 0.
1587 (init_main): Use set_prompt with a level. Do not set
1589 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1590 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1591 Modify set_prompt, get_prompt to account for levels.
1592 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1594 * python/python.c (before_prompt_hook): Use set_prompt.
1596 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1598 * defs.h: Add guard against inclusion in gdbserver.
1599 (struct ptid, ptid_t): Move to common/ptid.h.
1600 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1601 xsnprintf, internal_error): Move to common/common-utils.h.
1603 * gdb_assert.h: Move into common/ sub-directory.
1604 * gdb_locale.h: Ditto.
1605 * gdb_dirent.h: Ditto.
1606 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1607 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1608 Move into common/ptid.h.
1609 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1610 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1611 Change nomem to malloc_failure.
1612 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1613 * utils.c (nomem): Rename to malloc_failure.
1614 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1615 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1616 (gdb_buildargv): Change nomem to malloc_failure.
1617 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1618 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1619 ptid_is_pid): Move into common/ptid.c.
1620 (initialize_infrun): Delete initialization of null_ptid and
1622 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1623 linux_common_xfer_osdata.
1624 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1625 common/ptid.c and common/buffer.c.
1626 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1627 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1628 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1629 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1631 * common/gdb_assert.h: New.
1632 * common/gdb_dirent.h: New.
1633 * common/gdb_locale.h: New.
1634 * common/buffer.c: New.
1635 * common/buffer.h: New.
1636 * common/ptid.c: New.
1637 * common/ptid.h: New.
1638 * common/xml-utils.c: New.
1639 * common/xml-utils.h: New.
1640 * common/common-utils.c: New.
1641 * common/common-utils.h: New.
1642 * common/linux-osdata.c: New.
1643 * common/linux-osdata.h: New.
1644 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1645 * config/arm/linux.mh (NATDEPFILES): Ditto.
1646 * config/i386/linux.mh (NATDEPFILES): Ditto.
1647 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1648 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1649 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1650 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1651 * config/mips/linux.mh (NATDEPFILES): Ditto.
1652 * config/pa/linux.mh (NATDEPFILES): Ditto.
1653 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1654 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1655 * config/s390/s390.mh (NATDEPFILES): Ditto.
1656 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1657 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1658 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1660 2011-07-21 Matt Rice <ratmice@gmail.com>
1662 * NEWS: Add info macros and info definitions commands.
1664 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1666 * NEWS: Document Python prompt substitution hook.
1668 2011-07-18 Matt Rice <ratmice@gmail.com>
1671 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1672 * macrotab.c (foreach_macro): Ditto.
1673 (foreach_macro_in_scope): Ditto.
1674 * macrocmd.c (print_macro_callback): New function.
1675 (info_macro_command): Move some code to print_macro_definition.
1676 (print_macro_definition): New function.
1677 (print_one_macro): Add new arguments to callback.
1678 (info_definitions_command): New function.
1679 (info_macros_command): Ditto.
1680 (_initialize_macrocmd): Add info macros and info definitions commands.
1681 * symtab.c (add_macro_name): Add new arguments to callback.
1683 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1684 Tom Tromey <tromey@redhat.com>
1686 * top.c (set_prompt): Rewrite to free previous prompt, free
1687 asynch_new_prompt and set both on new prompts.
1688 * event-top.c (display_gdb_prompt): Add prompt substitution
1690 * python/python.c (before_prompt_hook): New function.
1692 2011-07-20 Matt Rice <ratmice@gmail.com>
1694 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1695 arguments to store_unsigned_integer.
1697 2011-07-20 Tom Tromey <tromey@redhat.com>
1699 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1700 in some declaration-only cases.
1702 2011-07-18 Tom Tromey <tromey@redhat.com>
1705 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1706 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1707 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1708 <debug_type_section>: New field.
1709 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1710 (load_cu): Use appropriate section.
1711 (create_signatured_type_table_from_index): Add 'section'
1713 (dwarf2_read_index): Only allow a single .debug_types section.
1714 (dw2_get_file_names): Use appropriate section.
1715 (read_type_comp_unit_head): Add 'section' argument.
1716 (create_debug_types_hash_table): Loop over all .debug_types
1718 (init_cu_die_reader): Use appropriate section.
1719 (process_psymtab_comp_unit, load_partial_comp_unit)
1720 (load_full_comp_unit, read_die_and_children, find_partial_die)
1721 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1722 (lookup_signatured_type_at_offset): Add 'section' argument.
1723 (read_signatured_type_at_offset): Add 'sect' argument.
1724 (read_signatured_type): Use appropriate section.
1725 (set_die_type, get_die_type_at_offset): Update.
1726 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1728 (write_psymtabs_to_index): Don't allow index with more than one
1729 .debug_types section.
1731 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1733 Fix crash if referenced CU is aged out.
1734 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1735 xfree of block.data.
1736 (indirect_pieced_value): New variable back_to, use to for xfree of
1738 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1740 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1741 (load_cu): New function from ...
1742 (dw2_do_instantiate_symtab): ... the code here ...
1743 (process_full_comp_unit): ... and here.
1744 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1747 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1749 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1752 2011-07-19 Gary Benson <gbenson@redhat.com>
1754 * infrun.c (struct execution_control_state): New member
1755 stop_func_filled_in.
1756 (clear_stop_func, fill_in_stop_func): New functions.
1757 (handle_inferior_event): Call clear_stop_func rather than
1758 manipulating the execution control state directly.
1759 Call fill_in_stop_func lazily as required rather than
1760 directly calling find_pc_partial_function in all cases.
1762 2011-07-18 Tom Tromey <tromey@redhat.com>
1764 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1765 checking for variable-sized array.
1767 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1769 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1770 of supported languages.
1771 * varobj.c: Add top definitions and basic implementation of the
1772 following callbacks: ada_number_of_children, ada_name_of_variable,
1773 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1774 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1775 (languages): Register Ada-specific callbacks.
1776 (variable_language): Add the Ada case in the language setter switch.
1778 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1782 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1785 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1786 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1787 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1788 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1789 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1790 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1791 (struct dwarf_expr_context_funcs): New, move here methods from ...
1792 (struct dwarf_expr_context): ... here. New fields funcs.
1793 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1794 (dwarf_expr_ctx_funcs): New.
1795 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1796 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1797 (needs_frame_ctx_funcs): New.
1798 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1800 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1802 * MAINTAINERS (Write After Approval): Add myself to the list.
1804 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1806 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1807 that CIE pointer of an FDE really points to a CIE .
1809 2011-07-15 Hui Zhu <teawater@gmail.com>
1811 * remote.c (remote_get_trace_status): Add comments.
1813 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1815 Code cleanup - constify struct lval_funcs.
1816 * dwarf2loc.c (pieced_value_funcs): Make it const.
1817 * infrun.c (siginfo_value_funcs): Likewise.
1818 * opencl-lang.c (opencl_value_funcs): Likewise.
1819 * valops.c (value_assign, value_ind): Make the funcs variable const.
1820 * value.c (struct value): Make location.computed.funcs target const.
1821 Rearrange the comments.
1822 (allocate_computed_value): Make the funcs parameter target const.
1823 (value_computed_funcs): Return the funcs target const.
1824 (value_free, value_copy, set_value_component_location): Make the funcs
1826 * value.h (allocate_computed_value): Make the funcs parameter target
1828 (value_computed_funcs): Return the funcs target const.
1829 * windows-tdep.c (tlb_value_funcs): Make it const.
1831 2011-07-14 Hui Zhu <teawater@gmail.com>
1833 * remote.c (remote_get_trace_status): Initialize p.
1835 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1838 * remote.c (remote_get_trace_status): New variable ex. Put
1839 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1841 2011-07-13 Tom Tromey <tromey@redhat.com>
1843 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1844 value_from_contents for final conversion.
1846 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1850 Indent prototypes so they do not get into tags.
1852 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1854 Code cleanup making also optimized out values lazy.
1855 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1856 allocate_optimized_out_value. Twice.
1857 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1858 * findvar.c (read_var_value): Likewise.
1859 * value.c (allocate_optimized_out_value): New function.
1860 * value.h (allocate_optimized_out_value): New declaration.
1862 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 Fix occasional crash of CTRL-C during DWARF read in.
1865 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1867 2011-07-11 Tom Tromey <tromey@redhat.com>
1869 * regcache.c (struct regcache_descr): Fix typo.
1870 * i387-tdep.c (i387_supply_xsave): Fix typo.
1872 2011-07-11 Tom Tromey <tromey@redhat.com>
1874 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1875 (read_file_scope, read_type_unit_scope): Use it.
1877 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1879 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1882 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1885 * python/python.c: Set gdbpy_should_print_stack default to off.
1886 (set_python): Deprecate maint set python print-stack to
1888 (_initialize_python): Deprecate maint set/show python print-stack.
1889 Add new prefix command, python. Add new setting, print-backtrace.
1890 * NEWS: Document set python print-stack. Document default change.
1892 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1894 * python/py-inferior.c (infpy_dealloc): New function.
1895 (inferior_to_inferior_object): Return a new object, or a
1896 new reference to the existing object.
1897 (find_thread_object): Cleanup references to inferior.
1898 (delete_thread_object): Ditto.
1899 * python/py-infthread.c (create_thread_object): Do not increment
1900 inferior reference count.
1902 2011-07-08 Tom Tromey <tromey@redhat.com>
1904 * dwarf2loc.c (locexpr_regname): New function.
1905 (locexpr_describe_location_piece): Use it.
1906 (disassemble_dwarf_expression): Add per_cu argument. Use
1908 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1909 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1911 (locexpr_describe_location_1): Add per_cu argument.
1912 (locexpr_describe_location): Update.
1913 (loclist_describe_location): Update.
1915 2011-07-08 Tom Tromey <tromey@redhat.com>
1917 * dwarf2expr.c (execute_stack_op): Add QUIT.
1919 2011-07-07 Hui Zhu <teawater@gmail.com>
1922 2011-07-06 Hui Zhu <teawater@gmail.com>
1923 * remote.c (remote_start_remote): Add TRY_CATCH for
1924 remote_get_trace_status.
1925 * tracepoint.c (disconnect_tracing): Ditto.
1927 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1929 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1930 variables as signed, not unsigned.
1932 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1934 * jit.c (jit_inferior_init): Reformat forward declaration.
1936 2011-07-06 Matt Rice <ratmice@gmail.com>
1938 * MAINTAINERS (Write After Approval): Add myself to the list.
1940 2011-07-06 Hui Zhu <teawater@gmail.com>
1942 * remote.c (remote_start_remote): Add TRY_CATCH for
1943 remote_get_trace_status.
1944 * tracepoint.c (disconnect_tracing): Ditto.
1946 2011-07-05 Tom Tromey <tromey@redhat.com>
1948 * symtab.c (operator_chars): Now static.
1949 * linespec.c (operator_chars): Don't declare.
1951 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1953 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1955 2011-07-05 Tom Tromey <tromey@redhat.com>
1957 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1958 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1959 (TYPE_CPLUS_REALLY_JAVA): New macro.
1960 * dwarf2read.c (process_structure_scope): Set
1961 TYPE_CPLUS_REALLY_JAVA.
1963 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1965 * ada-lang.c: Fix typos.
1966 * amd64-tdep.c: Likewise.
1967 * breakpoint.c: Likewise.
1968 * cli/cli-decode.c: Likewise.
1969 * findcmd.c: Likewise.
1970 * inline-frame.c: Likewise.
1971 * mi/mi-main.c: Likewise.
1972 * minsyms.c: Likewise.
1973 * monitor.c: Likewise.
1974 * monitor.h: Likewise.
1975 * prologue-value.c: Likewise.
1976 * reverse.c: Likewise.
1977 * s390-tdep.c: Likewise.
1979 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1981 * jit.c (jit_inferior_init): Forward declare.
1982 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1984 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1986 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1988 2011-07-04 Tristan Gingold <gingold@adacore.com>
1990 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1991 (tcb_fieldno): Add activation_link field.
1992 (get_known_tasks_addr): Moved and rewritten.
1993 (get_tcb_types_info): Set activation_link field.
1994 (read_known_tasks_array): Add parameter. Rewritten.
1995 (read_known_tasks_list): New function.
1996 (read_known_tasks): New function.
1997 (ada_build_task_list): Call read_known_tasks instead of
1998 read_known_tasks_array.
1999 * ravenscar-thread.c: Add first_task_name constant.
2000 (has_ravenscar_runtime): Check for task list too.
2002 2011-07-04 Tristan Gingold <gingold@adacore.com>
2004 * ada-tasks.c: Renames fieldno to actb_fieldno.
2005 (ada_get_task_number): Indentation.
2006 (get_tcb_types_info): Remove all parameters. Write directly
2008 (ptid_from_atcb_common): Adjust.
2009 (read_atcb): Adjust.
2011 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2013 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2015 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2017 * ui-out.c (ui_out_field_core_addr): Mention that the function
2018 description is in the header file.
2019 * ui-out.h (ui_out_field_core_addr): Document function.
2021 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2023 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2024 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2026 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2028 * symtab.c (expand_line_sal): Remove empty line.
2030 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2032 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2033 same way as ELFOSABI_NONE.
2034 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2036 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2038 * breakpoint.c: Fix typos in comments.
2039 * linespec.c: Likewise.
2040 * symtab.c: Likewise.
2042 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2044 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2045 section in separate object files.
2047 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2049 Fix false GCC warning.
2050 * linespec.c (decode_line_1): Initialize values.
2052 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 * linespec.c (find_method): Accept the function type automatically only
2055 if it was specified with parameter types.
2057 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2059 Stop on first linespec terminator instead of eating what we can.
2060 * linespec.c (is_linespec_boundary): New function.
2061 (name_end): Remove function.
2062 (keep_name_info): New parameter on_boundary, replace the body.
2063 (decode_line_1): Provide the parameter to keep_name_info.
2064 (decode_compound): Likewise. Drop the trailing java return type
2067 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 Fall back linespec to minimal symbols.
2070 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2071 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2072 (find_method, symbol_found): Change error to cplusplus_error.
2074 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2078 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2079 Tom Tromey <tromey@redhat.com>
2081 * dwarf2read.c (check_physname): New variable.
2082 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2083 (show_check_physname): New function.
2084 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2086 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2088 * machoread.c (macho_symfile_read): Delete OBE comment.
2090 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2092 * machoread.c (struct macho_oso_data): Delete.
2093 (current_oso): Delete.
2094 (macho_relocate_common_syms): New function, mostly extracted
2096 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2097 Remove code that sets and unset current_oso.
2098 (macho_symfile_relocate): Delete handling of common symbols,
2099 now moved to macho_relocate_common_syms.
2101 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2103 * darwin-nat.c (darwin_ptrace): Add documentation.
2104 Set errno to zero before calling ptrace. If ptrace returns
2105 -1 and errno is zero, then change then return zero.
2106 (darwin_kill_inferior): Issue a warning instead of triggering
2107 a failed assertion when the PT_KILL ptrace operations returned
2110 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2112 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2113 only when inf->private->no_ptrace.
2115 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2117 * ada-lang.c (print_it_exception): Print temporary catchpoints
2118 as "Temporary catchpoint".
2119 (print_mention_exception): Likewise.
2121 2011-07-01 Tom Tromey <tromey@redhat.com>
2123 * jv-lang.c (java_language_defn): Use java_printchar,
2125 (java_get_encoding): New function.
2126 (java_emit_char): Use generic_emit_char.
2127 (java_printchar): New function.
2128 (java_printstr): Likewise.
2130 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2132 * ada-typeprint.c (print_record_type): If unable to decode
2133 the name of the parent type, use the encoded name.
2135 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2137 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2138 pointer to constrained packed array type output.
2139 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2140 packed array output.
2142 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2144 * ada-typeprint.c (print_array_type): removed if condition on show
2145 being negative for bounds printing.
2147 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2149 * ada-lang.c (ada_identical_enum_types_p): New function.
2150 (symbols_are_identical_enums): New function.
2151 (remove_extra_symbols): Do nothing if NSYMS < 2.
2152 Use symbols_are_identical_enums.
2154 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2156 * ada-valprint.c (ada_value_print): Handle typedefs.
2158 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2160 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2162 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2164 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2165 (decode_constrained_packed_array): Likewise.
2166 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2168 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2170 * ada-exp.y (convert_char_literal): Handle typedef types.
2172 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2174 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2176 2011-06-30 Tom Tromey <tromey@redhat.com>
2178 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2179 * valops.c (find_overload_match): Call do_cleanups on early exit
2181 * solib.c (solib_find): Call do_cleanups on early exit path.
2183 2011-06-30 Tom Tromey <tromey@redhat.com>
2185 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2186 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2187 return paths. Defer final do_cleanups until last return.
2188 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2191 2011-06-30 Tom Tromey <tromey@redhat.com>
2193 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2195 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2197 * MAINTAINERS (Write After Approval): Add myself to the list.
2199 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 Disable epilogue unwinders on recent GCCs.
2202 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2203 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2204 * dwarf2read.c (process_full_comp_unit): Initialize
2205 EPILOGUE_UNWIND_VALID.
2206 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2207 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2208 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2210 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 Code cleanup - reformatting.
2213 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2214 (producer_is_gcc_ge_4): ... here, change the return value.
2215 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2218 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2220 Fix non-only rename list for Fortran modules import.
2221 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2222 cp_add_using_directive caller.
2223 (cp_add_using_directive): New parameter excludes, describe it. New
2224 variables ix and param. Compare if also excludes match. Allocate NEW
2225 with variable size, initialize EXCLUDES there.
2226 (cp_lookup_symbol_imports): New variable excludep, test
2227 current->EXCLUDES with it.
2228 * cp-support.h: Include vec.h.
2229 (struct using_direct): New field excludes, describe it.
2230 (DEF_VEC_P (const_char_ptr)): New.
2231 (cp_add_using_directive): New parameter excludes.
2232 * defs.h (const_char_ptr): New typedef.
2233 * dwarf2read.c (read_import_statement): New variables child_die,
2234 excludes and cleanups, read in excludes.
2235 (read_namespace): Adjust the cp_add_using_directive caller.
2237 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2241 negative comparisons.
2243 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2245 * mi/mi-main.c (mi_cmd_list_features): Emit
2246 breakpoint-notifications.
2248 2011-06-29 Tom Tromey <tromey@redhat.com>
2251 * valprint.h (generic_emit_char, generic_printstr): Declare.
2252 * valprint.c (wchar_printable, append_string_as_wide)
2253 (print_wchar): Move from c-lang.c.
2254 (generic_emit_char): New function; mostly taken from c_emit_char.
2255 (generic_printstr): New function; mostly taken from c_printstr.
2256 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2257 represented as arrays.
2258 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2260 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2261 identically to TYPE_CODE_INT.
2262 * f-lang.c (f_get_encoding): New function.
2263 (f_emit_char): Use generic_emit_char.
2264 (f_printchar): Replace comment.
2265 (f_printstr): Use generic_printstr.
2266 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2267 "character" types specially.
2268 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2270 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2272 (c_emit_char): Call generic_emit_char.
2273 (c_printstr): Call generic_printstr.
2275 2011-06-29 Gary Benson <gbenson@redhat.com>
2277 * breakpoint.c (bpstat_what): Removed duplicated case.
2279 2011-06-28 Tom Tromey <tromey@redhat.com>
2281 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2283 2011-06-27 Tom Tromey <tromey@redhat.com>
2285 * valops.c (find_overload_match): Call do_cleanups before early
2287 * top.c (execute_command): Call do_cleanups before early return.
2288 (command_loop): Likewise.
2289 * stack.c (backtrace_command): Make a null cleanup early. Don't
2290 conditionally call do_cleanups.
2291 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2293 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2294 so cleanups are always run.
2295 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2296 * findcmd.c (parse_find_args): Call do_cleanups on early return
2298 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2299 Don't conditionally call do_cleanups.
2300 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2303 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2305 * MAINTAINERS (Write After Approval): Use default email address.
2307 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2309 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2311 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2313 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2314 saved_regs_mask and copied_regs_mask fields.
2315 (sparc_record_save_insn): New prototype.
2316 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2317 (sparc_record_save_insn): New function.
2318 (sparc_analyze_prologue): Add head comment. Recognize store insns
2319 of call-saved registers. Use OFFSET consistently. Recognize flat
2320 frames and cache their settings.
2321 (sparc32_skip_prologue): Handle flat frames.
2322 (sparc_frame_cache): Add frame_offset to the base address.
2323 (sparc32_frame_cache): Adjust to new frame description.
2324 (sparc32_frame_prev_register): Likewise.
2325 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2326 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2327 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2328 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2329 frame by calling sparc_record_save_insn.
2330 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2331 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2332 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2334 2011-06-27 Tristan Gingold <gingold@adacore.com>
2336 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2337 field by map_addr and map_len.
2338 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2339 (munmap_section_buffer): Likewise.
2341 2011-06-24 Tom Tromey <tromey@redhat.com>
2343 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2344 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2345 * python/python.c (gdbpy_parameter): Make 'arg' const.
2346 (execute_gdb_command): Likewise.
2347 (gdbpy_decode_line): Likewise. Copy it.
2348 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2349 (gdbpy_write): Make 'arg' const.
2350 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2352 (gdbpy_lookup_type): Likewise.
2353 * python/py-prettyprint.c (print_children): Make 'name' const.
2354 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2355 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2357 * python/py-function.c (fnpy_init): Make 'name' const.
2358 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2359 (gdbpy_string_to_argv): Make 'input' const.
2360 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2362 * gdbtypes.h (lookup_typename): Update.
2363 * gdbtypes.c (lookup_typename): Make 'name' const.
2364 (lookup_struct): Likewise.
2365 (lookup_union): Likewise.
2366 (lookup_enum): Likewise.
2368 2011-06-24 Tom Tromey <tromey@redhat.com>
2370 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2371 gdb_thread_db.h. Move all common/ entries to be together.
2372 (TAGS): Don't depend on DEPFILES.
2374 2011-06-23 Yao Qi <yao@codesourcery.com>
2376 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2377 * remote.c (remote_start_remote): ... here.
2378 * monitor.c (monitor_open): ... here.
2380 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2382 * gdbtypes.c (append_composite_type_field_aligned): Fix
2383 calculation of bit position based on alignment.
2385 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2387 * breakpoint.c (bpstat_stop_status): Call the check_status
2388 breakpoint_ops method.
2389 (print_one_breakpoint_location): Also print the condition for Ada
2390 exception catchpoints.
2391 (allocate_bp_location): New, factored out from
2392 allocate_bp_location.
2393 (allocate_bp_location): Adjust. Call the owner breakpoint's
2394 allocate_location method, if there is one.
2395 (free_bp_location): Call the locations's dtor method, if there is
2397 (init_raw_breakpoint_without_location): New breakpoint_ops
2399 (set_raw_breakpoint_without_location): Adjust.
2400 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2401 (set_raw_breakpoint): Adjust.
2402 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2403 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2404 re_set and check_status methods.
2405 (init_catchpoint): Don't memset, initialize thread, addr_string
2406 and enable_state. Pass the ops down to init_raw_breakpoint.
2407 (install_catchpoint): Rename to ...
2408 (install_breakpoint): ... this, and make extern.
2409 (create_fork_vfork_event_catchpoint): Adjust.
2410 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2411 re_set and check_status methods.
2412 (create_syscall_event_catchpoint): Adjust.
2413 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2414 (masked_watchpoint_breakpoint_ops): Install NULL
2415 allocate_location, re_set and check_status methods.
2416 (catch_exec_command_1): Adjust.
2417 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2418 re_set and check_status methods.
2419 (create_ada_exception_breakpoint): Rename to ...
2420 (init_ada_exception_breakpoint): ... this. Add a struct
2421 breakpoint parameter, and delete the exp_string, cond_string and
2422 cond parameters. Use init_raw_breakpoint, and don't install or
2423 mention the breakpoint yet. Don't clear breakpoint fields that
2424 init_raw_breakpoint already clears.
2425 (re_set_breakpoint): Delete, split into ...
2426 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2428 (breakpoint_re_set_one): Call the breakpoint's
2429 breakpoint_ops->re_set implementation, if there's one. Adjust.
2430 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2431 (struct bp_location_ops): New type.
2432 (struct bp_location): New field `ops'.
2433 (struct breakpoint_ops): New `allocate_location', `re_set' and
2434 `check_status' fields. Make `breakpoint_hit''s description match
2436 (init_bp_location): Declare.
2437 (breakpoint_re_set_default): Declare.
2438 (create_ada_exception_breakpoint): Rename to ...
2439 (init_ada_exception_breakpoint): ... this. Add a struct
2440 breakpoint parameter, and delete the exp_string, cond_string and
2442 (install_breakpoint): Declare.
2443 * ada-lang.c: Include exceptions.h.
2444 <Ada exceptions description>: Update.
2445 (struct ada_catchpoint_location): New type.
2446 (ada_catchpoint_location_dtor): New function.
2447 (ada_catchpoint_location_ops): New global.
2448 (ada_catchpoint): New type.
2449 (create_excep_cond_exprs): New function.
2450 (dtor_exception, allocate_location_exception, re_set_exception)
2451 (should_stop_exception, check_status_exception): New functions.
2452 (print_one_exception, print_mention_exception)
2453 (print_recreate_exception): Adjust.
2454 (dtor_catch_exception, allocate_location_catch_exception)
2455 (re_set_catch_exception, check_status_catch_exception): New
2457 (catch_exception_breakpoint_ops): Install them.
2458 (dtor_catch_exception_unhandled)
2459 (allocate_location_catch_exception_unhandled)
2460 (re_set_catch_exception_unhandled)
2461 (check_status_catch_exception_unhandled): New functions.
2462 (catch_exception_unhandled_breakpoint_ops): Install them.
2463 (dtor_catch_assert, allocate_location_catch_assert)
2464 (re_set_catch_assert, check_status_catch_assert): New functions.
2465 (catch_assert_breakpoint_ops): Install them.
2466 (ada_exception_catchpoint_p): Delete.
2467 (catch_ada_exception_command_split)
2468 (ada_exception_catchpoint_cond_string): Rename exp_string
2469 parameter to excep_string. Adjust.
2470 (ada_parse_catchpoint_condition): Delete.
2471 (ada_exception_sal): Rename the exp_string parameter to
2472 excep_string. Delete the cond_string and cond parameters.
2474 (ada_decode_exception_location): Rename the exp_string parameter
2475 to excep_string. Delete the cond_string and cond parameters.
2477 (create_ada_exception_catchpoint): New function.
2478 (catch_ada_exception_command, ada_decode_assert_location)
2479 (catch_assert_command): Adjust.
2480 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2482 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2484 * ada-lang.c: Include arch-utils.h.
2485 (ada_decode_exception_location): Make static.
2486 (catch_ada_exception_command): Moved here from breakpoint.c.
2487 (ada_decode_assert_location): Make static.
2488 (catch_assert_command): Moved here from breakpoint.c.
2489 (_initialize_ada_lang): Install the exception and assert
2490 catchpoint commands here.
2491 * ada-lang.h (ada_decode_exception_location)
2492 (ada_decode_assert_location): Delete declarations.
2493 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2495 (create_ada_exception_breakpoint): Make extern.
2496 (catch_ada_exception_command, catch_assert_command): Moved to
2498 (add_catch_command): Make extern.
2499 (_initilize_breakpoint): Don't install the exception and assert
2500 catchpoint commands here.
2501 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2503 (add_catch_command, create_ada_exception_breakpoint): Declare.
2505 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2507 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2508 the breakpoint to the breakpoint chain here.
2509 (set_raw_breakpoint_without_location): Add the breakpoint to the
2510 breakpoint chain here.
2511 (init_raw_breakpoint): Adjust comments.
2512 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2514 (init_catchpoint): Don't set the catchpoint's breakpoint number
2516 (install_catchpoint): New function.
2517 (create_fork_vfork_event_catchpoint)
2518 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2519 use install_catchpoint.
2521 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2523 * breakpoint.c (create_catchpoint_without_mention)
2524 (create_catchpoint): Delete.
2526 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2528 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2529 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2530 reference to exec_pathname.
2531 (struct exec_catchpoint): New type.
2532 (dtor_catch_exec): New function.
2533 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2534 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2535 (catch_exec_command_1): Adjust to use init_catchpoint.
2536 (delete_breakpoint): Remove reference to exec_pathname.
2538 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2540 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2541 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2542 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2543 reference to syscalls_to_be_caught.
2544 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2546 (struct syscall_catchpoint): New type.
2547 (dtor_catch_syscall): New function.
2548 (insert_catch_syscall, remove_catch_syscall)
2549 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2550 (print_recreate_catch_syscall): Adjust.
2551 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2552 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2553 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2554 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2555 (masked_watchpoint_breakpoint_ops)
2556 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2557 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2558 there is one. Remove references to syscalls_to_be_caught.
2559 (catching_syscall_number): Adjust.
2560 * ada-lang.c (catch_exception_breakpoint_ops)
2561 (catch_exception_unhandled_breakpoint_ops)
2562 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2564 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2566 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2568 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2569 reference to forked_inferior_pid.
2570 (struct fork_catchpoint): New type.
2571 (breakpoint_hit_catch_fork, print_it_catch_fork)
2572 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2573 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2574 (create_fork_vfork_event_catchpoint): Adjust to use
2577 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2579 * breakpoint.c (add_to_breakpoint_chain)
2580 (init_raw_breakpoint_without_location): New functions, factored
2582 (set_raw_breakpoint_without_location): ... this one.
2583 (init_raw_breakpoint): New function, factored out from
2584 set_raw_breakpoint and adjusted to use
2585 init_raw_breakpoint_without_location.
2586 (set_raw_breakpoint): Adjust.
2587 (init_catchpoint): New function, factored out from
2588 create_catchpoint_without_mention and adjusted to use
2589 init_raw_breakpoint.
2590 (create_catchpoint_without_mention): Adjust.
2592 2011-06-22 Tom Tromey <tromey@redhat.com>
2594 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2595 argument of 0 specially.
2597 2011-06-22 Yao Qi <yao@codesourcery.com>
2599 * infrun.c (handle_inferior_event): Remove write-only local variable
2600 `sw_single_step_trap_p'.
2602 2011-06-20 Tom Tromey <tromey@redhat.com>
2604 * symtab.c (lookup_language_this): End loop if block is NULL.
2606 2011-06-17 Tom Tromey <tromey@redhat.com>
2608 * valops.c (value_of_this): Use lookup_language_this.
2609 * symtab.h (lookup_language_this): Declare.
2610 * symtab.c (lookup_language_this): New function.
2611 (lookup_symbol_aux): Use lookup_language_this.
2612 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2614 2011-06-17 Tom Tromey <tromey@redhat.com>
2616 * value.h (value_of_this): Update.
2617 (value_of_local): Remove.
2618 * valops.c (value_of_this): Rename from value_of_local. Change
2620 * p-exp.y (exp): Update.
2621 (variable): Likewise.
2622 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2624 2011-06-17 Tom Tromey <tromey@redhat.com>
2626 * valops.c (value_of_local): Complain if NAME is NULL.
2627 * std-operator.def (OP_OBJC_SELF): Remove.
2628 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2629 * objc-exp.y (name_not_typename): Use OP_THIS.
2630 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2632 <OP_OBJC_SELF>: Remove.
2633 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2635 2011-06-16 Tristan Gingold <gingold@adacore.com>
2637 * python/py-events.h (gdb_py_events): Make it extern.
2638 * python/py-evtregistry.c (gdb_py_events): Declare.
2640 2011-06-16 Hui Zhu <teawater@gmail.com>
2642 * remote.c (remote_trace_set_readonly_regions): Add check for
2643 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2646 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2648 * arm-linux-tdep.c: Include "auxv.h".
2650 (ARM_LINUX_SIZEOF_VFP): Define.
2651 (arm_linux_supply_vfp): New function.
2652 (arm_linux_collect_vfp): Likewise.
2653 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2654 (arm_linux_fpa_regset_sections): New variable.
2655 (arm_linux_vfp_regset_sections): Likewise.
2656 (arm_linux_core_read_description): New function.
2657 (arm_linux_init_abi): Install arm_linux_core_read_description and
2658 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2659 appropriate for the architecture.
2660 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2661 (tdesc_arm_with_m): Declare.
2662 (tdesc_arm_with_iwmmxt): Likewise.
2663 (tdesc_arm_with_vfpv2): Likewise.
2664 (tdesc_arm_with_vfpv3): Likewise.
2665 (tdesc_arm_with_neon): Likewise.
2666 * arm-linux-nat.c: Move features/*.c includes ...
2667 * arm-tdep.c: ... here.
2668 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2669 target description data structures ...
2670 * arm-tdep.c (_initialize_arm_tdep): ... here.
2671 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2672 HWCAP_VFPv3D16): Move definitions ...
2673 * arm-linux-tdep.h: ... here.
2675 2011-06-15 Hui Zhu <teawater@gmail.com>
2677 * remote.c (remote_trace_set_readonly_regions): Add a check for
2680 2011-06-14 Tom Tromey <tromey@redhat.com>
2682 * coffread.c (coffread_objfile): Rename from current_objfile.
2683 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2684 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2686 2011-06-14 Tom Tromey <tromey@redhat.com>
2688 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2689 (class_symtab): Remove.
2690 (jv_dynamics_progspace_key): New global.
2691 (jv_per_objfile_free): Reset program space data. Update assert.
2692 Don't clear globals.
2693 (get_dynamics_objfile): Use and set program space data.
2694 (get_java_class_symtab): Use get_dynamics_objfile.
2695 (add_class_symbol): Likewise.
2696 (java_link_class_type): Likewise.
2697 (java_object_type, jv_clear_object_type, set_java_object_type):
2699 (get_java_object_type): Update. Don't cache result.
2700 (is_object_type): Don't call set_java_object_type.
2701 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2702 initialize jv_dynamics_progspace_key.
2704 2011-06-14 Tom Tromey <tromey@redhat.com>
2706 * symtab.h (current_objfile): Don't declare.
2707 * objfiles.h (current_objfile): Don't declare.
2708 * objfiles.c (current_objfile): Remove.
2709 * mdebugread.c (current_objfile): New file-scope global.
2710 * dbxread.c (current_objfile): New file-scope global.
2711 * coffread.c (current_objfile): New file-scope global.
2713 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2715 * top.h (line): Rename to ...
2716 (saved_command_line): ... this.
2717 (linesize): Rename to ...
2718 (saved_command_line_size): ... this.
2719 * top.c (line): Rename to ...
2720 (saved_command_line): ... this.
2721 (linesize): Rename to ...
2722 (saved_command_line_size): ... this.
2723 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2724 * event-top.c (command_line_handler): Adjust.
2725 * main.c (captured_main): Adjust.
2727 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2729 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2730 get_frame_func instead of get_frame_pc to determine the code
2731 address used to construct the frame ID.
2732 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2733 (i386_epilogue_frame_this_id): Likewise.
2734 (i386_epilogue_frame_prev_register): New function.
2735 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2736 (i386_stack_tramp_frame_sniffer): Fix coding style.
2737 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2738 (i386_gdbarch_init): Fix comments.
2740 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2742 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2743 instruction when walking back through the instruction stream.
2745 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2748 fullname parameters order.
2750 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2753 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2755 * psymtab.c (map_symbol_filenames_psymtab)
2756 (map_partial_symbol_filenames): Likewise.
2757 * psymtab.h: Include symfile.h.
2758 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2759 * symfile.h (symbol_filename_ftype): New.
2760 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2761 map_symbol_filenames, clarify more the naming in comment.
2763 2011-06-07 Doug Evans <dje@google.com>
2765 * cc-with-index.sh: Fix typos in comment.
2766 Look for ../../gdb, for fullname.exp.
2768 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 Pedro Alves <pedro@codesourcery.com>
2771 * cli/cli-cmds.c (shell_escape): Use waitpid.
2772 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2774 2011-06-07 Tristan Gingold <gingold@adacore.com>
2776 * xcoffread.c (dwarf2_xcoff_names): New variable.
2777 (aix_process_linenos): Add a guard.
2778 (xcoff_symfile_finish): Free dwarf2.
2779 (xcoff_initial_scan): Add dwarf2 support.
2781 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2783 * infcall.c (run_inferior_call): Don't mask async. Instead force
2784 a synchronous wait, if the target can async.
2786 * target.h (struct target_ops): Delete to_async_mask.
2787 (target_async_mask): Delete.
2788 * target.c (update_current_target): Delete references to to_async_mask.
2789 * linux-nat.c (linux_nat_async_mask_value): Delete.
2790 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2791 to linux_nat_async_mask_value.
2792 (linux_nat_async_mask): Delete.
2793 (linux_nat_async, linux_nat_close): Remove references to
2794 linux_nat_async_mask_value.
2795 * record.c (record_async_mask_value): Delete.
2796 (record_async): Remove references to record_async_mask_value.
2797 (record_async_mask): Delete.
2798 (record_can_async_p, record_is_async_p): Remove references to
2799 record_async_mask_value.
2800 (init_record_ops, init_record_core_ops): Remove references to
2802 * remote.c (remote_async_mask_value): Delete.
2803 (init_remote_ops): Remove reference to remote_async_mask.
2804 (remote_can_async_p, remote_is_async_p): Remove references to
2805 remote_async_mask_value.
2806 (remote_async): Remove references to remote_async_mask_value.
2807 (remote_async_mask): Delete.
2809 * infrun.c (fetch_inferior_event): Don't claim registers changed
2810 if the current thread is already not executing.
2812 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2814 From Stephen Kitt <steve@sk2.org>
2815 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2816 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2818 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2820 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2821 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2823 2011-06-03 Tom Tromey <tromey@redhat.com>
2825 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2827 * python/py-exitedevent.c (create_exited_event_object): Change
2828 type of 'exit_code'. Optionally add exit_code attribute.
2829 (emit_exited_event): Change type of 'exit_code'.
2830 * python/py-event.h (emit_exited_event): Update.
2831 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2832 * infrun.c (handle_inferior_event): Set exit code fields on
2834 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2836 * inferior.c (exit_inferior_1): Initialize new fields.
2838 2011-06-03 Tom Tromey <tromey@redhat.com>
2840 * dwarf2expr.c (get_signed_type): New function.
2841 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2843 2011-06-02 Keith Seitz <keiths@redhat.com>
2845 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2847 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2849 * top.h (simplified_command_loop): Delete declaration.
2851 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2853 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2854 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2856 2011-06-01 Yao Qi <yao@codesourcery.com>
2858 * objfiles.h (obj_section_addr): Update reference to objfile from
2860 (obj_section_endaddr): Likewise.
2862 2011-06-01 Daniel Jacobowitz <drow@false.org>
2864 * MAINTAINERS: Update my email address and affiliation. Also
2865 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2867 2010-05-31 Keith Seitz <keiths@redhat.com>
2870 * linespec.c (get_search_block): New function.
2871 (find_methods): Add FILE_SYMTATB parameter and use it and
2872 get_search_block to pass an appropriate block to
2873 lookup_symbol_in_namespace.
2874 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2875 Check if *ARGPTR starts with a filename first.
2876 If it does, call locate_first_half again to locate the next
2877 "first half" of the linespec.
2878 Pass FILE_SYMTATB to decode_objc and decode_compound.
2879 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2880 (locate_first_half): Stop on the first colon seen.
2881 (decode_compound): Add FILE_SYMTAB parameter.
2882 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2883 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2884 get_search_block with lookup_symbol.
2885 (find_method): Add FILE_SYMTAB parameter and pass it to
2887 (decode_objc): Use get_search_block.
2889 2010-05-31 Keith Seitz <keiths@redhat.com>
2892 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2893 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2894 and CP_ANONYMOUS_NAMESPACE_LEN.
2895 (cp_is_anonymous): Likewise.
2896 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2897 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2898 * dwarf2read.c (namespace_name): Likewise.
2899 (fixup_partial_die): Likewise.
2900 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2901 seen in the input, keep it.
2903 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2905 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2906 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2907 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2908 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2909 * remote.c (_initialize_remote): Register
2910 async_remote_interrupt_twice directly as
2911 sigint_remote_twice_token event.
2913 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2915 * target.h (enum inferior_event_type): Delete INF_ERROR.
2916 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2918 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2920 * interps.c (interp_set): Don't cancel continuations.
2922 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2924 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2926 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2928 * continuations.h (continuation_ftype): Add `err' parameter.
2929 Document parameters.
2930 (do_all_continuations, do_all_continuations_thread)
2931 (do_all_intermediate_continuations)
2932 (do_all_intermediate_continuations_thread)
2933 (do_all_inferior_continuations): Add `err' parameter.
2934 * continuations.c (do_my_continuations_1, do_my_continuations)
2935 (do_all_inferior_continuations, do_all_continuations_ptid)
2936 (do_all_continuations_thread_callback)
2937 (do_all_continuations_thread, do_all_continuations)
2938 (do_all_intermediate_continuations_thread_callback)
2939 (do_all_intermediate_continuations_thread)
2940 (do_all_intermediate_continuations): Add `err' parameter, and pass
2941 it down all the way to the continuations proper.
2942 * inf-loop.c (inferior_event_handler): If fetching an inferior
2943 event throws an error, don't pop the target, and still call the
2944 continuations, but with `err' set. Adjust all other continuation
2946 * breakpoint.c (until_break_command_continuation): Add `err'
2948 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2949 issue another step if `err' is set.
2950 (struct until_next_continuation_args): New.
2951 (until_next_continuation): Add `err' parameter. Adjust.
2952 (until_next_command): Adjust.
2953 (struct finish_command_continuation_args): Add `thread' field.
2954 (finish_command_continuation): Add `err' parameter. Handle it.
2955 (finish_forward): Adjust.
2956 (attach_command_continuation): Add `err' parameter. Handle it.
2957 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2958 cancel the continuations.
2959 * interps.c (interp_set): Adjust to cancel the continuations.
2960 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2961 continuations rather than discarding.
2962 (free_thread): Don't clear thread inferior resources here.
2963 (delete_thread_1): Do it here instead. And do it before removing
2964 the thread from the threads list. Tag the thread as exited before
2965 clearing thread inferior resources.
2967 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2969 * infcall.c (call_function_by_hand): Rephrase error message.
2971 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2973 * defs.h (struct thread_info, struct inferior): Delete forward
2975 * breakpoint.h (struct thread_info): New forward declaration.
2976 * observer.sh (struct inferior): New forward declaration.
2977 * python/python-internal.h (struct inferior): New forward
2980 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2982 * defs.h (struct continuation, continuation_ftype)
2983 (continuation_free_arg_ftype, add_continuation)
2984 (do_all_continuations, do_all_continuations_thread)
2985 (discard_all_continuations, discard_all_continuations_thread)
2986 (add_intermediate_continuation, do_all_intermediate_continuations)
2987 (do_all_intermediate_continuations_thread)
2988 (discard_all_intermediate_continuations)
2989 (discard_all_intermediate_continuations_thread)
2990 (add_inferior_continuation, do_all_inferior_continuations)
2991 (discard_all_inferior_continuations): Move to ...
2992 * continuations.h: ... this new file.
2993 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2994 infcmd.c, inferior.c, infrun.c, interps.c: Include
2997 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2998 Doug Evans <dje@google.com>
3000 Fix PR 10970, PR 12702.
3001 * linux-nat.c (linux_lwp_is_zombie): New function.
3002 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3003 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3005 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3007 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3009 (add_continuation, add_intermediate_continuation)
3010 (add_inferior_continuation): Use them.
3011 * continuations.c (struct continuation): Use them.
3012 (make_continuation_ftype): Delete.
3013 (make_continuation, add_inferior_continuation, add_continuation)
3014 (add_intermediate_continuation): Use continuation_ftype and
3015 continuation_free_arg_ftype. Rename parameters to shorter names.
3017 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3019 * continuations.c (make_continuation): Make it return void.
3020 (do_my_continuations): Rename to ...
3021 (do_my_continuations_1): ... this. Remove old_chain parameter and
3023 (do_my_continuations): New.
3024 (discard_my_continuations): Rename to ...
3025 (discard_my_continuations_1): ... this. Remove old_chain
3026 parameter and adjust.
3027 (discard_my_continuations): New.
3028 (add_inferior_continuation): Simplify.
3029 (do_all_inferior_continuations): Reimplement on top
3030 do_my_continuations.
3031 (discard_all_inferior_continuations): Simplify.
3032 (add_continuation): Simplify.
3033 (do_all_continuations_ptid): Simplify.
3034 (discard_all_continuations_thread_callback): Simplify.
3035 (add_intermediate_continuation): Simplify.
3036 (discard_all_intermediate_continuations_thread_callback):
3039 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3041 * utils.c (struct continuation, add_continuation)
3042 (add_inferior_continuation)
3043 (do_all_inferior_continuations, discard_all_inferior_continuations)
3044 (restore_thread_cleanup, do_all_continuations_ptid)
3045 (do_all_continuations_thread_callback)
3046 (do_all_continuations_thread, do_all_continuations)
3047 (discard_all_continuations_thread_callback)
3048 (discard_all_continuations_thread, discard_all_continuations)
3049 (add_intermediate_continuation)
3050 (do_all_intermediate_continuations_thread_callback)
3051 (do_all_intermediate_continuations_thread)
3052 (do_all_intermediate_continuations)
3053 (discard_all_intermediate_continuations_thread_callback)
3054 (discard_all_intermediate_continuations_thread)
3055 (discard_all_intermediate_continuations): Move to ...
3056 * continuations.c: ... this new file, and adjust to no longer
3057 implement continuations on top of cleanups.
3058 * Makefile.in (SFILES): Add continuations.c.
3059 (COMMON_OBS): Add continuations.o.
3061 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3063 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3064 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3065 Internal error on invalid values.
3066 * reverse.c: Don't handle EXEC_ERROR.
3067 * mi/mi-main.c: Don't handle EXEC_ERROR.
3069 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3071 * record.c: Include event-loop.h, inf-loop.h.
3072 (record_beneath_to_async): New global.
3073 (tmp_to_async): New global.
3074 (record_async_inferior_event_token): New global.
3075 (record_open_1): Don't error out if async is enabled.
3076 (record_open): Handle to_async. Create an async event source in
3078 (record_close): Delete the async event source.
3079 (record_resumed): New global.
3080 (record_execution_dir): New global.
3081 (record_resume, record_core_resume): Set them. Register the
3082 target on the event loop.
3083 (record_wait): Rename to ...
3084 (record_wait_1): ... this. Add more debug output. Handle
3085 TARGET_WNOHANG, and the target beneath returning
3086 TARGET_WAITKIND_IGNORE.
3087 (record_wait): Reimplement on top of record_wait_1.
3088 (record_async_mask_value): New global.
3089 (record_async, record_async_mask, record_can_async_p)
3090 (record_is_async_p, record_execution_direction): New functions.
3091 (init_record_ops, init_record_core_ops): Install new methods.
3092 * infrun.c (fetch_inferior_event): Temporarily switch the global
3093 execution direction to the direction the target was going.
3094 (execution_direction): Change type to int.
3095 * target.c (default_execution_direction): New function.
3096 (update_current_target): Inherit and de_fault
3097 to_execution_direction.
3098 * target.h (struct target_ops) <to_execution_direction>: New
3100 (target_execution_direction): New macro.
3101 * inferior.h (execution_direction): Change type to int.
3103 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3105 * infcall.c (call_function_by_hand): Don't allow calling functions
3106 in reverse execution mode.
3108 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3110 * infcmd.c (finish_command): Allow async finish in reverse.
3112 2011-05-26 Yao Qi <yao@codesourcery.com>
3114 * gdb_thread_db.h: Delete. Move to ...
3115 * common/gdb_thread_db.h: ... here.
3117 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3119 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3120 function's entry point instead of a manually managed momentary
3121 breakpoint, and only ever issue one proceed call.
3122 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3123 doing a reverse-finish, switch to stepi mode, to do another step.
3124 (insert_step_resume_breakpoint_at_sal): Make public.
3125 (normal_stop): No need to save function value return registers if
3127 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3129 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3131 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3132 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3133 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3135 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3136 step-resume breakpoints.
3137 (print_it_typical): Handle bp_hp_step_resume.
3138 (bpstat_what): Ditto.
3139 (bptype_string): Ditto.
3140 (print_one_breakpoint_location): Ditto.
3141 (allocate_bp_location): Ditto.
3143 (breakpoint_re_set_one): Ditto.
3144 * infrun.c (handle_inferior_event): Adjust. Split
3145 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3146 BPSTAT_WHAT_HP_STEP_RESUME.
3147 (insert_step_resume_breakpoint_at_sal): Rename to ...
3148 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3149 parameter. Handle it.
3150 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3151 insert_step_resume_breakpoint_at_sal_1.
3152 (insert_step_resume_breakpoint_at_frame): Rename to ...
3153 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3154 set a high-priority step-resume breakpoint.
3155 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3156 (insert_step_resume_breakpoint_at_caller): Ditto.
3158 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3160 * breakpoint.c (iterate_over_related_breakpoints): New.
3161 (do_map_delete_breakpoint): New.
3162 (delete_command): Pass do_map_delete_breakpoint to
3163 map_breakpoint_numbers.
3164 (do_disable_breakpoint): New.
3165 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3167 (do_enable_breakpoint): Rename to ...
3168 (enable_breakpoint_disp): ... this.
3169 (enable_breakpoint): Adjust.
3170 (do_enable_breakpoint): New.
3171 (enable_once_breakpoint): Delete.
3172 (do_map_enable_breakpoint): New.
3173 (do_map_enable_once_breakpoint): New.
3174 (enable_once_command, enable_delete_command)
3175 (delete_trace_command): Iterate over the breakpoint's related
3178 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3180 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3181 for ALPHA_ZERO_REGNUM.
3182 (alpha_supply_int_regs): Explicitly supply zero as the value for
3183 ALPHA_ZERO_REGNUM in the register cache.
3184 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3186 2011-05-26 Yao Qi <yao@codesourcery.com>
3188 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3190 2011-05-26 Tristan Gingold <gingold@adacore.com>
3192 * symfile.h (struct dwarf2_section_names): New type.
3193 (struct dwarf2_debug_sections): New type.
3194 (dwarf2_has_info): Add parameter.
3195 * dwarf2read.c (dwarf2_elf_names): New variable.
3196 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3197 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3198 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3199 (dwarf2_has_info): Add names parameter. Pass names
3200 to dwarf2_locate_sections.
3201 (section_is_p): Rewrite using the names parameter.
3202 (dwarf2_locate_sections): Use section names from the names parameter.
3203 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3204 * elfread.c (read_psyms): Ditto.
3205 * machoread.c (macho_symfile_read): Ditto.
3207 2011-05-25 Andreas Schwab <schwab@redhat.com>
3210 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3212 2011-05-24 Keith Seitz <keiths@redhat.com>
3215 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3216 (decode_compound): Unconditionally call keep_name_info.
3218 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3220 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3221 scope, clear its command list.
3222 (map_breakpoint_numbers): Don't walk the related breakpoints list
3225 2011-05-24 Tom Tromey <tromey@redhat.com>
3227 * MAINTAINERS: Move Jim Blandy to past maintainers.
3229 2011-05-24 Tristan Gingold <gingold@adacore.com>
3231 * symfile.h (enum dwarf2_section_enum): New type.
3232 (dwarf2_get_section_info): New prototype.
3233 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3234 section_name by sect. Use a switch to select the info.
3235 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3236 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3238 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3240 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3241 shared library event breakpoint if there's no execution.
3243 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3245 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3246 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3248 2011-05-23 Tom Tromey <tromey@redhat.com>
3250 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3253 2011-05-23 Doug Evans <dje@google.com>
3255 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3256 entry for RuntimeError to doc string.
3258 2011-05-23 Jerome Guitton <guitton@adacore.com>
3260 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3261 sequence for probing loops.
3263 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3265 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3268 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3270 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3271 zero as the value for %g0 in the register cache.
3272 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3273 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3275 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3277 * infrun.c (proceed): Set previous_inferior_ptid here.
3278 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3279 inferior_ptid, not null_ptid.
3280 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3281 (fetch_inferior_event): Nor here.
3283 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3285 * inf-loop.c (inferior_event_handler): Only output a message if
3288 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3290 * MAINTAINERS: Update my e-mail address.
3292 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3294 * infrun.c (proceed): Switch the inferior event loop to
3295 INF_EXEC_COMPLETE if the target refused to resume from a
3298 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3300 * infcmd.c: Include "inf-loop.h".
3301 (step_once): When stepping into an inline subroutine, pretend the
3302 target has run. If the target can async, switch the inferior
3303 event loop to INF_EXEC_COMPLETE.
3304 * inferior.h (user_visible_resume_ptid): Declare.
3305 * infrun.c (user_visible_resume_ptid): New function, factored out
3308 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3309 that the current thread is running. Merge async and sync
3312 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3314 * infcmd.c (step_1): Simplify synchronous case.
3316 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3318 * tracepoint.c: Include exceptions.h.
3319 (TFILE_PID): Move higher in file.
3320 (tfile_open): Delay pushing the tfile target until we're assured
3321 the tfile header is present in the file. Wrap reading the initial
3322 newline-terminated lines in TRY_CATCH. Pop the target if the
3323 initial setup failed. Add the tfile's thread immediately
3324 aftwards, before any non-essential setup. Don't skip
3325 post_create_inferior if there are no traceframes present in the
3327 (tfile_close): Remove redundant check for null before xfree call.
3328 (tfile_thread_alive): New function.
3329 (init_tfile_ops): Register it as to_thread_alive callback.
3331 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3333 * tracepoint.c (tfile_open): Delete #if 0'd code.
3335 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3337 Fix -readnow for -gdwarf-4 unused type units.
3338 * dwarf2read.c (struct signatured_type): Remove the field offset.
3339 (create_signatured_type_table_from_index): Remove its initialization.
3340 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3341 instead. Add a complaint call.
3342 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3343 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3344 (lookup_signatured_type_at_offset, read_signatured_type)
3345 (write_one_signatured_type): Update the field for per_cu.
3347 2011-05-19 Tom Tromey <tromey@redhat.com>
3349 * python/py-inferior.c (python_inferior_exit): Use
3351 (python_on_resume): Likewise.
3353 2011-05-19 Matt Rice <ratmice@gmail.com>
3355 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3357 2011-05-19 Hui Zhu <teawater@gmail.com>
3359 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3361 2011-05-19 Hui Zhu <teawater@gmail.com>
3363 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3365 2011-05-18 Tom Tromey <tromey@redhat.com>
3367 * dwarf2read.c (dwarf2_add_field): Constify.
3368 * value.c (value_static_field): Constify.
3369 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3371 * ax-gdb.c (gen_static_field): Constify
3373 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3375 * linux-nat.c (kill_callback): Use SIGKILL first.
3377 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3379 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3381 2011-05-18 Tom Tromey <tromey@redhat.com>
3383 * value.c (value_fn_field): Constify.
3384 * symtab.c (gdb_mangle_name): Constify.
3385 * stabsread.c (update_method_name_from_physname): Make 'physname'
3387 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3388 const. Use explicit fputc_filtered loop.
3389 (pascal_type_print_base): Constify.
3390 * p-lang.h (pascal_type_print_method_args): Update.
3391 * linespec.c (add_matching_methods): Constify.
3392 (add_constructors): Likewise.
3393 * jv-typeprint.c (java_type_print_base): Constify.
3394 * gdbtypes.h (struct cplus_struct_type)
3395 <fn_fieldlist.fn_field.physname>: Now const.
3396 * dwarf2read.c (compute_delayed_physnames): Constify.
3397 (dwarf2_add_member_fn): Likewise.
3398 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3400 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3402 * infrun.c (resume): Mention which is the current thread, and its
3403 current PC in debug output.
3404 (prepare_to_proceed): Mention the thread switching in debug
3407 2011-05-18 Tom Tromey <tromey@redhat.com>
3409 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3410 path check. Use xmalloc and cleanups.
3411 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3413 2011-05-17 Tom Tromey <tromey@redhat.com>
3415 * cp-valprint.c (cp_print_value_fields): Catch errors from
3418 2011-05-17 Tom Tromey <tromey@redhat.com>
3420 * dwarf2read.c (dwarf2_get_die_type): Call
3421 get_die_type_at_offset.
3422 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3423 get_base_type function.
3425 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3427 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3430 2011-05-16 Doug Evans <dje@google.com>
3432 * python/py-auto-load.c (source_section_scripts): Mention objfile
3435 2011-05-15 Doug Evans <dje@google.com>
3437 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3438 (try_thread_db_load_from_pdir): Call it. If unable to find
3439 libthread_db in directory of libpthread, see if we're looking at
3440 the separate-debug-info copy.
3442 * python/py-autoload.c (print_script): Print "Missing" instead of
3443 "No" for missing scripts.
3444 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3446 2011-05-13 Doug Evans <dje@google.com>
3448 * ui-file.c (stdio_file_write_async_safe): Add comment.
3450 2011-05-14 Hui Zhu <teawater@gmail.com>
3452 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3454 2011-05-13 Doug Evans <dje@google.com>
3456 Support $pdir and $sdir in libthread-db-search-path.
3457 * NEWS: Mention $sdir,$pdir.
3458 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3459 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3460 (try_thread_db_load_from_sdir): New function.
3461 (try_thread_db_load_from_dir): New function.
3462 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3463 system directories if search of libthread-db-search-path fails,
3464 that is now done via $sdir.
3465 (has_libpthread): New function.
3466 (thread_db_load): Remove search for libthread_db in directory of
3467 libpthread, that is now done via $pdir.
3469 * NEWS: Mention "info auto-load-scripts".
3470 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3471 script_not_found_warning_printed.
3472 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3473 all callers updated. Initialize script_not_found_warning_printed.
3474 (get_auto_load_pspace_data_for_loading): New function.
3475 (maybe_add_script): New function.
3476 (source_section_scripts): Simplify. Only print one warning regardless
3477 of the number of auto-load scripts not found.
3478 (clear_section_scripts): Clear script_not_found_warning_printed.
3479 (auto_load_objfile_script): Record script in hash table.
3480 (count_matching_scripts): New function.
3481 (maybe_print_script): Renamed from maybe_print_section_script, all
3482 callers updated. Rewrite to use ui_out_*.
3483 (info_auto_load_scripts): Renamed from
3484 maintenance_print_section_scripts, all callers updated.
3485 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3486 renamed as "info auto-load-scripts".
3488 2011-05-13 Tom Tromey <tromey@redhat.com>
3490 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3491 (read_sleb128): Likewise.
3493 2011-05-13 Tom Tromey <tromey@redhat.com>
3495 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3498 2011-05-13 Doug Evans <dje@google.com>
3500 * linux-nat.c (debug_linux_nat_async): Delete.
3501 Replace all references to use debug_linux_nat instead.
3502 (show_debug_linux_nat_async): Delete.
3503 (sigchld_handler): Call ui_file_write_async_safe instead of
3505 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3506 * ui-file.c (struct ui_file): New member to_write_async_safe.
3507 (null_file_write_async_safe): New function.
3508 (ui_file_write_async_safe): New function.
3509 (set_ui_file_write_async_safe): New function.
3510 (ui_file_new): Initialize to_write_async_safe.
3511 (stdio_file_write_async_safe): New function.
3512 (struct stdio_file): New member fd.
3513 (stdio_file_new): Initialize to_write_async_safe, fd.
3514 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3516 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3517 (set_ui_file_write_async_safe): Declare.
3518 (ui_file_write_async_safe): Declare.
3520 2011-05-13 Tom Tromey <tromey@redhat.com>
3522 * utils.c (do_value_free): New function.
3523 (make_cleanup_value_free): Likewise.
3524 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3526 (dwarf2_loc_desc_needs_frame): Call
3527 make_cleanup_value_free_to_mark.
3528 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3529 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3531 (new_dwarf_expr_context): Don't call value_mark.
3532 * dwarf2-frame.c (execute_stack_op): Call
3533 make_cleanup_value_free_to_mark.
3534 * defs.h (make_cleanup_value_free): Declare.
3536 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3538 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3539 prepare_execute_command.
3540 * top.c (prepare_execute_command): Return cleanup.
3541 (execute_command): Use cleanup from prepare_execute_command.
3542 * top.h (prepare_execute_command): Change prototype to return
3544 * defs.h (struct value): Add opaque declaration.
3545 (make_cleanup_value_free_to_mark): Add prototype.
3546 * utils.c (do_value_free_to_mark): New function.
3547 (make_cleanup_value_free_to_mark): Likewise.
3549 2011-05-12 Tom Tromey <tromey@redhat.com>
3551 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3552 cast left-hand-side to unsigned.
3554 2011-05-12 Tom Tromey <tromey@redhat.com>
3557 * value.h (value_from_contents): Declare.
3558 * value.c (value_from_contents): New function.
3559 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3560 (dwarf2_get_die_type): New function.
3561 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3562 (allocate_piece_closure): Acquire reference to values.
3563 (read_pieced_value): Update for value-based expressions.
3564 (write_pieced_value): Likewise.
3565 (free_pieced_value_closure): Call value_free as needed.
3566 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3567 Update for value-based expressions.
3568 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3569 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3570 <get_base_type>: New field.
3571 (struct dwarf_expr_piece) <v.value>: Change type.
3572 <v.regno>: New field.
3573 (struct dwarf_expr_context) <mark>: New field.
3574 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3575 (dwarf_expr_pop, dwarf_expr_push): Remove.
3576 (dwarf_expr_push_address): Declare.
3577 * dwarf2expr.c (dwarf_arch_cookie): New global.
3578 (struct dwarf_gdbarch_types): New.
3579 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3581 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3583 (dwarf_expr_push_address): New function.
3584 (dwarf_expr_pop): Now static.
3585 (dwarf_expr_fetch): Change return type.
3586 (dwarf_require_integral): New function.
3587 (dwarf_expr_fetch): Simplify.
3588 (add_piece): Update.
3589 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3591 (execute_stack_op) <sign_ext>: Remove.
3592 Use values for DWARF stack.
3593 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3594 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3596 (_initialize_dwarf2expr): New function.
3597 (add_piece): Update.
3598 (new_dwarf_expr_context): Set new field.
3599 (free_dwarf_expr_context): Call value_free_to_mark.
3600 * dwarf2-frame.c (no_base_type): New function.
3601 (execute_stack_op): Set get_base_type field. Update.
3603 2011-05-12 Tom Tromey <tromey@redhat.com>
3605 * dwarf2read.c (read_common_block): Fix formatting.
3607 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3609 * breakpoint.c (disable_breakpoint): Disable all locations
3610 associated with a tracepoint on target if a trace experiment is
3612 (disable_command): Disable a specific tracepoint location on target if
3613 a trace experiment is running.
3614 (do_enable_breakpoint): Enable all locations associated with a
3615 tracepoint on target if a trace experiment is running.
3616 (enable_command) Enable a specific tracepoint location on target if a
3617 trace experiment is running.
3618 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3619 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3620 to_disable_tracepoint.
3621 * target.h: Add declaration of struct bp_location.
3622 (struct target_ops): Add new functions
3623 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3624 to_disable_tracepoint to target operations.
3625 (target_supports_enable_disable_tracepoint): New macro.
3626 (target_enable_tracepoint): New macro.
3627 (target_disable_tracepoint): New macro.
3628 * remote.c (struct remote_state): Add new field.
3629 (remote_enable_disable_tracepoint_feature): New.
3630 (remote_protocol_features): Add new entry.
3631 (remote_supports_enable_disable_tracepoint): New.
3632 (remote_enable_tracepoint): New.
3633 (remote_disable_tracepoint): New.
3634 (init_remote_ops): Add remote_enable_tracepoint,
3635 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3636 to remote operations.
3637 * tracepoint.c (start_tracing): Allow tracing to start without any
3638 tracepoints enabled with just a warning if they can be re-enabled
3640 * NEWS: Add news item for the new behaviour of the enable and disable
3641 GDB commands when applied to tracepoints.
3642 Add news items for the new remote packets QTEnable and QTDisable.
3644 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 * config.in: Regenerate.
3647 * configure: Regenerate.
3648 * configure.ac <--with-system-readline> (for readline_echoing_p):
3650 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3651 (tui_old_rl_echoing_p): ... here.
3652 (tui_setup_io): Rename extern declaration readline_echoing_p to
3653 _rl_echoing_p. Adjust assignments for the both renames.
3655 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3657 * symtab.c (lookup_symtab): Run cleanup before returning.
3659 2011-05-11 Tom Tromey <tromey@redhat.com>
3661 * dwarf2read.c (handle_data_member_location): New function.
3662 (dwarf2_add_field): Use it.
3663 (read_common_block): Likewise.
3665 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 Make addrs->SECTINDEX always defined.
3668 * symfile.c (relative_addr_info_to_section_offsets): Check for
3669 SECTINDEX -1, not for zero ADDR.
3670 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3671 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3672 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3675 2011-05-10 Doug Evans <dje@google.com>
3677 * linux-thread-db.c: Whitespace cleanup.
3678 (try_thread_db_load_1): Fix comment.
3680 * linux-thread-db.c (set_libthread_db_search_path): New function.
3681 (_initialize_thread_db): Add setter for libthread-db-search-path.
3683 2011-05-09 Doug Evans <dje@google.com>
3685 * NEWS: Mention --with-iconv-bin.
3686 * configure.ac: New option --with-iconv-bin.
3687 * configure: Regenerate.
3688 * config.in: Regenerate.
3689 * defs.h (relocate_gdb_directory): Declare.
3690 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3691 removed progname parameter, and exported. All callers updated.
3692 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3694 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3695 adding missing call to restore_child_signals_mask.
3697 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3699 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3701 * infrun.c (proceed, start_remote): Adjust.
3702 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3703 and adjust to not handle it.
3704 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3705 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3706 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3707 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3708 * windows-nat.c (do_initial_windows_stuff): Adjust.
3709 * infcmd.c (attach_command): Adjust.
3710 (notice_new_inferior): Adjust.
3712 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3714 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3715 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3716 * spu-tdep.c (op_selb): Use correct value.
3718 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3720 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3721 "parent" parameter to symbol_file_add_from_bfd call.
3723 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3724 Thiago Jung Bauermann <bauerman@br.ibm.com>
3726 Implement support for PowerPC BookE masked watchpoints.
3727 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3729 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3730 method. Initialize to NULL in all existing breakpoint_ops instances.
3731 (struct breakpoint) <hw_wp_mask>: New field.
3732 * breakpoint.c (is_masked_watchpoint): Add prototype.
3733 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3734 breakpoint's breakpoint_ops.works_in_software_mode if available.
3735 (watchpoints_triggered): Handle the case of a hardware masked
3737 (watchpoint_check): Likewise.
3738 (works_in_software_mode_watchpoint): New function.
3739 (insert_masked_watchpoint, remove_masked_watchpoint)
3740 (resources_needed_masked_watchpoint)
3741 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3742 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3743 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3745 (masked_watchpoint_breakpoint_ops): New structure.
3746 (watch_command_1): Check for the existence of the `mask' parameter.
3747 Set b->ops according to the type of hardware watchpoint being created.
3748 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3749 (ppc_linux_remove_mask_watchpoint)
3750 (ppc_linux_masked_watch_num_registers): New functions.
3751 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3752 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3753 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3754 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3755 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3756 (target_masked_watch_num_registers): New functions.
3757 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3758 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3760 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3761 (target_masked_watch_num_registers): Add prototypes.
3763 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3766 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3767 (producer_is_gcc_ge_4_0): New function.
3768 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3769 symtab->language code.
3770 (var_decode_location): Set cu->has_loclist.
3771 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3772 skip. Intialize force_skip from locations_valid. Move the prologue
3773 skipping code into two passes.
3774 * symtab.h (struct symtab): Make the primary field a bitfield. New
3775 field locations_valid.
3777 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3779 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3780 (classify_inner_name): Call cp_lookup_nested_type with
3782 * cp-namespace.c (cp_lookup_nested_type): New variable
3783 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3784 type_name_no_tag_or_error with saved_parent_type.
3785 * dwarf2read.c (load_partial_dies): Read in any children of
3786 DW_TAG_typedef with complaint in such case.
3787 * gdbtypes.c (type_name_no_tag_or_error): New function.
3788 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3789 * valops.c (destructor_name_p): New comment for parameter type. Remove
3790 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3791 * value.h (destructor_name_p): Remove type const.
3793 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3795 * symtab.c (compare_symbol_name): New function.
3796 (completion_list_add_name, expand_partial_symbol_name): Call it,
3797 remove the variable ncmp.
3798 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3801 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3803 Demote to sw watchpoint only in update_watchpoint.
3804 * breakpoint.c (update_watchpoint): Change between software and
3805 hardware watchpoint for all kinds of watchpoints, not just
3806 read/write ones. Determine b->exact value here instead of
3807 in watch_command_1. Error out if there are not enough resources
3808 for a read or access hardware watchpoint.
3809 (watch_command_1): Remove logic of checking whether there are
3810 enough resources available, since update_watchpoint will do that
3811 work now. Don't set b->exact here. Catch exceptions thrown by
3812 update_watchpoint and delete the watchpoint.
3813 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3814 Use target_exact_watchpoints instead.
3815 (delete_breakpoint): Notify observers only if deleted watchpoint
3816 has a breakpoint number assigned to it.
3818 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3820 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3822 2011-05-05 Jerome Guitton <guitton@adacore.com>
3824 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3826 (i386_stack_tramp_frame_unwind): New static global.
3827 (i386_match_pattern): New function, extracted from i386_match_insn.
3828 (i386_match_insn): Use i386_match_pattern.
3829 (i386_match_insn_block): New function.
3830 (i386_tramp_chain_in_reg_insns)
3831 (i386_tramp_chain_on_stack_insns): New static variables.
3832 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3835 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3837 * configure.host (xscale*): Don't handle target.
3838 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3841 2011-05-04 Yao Qi <yao@codesourcery.com>
3843 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3845 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3848 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3849 | * elfread.c (elf_symtab_read): Stop memory leak.
3851 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3853 * nto-tdep.c (nto_target): Replace deprecated call to
3854 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3856 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 Fix false GCC warning.
3859 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3861 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3863 * breakpoint.c (update_watchpoint): Move code to change
3864 the enable state of breakpoint from here ...
3865 (do_enable_breakpoint): ... to here.
3867 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3869 * valprint.c (val_print_array_elements): Fixed poor performance
3870 of printing very large arrays with repeat_count_threshold set
3871 to unlimited. New comment.
3873 2011-04-29 Tom Tromey <tromey@redhat.com>
3875 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3876 (mi_parse): Likewise.
3877 * breakpoint.c (break_range_command): Use sizeof char*, not
3879 (create_breakpoint): Likewise.
3880 (parse_breakpoint_sals): Likewise.
3882 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3884 * linux-nat.c (linux_child_remove_fork_catchpoint)
3885 (linux_child_remove_vfork_catchpoint)
3886 (linux_child_remove_exec_catchpoint): New functions.
3887 (linux_target_install_ops): Install them.
3889 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3893 * varobj.c (install_default_visualizer): Do not install a
3894 visualizer if the varobj is CPLUS_FAKE_CHILD.
3895 (construct_visualizer): Likewise.
3897 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3900 case insensitive comparison.
3902 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3904 * infrun.c (proceed): Revert previous change.
3905 (resume): Instead, handle the case of signal delivery while stepping
3906 off a breakpoint location here, and only if software single-stepping
3907 is used. Handle nested signals.
3909 2011-04-28 Yao Qi <yao@codesourcery.com>
3911 * arm-tdep.c (copy_unmodified): Rename to ...
3912 (arm_copy_unmodified): .. this. New.
3913 (copy_preload): Move common part to ...
3914 (install_preload): .. this. New.
3915 (arm_copy_preload): New.
3916 (copy_preload_reg): Move common part to ...
3917 (install_preload_reg): ... this. New.
3918 (arm_copy_preload_reg): New.
3919 (copy_b_bl_blx): Move common part to ...
3920 (install_b_bl_blx): .. this. New.
3921 (arm_copy_b_bl_blx): New.
3922 (copy_bx_blx_reg): Move common part to ...
3923 (install_bx_blx_reg): ... this. New.
3924 (arm_copy_bx_blx_reg): New.
3925 (copy_alu_reg): Move common part to ...
3926 (install_alu_reg): ... this. New.
3927 (arm_copy_alu_reg): New.
3928 (copy_alu_shifted_reg): Move common part to ...
3929 (install_alu_shifted_reg): ... this. New.
3930 (copy_ldr_str_ldrb_strb): Move common part to ...
3931 (install_ldr_str_ldrb_strb): ... this. New.
3932 (arm_copy_ldr_str_ldrb_strb): New.
3933 (copy_copro_load_store): Move some common part to ...
3934 (install_copy_copro_load_store): ... this. New.
3935 (arm_copy_copro_load_store): New.
3937 (arm_copy_svc): Renamed from copy_svc.
3938 (copy_undef): Delete.
3939 (arm_copy_undef): Renamed from copy_undef.
3940 (decode_ext_reg_ld_st): Delete.
3941 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3942 (decode_svc_copro): Delete.
3943 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3944 (copy_copro_load_store, copy_alu_imm): update callers.
3945 (copy_extra_ld_st, copy_block_xfer): Likewise.
3946 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3947 (decode_miscellaneous, decode_dp_misc): Likewise.
3948 (decode_ld_st_word_ubyte, decode_media): Likewise.
3949 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3950 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3951 (decode_unconditional, decode_miscellaneous): Likewise.
3952 (decode_media, decode_b_bl_ldmstm): Likewise.
3953 (arm_process_displaced_insn): Likewise..
3954 (decode_misc_memhint_neon): Delete.
3955 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3956 (decode_miscellaneous): Delete.
3957 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3958 (decode_dp_misc): Delete.
3959 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3960 (decode_ld_st_word_ubyte): Delete.
3961 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3962 (decode_media): Delete.
3963 (arm_decode_media): Renamed from decode_media.
3964 (decode_b_bl_ldmstm): Delete.
3965 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3966 (decode_ext_reg_ld_st): Delete.
3967 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3968 (decode_unconditional): Delete.
3969 (arm_decode_unconditional): Renamed from decode_unconditional.
3971 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 Case insensitive lookups implementation.
3974 * dwarf2read.c: Include ctype.h.
3975 (struct mapped_index): New field version.
3976 (mapped_index_string_hash): New parameter index_version. New comment
3977 for it. Call tolower appropriately.
3978 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3979 Choose the right index version for mapped_index_string_hash.
3980 (dwarf2_read_index): Support also the index version 5. Initialize the
3981 new struct mapped_index field version.
3982 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3983 (find_slot): Explain the version needs. Pass INT_MAX for the new
3985 (write_psymtabs_to_index): Produce version 5.
3986 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3987 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3988 * psymtab.c (lookup_partial_symbol): Find the
3989 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3991 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3993 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3994 (completion_list_add_name): New variable ncmp, initialize it, use it.
3995 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3996 * utils.c (strcmp_iw): Support case_sensitive_off.
3997 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3998 New function comment part. New variables saved_string1,
3999 saved_string2 and case_pass. Add a proper second pass.
4001 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 Replace re_comp/re_exec by regcomp/regexec.
4004 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4005 (search_symbols_name_matches): Use them, use regexec.
4006 (search_symbols): New variable retval_chain, adjust the use of
4007 old_chain against it. Replace re_comp by regcomp. Use the new struct
4008 search_symbols_data fields, use regexec instead of re_exec.
4010 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4012 Format the code for the next patch.
4013 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4014 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4015 New variables c1 and c2.
4017 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4019 * infrun.c (proceed): Do not single-step into signal delivery
4020 when stepping off a breakpoint location.
4021 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4022 (insert_step_resume_breakpoint_at_caller): Likewise.
4023 (insert_step_resume_breakpoint_at_sal): Likewise.
4024 (insert_longjmp_resume_breakpoint): Likewise.
4026 2011-04-27 Yao Qi <yao@codesourcery.com>
4028 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4030 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4032 * procfs.c (procfs_pass_signals): Fix advance declaration.
4034 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4036 * target.h (struct target_ops): Remove to_notice_signals;
4037 add to_pass_signals.
4038 (target_notice_signals): Remove.
4039 (target_pass_signals): Add prototype.
4040 * target.c (update_current_target): Remove to_notice_signals;
4041 mention to_pass_signals.
4042 (target_pass_signals): New function.
4043 (debug_to_notice_signals): Remove.
4044 (setup_target_debug): Do not install debug_to_notice_signals.
4046 * infrun.c (signal_pass): New global.
4047 (resume): Call target_pass_signals.
4048 (handle_inferior_event): Report all signals while stepping over
4049 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4050 are re-inserted when stepping over a signal handler.
4051 (signal_cache_update): New function.
4052 (signal_stop_update): Call it.
4053 (signal_print_update): Likewise.
4054 (signal_pass_update): Likewise.
4055 (handle_command): Call signal_cache_update and target_pass_signals
4056 instead of target_notice_signals.
4057 (_initialize_infrun): Initialize signal_pass.
4059 * linux-nat.c (pass_mask): New global.
4060 (linux_nat_pass_signals): New function.
4061 (linux_nat_create_inferior): Report all signals initially.
4062 (linux_nat_attach): Likewise.
4063 (linux_nat_resume): Use pass_mask to decide whether to directly
4064 handle an inferior signal.
4065 (linux_nat_wait_1): Likewise.
4066 (linux_nat_add_target): Install to_pass_signals callback.
4068 * nto-procfs.c (notice_signals): Remove.
4069 (procfs_resume): Do not call notice_signals.
4070 (procfs_notice_signals): Remove.
4071 (procfs_pass_signals): New function.
4072 (init_procfs_ops): Install to_pass_signals callback instead of
4073 to_notice_signals callback.
4074 (_initialize_procfs): Report all signals initially.
4076 * procfs.c (procfs_notice_signals): Remove.
4077 (procfs_pass_signals): New function.
4078 (procfs_target): Install to_pass_signals callback instead of
4079 to_notice_signals callback.
4080 (register_gdb_signals): Remove.
4081 (procfs_debug_inferior): Report all signals initially.
4082 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4084 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4085 parameters; use them instead of calling signal_..._state routines.
4086 (remote_notice_signals): Remove.
4087 (remote_start_remote): Report all signals initially.
4088 (remote_resume): Do not call remote_pass_signals.
4089 (_initialize_remote): Install to_pass_signals callback instead of
4090 to_notice_signals callback.
4092 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4094 * breakpoint.c (user_settable_breakpoint): Delete.
4095 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4096 (delete_command): Check user_breakpoint_p instead of looking at
4097 the breakpoint's type.
4098 (disable_command): Ditto.
4099 (enable_command): Ditto.
4100 (delete_trace_command): Use user_breakpoint_p instead of looking
4101 at the breakpoint number directly. When checking if there are
4102 user visible tracepoints, in order to know whether to ask the user
4103 for confirmation, check whether the breakpoint is actually a
4106 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4108 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4111 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4113 MI breakpoint notifications.
4115 * annotate.c (breakpoint_changed): Adjust parameter type.
4116 * breakpoint.c (set_breakpoint_condition): Adjust to change
4117 in breakpoint_modified type.
4118 (breakpoint_set_commands): Likewise.
4119 (do_map_commands_command): Likewise.
4120 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4121 changed after bumping hit count.
4122 (bpstat_stop_status): Likewise.
4123 (print_one_breakpoint_location): Don't wrap in tuple here.
4124 (print_one_breakpoint): Always print individual locations.
4125 For locations, use unnamed tuple.
4126 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4128 (create_catchpoint, create_syscall_event_catchpoint): Call
4129 breakpoint_created obsever.
4130 (mention): Don't call breakpoint_created observer.
4131 (create_breakpoint_sal): Call breakpoint_created observer.
4132 (create_breakpoint, watch_command_1): Likewise.
4133 (create_ada_exception_breakpoint): Likewise.
4134 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4135 (locations_are_equal): New.
4136 (update_breakpoint_locations): If locations were changed, notify.
4137 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4138 Call breakpoint_modified observer.
4140 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4141 (mi_cmd_break_insert): Don't set observers for modify and delete.
4142 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4143 (mi_breakpoint_created, mi_breakpoint_deleted)
4144 (mi_breakpoint_modified): New.
4145 (mi_interpreter_init): Hook the above.
4146 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4147 while -break-* commands are executing.
4148 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4149 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4151 (mi_ui_out_impl): Hook in mi_redirect.
4152 (mi_field_skip): True to the name, skip the field, don't output
4153 a field with an empty value.
4155 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4156 (gdbpy_breakpoint_deleted): Adjust.
4157 * tui/tui-hooks.c (tui_event_create_breakpoint)
4158 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4160 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4162 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4163 (procfs_remove_hw_watchpoint): Likewise.
4165 2011-04-26 Michael Walle <michael@walle.cc>
4167 * remote.c (remote_start_remote): Ack packet after sending the
4170 2011-04-26 Yao Qi <yao@codesourcery.com>
4172 * linux-nat.c: Move common macros to ...
4173 Include linux-ptrace.h.
4174 * common/linux-ptrace.h: ... here. New.
4176 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4178 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4179 !objfile_has_partial_symbols. New comment.
4180 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4181 SYM_READ_PSYMBOLS is not present. Extend the comment.
4182 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4184 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4186 * defs.h (ENUM_BITFIELD): Remove.
4188 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4189 Eli Zaretskii <eliz@gnu.org>
4191 * NEWS: Document the new gdbserver --once option.
4193 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4195 * MAINTAINERS: Update my email address.
4197 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4199 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4200 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4201 function call if __STDC_ISO_10646__ macro is defined.
4202 (intermediate_encoding): New prototype.
4203 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4204 to generate compile time error for unsupported gdb_wchar_t size.
4205 (ENDIAN_SUFFIX): New macro.
4206 (intermediate_encoding): New function.
4208 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4210 * ada-lang.c (struct add_partial_datum): Update the comment for
4211 expand_partial_symbol_name.
4212 (ada_add_partial_symbol_completions): Rename to ...
4213 (ada_expand_partial_symbol_name): ... here, change return type, update
4214 function comment, call symbol_completion_match instead of
4215 symbol_completion_add.
4216 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4217 and ada_expand_partial_symbol_name.
4218 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4220 (dw2_map_symbol_names): Remove.
4221 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4222 * psymtab.c (map_symbol_names_psymtab): Remove.
4223 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4224 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4226 (psym_functions): Unlist map_symbol_names_psymtab.
4227 (map_partial_symbol_names): Rename to ...
4228 (expand_partial_symbol_names): ... here, change the FUN type, call
4229 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4230 * psymtab.h (map_partial_symbol_names): Rename to ...
4231 (expand_partial_symbol_names): ... here, change the FUN type.
4232 * symfile.h (struct quick_symbol_functions): Update the description of
4233 expand_symtabs_matching. Remove map_symbol_names.
4234 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4235 (struct add_name_data): Update the comment for
4236 expand_partial_symbol_name.
4237 (add_partial_symbol_name): Rename to ...
4238 (expand_partial_symbol_name): ... here. Replace
4239 completion_list_add_name call by strncmp.
4240 (default_make_symbol_completion_list_break_on): Use now
4241 expand_partial_symbol_names and expand_partial_symbol_name.
4242 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4244 2011-04-20 Tom Tromey <tromey@redhat.com>
4246 * dwarf2read.c (save_gdb_index_command): Replace format
4247 documentation with a pointer to the manual.
4249 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4251 * regcache.c: Include remote.h.
4252 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4253 (regcache_dump): Handle regcache_dump_remote.
4254 (maintenance_print_remote_registers): New function.
4255 (_initialize_regcache): Install "maint print remote-registers"
4257 * remote.c (map_regcache_remote_table): New function, factored out
4259 (init_remote_state): ... here.
4260 (remote_register_number_and_offset): New.
4261 * remote.h (remote_register_number_and_offset): Declare.
4263 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4265 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4266 null_ptid, assume and allow a NULL address space, instead of
4267 asking the target for the ptid's address space.
4268 * infrun.c (ptid_is_pid): Remove assertion.
4270 2011-04-19 Tom Tromey <tromey@redhat.com>
4272 * windows-tdep.c (windows_xfer_shared_library):
4273 * windows-nat.c (get_module_name, windows_make_so):
4274 * v850-tdep.c (v850_handle_pushm):
4275 * utils.c (null_cleanup, gdb_realpath):
4276 * ui-out.c (get_next_header):
4277 * tracepoint.c (clear_traceframe_info):
4278 * symtab.c (lookup_symtab):
4279 * serial.h (struct serial_ops):
4280 * mipsread.c (read_alphacoff_dynamic_symtab):
4281 * infcmd.c (print_return_value):
4282 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4283 * f-exp.y (parse_number):
4284 * exceptions.c (catch_exceptions):
4285 * dummy-frame.c (dummy_frame_this_id):
4286 * defs.h (struct cleanup):
4287 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4288 * arm-tdep.c (arm_push_dummy_call):
4289 * amd64-tdep.h (amd64_collect_xsave):
4290 * amd64-tdep.c (amd64_collect_xsave):
4291 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4292 * README (typing): Remove duplicate words.
4293 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4294 * infrun.c (siginfo_value_read): Fix typo.
4295 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4296 * top.c (source_line_number): Add comma.
4298 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4300 * thread.c (any_live_thread_of_process): Prioritize threads
4301 that are not executing.
4302 * gdbthread.h (any_live_thread_of_process): Update comment
4303 as per above change.
4305 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4307 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4308 (scan_xcoff_symtab): Likewise.
4310 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4312 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4315 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4316 Pedro Alves <pedro@codesourcery.com>
4318 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4319 variables to simplify code and avoid == operator at end of
4320 line as this is against GNU coding standards.
4322 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4324 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4325 lm_name to name_lm to avoid conflict with lm_name function.
4327 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4329 ARI fixes: Use only lowercase function name for static functions.
4330 * nto-tdep.c (LM_ADDR): Rename to...
4331 (lm_addr): New function name.
4332 (nto_relocate_section_addresses): Adapt to change above.
4333 * solib-sunos.c (LM_ADDR): Rename to...
4334 (lm_addr): New function name.
4335 (LM_NEXT): Rename to...
4336 (lm_next): New function name.
4337 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4338 function name changes above.
4339 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4340 (lm_addr_from_link_map): New function name.
4341 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4342 (has_lm_dynamic_from_link_map): New function name.
4343 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4344 (lm_dynamic_from_link_map): New function name.
4345 (LM_ADDR_CHECK): Rename to...
4346 (lm_addr_check): New function name.
4347 (LM_NEXT): Rename to...
4348 (lm_next): New function name.
4349 (LM_PREV): Rename to...
4350 (lm_prev): New function name.
4351 (LM_NAME): Rename to...
4352 (lm_name): New function name.
4353 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4354 (ignore_first_link_map_entry): New function name.
4355 (svr4_keep_data_in_core): Adapt to function name changes above.
4356 (svr4_current_sos): Likewise.
4357 (enable_break): Likewise.
4358 (svr4_relocate_section_addresses): Likewise.
4360 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4363 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4364 sprintf. Simplify code and avoid loosing memory.
4365 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4366 (call0_frame_cache): Remove && operator from end of line.
4368 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 Fix libraries displacement if they change whether they were prelinked.
4371 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4372 does not match. Comment why.
4374 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4376 * corelow.c: Include wrapper.h.
4377 (core_open): Call now gdb_target_find_new_threads.
4378 * wrapper.c: Include target.h.
4379 (gdb_target_find_new_threads): New.
4380 * wrapper.h (gdb_target_find_new_threads): New declaration.
4382 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4384 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4385 even if !TARGET_HAS_EXECUTION.
4387 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4389 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4390 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4391 bfd_get_synthetic_symtab.
4392 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4393 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4394 parameter parent, remove the call to add_separate_debug_objfile.
4395 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4396 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4397 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4398 parent, new comment for it, call add_separate_debug_objfile for it.
4399 (symbol_file_add_separate): Pass objfile as the parameter parent,
4400 remove the call to add_separate_debug_objfile.
4401 (symbol_file_add_from_bfd): New parameter parent, pass it.
4402 (symbol_file_add): Pass NULL to the new parameter parent.
4403 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4405 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4407 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4410 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4412 Fix Python access to inlined frames.
4413 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4414 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4416 2011-04-15 Tom Tromey <tromey@redhat.com>
4418 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4420 2011-04-15 Gary Benson <gbenson@redhat.com>
4422 * MAINTAINERS: Add myself to write-after-approval section.
4424 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4426 * remote-sim.c (sim_command_completer): New function.
4427 (_initialize_remote_sim): Set completer to sim_command_completer.
4429 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4431 * breakpoint.c (print_exception_catchpoint): Rename to ...
4432 (print_it_exception_catchpoint): ... this.
4433 (gnu_v3_exception_catchpoint_ops): Update with new name
4434 for print_it_exception_catchpoint.
4436 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4438 * MAINTAINERS: Add myself for write after approval privileges.
4440 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4442 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4444 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4446 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4448 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4450 * breakpoint.c (save_breakpoints): Verify whether
4451 breakpoint_ops.print_recreate is defined before calling it.
4453 2011-04-11 Gary Benson <gbenson@redhat.com>
4455 Fix failure with --enable-maintainer-mode.
4456 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4458 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4461 * symtab.c (search_symbols): Reorder the KIND description in the
4462 function comment. Remove the unused 4th element of types, types2,
4463 types3 and types4. New gdb_assert on KIND.
4464 (symtab_symbol_info): Remove the unused 4th element of classnames.
4465 New gdb_assert on KIND.
4466 * symtab.h (enum search_domain): New warning in the enum comment.
4467 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4470 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4472 Fix crash of gdb save-index on a STABS file.
4473 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4476 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4478 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4479 * dwarf2read.c: Include ctype.h.
4480 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4482 (dwarf2_add_field): Fix new_field->accessibility by calling
4483 dwarf2_default_access_attribute. Restructure setting accessibility
4485 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4486 is_private and is_protected by calling
4487 dwarf2_default_access_attribute.
4489 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4491 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4492 to the initialization.
4494 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4496 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4499 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4501 Remove support for old Cygwin 1.5 versions.
4502 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4503 function on old Cygwin version.
4504 * windows-nat.c: Remove cygwin version check and always define
4505 __USEWIDE for Cygwin compilation.
4507 2011-04-07 Yao Qi <yao@codesourcery.com>
4509 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4511 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4512 (arm_copy_svc): Remove parameters INSN and TO.
4513 (decode_svc_copro): Update caller.
4514 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4515 from function pointer `copy_svc_os'.
4517 2011-04-07 Yao Qi <yao@codesourcery.com>
4519 * arm-tdep.c (cleanup_branch): Set a correct return address in
4520 LR for ARM and Thumb.
4522 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4525 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4526 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4527 in the function comment, a new note on values compatibility.
4528 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4529 * symtab.h (SYMBOL_HASH_NEXT): New.
4531 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4533 * ppc-linux-nat.c (check_condition): Add len output parameter.
4534 Set it based on the memory region referenced in the condition
4535 expression. Update all callers.
4537 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4539 Fix crash regression on systems featuring .gdb_index.
4540 * objfiles.c (free_objfile): Move the
4541 forget_cached_source_info_for_objfile call earlier. Comment it.
4542 Extend the comment for objfile_free_data.
4544 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4546 Fix regression of displaying the debug format.
4547 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4550 2011-04-04 Tom Tromey <tromey@redhat.com>
4552 * cli/cli-interp.c (struct captured_execute_command_args):
4554 (do_captured_execute_command): Remove.
4555 (safe_execute_command): Use TRY_CATCH.
4556 * cli/cli-script.c (struct wrapped_read_command_file_args):
4558 (wrapped_read_command_file): Remove.
4559 (script_from_file): Use TRY_CATCH.
4560 * exceptions.c (catch_exception): Remove.
4561 * exceptions.h (catch_exception): Remove.
4562 (deprecated_throw_reason): Update comment.
4563 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4564 argument to 'context'.
4565 (mi_execute_command): Use TRY_CATCH.
4566 * remote.c (struct start_remote_args): Remove.
4567 (remote_start_remote): Update; change arguments.
4568 (remote_open_1): Use TRY_CATCH.
4570 2011-04-04 Tom Tromey <tromey@redhat.com>
4572 * tracepoint.c (scope_info): Update.
4573 * symtab.c (decode_line_spec): Update.
4574 * python/python.c (gdbpy_decode_line): Update.
4575 * linespec.h (decode_line_1): Update.
4576 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4577 (decode_compound, find_method, symtab_from_filename)
4578 (decode_variable): Likewise.
4579 * cli/cli-cmds.c (edit_command): Update.
4580 (list_command): Update.
4581 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4583 (create_breakpoint): Update.
4584 (until_break_command): Update.
4585 (addr_string_to_sals): Update.
4586 (decode_line_spec_1): Update.
4588 2011-04-04 Tom Tromey <tromey@redhat.com>
4590 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4591 (do_captured_parse_breakpoint): Remove.
4592 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4593 Use TRY_CATCH directly.
4595 2011-04-04 Tom Tromey <tromey@redhat.com>
4597 * symtab.h (free_symtab): Remove.
4598 (forget_cached_source_info_for_objfile): Declare.
4599 * symmisc.c (free_symtab): Remove.
4600 * source.c (forget_cached_source_info_for_objfile): New function.
4601 (forget_cached_source_info): Use it.
4602 * objfiles.c (free_objfile): Simplify check before calling
4603 clear_current_source_symtab_and_line. Call
4604 forget_cached_source_info_for_objfile.
4606 2011-04-04 Tom Tromey <tromey@redhat.com>
4608 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4609 (new_symtab): Don't set `free_code' on symtab.
4610 (new_linetable): Properly handle size==0.
4611 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4612 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4614 * jv-lang.c (struct jv_per_objfile_data): New.
4615 (jv_per_objfile_free): Free the data.
4616 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4617 (get_java_class_symtab): Set the `dict' field on the
4618 jv_per_objfile_data.
4619 (free_class_block): Remove.
4620 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4623 2011-04-04 Tom Tromey <tromey@redhat.com>
4625 * symfile.c (reread_symbols): Update.
4626 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4628 * objfiles.c (allocate_objfile): Update.
4629 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4631 * cp-namespace.c (lookup_symbol_file): Don't call
4632 lookup_possible_namespace_symbol.
4633 (initialize_namespace_symtab, get_possible_namespace_block)
4634 (free_namespace_block, cp_check_possible_namespace_symbols)
4635 (check_possible_namespace_symbols_loop)
4636 (check_one_possible_namespace_symbol)
4637 (lookup_possible_namespace_symbol): Remove.
4638 (maintenance_cplus_namespace): Replace with notice.
4639 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4641 2011-04-04 Tom Tromey <tromey@redhat.com>
4643 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4644 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4645 * symmisc.c (free_symtab): Don't free debugformat.
4646 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4647 (record_debugformat, record_producer): Document.
4648 * buildsym.c (end_symtab): Don't save debugformat and producer
4650 (end_symtab): Don't free debugformat and producer fields.
4651 (record_debugformat): Don't call xstrdup.
4652 (record_producer): Likewise.
4654 2011-04-04 Tom Tromey <tromey@redhat.com>
4656 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4657 (source_line_charpos, source_charpos_line): Remove.
4659 2011-04-04 Tom Tromey <tromey@redhat.com>
4661 * symtab.h (domain_enum): Split in two...
4662 (enum search_domain): New.
4663 (search_symbols): Update.
4664 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4665 redundant declarations.
4666 (search_symbols): Change 'kind' argument to search_domain.
4668 (print_symbol_info): Likewise.
4669 (symtab_symbol_info): Likewise.
4670 * symfile.h (struct quick_symbol_functions)
4671 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4672 <expand_symtabs_matching>: Likewise.
4673 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4674 (expand_symtabs_matching_via_partial): Update.
4675 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4676 (dw2_expand_symtabs_for_function): Update.
4677 * block.h: Moved anonymous enum...
4678 * defs.h (enum block_enum): ... here. Now named.
4680 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4682 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4683 * version.in: Bump version to 7.3.50.20110403-cvs.
4685 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4687 * NEWS: Create a new section for the next release branch.
4688 Rename the section of the current branch, now that it has
4691 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4693 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4694 for "fpscr" in target description.
4696 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4698 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4699 initialize it. Delay HASH initialization. Strip the part after open
4700 parenthesis for languages with qualifiers. Call do_cleanups.
4702 2011-04-01 Tom Tromey <tromey@redhat.com>
4704 * utils.c (report_command_stats): Don't print `-' for negative
4707 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4709 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4710 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4713 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4715 * breakpoint.h (bpdisp_text): Add declaration.
4716 * breakpoint.c (bpdisp_text): Make non-static.
4717 * ada-lang.c: #include "mi/mi-common.h".
4718 (print_it_exception): Rewrite to improve GDB/MI output.
4720 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4722 * arm-tdep.h (struct address_space): Add forward declaration.
4724 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4726 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4727 * arm-tdep.c (arm_override_mode): New global.
4728 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4729 execution mode heuristics.
4730 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4731 second single-step breakpoint if needed, using
4732 arm_insert_single_step_breakpoint.
4733 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4734 ARM execution mode, do not call thumb_get_next_pc_raw.
4735 (arm_get_next_pc): Encode execution mode in return value. Call
4736 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4737 (arm_insert_single_step_breakpoint): New function.
4738 (arm_software_single_step): Call it.
4739 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4740 argument to return execution mode of sigreturn target.
4741 (arm_linux_syscall_next_pc): Use it.
4742 (arm_linux_copy_svc): Update call.
4743 (arm_linux_software_single_step): Call
4744 arm_insert_single_step_breakpoint.
4746 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4748 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4751 2011-03-31 Tom Tromey <tromey@redhat.com>
4753 * varobj.c (update_dynamic_varobj_children): Properly handle
4754 errors from iterator.
4756 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4758 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4759 struct linkage name twice.
4761 2011-03-31 Tom Tromey <tromey@redhat.com>
4763 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4764 missing ">" to message.
4766 2011-03-31 Tom Tromey <tromey@redhat.com>
4768 * varobj.c (instantiate_pretty_printer): Remove duplicate
4771 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4773 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4774 if neither saved value nor register available (e.g. signal frame).
4776 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4778 * macroexp.c (expand): Avoid uninitialized variable
4781 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4783 * breakpoint.c (break_range_command): Fix typo in comment.
4785 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4786 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4788 Implement support for PowerPC BookE ranged breakpoints.
4789 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4790 * breakpoint.h (struct bp_target_info) <length>: New member
4792 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4793 instead of struct breakpoint as argument, and also add ASPACE
4794 and BP_ADDR arguments. Update all callers.
4795 (struct breakpoint_ops) <print_one_detail>: New method.
4796 (struct breakpoint) <addr_string_range_end>: New member variable.
4797 * breakpoint.c (breakpoint_location_address_match): Add function
4799 (insert_bp_location): Set bl->target_info.length.
4800 (breakpoint_here_p): Call breakpoint_location_address_match.
4801 (moribund_breakpoint_here_p): Likewise.
4802 (regular_breakpoint_inserted_here_p): Likewise.
4803 (breakpoint_thread_match): Likewise.
4804 (bpstat_stop_status): Likewise.
4805 (bpstat_check_location): Move call to
4806 breakpoint_ops.breakpoint_hit to the top.
4807 (print_one_breakpoint_location): Call
4808 breakpoint_ops.print_one_detail if available.
4809 (breakpoint_address_match_range): New function.
4810 (breakpoint_location_address_match): Likewise.
4811 (breakpoint_locations_match): Compare the length field of the
4813 (hw_breakpoint_used_count): Count resources used by all locations
4814 in a breakpoint, and use breakpoint_ops.resources_needed if
4816 (breakpoint_hit_ranged_breakpoint): New function.
4817 (resources_needed_ranged_breakpoint): Likewise.
4818 (print_it_ranged_breakpoint): Likewise.
4819 (print_one_ranged_breakpoint): Likewise.
4820 (print_one_detail_ranged_breakpoint): Likewise.
4821 (print_mention_ranged_breakpoint): Likewise.
4822 (print_recreate_ranged_breakpoint): Likewise.
4823 (ranged_breakpoint_ops): New structure.
4824 (find_breakpoint_range_end): New function.
4825 (break_range_command): Likewise.
4826 (delete_breakpoint): Free addr_string_range_end.
4827 (update_breakpoint_locations): Add SALS_END argument. Update
4828 all callers. Calculate breakpoint length if a non-zero SALS_END
4829 is given. Call breakpoint_locations_match instead of
4830 breakpoint_address_match.
4831 (reset_breakpoint): Find SaL of the end of the range if B is a
4833 (_initialize_breakpoint): Register break-range command.
4834 * defs.h (print_core_address): Add function prototype.
4835 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4837 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4838 (ppc_linux_remove_hw_breakpoint): Likewise.
4839 (_initialize_ppc_linux_nat): Initialize
4840 to_ranged_break_num_registers.
4841 * target.c (update_current_target): Add comment about
4842 to_ranged_break_num_registers.
4843 (target_ranged_break_num_registers): New function.
4844 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4846 (target_ranged_break_num_registers): Add function prototype.
4847 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4848 * utils.c (print_core_address): ... here.
4850 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4852 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4853 variable compiler warning.
4855 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4857 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4859 (re_set_breakpoint): ... to here ...
4860 (addr_string_to_sals): ... and here.
4862 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4864 * Makefile.in (SFILES): Add missing C sources.
4865 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4866 Add missing headers.
4868 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4870 * .gitignore: New file.
4872 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4874 * NEWS: Mention new cfi device simulation.
4876 2011-03-29 Tom Tromey <tromey@redhat.com>
4878 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4879 otherwise anonymous types.
4880 (dwarf2_name): Likewise.
4881 * valops.c (value_struct_elt_for_reference): Refine artificial
4882 type logic. Call error if j==-1.
4884 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4886 Fix false GCC warning.
4887 * infcall.c (find_function_addr): Initialize funaddr.
4889 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4891 Fix mingw compilation with --enable-targets=all.
4892 * remote-mips.c (gdb_usleep.h): Include header.
4893 (mips_enter_debug): Use gdb_usleep instead of sleep.
4895 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4897 Support resolution of STT_GNU_IFUNC via breakpoints.
4898 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4899 bp_gnu_ifunc_resolver_return.
4900 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4901 the loop. Support bp_gnu_ifunc_resolver and
4902 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4903 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4905 (bptype_string, print_one_breakpoint_location): Support
4906 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4907 (user_settable_breakpoint): Return true also for
4908 bp_gnu_ifunc_resolver.
4909 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4910 bp_gnu_ifunc_resolver_return.
4911 (set_breakpoint_location_function): New parameter explicit_loc,
4912 describe it. Call find_pc_partial_function_gnu_ifunc with new
4913 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4914 EXPLICIT_LOC is not set.
4915 (set_raw_breakpoint): Set EXPLICIT_LOC for
4916 set_breakpoint_location_function.
4917 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4918 set_breakpoint_location_function.
4919 (mention): Support bp_gnu_ifunc_resolver and
4920 bp_gnu_ifunc_resolver_return.
4921 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4922 set_breakpoint_location_function.
4923 (update_breakpoint_locations): Remove static.
4924 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4925 bp_gnu_ifunc_resolver_return.
4926 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4927 bp_gnu_ifunc_resolver_return.
4928 (update_breakpoint_locations): New declaration.
4929 * elfread.c: Include gdbthread.h and regcache.h.
4930 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4932 (elf_gnu_ifunc_fns): Install them.
4933 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4934 (stub_gnu_ifunc_resolver_return_stop): New functions.
4935 (stub_gnu_ifunc_fns): Install them.
4936 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4937 and gnu_ifunc_resolver_return_stop.
4938 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4940 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4942 STT_GNU_IFUNC reader implementation.
4943 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4944 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4945 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4946 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4947 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4948 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4949 (elf_gnu_ifunc_resolve_addr): New.
4950 (elf_symfile_read): Call elf_rel_plt_read.
4951 (elf_gnu_ifunc_fns): New.
4952 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4953 Install elf_gnu_ifunc_fns.
4954 * infcall.c (find_function_return_type): New function.
4955 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4956 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4957 (stub_gnu_ifunc_resolve_name): New functions.
4958 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4959 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4960 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4962 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4964 Code cleanup for later STT_GNU_IFUNC support.
4965 * infcall.c (find_function_addr): Remove variable code, use explicit
4966 dereferences for it. Move VALUE_TYPE initialization later.
4968 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4970 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4971 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4972 (clear_pc_function_cache): Clear it.
4973 (find_pc_partial_function): Rename to ...
4974 (find_pc_partial_function_gnu_ifunc): ... this function. New
4975 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4976 (find_pc_partial_function): New wrapper for this function.
4977 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4979 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4981 GDB internal type support for STT_GNU_IFUNC.
4982 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4983 (elf_symtab_read): Set mst_text_gnu_ifunc for
4984 BSF_GNU_INDIRECT_FUNCTION.
4985 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4986 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4987 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4988 nodebug_got_plt_symbol.
4989 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4990 (TYPE_GNU_IFUNC): New.
4991 (struct main_type): New field flag_gnu_ifunc.
4992 (struct builtin_type): New field builtin_func_func.
4993 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4994 nodebug_got_plt_symbol.
4995 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4996 (in_gnu_ifunc_stub): New.
4997 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4999 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5000 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5001 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5003 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5004 * symtab.c (search_symbols): Likewise.
5005 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5006 and mst_slot_got_plt.
5007 (in_gnu_ifunc_stub): New declaration.
5009 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5011 Support a ring of related breakpoints.
5012 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5013 other functions, add gdb_assert.
5014 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5015 watchpoint_del_at_next_stop.
5016 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5017 (bpstat_stop_status): Handle ring in related_breakpoint.
5018 (set_raw_breakpoint_without_location): Initialize ring in
5020 (delete_breakpoint): Handle ring in related_breakpoint, use
5021 watchpoint_del_at_next_stop.
5022 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5024 2011-03-28 Tom Tromey <tromey@redhat.com>
5027 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5028 with `language_minimal'.
5030 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5032 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5033 instead of checking for STT_ARM_TFUNC symbol type.
5035 2011-03-25 Tom Tromey <tromey@redhat.com>
5037 * linespec.c (symbol_found): Restore line-based result for
5038 non-LOC_LABEL symbols.
5040 2011-03-25 Kai Tietz <ktietz@redhat.com>
5042 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5043 instead of strcmp for comparison.
5044 (tui_source_is_displayed): Likewise.
5045 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5047 2011-03-24 Mark Wielaard <mjw@redhat.com>
5049 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5051 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5052 (find_partial_die_in_comp_unit): Likewise in comment.
5053 (read_attribute_value): Likewise.
5054 (lookup_die_type): Likewise.
5055 (dwarf_form_name): Likewise.
5056 (dump_die_shallow): Likewise.
5057 (follow_die_ref_or_sig): Likewise.
5059 2011-03-24 Tom Tromey <tromey@redhat.com>
5061 PR breakpoints/11816:
5062 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5063 (decode_compound): Update.
5064 (find_function_symbol): New function.
5065 (decode_dollar): Update.
5066 (decode_label): Add 'function_symbol' parameter. Handle
5067 function-relative labels.
5068 (decode_variable): Update.
5069 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5070 not its line. Set `special_display' and canonical name for
5073 2011-03-24 Tom Tromey <tromey@redhat.com>
5075 * linespec.h (struct linespec_result) <special_display>: New
5077 * breakpoint.h (struct breakpoint) <display_canonical>: New
5079 * breakpoint.c (print_breakpoint_location): Respect
5081 (create_breakpoint_sal): Add 'display_canonical' parameter.
5082 (create_breakpoints_sal): Update.
5083 (create_breakpoint): Update.
5085 2011-03-24 Tom Tromey <tromey@redhat.com>
5087 * symtab.c (decode_line_spec): Update.
5088 * linespec.c (build_canonical_line_spec): Change type of
5090 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5091 (find_method, decode_all_digits, decode_dollar, decode_label)
5092 (symbol_found): Likewise.
5093 (init_linespec_result): New function.
5094 * breakpoint.c (struct captured_parse_breakpoint_args)
5095 <canonical_p>: New field, replaces addr_string_p.
5096 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5098 (parse_breakpoint_sals): Likewise.
5099 (do_captured_parse_breakpoint): Update.
5100 (create_breakpoint): Use struct linespec_result.
5101 (until_break_command): Update.
5102 (breakpoint_re_set_one): Update.
5103 (decode_line_spec_1): Update.
5104 * linespec.h (struct linespec_result): New.
5105 (init_linespec_result): Declare.
5107 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5109 * regcache.c (regcache_raw_read): If the target didn't supply a
5110 given raw register, mark it as unavailable.
5112 2011-03-23 Kai Tietz <ktietz@redhat.com>
5114 * breakpoint.c (clear_command): Use filename_cmp
5115 instead of strcmp for comparison.
5116 * buildsym.c (watch_main_source_file_lossage): Likewise.
5117 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5118 checking just for slash.
5119 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5120 strrchr and filename_cmp instead of strcmp for filenames.
5121 (add_old_header_file): Use filename_cmp
5122 instead of strcmp for comparison.
5123 * exec.c (exec_set_section_address): Likewise.
5124 * macrotab.c (macro_lookup_inclusion): Likewise.
5125 (macro_lookup_inclusion): Likewise.
5126 * elfread.c (_initialize_elfread): Likewise.
5127 (elfstab_offset_sections): Likewise.
5128 (elfstab_offset_sections): Use lbasename instead of
5130 * mdebugread.c (parse_partial_symbols): Likewise.
5131 (arse_partial_symbols): Use filename_(n)cmp instead of
5132 str(n)cmp for comparison.
5133 * minsyms.c (lookup_minimal_symbol): Likewise.
5134 * psymtab.c (read_psymtabs_with_filename): Likewise.
5135 * solib.c (solib_read_symbols): Likewise.
5136 (reload_shared_libraries_1): Likewise.
5137 * symmisc.c (maintenance_print_symbols): Likewise.
5138 * symfile.c (separate_debug_file_exists): Likewise.
5139 (reread_symbols): Likewise.
5140 (find_separate_debug_file_by_debuglink): Likewise.
5141 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5142 * source.c (add_path): Likewise.
5143 * symtab.c (filename_seen): Likewise.
5144 (file_matches): Likewise.
5145 (print_symbol_info): Likewise.
5146 (maybe_add_partial_symtab_filename): Likewise.
5147 (make_source_files_completion_list): Likewise.
5148 * xml-syscall.c (init_sysinfo): Likewise.
5149 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5150 IS_DIR_SEPARATOR for checking for trailing path separator.
5152 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5154 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5155 label abort_expression.
5156 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5157 DWARF_VALUE_OPTIMIZED_OUT.
5159 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5162 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5163 to linkage_name. Invert its value. Update the function comment.
5164 (c_type_print_varspec_suffix): Invert it at the caller.
5165 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5167 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5169 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5170 errors when reading the `stop_pc'.
5171 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5174 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5176 * NEWS: Document gdb.Write stream keyword.
5178 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5181 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5182 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5183 (dwarf2_add_field): Fix new_field->accessibility for
5184 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5186 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5190 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5191 other error classes. Do not print stack trace.
5193 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5195 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5196 (dwarf2_add_field): Fix new_field->accessibility for
5197 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5199 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5201 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5202 encountering a load via a non-SP register.
5204 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5206 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5207 field in returned unwinder.
5209 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5211 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5213 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5215 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5218 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5220 * frame.c (frame_unwind_register): Throw an error if unwinding the
5222 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5223 an unwind stop reason.
5224 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5225 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5226 UNWIND_UNAVAILABLE>: New.
5227 * inline-frame.c (inline_frame_unwind): Install
5228 default_frame_unwind_stop_reason.
5229 * frame-unwind.c: Include "exceptions.h".
5230 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5231 (default_frame_unwind_stop_reason): New.
5232 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5233 (default_frame_unwind_stop_reason): Declare.
5234 (struct frame_unwind) <stop_reason>: New function pointer.
5236 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5237 * dwarf2-frame.c: Include exceptions.h.
5238 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5239 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5240 computing the CFA. If such an error was thrown, set
5241 unavailable_retaddr.
5242 (dwarf2_frame_unwind_stop_reason): New.
5243 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5245 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5246 (dwarf2_signal_frame_unwind): Ditto.
5248 * amd64-tdep.c: Include "exceptions.h".
5249 (struct amd64_frame_cache): New field "base_p".
5250 (amd64_init_frame_cache): Clear it.
5251 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5252 Avoid reading registers with functions that throw if the register
5253 is not necessary to compute the frame base.
5254 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5255 swallowing NOT_AVAILABLE_ERROR.
5256 (amd64_frame_unwind_stop_reason): New.
5257 (amd64_frame_this_id): Don't build a frame id if the frame base
5259 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5260 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5261 base_p if the frame base was computable.
5262 (amd64_sigtramp_frame_unwind_stop_reason): New.
5263 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5264 frame base was unavailable.
5265 (amd64_sigtramp_frame_unwind): Install
5266 amd64_sigtramp_frame_unwind_stop_reason.
5267 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5268 base_p if the frame base was computable.
5269 (amd64_epilogue_frame_unwind_stop_reason): New.
5270 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5271 frame base was unavailable.
5272 (amd64_epilogue_frame_unwind): Install
5273 amd64_epilogue_frame_unwind_stop_reason.
5274 * i386-tdep.c: Include "exceptions.h".
5275 (struct i386_frame_cache): New field "base_p".
5276 (i386_init_frame_cache): Clear it.
5277 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5278 Avoid reading registers with functions that throw if the register
5279 is not necessary to compute the frame base.
5280 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5281 swallowing NOT_AVAILABLE_ERROR.
5282 (i386_frame_unwind_stop_reason): New.
5283 (i386_frame_this_id): Don't build a frame id if the frame base was
5285 (i386_frame_prev_register): Handle unavailable SP.
5286 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5287 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5288 base_p if the frame base was computable.
5289 (i386_epilogue_frame_unwind_stop_reason): New.
5290 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5291 base was unavailable.
5292 (i386_epilogue_frame_unwind): Install
5293 i386_epilogue_frame_unwind_stop_reason.
5294 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5295 base_p if the frame base was computable.
5296 (i386_sigtramp_frame_unwind_stop_reason): New.
5297 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5298 base was unavailable.
5299 (i386_sigtramp_frame_unwind): Install
5300 i386_sigtramp_frame_unwind_stop_reason.
5301 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5302 type's size, not the register's.
5303 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5305 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5306 default_frame_unwind_stop_reason.
5307 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5308 (alpha_heuristic_frame_unwind): Ditto.
5309 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5310 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5311 * avr-tdep.c (avr_frame_unwind): Ditto.
5312 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5314 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5315 * frv-tdep.c (frv_frame_unwind): Ditto.
5316 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5317 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5318 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5319 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5320 (hppa_stub_frame_unwind): Ditto.
5321 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5322 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5323 (ia64_libunwind_frame_unwind)
5324 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5325 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5326 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5327 * m32c-tdep.c (m32c_unwind): Ditto.
5328 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5329 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5330 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5331 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5332 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5333 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5334 * mep-tdep.c (mep_frame_unwind): Ditto.
5335 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5336 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5337 (mips_stub_frame_unwind): Ditto.
5338 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5339 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5340 * mt-tdep.c (mt_frame_unwind): Ditto.
5341 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5342 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5343 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5344 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5345 (s390_sigtramp_frame_unwind): Ditto.
5346 * score-tdep.c (score_prologue_unwind): Ditto.
5347 * sh-tdep.c (sh_frame_unwind): Ditto.
5348 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5349 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5350 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5351 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5352 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5353 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5354 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5355 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5356 (sparc64obsd_trapframe_unwind): Ditto.
5357 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5358 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5359 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5360 * v850-tdep.c (v850_frame_unwind): Ditto.
5361 * vax-tdep.c (vax_frame_unwind): Ditto.
5362 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5363 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5364 * xtensa-tdep.c (xtensa_unwind): Ditto.
5366 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5368 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5369 there's always a frame. Use get_frame_pc_if_available instead of
5370 get_frame_pc, and if there's no PC available, don't look up a
5373 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5375 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5378 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5380 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5383 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5385 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5386 * frame.c (frame_unwind_caller_pc_if_available): New.
5387 * stack.c (frame_info): Handle unavailable PC.
5389 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5391 * frame.c (frame_unwind_pc): Rename to ...
5392 (frame_unwind_pc_if_available): ... this. New `pc' output
5393 parameter. Change return type to int. Gracefully handle
5394 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5395 happened, or 1 otherwise.
5396 (frame_unwind_pc): Reimplement on top of
5397 frame_unwind_pc_if_available.
5398 (get_frame_func): Rename to ...
5399 (get_frame_func_if_available): New `pc' output parameter. Change
5400 return type to int. Gracefully handle the PC not being available.
5401 (get_frame_func): Reimplement on top of
5402 get_frame_func_if_available.
5403 (select_frame): Handle the PC being unavailable.
5404 (get_prev_frame): Handle the PC being unavailable.
5405 (get_frame_pc_if_available): New.
5406 (get_frame_address_in_block_if_available): New.
5407 (find_frame_sal): Handle the frame PC not being available.
5408 * frame.h (get_frame_pc_if_available): Declare.
5409 (get_frame_address_in_block_if_available): Declare.
5410 (get_frame_func_if_available): Declare.
5411 * stack.c (print_frame_info): Handle the PC being unavailable.
5412 (find_frame_funname): Ditto.
5413 (print_frame): Handle the PC being unavailable.
5414 (get_frame_language): Ditto.
5415 * blockframe.c (get_frame_block): Ditto.
5416 * macroscope.c (default_macro_scope): Ditto.
5417 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5419 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5421 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5422 NOT_AVAILABLE_ERROR when evaluating the location expression.
5424 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5426 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5427 returning that the register piece is unavailable/optimized out.
5428 (write_pieced_value): Handle get_frame_register_bytes returning
5429 that the register piece is unavailable/optimized out when doing a
5430 read-modify write of a bitfield.
5431 * findvar.c (value_from_register): Handle get_frame_register_bytes
5432 returning that the register piece is unavailable/optimized out.
5433 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5434 and `unavailablep'. Throw error on bad debug info. Use
5435 frame_register instead of frame_register_read, to fill in the new
5437 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5439 * valops.c: (value_assign): Adjust, and handle
5440 get_frame_register_bytes failing.
5441 * spu-tdep.c: Include exceptions.h.
5442 (spu_software_single_step): Adjust, and handle
5443 get_frame_register_bytes failing.
5444 (spu_get_longjmp_target): Ditto.
5445 * gdbarch.sh (register_to_value): Change to return int. New
5446 parameters `optimizedp' and `unavailablep'.
5447 * gdbarch.h, gdbarch.c: Regenerate.
5448 * i386-tdep.c (i386_register_to_value): Adjust to new
5449 gdbarch_register_to_value interface.
5450 * i387-tdep.c (i387_register_to_value): Ditto.
5451 * i387-tdep.h (i387_register_to_value): Ditto.
5452 * alpha-tdep.c (alpha_register_to_value): Ditto.
5453 * ia64-tdep.c (ia64_register_to_value): Ditto.
5454 * m68k-tdep.c (m68k_register_to_value): Ditto.
5455 * mips-tdep.c (mips_register_to_value): Ditto.
5456 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5458 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5460 * findvar.c (value_of_register): Mark the value as unavailable, if
5461 the register is unavailable.
5462 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5463 (frame_register): New `unavailablep' parameter.
5464 (frame_register_read): Update comment.
5465 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5466 Set it if the register is unavailable. If the register is
5467 unavailable, clear the output buffer.
5468 (frame_register): New `unavailablep' parameter. Pass it down.
5469 (frame_unwind_register): Adjust.
5470 (put_frame_register): Adjust.
5471 (frame_register_read): Adjust. Also return false if the register
5473 (frame_register_unwind_location): Adjust.
5474 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5475 is unavailable, mark the value accordingly.
5476 * stack.c (frame_info): Handle unavailable registers.
5478 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5480 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5481 simplify, using regcache_cooked_read.
5483 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5485 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5486 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5487 (regcache_raw_read_unsigned, regcache_raw_read_part)
5488 (regcache_cooked_read, regcache_cooked_read_signed)
5489 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5490 (regcache_cooked_read_ftype): Change return to enum
5492 * regcache.c: Include exceptions.h
5493 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5494 (do_cooked_read): Change return to enum register_status. Always
5495 forward to regcache_cooked_read.
5496 (regcache_raw_read): Change return to enum register_status. If
5497 the register is not REG_VALID, memset the buffer. Return the
5499 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5500 return the register's status.
5501 (regcache_raw_read_unsigned): Ditto.
5502 (regcache_cooked_read): Change return to enum register_status.
5503 Assert that with read-only regcaches, the register's status must
5504 be known. If the regcache is read-only, and the register is not
5505 REG_VALID, memset the buffer. Return the register's status.
5506 (regcache_cooked_read_signed): Change return to enum
5507 register_status. Handle non-REG_VALID registers and return the
5509 (regcache_cooked_read_unsigned): Change return to enum
5510 register_status. Handle non-REG_VALID registers and return the
5512 (regcache_xfer_part, regcache_raw_read_part)
5513 (regcache_cooked_read_part): Change return to enum
5514 register_status. Return the register's status.
5515 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5517 (regcache_dump): Handle unavailable cooked registers.
5518 * frame.c (do_frame_register_read): Adjust interface to match
5519 regcache_cooked_read_ftype.
5520 * gdbarch.sh (pseudo_register_read): Change return to enum
5522 * gdbarch.h, gdbarch.c: Regenerate.
5524 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5526 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5527 register_status. If reading a raw register indicates the raw
5528 register is not valid, return the raw register's status,
5529 otherwise, return REG_VALID.
5530 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5531 register_status. Handle non-REG_VALID raw registers and return
5532 the register's status.
5533 * arm-tdep.c (arm_neon_quad_read)
5534 (arm_pseudo_read): Change return to enum register_status. Handle
5535 non-REG_VALID raw registers and return the register's status.
5536 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5537 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5538 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5539 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5540 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5542 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5543 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5544 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5545 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5546 (m32c_pseudo_register_read): Change return to enum
5547 register_status. Adjust.
5548 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5549 enum register_status. Return the register's status.
5550 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5551 register_status. Return the register's status.
5552 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5553 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5554 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5555 * rs6000-tdep.c (move_ev_register_func): New typedef.
5556 (e500_move_ev_register): Use it. Change return to enum
5557 register_status. Return the register's status.
5558 (do_regcache_raw_read): New function.
5559 (do_regcache_raw_write): New function.
5560 (e500_pseudo_register_read): Change return to enum
5561 register_status. Return the register's status. Use
5562 do_regcache_raw_read.
5563 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5564 (dfp_pseudo_register_read): Change return to enum register_status.
5565 Return the register's status.
5566 (vsx_pseudo_register_read): Ditto.
5567 (efpr_pseudo_register_read): Ditto.
5568 (rs6000_pseudo_register_read): Ditto.
5569 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5570 register_status. Return the register's status.
5571 * sh64-tdep.c (pseudo_register_read_portions): New function.
5572 (sh64_pseudo_register_read): Change return to enum
5573 register_status. Use pseudo_register_read_portions. Return the
5575 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5576 register_status. Return the register's status.
5577 * sh-tdep.c (pseudo_register_read_portions): New function.
5578 (sh_pseudo_register_read): Change return to enum register_status.
5579 Use pseudo_register_read_portions. Return the register's status.
5580 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5581 enum register_status. Return the register's status.
5582 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5583 * spu-tdep.c (spu_pseudo_register_read_spu)
5584 (spu_pseudo_register_read): Ditto.
5585 * xtensa-tdep.c (xtensa_register_read_masked)
5586 (xtensa_pseudo_register_read): Ditto.
5587 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5589 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5591 * python/py-value.c (valpy_getitem): Fix formatting of error function
5594 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5596 ARI fixes: Add missing internationalization markups throughout
5598 * darwin-nat-info.c: Ditto.
5601 * mi/mi-main.c: Ditto.
5603 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5605 ARI fixes: Add missing internationalization markups throughout
5608 * cp-name-parser.y: Ditto.
5611 * objc-exp.y: Ditto.
5614 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5616 ARI fixes: Messages should have no trailing new lines.
5617 * darwin-nat.c (mach_check_error): Remove trailing new line from
5618 warning function call message.
5619 * record.c (bfdcore_read): Idem for error call.
5621 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5623 * common/signals.c (target_signal_from_host): Add _ markup to error
5624 function call message.
5625 (target_signal_to_host): Add _ markup and remove trailing new line
5626 from warning call message.
5627 (target_signal_from_command): Add _ markup to error function call
5630 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5634 * python/python.c (gdbpy_write): Accept a stream argument and
5635 operate to the appropriate stream.
5636 (gdbpy_flush): Likewise.
5637 (_initialize_python): Add stream constants.
5638 (finish_python_initialization): Add GdbOutputErrorFile class.
5640 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5642 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5644 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5646 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5647 to store_signed_integer. Add debug message when relocating CALL
5648 instructions. Fix formatting of debug message.
5649 * i386-tdep.c (i386_relocate_instruction): Ditto.
5651 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5653 * target.h (struct target_ops): Remove to_lookup_symbol field.
5654 (target_lookup_symbol): Delete macro.
5655 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5656 (update_current_target, setup_target_debug): Remove handling
5657 of to_lookup_symbol target_ops field.
5658 * ada-tasks.c (get_known_tasks_addr): Remove use of
5659 target_lookup_symbol.
5660 * coffread.c (coff_symtab_read): Likewise.
5661 * dbxread.c (read_dbx_symtab): Ditto.
5663 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5666 * configure.ac: Add getthrds declaration check.
5667 * configure, config.in: Regenerate.
5668 * aix-thread.c (getthrds): Declare only if not already declared
5669 in procinfo.h. More declaration out of get_signaled_thread to
5672 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5674 * python/py-symtab.c: Populate symtab_object_methods,
5676 (stpy_is_valid): New function.
5677 (salpy_is_valid): Ditto.
5678 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5679 (sympy_is_valid): New function.
5680 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5681 (objfpy_is_valid): New function.
5682 * python/py-inferior.c: Populate inferior_object_methods.
5683 (infpy_is_valid): New function.
5684 * python/py-infthread.c: Populate thread_object_methods.
5685 (thpy_is_valid): New function.
5686 * python/py-block.c: Declare block_object_methods. Populate. Declare
5687 block_iterator_object_methods. Populate.
5688 (blpy_is_valid): New function.
5689 (blpy_iter_is_valid): Ditto.
5691 2011-03-16 Keith Seitz <keiths@redhat.com>
5693 * linespec.c (find_methods): Canonicalize NAME before looking
5695 (name_end): New function.
5696 (keep_name_info): New function.
5697 (decode_line_1): Use keep_name_info.
5698 (decode_compound): Likewise.
5699 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5700 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5703 * linespec.c (locate_first_half): Keep overload information, too.
5704 (decode_compound): Use a string to represent break characters
5706 If P points to a break character, do not increment it.
5707 For C++ and Java, keep overload information and relevant keywords.
5708 If we cannot find a symbol, search the minimal symbols.
5711 * linespec.c (decode_compound): Rename SAVED_ARG to
5713 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5715 Pass a valid block to lookup_symbol.
5716 (lookup_prefix_sym): Likewise.
5717 (find_method): Construct search name based on SYM_CLASS instead
5719 * psymtab.c (lookup_partial_symbol): Add language parameter.
5720 (lookup_symbol_aux_psymtabs): Likewise.
5721 Don't assume that the psymtab we found was the right one. Search
5722 for the desired symbol in the symtab to be certain.
5723 (psymtab_search_name): New function.
5724 (lookup_partial_symbol): Use psymtab_search_name.
5725 Add language parameter.
5726 (read_symtabs_for_function): Add language parameter and pass to
5727 lookup_partial_symbol.
5728 (find_symbol_file_from_partial): Likewise.
5730 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5733 * dwarf2read.c (noop_record_line): New function.
5734 (dwarf_decode_lines): Ignore line tables for GCd functions.
5736 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5738 Fix ARI warnings about new lines at the end of messages, which
5739 are unneeded as there is a new line added at the end of the message
5741 * darwin-nat.c (darwin_stop_inferior): Ditto.
5742 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5743 * dfp.c (decimal_to_number): Ditto.
5744 * exec.c (print_section_info): Ditto.
5745 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5746 * osdata.c (get_osdata): Ditto.
5747 * record.c (bfdcore_write): Ditto.
5748 * remote-mips.c (mips_readchar): Ditto.
5749 * remote.c (read_ptid): Ditto.
5750 * ser-mingw.c (ser_windows_raw): Ditto.
5751 * tracepoint.c (add_local_symbols): Ditto.
5752 * windows-nat.c (fake_create_process): Ditto.
5754 2011-03-16 Tom Tromey <tromey@redhat.com>
5756 * tracepoint.c (stop_tracing): Don't declare.
5757 * event-top.c (after_char_processing_hook): Add `(void)'.
5759 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5761 * NEWS: Add Parameter sub-classing description.
5763 2011-03-16 Kai Tietz <ktietz@redhat.com>
5765 * MAINTAINERS: Update my e-mail address.
5767 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5769 * MAINTAINERS: Add myself for write after approval privileges.
5771 2011-03-15 Michael Snyder <msnyder@vmware.com>
5773 * frame.c (find_frame_sal): Assert sym is not null.
5775 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5777 * objc-lang.c (selectors_info): Check strchr for null result.
5779 * stabsread.c (define_symbol): Guard against bad stabstring input.
5781 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5783 Remove trailing spaces and tabulations from pascal language
5788 p-valprint.c: Ditto.
5790 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5792 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5793 than LOW. Comment it.
5794 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5795 HIGHPC not strictly higher than LOWPC.
5797 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5799 Fix formatting of function declarations returning a pointer in
5801 * varobj.c (varobj_add_child): Ditto.
5802 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5803 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5805 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5808 for the "generic" vector ABI used with GCC 4.3 and later.
5809 (ppc64_sysv_abi_return_value): Likewise.
5811 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5813 * infcall.c (call_function_by_hand): Function return value is
5814 always a non_lval, even when using struct_return.
5816 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5818 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5819 (map_display_numbers): New.
5820 (do_delete_display): New.
5821 (undisplay_command): Use map_display_numbers.
5822 (do_enable_disable_display): New.
5823 (enable_disable_display_command): New function.
5824 (enable_display): Delete.
5825 (enable_display_command): New.
5826 (disable_display_command): Reimplement.
5827 (_initialize_printcmd): Adjust "enable display" command to use
5828 `enable_display_command' as callback.
5830 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5832 * NEWS: Add Python breakpoint 'stop' operation.
5834 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5836 * NEWS: Delete duplicate entry. Fix typo.
5838 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5840 Fix ARI warning about function names in first column.
5841 Put prototype declaration on same line as return type.
5842 * objc-exp.y: Ditto.
5844 * python/py-stopevent.h: Ditto.
5845 For long function names, split parameters to
5846 allow function name on same line as return type.
5847 * solib-pa64.c: Ditto.
5850 For long function declaration, use single line.
5851 * hppa-tdep.h: Ditto.
5852 * inferior.h: Ditto.
5854 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5856 * python/python.h: Declare gdbpy_should_stop and
5857 gdbpy_breakpoint_has_py_cond.
5858 * python/python.c: Add python.h to includes. Remove python.h from
5859 HAVE_PYTHON definition
5860 (gdbpy_should_stop): New dummy function.
5861 (gdbpy_breakpoint_has_py_cond): New dummy function.
5862 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5863 sub-classing capabilities.
5864 (gdbpy_should_stop): New function.
5865 (gdbpy_breakpoint_has_py_cond): New function.
5866 (local_setattro): New function.
5867 * breakpoint.c (condition_command): Add check for Python 'stop'
5869 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5870 operation function as part of stop/continue tests.
5872 2011-03-14 Tom Tromey <tromey@redhat.com>
5875 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5876 (needs_frame_dwarf_call): Likewise.
5878 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5880 Fix ARI warning about functions without parameters that do not
5882 * breakpoint.c (all_tracepoints): Replace () by (void).
5883 * f-exp.y (match_string_literal): Ditto.
5885 * m2-exp.y (yylex): Ditto.
5886 * mep-tdep.c (current_me_module): Ditto.
5887 (current_options): Ditto.
5888 (current_cop_data_bus_width): Ditto.
5889 (current_cr_names): Ditto.
5890 (current_cr_is_float): Ditto.
5891 (current_ccr_names): Ditto.
5892 * objc-exp.y (yylex): Ditto.
5893 * p-exp.y (yylex): Ditto.
5894 * remote.c (send_interrupt_sequence): Ditto.
5895 * tracepoint.c (current_trace_status): Ditto.
5896 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5897 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5899 2011-03-11 Michael Snyder <msnyder@vmware.com>
5901 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5902 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5903 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5904 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5905 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5907 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5908 (delete_async_event_handler): Ditto.
5910 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5912 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5914 * top.c (set_verbose): Assert showcmd was found.
5916 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5918 * xtensa-tdep.c (warning_once): Correct style issues.
5920 2011-03-11 Yao Qi <yao@codesourcery.com>
5922 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5924 2011-03-11 Andreas Schwab <schwab@redhat.com>
5926 * common/aclocal.m4: Remove.
5928 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5930 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5931 (xtensa_write_register, xtensa_read_register): Likewise.
5932 (xtensa_hextochar): Removed.
5933 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5935 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5937 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5938 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5939 (xtensa_alloc_frame_cache): Add initialization for new fields.
5940 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5941 (warning_once): New function.
5942 (xtensa_insn_kind): New item c0opc_and.
5943 (call0_classify_opcode): Add the case for AND instruction.
5944 (call0_track_op): Change arguments. New local variable litbase.
5945 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5946 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5948 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5949 (call0_analyze_prologue): Update the comments. Change arguments.
5950 Add the variety of updates to handle extended prologues, which now can
5951 conduct dynamic stack adjustments.
5952 (call0_frame_cache): Likewise.
5953 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5954 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5956 2011-03-10 Michael Snyder <msnyder@vmware.com>
5958 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5959 (cmd_qtframe): Ditto.
5960 (cmd_qtbuffer): Ditto.
5961 (cmd_bigqtbuffer): Ditto.
5963 2011-03-10 Tom Tromey <tromey@redhat.com>
5965 * tracepoint.c (trace_actions_command): Update.
5966 * thread.c (thread_apply_command): Update.
5967 * reverse.c (delete_bookmark_command): Update.
5968 (bookmarks_info): Update.
5969 * printcmd.c (undisplay_command): Update.
5970 * memattr.c (mem_enable_command): Update.
5971 (mem_disable_command): Update.
5972 (mem_delete_command): Update.
5973 * inferior.c (detach_inferior_command): Update.
5974 (kill_inferior_command): Update.
5975 (remove_inferior_command): Update.
5976 * cli/cli-utils.h (struct get_number_or_range_state): New.
5977 (init_number_or_range): Declare.
5978 (get_number_or_range): Update.
5979 * cli/cli-utils.c (init_number_or_range): New function.
5980 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5982 (number_is_in_list): Update.
5983 * breakpoint.h (get_tracepoint_by_number): Update.
5984 * breakpoint.c (map_breakpoint_numbers): Update for change to
5985 get_number_or_range.
5986 (find_location_by_number): Use get_number, not
5987 get_number_or_range.
5988 (trace_pass_set_count): New function.
5989 (trace_pass_command): Update for change to get_number_or_range.
5991 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5994 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5996 * python/py-param.c (add_setshow_generic): Add set/show callback
5997 parameters. Register Python object context.
5998 (get_show_value): New function.
5999 (get_set_value): New function.
6000 (call_doc_function): New function.
6001 (get_doc_string): Move behind get_show_value/get_set_value.
6003 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6005 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6007 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6009 * xtensa-tdep.c (xtensa_read_register): Add comment.
6010 (xtensa_write_register): Likewise.
6011 (xtensa_hextochar): Add comment and update to match coding conventions.
6012 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6013 (execute_l32e, execute_s32e, execute_code): Update comments.
6014 (xtensa_exception_handler_t): Update to match coding conventions.
6015 (xtensa_insn_kind): Likewise.
6017 2011-03-09 Michael Snyder <msnyder@vmware.com>
6019 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6021 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6023 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6025 2011-03-09 Tom Tromey <tromey@redhat.com>
6027 * thread.c (restore_selected_frame): Handle frame_level == -1.
6028 (make_cleanup_restore_current_thread): Use
6029 get_selected_frame_if_set.
6030 * frame.h (get_selected_frame_if_set): Declare.
6031 * frame.c (get_selected_frame_if_set): New function.
6033 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6035 * cli/cli-cmds.c (shell_escape): Use lbasename.
6036 * coffread.c (coff_start_symtab): Constify parameter.
6037 (complete_symtab): Constify `name' parameter.
6038 (coff_symtab_read): Constify `filestring' local.
6039 (coff_getfilename): Constify return and `result' local.
6041 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6042 * linux-fork.c (info_checkpoints_command): Use lbasename.
6043 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6044 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6045 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6046 * procfs.c (procfs_make_note_section): Use lbasename.
6047 * tui/tui-io.c (printable_part): Constity return and parameter.
6049 (print_filename): Constify parameters, and local `s'.
6050 (tui_rl_display_match_list): Constify local `temp'.
6052 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6055 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6056 Fix DWARF-3+ DW_AT_accessibility default assumption.
6057 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6058 cu->header.version >= 3.
6060 2011-03-09 Yao Qi <yao@codesourcery.com>
6062 * common/Makefile.in: Remove.
6063 * common/configure: Remove.
6064 * common/configure.ac: Remove.
6066 2011-03-09 Yao Qi <yao@codesourcery.com>
6069 2011-02-11 Yao Qi <yao@codesourcery.com>
6071 * common/Makefile.in: Add copyright header.
6073 2011-02-11 Yao Qi <yao@codesourcery.com>
6075 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6077 * configure.ac: Add common to sub dir.
6078 * configure: Regenerate.
6080 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6082 * xtensa-tdep.c (call0_ret): New function.
6083 (xtensa_skip_prologue): Speed up analysis.
6085 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6087 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6088 while executing MI command -data-list-changed-registers.
6090 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6092 * xtensa-tdep.c (xtensa_read_register): New function.
6093 (xtensa_write_register): New function.
6094 (xtensa_find_register_by_name): New function.
6095 (xtensa_windowed_frame_cache): Update comments in type description.
6096 (xtensa_frame_cache): Likewise.
6097 (xtensa_window_interrupt_insn): New function.
6098 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6099 (xtensa_insn_kind): Add new instructions.
6100 (rwx_special_register): New function.
6101 (call0_classify_opcode): Add new instructions to the analysis.
6102 (a0_saved, a7_saved, a11_saved): New variables.
6103 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6104 (execute_l32e): New function.
6105 (execute_s32e): New function.
6106 (xtensa_exception_handler_t): New type.
6107 (execute_code): New function.
6108 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6109 analysis for Xtensa Window Exception handlers.
6111 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6113 * xtensa-tdep.c (TX_PS): New.
6114 (windowing_enabled): Update to count for Call0 ABI.
6115 (xtensa_hextochar): New.
6116 (xtensa_init_reggroups): Make algorithm generic.
6117 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6119 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6121 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6123 2011-03-08 Michael Snyder <msnyder@vmware.com>
6125 * i386-tdep.c (i386_follow_jump): Check return value of
6127 (i386_analyze_struct_return): Ditto.
6128 (i386_skip_probe): Ditto.
6129 (i386_match_insn): Ditto.
6130 (i386_skip_noop): Ditto.
6131 (i386_analyze_frame_setup): Ditto.
6132 (i386_analyze_register_saves): Ditto.
6133 (i386_skip_prologue): Ditto.
6134 (i386_skip_main_prologue): Ditto.
6136 * target.c (read_whatever_is_readable): Fix memory leak.
6138 * i386-tdep.c (i386_process_record): Document fall through.
6140 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6142 Fix DWARF-3+ DW_AT_accessibility default assumption.
6143 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6144 cu->header.version >= 3.
6146 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6148 * remote.c (remote_check_symbols): Skip if the target has no
6151 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6153 * target.c (read_whatever_is_readable): Reformat comment,
6154 with a minor typo fix. Minor reformatting of the code.
6156 2011-03-08 Yao Qi <yao@codesourcery.com>
6158 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6159 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6160 Use cached result instead of calling displaced_in_arm_mode again.
6161 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6162 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6163 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6164 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6165 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6166 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6167 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6168 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6169 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6170 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6171 (arm_catch_kernel_helper_return): Likewise.
6172 * gdb/arm-tdep.h : Update function declarations.
6174 2011-03-07 Michael Snyder <msnyder@vmware.com>
6176 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6178 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6180 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6182 * elfread.c (elf_symtab_read): Stop memory leak.
6184 * main.c (captured_main): Fix memory leak.
6186 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6188 * ada-lang.c (compare_names): Call is_name_suffix with string1
6191 2011-03-07 Tom Tromey <tromey@redhat.com>
6193 * xcoffread.c (xcoff_sym_fns): Update.
6194 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6195 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6196 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6197 (symbol_file_add_with_addrs_or_offsets): Likewise.
6198 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6199 * somread.c (som_sym_fns): Update.
6200 * psymtab.h (require_partial_symbols): Declare.
6201 * psymtab.c (require_partial_symbols): New function.
6202 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6203 (ALL_OBJFILE_PSYMTABS): Undef.
6204 (ALL_PSYMTABS): Move from psympriv.h.
6205 (lookup_partial_symtab, find_pc_sect_psymtab)
6206 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6207 (find_last_source_symtab_from_partial)
6208 (forget_cached_source_info_partial)
6209 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6210 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6211 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6212 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6213 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6214 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6215 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6216 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6217 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6219 * mipsread.c (ecoff_sym_fns): Update.
6220 * machoread.c (macho_sym_fns): Update.
6221 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6222 (read_psyms): New function.
6223 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6224 (elf_sym_fns_lazy_psyms): New global.
6225 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6226 dwarf2_build_psymtabs.
6227 * dbxread.c (aout_sym_fns): Update.
6228 * coffread.c (coff_sym_fns): Update.
6230 2011-03-07 Tom Tromey <tromey@redhat.com>
6232 * infrun.c (print_exited_reason): Include inferior id and pid in
6235 2011-03-07 Tom Tromey <tromey@redhat.com>
6237 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6239 (target_has_execution_1): Update.
6240 (target_has_execution_current): Declare.
6241 (target_has_execution): Call target_has_execution_current.
6242 (default_child_has_execution): Update.
6243 * target.c (default_child_has_execution): Add 'the_ptid'
6245 (target_has_execution_1): Likewise.
6246 (target_has_execution_current): New function.
6247 (add_target): Update.
6248 (init_dummy_target): Update.
6249 * remote-m32r-sdi.c (m32r_has_execution): New function.
6250 (init_m32r_ops): Use it.
6251 * record.c (record_core_has_execution): Now static. Add
6252 'the_ptid' parameter.
6253 * inferior.c (have_live_inferiors): Don't save current thread.
6254 Use target_has_execution_1.
6256 2011-03-07 Yao Qi <yao@codesourcery.com>
6258 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6260 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6262 * elfread.c (elf_symtab_read): Minor reformatting.
6264 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6266 * objc-lang.c (selectors_info): Minor reformatting.
6268 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6270 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6272 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6273 Michael Snyder <msnyder@vmware.com>
6275 * ada-valprint.c (ada_val_print_array): Move the declaration of
6276 "byte_order" and "elttype" inside the block where these variables
6277 are actually used. Remove some special handling for the case
6278 where "elttype" and "eltlen" are null. Replace by a comment
6279 and a couple of assertion checks.
6281 2011-03-05 Michael Snyder <msnyder@vmware.com>
6283 * source.c (add_path): Replace semicolon at end of block.
6284 * dwarf2expr.c (execute_stack_op): Ditto.
6286 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6288 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6289 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6290 (bfin-*-*): Likewise.
6292 2011-03-05 Michael Snyder <msnyder@vmware.com>
6294 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6295 * mdebugread.c (parse_symbol): Ditto.
6296 * parse.c (parse_exp_in_context): Ditto.
6297 * source.c (add_path): Ditto.
6298 * utils.c (gnu_debuglink_crc32): Ditto.
6299 * varobj.c (variable_language): Ditto.
6301 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6303 2011-03-04 Michael Snyder <msnyder@vmware.com>
6305 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6307 * symfile.c (simple_overlay_update): Check for null return value
6308 from lookup_minimal_symbol.
6310 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6312 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6314 * eval.c (parse_and_eval_address_1): Remove function.
6315 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6316 instead of parse_and_eval_address_1.
6317 * value.h (parse_and_eval_address_1): Remove prototype.
6319 2011-03-04 Michael Snyder <msnyder@vmware.com>
6321 * remote.c (putpkt_binary): Document that case stmt falls through.
6323 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6325 * breakpointc (print_it_typical): Move NULL check from here...
6326 (print_bp_stop_message): ... to here.
6328 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6330 * breakpoint.c (enable_command): Use break instead of continue,
6331 and fill in a missing break.
6332 (disable_command): Ditto.
6334 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6336 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6337 (terminal_save_ours): Remove misleading comment.
6338 (inflow_inferior_data_cleanup): Free ttystate.
6339 (inflow_inferior_exit): Likewise.
6340 (copy_terminal_info): Copy ttystate.
6342 * serial.c (serial_copy_tty_state): New function.
6343 * serial.h (serial_copy_tty_state): Add prototype.
6344 (struct serial_ops): Add copy_tty_state callback.
6345 * ser-base.c (ser_base_copy_tty_state): New function.
6346 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6347 * ser-go32.c (dos_copy_tty_state): New function.
6348 (dos_ops): Install copy_tty_state callback.
6349 * ser-mingw.c (_initialize_ser_windows): Likewise.
6350 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6351 * ser-unix.c (hardwire_copy_tty_state): New function.
6352 (_initialize_ser_hardwire): Install it.
6354 2011-03-04 Michael Snyder <msnyder@vmware.com>
6356 * breakpoint.c (create_breakpoint): Add missing break statement.
6358 Reverting this patch:
6359 * infcall.c (call_function_by_hand): Add break statements for lint.
6361 Reverting this patch:
6362 * cli/cli-script.c (script_from_file): Add break for lint.
6364 2011-03-04 Michael Snyder <msnyder@vmware.com>
6366 * solib.c (reload_shared_libraries_1): Close memory leak.
6368 2011-03-03 Tom Tromey <tromey@redhat.com>
6371 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6374 2011-03-03 Michael Snyder <msnyder@vmware.com>
6376 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6377 fields of struct 'st' to zero.
6379 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6380 sal.pspace before calling set_current_source_symtab_and_line.
6382 2011-03-03 Yao Qi <yao@codesourcery.com>
6384 * Makefile.in (configure-common): Remove. Let Makefile
6385 in dir common to rebuild itself.
6386 (common/Makefile): Likewise.
6388 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6390 * utils.c (parse_escape): Add i18n markup in error message.
6392 2011-03-03 Yao Qi <yao@codesourcery.com>
6394 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6396 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6397 (displaced_write_reg, displaced_read_reg): Likewise.
6398 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6399 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6400 (cleanup_branch): Replace magic number 14 and 15 with
6401 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6403 2011-03-02 Michael Snyder <msnyder@vmware.com>
6405 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6407 * cli/cli-script.c (script_from_file): Add break for lint.
6409 * mdebugread.c (parse_partial_symbols): Fix indent.
6411 * target-descriptions.c (tdesc_gdb_type): No need to call
6412 xstrdup, callee saves a copy.
6414 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6416 * infcall.c (call_function_by_hand): Add break statements for lint.
6418 * utils.c (parse_escape): Escape the escape char.
6420 * python/py-inferior.c (build_inferior_list): Error out if
6421 PyList_Append fails.
6422 (gdbpy_inferiors): Error out if build_inferior_list fails.
6424 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6427 * record.c (record_restore): Move printf to before error return.
6429 2011-03-02 Yao Qi <yao@codesourcery.com>
6431 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6432 is_thumb and insn_size.
6433 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6434 on both ARM and Thumb mode.
6435 (arm_process_displaced_insn): Set is_thumb and insn_size.
6436 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6437 (arm_displaced_step_fixup): Likewise.
6439 2011-03-01 Michael Snyder <msnyder@vmware.com>
6441 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6443 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6445 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6447 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6449 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6452 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6453 which shadows function parameter.
6455 * tracepoint.c (create_tsv_from_upload): Superfluous call
6456 to xstrdup. Callee already calls xstrdup.
6458 * linespec.c (decode_line_1): Remove unnecessary null check.
6460 * tracepoint.c (scope_info): Fix mem leak, remove underused
6463 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6464 superfluous null check.
6466 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6467 (value_of_builtin_frame_fp_reg): Ditto.
6469 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6471 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6474 * linespec.c (decode_line_1): Check for null before dereference.
6476 * reverse.c (record_restore): Move null-check to before pointer
6479 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6481 * objc-lang.c (selectors_info): Add explanitory comment.
6482 (classes_info): Ditto.
6484 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6486 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6487 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6488 versions of the trampoline. Handle Thumb vs. ARM addresses.
6489 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6490 (arm_linux_init_abi): Install it.
6491 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6492 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6494 2011-02-28 Michael Snyder <msnyder@vmware.com>
6496 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6497 a little bigger, to avoid possibility of an overflow.
6499 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6500 buffers a little bigger, to avoid possibility of an overflow.
6502 * coffread.c (coff_getfilename): Add check to avoid overflow.
6504 * objc-lang.c (selectors_info): Add a small safety margin to
6506 (classes_info): Error out on too long REGEXP.
6508 * infrun.c (handle_inferior_event): Remove unused function call.
6510 * fork-child.c (fork_inferior): Remove ifdef'd code and
6513 * linux-thread-db.c (attach_thread): Discard unused value.
6515 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6517 * remote.c (remote_get_noisy_reply): Discard unused value.
6518 (remote_vcont_resume): Ditto.
6519 (remote_stop_ns): Ditto.
6521 * linespec.c (decode_objc): Delete unused variable.
6523 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6525 * dwarf2read.c (add_partial_symbol): Discard unused values.
6526 (read_base_type): Delete unused variable.
6528 * dbxread.c (read_dbx_symtab): Discard unused value.
6530 * eval.c (evaluate_subexp_standard): Delete unused variable,
6531 and discard unused values.
6533 * infcmd.c (_initialize_infcmd): Discard unused values.
6535 * stabsread.c (rs6000_builtin_type): Missing break statement.
6537 * dbxread.c (process_one_symbol): Discard unused value.
6539 * coffread.c (coff_end_symtab): Delete unused variable.
6541 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6542 (dwarf2_add_typedef): Delete unused variable.
6543 (read_namespace): Ditto.
6544 (dwarf_decode_macros): Ditto.
6546 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6548 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6550 * p-valprint.c (pascal_val_print): Discard unused value.
6552 * utils.c (nquery): Call va_end before return;
6556 * proc-service.c (ps_plog): Call va_end before return.
6558 2011-02-28 Tom Tromey <tromey@redhat.com>
6560 * python/python.c (gdbpy_value_cst): New global.
6561 (_initialize_python): Initialize it.
6562 * python/python-internal.h (gdbpy_value_cst): Declare.
6563 * python/py-value.c (convert_value_from_python): Use
6566 2011-02-28 Michael Snyder <msnyder@vmware.com>
6568 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6570 * breakpoint.c (catch_syscall_completer): Free malloced list.
6572 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6574 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6575 (lval_func_check_synthetic_pointer): Ditto.
6576 (lval_func_free_closure): Fix use-after-free.
6578 2011-02-28 Tom Tromey <tromey@redhat.com>
6580 * psymtab.c (expand_partial_symbol_tables): Use
6581 ALL_OBJFILE_PSYMTABS.
6583 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6585 * objc-lang.c (selectors_info): Error on too long REGEXP.
6587 2011-02-28 Michael Snyder <msnyder@vmware.com>
6589 * python/py-param.c (set_parameter_value): Add missing
6592 * linux-record.c (record_linux_system_call): Add missing
6595 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6597 * breakpoint.c (print_one_breakpoint_location): Remove unused
6598 argument PRINT_ADDRESS_BITS. Update callers.
6599 (print_one_breakpoint): Likewise.
6601 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6603 * breakpoint.c (wrap_indent_at_field): New function.
6604 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6605 Allocate ui_stream locally instead of using STB argument.
6606 (print_one_breakpoint_location): Update call.
6607 * ui-out.c (ui_out_query_field): New function.
6608 * ui-out.h (ui_out_query_field): Add prototype.
6610 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6612 From Michael Snyder <msnyder@vmware.com>
6613 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6615 2011-02-27 Michael Snyder <msnyder@vmware.com>
6617 * objc-lang.c (selectors_info): Prevent string overrun.
6619 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6622 * symtab.c (rbreak_command): Move variable 'file_name' to
6625 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6626 param with a local variable of the same name.
6628 2011-02-27 Michael Snyder <msnyder@vmware.com>
6630 * value.c (value_from_history_ref): New function.
6631 * value.h (value_from_history_ref): Export.
6632 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6633 to parse value history references.
6634 * cli/cli-utils.h (get_number_trailer): Update comment.
6636 2011-02-27 Michael Snyder <msnyder@vmware.com>
6638 * inferior.c (detach_inferior_command): Use get_number_or_range.
6639 (kill_inferior_command): Ditto.
6640 (remove_inferior_command): Ditto.
6641 (initialize_inferiors): Make command names plural.
6642 Update help strings.
6644 2011-02-27 Michael Snyder <msnyder@vmware.com>
6646 * darwin-nat-info.c: Fix comment typo.
6647 * dwarf2expr.h: Ditto.
6648 * fbsd-nat.c: Ditto.
6649 * fbsd-nat.h: Ditto.
6650 * frame-unwind.h: Ditto.
6652 * hppa-hpux-tdep.c: Ditto.
6653 * i386-linux-nat.c: Ditto.
6654 * linux-nat.c: Ditto.
6655 * nbsd-nat.c: Ditto.
6656 * nbsd-nat.h: Ditto.
6657 * ppc-linux-tdep.c: Ditto.
6660 * tui/tui-winsource.c: Ditto.
6662 2011-02-26 Michael Snyder <msnyder@vmware.com>
6664 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6666 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6668 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6669 with a local variable of the same name.
6671 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6672 param with a local variable of the same name.
6673 (i387_supply_xsave): Ditto.
6675 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6676 that it does not shadow a function parameter.
6678 * i386-nat.c (i386_length_and_rw_bits): Document that case
6679 statement is meant to fall through.
6681 * expprint.c (dump_subexp_body_standard): Document that case
6682 statement is meant to fall through.
6684 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6685 dead if statement. Condition can't be false.
6687 2011-02-25 Michael Snyder <msnyder@vmware.com>
6689 * arm-tdep.c: Fix typos in comments.
6690 * bsd-uthread.c: Ditto.
6691 * completer.c: Ditto.
6693 * cp-namespace.c: Ditto.
6694 * cp-support.c: Ditto.
6695 * cris-tdep.c: Ditto.
6697 * dwarf2read.c: Ditto.
6699 * gdbtypes.h: Ditto.
6700 * inferior.h: Ditto.
6701 * mdebugread.c: Ditto.
6702 * mips-tdep.c: Ditto.
6703 * ppc-linux-nat.c: Ditto.
6704 * ppc-linux-tdep.c: Ditto.
6705 * printcmd.c: Ditto.
6706 * sol-thread.c: Ditto.
6707 * solib-frv.c: Ditto.
6709 * sparc64-tdep.c: Ditto.
6710 * spu-tdep.c: Ditto.
6711 * stabsread.c: Ditto.
6716 * python/py-block.c: Ditto.
6717 * python/py-symbol.c: Ditto.
6718 * python/py-symtab.c: Ditto.
6719 * python/py-value.c: Ditto.
6720 * tui/tui-win.c: Ditto.
6722 2011-02-25 Michael Snyder <msnyder@vmware.com>
6724 * inferior.c (print_inferior): Accept a string instead of an int
6725 for requested_inferiors, and use get_number_or_range to parse it.
6726 (info_inferiors_command): Pass args string to print_inferior.
6727 (initialize_inferiors): Change help string for info inferiors.
6728 * inferior.h (print_inferior): Export prototype change.
6730 2011-02-25 Tom Tromey <tromey@redhat.com>
6732 * common/ax.def (invalid2): Set to 0x31.
6734 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6736 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6738 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6740 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6742 2011-02-24 Michael Snyder <msnyder@vmware.com>
6744 * Makefile.in (clean): Make clean should remove generated files
6745 observer.h and observer.inc.
6747 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6749 Revert the following patch (not approved yet):
6750 2011-02-21 Hui Zhu <teawater@gmail.com>
6751 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6752 * ax-gdb.c (gen_printf_expr_callback): New function.
6753 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6754 * ax-general.c (ax_memcpy): New function.
6755 (ax_print): Handle "printf".
6757 * ax.h (ax_memcpy): Forward declare.
6758 * common/ax.def (invalid2): Removed.
6759 (printf): New entry.
6760 * printcmd.c (printcmd.h): New include.
6761 (string_printf): New function.
6762 (ui_printf): Removed.
6763 (printf_command): Remove static. Call string_printf.
6764 (eval_command): Call string_printf.
6765 * printcmd.h: New file.
6766 * tracepoint.c (validate_actionline,
6767 encode_actions_1): handle printf_command.
6769 2011-02-23 Tom Tromey <tromey@redhat.com>
6771 * ax-general.c (ax_pick): Add missing newline.
6773 2011-02-23 Michael Snyder <msnyder@vmware.com>
6775 * breakpoint.c (breakpoint_1): Change first argument from an int
6776 to a char pointer, so that the function now accepts a list of
6777 breakpoints rather than just one. Use new function
6778 'number_is_in_list' to implement.
6779 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6780 (watchpoints_info): Ditto.
6781 (tracepoints_info): Ditto.
6782 (maintenance_info_breakpoints): Ditto.
6783 (_initialize_breakpoint): Update help strings to reflect the fact
6784 that these functions can now take more than one argument.
6785 * cli/cli-utils.c (number_is_in_list): New function.
6786 * cli/cli-utils.h (number_is_in_list): Export.
6788 2011-02-23 Michael Snyder <msnyder@vmware.com>
6790 * memattr.c (mem_enable_command): Use get_number_or_range.
6791 (mem_disable_command): Ditto.
6792 (mem_delete_command): Ditto.
6793 (_initialize_mem): Tweak usage message to reflect multiple
6796 2011-02-22 Doug Evans <dje@google.com>
6798 Add gdb.lookup_global_symbol python function.
6800 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6801 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6802 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6804 2011-02-22 Tom Tromey <tromey@redhat.com>
6806 * language.c (language_class_name_from_physname): Rename
6807 'curr_language' argument to 'lang'; use in body.
6809 2011-02-22 Michael Snyder <msnyder@vmware.com>
6811 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6813 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6815 * frame-unwind.h: Fix comment to mention the this frame, not the
6818 2011-02-22 Tom Tromey <tromey@redhat.com>
6820 * symfile.c (auto_solib_limit): Remove.
6821 * symfile.h (auto_solib_limit): Remove.
6823 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6825 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6827 2011-02-21 Michael Snyder <msnyder@vmware.com>
6829 * gdbthread.h (print_thread_info): Change prototype.
6830 * thread.c (print_thread_info): Accept char* instead of int for
6831 requested_threads argument. Use new function number_is_in_list
6832 to determine which threads to list.
6833 (info_threads_command): Pass char* to print_thread_info.
6834 * cli/cli-utils.c (number_is_in_list): New function.
6835 * cli/cli-utils.h (number_is_in_list): Export.
6836 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6838 (print_one_inferior): Ditto.
6839 (mi_cmd_list_thread_groups): Ditto.
6841 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 * common/Makefile.in (CFLAGS): New.
6844 (COMPILE): Add $(CFLAGS).
6846 2011-02-21 Tom Tromey <tromey@redhat.com>
6848 * breakpoint.c (catch_syscall_command_1): Fix typo.
6850 2011-02-21 Tom Tromey <tromey@redhat.com>
6852 * reverse.c: Include cli-utils.h.
6853 * printcmd.c: Include cli-utils.h.
6854 (string_printf): Use skip_spaces.
6855 * cli/cli-utils.h: New file.
6856 * cli/cli-utils.c: New file.
6857 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6858 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6859 * breakpoint.h (get_number, get_number_or_range): Move to
6861 * breakpoint.c: Include cli-utils.h.
6862 (get_number_trailer, get_number, get_number_or_range)
6863 (ep_skip_leading_whitespace): Move to cli-utils.c.
6864 (create_breakpoint_sal, find_condition_and_thread)
6865 (decode_static_tracepoint_spec, watch_command_1)
6866 (watch_maybe_just_location, ep_parse_optional_if_clause)
6867 (catch_fork_command_1, catch_exec_command_1)
6868 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6869 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6870 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6871 (HFILES_NO_SRCDIR): Add cli-utils.h.
6872 (cli-utils.o): New target.
6874 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6876 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6877 before calling discard_all_inferiors.
6879 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6881 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6882 (struct builtin_opencl_type): Remove.
6883 (builtin_opencl_type): Change return type to "struct type **".
6884 (lookup_opencl_vector_type): Update caller.
6885 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6886 (build_opencl_types): Install plain array of "struct type *"
6887 instead of "struct builtin_opencl_type".
6889 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6890 Ulrich Weigand <uweigand@de.ibm.com>
6892 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6893 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6894 (struct arm_linux_hwbp_cap): New type.
6895 (arm_linux_get_hwbp_cap): New function.
6896 (arm_linux_get_hw_breakpoint_count): Likewise.
6897 (arm_linux_get_hw_watchpoint_count): Likewise.
6898 (arm_linux_can_use_hw_breakpoint): Likewise.
6899 (arm_hwbp_type): New type.
6900 (arm_hwbp_control_t): Likewise.
6901 (struct arm_linux_hw_breakpoint): Likewise.
6902 (struct arm_linux_thread_points): Likewise.
6903 (arm_threads): New global variable.
6904 (arm_linux_find_breakpoints_by_tid): New function.
6905 (arm_hwbp_control_initialize): Likewise.
6906 (arm_hwbp_control_is_enabled): Likewise.
6907 (arm_hwbp_control_disable): Likewise.
6908 (arm_linux_hw_breakpoint_initialize): Likewise.
6909 (arm_linux_get_hwbp_type): Likewise.
6910 (arm_linux_hw_watchpoint_initialize): Likewise.
6911 (arm_linux_hw_breakpoint_equal): Likewise.
6912 (arm_linux_insert_hw_breakpoint1): Likewise.
6913 (arm_linux_remove_hw_breakpoint1): Likewise.
6914 (arm_linux_insert_hw_breakpoint): Likewise.
6915 (arm_linux_remove_hw_breakpoint): Likewise.
6916 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6917 (arm_linux_insert_watchpoint): Likewise.
6918 (arm_linux_remove_watchpoint): Likewise.
6919 (arm_linux_stopped_data_address): Likewise.
6920 (arm_linux_stopped_by_watchpoint): Likewise.
6921 (arm_linux_watchpoint_addr_within_range): Likewise.
6922 (arm_linux_new_thread): Likewise.
6923 (arm_linux_thread_exit): Likewise.
6924 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6925 related target callbacks. Register arm_linux_new_thread and
6926 arm_linux_thread_exit.
6927 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6928 * arm-tdep.c (arm_pc_is_thumb): Make global.
6929 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6931 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6933 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6934 per-frame locations while within a function epilogue.
6936 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6938 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6939 to GNU coding standards.
6941 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6943 Allow use of mingw native on Windows 95 OS.
6944 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6945 (ser_windows_close): Only call CancelIo if function exists.
6946 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6947 to check for existence of CancelIo function in kernel32 DLL.
6949 2011-02-21 Hui Zhu <teawater@gmail.com>
6951 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6952 * ax-gdb.c (gen_printf_expr_callback): New function.
6953 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6954 * ax-general.c (ax_memcpy): New function.
6955 (ax_print): Handle "printf".
6957 * ax.h (ax_memcpy): Forward declare.
6958 * common/ax.def (invalid2): Removed.
6959 (printf): New entry.
6960 * printcmd.c (printcmd.h): New include.
6961 (string_printf): New function.
6962 (ui_printf): Removed.
6963 (printf_command): Remove static. Call string_printf.
6964 (eval_command): Call string_printf.
6965 * printcmd.h: New file.
6966 * tracepoint.c (validate_actionline,
6967 encode_actions_1): handle printf_command.
6969 2011-02-19 Michael Snyder <msnyder@vmware.com>
6971 * reverse.c (delete_one_bookmark): Argument is now bookmark
6972 id rather than pointer to bookmark struct.
6973 (delete_bookmark_command): Use get_number_or_range.
6974 (goto_bookmark_command): Parse with get_number instead of strtoul.
6975 (bookmark_1): New function. Print info for one bookmark.
6976 (bookmarks_info): Use get_number_or_range and bookmark_1.
6978 2011-02-18 Michael Snyder <msnyder@vmware.com>
6980 * thread.c (info_threads_command): Re-implement using
6981 get_number_or_range.
6982 (thread_apply_command): Ditto.
6984 2011-02-18 Tom Tromey <tromey@redhat.com>
6986 * common/ax.def: New file.
6987 * ax.h (enum agent_op): Use ax.def.
6988 * ax-general.c (aop_map): Use ax.def.
6990 2011-02-18 Tom Tromey <tromey@redhat.com>
6992 * ax-general.c (aop_map): Add pick and rot.
6993 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6994 <DW_OP_rot>: Implement.
6995 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6997 * ax-general.c (ax_pick): New function.
6999 2011-02-18 Tom Tromey <tromey@redhat.com>
7001 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7003 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7004 Tom Tromey <tromey@redhat.com>
7006 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7007 make_symbol_overload_list_block with NULL BLOCK.
7008 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7010 2011-02-18 Pedro Alves <pedro@codesourcery.com>
7012 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7013 * breakpoint.h (get_number_or_range): Declare.
7014 * printcmd.c (ALL_DISPLAYS): Declare.
7015 (delete_display): Reimplement taking a display pointer.
7016 (undisplay_command): Accept a range of displays to delete, using
7017 get_number_or_range.
7019 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7021 * c-valprint.c (c_val_print): Add embedded_offset to address
7022 for arrays of unspecified length.
7023 * p-valprint.c (pascal_val_print): Likewise.
7025 2011-02-18 Yao Qi <yao@codesourcery.com>
7027 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7028 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7029 (thumb_process_displaced_insn): New.
7030 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7031 call to arm_process_displaced_insn.
7032 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7034 2011-02-17 Tom Tromey <tromey@redhat.com>
7036 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7037 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7038 compile_dwarf_to_ax. No longer static. Call
7039 dwarf2_compile_cfa_to_ax.
7040 (locexpr_tracepoint_var_ref): Update.
7041 (loclist_tracepoint_var_ref): Update.
7042 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7043 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7044 argument; add 'gdbarch' and 'pc'.
7045 (dwarf2_compile_cfa_to_ax): New function.
7046 (dwarf2_frame_cache): Update.
7048 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7050 * ada-lang.c (ada_type_of_array): Fix the size of the array
7051 in the case of an unconstrained packed array.
7053 2011-02-17 Yao Qi <yao@codesourcery.com>
7055 * common/Makefile.in: Add more targets for make.
7057 2011-02-16 Tom Tromey <tromey@redhat.com>
7059 * dwarf2loc.c (unimplemented): Fix typo.
7061 2011-02-16 Tom Tromey <tromey@redhat.com>
7063 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7064 (compile_dwarf_to_ax) <default>: Use unimplemented.
7065 <DW_OP_deref>: Update.
7066 (disassemble_dwarf_expression): Update.
7067 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7068 (decode_locdesc): Update.
7069 * dwarf2expr.h (dwarf_stack_op_name): Update.
7071 2011-02-16 Tom Tromey <tromey@redhat.com>
7073 * ax.h (struct aop_map) <name>: Now const.
7075 2011-02-16 Tom Tromey <tromey@redhat.com>
7077 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7080 2011-02-16 Yao Qi <yao@codesourcery.com>
7082 * infrun.c (get_displaced_step_closure_by_addr): New.
7083 * inferior.h: Declare it.
7084 * arm-tdep.c: (arm_pc_is_thumb): Call
7085 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7088 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7089 Jan Kratochvil <jan.kratochvil@redhat.com>
7092 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7094 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7095 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 * value.c (value_contents_copy_raw): Extend describing comment.
7098 Assert that the destination contents we're overwriting are wholly
7100 (value_contents_copy): Extend describing comment.
7102 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7103 Jan Kratochvil <jan.kratochvil@redhat.com>
7105 * value.c (value_available_contents_eq): Remove redundant local
7106 variables. Fix available contents comparision.
7107 * value.h (value_available_contents_eq): Extend describing
7110 2011-02-16 Yao Qi <yao@codesourcery.com>
7112 * thread.c (info_threads_command): Add missing i18n markup and remove
7115 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7117 * breakpoint.c (longjmp_names): New variable.
7118 (struct breakpoint_objfile_data): New type.
7119 (breakpoint_objfile_key): New variable.
7120 (msym_not_found): New variable.
7121 (msym_not_found_p): New predicate.
7122 (get_breakpoint_objfile_data): New function.
7123 (create_overlay_event_breakpoint): Check per-objfile cache for
7125 (create_longjmp_master_breakpoint): Likewise.
7126 (create_std_terminate_master_breakpoint): Likewise.
7127 (create_exception_master_breakpoint): Likewise.
7128 (_initialize_breakpoint): Register per-objfile data key.
7130 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7132 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7134 (create_longjmp_master_breakpoint): Loop over longjmp names.
7135 (create_std_terminate_master_breakpoint): Const-propagate parameter
7137 (update_breakpoints_after_exec): Adjust.
7138 (breakpoint_re_set): Adjust.
7140 2011-02-15 Michael Snyder <msnyder@vmware.com>
7142 * thread.c (info_threads_command): Process arg as thread id,
7143 or list of thread ids.
7144 (thread_find_command): New command.
7145 (_initialize_thread): Document argument for info threads.
7146 Document 'thread find' command.
7147 * NEWS: Document new command "thread find".
7149 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7152 * aclocal.m4: Regenerated with aclocal-1.11.1.
7153 * common/configure: Regenerate with autoconf-2.64.
7155 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7157 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7158 bool data type to a size of one byte.
7160 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7161 Jan Kratochvil <jan.kratochvil@redhat.com>
7163 * target.c (memory_xfer_live_readonly_partial): Document where to
7164 look for interface description.
7166 2011-02-15 Yao Qi <yao@codesourcery.com>
7169 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7170 order to store PC value on stack instead of text section.
7172 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7174 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7175 the EFP register set size.
7176 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7177 data from the VMX register.
7178 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7179 and write data from/to the VMX register.
7181 2011-02-14 Michael Snyder <msnyder@vmware.com>
7183 * command.h (enum command_class): New class 'no_set_class', for
7184 "show" commands without a corresponding "set" command.
7185 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7186 * copying.c (_initialize_copying): Ditto for "show copying" and
7188 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7190 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7191 which there is no corresponding "set" command (eg. "show copying").
7193 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7194 Jan Kratochvil <jan.kratochvil@redhat.com>
7196 * exec.c (section_table_available_memory): Change `len' parameter
7198 * exec.h (section_table_available_memory): Ditto.
7199 * value.h (read_value_memory): Rename the `offset' parameter to
7202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7203 Jan Kratochvil <jan.kratochvil@redhat.com>
7205 * memrange.c (compare_mem_ranges): Mention sort order in
7207 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7208 * tracepoint.c (traceframe_available_memory): Extend comment to
7209 mention what happens to RESULT when the target does not support
7212 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7213 Jan Kratochvil <jan.kratochvil@redhat.com>
7215 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7218 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7220 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7221 No longer handle NULL values.
7223 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7225 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7226 * value.c: Include "exceptions.h".
7227 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7229 * cp-abi.c: Include gdb_assert.h.
7230 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7231 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7233 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7234 parameters. No longer returns -1 on error.
7235 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7237 * cp-valprint.c: Include exceptions.h.
7238 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7239 the baseclass_offset. Handle unavailable base classes. Use
7240 val_print_invalid_address.
7241 * p-valprint.c: Include exceptions.h.
7242 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7243 when fetching the baseclass_offset. No longer expect
7244 baseclass_offset returning -1. Handle unavailable base classes.
7245 Use val_print_invalid_address.
7246 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7247 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7248 `embedded_offset' and `val' parameters. Adjust.
7249 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7250 parameter, and change its type to gdb_byte pointer. Add
7251 `embedded_offset' and `val' parameters. Adjust. No longer expect
7252 baseclass_offset returning -1.
7253 (value_dynamic_cast): Use value_contents_for_printing rather than
7254 value_contents. Adjust.
7255 (search_struct_field): No longer expect baseclass_offset returning
7257 (search_struct_method): If reading memory from the target is
7258 necessary, wrap it in a new value to pass to baseclass_offset. No
7259 longer expect baseclass_offset returning -1.
7260 (find_method_list): No longer expect baseclass_offset returning
7261 -1. Use value_contents_for_printing rather than value_contents.
7262 * valprint.c (val_print_invalid_address): New function.
7263 * valprint.h (val_print_invalid_address): Declare.
7264 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7265 and `val' parameters. No longer expect baseclass_offset returning
7267 * gnu-v2-abi.c: Include "exceptions.h".
7268 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7269 parameters. Handle unavailable memory. Recurse through
7270 gnuv2_baseclass_offset directly, rather than through
7271 baseclass_offset. No longer returns -1 on not found, instead
7273 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7274 `val' parameters. Adjust.
7276 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7278 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7279 almost but not quite adjacent.
7281 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7283 * value.h (value_entirely_available): Declare.
7284 * value.c (value_entirely_available): New function.
7285 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7286 real type if the pointer is unavailable.
7288 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7290 * valops.c (value_repeat): Use read_value_memory instead of
7293 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7295 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7296 * value.c (value_contents_copy_raw, value_contents_copy): New
7298 (value_primitive_field): Use value_contents_copy_raw instead of
7300 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7302 (value_array, value_slice): Ditto.
7303 * valarith.c (value_subscripted_rvalue): Use
7304 value_contents_copy_raw instead of memcpy.
7306 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7308 <unavailable> references.
7310 * valops.c (get_value_at): Use value_from_contents_and_address,
7311 avoiding read_memory.
7313 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7315 * c-valprint.c (c_val_print): Print a string with unavailable
7316 contents as an array.
7318 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7320 * value.h (unpack_bits_as_long): Delete declaration.
7321 (unpack_value_bits_as_long): Declare.
7322 (unpack_value_field_as_long): Declare.
7323 (value_field_bitfield): Declare.
7324 * value.c (unpack_bits_as_long): Rename to...
7325 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7326 value parameters. Return the extracted result in a new output
7327 parameter. If the value contents are unavailable, return false,
7328 otherwise return true.
7329 (unpack_value_bits_as_long): New.
7330 (unpack_field_as_long): Rename to...
7331 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7332 Add embedded_offset and value parameters. Return the extracted
7333 result in a new output parameter. If the value contents are
7334 unavailable, return false, otherwise return true.
7335 (unpack_value_field_as_long): New.
7336 (unpack_field_as_long_1): New.
7337 (unpack_field_as_long): Reimplement as wrapper around
7338 unpack_value_field_as_long_1.
7339 (value_field_bitfield): New function.
7340 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7341 unpack_value_bits_as_long. Mark the value as unavailable, if it
7343 * jv-valprint.c (java_print_value_fields): Use
7344 value_field_bitfield.
7345 * p-valprint.c (pascal_object_print_value_fields): Use
7346 value_field_bitfield.
7347 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7349 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7351 * value.c (get_internalvar_integer): Also return the int value of
7352 TYPE_CODE_INT INTERNALVAR_VALUE values.
7353 (set_internalvar): Don't special case TYPE_CODE_INT.
7355 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7357 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7358 INTERNALVAR_POINTER.
7360 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7361 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7362 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7364 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7366 * value.h (value_available_contents_eq): Declare.
7367 * value.c (find_first_range_overlap): New function.
7368 (value_available_contents_eq): New function.
7369 * valprint.c (val_print_array_elements): Use
7370 value_available_contents_eq.
7371 * ada-valprint.c (val_print_packed_array_elements): Use
7372 value_available_contents_eq.
7373 * jv-valprint.c (java_value_print): Use
7374 value_available_contents_eq.
7376 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7378 * target.c (target_read_live_memory): New function.
7379 (memory_xfer_live_readonly_partial): New.
7380 (memory_xfer_partial): If reading from a traceframe, fallback to
7381 reading unavailable read-only memory from read-only regions of
7383 * tracepoint.c (disconnect_tracing): Adjust.
7384 (set_current_traceframe): New, factored out from
7385 set_traceframe_number.
7386 (set_traceframe_number): Reimplement to only change the traceframe
7387 number on the GDB side.
7388 (do_restore_current_traceframe_cleanup): Adjust.
7389 (make_cleanup_restore_traceframe_number): New.
7390 (cur_traceframe_number): New global.
7391 (tfile_open): Set cur_traceframe_number to no traceframe.
7392 (set_tfile_traceframe): New function.
7393 (tfile_trace_find): If looking up a traceframe using any method
7394 other than by number, make sure the current tfile traceframe
7395 matches gdb's current traceframe. Update the current tfile
7396 traceframe if the lookup succeeded.
7397 (tfile_fetch_registers, tfile_xfer_partial)
7398 (tfile_get_trace_state_variable_value): Make sure the remote
7399 traceframe matches gdb's current traceframe.
7400 * remote.c (remote_traceframe_number): New global.
7401 (remote_open_1): Set it to -1.
7402 (set_remote_traceframe): New function.
7403 (remote_fetch_registers, remote_store_registers)
7404 (remote_xfer_memory, remote_xfer_partial)
7405 (remote_get_trace_state_variable_value): Make sure the remote
7406 traceframe matches gdb's current traceframe.
7407 (remote_trace_find): If looking up a traceframe using any method
7408 other than by number, make sure the current remote traceframe
7409 matches gdb's current traceframe. Update the current remote
7410 traceframe if the lookup succeeded.
7411 * infrun.c (fetch_inferior_event): Adjust.
7412 * tracepoint.h (set_current_traceframe): Declare.
7413 (get_traceframe_number, set_traceframe_number): Add describing
7416 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7418 Mark pieces of values as unavailable if the corresponding memory
7421 * valops.c: Include tracepoint.h.
7422 (value_fetch_lazy): Use read_value_memory.
7423 (read_value_memory): New.
7424 * value.h (read_value_memory): Declare.
7425 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7426 * exec.c (section_table_available_memory): New function.
7427 * exec.h (section_table_available_memory): Declare.
7429 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7431 * Makefile.in (SFILES): Add memrange.c.
7432 (HFILES_NO_SRCDIR): Add memrange.h.
7433 (COMMON_OBS): Add memrange.o.
7434 * memrange.c: New file.
7435 * memrange.h: New file.
7436 * tracepoint.c: Include memrange.h.
7437 (struct mem_range): Delete.
7438 (mem_range_s): Delete.
7439 (traceframe_available_memory): New function.
7440 * tracepoint.h (traceframe_available_memory): Declare.
7442 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7444 * target.h (struct traceframe_info): Forward declare.
7445 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7446 (struct target_ops) <to_traceframe_info>: New field.
7447 (target_traceframe_info): New.
7448 * target.c (update_current_target): Inherit and default
7450 * remote.c (PACKET_qXfer_traceframe_info): New.
7451 (remote_protocol_features): Register qXfer:traceframe-info:read.
7452 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7453 (remote_traceframe_info): New.
7454 (init_remote_ops): Install it.
7455 (_initialize_remote): Install "set/show remote traceframe-info"
7457 * tracepoint.h (parse_traceframe_info): Declare.
7458 * tracepoint.c (struct mem_range): New.
7459 (mem_range_s): New typedef.
7460 (struct traceframe_info): New.
7461 (traceframe_info): New global.
7462 (free_traceframe_info): New function.
7463 (clear_traceframe_info): New function.
7464 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7466 (build_traceframe_info): New function.
7467 (tfile_traceframe_info): New function.
7468 (init_tfile_ops): Install tfile_traceframe_info.
7469 (traceframe_info_start_memory, free_result): New functions.
7470 (memory_attributes, traceframe_info_elements): New globals.
7471 (parse_traceframe_info, get_traceframe_info): New functions.
7472 * features/traceframe-info.dtd: New file.
7473 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7475 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7477 Base support for <unavailable> value contents.
7479 * value.h (value_bytes_available): Declare.
7480 (mark_value_bytes_unavailable): Declare.
7481 * value.c (struct range): New struct.
7482 (range_s): New typedef.
7483 (ranges_overlap): New function.
7484 (range_lessthan): New function.
7485 (ranges_contain_p): New function.
7486 (struct value) <unavailable>: New field.
7487 (value_bytes_available): New function.
7488 (mark_value_bytes_unavailable): New function.
7489 (require_not_optimized_out): Constify parameter.
7490 (require_available): New function.
7491 (value_contents_all, value_contents): Require all bytes be
7493 (value_free): Free `unavailable'.
7494 (value_copy): Copy `unavailable'.
7495 * valprint.h (val_print_unavailable): Declare.
7496 * valprint.c (valprint_check_validity): Rename `offset' parameter
7497 to `embedded_offset'. If printing a scalar, check whether the
7498 value chunk is available.
7499 (val_print_unavailable): New.
7500 (val_print_scalar_formatted): Check whether the value is
7502 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7503 pretty-printing unavailable values.
7505 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7507 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7508 * c-typeprint.c (c_type_print_args): Update the function comment. New
7509 variable param_type, initialize it. Remove const/volatile qualifiers
7510 for language_cplus and !show_artificial. Use param_type.
7512 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7514 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7515 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7516 * symtab.h (struct symtab) <next>: Comment extension.
7518 2011-02-12 Yao Qi <yao@codesourcery.com>
7520 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7522 2011-02-11 Yao Qi <yao@codesourcery.com>
7524 * common/Makefile.in: Add copyright header.
7526 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7528 * infrun.c (proceed): Move switching out and in of tfind mode from
7530 (fetch_inferior_event): ... to here.
7532 2011-02-11 Yao Qi <yao@codesourcery.com>
7534 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7536 * configure.ac: Add common to sub dir.
7537 * configure: Regenerate.
7539 2011-02-11 Yao Qi <yao@codesourcery.com>
7543 * common/Makefile.in: New.
7544 * common/configure.ac: New.
7545 * common/aclocal.m4: New.
7546 * common/configure: Generate.
7548 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7550 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7551 side of the parenthesis.
7554 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7555 * vec.h (VEC_block_remove): Fix comment.
7557 2011-02-08 Michael Snyder <msnyder@vmware.com>
7559 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7561 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7563 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7564 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7567 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7570 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7572 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7573 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7575 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7577 * dwarf2read.c (read_subroutine_type): Set special calling
7578 convention flag for functions compiled by IBM XL C for OpenCL.
7579 * ppc-sysv-tdep.c: Include "dwarf2.h"
7580 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7582 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7583 IBM OpenCL vector types calling convention.
7584 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7585 (ppc_sysv_abi_broken_return_value): Likewise.
7586 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7587 types calling convention.
7588 (ppc64_sysv_abi_return_value): Likewise.
7589 * spu-tdep.c: Include "dwarf2.h"
7590 (spu_return_value): Implement IBM OpenCL vector types calling
7593 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7595 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7596 correct ABI for AltiVec vector arguments.
7598 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7600 * valprint.c (val_print): Extend comment.
7601 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7602 interface explanation to val_print.
7603 (ada_val_print_array): Adjust comment to current interface.
7604 (print_field_values): Adjust comment to current interface.
7605 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7606 explanation to val_print.
7607 * f-valprint.c (f_val_print): Ditto.
7608 * jv-valprint.c (java_val_print): Ditto.
7609 * m2-valprint.c (m2_val_print): Ditto.
7610 * p-valprint.c (pascal_val_print): Ditto.
7612 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7614 * breakpoint.c (parse_breakpoint_sals): Fix description.
7616 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7617 Oguz Kayral <oguzkayral@gmail.com>
7619 * python/py-inferior.c (python_on_normal_stop): New function.
7620 (python_on_resume): New function.
7621 (python_inferior_exit): New function.
7622 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7623 inferior_exit observers.
7624 * python/py-evtregistry.c: New file.
7625 * python/py-threadevent.c : New file.
7626 * python/py-event.c: New file.
7627 * python/py-evts.c: New file.
7628 * python/py-continueevent.c: New file.
7629 * python/py-bpevent.c: New file.
7630 * python/py-signalevent.c: New file.
7631 * python/py-exetiedevent.c: New file.
7632 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7633 Move struct breakpoint_object from here...
7634 * python/python-internal.h: ... to here.
7635 * python/py-event.h: New file.
7636 * python/py-events.h: New file.
7637 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7638 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7639 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7640 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7641 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7642 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7643 Add build rules for all the above.
7645 2011-02-04 Tom Tromey <tromey@redhat.com>
7647 * dwarf2read.c (dwarf2_section_empty_p): New function.
7648 (dwarf2_read_section): Use dwarf2_section_empty_p.
7649 (dwarf2_section_size): New function.
7650 (dwarf2_get_section_info): Unconditionally read section.
7651 (dwarf2_read_index): Use dwarf2_section_empty_p.
7652 (partial_read_comp_unit_head): Use dwarf2_section_size.
7653 (dwarf2_symbol_mark_computed): Likewise.
7655 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7657 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7659 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7661 * mips-linux-tdep.c: Include xml-syscall.h.
7662 (mips_linux_get_syscall_number): New function.
7663 (mips_linux_init_abi): Add calls to
7664 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7665 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7666 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7667 * syscalls/mips-n32-linux.xml: New file.
7668 * syscalls/mips-n64-linux.xml: New file.
7669 * syscalls/mips-o32-linux.xml: New file.
7671 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7673 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7674 Complain about inverted range entries.
7675 (dwarf2_record_block_ranges): Likewise.
7677 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7680 * breakpoint.c (update_watchpoint): Fix name of the
7681 update_global_location_list function.
7682 (print_one_breakpoint): Fix typo.
7683 (_initialize_breakpoint): Remove extra space in hbreak help
7685 * breakpoint.h (struct bp_location) <length>: Fix field
7688 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7690 * regcache.c (registers_changed_ptid): Don't explictly always
7691 clear `current_regcache'. Only clear current_thread_ptid and
7692 current_thread_arch when PTID matches. Only reinit the frame
7693 cache if PTID matches the current inferior_ptid. Move alloca(0)
7695 (registers_changed): ... here.
7697 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7699 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7700 starts with __stack_chk_guard as stack guard symbol.
7702 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7704 * disasm.c (compare_lines): Handle the end of sequence markers
7705 within the line table to better support disassembling over
7706 compilation unit boundaries.
7708 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7710 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7711 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7712 implementation even if no symbols are available.
7713 (thumb_analyze_prologue): Update call to skip_prologue_function.
7714 (arm_analyze_prologue): Likewise.
7716 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7718 * arm-tdep.c: Include "observer.h".
7719 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7720 (arm_exidx_data_key): New static variable.
7721 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7722 (struct arm_exidx_data): Likewise.
7723 (arm_exidx_data_free): New function.
7724 (arm_compare_exidx_entries): Likewise.
7725 (arm_obj_section_from_vma): Likewise.
7726 (arm_exidx_new_objfile): Likewise.
7727 (arm_find_exidx_entry): Likewise.
7728 (arm_exidx_fill_cache): Likewise.
7729 (arm_exidx_unwind_sniffer): Likewise.
7730 (arm_exidx_unwind): New global variable.
7731 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7732 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7733 observer. Register arm_exidx_data_key as objfile data.
7735 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7737 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7738 due to accessing uninitialized variable. Fix indentation.
7740 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7742 * c-valprint.c (c_value_print): When doing virtual base pointer
7743 adjustment, create a new value with adjusted contents rather than
7744 changing the contents of the value being printed (and getting it
7747 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7749 * xml-support.c (xml_find_attribute): New.
7750 (xinclude_start_include): Use it.
7751 * xml-support.h (xml_find_attribute): Declare.
7752 * memory-map.c (memory_map_start_memory)
7753 (memory_map_start_property): Use xml_find_attribute.
7754 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7756 * remote.c (start_thread): Use xml_find_attribute.
7757 * solib-target.c (library_list_start_segment)
7758 (library_list_start_section, library_list_start_library)
7759 (library_list_start_list): Use xml_find_attribute.
7760 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7761 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7762 (tdesc_start_field): Use xml_find_attribute.
7764 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7766 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7767 (BUILD_OCL_VTYPES): Update.
7769 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7771 * configure.ac: Work around non-GNU sed limitation when computing
7772 python version number.
7773 * configure: Regenerate.
7775 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7777 Fix debug printing of TYPE_INSTANCE.
7778 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7779 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7781 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7783 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7784 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7785 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7786 * ada-operator.inc: Rename the file to ...
7787 * ada-operator.def: ... here, wrap all the entries by macro OP.
7788 * expprint.c (op_name_standard): Remove all the entries. Include
7789 "std-operator.def" instead.
7790 * expression.h (enum exp_opcode): Include "std-operator.def" and
7791 "ada-operator.def". Move all the entries ...
7792 * std-operator.def: ... here, wrap all the entries by macro OP.
7794 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7796 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7797 * breakpoint.c (remove_jit_event_breakpoints): New function.
7798 * jit.c (jit_descriptor_addr): Delete.
7799 (registering_code): Delete.
7800 (clear_int): Delete.
7801 (jit_inferior_data): New variable.
7802 (struct jit_inferior_data): New type.
7803 (get_jit_inferior_data): New function.
7804 (jit_inferior_data_cleanup): New function.
7805 (jit_read_descriptor): Adjust.
7806 (jit_register_code): Adjust.
7807 (jit_breakpoint_re_set_internal): New function; move code here ...
7808 (jit_inferior_init): ... from here.
7809 (jit_breakpoint_re_set): Adjust.
7810 (jit_reset_inferior_data_and_breakpoints): New function.
7811 (jit_inferior_created_observer): Adjust.
7812 (jit_inferior_exit_hook): Adjust.
7813 (jit_executable_changed_observer): New function.
7814 (jit_event_handler): Adjust.
7815 (_initialize_jit): Adjust.
7817 2011-01-31 Michael Snyder <msnyder@vmware.com>
7819 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7822 2011-01-31 Tom Tromey <tromey@redhat.com>
7825 * python/python.c (execute_gdb_command): Call
7826 prevent_dont_repeat.
7827 * top.c (suppress_dont_repeat): New global.
7828 (dont_repeat): Use it.
7829 (prevent_dont_repeat): New function.
7830 * command.h (prevent_dont_repeat): Declare.
7832 2011-01-31 Tom Tromey <tromey@redhat.com>
7834 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7835 * python/py-breakpoint.c (bppy_set_silent): Use
7836 breakpoint_set_silent.
7837 (bppy_set_thread): Use breakpoint_set_thread.
7838 (bppy_set_task): Use breakpoint_set_task.
7839 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7840 (breakpoint_set_task): Declare.
7841 (make_breakpoint_silent): Remove.
7842 * breakpoint.c (breakpoint_set_silent): New function.
7843 (breakpoint_set_thread): Likewise.
7844 (breakpoint_set_task): Likewise.
7845 (make_breakpoint_silent): Remove.
7847 2011-01-31 Tom Tromey <tromey@redhat.com>
7849 * breakpoint.h (user_breakpoint_p): Declare.
7850 * breakpoint.c (user_breakpoint_p): New function.
7851 (breakpoint_1): Use it.
7852 (save_breakpoints): Likewise.
7854 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7856 * configure.ac: Add handling of Python distribution on Windows.
7857 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7858 sysconfig variables are not defined, then do not use them.
7859 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7860 instead. On Windows, return all paths using forward-slashes
7861 rather than backslashes.
7863 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7865 * configure.ac: Remove fallback behavior for building
7866 against Python. Remove tweaking of Python include path.
7867 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7868 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7869 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7870 Always restore CPPFLAGS and LIBS after linking test.
7871 * configure: Regenerated.
7872 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7873 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7874 * python/python-internal.h: Adjust includes of Python .h files.
7876 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7878 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7881 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7883 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7886 2011-01-31 Yao Qi <yao@codesourcery.com>
7888 * arm-linux-nat.c: Update calls to regcache_register_status
7889 instead of regcache_valid_p.
7890 * aix-thread.c: Likewise.
7891 * i386gnu-nat.c: Likewise.
7893 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7896 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7897 touching TYPE_FIELD_ARTIFICIAL.
7899 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7901 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7904 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7906 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7907 selected, don't try iterating over the traceframe's blocks.
7908 (tfile_has_stack): If there's no traceframe selected, then there's
7910 (tfile_has_registers): If there's no traceframe selected, then
7911 there's no registers.
7913 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7915 * target.c (memory_xfer_partial): No need to restore shadows if we
7916 haven't read anything.
7918 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7920 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7921 and val_print_scalar_formatted.
7923 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7925 * tracepoint.c (tfile_read): New.
7926 (tfile_open): Use it.
7927 (tfile_get_traceframe_address): Use it.
7928 (tfile_trace_find): Use it.
7929 (walk_blocks_callback_func): New typedef.
7930 (match_blocktype): New function.
7931 (traceframe_walk_blocks): New function.
7932 (traceframe_find_block_type): New function.
7933 (tfile_fetch_registers, tfile_xfer_partial)
7934 (tfile_get_trace_state_variable_value): Use
7935 traceframe_find_block_type and tfile_read.
7937 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7939 * remote-mips.c: Add internationalization mark ups. Remove
7940 trailing \n from already marked up strings.
7942 2011-01-26 Tom Tromey <tromey@redhat.com>
7944 * python/py-prettyprint.c (print_string_repr): Clear
7945 'addressprint' option when calling val_print_string.
7946 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7947 option when calling val_print_string.
7949 2011-01-26 Tom Tromey <tromey@redhat.com>
7951 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7953 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7955 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7956 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7957 (gdb_py_long_as_ulongest): New defines.
7958 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7959 (gdb_py_int_as_long): Declare.
7960 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7961 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7962 (valpy_long): Add comment.
7963 * python/py-utils.c (get_addr_from_python): Use
7964 gdb_py_long_as_ulongest. Handle overflow properly.
7965 (gdb_py_object_from_longest): New function.
7966 (gdb_py_object_from_ulongest): Likewise.
7967 (gdb_py_int_as_long): Likewise.
7968 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7969 * python/py-symtab.c (salpy_get_pc): Use
7970 gdb_py_long_from_ulongest.
7971 (salpy_get_line): Use PyInt_FromLong.
7972 * python/py-param.c (set_parameter_value): Use
7974 * python/py-lazy-string.c (stpy_get_address): Use
7975 gdb_py_long_from_ulongest.
7976 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7977 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7978 * python/py-breakpoint.c (bppy_set_thread): Use
7980 (bppy_set_task): Likewise.
7981 (bppy_set_ignore_count): Likewise.
7982 (bppy_set_hit_count): Likewise.
7983 * python/py-block.c (blpy_get_start): Use
7984 gdb_py_object_from_ulongest.
7985 (blpy_get_end): Likewise.
7986 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7988 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7991 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7992 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7993 equality test for objfile, initialize addr_low if needed.
7995 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7997 * tui/tui-regs.c (tui_register_format): Remove dead code.
7999 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8001 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8002 instead of print_scalar_formatted.
8003 (print_scalar_formatted): Don't handle 's' format strings here,
8004 and add an assertion that we never see such format here.
8005 * valprint.h (val_print_scalar_formatted): Declare.
8006 * valprint.c (val_print_scalar_formatted): New.
8007 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8008 instead of print_scalar_formatted.
8009 * jv-valprint.c (java_val_print): Ditto.
8010 * p-valprint.c (pascal_val_print): Ditto.
8011 * ada-valprint.c (ada_val_print_1): Ditto.
8012 * f-valprint.c (f_val_print): Ditto.
8013 * infcmd.c (registers_info): Ditto.
8014 * m2-valprint.c (m2_val_print): Ditto.
8016 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8018 * m2-valprint.c (print_unbounded_array): Pass
8019 value_contents_for_printing rather than value_contents, to
8020 m2_print_array_contents. Also pass in the value.
8022 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8024 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8025 (save_gdb_index_command): Switch to .gdb_index version 4.
8027 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8029 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8030 than frame_register, and always pass a valid value to val_print.
8032 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8034 Centralize printing "<optimized out>".
8036 * valprint.h (val_print_optimized_out): Declare.
8037 * cp-valprint.c (cp_print_value_fields): Use
8038 val_print_optimized_out.
8039 * jv-valprint.c (java_print_value_fields): Ditto.
8040 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8041 * printcmd.c (print_formatted): Ditto.
8042 * valprint.c (valprint_check_validity): Ditto.
8043 (value_check_printable): Ditto.
8044 (val_print_optimized_out): New.
8046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8048 * infcmd.c (default_print_registers_info): Allocate values so to
8049 never pass a NULL value to val_print.
8051 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8053 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8054 boolean. Make sure to always pass a value that matches the
8055 contents buffer to callees. Preserve `address' for following
8057 * value.c (value_contents_for_printing_const): New.
8058 (value_address): Constify value argument.
8059 * value.h (value_contents_for_printing_const): Declare.
8060 (value_address): Constify value argument.
8062 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8064 * regcache.c (struct regcache_descr): Rename
8065 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8066 and sizeof_cooked_register_valid_p to
8067 sizeof_cooked_register_status.
8068 (init_regcache_descr): Adjust.
8069 (struct regcache): Rename register_valid_p field to
8071 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8072 (do_cooked_read): Adjust.
8073 (regcache_valid_p): Rename to ...
8074 (regcache_register_status): ... this. Adjust.
8075 (regcache_invalidate): Adjust.
8076 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8078 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8079 as unavailable, not valid.
8080 (regcache_dump): Adjust.
8081 * regcache.h (enum register_status): New.
8082 (regcache_register_status): Declare.
8083 (regcache_invalidate): Delete declaration.
8084 * corelow.c (get_core_registers): Adjust.
8085 * tracepoint.c (tfile_fetch_registers): Adjust.
8086 * trad-frame.c (REG_VALUE): Rename to ...
8087 (TF_REG_VALUE): ... this.
8088 (REG_UNKNOWN): Rename to ...
8089 (TF_REG_UNKNOWN): ... this.
8090 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8091 * mi/mi-main.c (register_changed_p): Adjust.
8093 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8095 * regcache.c (struct regcache_descr): Remove outdated comment.
8096 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8098 (regcache_xmalloc): Rename to ...
8099 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8100 Allocate the regcache type accordingly.
8101 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8102 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8103 cooked registers, not raw.
8104 (regcache_dup_no_passthrough): Delete.
8105 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8106 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8107 mention obsolete write_register_bytes.
8108 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8110 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8112 Stop remote_read_bytes from handling partial reads itself.
8114 * remote-fileio.c: Include target.h.
8115 (remote_fileio_write_bytes): Delete.
8116 (remote_fileio_func_open, remote_fileio_func_write)
8117 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8119 (remote_fileio_func_stat): Use target_read_memory and
8120 target_write_memory.
8121 (remote_fileio_func_gettimeofday): Use target_write_memory.
8122 (remote_fileio_func_system): Use target_read_memory.
8123 * remote.c (remote_write_bytes): Make it static.
8124 (remote_read_bytes): Don't handle partial reads here.
8125 * remote.h (remote_read_bytes): Delete declaration.
8127 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8129 Simplify XML parsing a bit.
8131 * xml-support.h (gdb_xml_parse_quick): Declare.
8132 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8133 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8135 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8136 gdb_xml_create_parser_and_cleanup_1.
8137 (gdb_xml_parse_quick): New.
8138 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8139 * osdata.c (osdata_parse): Ditto.
8140 * remote.c (remote_threads_info): Ditto.
8141 * solib-target.c (solib_target_parse_libraries): Ditto.
8142 * xml-syscall.c (syscall_parse_xml): Ditto.
8143 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8145 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8147 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8148 with remote-mips.o added to gdb_target_obs.
8149 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8151 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8153 * ada-valprint.c (val_print_packed_array_elements): Pass the
8154 correct struct value to val_print.
8155 (ada_val_print_1): Ditto.
8157 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8159 Don't lose embedded_offset in printing routines throughout.
8161 * valprint.h (val_print_array_elements): Change prototype.
8162 * valprint.c (val_print_array_elements): Add `embedded_offset'
8163 parameter, and adjust to pass it down to val_print, while passing
8164 `valaddr' or `address' unmodified. Take embedded_offset into
8165 account when checking repetitions.
8166 * c-valprint.c (c_val_print): Pass embedded_offset to
8167 val_print_array_elements instead of adjusting `valaddr' and
8169 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8170 embedded_offset to val_print_array_elements instead of adjusting
8172 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8173 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8174 val_print_array_elements and pascal_object_print_value_fields
8175 instead of adjusting `valaddr'.
8176 (pascal_object_print_value_fields): Add `offset' parameter, and
8178 (pascal_object_print_value): Add `offset' parameter, and adjust to
8180 (pascal_object_print_static_field): Use
8181 value_contents_for_printing/value_embedded_offset, rather than
8183 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8184 parameter, and adjust to use it. Use
8185 value_contents_for_printing/value_embedded_offset, rather than
8187 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8188 (ada_val_print_array): Add `offset' parameter, and adjust to use
8190 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8191 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8192 Instead work with offsets. Use
8193 value_contents_for_printing/value_embedded_offset, rather than
8194 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8195 and use value_from_pointer to extract a target pointer, rather
8196 than value_from_longest.
8197 (print_variant_part): Add `offset' parameter. Replace
8198 `outer_valaddr' parameter by a new `outer_offset' parameter.
8199 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8200 (ada_value_print): Use
8201 value_contents_for_printing/value_embedded_offset, rather than
8203 (print_record): Add `offset' parameter, and adjust to pass it
8205 (print_field_values): Add `offset' parameter. Replace
8206 `outer_valaddr' parameter by a new `outer_offset' parameter.
8207 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8208 Use value_contents_for_printing/value_embedded_offset, rather than
8210 * d-valprint.c (dynamic_array_type): Use
8211 value_contents_for_printing/value_embedded_offset, rather than
8213 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8214 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8215 (java_print_value_fields): Take `offset' into account. Don't
8216 re-adjust `valaddr'. Instead pass down adjusted offsets.
8217 (java_val_print): Take `embedded_offset' into account. Pass it to
8218 java_print_value_fields.
8219 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8220 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8221 down adjusted offsets.
8222 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8223 (f_val_print): Take `embedded_offset' into account.
8225 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8227 * inflow.c: Include "gdbcmd.h".
8228 (interactive_mode): New static global, moved here from top.c.
8229 (show_interactive_mode): New function, moved here from top.c.
8230 use gdb_has_a_terminal instead of input_from_terminal_p to
8231 determine the current mode.
8232 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8234 (_initialize_inflow): Add the "set/show interactive-mode"
8235 commands. Moved here from top.c, after having adjusted slightly
8237 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8239 (input_from_terminal_p): Remove handling of "interactive-mode"
8240 setting, moved to infow.c.
8241 (init_main): Remove creation of the "set/show interactive-mode"
8242 commands, moved to inflow.c.
8244 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8246 * NEWS: Add entry for native ia64-hpux support.
8248 2011-01-19 Tom Tromey <tromey@redhat.com>
8251 * thread.c (free_thread): Free 'name'.
8252 (print_thread_info): Emit thread name. Change CLI output.
8253 (thread_name_command): New function.
8254 (do_captured_thread_select): Emit newline.
8255 (_initialize_thread): Register 'thread name' command.
8256 * target.h (struct target_ops) <to_thread_name>: New field.
8257 (target_thread_name): New macro.
8258 * target.c (update_current_target): Handle to_thread_name.
8259 * python/py-infthread.c (thpy_get_name): New function.
8260 (thpy_set_name): Likewise.
8261 (thread_object_getset): Add "name".
8262 * linux-nat.c (linux_nat_thread_name): New function.
8263 (linux_nat_add_target): Set to_thread_name.
8264 * gdbthread.h (struct thread_info) <name>: New field.
8266 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8268 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8269 (ada_val_print_1): Likewise.
8271 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8273 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8274 upper limit address is not greater than the function end address
8275 when the upper limit could not be computed using the debugging
8278 2011-01-17 Tom Tromey <tromey@redhat.com>
8280 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8282 * utils.c: Include gdb_regex.h.
8283 (do_regfree_cleanup): New function.
8284 (make_regfree_cleanup): Likewise.
8285 (get_regcomp_error): Likewise.
8286 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8288 2011-01-17 Tom Tromey <tromey@redhat.com>
8290 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8293 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8295 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8296 for internal variables.
8297 (last_was_structop): New static variable.
8298 (COMPLETE): New token.
8299 (field_exp): New rule to group all '.' suffix handling.
8300 Add mark_struct_expression calls when approriate to be able
8301 to correctly find fields for completion.
8302 (yylex): Adapt to handle field completion and set INTVAR when
8305 2011-01-14 Yao Qi <yao@codesourcery.com>
8307 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8308 save_reggroup, restore_reggroup and all_reggroup.
8310 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8312 * ada-valprint. (ada_printchar): Use the correct type length
8313 in call to ada_emit_char.
8314 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8316 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8318 * solib-som.h (hpux_major_release): Declare variable here.
8319 * solib-som.c: Remove <sys/utsname.h> header.
8320 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8321 (hpux_major_release): Make global, change default value to
8322 DEFAULT_HPUX_MAJOR_RELEASE.
8323 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8324 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8325 Add "solib-som.h" header.
8326 (set_hpux_major_release): New function.
8327 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8329 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8331 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8333 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8335 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8336 new-line at end of warning message.
8337 (ia64_hpux_store_register): Remove trailing new-line at end of
8339 * ia64-hpux-tdep.c: Rephrase comment.
8340 * solib-ia64-hpux.c (struct dld_info): Change type of field
8341 dld_flags from "long long" to ULONGEST.
8343 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8345 * target.h (deprecated_child_ops): Delete declaration.
8346 * target.c (deprecated_child_ops): Delete definition.
8348 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8350 * Makefile.in (hpux-thread.o): Delete rule.
8351 * configure.ac: Don't check for HPUX DCE threads support.
8352 * configure, config.in: Regenerate.
8353 * hppa-hpux-nat.c (child_suppress_run): Delete.
8354 (hppa_hpux_child_can_run): Delete.
8355 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8356 * hpux-thread.c: Delete.
8358 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8360 * hpux-thread.c (hpux_pid_to_str): Delete.
8362 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8364 * ada-valprint.c (ada_emit_char): Remove strange code.
8365 Check that c is <= UCHAR_MAX before passing it to isascii.
8366 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8368 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8370 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8371 to the case where instream is stdin.
8373 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8375 * ia64-tdep.h (struct regcache): Forward declare.
8376 (struct ia64_infcall_ops): New struct type.
8377 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8379 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8380 Renames ia64_find_global_pointer.
8381 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8382 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8383 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8385 (ia64_infcall_ops): New static global constant.
8386 (ia64_gdbarch_init): Set tdep->infcall_ops.
8387 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8388 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8389 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8390 (ia64_hpux_dummy_code): New static global constant.
8391 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8392 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8393 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8395 (ia64_hpux_infcall_ops): New static global constant.
8396 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8397 for inferior function calls to work properly on ia64-hpux.
8399 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8401 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8402 * ia64-tdep.h (struct frame_info): forward declaration.
8403 (struct gdbarch_tdep): Add field size_of_register_frame.
8404 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8405 to determine the size of the register frame.
8406 (ia64_size_of_register_frame): New function.
8407 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8408 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8409 (IA64_HPUX_UREG_REASON): New macro.
8410 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8412 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8413 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8414 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8417 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8419 Add support for ia64-hpux.
8420 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8421 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8423 * configure.host: Add handling for ia64-hpux hosts. Add associated
8425 * configure.tgt: Add handling for ia64-hpux targets.
8426 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8427 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8428 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8430 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8432 [ttrace] Compute thread list immediately after attach.
8433 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8435 (inf_ttrace_attach): Use it.
8437 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8439 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8440 if we could not determine the frame's function address. Instead,
8441 use the frame's PC, and then continue.
8443 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8445 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8446 not already defined.
8448 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8450 * ia64-tdep.c (ia64_struct_type_p): New function.
8451 (ia64_extract_return_value): Handle integral values that are
8452 less than 8 bytes long.
8453 (ia64_push_dummy_call): Likewise.
8455 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8457 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8458 floatformat_ia64_ext.
8459 (floatformat_ia64_ext_big): New static const.
8460 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8462 2011-01-12 Tom Tromey <tromey@redhat.com>
8464 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8466 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8467 (mi_cmd_thread_list_ids): Likewise.
8468 (mi_cmd_data_list_changed_registers): Likewise.
8469 (mi_cmd_data_list_register_values): Likewise.
8470 (mi_cmd_data_write_register_values): Likewise.
8471 (mi_cmd_data_evaluate_expression): Likewise.
8472 (mi_cmd_data_read_memory): Likewise.
8473 (mi_cmd_data_read_memory_bytes): Likewise.
8474 (mi_cmd_data_write_memory): Likewise.
8475 (mi_cmd_enable_timings): Likewise.
8476 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8477 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8478 (mi_cmd_var_delete): Likewise.
8479 (mi_cmd_var_set_format): Likewise.
8480 (mi_cmd_var_show_format): Likewise.
8481 (mi_cmd_var_info_num_children): Likewise.
8482 (mi_cmd_var_list_children): Likewise.
8483 (mi_cmd_var_info_type): Likewise.
8484 (mi_cmd_var_info_expression): Likewise.
8485 (mi_cmd_var_show_attributes): Likewise.
8486 (mi_cmd_var_assign): Likewise.
8487 (mi_cmd_var_update): Likewise.
8488 (mi_cmd_enable_pretty_printing): Likewise.
8489 (mi_cmd_var_set_update_range): Likewise.
8490 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8492 (mi_cmd_target_file_put): Likewise.
8493 (mi_cmd_target_file_delete): Likewise.
8494 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8496 (mi_cmd_stack_info_depth): Likewise.
8497 (mi_cmd_stack_list_locals): Likewise.
8498 (mi_cmd_stack_list_args): Likewise.
8499 (mi_cmd_stack_select_frame): Likewise.
8500 (mi_cmd_stack_select_frame): Likewise.
8501 (mi_cmd_stack_info_frame): Likewise.
8502 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8504 (mi_cmd_file_list_exec_source_files): Likewise.
8505 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8506 (mi_cmd_env_cd): Likewise.
8507 (mi_cmd_env_path): Likewise.
8508 (mi_cmd_env_dir): Likewise.
8509 (mi_cmd_inferior_tty_show): Likewise.
8510 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8511 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8512 (mi_cmd_break_watch): Likewise.
8514 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8516 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8517 (ppc_linux_insert_hw_breakpoint): Likewise.
8518 (ppc_linux_remove_hw_breakpoint): Likewise.
8519 (ppc_linux_insert_watchpoint): Likewise.
8521 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8522 Jan Kratochvil <jan.kratochvil@redhat.com>
8524 PR fortran/11104 and DWARF unbound arrays detection.
8525 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8526 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8527 unspecified upper bound.
8528 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8529 variables array_size_array, tmp_type and offset_item. New variable
8530 array. Remove call to f77_get_upperbound. New variables array_type
8531 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8532 the final call to deprecated_set_value_type.
8534 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8536 Make value allocations more lazy.
8537 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8538 instead of allocate_value and set_value_lazy when possible.
8539 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8540 instead of allocate_value and set_value_lazy.
8541 * findvar.c (value_of_register_lazy): Likewise.
8542 (read_var_value): Remove V preallocation, call just check_typedef in
8543 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8544 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8545 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8546 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8547 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8548 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8549 the end, remove set_value_lazy there.
8550 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8551 instead of allocate_value and set_value_lazy when possible.
8552 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8553 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8554 of allocate_value and set_value_lazy.
8555 (value_from_contents_and_address): Use allocate_value_lazy instead of
8556 allocate_value and set_value_lazy when possible.
8558 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8560 * disasm.c (dump_insns): Support dumping opcodes for MI.
8561 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8562 dumping of instruction opcodes.
8564 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8566 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8569 2011-01-11 Tom Tromey <tromey@redhat.com>
8571 * thread.c (do_captured_thread_select): Emit newline before
8574 2011-01-11 Michael Snyder <msnyder@vmware.com>
8576 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8577 * score-tdep.c: Ditto.
8578 * score-tdep.h: Ditto.
8579 * ser-base.c: Ditto.
8580 * ser-go32.c: Ditto.
8583 * ser-mingw.c: Ditto.
8584 * ser-pipe.c: Ditto.
8586 * ser-unix.c: Ditto.
8587 * sh64-tdep.c: Ditto.
8588 * shnbsd-nat.c: Ditto.
8592 * solib-darwin.c: Ditto.
8593 * solib-frv.c: Ditto.
8595 * solib-irix.c: Ditto.
8596 * solib-osf.c: Ditto.
8597 * solib-pa64.c: Ditto.
8598 * solib-som.c: Ditto.
8599 * solib-spu.c: Ditto.
8600 * solib-sunos.c: Ditto.
8601 * solib-svr4.c: Ditto.
8603 * sol-thread.c: Ditto.
8607 * sparc64-linux-tdep.c: Ditto.
8608 * sparc64-tdep.c: Ditto.
8609 * sparc-linux-nat.c: Ditto.
8610 * sparc-linux-tdep.c: Ditto.
8611 * sparc-sol2-nat.c: Ditto.
8612 * sparc-sol2-tdep.c: Ditto.
8613 * sparc-tdep.c: Ditto.
8614 * sparc-tdep.h: Ditto.
8615 * spu-tdep.c: Ditto.
8616 * stabsread.c: Ditto.
8617 * stabsread.h: Ditto.
8625 * target-descriptions.c: Ditto.
8626 * target-descriptions.h: Ditto.
8628 * target-memory.c: Ditto.
8629 * terminal.h: Ditto.
8632 * tracepoint.c: Ditto.
8633 * tracepoint.h: Ditto.
8634 * trad-frame.h: Ditto.
8635 * typeprint.c: Ditto.
8637 2011-01-11 Michael Snyder <msnyder@vmware.com>
8639 * ui-file.c: Comment cleanup, mostly periods and spaces.
8644 * v850-tdep.c: Ditto.
8645 * valarith.c: Ditto.
8647 * valprint.c: Ditto.
8648 * valprint.h: Ditto.
8653 * vax-tdep.c: Ditto.
8657 * windows-nat.c: Ditto.
8658 * windows-tdep.c: Ditto.
8659 * xcoffread.c: Ditto.
8660 * xcoffsolib.c: Ditto.
8661 * xml-support.c: Ditto.
8662 * xstormy16-tdep.c: Ditto.
8663 * xtensa-tdep.c: Ditto.
8664 * xtensa-tdep.h: Ditto.
8666 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8668 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8669 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8671 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8672 Thiago Jung Bauermann <bauerman@br.ibm.com>
8674 Implement support for PowerPC BookE ranged watchpoints.
8676 (struct breakpoint_ops) <resources_needed>: New method.
8677 Initialize to NULL in all existing breakpoint_ops instances.
8678 (struct breakpoint) <exact>: New field.
8679 (target_exact_watchpoints): Declare external global.
8680 * breakpoint.c (target_exact_watchpoints): New global flag.
8681 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8682 b->enable_state to bp_enabled before calling
8683 hw_watchpoint_used_count.
8684 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8685 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8687 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8688 if the watchpoint is exact.
8689 (resources_needed_watchpoint): New function.
8690 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8691 (watch_command_1): Set b->exact if the user asked for an exact
8692 watchpoint and one can be set.
8693 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8694 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8695 the user asks for an exact watchpoint and one can be set. Return
8696 number of needed debug registers to watch the expression.
8697 * gdbtypes.c (is_scalar_type): New function, based on
8698 valprint.c:scalar_type_p.
8699 (is_scalar_type_recursive): New function.
8700 * gdbtypes.h (is_scalar_type_recursive): Declare.
8701 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8702 handle regions when ranged watchpoints are available.
8703 (create_watchpoint_request): New function.
8704 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8705 create_watchpoint_request.
8706 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8707 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8708 `set powerpc' and `show powerpc' commands.
8709 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8710 Mention documentation comment in the target macro.
8711 (target_region_ok_for_hw_watchpoint): Document return value.
8713 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8715 * breakpoint.c (update_watchpoint): Decide on using a software or
8716 hardware watchpoint after the bp_locations are created.
8718 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8720 Convert hardware watchpoints to use breakpoint_ops.
8721 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8722 <insert_location>: ... this. Return int instead of void.
8723 Accept pointer to struct bp_location instead of pointer to
8724 struct breakpoint. Adapt all implementations.
8725 (breakpoint_ops) <remove>: Rename to...
8726 <remove_location>: ... this. Accept pointer to struct bp_location
8727 instead of pointer to struct breakpoint. Adapt all implementations.
8728 * breakpoint.c (insert_catchpoint): Delete function.
8729 (insert_bp_location): Call the watchpoint or catchpoint's
8730 breakpoint_ops.insert method.
8731 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8732 breakpoint_ops.remove method.
8733 (insert_watchpoint, remove_watchpoint): New functions.
8734 (watchpoint_breakpoint_ops): New structure.
8735 (watch_command_1): Initialize the OPS field.
8736 * inf-child.c (inf_child_insert_fork_catchpoint)
8737 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8738 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8739 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8741 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8742 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8743 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8744 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8745 * target.c (update_current_target): Change default implementation of
8746 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8747 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8748 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8749 to_set_syscall_catchpoint to return_one.
8750 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8751 (debug_to_insert_exec_catchpoint): Report return value.
8752 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8753 (to_insert_exec_catchpoint): Change declaration to return int instead
8756 2011-01-11 Michael Snyder <msnyder@vmware.com>
8758 * arm-tdep.c: Internationalization.
8761 * fork-child.c: Ditto.
8762 * nto-procfs.c: Ditto.
8763 * ppc-sysv-tdep.c: Ditto.
8765 * remote-mips.c: Ditto.
8767 * rs6000-nat.c: Ditto.
8768 * rs6000-tdep.c: Ditto.
8772 * xml-support.c: Ditto.
8773 * mi/mi-cmd-break.c: Ditto.
8774 * mi/mi-cmd-var.c: Ditto.
8775 * mi/mi-interp.c: Ditto.
8776 * mi/mi-main.c: Ditto.
8778 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8780 * remote-sim.c (gdbsim_store_register): Update API to
8781 sim_store_register to check more error conditions.
8783 2011-01-10 Michael Snyder <msnyder@vmware.com>
8785 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8786 * nto-tdep.c: Ditto.
8787 * nto-tdep.h: Ditto.
8788 * objc-exp.y: Ditto.
8789 * objc-lang.c: Ditto.
8790 * objfiles.c: Ditto.
8791 * objfiles.h: Ditto.
8792 * observer.c: Ditto.
8793 * opencl-lang.c: Ditto.
8796 * parser-defs.h: Ditto.
8799 * posix-hdep.c: Ditto.
8800 * ppcbug-rom.c: Ditto.
8801 * ppc-linux-nat.c: Ditto.
8802 * ppc-linux-tdep.c: Ditto.
8803 * ppc-linux-tdep.h: Ditto.
8804 * ppcnbsd-tdep.c: Ditto.
8805 * ppcobsd-tdep.c: Ditto.
8806 * ppcobsd-tdep.h: Ditto.
8807 * ppc-sysv-tdep.c: Ditto.
8808 * ppc-tdep.h: Ditto.
8809 * printcmd.c: Ditto.
8810 * proc-abi.c: Ditto.
8811 * proc-flags.c: Ditto.
8813 * proc-utils.h: Ditto.
8814 * progspace.h: Ditto.
8815 * prologue-value.c: Ditto.
8816 * prologue-value.h: Ditto.
8817 * psympriv.h: Ditto.
8819 * p-typeprint.c: Ditto.
8820 * p-valprint.c: Ditto.
8821 * ravenscar-sparc-thread.c: Ditto.
8822 * ravenscar-thread.c: Ditto.
8823 * ravenscar-thread.h: Ditto.
8825 * regcache.c: Ditto.
8826 * regcache.h: Ditto.
8828 * remote-fileio.c: Ditto.
8829 * remote-fileio.h: Ditto.
8831 * remote-m32r-sdi.c: Ditto.
8832 * remote-mips.c: Ditto.
8833 * remote-sim.c: Ditto.
8834 * rs6000-aix-tdep.c: Ditto.
8835 * rs6000-nat.c: Ditto.
8836 * rs6000-tdep.c: Ditto.
8838 2011-01-10 Michael Snyder <msnyder@vmware.com>
8840 * charset.c (validate): Internationalization.
8841 * coffread.c (read_one_sym): Ditto.
8842 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8843 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8844 * inflow.c (new_tty): Ditto.
8845 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8846 * m32c-tdep.c (m32c_return_value): Ditto.
8847 * mep-tdep.c (mep_store_return_value): Ditto.
8848 * score-tdep.c (score7_fetch_insn): Ditto.
8849 * ser-mingw.c (pipe_windows_open): Ditto.
8850 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8851 * spu-tdep.c (spu_register_type): Ditto.
8852 * tracepoint.c (trace_find_command): Ditto.
8853 * valarith.c (value_pos): Ditto.
8855 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8857 * ada-valprint.c (printstr): Minor comment reformatting.
8859 2011-01-08 Michael Snyder <msnyder@vmware.com>
8861 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8864 2011-01-08 Michael Snyder <msnyder@vmware.com>
8866 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8867 * hppa-hpux-tdep.c: Ditto.
8868 * hppa-linux-nat.c: Ditto.
8869 * hppa-linux-tdep.c: Ditto.
8870 * hppanbsd-tdep.c: Ditto.
8871 * hppa-tdep.c: Ditto.
8872 * hppa-tdep.h: Ditto.
8873 * hpux-thread.c: Ditto.
8874 * i386-cygwin-tdep.c: Ditto.
8875 * i386-darwin-nat.c: Ditto.
8876 * i386gnu-nat.c: Ditto.
8877 * i386-linux-nat.c: Ditto.
8878 * i386-linux-tdep.c: Ditto.
8879 * i386-nat.c: Ditto.
8880 * i386-nat.h: Ditto.
8881 * i386nbsd-tdep.c: Ditto.
8882 * i386-sol2-nat.c: Ditto.
8883 * i386-stub.c: Ditto.
8884 * i386-tdep.c: Ditto.
8885 * i386-tdep.h: Ditto.
8886 * i387-tdep.c: Ditto.
8887 * ia64-linux-nat.c: Ditto.
8888 * ia64-linux-tdep.c: Ditto.
8889 * ia64-tdep.c: Ditto.
8893 * inferior.c: Ditto.
8894 * inferior.h: Ditto.
8900 * iq2000-tdep.c: Ditto.
8901 * irix5-nat.c: Ditto.
8907 * jv-typeprint.c: Ditto.
8908 * jv-valprint.c: Ditto.
8909 * language.c: Ditto.
8910 * language.h: Ditto.
8911 * linespec.c: Ditto.
8912 * linux-fork.c: Ditto.
8913 * linux-nat.c: Ditto.
8914 * linux-thread-db.c: Ditto.
8915 * lm32-tdep.c: Ditto.
8917 2011-01-08 Michael Snyder <msnyder@vmware.com>
8919 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8921 * m2-typeprint.c: Ditto.
8922 * m2-valprint.c: Ditto.
8923 * m32c-tdep.c: Ditto.
8924 * m32r-linux-nat.c: Ditto.
8925 * m32r-rom.c: Ditto.
8926 * m32r-tdep.c: Ditto.
8927 * m32r-tdep.h: Ditto.
8928 * m68hc11-tdep.c: Ditto.
8929 * m58klinux-nat.c: Ditto.
8930 * m68k-tdep.c: Ditto.
8931 * m88k-tdep.c: Ditto.
8932 * m88k-tdep.h: Ditto.
8933 * machoread.c: Ditto.
8934 * macrocmd.c: Ditto.
8935 * macroexp.c: Ditto.
8936 * macrotab.c: Ditto.
8939 * mdebugread.c: Ditto.
8940 * mdebugread.h: Ditto.
8943 * memory-map.h: Ditto.
8944 * mep-tdep.c: Ditto.
8945 * microblaze-rom.c: Ditto.
8946 * microblaze-tdep.c: Ditto.
8948 * mips-irix-tdep.c: Ditto.
8949 * mips-linux-nat.c: Ditto.
8950 * mips-linux-tdep.c: Ditto.
8951 * mips-linux-tdep.h: Ditto.
8952 * mipsnbsd-nat.c: Ditto.
8953 * mipsnbsd-tdep.c: Ditto.
8954 * mipsread.c: Ditto.
8955 * mips-tdep.c: Ditto.
8956 * mips-tdep.h: Ditto.
8957 * mn10300-linux-tdep.c: Ditto.
8958 * mn10300-tdep.c: Ditto.
8959 * mn10300-tdep.h: Ditto.
8962 * moxie-tdep.c: Ditto.
8963 * moxie-tdep.h: Ditto.
8966 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8968 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8970 2011-01-08 Robert Millan <rmh@gnu.org>
8972 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8974 2011-01-07 Michael Snyder <msnyder@vmware.com>
8976 * charset.c (_initialize_charset): Fix typo in string.
8978 2011-01-07 Michael Snyder <msnyder@vmware.com>
8980 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8982 * tui/tui-layout.c (tui_set_layout_for_display_command):
8983 Split line so that operator goes to beginning of line.
8984 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8985 assignment out of if statement.
8987 2011-01-07 Michael Snyder <msnyder@vmware.com>
8989 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8990 * ada-lang.h: Ditto.
8991 * ada-tasks.c: Ditto.
8992 * ada-valprint.c: Ditto.
8993 * aix-threads.c: Ditto.
8994 * alpha-linux-nat.c: Ditto.
8995 * alpha-linux-tdep.c: Ditto.
8996 * alpha-mdebug-tdep.c: Ditto.
8997 * alpha-nat.c: Ditto.
8998 * alpha-osf1-tdep.c: Ditto.
8999 * alpha-tdep.c: Ditto.
9000 * alphabsd-nat.c: Ditto.
9001 * alphabsd-tdep.c: Ditto.
9002 * amd64-darwin-tdep.c: Ditto.
9003 * amd64-linux-nat.c: Ditto.
9004 * amd64-linux-tdep.c: Ditto.
9005 * amd64-sol2-tdep.c: Ditto.
9006 * amd64-tdep.c: Ditto.
9007 * amd64-fbsd-tdep.c: Ditto.
9008 * amd64-nbsd-tdep.c: Ditto.
9009 * amd64-obsd-tdep.c: Ditto.
9010 * amd64-linux-nat.c: Ditto.
9011 * amd64-linux-tdep.c: Ditto.
9012 * arm-tdep.c: Ditto.
9013 * arm-tdep.h: Ditto.
9014 * armnbsd-nat.c: Ditto.
9015 * avr-tdep.c: Ditto.
9016 * bfin-tdep.c: Ditto.
9018 * c-typeprintc: Ditto.
9019 * c-valprint.c: Ditto.
9020 * coff-pe-read.h: Ditto.
9021 * coffreead.c: Ditto.
9022 * cris-tdep.c: Ditto.
9024 * darwin-nat-info.c: Ditto.
9025 * darwin-nat.c: Ditto.
9026 * dbug-rom.c: Ditto.
9030 * dec-thread.c: Ditto.
9032 * demangle.c: Ditto.
9033 * dicos-tdep.c: Ditto.
9034 * dictionary.c: Ditto.
9035 * dictionary.h: Ditto.
9036 * dink32-rom.c: Ditto.
9038 * doublest.c: Ditto.
9040 * dummy-frame.c: Ditto.
9041 * dwarf2-frame.c: Ditto.
9042 * dwarf2expr.c: Ditto.
9043 * dwarf2loc.c: Ditto.
9044 * dwarf2read.c: Ditto.
9048 * event-top.h: Ditto.
9049 * exceptions.c: Ditto.
9050 * exceptions.h: Ditto.
9052 * expprint.c: Ditto.
9053 * expression.h: Ditto.
9057 * f-typeprint.c: Ditto.
9058 * f-valprint.c: Ditto.
9059 * fbsd-nat.c: Ditto.
9061 * fork-child.c: Ditto.
9064 * frv-linux-tdep.c: Ditto.
9065 * frv-tdep.c: Ditto.
9067 * gdb-stabs.h: Ditto.
9068 * gdb_assert.h: Ditto.
9069 * gdb_string.h: Ditto.
9070 * gdb_thread_db.h: Ditto.
9071 * gdb_wait.h: Ditto.
9072 * gdbarch.sh: Ditto.
9074 * gdbthread.h: Ditto.
9075 * gdbtypes.c: Ditto.
9076 * gdbtypes.h: Ditto.
9079 * gnu-v2-abi.c: Ditto.
9080 * gnu-v3-abi.c: Ditto.
9081 * go32-nat.c: Ditto.
9082 * gdbarch.c: Regenerate.
9083 * gdbarch.h: Regenerate.
9085 2011-01-07 Michael Snyder <msnyder@vmware.com>
9087 * ax-gdb.c: Adjust some long output strings.
9088 * breakpoint.c: Ditto.
9093 * linux-nat.c: Ditto.
9094 * solib-pa64.c: Ditto.
9095 * solib-som.c: Ditto.
9097 2011-01-06 Tom Tromey <tromey@redhat.com>
9101 * python/python.c (GdbMethods): Add "newest_frame" method.
9102 * python/python-internal.h (gdbpy_newest_frame): Declare.
9103 * python/py-frame.c (gdbpy_newest_frame): New function.
9105 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9107 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9108 * jit.c (jit_debug): New variable.
9109 (show_jit_debug): New function.
9110 (struct target_buffer): Use ULONGEST.
9111 (bfd_open_from_target_memory): Likewise.
9112 (jit_register_code, jit_inferior_init): Add debug output.
9113 (_initialize_jit): Register "debug jit" command.
9115 2011-01-06 Tom Tromey <tromey@redhat.com>
9117 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9118 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9121 2011-01-06 Tom Tromey <tromey@redhat.com>
9123 * python/py-frame.c (frapy_block): Use get_frame_block.
9125 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9127 Do not stop on SIGPRIO signals by default
9128 * infrun.c (_initialize_infrun): Unset signal_stop and
9129 signal_print for TARGET_SIGNAL_PRIO.
9131 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9133 * ada-tasks.c: Fix style violation in comment.
9135 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9137 * linespec.c (decode_compound, find_method): Remove trailing \n
9138 at end of error string.
9139 * solib-irix.c (irix_current_sos): Likewise.
9140 * varobj.c (uninstall_variable): Likewise.
9142 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9144 * copyright.py: New script.
9145 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9146 Launch emacs without exec'ing. Call copyright.py afterwards.
9148 2011-01-05 Michael Snyder <msnyder@vmware.com>
9150 * addrmap.c: Shorten lines of >= 80 columns.
9151 * arch-utils.c: Ditto.
9152 * arch-utils.h: Ditto.
9154 * ax-general.c: Ditto.
9156 * blockframe.c: Ditto.
9157 * breakpoint.c: Ditto.
9158 * buildsym.c: Ditto.
9160 * c-typeprint.c: Ditto.
9162 * coffread.c: Ditto.
9166 * cp-namespace.c: Ditto.
9167 * cp-support.c: Ditto.
9168 * dbug-rom.c: Ditto.
9173 * dictionary.c: Ditto.
9175 * doublest.c: Ditto.
9176 * dwarf2-frame.c: Ditto.
9177 * dwarf2expr.c: Ditto.
9178 * dwarf2loc.c: Ditto.
9179 * dwarf2read.c: Ditto.
9182 * event-loop.c: Ditto.
9183 * event-loop.h: Ditto.
9184 * exceptions.h: Ditto.
9186 * expprint.c: Ditto.
9187 * expression.h: Ditto.
9189 * f-valprint.c: Ditto.
9191 * frame-base.c: Ditto.
9192 * frame-unwind.c: Ditto.
9193 * frame-unwind.h: Ditto.
9197 * gdb-stabs.h: Ditto.
9198 * gdb_assert.h: Ditto.
9199 * gdb_dirent.h: Ditto.
9200 * gdb_obstack.h: Ditto.
9202 * gdbtypes.c: Ditto.
9203 * gdbtypes.h: Ditto.
9204 * inf-ttrace.c: Ditto.
9209 * inline-frame.h: Ditto.
9210 * language.c: Ditto.
9211 * language.h: Ditto.
9212 * libunwind-frame.c: Ditto.
9213 * libunwind-frame.h: Ditto.
9214 * linespec.c: Ditto.
9215 * linux-nat.c: Ditto.
9216 * linux-nat.h: Ditto.
9217 * linux-thread-db.c: Ditto.
9218 * machoread.c: Ditto.
9219 * macroexp.c: Ditto.
9220 * macrotab.c: Ditto.
9223 * mdebugread.c: Ditto.
9228 * objfiles.c: Ditto.
9229 * objfiles.h: Ditto.
9231 * p-typeprint.c: Ditto.
9232 * p-valprint.c: Ditto.
9234 * printcmd.c: Ditto.
9235 * proc-events.c: Ditto.
9237 * progspace.c: Ditto.
9238 * progspace.h: Ditto.
9239 * psympriv.h: Ditto.
9242 * regcache.c: Ditto.
9243 * regcache.h: Ditto.
9244 * remote-fileio.c: Ditto.
9246 * ser-mingw.c: Ditto.
9248 * ser-unix.c: Ditto.
9251 * solib-frv.c: Ditto.
9252 * solib-irix.c: Ditto.
9253 * solib-osf.c: Ditto.
9254 * solib-pa64.c: Ditto.
9255 * solib-som.c: Ditto.
9256 * solib-sunos.c: Ditto.
9257 * solib-svr4.c: Ditto.
9258 * solib-target.c: Ditto.
9262 * stabsread.c: Ditto.
9263 * stabsread.c: Ditto.
9266 * symfile-mem.c: Ditto.
9272 * target-descriptions.c: Ditto.
9273 * target-memory.c: Ditto.
9276 * terminal.h: Ditto.
9279 * tracepoint.c: Ditto.
9280 * tracepoint.h: Ditto.
9284 * user-regs.c: Ditto.
9285 * user-regs.h: Ditto.
9287 * valarith.c: Ditto.
9289 * valprint.c: Ditto.
9290 * valprint.h: Ditto.
9295 * xcoffread.c: Ditto.
9296 * xcoffsolib.c: Ditto.
9297 * xcoffsolib.h: Ditto.
9298 * xml-syscall.c: Ditto.
9299 * xml-tdesc.c: Ditto.
9301 2011-01-05 Michael Snyder <msnyder@vmware.com>
9303 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9304 * cli/cli-decode.c: Ditto.
9305 * cli/cli-dump.c: Ditto.
9306 * cli/cli-logging.c: Ditto.
9307 * cli/cli-script.c: Ditto.
9308 * cli/cli-setshow.c: Ditto.
9309 * common/signals.c: Ditto.
9310 * mi/mi-cmd-break.c: Ditto.
9311 * mi/mi-cmd-disas.c: Ditto.
9312 * mi/mi-cmd-stack.c: Ditto.
9313 * mi/mi-cmd-var.c: Ditto.
9314 * mi/mi-cmds.c: Ditto.
9315 * mi/mi-common.h: Ditto.
9316 * mi/mi-console.c: Ditto.
9317 * mi/mi-interp.c: Ditto.
9318 * mi/mi-main.c: Ditto.
9319 * osf-share/cma_attr.c: Ditto.
9320 * osf-share/cma_deb_core.h: Ditto.
9321 * osf-share/cma_debug_client.h: Ditto.
9322 * osf-share/cma_handle.h: Ditto.
9323 * osf-share/cma_mutex.h: Ditto.
9324 * osf-share/cma_stack_int.h: Ditto.
9325 * osf-share/cma_tcb_defs.h: Ditto.
9326 * python/py-auto-load.c: Ditto.
9327 * python/py-breakpoint.c: Ditto.
9328 * python/py-cmd.c: Ditto.
9329 * python/py-frame.c: Ditto.
9330 * python/py-objfile.c: Ditto.
9331 * python/py-param.c: Ditto.
9332 * python/py-progspace.c: Ditto.
9333 * python/py-symbol.c: Ditto.
9334 * python/py-value.c: Ditto.
9335 * python/python-internal.h: Ditto.
9336 * python/python.c: Ditto.
9337 * tui/tui-data.c: Ditto.
9338 * tui/tui-disasm.c: Ditto.
9339 * tui/tui-hooks.c: Ditto.
9340 * tui/tui-io.c: Ditto.
9341 * tui/tui-layout.c: Ditto.
9342 * tui/tui-regs.c: Ditto.
9343 * tui/tui-source.c: Ditto.
9344 * tui/tui-stack.c: Ditto.
9345 * tui/tui-win.c: Ditto.
9346 * tui/tui-windata.c: Ditto.
9347 * tui/tui-winsource.c: Ditto.
9349 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9351 * configure.ac, gdb.1: Copyright year update.
9353 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9355 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9356 this_pc_in_block, morestack_msym and morestack_name. Check for
9357 "__morestack" minimal symbol there.
9359 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9361 * symfile.c (find_sym_fns): Add call to dont_repeat.
9363 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9365 Copyright year update in most files (performed by copyright.sh).
9367 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9369 * top.c (print_gdb_version): Update copyright year in version output.
9371 For older changes see ChangeLog-2010.
9377 version-control: never