1 2011-09-15 Paul Koning <paul_koning@dell.com>
3 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
4 count of item appended to list.
5 * python/py-type.c (typy_fields): Likewise.
7 2011-09-15 Paul Koning <paul_koning@dell.com>
9 * MAINTAINERS (Write After Approval): Add myself to the list.
11 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
14 * linux-fork.c (checkpoint_command): Disallow checkpointing of
15 processes with multiple threads.
16 (inf_has_multiple_thread_cb): New function.
17 (inf_has_multiple_threads): New function.
19 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
21 PR Python/12692 Add gdb.selected_inferior() to Python interface.
22 * python/py-inferior.c (GdbMethods): New Python method definition.
24 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
26 Handle multiple breakpoint hits in Python interface:
27 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
28 variable to breakpoints.
29 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
30 bps instead of single breakpoint. Fix some space typos.
31 * python/py-stopevent.c (create_breakpoint_event_object): Rename
32 variable to breakpoints.
34 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
36 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
37 note if the breakpoint is internal.
39 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
41 * MAINTAINERS (Right After Approval): Add myself to the list
43 2011-09-14 Pedro Alves <pedro@codesourcery.com>
45 * infrun.c (prepare_for_detach, wait_for_inferior)
46 (fetch_inferior_event): Don't flush the register cache.
47 * remote.c (struct stop_reply) <regcache>: Add comment.
49 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
51 Remove excessive DWARF expressions memory duplication.
52 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
54 (indirect_pieced_value): Remove variable result. Remove variable
55 back_to and its use for baton.data.
56 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
58 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
59 Update the function comment.
61 2011-09-13 Pedro Alves <pedro@codesourcery.com>
63 * inferior.h (ALL_INFERIORS): New.
64 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
66 (thread_db_find_new_threads): Look for threads in all inferiors.
68 2011-09-13 Pedro Alves <pedro@codesourcery.com>
70 * breakpoint.c (update_watchpoint): Handle the case of the
71 watchpoint to update not being in the breakpoint list yet.
72 (hw_watchpoint_use_count): New, factored out from
73 hw_watchpoint_used_count.
74 (hw_watchpoint_used_count): Rename to ...
75 (hw_watchpoint_used_count_others): ... this. Add `except'
76 parameter. Don't count resources of `except'. Use
77 hw_watchpoint_use_count.
79 2011-09-13 Pedro Alves <pedro@codesourcery.com>
81 * gdbthread.h (enum thread_state): Moved here.
82 (struct thread_info): Rename `executing_' field to `executing' and
84 * thread.c (enum thread_state): Moved to gdbthread.h.
85 (new_thread, add_thread_silent, delete_thread_1)
86 (any_live_thread_of_process, thread_alive, set_running)
87 (set_running, is_thread_state, any_running, is_executing)
88 (set_executing, finish_thread_state, print_thread_info)
89 (do_captured_thread_select): Adjust.
91 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
93 Fix compatibility with gcc < 4.3 and non-gcc compilers.
94 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
96 2011-09-12 Pedro Alves <pedro@codesourcery.com>
97 Matt Rice <ratmice@gmail.com>
101 * interps.c (struct interp) <interpreter_out>: Delete field.
102 (interp_new): Remove the data and uiout parameters and adjust.
103 (interp_set): Only set the current_uiout from the interpreter's
104 uiout after initializing the interpreter. Adjust call to
106 (interp_ui_out): Adjust to call procs->ui_out_proc.
107 (interp_data, interp_name): New.
108 * interps.h (interp_init_ftype): Add `self' parameter.
109 (interp_ui_out_ftype): New typedef.
110 (struct interp_procs) <ui_out_proc>: New method pointer.
111 (interp_new): Remove the data and uiout parameters.
112 (interp_data, interp_name): Declare.
113 * tui/tui-interp.c (tui_init): Adjust prototype.
115 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
116 tui_out here. Adjust call to interp_new.
117 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
118 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
120 (_initialize_cli_interp): Install it. Adjust call to interp_new.
121 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
122 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
123 Initialize mi->uiout depending on the mi_version as extracted from
124 the interpreter's name.
126 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
127 interp_new. Don't allocate the ui_out's of the interpreters here.
129 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
131 * solib.c (solib_used): New function.
132 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
133 by another so_list object before freeing it.
135 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
138 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
141 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
144 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
145 (amd64_skip_xmm_prologue): ... this new function. Describe its
146 parameters. No longer use amd64_prologue_line_bug.
147 * defs.h (producer_is_gcc_ge_4): New declaration.
148 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
149 (process_full_comp_unit): Update its caller. Remove
150 amd64_prologue_line_bug initialization.
151 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
152 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
154 2011-09-09 Pedro Alves <pedro@codesourcery.com>
156 * linux-nat.h (enum resume_kind): New.
157 (struct lwp_info) <last_resume_kind>: New field.
158 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
159 resume_stop on the new lwp.
160 (add_lwp): Set last_resume_kind as resume_continue by default.
161 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
162 (resume_lwp): New, factored out from resume_callback. Also check
163 for pending status in lp->waitstatus.
164 (resume_callback): Reimplement.
165 (resume_clear_callback): Set last_resume_kind as resume_stop.
166 (resume_set_callback): Set last_resume_kind as resume_continue.
167 (linux_nat_resume, linux_handle_extended_wait): Set
169 (running_callback): Also check lp->waitstatus for pending events.
170 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
172 (stop_and_resume_callback): Don't re-resume if the core wanted the
173 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
174 using an invalidated pointer.
175 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
176 SIGSTOPs if the core wanted the LWP to stop.
177 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
178 wanted the lwp to stop. If the core wanted the lwp to stop, and
179 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
180 of TARGET_SIGNAL_STOP.
181 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
182 here. Instead, signal the lwp, and set the last_resume_kind to
185 2011-09-09 Pedro Alves <pedro@codesourcery.com>
187 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
188 -1 (error), if the lwp exits right after attaching.
190 2011-09-08 Doug Evans <dje@google.com>
192 * py-cmd.c: Some minor formatting fixes.
193 (gdbpy_parse_command_name): Rename text arg to name, make const.
195 * python-internal.h (gdbpy_parse_command_name): Update.
197 * cli/cli-decode.c (add_cmd): Add comment.
199 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
202 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
203 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
204 * dwarf2read.c (process_full_comp_unit): Initialize
205 amd64_prologue_line_bug.
206 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
208 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
210 Fix TUI screen corruption.
211 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
214 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * findvar.c (read_var_value): Never return NULL, throw an error
217 instead. Update the function comment. State symbol name in the error
219 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
221 * stack.c (print_frame_args): Likewise.
222 * valops.c (value_of_variable): Likewise.
224 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
226 * stack.c (print_frame_args): New variable except. Wrap
227 read_var_value and common_val_print into TRY_CATCH.
229 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
231 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
232 caller to value_of_this.
233 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
235 * valops.c (value_of_this): Remove parameter complain and variable ret.
236 Update function comment. Never return NULL by this code.
237 (value_of_this_silent): New function.
238 * value.h (value_of_this): Remove parameter complain.
239 (value_of_this_silent): New declaration.
241 2011-09-07 Yao Qi <yao@codesourcery.com>
243 * gdbthread.h (struct thread_info): Remove fields
244 `stepping_through_solib_after_catch' and
245 `stepping_through_solib_catchpoints'.
246 * infrun.c (init_thread_stepping_state): Update.
247 (process_event_stop_test, currently_stepping): Update.
248 (currently_stepping_or_nexting_callback): Update.
250 2011-09-07 Yao Qi <yao@codesourcery.com>
252 * gdbthread.h (struct thread_info): Comment on field
253 `step_after_step_resume_breakpoint'.
255 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
257 * remote.c (remote_console_output): Reindent.
259 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
261 * frame.c (has_stack_frames): Check for currently selected
264 2011-09-06 Pedro Alves <pedro@codesourcery.com>
266 * event-top.h (MAXPROMPTS, struct prompts): Delete.
267 (set_async_annotation_level, set_async_prompt, pop_prompt)
268 (push_prompt, new_async_prompt): Delete declarations.
269 * top.h (get_prompt, set_prompt): Change prototype.
270 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
272 * top.c (command_loop):
273 (top_prompt): New global.
274 (get_prefix, set_prefix, get_suffix, ): Delete.
275 (get_prompt, set_prompt): Rewrite.
276 (show_new_async_prompt): Rename to ...
277 (show_prompt): ... this.
278 (init_main): Adjust. Don't handle --annotate=2 here.
279 * event-top.c (new_async_prompt): Delete.
280 (the_prompts): Delete.
281 (more_to_come): Make static.
282 (display_gdb_prompt): Use top_level_prompt() to compute the top
283 level prompt, and don't notify the before_prompt observers
284 directly here. Always trick readline into not trying to display
285 the prompt if sync_execution and displaying the primary prompt.
286 If displaying a local/secondary prompt, always show it, even if
287 sync_execution is set.
288 (change_annotation_level): Delete.
289 (top_level_prompt): New, based on change_annotation_level.
290 (push_prompt, pop_prompt): Delete.
291 (async_disable_stdin): No longer pushes prompt.
292 (command_line_handler): No longer pushes or pops prompt. If more
293 input is expected, call display_gdb_prompt with an explicit empty
295 (async_stop_sig): Adjust.
296 (set_async_annotation_level, set_async_prompt): Delete.
297 * python/python.c (before_prompt_hook): Adjust.
299 2011-09-05 Pedro Alves <pedro@codesourcery.com>
303 * infrun.c (fetch_inferior_event): Check if there's a selected
304 thread before checking if the selected thread is executing.
306 2011-09-05 Pedro Alves <pedro@codesourcery.com>
308 * inf-loop.c (execute_command): Don't check if the current thread
309 if running before synchronously waiting for command completion.
310 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
312 (normal_stop): Call async_enable_stdin here.
313 * inf-loop.c (inferior_event_handler): Don't call
314 async_enable_stdin, nor handle "set exec-done-display" here.
316 2011-09-04 Joel Brobecker <brobecker@adacore.com>
320 2011-09-04 Joel Brobecker <brobecker@adacore.com>
322 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
324 2011-09-04 Joel Brobecker <brobecker@adacore.com>
326 * NEWS: Add entry for OpenBSD/NetBSD build failure.
328 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
332 2011-09-02 Matt Rice <ratmice@gmail.com>
335 * event-top.c (cli_command_loop): Replace readline setup with
336 direct call to display_gdb_prompt.
337 (display_gdb_prompt): Do not call observer mechanism during
338 synchronous execution.
340 2011-09-02 Pedro Alves <pedro@codesourcery.com>
342 * linux-nat.c (in_pid_list_p): New.
343 (linux_record_stopped_pid): Delete.
344 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
345 already attached to the LWP. Return an indication if so.
346 (linux_nat_filter_event): Adjust.
347 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
348 returning an indication to ignore this thread.
350 2011-09-02 Pedro Alves <pedro@codesourcery.com>
352 * top.c: Include interps.h.
353 (execute_command): If the target can async, but the interpreter is
354 in sync mode, synchronously wait for the command to finish before
356 (execute_command_to_string): Force the interpreter to sync mode.
357 * infrun.c: Include interps.h.
358 (fetch_inferior_event): Don't restore the prompt yet if the
359 interpreter is in sync mode.
360 * interps.c (interpreter_async): New global.
361 * interps.h (interpreter_async): Declare.
362 * inf-loop.c: Include interps.h.
363 (inferior_event_handler): Don't print the language change or run
364 breakpoint commands yet if the interpreter in is sync mode.
365 * main.c (captured_command_loop): Flip the interpreter to async
367 * cli/cli-script.c: Include interps.h.
368 (execute_user_command, while_command, if_command): Force the
369 interpreter to sync mode.
370 * python/python.c: Include interps.h.
371 (python_command, execute_gdb_command): Force the interpreter to
374 2011-09-02 Pedro Alves <pedro@codesourcery.com>
376 * value.c (show_convenience): Catch errors thrown while printing
377 each internal variable.
378 * infrun.c (validate_siginfo_access): New function.
379 (siginfo_value_read, siginfo_value_write): Call it.
381 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
384 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
385 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
388 2011-08-29 Yao Qi <yao@codesourcery.com>
390 * solib-dsbt.c (bfd_lookup_symbol): Removed.
392 (enable_break2): Update caller.
393 * solib-frv.c (bfd_lookup_symbol): Removed.
395 (enable_break2): Update caller.
396 * solib-pa64.c (bfd_lookup_symbol): Removed.
398 * solib-svr4.c (bfd_lookup_symbol): Removed.
399 (cmp_name_and_sec_flags): New.
400 (enable_break): Update caller.
401 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
402 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
403 (gdb_bfd_lookup_symbol): New.
404 * solib.h: Functions declarations.
406 2011-08-29 Yao Qi <yao@codesourcery.com>
408 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
411 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
413 Fix TUI stepi on code without symbols.
414 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
417 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
420 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
421 and the static keyword.
422 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
423 Make prefix an array.
424 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
425 * mi/mi-main.c (get_register): Remove stb initialization and the static
428 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
430 Code cleanup - make mi_opt const.
431 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
433 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
434 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
435 (mi_cmd_env_dir): Likewise.
436 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
437 (mi_cmd_target_file_put): Likewise.
438 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
439 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
440 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
441 (mi_valid_noargs): Make opts const.
442 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
443 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
444 (mi_cmd_data_read_memory): Likewise.
445 (mi_cmd_data_read_memory_bytes): Likewise.
446 (mi_cmd_data_write_memory): Likewise.
448 2011-08-26 Matt Rice <ratmice@gmail.com>
450 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
451 bcache_xmalloc, replace bcache_xmalloc with call to
452 psymbol_bcache_init for psymbol_cache.
453 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
455 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
457 * inf-loop.c (inferior_event_handler): Add exception_print in
460 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
462 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
463 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
464 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
465 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
466 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
467 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
468 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
469 * infrun.c (fetch_inferior_event): Call
470 make_bpstat_clear_actions_cleanup.
471 * top.c (execute_command): New variable cleanup_if_error, call
472 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
473 * utils.c (do_bpstat_clear_actions_cleanup)
474 (make_bpstat_clear_actions_cleanup): New functions.
476 2011-08-26 Pedro Alves <pedro@codesourcery.com>
478 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
479 either the parent or the child forks. Rename a couple locals.
481 2011-08-26 Pedro Alves <pedro@codesourcery.com>
483 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
484 library call. Avoid reading the `status' local if all waitpid
487 2011-08-26 Pedro Alves <pedro@codesourcery.com>
489 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
490 opening /proc/PID/task always succeeds.
492 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
494 * linespec.c (symtab_from_filename): Check for the end of string.
496 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
499 * varobj.c (cplus_describe_child): Add the keyword
500 'class' to the output of the method when dealing
501 with a cast to a base class.
503 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
505 No functionality change.
506 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
507 function comment a reference, new variables tp and bs, move here code
508 from throw_exception.
509 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
510 describe it in the comment.
511 * exceptions.c (throw_exception): Remove variable tp, move the code for
512 bpstat_clear_actions to bpstat_clear_actions.
514 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
516 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
517 * linux-nat.c: Include linux-procfs.h.
518 (linux_proc_get_tgid): Move to ...
519 * common/linux-procfs.c: ... here. New file.
520 * common/linux-procfs.h: New file.
521 * linux-thread-db.c: Include linux-procfs.h.
522 * Makefile.in: Update dependencies.
523 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
524 * config/arm/linux.mh: Likewise.
525 * config/i386/linux.mh: Likewise.
526 * config/i386/linux64.mh: Likewise.
527 * config/ia64/linux.mh: Likewise.
528 * config/m32r/linux.mh: Likewise.
529 * config/m68k/linux.mh: Likewise.
530 * config/mips/linux.mh: Likewise.
531 * config/pa/linux.mh: Likewise.
532 * config/pa/linux.mh: Likewise.
533 * config/powerpc/linux.mh: Likewise.
534 * config/powerpc/ppc64-linux.mh: Likewise.
535 * config/powerpc/spu-linux.mh: Likewise.
536 * config/sparc/linux.mh: Likewise.
537 * config/sparc/linux64.mh: Likewise.
538 * config/xtensa/linux.mh: Likewise.
540 2011-08-24 Hui Zhu <teawater@gmail.com>
542 * tracepoint.c (cond_string_is_same): New function.
543 (find_matching_tracepoint): Add condition check
544 by cond_string_is_same.
546 2011-08-23 Josh Matthews <josh@joshmatthews.net>
548 Fix build error in Darwin port.
549 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
551 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
554 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
555 (command_line_is_silent): New function.
556 (bpstat_do_actions_1): No longer use commands_left, use
557 command_line_is_silent for commands.
558 (bpstat_alloc): Remove clearing of commands_left.
559 (bpstat_stop_status): Remove initialization of commands_left, use
560 command_line_is_silent.
561 * breakpoint.h (struct bpstats): Remove commands_left.
563 2011-08-18 Keith Seitz <keiths@redhat.com>
566 * cp-name-parser.y (struct demangle_info): Remove unused
569 (allocate_info): Change return type to struct demangle_info *.
570 Always allocate a new demangle_info.
571 Remove unused PREV pointer.
572 (cp_new_demangle_parse_info): New function.
573 (cp_demangled_name_parse_free): New function.
574 (do_demangled_name_parse_free_cleanup): New function.
575 (make_cleanup_cp_demangled_name_parse_free): New function.
576 (cp_demangled_name_to_comp): Change return type to
577 struct demangle_parse_info *.
578 Allocate a new storage for each call.
579 (main): Update usage for cp_demangled_name_to_comp
581 * cp-support.h (struct demangle_parse_info): New structure.
582 (cp_demangled_name_to_comp): Update API change for
584 (cp_new_demangle_parse_info): Declare.
585 (make_cleanup_cp_demangled_name_parse_free): New declaration.
586 (cp_demangled_name_parse_free): Declare.
587 * cp-support.c (cp_canonicalize_string): Update API
588 change for cp_demangled_name_to_comp.
589 (mangled_name_to_comp): Likewise.
590 Return struct demangle_parse_info, too.
591 (cp_class_name_from_physname): Update mangled_name_to_comp
593 (method_name_from_physname): Likewise.
594 (cp_func_name): Update API change for cp_demangled_name_to_comp.
595 (cp_remove_params): Likewise.
596 * python/py-type.c (typy_legacy_template_argument): Likewise.
598 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
599 (cp_merge_demangle_parse_infos): Declare.
600 * cp-support.c (ignore_typedefs): New file global.
601 (copy_string_to_obstack): New function.
602 (inspect_type): New function.
603 (replace_typedefs): New function.
604 (replace_typedefs_qualified_name): New function.
605 (cp_canonicalize_string_no_typedefs): New function.
606 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
607 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
608 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
609 instead of cp_canonicalize_string.
610 (find_method): Likewise.
611 (decode_compound): Before looking up the name, call
612 cp_canonicalize_string_no_typedefs.
613 (decode_variable): Likewise.
615 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
616 Tom Tromey <tromey@redhat.com>
617 Matt Rice <ratmice@gmail.com>
619 * python/lib/gdb/prompt.py: New file.
620 * python/lib/gdb/command/prompt.py: New file.
621 * NEWS: Document set extended-prompt and gdb.prompt library
623 2011-08-16 Yao Qi <yao@codesourcery.com>
625 * tic6x-linux-tdep.c: Move const arrays definition from here...
626 * tic6x-tdep.c: to here ...
628 2011-08-14 Yao Qi <yao@codesourcery.com>
630 * NEWS: New port to Texas Instruments TMS320C6x.
632 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
633 Bernd Schmidt <bernds@codesourcery.com>
634 Yao Qi <yao@codesourcery.com>
636 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
637 * solib-dsbt.c: New file. Support DSBT shared object.
638 * tic6x-linux-tdep.c: New file.
639 * tic6x-tdep.c: New file.
640 * tic6x-tdep.h: New file.
642 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
643 Yao Qi <yao@codesourcery.com>
645 * remote.c (PACKET_qXfer_fdpic): New enum value.
646 (remote_protocol_features): Add qXfer:fdpic:read packet.
647 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
648 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
649 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
651 2011-08-14 Yao Qi <yao@codesourcery.com>
653 Target description for tic6x.
654 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
655 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
656 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
657 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
658 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
659 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
660 * features/tic6x-c64xp-linux.xml: New.
661 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
662 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
663 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
664 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
665 * regformats/tic6x-c64xp.dat,
666 regformats/tic6x-c62x-linux.dat: Generated.
667 * regformats/tic6x-c64x-linux.dat,
668 regformats/tic6x-c64xp-linux.dat: Generated.
669 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
670 features/tic6x-*.c files.
671 Add regformats/tic6x-*.dat files.
673 2011-08-12 Doug Evans <dje@google.com>
675 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
676 * python/py-symbol.c (sympy_get_type): New function.
677 (symbol_object_getset): Add "type".
679 2011-08-12 Pedro Alves <pedro@codesourcery.com>
683 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
685 (tui_show_register_group): Don't store a byte buffer in the data
687 (tui_register_format): Skip registers with an empty name.
688 (tui_get_register): Store a struct value in the data element's
689 value field instead of a byte buffer holding the raw register
690 contents. Account for optimized-out and unavailable registers
691 when comparing register contents.
693 2011-08-09 Pedro Alves <pedro@codesourcery.com>
695 * printcmd.c (current_display_number): Update comment.
696 (disable_current_display_cleanup): Delete.
697 (do_one_display): Use make_cleanup_restore_integer. Gracefully
698 catch errors thrown while evaluating and printing the display.
700 2011-08-09 Tom Tromey <tromey@redhat.com>
702 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
704 2011-08-09 Pedro Alves <pedro@codesourcery.com>
706 * elfread.c (elf_symtab_read): Rework comments.
707 * maint.c (maintenance_command): Ditto.
708 * somread.c (som_symtab_read): Ditto.
709 * solib.c (solib_find, solib_map_sections, update_solib_list)
710 (solib_add, info_sharedlibrary_command, solib_name_from_address)
711 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
712 (sharedlibrary_command, no_shared_libraries): Ditto.
713 * solib-irix.c (locate_base, disable_break, enable_break)
714 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
715 (irix_current_sos, irix_open_symbol_file_object)
716 (irix_special_symbol_handling): Ditto.
717 * solib-sunos.c (locate_base, first_link_map_member)
718 (sunos_current_sos, disable_break, enable_break)
719 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
721 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
722 (open_symbol_file_object, svr4_current_sos, enable_break)
723 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
725 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
726 (frv_current_sos, enable_break, frv_special_symbol_handling)
727 (frv_solib_create_inferior_hook): Ditto.
728 * solist.h (struct target_so_ops): Extend the comments of the
729 special_symbol_handling, current_sos and open_symbol_file_object
732 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
734 * python/lib/gdb/__init__.py: Auto-load files in command and
735 function directories.
736 * python/python.c (finish_python_initialization): Use
738 * python/lib/gdb/command/pretty_printers.py: Self register
740 * NEWS: Document auto-loading.
742 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
744 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
745 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
746 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
748 2011-08-08 Tom Tromey <tromey@redhat.com>
750 * breakpoint.c (clean_up_filters): Remove.
751 (catch_syscall_split_args): Use VEC_cleanup.
753 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
755 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
756 (main): Uncomment "Demangling error\n".
758 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
760 * solib-target.c (segment_attributes): Make them static.
761 (section_attributes, library_children, library_attributes): Likewise.
762 (library_list_children, library_list_attributes): Likesise.
763 (library_list_elements): Likewise.
765 2011-08-05 Pedro Alves <pedro@codesourcery.com>
767 * exceptions.c (throw_exception): Don't disable the current
769 * printcmd.c (disable_current_display_cleanup): New function.
770 (do_one_display): Install a cleanup to disable the current display
771 if doing the display throws.
773 2011-08-05 Eli Zaretskii <eliz@gnu.org>
775 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
776 initialization of the tp_new member to the corresponding
777 gdbpy_initialize_* function.
778 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
779 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
780 * python/py-function.c (gdbpy_initialize_functions): Likewise.
781 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
782 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
784 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
786 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
787 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
788 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
789 references to current_uiout.
791 2011-08-04 Pedro Alves <pedro@codesourcery.com>
793 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
794 (start_event_loop): Use TRY_CATCH instead of catch_errors.
795 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
796 * top.c (gdb_readline_wrapper): Adjust.
797 * tui/tui-interp.c (tui_command_loop):
798 (_initialize_tui_interp): Don't install it.
800 2011-08-04 Pedro Alves <pedro@codesourcery.com>
802 * ui-out.h (uiout): Rename to ...
803 (current_uiout): ... this.
804 * ui-out.c (uiout): Rename to ...
805 (current_uiout): ... this.
806 * ada-lang.c (print_it_exception, print_one_exception)
807 (print_mention_exception): Adjust.
808 * breakpoint.c (watchpoint_check): Adjust.
809 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
810 (default_collect_info, watchpoints_info, print_one_catch_fork)
811 (print_one_catch_vfork, print_one_catch_syscall)
812 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
813 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
814 (print_it_watchpoint, print_mention_watchpoint)
815 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
816 (print_it_exception_catchpoint, print_one_exception_catchpoint)
817 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
818 (bkpt_print_mention, momentary_bkpt_print_it)
819 (tracepoint_print_mention, update_static_tracepoint)
820 (tracepoints_info, save_breakpoints): Adjust.
821 * cli-out.c (field_separator): Adjust.
822 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
823 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
824 * frame.c (get_current_frame): Adjust.
825 * infcmd.c (run_command_1, print_return_value): Adjust.
826 * inferior.c (inferior_command, info_inferiors_command): Adjust.
827 * infrun.c (print_end_stepping_range_reason): Adjust.
828 (print_signal_exited_reason, print_exited_reason): Adjust.
829 (print_signal_received_reason, print_no_history_reason): Adjust.
830 * interps.c (interp_set): Adjust.
831 * osdata.c (info_osdata_command): Adjust.
832 * progspace.c (maintenance_info_program_spaces_command): Adjust.
833 * remote-fileio.c (remote_fileio_request): Adjust.
834 * remote.c (show_remote_cmd): Adjust.
835 * solib.c (info_sharedlibrary_command): Adjust.
836 * source.c (print_source_lines_base): Adjust.
837 * stack.c (print_stack_frame): Adjust.
838 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
839 * symfile-mem.c (add_vsyscall_page): Adjust.
840 * symfile.c (load_progress, generic_load)
841 (print_transfer_performance): Adjust.
842 * thread.c (info_threads_command, restore_selected_frame)
843 (thread_command): Adjust.
844 * top.c (make_cleanup_restore_ui_file): Adjust.
845 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
846 (print_one_static_tracepoint_marker): Adjust.
847 * cli/cli-cmds.c (print_disassembly): Adjust.
848 * cli/cli-decode.c (print_doc_line): Adjust.
849 * cli/cli-interp.c (safe_execute_command): Adjust.
850 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
851 (handle_redirections): Adjust.
852 * cli/cli-script.c (show_user_1): Adjust.
853 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
854 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
855 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
856 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
857 (mi_cmd_env_dir): Adjust.
858 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
859 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
860 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
861 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
862 (list_args_or_locals): Adjust.
863 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
864 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
865 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
866 (mi_cmd_var_list_children, mi_cmd_var_info_type)
867 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
868 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
869 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
870 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
871 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
872 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
873 (list_available_thread_groups, mi_cmd_list_thread_groups)
874 (mi_cmd_data_list_register_names)
875 (mi_cmd_data_list_changed_registers)
876 (mi_cmd_data_list_register_values, get_register)
877 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
878 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
879 (mi_cmd_list_target_features, mi_cmd_add_inferior)
880 (mi_execute_command, mi_load_progress): Adjust.
881 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
882 * python/py-auto-load.c (print_script, info_auto_load_scripts):
884 * python/py-breakpoint.c (bppy_get_commands): Adjust.
885 * tui/tui-interp.c (tui_command_loop): Adjust.
886 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
888 2011-08-04 Pedro Alves <pedro@codesourcery.com>
890 * exceptions.c (struct catcher): Remove saved_uiout field.
891 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
892 no longer save/resvore the global ui_out builder.
893 (catch_exceptions_with_msg): Save/override/restore the global
894 ui_out builder manually instead of relying on TRY_CATCH to do it.
895 (catch_errors): Save/restore the global ui_out builder manually
896 instead of relying on TRY_CATCH to do it.
897 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
900 * cli/cli-interp.c (safe_execute_command): Save/override/restore
901 the global ui_out builder manually instead of relying on TRY_CATCH
904 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
906 * breakpoint.c (update_global_location_list): Ensure
907 invariant 'first loc marked not duplicated and inserted,
908 following locs marked duplicated/not inserted' is respected
909 for multiple locations at the same address.
910 (unduplicated_should_be_inserted) New function.
911 (swap_insertion) New function.
913 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
915 * stack.c (print_frame_arguments_choices): Comment typo fix.
917 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
920 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
921 * breakpoint.c (insert_bp_location): Remove disabled_breaks
922 argument. Update callers.
924 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
927 * doublest.c (convert_doublest_to_floatformat): Pass correct
928 mantissa length to put_field.
930 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
933 exception_print code path.
934 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
935 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
936 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
938 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
942 Remove, merge them into ...
943 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
944 variable args and its initialization.
945 (struct print_args_args, print_args_stub): Remove, merge them into
947 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
949 (do_gdb_disassembly): ... here. Remove variable args and its
951 (print_frame): Remove variable args and its initialization, new
952 variable gdbarch and numargs (from print_args_stub), inline here
953 print_args_stub with a TRY_CATCH.
954 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
956 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
957 New variable e, remove variable btargs and its initialization.
959 2011-08-01 Tristan Gingold <gingold@adacore.com>
961 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
963 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
965 * breakpoint.c (insert_bp_location): Document return value.
966 (insert_breakpoint_locations): Fix documentation.
967 (remove_breakpoints): Add documentation.
969 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
971 * breakpoint.c (insert_bp_location): Remove disabled_breaks
972 argument. Update callers.
974 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
976 * stack.c (print_frame_info): Comment typo fix.
978 2011-07-29 Sterling Augustine <saugustine@google.com>
980 * MAINTAINERS (Write After Approval): Add myself to the list.
982 2011-07-29 Tom Tromey <tromey@redhat.com>
984 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
985 (library_list_start_segment): Update.
986 (library_list_start_section): Update.
988 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
990 * varobj.c (value_get_print_value): Move hint check later into the
991 function. Comment function. Free thevalue before reusing it.
993 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
994 Pedro Alves <pedro@codesourcery.com>
996 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
998 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
999 Assert the result kind.
1000 * value.h (value_one): Remove parameter lv.
1002 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 Fix crash on lval_computed values.
1005 * valops.c (value_zero): Use not_lval for lval_computed.
1007 2011-07-27 Tom Tromey <tromey@redhat.com>
1009 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1010 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1012 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1014 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1015 "ptype" by their typedefs difference.
1017 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1019 * dwarf2expr.c (ctx_no_read_reg): New function.
1020 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1021 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1022 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1023 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1025 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1027 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1028 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1030 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1031 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1032 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1033 (ctx_no_get_base_type): Move the functions here.
1034 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1035 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1036 (ctx_no_get_base_type): New declarations.
1038 2011-07-27 Tom Tromey <tromey@redhat.com>
1040 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1042 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1043 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1045 2011-07-26 Sterling Augustine <saugustine@google.com>
1047 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1049 (dump_bfd_file): Likewise.
1051 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1053 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1054 (remote_hw_watchpoint_length_limit): New variable.
1055 (_initialize_remote) add set,show cmds for this new variable.
1056 * gdb.texinfo: document these new commands.
1057 * NEWS: Mention these new commands.
1059 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1061 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1062 true for software watchpoints.
1064 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1068 2011-07-26 Tom Tromey <tromey@redhat.com>
1070 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1071 * dwarf2read.c (read_indirect_string_at_offset): New function.
1072 (read_indirect_string): Use it.
1073 (dwarf_decode_macro_bytes): New function, taken from
1074 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1075 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1076 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1078 (struct dwarf2_per_objfile) <macro>: New field.
1079 (dwarf2_elf_names): Add .debug_macro.
1080 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1081 (dwarf2_locate_sections): Handle new section.
1082 (read_file_scope): Handle DW_AT_GNU_macros.
1083 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1085 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1087 * NEWS: Mention dcache configuration.
1088 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1089 (dcache_size, dcache_line_size): New variables.
1090 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1091 (struct dcache_block): Make it expandable.
1092 (struct dcache_struct): New field.
1093 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1094 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1095 (dcache_poke_byte, dcache_print_line): Adjust.
1096 (set_dcache_size, set_dcache_line_size): New functions.
1097 (set_dcache_command, show_dcache_command): New functions.
1098 (_initialize_dcache): Add new commands.
1100 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1102 * progspace.h (struct program_space): Add solib_add_generation.
1103 * infcmd.c (post_create_inferior): Only call solib_add if not
1105 * solib.c (solib_add): Increment solib_add_generation.
1107 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1109 Fix implicit pointer offsets.
1110 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1113 2011-07-25 Tom Tromey <tromey@redhat.com>
1115 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1117 (ada_exception_sal): Make 'ops' const.
1118 (ada_decode_exception_location): Likewise.
1119 (ada_decode_assert_location): Likewise.
1120 (catch_assert_command): Update.
1121 (catch_ada_exception_command): Update.
1122 (create_ada_exception_catchpoint): Make 'ops' const.
1123 * breakpoint.c (set_raw_breakpoint_without_location)
1124 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1126 (create_internal_breakpoint): Update.
1127 (init_raw_breakpoint_without_location): Make 'ops' const.
1128 (init_raw_breakpoint, init_catchpoint)
1129 (create_fork_vfork_event_catchpoint)
1130 (create_syscall_event_catchpoint, init_breakpoint_sal)
1131 (create_breakpoint_sal, create_breakpoints_sal)
1132 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1133 * breakpoint.h (struct breakpoint) <ops>: Now const.
1134 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1137 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1139 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1141 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1143 * breakpoint.h (print_recreate_thread): Declare.
1144 (struct breakpoint): Move step_count, pass_count,
1145 number_on_target, static_trace_marker_id,
1146 static_trace_marker_id_idx ...
1147 (struct tracepoint): ... to this new struct.
1148 (get_tracepoint, get_tracepoint_by_number_on_target)
1149 (get_tracepoint_by_number): Change return type to struct
1151 * breakpoint.c (is_tracepoint_type): New, factored out from
1153 (is_tracepoint): Adjust.
1154 (print_one_breakpoint_location): Cast to struct tracepoint as
1155 necessary, and adjust.
1156 (print_recreate_catch_fork, print_recreate_catch_vfork)
1157 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1158 print_recreate_thread.
1159 (init_breakpoint_sal): New, factored out from
1160 create_breakpoint_sal.
1161 (create_breakpoint_sal): Reimplement.
1162 (create_breakpoint): Allocate a struct tracecepoint if the caller
1163 wanted a tracepoint. Use init_breakpoint_sal and
1165 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1166 (print_recreate_masked_watchpoint)
1167 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1168 (tracepoint_print_one_detail): Adjust.
1169 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1170 Dump the pass count here.
1171 (update_static_tracepoint): Adjust.
1172 (addr_string_to_sals): Adjust.
1173 (create_tracepoint_from_upload): Adjust. Change return type to
1174 struct tracepoint pointer.
1175 (trace_pass_set_count): Change parameter type to struct tracepoint
1176 pointer, and adjust.
1177 (trace_pass_command): Adjust.
1178 (get_tracepoint, get_tracepoint_by_number_on_target)
1179 (get_tracepoint_by_number): Change return type to struct
1180 tracepoint pointer, and adjust.
1181 (print_recreate_thread): New, factored out from save_breakpoints.
1182 (save_breakpoints): Don't print thread and task and passcount
1184 * remote.c (remote_download_tracepoint): Adjust.
1185 * tracepoint.c (trace_actions_command, validate_actionline)
1186 (start_tracing, tfind_1, trace_find_tracepoint_command)
1187 (trace_dump_command): Adjust.
1188 (find_matching_tracepoint): Change return type to struct
1189 tracepoint pointer, and adjust.
1190 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1191 (tfile_trace_find, tfile_fetch_registers): Adjust.
1192 * tracepoint.h (create_tracepoint_from_upload): Change return type
1193 to struct tracepoint pointer.
1194 * ada-lang.c (print_recreate_exception): Call
1195 print_recreate_thread.
1196 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1198 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1200 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1201 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1202 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1203 watchpoint_thread, watchpoint_triggered ...
1204 (struct watchpoint): ... to this new struct.
1205 (is_watchpoint): Declare.
1206 (install_breakpoint): Add new `internal' parameter.
1207 * breakpoint.c (is_watchpoint): Delete declaration.
1208 (set_breakpoint_condition): Handle watchpoints.
1209 (is_watchpoint): Make public.
1210 (watchpoint_in_thread_scope): Change parameter type to struct
1212 (watchpoint_del_at_next_stop): Change parameter type to struct
1213 watchpoint. Remove assertion. Adjust.
1214 (update_watchpoint): Ditto.
1215 (insert_breakpoints, breakpoint_init_inferior)
1216 (watchpoints_triggered, watchpoint_check)
1217 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1218 (bpstat_stop_status, print_one_breakpoint_location)
1219 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1220 to struct watchpoint as necessary, and adjust.
1221 (install_breakpoint): Add `internal' argument. If true, don't
1222 mention the new breakpoint. Use set_breakpoint_number.
1223 (create_fork_vfork_event_catchpoint)
1224 (create_syscall_event_catchpoint): Adjust.
1225 (dtor_watchpoint): New.
1226 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1227 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1228 (print_it_watchpoint, print_mention_watchpoint)
1229 (print_recreate_watchpoint, insert_masked_watchpoint)
1230 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1231 (print_one_detail_masked_watchpoint)
1232 (print_mention_masked_watchpoint)
1233 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1234 necessary, and adjust.
1235 (watch_command_1): Allocate and initialize a struct watchpoint
1236 instead of a struct breakpoint. Use install_breakpoint.
1237 (catch_exec_command_1): Adjust.
1238 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1240 (delete_breakpoint, enable_breakpoint_disp)
1241 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1242 as necessary, and adjust.
1243 (initialize_breakpoint_ops): Install dtor_watchpoint as
1244 watchpoints' dtor method.
1245 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1246 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1247 to struct watchpoint as necessary, and adjust.
1249 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1251 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1252 the the base class ops table.
1253 (catch_exception_breakpoint_ops)
1254 (catch_exception_unhandled_breakpoint_ops)
1255 (catch_assert_breakpoint_ops): Don't statically initialize.
1256 (initialize_ada_catchpoint_ops): New.
1257 (_initialize_ada_language): Call it.
1258 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1259 (bkpt_breakpoint_ops): Forward declare.
1260 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1261 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1262 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1263 (masked_watchpoint_breakpoint_ops)
1264 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1265 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1266 base class ops table.
1267 (null_re_set, null_check_status, null_works_in_software_mode)
1268 (null_resources_needed, null_print_one_detail): Delete.
1269 (bkpt_dtor): Rename to ...
1270 (base_breakpoint_dtor): ... this. Make static.
1271 (bkpt_allocate_location): Rename to ...
1272 (base_breakpoint_allocate_location): ... this. Make static.
1273 (base_breakpoint_re_set): New.
1274 (internal_error_pure_virtual_called): New.
1275 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1276 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1277 (base_breakpoint_works_in_software_mode)
1278 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1279 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1280 (base_breakpoint_print_recreate): New functions.
1281 (base_breakpoint_ops): New global.
1282 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1283 (bkpt_breakpoint_hit): Make static.
1284 (bkpt_check_status): Delete.
1285 (bkpt_resources_needed): Make static.
1286 (bkpt_works_in_software_mode): Delete.
1287 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1289 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1290 (momentary_breakpoint_ops): Don't statically initialize.
1291 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1293 (tracepoint_insert_location, tracepoint_remove_location)
1294 (tracepoint_check_status, tracepoint_works_in_software_mode)
1295 (tracepoint_print_it): Delete.
1296 (tracepoint_breakpoint_ops): Don't statically initialize.
1297 (initialize_breakpoint_ops): New.
1298 (_initialize_breakpoint): Call it.
1299 * breakpoint.h (null_re_set, null_works_in_software_mode)
1300 (null_resources_needed, null_check_status, null_print_one_detail):
1301 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1302 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1303 (bkpt_check_status, bkpt_resources_needed)
1304 (bkpt_works_in_software_mode, bkpt_print_it)
1305 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1306 Delete declarations.
1307 (initialize_breakpoint_ops): Declare.
1309 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1311 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1312 (momentary_bkpt_print_it): Simplify.
1314 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1316 Split internal, momentary and user breakpoints breakpoint_ops
1319 * breakpoint.c (internal_breakpoint_ops)
1320 (momentary_breakpoint_ops): Forward declare.
1321 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1322 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1323 (create_overlay_event_breakpoint)
1324 (create_std_terminate_master_breakpoint)
1325 (create_exception_master_breakpoint): Create breakpoints with
1326 internal_breakpoint_ops vtable.
1327 (set_longjmp_breakpoint): Create momentary breakpoints with
1328 momentary_breakpoint_ops vtable, using
1329 momentary_breakpoint_from_master.
1330 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1331 (create_solib_event_breakpoint): Create breakpoints with
1332 internal_breakpoint_ops vtable.
1333 (set_momentary_breakpoint): Create breakpoints with
1334 momentary_breakpoint_ops vtable.
1335 (momentary_breakpoint_from_master): New, factored out from
1336 clone_momentary_breakpoint.
1337 (clone_momentary_breakpoint): Adjust.
1338 (watch_command_1): Create scope breakpoints with
1339 momentary_breakpoint_ops vtable.
1340 (bkpt_re_set): Remove handling of internal and momentary
1342 (bkpt_print_mention, bkpt_print_recreate): New.
1343 (bkpt_breakpoint_ops): Adjust.
1344 (internal_bkpt_re_set, internal_bkpt_check_status)
1345 (internal_bkpt_print_it, internal_bkpt_print_mention)
1346 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1347 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1348 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1349 (momentary_bkpt_print_recreate): New.
1350 (momentary_breakpoint_ops): New.
1352 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1354 Implement most breakpoint_ops methods for all breakpoint types,
1355 and move the default handlings to the proper callbacks.
1357 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1358 works_in_software_mode method.
1359 (insert_bp_location): Go through breakpoint_ops->insert_location
1360 for software and hardware watchpoints.
1361 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1363 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1364 for software and hardware watchpoints.
1365 (print_it_typical): Delete.
1366 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1368 (watchpoint_check): Adjust comment.
1369 (bpstat_check_location): Simply always call the breakpoint's
1370 breakpoint_hit method.
1371 (bpstat_stop_status): Always call the breakpoint's check_status
1372 method. Remove special cases for watchpoints and internal event
1373 breakpoints from here (moved to the check_status implementations).
1374 (print_one_breakpoint_location): Assume b->ops is never NULL.
1375 Remove static tracepoint marker id printing from here (moved to
1376 the print_one_detail callback implementation of tracepoints).
1377 (init_bp_location): Assert OPS is never NULL.
1378 (allocate_bp_location): Always call the breakpoint's
1379 allocate_location method, and remove the default code from here.
1380 (free_bp_location): Always call the location's dtor method, and
1381 remove the default code from here.
1382 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1383 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1384 parameter. Pass it down.
1385 (set_raw_breakpoint): Ditto.
1386 (print_it_catch_fork): Adjust to take a bpstat as argument.
1387 (catch_fork_breakpoint_ops): Install methods.
1388 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1389 (catch_vfork_breakpoint_ops): Install methods.
1390 (dtor_catch_syscall): Call the base dtor.
1391 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1392 (catch_syscall_breakpoint_ops): Install methods.
1393 (dtor_catch_exec): Call the base dtor.
1394 (print_it_catch_exec): Adjust to take a bpstat as argument.
1395 (catch_exec_breakpoint_ops): Install methods.
1396 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1397 the breakpoint's resources_needed method, and remove the default
1399 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1401 (clone_momentary_breakpoint): Clone the original's ops.
1402 (mention): Always call the breakpoint's print_mention method, and
1403 remove the default code from here.
1404 (create_breakpoint_sal): Adjust to pass the ops to
1405 set_raw_breakpoint rather than setting it manually.
1406 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1407 ops to set_raw_breakpoint_without_location rather than setting it
1409 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1410 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1411 (ranged_breakpoint_ops): Install methods.
1412 (break_range_command): Adjust to pass the ops to
1413 set_raw_breakpoint rather than setting it manually.
1414 (re_set_watchpoint, breakpoint_hit_watchpoint)
1415 (check_status_watchpoint, resources_needed_watchpoint)
1416 (works_in_software_mode_watchpoint, print_it_watchpoint)
1417 (print_mention_watchpoint, print_recreate_watchpoint): New
1419 (watchpoint_breakpoint_ops): Install new methods.
1420 (print_it_masked_watchpoint): New function.
1421 (masked_watchpoint_breakpoint_ops): Install new methods.
1422 (watch_command_1): Adjust to pass the right breakpoint_ops to
1423 set_raw_breakpoint_without_location rather than setting it
1424 manually later. Record the current pspace.
1425 (print_it_exception_catchpoint): Adjust to take a bpstat as
1427 (gnu_v3_exception_catchpoint_ops): Install new methods.
1428 (say_where): New function.
1429 (null_re_set, null_check_status, null_works_in_software_mode)
1430 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1432 (bp_location_ops): New global.
1433 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1434 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1435 (bkpt_check_status, bkpt_resources_needed)
1436 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1437 (bkpt_print_recreate): New functions.
1438 (bkpt_breakpoint_ops): New global.
1439 (tracepoint_re_set, tracepoint_insert_location)
1440 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1441 (tracepoint_check_status, tracepoint_works_in_software_mode)
1442 (tracepoint_print_it, tracepoint_print_one_detail)
1443 (tracepoint_print_mention, tracepoint_print_recreate): New
1445 (tracepoint_breakpoint_ops): New global.
1446 (delete_breakpoint): Always call the breakpoint's dtor method, and
1447 remove the default handling from here.
1448 (breakpoint_re_set_default): Make static.
1449 (breakpoint_re_set_one): Always call the breakpoints re_set
1450 method, and remove the default handling from here.
1451 (trace_command, ftrace_command, strace_command)
1452 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1453 to create_breakpoint.
1454 (save_breakpoints): Always call the breakpoint's print_recreate
1455 method, and remove the default handling from here.
1457 * ada-lang.c (dtor_exception): Call the base dtor.
1458 (re_set_exception): Call the base method.
1459 (print_it_exception, print_it_catch_exception): Adjust to take a
1461 (catch_exception_breakpoint_ops): Install methods.
1462 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1464 (catch_exception_unhandled_breakpoint_ops): Install methods.
1465 (print_it_catch_assert): Adjust to take a bpstat as argument.
1466 (catch_assert_breakpoint_ops): Install methods.
1468 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1469 to take a bpstat as argument.
1470 (enum print_stop_action): Add describing comments to each enum
1472 (breakpoint_re_set_default): Delete declaration.
1473 (null_re_set, null_works_in_software_mode, null_resources_needed)
1474 (null_check_status, null_print_one_detail): Declare.
1475 (bkpt_breakpoint_ops): Declare.
1476 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1477 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1478 (bkpt_check_status, bkpt_resources_needed)
1479 (bkpt_works_in_software_mode, bkpt_print_it)
1480 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1483 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1484 bkpt_breakpoint_ops.
1485 * python/py-breakpoint.c (bppy_init): Ditto.
1487 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1489 * MAINTAINERS (Write After Approval): Add myself to the list.
1491 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1493 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1495 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1497 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1498 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1499 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1501 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1502 (struct i386_debug_reg_state): New.
1503 (i386_init_dregs): New.
1505 (i386_cleanup_dregs): Use i386_init_dregs.
1506 (i386_show_dr): Add state parameter and adjust.
1507 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1509 (i386_remove_aligned_watchpoint): Likewise.
1510 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1511 (i386_update_inferior_debug_regs): New.
1512 (i386_insert_watchpoint): Work on a local mirror of the debug
1513 registers, and only update the inferior on success.
1514 (i386_remove_watchpoint): Ditto.
1515 (i386_region_ok_for_watchpoint): Adjust.
1516 (i386_stopped_data_address): Adjust.
1517 (i386_insert_hw_breakpoint): Adjust.
1518 (i386_remove_hw_breakpoint): Adjust.
1520 2011-07-22 Tom Tromey <tromey@redhat.com>
1522 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1523 from amd64_pseudo_register_read. Change arguments. Call
1524 mark_value_bytes_unavailable when needed.
1525 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1526 set_gdbarch_pseudo_register_read.
1527 * sentinel-frame.c (sentinel_frame_prev_register): Use
1528 regcache_cooked_read_value.
1529 * regcache.h (regcache_cooked_read_value): Declare.
1530 * regcache.c (regcache_cooked_read_value): New function.
1531 (regcache_cooked_read): Call
1532 gdbarch_pseudo_register_read_value if available.
1533 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1534 (i386_pseudo_register_read): Remove.
1535 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1536 i386_pseudo_register_read. Change arguments. Call
1537 mark_value_bytes_unavailable when needed.
1538 (i386_pseudo_register_read_value): New function.
1539 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1540 not set_gdbarch_pseudo_register_read.
1541 * gdbarch.sh (pseudo_register_read_value): New method.
1542 * gdbarch.c, gdbarch.h: Rebuild.
1543 * findvar.c (value_from_register): Call get_frame_register_value.
1545 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1547 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1549 (display_gdb_prompt): Likewise.
1550 (change_annotation_level): Likewise.
1551 (push_prompt): Likewise.
1552 (pop_prompt): Likewise.
1553 (handle_stop_sig): Use get_prompt with a level.
1554 * top.c (command_loop): Use get_prompt with a level.
1555 (set_async_annotation_level): Use set_prompt with a level.
1556 (get_prefix): New function.
1557 (set_prefix): Ditto.
1558 (set_suffix): Ditto.
1559 (get_suffix): Ditto.
1560 (get_prompt): Accept a level argument.
1561 (set_prompt): Accept a level argument. Free old prompts. Set
1562 new_async_prompt if level is 0.
1563 (init_main): Use set_prompt with a level. Do not set
1565 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1566 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1567 Modify set_prompt, get_prompt to account for levels.
1568 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1570 * python/python.c (before_prompt_hook): Use set_prompt.
1572 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1574 * defs.h: Add guard against inclusion in gdbserver.
1575 (struct ptid, ptid_t): Move to common/ptid.h.
1576 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1577 xsnprintf, internal_error): Move to common/common-utils.h.
1579 * gdb_assert.h: Move into common/ sub-directory.
1580 * gdb_locale.h: Ditto.
1581 * gdb_dirent.h: Ditto.
1582 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1583 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1584 Move into common/ptid.h.
1585 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1586 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1587 Change nomem to malloc_failure.
1588 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1589 * utils.c (nomem): Rename to malloc_failure.
1590 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1591 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1592 (gdb_buildargv): Change nomem to malloc_failure.
1593 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1594 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1595 ptid_is_pid): Move into common/ptid.c.
1596 (initialize_infrun): Delete initialization of null_ptid and
1598 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1599 linux_common_xfer_osdata.
1600 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1601 common/ptid.c and common/buffer.c.
1602 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1603 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1604 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1605 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1607 * common/gdb_assert.h: New.
1608 * common/gdb_dirent.h: New.
1609 * common/gdb_locale.h: New.
1610 * common/buffer.c: New.
1611 * common/buffer.h: New.
1612 * common/ptid.c: New.
1613 * common/ptid.h: New.
1614 * common/xml-utils.c: New.
1615 * common/xml-utils.h: New.
1616 * common/common-utils.c: New.
1617 * common/common-utils.h: New.
1618 * common/linux-osdata.c: New.
1619 * common/linux-osdata.h: New.
1620 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1621 * config/arm/linux.mh (NATDEPFILES): Ditto.
1622 * config/i386/linux.mh (NATDEPFILES): Ditto.
1623 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1624 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1625 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1626 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1627 * config/mips/linux.mh (NATDEPFILES): Ditto.
1628 * config/pa/linux.mh (NATDEPFILES): Ditto.
1629 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1630 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1631 * config/s390/s390.mh (NATDEPFILES): Ditto.
1632 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1633 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1634 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1636 2011-07-21 Matt Rice <ratmice@gmail.com>
1638 * NEWS: Add info macros and info definitions commands.
1640 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1642 * NEWS: Document Python prompt substitution hook.
1644 2011-07-18 Matt Rice <ratmice@gmail.com>
1647 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1648 * macrotab.c (foreach_macro): Ditto.
1649 (foreach_macro_in_scope): Ditto.
1650 * macrocmd.c (print_macro_callback): New function.
1651 (info_macro_command): Move some code to print_macro_definition.
1652 (print_macro_definition): New function.
1653 (print_one_macro): Add new arguments to callback.
1654 (info_definitions_command): New function.
1655 (info_macros_command): Ditto.
1656 (_initialize_macrocmd): Add info macros and info definitions commands.
1657 * symtab.c (add_macro_name): Add new arguments to callback.
1659 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1660 Tom Tromey <tromey@redhat.com>
1662 * top.c (set_prompt): Rewrite to free previous prompt, free
1663 asynch_new_prompt and set both on new prompts.
1664 * event-top.c (display_gdb_prompt): Add prompt substitution
1666 * python/python.c (before_prompt_hook): New function.
1668 2011-07-20 Matt Rice <ratmice@gmail.com>
1670 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1671 arguments to store_unsigned_integer.
1673 2011-07-20 Tom Tromey <tromey@redhat.com>
1675 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1676 in some declaration-only cases.
1678 2011-07-18 Tom Tromey <tromey@redhat.com>
1681 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1682 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1683 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1684 <debug_type_section>: New field.
1685 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1686 (load_cu): Use appropriate section.
1687 (create_signatured_type_table_from_index): Add 'section'
1689 (dwarf2_read_index): Only allow a single .debug_types section.
1690 (dw2_get_file_names): Use appropriate section.
1691 (read_type_comp_unit_head): Add 'section' argument.
1692 (create_debug_types_hash_table): Loop over all .debug_types
1694 (init_cu_die_reader): Use appropriate section.
1695 (process_psymtab_comp_unit, load_partial_comp_unit)
1696 (load_full_comp_unit, read_die_and_children, find_partial_die)
1697 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1698 (lookup_signatured_type_at_offset): Add 'section' argument.
1699 (read_signatured_type_at_offset): Add 'sect' argument.
1700 (read_signatured_type): Use appropriate section.
1701 (set_die_type, get_die_type_at_offset): Update.
1702 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1704 (write_psymtabs_to_index): Don't allow index with more than one
1705 .debug_types section.
1707 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1709 Fix crash if referenced CU is aged out.
1710 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1711 xfree of block.data.
1712 (indirect_pieced_value): New variable back_to, use to for xfree of
1714 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1716 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1717 (load_cu): New function from ...
1718 (dw2_do_instantiate_symtab): ... the code here ...
1719 (process_full_comp_unit): ... and here.
1720 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1723 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1728 2011-07-19 Gary Benson <gbenson@redhat.com>
1730 * infrun.c (struct execution_control_state): New member
1731 stop_func_filled_in.
1732 (clear_stop_func, fill_in_stop_func): New functions.
1733 (handle_inferior_event): Call clear_stop_func rather than
1734 manipulating the execution control state directly.
1735 Call fill_in_stop_func lazily as required rather than
1736 directly calling find_pc_partial_function in all cases.
1738 2011-07-18 Tom Tromey <tromey@redhat.com>
1740 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1741 checking for variable-sized array.
1743 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1745 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1746 of supported languages.
1747 * varobj.c: Add top definitions and basic implementation of the
1748 following callbacks: ada_number_of_children, ada_name_of_variable,
1749 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1750 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1751 (languages): Register Ada-specific callbacks.
1752 (variable_language): Add the Ada case in the language setter switch.
1754 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1756 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1758 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1762 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1763 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1764 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1765 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1766 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1767 (struct dwarf_expr_context_funcs): New, move here methods from ...
1768 (struct dwarf_expr_context): ... here. New fields funcs.
1769 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1770 (dwarf_expr_ctx_funcs): New.
1771 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1772 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1773 (needs_frame_ctx_funcs): New.
1774 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1776 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1778 * MAINTAINERS (Write After Approval): Add myself to the list.
1780 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1782 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1783 that CIE pointer of an FDE really points to a CIE .
1785 2011-07-15 Hui Zhu <teawater@gmail.com>
1787 * remote.c (remote_get_trace_status): Add comments.
1789 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 Code cleanup - constify struct lval_funcs.
1792 * dwarf2loc.c (pieced_value_funcs): Make it const.
1793 * infrun.c (siginfo_value_funcs): Likewise.
1794 * opencl-lang.c (opencl_value_funcs): Likewise.
1795 * valops.c (value_assign, value_ind): Make the funcs variable const.
1796 * value.c (struct value): Make location.computed.funcs target const.
1797 Rearrange the comments.
1798 (allocate_computed_value): Make the funcs parameter target const.
1799 (value_computed_funcs): Return the funcs target const.
1800 (value_free, value_copy, set_value_component_location): Make the funcs
1802 * value.h (allocate_computed_value): Make the funcs parameter target
1804 (value_computed_funcs): Return the funcs target const.
1805 * windows-tdep.c (tlb_value_funcs): Make it const.
1807 2011-07-14 Hui Zhu <teawater@gmail.com>
1809 * remote.c (remote_get_trace_status): Initialize p.
1811 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 * remote.c (remote_get_trace_status): New variable ex. Put
1815 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1817 2011-07-13 Tom Tromey <tromey@redhat.com>
1819 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1820 value_from_contents for final conversion.
1822 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1826 Indent prototypes so they do not get into tags.
1828 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1830 Code cleanup making also optimized out values lazy.
1831 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1832 allocate_optimized_out_value. Twice.
1833 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1834 * findvar.c (read_var_value): Likewise.
1835 * value.c (allocate_optimized_out_value): New function.
1836 * value.h (allocate_optimized_out_value): New declaration.
1838 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1840 Fix occasional crash of CTRL-C during DWARF read in.
1841 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1843 2011-07-11 Tom Tromey <tromey@redhat.com>
1845 * regcache.c (struct regcache_descr): Fix typo.
1846 * i387-tdep.c (i387_supply_xsave): Fix typo.
1848 2011-07-11 Tom Tromey <tromey@redhat.com>
1850 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1851 (read_file_scope, read_type_unit_scope): Use it.
1853 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1855 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1858 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1861 * python/python.c: Set gdbpy_should_print_stack default to off.
1862 (set_python): Deprecate maint set python print-stack to
1864 (_initialize_python): Deprecate maint set/show python print-stack.
1865 Add new prefix command, python. Add new setting, print-backtrace.
1866 * NEWS: Document set python print-stack. Document default change.
1868 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1870 * python/py-inferior.c (infpy_dealloc): New function.
1871 (inferior_to_inferior_object): Return a new object, or a
1872 new reference to the existing object.
1873 (find_thread_object): Cleanup references to inferior.
1874 (delete_thread_object): Ditto.
1875 * python/py-infthread.c (create_thread_object): Do not increment
1876 inferior reference count.
1878 2011-07-08 Tom Tromey <tromey@redhat.com>
1880 * dwarf2loc.c (locexpr_regname): New function.
1881 (locexpr_describe_location_piece): Use it.
1882 (disassemble_dwarf_expression): Add per_cu argument. Use
1884 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1885 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1887 (locexpr_describe_location_1): Add per_cu argument.
1888 (locexpr_describe_location): Update.
1889 (loclist_describe_location): Update.
1891 2011-07-08 Tom Tromey <tromey@redhat.com>
1893 * dwarf2expr.c (execute_stack_op): Add QUIT.
1895 2011-07-07 Hui Zhu <teawater@gmail.com>
1898 2011-07-06 Hui Zhu <teawater@gmail.com>
1899 * remote.c (remote_start_remote): Add TRY_CATCH for
1900 remote_get_trace_status.
1901 * tracepoint.c (disconnect_tracing): Ditto.
1903 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1905 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1906 variables as signed, not unsigned.
1908 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1910 * jit.c (jit_inferior_init): Reformat forward declaration.
1912 2011-07-06 Matt Rice <ratmice@gmail.com>
1914 * MAINTAINERS (Write After Approval): Add myself to the list.
1916 2011-07-06 Hui Zhu <teawater@gmail.com>
1918 * remote.c (remote_start_remote): Add TRY_CATCH for
1919 remote_get_trace_status.
1920 * tracepoint.c (disconnect_tracing): Ditto.
1922 2011-07-05 Tom Tromey <tromey@redhat.com>
1924 * symtab.c (operator_chars): Now static.
1925 * linespec.c (operator_chars): Don't declare.
1927 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1929 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1931 2011-07-05 Tom Tromey <tromey@redhat.com>
1933 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1934 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1935 (TYPE_CPLUS_REALLY_JAVA): New macro.
1936 * dwarf2read.c (process_structure_scope): Set
1937 TYPE_CPLUS_REALLY_JAVA.
1939 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1941 * ada-lang.c: Fix typos.
1942 * amd64-tdep.c: Likewise.
1943 * breakpoint.c: Likewise.
1944 * cli/cli-decode.c: Likewise.
1945 * findcmd.c: Likewise.
1946 * inline-frame.c: Likewise.
1947 * mi/mi-main.c: Likewise.
1948 * minsyms.c: Likewise.
1949 * monitor.c: Likewise.
1950 * monitor.h: Likewise.
1951 * prologue-value.c: Likewise.
1952 * reverse.c: Likewise.
1953 * s390-tdep.c: Likewise.
1955 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1957 * jit.c (jit_inferior_init): Forward declare.
1958 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1960 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1962 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1964 2011-07-04 Tristan Gingold <gingold@adacore.com>
1966 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1967 (tcb_fieldno): Add activation_link field.
1968 (get_known_tasks_addr): Moved and rewritten.
1969 (get_tcb_types_info): Set activation_link field.
1970 (read_known_tasks_array): Add parameter. Rewritten.
1971 (read_known_tasks_list): New function.
1972 (read_known_tasks): New function.
1973 (ada_build_task_list): Call read_known_tasks instead of
1974 read_known_tasks_array.
1975 * ravenscar-thread.c: Add first_task_name constant.
1976 (has_ravenscar_runtime): Check for task list too.
1978 2011-07-04 Tristan Gingold <gingold@adacore.com>
1980 * ada-tasks.c: Renames fieldno to actb_fieldno.
1981 (ada_get_task_number): Indentation.
1982 (get_tcb_types_info): Remove all parameters. Write directly
1984 (ptid_from_atcb_common): Adjust.
1985 (read_atcb): Adjust.
1987 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1989 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1991 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1993 * ui-out.c (ui_out_field_core_addr): Mention that the function
1994 description is in the header file.
1995 * ui-out.h (ui_out_field_core_addr): Document function.
1997 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1999 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2000 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2002 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2004 * symtab.c (expand_line_sal): Remove empty line.
2006 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
2008 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2009 same way as ELFOSABI_NONE.
2010 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2012 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2014 * breakpoint.c: Fix typos in comments.
2015 * linespec.c: Likewise.
2016 * symtab.c: Likewise.
2018 2011-07-04 Joel Brobecker <brobecker@adacore.com>
2020 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2021 section in separate object files.
2023 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 Fix false GCC warning.
2026 * linespec.c (decode_line_1): Initialize values.
2028 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 * linespec.c (find_method): Accept the function type automatically only
2031 if it was specified with parameter types.
2033 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2035 Stop on first linespec terminator instead of eating what we can.
2036 * linespec.c (is_linespec_boundary): New function.
2037 (name_end): Remove function.
2038 (keep_name_info): New parameter on_boundary, replace the body.
2039 (decode_line_1): Provide the parameter to keep_name_info.
2040 (decode_compound): Likewise. Drop the trailing java return type
2043 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2045 Fall back linespec to minimal symbols.
2046 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2047 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2048 (find_method, symbol_found): Change error to cplusplus_error.
2050 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2054 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 Tom Tromey <tromey@redhat.com>
2057 * dwarf2read.c (check_physname): New variable.
2058 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2059 (show_check_physname): New function.
2060 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2062 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2064 * machoread.c (macho_symfile_read): Delete OBE comment.
2066 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2068 * machoread.c (struct macho_oso_data): Delete.
2069 (current_oso): Delete.
2070 (macho_relocate_common_syms): New function, mostly extracted
2072 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2073 Remove code that sets and unset current_oso.
2074 (macho_symfile_relocate): Delete handling of common symbols,
2075 now moved to macho_relocate_common_syms.
2077 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2079 * darwin-nat.c (darwin_ptrace): Add documentation.
2080 Set errno to zero before calling ptrace. If ptrace returns
2081 -1 and errno is zero, then change then return zero.
2082 (darwin_kill_inferior): Issue a warning instead of triggering
2083 a failed assertion when the PT_KILL ptrace operations returned
2086 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2088 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2089 only when inf->private->no_ptrace.
2091 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2093 * ada-lang.c (print_it_exception): Print temporary catchpoints
2094 as "Temporary catchpoint".
2095 (print_mention_exception): Likewise.
2097 2011-07-01 Tom Tromey <tromey@redhat.com>
2099 * jv-lang.c (java_language_defn): Use java_printchar,
2101 (java_get_encoding): New function.
2102 (java_emit_char): Use generic_emit_char.
2103 (java_printchar): New function.
2104 (java_printstr): Likewise.
2106 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2108 * ada-typeprint.c (print_record_type): If unable to decode
2109 the name of the parent type, use the encoded name.
2111 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2113 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2114 pointer to constrained packed array type output.
2115 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2116 packed array output.
2118 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2120 * ada-typeprint.c (print_array_type): removed if condition on show
2121 being negative for bounds printing.
2123 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2125 * ada-lang.c (ada_identical_enum_types_p): New function.
2126 (symbols_are_identical_enums): New function.
2127 (remove_extra_symbols): Do nothing if NSYMS < 2.
2128 Use symbols_are_identical_enums.
2130 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2132 * ada-valprint.c (ada_value_print): Handle typedefs.
2134 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2136 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2138 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2140 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2141 (decode_constrained_packed_array): Likewise.
2142 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2144 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2146 * ada-exp.y (convert_char_literal): Handle typedef types.
2148 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2150 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2152 2011-06-30 Tom Tromey <tromey@redhat.com>
2154 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2155 * valops.c (find_overload_match): Call do_cleanups on early exit
2157 * solib.c (solib_find): Call do_cleanups on early exit path.
2159 2011-06-30 Tom Tromey <tromey@redhat.com>
2161 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2162 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2163 return paths. Defer final do_cleanups until last return.
2164 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2167 2011-06-30 Tom Tromey <tromey@redhat.com>
2169 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2171 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2173 * MAINTAINERS (Write After Approval): Add myself to the list.
2175 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 Disable epilogue unwinders on recent GCCs.
2178 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2179 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2180 * dwarf2read.c (process_full_comp_unit): Initialize
2181 EPILOGUE_UNWIND_VALID.
2182 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2183 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2184 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2186 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2188 Code cleanup - reformatting.
2189 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2190 (producer_is_gcc_ge_4): ... here, change the return value.
2191 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2194 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2196 Fix non-only rename list for Fortran modules import.
2197 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2198 cp_add_using_directive caller.
2199 (cp_add_using_directive): New parameter excludes, describe it. New
2200 variables ix and param. Compare if also excludes match. Allocate NEW
2201 with variable size, initialize EXCLUDES there.
2202 (cp_lookup_symbol_imports): New variable excludep, test
2203 current->EXCLUDES with it.
2204 * cp-support.h: Include vec.h.
2205 (struct using_direct): New field excludes, describe it.
2206 (DEF_VEC_P (const_char_ptr)): New.
2207 (cp_add_using_directive): New parameter excludes.
2208 * defs.h (const_char_ptr): New typedef.
2209 * dwarf2read.c (read_import_statement): New variables child_die,
2210 excludes and cleanups, read in excludes.
2211 (read_namespace): Adjust the cp_add_using_directive caller.
2213 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2216 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2217 negative comparisons.
2219 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2221 * mi/mi-main.c (mi_cmd_list_features): Emit
2222 breakpoint-notifications.
2224 2011-06-29 Tom Tromey <tromey@redhat.com>
2227 * valprint.h (generic_emit_char, generic_printstr): Declare.
2228 * valprint.c (wchar_printable, append_string_as_wide)
2229 (print_wchar): Move from c-lang.c.
2230 (generic_emit_char): New function; mostly taken from c_emit_char.
2231 (generic_printstr): New function; mostly taken from c_printstr.
2232 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2233 represented as arrays.
2234 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2236 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2237 identically to TYPE_CODE_INT.
2238 * f-lang.c (f_get_encoding): New function.
2239 (f_emit_char): Use generic_emit_char.
2240 (f_printchar): Replace comment.
2241 (f_printstr): Use generic_printstr.
2242 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2243 "character" types specially.
2244 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2246 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2248 (c_emit_char): Call generic_emit_char.
2249 (c_printstr): Call generic_printstr.
2251 2011-06-29 Gary Benson <gbenson@redhat.com>
2253 * breakpoint.c (bpstat_what): Removed duplicated case.
2255 2011-06-28 Tom Tromey <tromey@redhat.com>
2257 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2259 2011-06-27 Tom Tromey <tromey@redhat.com>
2261 * valops.c (find_overload_match): Call do_cleanups before early
2263 * top.c (execute_command): Call do_cleanups before early return.
2264 (command_loop): Likewise.
2265 * stack.c (backtrace_command): Make a null cleanup early. Don't
2266 conditionally call do_cleanups.
2267 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2269 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2270 so cleanups are always run.
2271 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2272 * findcmd.c (parse_find_args): Call do_cleanups on early return
2274 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2275 Don't conditionally call do_cleanups.
2276 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2279 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2281 * MAINTAINERS (Write After Approval): Use default email address.
2283 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2285 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2287 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2289 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2290 saved_regs_mask and copied_regs_mask fields.
2291 (sparc_record_save_insn): New prototype.
2292 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2293 (sparc_record_save_insn): New function.
2294 (sparc_analyze_prologue): Add head comment. Recognize store insns
2295 of call-saved registers. Use OFFSET consistently. Recognize flat
2296 frames and cache their settings.
2297 (sparc32_skip_prologue): Handle flat frames.
2298 (sparc_frame_cache): Add frame_offset to the base address.
2299 (sparc32_frame_cache): Adjust to new frame description.
2300 (sparc32_frame_prev_register): Likewise.
2301 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2302 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2303 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2304 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2305 frame by calling sparc_record_save_insn.
2306 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2307 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2308 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2310 2011-06-27 Tristan Gingold <gingold@adacore.com>
2312 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2313 field by map_addr and map_len.
2314 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2315 (munmap_section_buffer): Likewise.
2317 2011-06-24 Tom Tromey <tromey@redhat.com>
2319 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2320 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2321 * python/python.c (gdbpy_parameter): Make 'arg' const.
2322 (execute_gdb_command): Likewise.
2323 (gdbpy_decode_line): Likewise. Copy it.
2324 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2325 (gdbpy_write): Make 'arg' const.
2326 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2328 (gdbpy_lookup_type): Likewise.
2329 * python/py-prettyprint.c (print_children): Make 'name' const.
2330 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2331 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2333 * python/py-function.c (fnpy_init): Make 'name' const.
2334 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2335 (gdbpy_string_to_argv): Make 'input' const.
2336 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2338 * gdbtypes.h (lookup_typename): Update.
2339 * gdbtypes.c (lookup_typename): Make 'name' const.
2340 (lookup_struct): Likewise.
2341 (lookup_union): Likewise.
2342 (lookup_enum): Likewise.
2344 2011-06-24 Tom Tromey <tromey@redhat.com>
2346 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2347 gdb_thread_db.h. Move all common/ entries to be together.
2348 (TAGS): Don't depend on DEPFILES.
2350 2011-06-23 Yao Qi <yao@codesourcery.com>
2352 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2353 * remote.c (remote_start_remote): ... here.
2354 * monitor.c (monitor_open): ... here.
2356 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2358 * gdbtypes.c (append_composite_type_field_aligned): Fix
2359 calculation of bit position based on alignment.
2361 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2363 * breakpoint.c (bpstat_stop_status): Call the check_status
2364 breakpoint_ops method.
2365 (print_one_breakpoint_location): Also print the condition for Ada
2366 exception catchpoints.
2367 (allocate_bp_location): New, factored out from
2368 allocate_bp_location.
2369 (allocate_bp_location): Adjust. Call the owner breakpoint's
2370 allocate_location method, if there is one.
2371 (free_bp_location): Call the locations's dtor method, if there is
2373 (init_raw_breakpoint_without_location): New breakpoint_ops
2375 (set_raw_breakpoint_without_location): Adjust.
2376 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2377 (set_raw_breakpoint): Adjust.
2378 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2379 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2380 re_set and check_status methods.
2381 (init_catchpoint): Don't memset, initialize thread, addr_string
2382 and enable_state. Pass the ops down to init_raw_breakpoint.
2383 (install_catchpoint): Rename to ...
2384 (install_breakpoint): ... this, and make extern.
2385 (create_fork_vfork_event_catchpoint): Adjust.
2386 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2387 re_set and check_status methods.
2388 (create_syscall_event_catchpoint): Adjust.
2389 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2390 (masked_watchpoint_breakpoint_ops): Install NULL
2391 allocate_location, re_set and check_status methods.
2392 (catch_exec_command_1): Adjust.
2393 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2394 re_set and check_status methods.
2395 (create_ada_exception_breakpoint): Rename to ...
2396 (init_ada_exception_breakpoint): ... this. Add a struct
2397 breakpoint parameter, and delete the exp_string, cond_string and
2398 cond parameters. Use init_raw_breakpoint, and don't install or
2399 mention the breakpoint yet. Don't clear breakpoint fields that
2400 init_raw_breakpoint already clears.
2401 (re_set_breakpoint): Delete, split into ...
2402 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2404 (breakpoint_re_set_one): Call the breakpoint's
2405 breakpoint_ops->re_set implementation, if there's one. Adjust.
2406 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2407 (struct bp_location_ops): New type.
2408 (struct bp_location): New field `ops'.
2409 (struct breakpoint_ops): New `allocate_location', `re_set' and
2410 `check_status' fields. Make `breakpoint_hit''s description match
2412 (init_bp_location): Declare.
2413 (breakpoint_re_set_default): Declare.
2414 (create_ada_exception_breakpoint): Rename to ...
2415 (init_ada_exception_breakpoint): ... this. Add a struct
2416 breakpoint parameter, and delete the exp_string, cond_string and
2418 (install_breakpoint): Declare.
2419 * ada-lang.c: Include exceptions.h.
2420 <Ada exceptions description>: Update.
2421 (struct ada_catchpoint_location): New type.
2422 (ada_catchpoint_location_dtor): New function.
2423 (ada_catchpoint_location_ops): New global.
2424 (ada_catchpoint): New type.
2425 (create_excep_cond_exprs): New function.
2426 (dtor_exception, allocate_location_exception, re_set_exception)
2427 (should_stop_exception, check_status_exception): New functions.
2428 (print_one_exception, print_mention_exception)
2429 (print_recreate_exception): Adjust.
2430 (dtor_catch_exception, allocate_location_catch_exception)
2431 (re_set_catch_exception, check_status_catch_exception): New
2433 (catch_exception_breakpoint_ops): Install them.
2434 (dtor_catch_exception_unhandled)
2435 (allocate_location_catch_exception_unhandled)
2436 (re_set_catch_exception_unhandled)
2437 (check_status_catch_exception_unhandled): New functions.
2438 (catch_exception_unhandled_breakpoint_ops): Install them.
2439 (dtor_catch_assert, allocate_location_catch_assert)
2440 (re_set_catch_assert, check_status_catch_assert): New functions.
2441 (catch_assert_breakpoint_ops): Install them.
2442 (ada_exception_catchpoint_p): Delete.
2443 (catch_ada_exception_command_split)
2444 (ada_exception_catchpoint_cond_string): Rename exp_string
2445 parameter to excep_string. Adjust.
2446 (ada_parse_catchpoint_condition): Delete.
2447 (ada_exception_sal): Rename the exp_string parameter to
2448 excep_string. Delete the cond_string and cond parameters.
2450 (ada_decode_exception_location): Rename the exp_string parameter
2451 to excep_string. Delete the cond_string and cond parameters.
2453 (create_ada_exception_catchpoint): New function.
2454 (catch_ada_exception_command, ada_decode_assert_location)
2455 (catch_assert_command): Adjust.
2456 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2458 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2460 * ada-lang.c: Include arch-utils.h.
2461 (ada_decode_exception_location): Make static.
2462 (catch_ada_exception_command): Moved here from breakpoint.c.
2463 (ada_decode_assert_location): Make static.
2464 (catch_assert_command): Moved here from breakpoint.c.
2465 (_initialize_ada_lang): Install the exception and assert
2466 catchpoint commands here.
2467 * ada-lang.h (ada_decode_exception_location)
2468 (ada_decode_assert_location): Delete declarations.
2469 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2471 (create_ada_exception_breakpoint): Make extern.
2472 (catch_ada_exception_command, catch_assert_command): Moved to
2474 (add_catch_command): Make extern.
2475 (_initilize_breakpoint): Don't install the exception and assert
2476 catchpoint commands here.
2477 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2479 (add_catch_command, create_ada_exception_breakpoint): Declare.
2481 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2483 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2484 the breakpoint to the breakpoint chain here.
2485 (set_raw_breakpoint_without_location): Add the breakpoint to the
2486 breakpoint chain here.
2487 (init_raw_breakpoint): Adjust comments.
2488 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2490 (init_catchpoint): Don't set the catchpoint's breakpoint number
2492 (install_catchpoint): New function.
2493 (create_fork_vfork_event_catchpoint)
2494 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2495 use install_catchpoint.
2497 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2499 * breakpoint.c (create_catchpoint_without_mention)
2500 (create_catchpoint): Delete.
2502 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2504 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2505 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2506 reference to exec_pathname.
2507 (struct exec_catchpoint): New type.
2508 (dtor_catch_exec): New function.
2509 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2510 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2511 (catch_exec_command_1): Adjust to use init_catchpoint.
2512 (delete_breakpoint): Remove reference to exec_pathname.
2514 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2516 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2517 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2518 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2519 reference to syscalls_to_be_caught.
2520 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2522 (struct syscall_catchpoint): New type.
2523 (dtor_catch_syscall): New function.
2524 (insert_catch_syscall, remove_catch_syscall)
2525 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2526 (print_recreate_catch_syscall): Adjust.
2527 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2528 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2529 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2530 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2531 (masked_watchpoint_breakpoint_ops)
2532 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2533 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2534 there is one. Remove references to syscalls_to_be_caught.
2535 (catching_syscall_number): Adjust.
2536 * ada-lang.c (catch_exception_breakpoint_ops)
2537 (catch_exception_unhandled_breakpoint_ops)
2538 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2540 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2542 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2544 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2545 reference to forked_inferior_pid.
2546 (struct fork_catchpoint): New type.
2547 (breakpoint_hit_catch_fork, print_it_catch_fork)
2548 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2549 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2550 (create_fork_vfork_event_catchpoint): Adjust to use
2553 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2555 * breakpoint.c (add_to_breakpoint_chain)
2556 (init_raw_breakpoint_without_location): New functions, factored
2558 (set_raw_breakpoint_without_location): ... this one.
2559 (init_raw_breakpoint): New function, factored out from
2560 set_raw_breakpoint and adjusted to use
2561 init_raw_breakpoint_without_location.
2562 (set_raw_breakpoint): Adjust.
2563 (init_catchpoint): New function, factored out from
2564 create_catchpoint_without_mention and adjusted to use
2565 init_raw_breakpoint.
2566 (create_catchpoint_without_mention): Adjust.
2568 2011-06-22 Tom Tromey <tromey@redhat.com>
2570 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2571 argument of 0 specially.
2573 2011-06-22 Yao Qi <yao@codesourcery.com>
2575 * infrun.c (handle_inferior_event): Remove write-only local variable
2576 `sw_single_step_trap_p'.
2578 2011-06-20 Tom Tromey <tromey@redhat.com>
2580 * symtab.c (lookup_language_this): End loop if block is NULL.
2582 2011-06-17 Tom Tromey <tromey@redhat.com>
2584 * valops.c (value_of_this): Use lookup_language_this.
2585 * symtab.h (lookup_language_this): Declare.
2586 * symtab.c (lookup_language_this): New function.
2587 (lookup_symbol_aux): Use lookup_language_this.
2588 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2590 2011-06-17 Tom Tromey <tromey@redhat.com>
2592 * value.h (value_of_this): Update.
2593 (value_of_local): Remove.
2594 * valops.c (value_of_this): Rename from value_of_local. Change
2596 * p-exp.y (exp): Update.
2597 (variable): Likewise.
2598 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2600 2011-06-17 Tom Tromey <tromey@redhat.com>
2602 * valops.c (value_of_local): Complain if NAME is NULL.
2603 * std-operator.def (OP_OBJC_SELF): Remove.
2604 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2605 * objc-exp.y (name_not_typename): Use OP_THIS.
2606 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2608 <OP_OBJC_SELF>: Remove.
2609 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2611 2011-06-16 Tristan Gingold <gingold@adacore.com>
2613 * python/py-events.h (gdb_py_events): Make it extern.
2614 * python/py-evtregistry.c (gdb_py_events): Declare.
2616 2011-06-16 Hui Zhu <teawater@gmail.com>
2618 * remote.c (remote_trace_set_readonly_regions): Add check for
2619 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2622 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2624 * arm-linux-tdep.c: Include "auxv.h".
2626 (ARM_LINUX_SIZEOF_VFP): Define.
2627 (arm_linux_supply_vfp): New function.
2628 (arm_linux_collect_vfp): Likewise.
2629 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2630 (arm_linux_fpa_regset_sections): New variable.
2631 (arm_linux_vfp_regset_sections): Likewise.
2632 (arm_linux_core_read_description): New function.
2633 (arm_linux_init_abi): Install arm_linux_core_read_description and
2634 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2635 appropriate for the architecture.
2636 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2637 (tdesc_arm_with_m): Declare.
2638 (tdesc_arm_with_iwmmxt): Likewise.
2639 (tdesc_arm_with_vfpv2): Likewise.
2640 (tdesc_arm_with_vfpv3): Likewise.
2641 (tdesc_arm_with_neon): Likewise.
2642 * arm-linux-nat.c: Move features/*.c includes ...
2643 * arm-tdep.c: ... here.
2644 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2645 target description data structures ...
2646 * arm-tdep.c (_initialize_arm_tdep): ... here.
2647 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2648 HWCAP_VFPv3D16): Move definitions ...
2649 * arm-linux-tdep.h: ... here.
2651 2011-06-15 Hui Zhu <teawater@gmail.com>
2653 * remote.c (remote_trace_set_readonly_regions): Add a check for
2656 2011-06-14 Tom Tromey <tromey@redhat.com>
2658 * coffread.c (coffread_objfile): Rename from current_objfile.
2659 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2660 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2662 2011-06-14 Tom Tromey <tromey@redhat.com>
2664 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2665 (class_symtab): Remove.
2666 (jv_dynamics_progspace_key): New global.
2667 (jv_per_objfile_free): Reset program space data. Update assert.
2668 Don't clear globals.
2669 (get_dynamics_objfile): Use and set program space data.
2670 (get_java_class_symtab): Use get_dynamics_objfile.
2671 (add_class_symbol): Likewise.
2672 (java_link_class_type): Likewise.
2673 (java_object_type, jv_clear_object_type, set_java_object_type):
2675 (get_java_object_type): Update. Don't cache result.
2676 (is_object_type): Don't call set_java_object_type.
2677 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2678 initialize jv_dynamics_progspace_key.
2680 2011-06-14 Tom Tromey <tromey@redhat.com>
2682 * symtab.h (current_objfile): Don't declare.
2683 * objfiles.h (current_objfile): Don't declare.
2684 * objfiles.c (current_objfile): Remove.
2685 * mdebugread.c (current_objfile): New file-scope global.
2686 * dbxread.c (current_objfile): New file-scope global.
2687 * coffread.c (current_objfile): New file-scope global.
2689 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2691 * top.h (line): Rename to ...
2692 (saved_command_line): ... this.
2693 (linesize): Rename to ...
2694 (saved_command_line_size): ... this.
2695 * top.c (line): Rename to ...
2696 (saved_command_line): ... this.
2697 (linesize): Rename to ...
2698 (saved_command_line_size): ... this.
2699 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2700 * event-top.c (command_line_handler): Adjust.
2701 * main.c (captured_main): Adjust.
2703 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2705 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2706 get_frame_func instead of get_frame_pc to determine the code
2707 address used to construct the frame ID.
2708 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2709 (i386_epilogue_frame_this_id): Likewise.
2710 (i386_epilogue_frame_prev_register): New function.
2711 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2712 (i386_stack_tramp_frame_sniffer): Fix coding style.
2713 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2714 (i386_gdbarch_init): Fix comments.
2716 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2718 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2719 instruction when walking back through the instruction stream.
2721 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2723 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2724 fullname parameters order.
2726 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2729 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2731 * psymtab.c (map_symbol_filenames_psymtab)
2732 (map_partial_symbol_filenames): Likewise.
2733 * psymtab.h: Include symfile.h.
2734 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2735 * symfile.h (symbol_filename_ftype): New.
2736 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2737 map_symbol_filenames, clarify more the naming in comment.
2739 2011-06-07 Doug Evans <dje@google.com>
2741 * cc-with-index.sh: Fix typos in comment.
2742 Look for ../../gdb, for fullname.exp.
2744 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2745 Pedro Alves <pedro@codesourcery.com>
2747 * cli/cli-cmds.c (shell_escape): Use waitpid.
2748 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2750 2011-06-07 Tristan Gingold <gingold@adacore.com>
2752 * xcoffread.c (dwarf2_xcoff_names): New variable.
2753 (aix_process_linenos): Add a guard.
2754 (xcoff_symfile_finish): Free dwarf2.
2755 (xcoff_initial_scan): Add dwarf2 support.
2757 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2759 * infcall.c (run_inferior_call): Don't mask async. Instead force
2760 a synchronous wait, if the target can async.
2762 * target.h (struct target_ops): Delete to_async_mask.
2763 (target_async_mask): Delete.
2764 * target.c (update_current_target): Delete references to to_async_mask.
2765 * linux-nat.c (linux_nat_async_mask_value): Delete.
2766 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2767 to linux_nat_async_mask_value.
2768 (linux_nat_async_mask): Delete.
2769 (linux_nat_async, linux_nat_close): Remove references to
2770 linux_nat_async_mask_value.
2771 * record.c (record_async_mask_value): Delete.
2772 (record_async): Remove references to record_async_mask_value.
2773 (record_async_mask): Delete.
2774 (record_can_async_p, record_is_async_p): Remove references to
2775 record_async_mask_value.
2776 (init_record_ops, init_record_core_ops): Remove references to
2778 * remote.c (remote_async_mask_value): Delete.
2779 (init_remote_ops): Remove reference to remote_async_mask.
2780 (remote_can_async_p, remote_is_async_p): Remove references to
2781 remote_async_mask_value.
2782 (remote_async): Remove references to remote_async_mask_value.
2783 (remote_async_mask): Delete.
2785 * infrun.c (fetch_inferior_event): Don't claim registers changed
2786 if the current thread is already not executing.
2788 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2790 From Stephen Kitt <steve@sk2.org>
2791 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2792 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2794 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2796 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2797 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2799 2011-06-03 Tom Tromey <tromey@redhat.com>
2801 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2803 * python/py-exitedevent.c (create_exited_event_object): Change
2804 type of 'exit_code'. Optionally add exit_code attribute.
2805 (emit_exited_event): Change type of 'exit_code'.
2806 * python/py-event.h (emit_exited_event): Update.
2807 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2808 * infrun.c (handle_inferior_event): Set exit code fields on
2810 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2812 * inferior.c (exit_inferior_1): Initialize new fields.
2814 2011-06-03 Tom Tromey <tromey@redhat.com>
2816 * dwarf2expr.c (get_signed_type): New function.
2817 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2819 2011-06-02 Keith Seitz <keiths@redhat.com>
2821 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2823 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2825 * top.h (simplified_command_loop): Delete declaration.
2827 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2829 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2830 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2832 2011-06-01 Yao Qi <yao@codesourcery.com>
2834 * objfiles.h (obj_section_addr): Update reference to objfile from
2836 (obj_section_endaddr): Likewise.
2838 2011-06-01 Daniel Jacobowitz <drow@false.org>
2840 * MAINTAINERS: Update my email address and affiliation. Also
2841 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2843 2010-05-31 Keith Seitz <keiths@redhat.com>
2846 * linespec.c (get_search_block): New function.
2847 (find_methods): Add FILE_SYMTATB parameter and use it and
2848 get_search_block to pass an appropriate block to
2849 lookup_symbol_in_namespace.
2850 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2851 Check if *ARGPTR starts with a filename first.
2852 If it does, call locate_first_half again to locate the next
2853 "first half" of the linespec.
2854 Pass FILE_SYMTATB to decode_objc and decode_compound.
2855 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2856 (locate_first_half): Stop on the first colon seen.
2857 (decode_compound): Add FILE_SYMTAB parameter.
2858 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2859 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2860 get_search_block with lookup_symbol.
2861 (find_method): Add FILE_SYMTAB parameter and pass it to
2863 (decode_objc): Use get_search_block.
2865 2010-05-31 Keith Seitz <keiths@redhat.com>
2868 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2869 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2870 and CP_ANONYMOUS_NAMESPACE_LEN.
2871 (cp_is_anonymous): Likewise.
2872 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2873 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2874 * dwarf2read.c (namespace_name): Likewise.
2875 (fixup_partial_die): Likewise.
2876 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2877 seen in the input, keep it.
2879 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2881 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2882 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2883 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2884 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2885 * remote.c (_initialize_remote): Register
2886 async_remote_interrupt_twice directly as
2887 sigint_remote_twice_token event.
2889 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2891 * target.h (enum inferior_event_type): Delete INF_ERROR.
2892 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2894 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2896 * interps.c (interp_set): Don't cancel continuations.
2898 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2900 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2902 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2904 * continuations.h (continuation_ftype): Add `err' parameter.
2905 Document parameters.
2906 (do_all_continuations, do_all_continuations_thread)
2907 (do_all_intermediate_continuations)
2908 (do_all_intermediate_continuations_thread)
2909 (do_all_inferior_continuations): Add `err' parameter.
2910 * continuations.c (do_my_continuations_1, do_my_continuations)
2911 (do_all_inferior_continuations, do_all_continuations_ptid)
2912 (do_all_continuations_thread_callback)
2913 (do_all_continuations_thread, do_all_continuations)
2914 (do_all_intermediate_continuations_thread_callback)
2915 (do_all_intermediate_continuations_thread)
2916 (do_all_intermediate_continuations): Add `err' parameter, and pass
2917 it down all the way to the continuations proper.
2918 * inf-loop.c (inferior_event_handler): If fetching an inferior
2919 event throws an error, don't pop the target, and still call the
2920 continuations, but with `err' set. Adjust all other continuation
2922 * breakpoint.c (until_break_command_continuation): Add `err'
2924 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2925 issue another step if `err' is set.
2926 (struct until_next_continuation_args): New.
2927 (until_next_continuation): Add `err' parameter. Adjust.
2928 (until_next_command): Adjust.
2929 (struct finish_command_continuation_args): Add `thread' field.
2930 (finish_command_continuation): Add `err' parameter. Handle it.
2931 (finish_forward): Adjust.
2932 (attach_command_continuation): Add `err' parameter. Handle it.
2933 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2934 cancel the continuations.
2935 * interps.c (interp_set): Adjust to cancel the continuations.
2936 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2937 continuations rather than discarding.
2938 (free_thread): Don't clear thread inferior resources here.
2939 (delete_thread_1): Do it here instead. And do it before removing
2940 the thread from the threads list. Tag the thread as exited before
2941 clearing thread inferior resources.
2943 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2945 * infcall.c (call_function_by_hand): Rephrase error message.
2947 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2949 * defs.h (struct thread_info, struct inferior): Delete forward
2951 * breakpoint.h (struct thread_info): New forward declaration.
2952 * observer.sh (struct inferior): New forward declaration.
2953 * python/python-internal.h (struct inferior): New forward
2956 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2958 * defs.h (struct continuation, continuation_ftype)
2959 (continuation_free_arg_ftype, add_continuation)
2960 (do_all_continuations, do_all_continuations_thread)
2961 (discard_all_continuations, discard_all_continuations_thread)
2962 (add_intermediate_continuation, do_all_intermediate_continuations)
2963 (do_all_intermediate_continuations_thread)
2964 (discard_all_intermediate_continuations)
2965 (discard_all_intermediate_continuations_thread)
2966 (add_inferior_continuation, do_all_inferior_continuations)
2967 (discard_all_inferior_continuations): Move to ...
2968 * continuations.h: ... this new file.
2969 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2970 infcmd.c, inferior.c, infrun.c, interps.c: Include
2973 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 Doug Evans <dje@google.com>
2976 Fix PR 10970, PR 12702.
2977 * linux-nat.c (linux_lwp_is_zombie): New function.
2978 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2979 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2981 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2983 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2985 (add_continuation, add_intermediate_continuation)
2986 (add_inferior_continuation): Use them.
2987 * continuations.c (struct continuation): Use them.
2988 (make_continuation_ftype): Delete.
2989 (make_continuation, add_inferior_continuation, add_continuation)
2990 (add_intermediate_continuation): Use continuation_ftype and
2991 continuation_free_arg_ftype. Rename parameters to shorter names.
2993 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2995 * continuations.c (make_continuation): Make it return void.
2996 (do_my_continuations): Rename to ...
2997 (do_my_continuations_1): ... this. Remove old_chain parameter and
2999 (do_my_continuations): New.
3000 (discard_my_continuations): Rename to ...
3001 (discard_my_continuations_1): ... this. Remove old_chain
3002 parameter and adjust.
3003 (discard_my_continuations): New.
3004 (add_inferior_continuation): Simplify.
3005 (do_all_inferior_continuations): Reimplement on top
3006 do_my_continuations.
3007 (discard_all_inferior_continuations): Simplify.
3008 (add_continuation): Simplify.
3009 (do_all_continuations_ptid): Simplify.
3010 (discard_all_continuations_thread_callback): Simplify.
3011 (add_intermediate_continuation): Simplify.
3012 (discard_all_intermediate_continuations_thread_callback):
3015 2011-05-27 Pedro Alves <pedro@codesourcery.com>
3017 * utils.c (struct continuation, add_continuation)
3018 (add_inferior_continuation)
3019 (do_all_inferior_continuations, discard_all_inferior_continuations)
3020 (restore_thread_cleanup, do_all_continuations_ptid)
3021 (do_all_continuations_thread_callback)
3022 (do_all_continuations_thread, do_all_continuations)
3023 (discard_all_continuations_thread_callback)
3024 (discard_all_continuations_thread, discard_all_continuations)
3025 (add_intermediate_continuation)
3026 (do_all_intermediate_continuations_thread_callback)
3027 (do_all_intermediate_continuations_thread)
3028 (do_all_intermediate_continuations)
3029 (discard_all_intermediate_continuations_thread_callback)
3030 (discard_all_intermediate_continuations_thread)
3031 (discard_all_intermediate_continuations): Move to ...
3032 * continuations.c: ... this new file, and adjust to no longer
3033 implement continuations on top of cleanups.
3034 * Makefile.in (SFILES): Add continuations.c.
3035 (COMMON_OBS): Add continuations.o.
3037 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3039 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3040 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3041 Internal error on invalid values.
3042 * reverse.c: Don't handle EXEC_ERROR.
3043 * mi/mi-main.c: Don't handle EXEC_ERROR.
3045 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3047 * record.c: Include event-loop.h, inf-loop.h.
3048 (record_beneath_to_async): New global.
3049 (tmp_to_async): New global.
3050 (record_async_inferior_event_token): New global.
3051 (record_open_1): Don't error out if async is enabled.
3052 (record_open): Handle to_async. Create an async event source in
3054 (record_close): Delete the async event source.
3055 (record_resumed): New global.
3056 (record_execution_dir): New global.
3057 (record_resume, record_core_resume): Set them. Register the
3058 target on the event loop.
3059 (record_wait): Rename to ...
3060 (record_wait_1): ... this. Add more debug output. Handle
3061 TARGET_WNOHANG, and the target beneath returning
3062 TARGET_WAITKIND_IGNORE.
3063 (record_wait): Reimplement on top of record_wait_1.
3064 (record_async_mask_value): New global.
3065 (record_async, record_async_mask, record_can_async_p)
3066 (record_is_async_p, record_execution_direction): New functions.
3067 (init_record_ops, init_record_core_ops): Install new methods.
3068 * infrun.c (fetch_inferior_event): Temporarily switch the global
3069 execution direction to the direction the target was going.
3070 (execution_direction): Change type to int.
3071 * target.c (default_execution_direction): New function.
3072 (update_current_target): Inherit and de_fault
3073 to_execution_direction.
3074 * target.h (struct target_ops) <to_execution_direction>: New
3076 (target_execution_direction): New macro.
3077 * inferior.h (execution_direction): Change type to int.
3079 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3081 * infcall.c (call_function_by_hand): Don't allow calling functions
3082 in reverse execution mode.
3084 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3086 * infcmd.c (finish_command): Allow async finish in reverse.
3088 2011-05-26 Yao Qi <yao@codesourcery.com>
3090 * gdb_thread_db.h: Delete. Move to ...
3091 * common/gdb_thread_db.h: ... here.
3093 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3095 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3096 function's entry point instead of a manually managed momentary
3097 breakpoint, and only ever issue one proceed call.
3098 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3099 doing a reverse-finish, switch to stepi mode, to do another step.
3100 (insert_step_resume_breakpoint_at_sal): Make public.
3101 (normal_stop): No need to save function value return registers if
3103 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3105 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3107 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3108 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3109 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3111 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3112 step-resume breakpoints.
3113 (print_it_typical): Handle bp_hp_step_resume.
3114 (bpstat_what): Ditto.
3115 (bptype_string): Ditto.
3116 (print_one_breakpoint_location): Ditto.
3117 (allocate_bp_location): Ditto.
3119 (breakpoint_re_set_one): Ditto.
3120 * infrun.c (handle_inferior_event): Adjust. Split
3121 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3122 BPSTAT_WHAT_HP_STEP_RESUME.
3123 (insert_step_resume_breakpoint_at_sal): Rename to ...
3124 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3125 parameter. Handle it.
3126 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3127 insert_step_resume_breakpoint_at_sal_1.
3128 (insert_step_resume_breakpoint_at_frame): Rename to ...
3129 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3130 set a high-priority step-resume breakpoint.
3131 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3132 (insert_step_resume_breakpoint_at_caller): Ditto.
3134 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3136 * breakpoint.c (iterate_over_related_breakpoints): New.
3137 (do_map_delete_breakpoint): New.
3138 (delete_command): Pass do_map_delete_breakpoint to
3139 map_breakpoint_numbers.
3140 (do_disable_breakpoint): New.
3141 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3143 (do_enable_breakpoint): Rename to ...
3144 (enable_breakpoint_disp): ... this.
3145 (enable_breakpoint): Adjust.
3146 (do_enable_breakpoint): New.
3147 (enable_once_breakpoint): Delete.
3148 (do_map_enable_breakpoint): New.
3149 (do_map_enable_once_breakpoint): New.
3150 (enable_once_command, enable_delete_command)
3151 (delete_trace_command): Iterate over the breakpoint's related
3154 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3156 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3157 for ALPHA_ZERO_REGNUM.
3158 (alpha_supply_int_regs): Explicitly supply zero as the value for
3159 ALPHA_ZERO_REGNUM in the register cache.
3160 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3162 2011-05-26 Yao Qi <yao@codesourcery.com>
3164 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3166 2011-05-26 Tristan Gingold <gingold@adacore.com>
3168 * symfile.h (struct dwarf2_section_names): New type.
3169 (struct dwarf2_debug_sections): New type.
3170 (dwarf2_has_info): Add parameter.
3171 * dwarf2read.c (dwarf2_elf_names): New variable.
3172 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3173 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3174 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3175 (dwarf2_has_info): Add names parameter. Pass names
3176 to dwarf2_locate_sections.
3177 (section_is_p): Rewrite using the names parameter.
3178 (dwarf2_locate_sections): Use section names from the names parameter.
3179 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3180 * elfread.c (read_psyms): Ditto.
3181 * machoread.c (macho_symfile_read): Ditto.
3183 2011-05-25 Andreas Schwab <schwab@redhat.com>
3186 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3188 2011-05-24 Keith Seitz <keiths@redhat.com>
3191 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3192 (decode_compound): Unconditionally call keep_name_info.
3194 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3196 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3197 scope, clear its command list.
3198 (map_breakpoint_numbers): Don't walk the related breakpoints list
3201 2011-05-24 Tom Tromey <tromey@redhat.com>
3203 * MAINTAINERS: Move Jim Blandy to past maintainers.
3205 2011-05-24 Tristan Gingold <gingold@adacore.com>
3207 * symfile.h (enum dwarf2_section_enum): New type.
3208 (dwarf2_get_section_info): New prototype.
3209 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3210 section_name by sect. Use a switch to select the info.
3211 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3212 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3214 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3216 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3217 shared library event breakpoint if there's no execution.
3219 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3221 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3222 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3224 2011-05-23 Tom Tromey <tromey@redhat.com>
3226 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3229 2011-05-23 Doug Evans <dje@google.com>
3231 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3232 entry for RuntimeError to doc string.
3234 2011-05-23 Jerome Guitton <guitton@adacore.com>
3236 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3237 sequence for probing loops.
3239 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3241 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3244 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3246 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3247 zero as the value for %g0 in the register cache.
3248 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3249 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3251 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3253 * infrun.c (proceed): Set previous_inferior_ptid here.
3254 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3255 inferior_ptid, not null_ptid.
3256 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3257 (fetch_inferior_event): Nor here.
3259 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3261 * inf-loop.c (inferior_event_handler): Only output a message if
3264 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3266 * MAINTAINERS: Update my e-mail address.
3268 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3270 * infrun.c (proceed): Switch the inferior event loop to
3271 INF_EXEC_COMPLETE if the target refused to resume from a
3274 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3276 * infcmd.c: Include "inf-loop.h".
3277 (step_once): When stepping into an inline subroutine, pretend the
3278 target has run. If the target can async, switch the inferior
3279 event loop to INF_EXEC_COMPLETE.
3280 * inferior.h (user_visible_resume_ptid): Declare.
3281 * infrun.c (user_visible_resume_ptid): New function, factored out
3284 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3285 that the current thread is running. Merge async and sync
3288 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3290 * infcmd.c (step_1): Simplify synchronous case.
3292 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3294 * tracepoint.c: Include exceptions.h.
3295 (TFILE_PID): Move higher in file.
3296 (tfile_open): Delay pushing the tfile target until we're assured
3297 the tfile header is present in the file. Wrap reading the initial
3298 newline-terminated lines in TRY_CATCH. Pop the target if the
3299 initial setup failed. Add the tfile's thread immediately
3300 aftwards, before any non-essential setup. Don't skip
3301 post_create_inferior if there are no traceframes present in the
3303 (tfile_close): Remove redundant check for null before xfree call.
3304 (tfile_thread_alive): New function.
3305 (init_tfile_ops): Register it as to_thread_alive callback.
3307 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3309 * tracepoint.c (tfile_open): Delete #if 0'd code.
3311 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3313 Fix -readnow for -gdwarf-4 unused type units.
3314 * dwarf2read.c (struct signatured_type): Remove the field offset.
3315 (create_signatured_type_table_from_index): Remove its initialization.
3316 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3317 instead. Add a complaint call.
3318 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3319 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3320 (lookup_signatured_type_at_offset, read_signatured_type)
3321 (write_one_signatured_type): Update the field for per_cu.
3323 2011-05-19 Tom Tromey <tromey@redhat.com>
3325 * python/py-inferior.c (python_inferior_exit): Use
3327 (python_on_resume): Likewise.
3329 2011-05-19 Matt Rice <ratmice@gmail.com>
3331 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3333 2011-05-19 Hui Zhu <teawater@gmail.com>
3335 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3337 2011-05-19 Hui Zhu <teawater@gmail.com>
3339 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3341 2011-05-18 Tom Tromey <tromey@redhat.com>
3343 * dwarf2read.c (dwarf2_add_field): Constify.
3344 * value.c (value_static_field): Constify.
3345 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3347 * ax-gdb.c (gen_static_field): Constify
3349 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3351 * linux-nat.c (kill_callback): Use SIGKILL first.
3353 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3355 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3357 2011-05-18 Tom Tromey <tromey@redhat.com>
3359 * value.c (value_fn_field): Constify.
3360 * symtab.c (gdb_mangle_name): Constify.
3361 * stabsread.c (update_method_name_from_physname): Make 'physname'
3363 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3364 const. Use explicit fputc_filtered loop.
3365 (pascal_type_print_base): Constify.
3366 * p-lang.h (pascal_type_print_method_args): Update.
3367 * linespec.c (add_matching_methods): Constify.
3368 (add_constructors): Likewise.
3369 * jv-typeprint.c (java_type_print_base): Constify.
3370 * gdbtypes.h (struct cplus_struct_type)
3371 <fn_fieldlist.fn_field.physname>: Now const.
3372 * dwarf2read.c (compute_delayed_physnames): Constify.
3373 (dwarf2_add_member_fn): Likewise.
3374 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3376 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3378 * infrun.c (resume): Mention which is the current thread, and its
3379 current PC in debug output.
3380 (prepare_to_proceed): Mention the thread switching in debug
3383 2011-05-18 Tom Tromey <tromey@redhat.com>
3385 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3386 path check. Use xmalloc and cleanups.
3387 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3389 2011-05-17 Tom Tromey <tromey@redhat.com>
3391 * cp-valprint.c (cp_print_value_fields): Catch errors from
3394 2011-05-17 Tom Tromey <tromey@redhat.com>
3396 * dwarf2read.c (dwarf2_get_die_type): Call
3397 get_die_type_at_offset.
3398 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3399 get_base_type function.
3401 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3403 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3406 2011-05-16 Doug Evans <dje@google.com>
3408 * python/py-auto-load.c (source_section_scripts): Mention objfile
3411 2011-05-15 Doug Evans <dje@google.com>
3413 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3414 (try_thread_db_load_from_pdir): Call it. If unable to find
3415 libthread_db in directory of libpthread, see if we're looking at
3416 the separate-debug-info copy.
3418 * python/py-autoload.c (print_script): Print "Missing" instead of
3419 "No" for missing scripts.
3420 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3422 2011-05-13 Doug Evans <dje@google.com>
3424 * ui-file.c (stdio_file_write_async_safe): Add comment.
3426 2011-05-14 Hui Zhu <teawater@gmail.com>
3428 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3430 2011-05-13 Doug Evans <dje@google.com>
3432 Support $pdir and $sdir in libthread-db-search-path.
3433 * NEWS: Mention $sdir,$pdir.
3434 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3435 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3436 (try_thread_db_load_from_sdir): New function.
3437 (try_thread_db_load_from_dir): New function.
3438 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3439 system directories if search of libthread-db-search-path fails,
3440 that is now done via $sdir.
3441 (has_libpthread): New function.
3442 (thread_db_load): Remove search for libthread_db in directory of
3443 libpthread, that is now done via $pdir.
3445 * NEWS: Mention "info auto-load-scripts".
3446 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3447 script_not_found_warning_printed.
3448 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3449 all callers updated. Initialize script_not_found_warning_printed.
3450 (get_auto_load_pspace_data_for_loading): New function.
3451 (maybe_add_script): New function.
3452 (source_section_scripts): Simplify. Only print one warning regardless
3453 of the number of auto-load scripts not found.
3454 (clear_section_scripts): Clear script_not_found_warning_printed.
3455 (auto_load_objfile_script): Record script in hash table.
3456 (count_matching_scripts): New function.
3457 (maybe_print_script): Renamed from maybe_print_section_script, all
3458 callers updated. Rewrite to use ui_out_*.
3459 (info_auto_load_scripts): Renamed from
3460 maintenance_print_section_scripts, all callers updated.
3461 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3462 renamed as "info auto-load-scripts".
3464 2011-05-13 Tom Tromey <tromey@redhat.com>
3466 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3467 (read_sleb128): Likewise.
3469 2011-05-13 Tom Tromey <tromey@redhat.com>
3471 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3474 2011-05-13 Doug Evans <dje@google.com>
3476 * linux-nat.c (debug_linux_nat_async): Delete.
3477 Replace all references to use debug_linux_nat instead.
3478 (show_debug_linux_nat_async): Delete.
3479 (sigchld_handler): Call ui_file_write_async_safe instead of
3481 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3482 * ui-file.c (struct ui_file): New member to_write_async_safe.
3483 (null_file_write_async_safe): New function.
3484 (ui_file_write_async_safe): New function.
3485 (set_ui_file_write_async_safe): New function.
3486 (ui_file_new): Initialize to_write_async_safe.
3487 (stdio_file_write_async_safe): New function.
3488 (struct stdio_file): New member fd.
3489 (stdio_file_new): Initialize to_write_async_safe, fd.
3490 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3492 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3493 (set_ui_file_write_async_safe): Declare.
3494 (ui_file_write_async_safe): Declare.
3496 2011-05-13 Tom Tromey <tromey@redhat.com>
3498 * utils.c (do_value_free): New function.
3499 (make_cleanup_value_free): Likewise.
3500 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3502 (dwarf2_loc_desc_needs_frame): Call
3503 make_cleanup_value_free_to_mark.
3504 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3505 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3507 (new_dwarf_expr_context): Don't call value_mark.
3508 * dwarf2-frame.c (execute_stack_op): Call
3509 make_cleanup_value_free_to_mark.
3510 * defs.h (make_cleanup_value_free): Declare.
3512 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3514 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3515 prepare_execute_command.
3516 * top.c (prepare_execute_command): Return cleanup.
3517 (execute_command): Use cleanup from prepare_execute_command.
3518 * top.h (prepare_execute_command): Change prototype to return
3520 * defs.h (struct value): Add opaque declaration.
3521 (make_cleanup_value_free_to_mark): Add prototype.
3522 * utils.c (do_value_free_to_mark): New function.
3523 (make_cleanup_value_free_to_mark): Likewise.
3525 2011-05-12 Tom Tromey <tromey@redhat.com>
3527 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3528 cast left-hand-side to unsigned.
3530 2011-05-12 Tom Tromey <tromey@redhat.com>
3533 * value.h (value_from_contents): Declare.
3534 * value.c (value_from_contents): New function.
3535 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3536 (dwarf2_get_die_type): New function.
3537 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3538 (allocate_piece_closure): Acquire reference to values.
3539 (read_pieced_value): Update for value-based expressions.
3540 (write_pieced_value): Likewise.
3541 (free_pieced_value_closure): Call value_free as needed.
3542 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3543 Update for value-based expressions.
3544 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3545 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3546 <get_base_type>: New field.
3547 (struct dwarf_expr_piece) <v.value>: Change type.
3548 <v.regno>: New field.
3549 (struct dwarf_expr_context) <mark>: New field.
3550 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3551 (dwarf_expr_pop, dwarf_expr_push): Remove.
3552 (dwarf_expr_push_address): Declare.
3553 * dwarf2expr.c (dwarf_arch_cookie): New global.
3554 (struct dwarf_gdbarch_types): New.
3555 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3557 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3559 (dwarf_expr_push_address): New function.
3560 (dwarf_expr_pop): Now static.
3561 (dwarf_expr_fetch): Change return type.
3562 (dwarf_require_integral): New function.
3563 (dwarf_expr_fetch): Simplify.
3564 (add_piece): Update.
3565 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3567 (execute_stack_op) <sign_ext>: Remove.
3568 Use values for DWARF stack.
3569 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3570 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3572 (_initialize_dwarf2expr): New function.
3573 (add_piece): Update.
3574 (new_dwarf_expr_context): Set new field.
3575 (free_dwarf_expr_context): Call value_free_to_mark.
3576 * dwarf2-frame.c (no_base_type): New function.
3577 (execute_stack_op): Set get_base_type field. Update.
3579 2011-05-12 Tom Tromey <tromey@redhat.com>
3581 * dwarf2read.c (read_common_block): Fix formatting.
3583 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3585 * breakpoint.c (disable_breakpoint): Disable all locations
3586 associated with a tracepoint on target if a trace experiment is
3588 (disable_command): Disable a specific tracepoint location on target if
3589 a trace experiment is running.
3590 (do_enable_breakpoint): Enable all locations associated with a
3591 tracepoint on target if a trace experiment is running.
3592 (enable_command) Enable a specific tracepoint location on target if a
3593 trace experiment is running.
3594 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3595 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3596 to_disable_tracepoint.
3597 * target.h: Add declaration of struct bp_location.
3598 (struct target_ops): Add new functions
3599 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3600 to_disable_tracepoint to target operations.
3601 (target_supports_enable_disable_tracepoint): New macro.
3602 (target_enable_tracepoint): New macro.
3603 (target_disable_tracepoint): New macro.
3604 * remote.c (struct remote_state): Add new field.
3605 (remote_enable_disable_tracepoint_feature): New.
3606 (remote_protocol_features): Add new entry.
3607 (remote_supports_enable_disable_tracepoint): New.
3608 (remote_enable_tracepoint): New.
3609 (remote_disable_tracepoint): New.
3610 (init_remote_ops): Add remote_enable_tracepoint,
3611 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3612 to remote operations.
3613 * tracepoint.c (start_tracing): Allow tracing to start without any
3614 tracepoints enabled with just a warning if they can be re-enabled
3616 * NEWS: Add news item for the new behaviour of the enable and disable
3617 GDB commands when applied to tracepoints.
3618 Add news items for the new remote packets QTEnable and QTDisable.
3620 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3622 * config.in: Regenerate.
3623 * configure: Regenerate.
3624 * configure.ac <--with-system-readline> (for readline_echoing_p):
3626 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3627 (tui_old_rl_echoing_p): ... here.
3628 (tui_setup_io): Rename extern declaration readline_echoing_p to
3629 _rl_echoing_p. Adjust assignments for the both renames.
3631 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3633 * symtab.c (lookup_symtab): Run cleanup before returning.
3635 2011-05-11 Tom Tromey <tromey@redhat.com>
3637 * dwarf2read.c (handle_data_member_location): New function.
3638 (dwarf2_add_field): Use it.
3639 (read_common_block): Likewise.
3641 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 Make addrs->SECTINDEX always defined.
3644 * symfile.c (relative_addr_info_to_section_offsets): Check for
3645 SECTINDEX -1, not for zero ADDR.
3646 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3647 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3648 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3651 2011-05-10 Doug Evans <dje@google.com>
3653 * linux-thread-db.c: Whitespace cleanup.
3654 (try_thread_db_load_1): Fix comment.
3656 * linux-thread-db.c (set_libthread_db_search_path): New function.
3657 (_initialize_thread_db): Add setter for libthread-db-search-path.
3659 2011-05-09 Doug Evans <dje@google.com>
3661 * NEWS: Mention --with-iconv-bin.
3662 * configure.ac: New option --with-iconv-bin.
3663 * configure: Regenerate.
3664 * config.in: Regenerate.
3665 * defs.h (relocate_gdb_directory): Declare.
3666 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3667 removed progname parameter, and exported. All callers updated.
3668 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3670 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3671 adding missing call to restore_child_signals_mask.
3673 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3675 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3677 * infrun.c (proceed, start_remote): Adjust.
3678 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3679 and adjust to not handle it.
3680 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3681 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3682 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3683 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3684 * windows-nat.c (do_initial_windows_stuff): Adjust.
3685 * infcmd.c (attach_command): Adjust.
3686 (notice_new_inferior): Adjust.
3688 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3690 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3691 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3692 * spu-tdep.c (op_selb): Use correct value.
3694 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3696 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3697 "parent" parameter to symbol_file_add_from_bfd call.
3699 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3700 Thiago Jung Bauermann <bauerman@br.ibm.com>
3702 Implement support for PowerPC BookE masked watchpoints.
3703 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3705 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3706 method. Initialize to NULL in all existing breakpoint_ops instances.
3707 (struct breakpoint) <hw_wp_mask>: New field.
3708 * breakpoint.c (is_masked_watchpoint): Add prototype.
3709 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3710 breakpoint's breakpoint_ops.works_in_software_mode if available.
3711 (watchpoints_triggered): Handle the case of a hardware masked
3713 (watchpoint_check): Likewise.
3714 (works_in_software_mode_watchpoint): New function.
3715 (insert_masked_watchpoint, remove_masked_watchpoint)
3716 (resources_needed_masked_watchpoint)
3717 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3718 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3719 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3721 (masked_watchpoint_breakpoint_ops): New structure.
3722 (watch_command_1): Check for the existence of the `mask' parameter.
3723 Set b->ops according to the type of hardware watchpoint being created.
3724 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3725 (ppc_linux_remove_mask_watchpoint)
3726 (ppc_linux_masked_watch_num_registers): New functions.
3727 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3728 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3729 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3730 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3731 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3732 (target_masked_watch_num_registers): New functions.
3733 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3734 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3736 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3737 (target_masked_watch_num_registers): Add prototypes.
3739 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3743 (producer_is_gcc_ge_4_0): New function.
3744 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3745 symtab->language code.
3746 (var_decode_location): Set cu->has_loclist.
3747 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3748 skip. Intialize force_skip from locations_valid. Move the prologue
3749 skipping code into two passes.
3750 * symtab.h (struct symtab): Make the primary field a bitfield. New
3751 field locations_valid.
3753 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3755 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3756 (classify_inner_name): Call cp_lookup_nested_type with
3758 * cp-namespace.c (cp_lookup_nested_type): New variable
3759 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3760 type_name_no_tag_or_error with saved_parent_type.
3761 * dwarf2read.c (load_partial_dies): Read in any children of
3762 DW_TAG_typedef with complaint in such case.
3763 * gdbtypes.c (type_name_no_tag_or_error): New function.
3764 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3765 * valops.c (destructor_name_p): New comment for parameter type. Remove
3766 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3767 * value.h (destructor_name_p): Remove type const.
3769 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3771 * symtab.c (compare_symbol_name): New function.
3772 (completion_list_add_name, expand_partial_symbol_name): Call it,
3773 remove the variable ncmp.
3774 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3777 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3779 Demote to sw watchpoint only in update_watchpoint.
3780 * breakpoint.c (update_watchpoint): Change between software and
3781 hardware watchpoint for all kinds of watchpoints, not just
3782 read/write ones. Determine b->exact value here instead of
3783 in watch_command_1. Error out if there are not enough resources
3784 for a read or access hardware watchpoint.
3785 (watch_command_1): Remove logic of checking whether there are
3786 enough resources available, since update_watchpoint will do that
3787 work now. Don't set b->exact here. Catch exceptions thrown by
3788 update_watchpoint and delete the watchpoint.
3789 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3790 Use target_exact_watchpoints instead.
3791 (delete_breakpoint): Notify observers only if deleted watchpoint
3792 has a breakpoint number assigned to it.
3794 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3798 2011-05-05 Jerome Guitton <guitton@adacore.com>
3800 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3802 (i386_stack_tramp_frame_unwind): New static global.
3803 (i386_match_pattern): New function, extracted from i386_match_insn.
3804 (i386_match_insn): Use i386_match_pattern.
3805 (i386_match_insn_block): New function.
3806 (i386_tramp_chain_in_reg_insns)
3807 (i386_tramp_chain_on_stack_insns): New static variables.
3808 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3811 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3813 * configure.host (xscale*): Don't handle target.
3814 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3817 2011-05-04 Yao Qi <yao@codesourcery.com>
3819 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3821 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3824 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3825 | * elfread.c (elf_symtab_read): Stop memory leak.
3827 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3829 * nto-tdep.c (nto_target): Replace deprecated call to
3830 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3832 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3834 Fix false GCC warning.
3835 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3837 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3839 * breakpoint.c (update_watchpoint): Move code to change
3840 the enable state of breakpoint from here ...
3841 (do_enable_breakpoint): ... to here.
3843 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3845 * valprint.c (val_print_array_elements): Fixed poor performance
3846 of printing very large arrays with repeat_count_threshold set
3847 to unlimited. New comment.
3849 2011-04-29 Tom Tromey <tromey@redhat.com>
3851 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3852 (mi_parse): Likewise.
3853 * breakpoint.c (break_range_command): Use sizeof char*, not
3855 (create_breakpoint): Likewise.
3856 (parse_breakpoint_sals): Likewise.
3858 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3860 * linux-nat.c (linux_child_remove_fork_catchpoint)
3861 (linux_child_remove_vfork_catchpoint)
3862 (linux_child_remove_exec_catchpoint): New functions.
3863 (linux_target_install_ops): Install them.
3865 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3869 * varobj.c (install_default_visualizer): Do not install a
3870 visualizer if the varobj is CPLUS_FAKE_CHILD.
3871 (construct_visualizer): Likewise.
3873 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3875 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3876 case insensitive comparison.
3878 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3880 * infrun.c (proceed): Revert previous change.
3881 (resume): Instead, handle the case of signal delivery while stepping
3882 off a breakpoint location here, and only if software single-stepping
3883 is used. Handle nested signals.
3885 2011-04-28 Yao Qi <yao@codesourcery.com>
3887 * arm-tdep.c (copy_unmodified): Rename to ...
3888 (arm_copy_unmodified): .. this. New.
3889 (copy_preload): Move common part to ...
3890 (install_preload): .. this. New.
3891 (arm_copy_preload): New.
3892 (copy_preload_reg): Move common part to ...
3893 (install_preload_reg): ... this. New.
3894 (arm_copy_preload_reg): New.
3895 (copy_b_bl_blx): Move common part to ...
3896 (install_b_bl_blx): .. this. New.
3897 (arm_copy_b_bl_blx): New.
3898 (copy_bx_blx_reg): Move common part to ...
3899 (install_bx_blx_reg): ... this. New.
3900 (arm_copy_bx_blx_reg): New.
3901 (copy_alu_reg): Move common part to ...
3902 (install_alu_reg): ... this. New.
3903 (arm_copy_alu_reg): New.
3904 (copy_alu_shifted_reg): Move common part to ...
3905 (install_alu_shifted_reg): ... this. New.
3906 (copy_ldr_str_ldrb_strb): Move common part to ...
3907 (install_ldr_str_ldrb_strb): ... this. New.
3908 (arm_copy_ldr_str_ldrb_strb): New.
3909 (copy_copro_load_store): Move some common part to ...
3910 (install_copy_copro_load_store): ... this. New.
3911 (arm_copy_copro_load_store): New.
3913 (arm_copy_svc): Renamed from copy_svc.
3914 (copy_undef): Delete.
3915 (arm_copy_undef): Renamed from copy_undef.
3916 (decode_ext_reg_ld_st): Delete.
3917 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3918 (decode_svc_copro): Delete.
3919 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3920 (copy_copro_load_store, copy_alu_imm): update callers.
3921 (copy_extra_ld_st, copy_block_xfer): Likewise.
3922 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3923 (decode_miscellaneous, decode_dp_misc): Likewise.
3924 (decode_ld_st_word_ubyte, decode_media): Likewise.
3925 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3926 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3927 (decode_unconditional, decode_miscellaneous): Likewise.
3928 (decode_media, decode_b_bl_ldmstm): Likewise.
3929 (arm_process_displaced_insn): Likewise..
3930 (decode_misc_memhint_neon): Delete.
3931 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3932 (decode_miscellaneous): Delete.
3933 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3934 (decode_dp_misc): Delete.
3935 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3936 (decode_ld_st_word_ubyte): Delete.
3937 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3938 (decode_media): Delete.
3939 (arm_decode_media): Renamed from decode_media.
3940 (decode_b_bl_ldmstm): Delete.
3941 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3942 (decode_ext_reg_ld_st): Delete.
3943 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3944 (decode_unconditional): Delete.
3945 (arm_decode_unconditional): Renamed from decode_unconditional.
3947 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3949 Case insensitive lookups implementation.
3950 * dwarf2read.c: Include ctype.h.
3951 (struct mapped_index): New field version.
3952 (mapped_index_string_hash): New parameter index_version. New comment
3953 for it. Call tolower appropriately.
3954 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3955 Choose the right index version for mapped_index_string_hash.
3956 (dwarf2_read_index): Support also the index version 5. Initialize the
3957 new struct mapped_index field version.
3958 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3959 (find_slot): Explain the version needs. Pass INT_MAX for the new
3961 (write_psymtabs_to_index): Produce version 5.
3962 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3963 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3964 * psymtab.c (lookup_partial_symbol): Find the
3965 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3967 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3969 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3970 (completion_list_add_name): New variable ncmp, initialize it, use it.
3971 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3972 * utils.c (strcmp_iw): Support case_sensitive_off.
3973 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3974 New function comment part. New variables saved_string1,
3975 saved_string2 and case_pass. Add a proper second pass.
3977 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 Replace re_comp/re_exec by regcomp/regexec.
3980 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3981 (search_symbols_name_matches): Use them, use regexec.
3982 (search_symbols): New variable retval_chain, adjust the use of
3983 old_chain against it. Replace re_comp by regcomp. Use the new struct
3984 search_symbols_data fields, use regexec instead of re_exec.
3986 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3988 Format the code for the next patch.
3989 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3990 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3991 New variables c1 and c2.
3993 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3995 * infrun.c (proceed): Do not single-step into signal delivery
3996 when stepping off a breakpoint location.
3997 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3998 (insert_step_resume_breakpoint_at_caller): Likewise.
3999 (insert_step_resume_breakpoint_at_sal): Likewise.
4000 (insert_longjmp_resume_breakpoint): Likewise.
4002 2011-04-27 Yao Qi <yao@codesourcery.com>
4004 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4006 2011-04-27 Joel Brobecker <brobecker@adacore.com>
4008 * procfs.c (procfs_pass_signals): Fix advance declaration.
4010 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4012 * target.h (struct target_ops): Remove to_notice_signals;
4013 add to_pass_signals.
4014 (target_notice_signals): Remove.
4015 (target_pass_signals): Add prototype.
4016 * target.c (update_current_target): Remove to_notice_signals;
4017 mention to_pass_signals.
4018 (target_pass_signals): New function.
4019 (debug_to_notice_signals): Remove.
4020 (setup_target_debug): Do not install debug_to_notice_signals.
4022 * infrun.c (signal_pass): New global.
4023 (resume): Call target_pass_signals.
4024 (handle_inferior_event): Report all signals while stepping over
4025 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4026 are re-inserted when stepping over a signal handler.
4027 (signal_cache_update): New function.
4028 (signal_stop_update): Call it.
4029 (signal_print_update): Likewise.
4030 (signal_pass_update): Likewise.
4031 (handle_command): Call signal_cache_update and target_pass_signals
4032 instead of target_notice_signals.
4033 (_initialize_infrun): Initialize signal_pass.
4035 * linux-nat.c (pass_mask): New global.
4036 (linux_nat_pass_signals): New function.
4037 (linux_nat_create_inferior): Report all signals initially.
4038 (linux_nat_attach): Likewise.
4039 (linux_nat_resume): Use pass_mask to decide whether to directly
4040 handle an inferior signal.
4041 (linux_nat_wait_1): Likewise.
4042 (linux_nat_add_target): Install to_pass_signals callback.
4044 * nto-procfs.c (notice_signals): Remove.
4045 (procfs_resume): Do not call notice_signals.
4046 (procfs_notice_signals): Remove.
4047 (procfs_pass_signals): New function.
4048 (init_procfs_ops): Install to_pass_signals callback instead of
4049 to_notice_signals callback.
4050 (_initialize_procfs): Report all signals initially.
4052 * procfs.c (procfs_notice_signals): Remove.
4053 (procfs_pass_signals): New function.
4054 (procfs_target): Install to_pass_signals callback instead of
4055 to_notice_signals callback.
4056 (register_gdb_signals): Remove.
4057 (procfs_debug_inferior): Report all signals initially.
4058 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4060 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4061 parameters; use them instead of calling signal_..._state routines.
4062 (remote_notice_signals): Remove.
4063 (remote_start_remote): Report all signals initially.
4064 (remote_resume): Do not call remote_pass_signals.
4065 (_initialize_remote): Install to_pass_signals callback instead of
4066 to_notice_signals callback.
4068 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4070 * breakpoint.c (user_settable_breakpoint): Delete.
4071 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4072 (delete_command): Check user_breakpoint_p instead of looking at
4073 the breakpoint's type.
4074 (disable_command): Ditto.
4075 (enable_command): Ditto.
4076 (delete_trace_command): Use user_breakpoint_p instead of looking
4077 at the breakpoint number directly. When checking if there are
4078 user visible tracepoints, in order to know whether to ask the user
4079 for confirmation, check whether the breakpoint is actually a
4082 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4084 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4087 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4089 MI breakpoint notifications.
4091 * annotate.c (breakpoint_changed): Adjust parameter type.
4092 * breakpoint.c (set_breakpoint_condition): Adjust to change
4093 in breakpoint_modified type.
4094 (breakpoint_set_commands): Likewise.
4095 (do_map_commands_command): Likewise.
4096 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4097 changed after bumping hit count.
4098 (bpstat_stop_status): Likewise.
4099 (print_one_breakpoint_location): Don't wrap in tuple here.
4100 (print_one_breakpoint): Always print individual locations.
4101 For locations, use unnamed tuple.
4102 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4104 (create_catchpoint, create_syscall_event_catchpoint): Call
4105 breakpoint_created obsever.
4106 (mention): Don't call breakpoint_created observer.
4107 (create_breakpoint_sal): Call breakpoint_created observer.
4108 (create_breakpoint, watch_command_1): Likewise.
4109 (create_ada_exception_breakpoint): Likewise.
4110 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4111 (locations_are_equal): New.
4112 (update_breakpoint_locations): If locations were changed, notify.
4113 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4114 Call breakpoint_modified observer.
4116 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4117 (mi_cmd_break_insert): Don't set observers for modify and delete.
4118 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4119 (mi_breakpoint_created, mi_breakpoint_deleted)
4120 (mi_breakpoint_modified): New.
4121 (mi_interpreter_init): Hook the above.
4122 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4123 while -break-* commands are executing.
4124 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4125 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4127 (mi_ui_out_impl): Hook in mi_redirect.
4128 (mi_field_skip): True to the name, skip the field, don't output
4129 a field with an empty value.
4131 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4132 (gdbpy_breakpoint_deleted): Adjust.
4133 * tui/tui-hooks.c (tui_event_create_breakpoint)
4134 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4136 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4138 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4139 (procfs_remove_hw_watchpoint): Likewise.
4141 2011-04-26 Michael Walle <michael@walle.cc>
4143 * remote.c (remote_start_remote): Ack packet after sending the
4146 2011-04-26 Yao Qi <yao@codesourcery.com>
4148 * linux-nat.c: Move common macros to ...
4149 Include linux-ptrace.h.
4150 * common/linux-ptrace.h: ... here. New.
4152 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4155 !objfile_has_partial_symbols. New comment.
4156 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4157 SYM_READ_PSYMBOLS is not present. Extend the comment.
4158 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4160 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4162 * defs.h (ENUM_BITFIELD): Remove.
4164 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4165 Eli Zaretskii <eliz@gnu.org>
4167 * NEWS: Document the new gdbserver --once option.
4169 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4171 * MAINTAINERS: Update my email address.
4173 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4175 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4176 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4177 function call if __STDC_ISO_10646__ macro is defined.
4178 (intermediate_encoding): New prototype.
4179 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4180 to generate compile time error for unsupported gdb_wchar_t size.
4181 (ENDIAN_SUFFIX): New macro.
4182 (intermediate_encoding): New function.
4184 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4186 * ada-lang.c (struct add_partial_datum): Update the comment for
4187 expand_partial_symbol_name.
4188 (ada_add_partial_symbol_completions): Rename to ...
4189 (ada_expand_partial_symbol_name): ... here, change return type, update
4190 function comment, call symbol_completion_match instead of
4191 symbol_completion_add.
4192 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4193 and ada_expand_partial_symbol_name.
4194 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4196 (dw2_map_symbol_names): Remove.
4197 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4198 * psymtab.c (map_symbol_names_psymtab): Remove.
4199 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4200 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4202 (psym_functions): Unlist map_symbol_names_psymtab.
4203 (map_partial_symbol_names): Rename to ...
4204 (expand_partial_symbol_names): ... here, change the FUN type, call
4205 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4206 * psymtab.h (map_partial_symbol_names): Rename to ...
4207 (expand_partial_symbol_names): ... here, change the FUN type.
4208 * symfile.h (struct quick_symbol_functions): Update the description of
4209 expand_symtabs_matching. Remove map_symbol_names.
4210 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4211 (struct add_name_data): Update the comment for
4212 expand_partial_symbol_name.
4213 (add_partial_symbol_name): Rename to ...
4214 (expand_partial_symbol_name): ... here. Replace
4215 completion_list_add_name call by strncmp.
4216 (default_make_symbol_completion_list_break_on): Use now
4217 expand_partial_symbol_names and expand_partial_symbol_name.
4218 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4220 2011-04-20 Tom Tromey <tromey@redhat.com>
4222 * dwarf2read.c (save_gdb_index_command): Replace format
4223 documentation with a pointer to the manual.
4225 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4227 * regcache.c: Include remote.h.
4228 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4229 (regcache_dump): Handle regcache_dump_remote.
4230 (maintenance_print_remote_registers): New function.
4231 (_initialize_regcache): Install "maint print remote-registers"
4233 * remote.c (map_regcache_remote_table): New function, factored out
4235 (init_remote_state): ... here.
4236 (remote_register_number_and_offset): New.
4237 * remote.h (remote_register_number_and_offset): Declare.
4239 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4241 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4242 null_ptid, assume and allow a NULL address space, instead of
4243 asking the target for the ptid's address space.
4244 * infrun.c (ptid_is_pid): Remove assertion.
4246 2011-04-19 Tom Tromey <tromey@redhat.com>
4248 * windows-tdep.c (windows_xfer_shared_library):
4249 * windows-nat.c (get_module_name, windows_make_so):
4250 * v850-tdep.c (v850_handle_pushm):
4251 * utils.c (null_cleanup, gdb_realpath):
4252 * ui-out.c (get_next_header):
4253 * tracepoint.c (clear_traceframe_info):
4254 * symtab.c (lookup_symtab):
4255 * serial.h (struct serial_ops):
4256 * mipsread.c (read_alphacoff_dynamic_symtab):
4257 * infcmd.c (print_return_value):
4258 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4259 * f-exp.y (parse_number):
4260 * exceptions.c (catch_exceptions):
4261 * dummy-frame.c (dummy_frame_this_id):
4262 * defs.h (struct cleanup):
4263 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4264 * arm-tdep.c (arm_push_dummy_call):
4265 * amd64-tdep.h (amd64_collect_xsave):
4266 * amd64-tdep.c (amd64_collect_xsave):
4267 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4268 * README (typing): Remove duplicate words.
4269 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4270 * infrun.c (siginfo_value_read): Fix typo.
4271 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4272 * top.c (source_line_number): Add comma.
4274 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4276 * thread.c (any_live_thread_of_process): Prioritize threads
4277 that are not executing.
4278 * gdbthread.h (any_live_thread_of_process): Update comment
4279 as per above change.
4281 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4283 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4284 (scan_xcoff_symtab): Likewise.
4286 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4288 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4291 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4292 Pedro Alves <pedro@codesourcery.com>
4294 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4295 variables to simplify code and avoid == operator at end of
4296 line as this is against GNU coding standards.
4298 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4300 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4301 lm_name to name_lm to avoid conflict with lm_name function.
4303 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4305 ARI fixes: Use only lowercase function name for static functions.
4306 * nto-tdep.c (LM_ADDR): Rename to...
4307 (lm_addr): New function name.
4308 (nto_relocate_section_addresses): Adapt to change above.
4309 * solib-sunos.c (LM_ADDR): Rename to...
4310 (lm_addr): New function name.
4311 (LM_NEXT): Rename to...
4312 (lm_next): New function name.
4313 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4314 function name changes above.
4315 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4316 (lm_addr_from_link_map): New function name.
4317 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4318 (has_lm_dynamic_from_link_map): New function name.
4319 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4320 (lm_dynamic_from_link_map): New function name.
4321 (LM_ADDR_CHECK): Rename to...
4322 (lm_addr_check): New function name.
4323 (LM_NEXT): Rename to...
4324 (lm_next): New function name.
4325 (LM_PREV): Rename to...
4326 (lm_prev): New function name.
4327 (LM_NAME): Rename to...
4328 (lm_name): New function name.
4329 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4330 (ignore_first_link_map_entry): New function name.
4331 (svr4_keep_data_in_core): Adapt to function name changes above.
4332 (svr4_current_sos): Likewise.
4333 (enable_break): Likewise.
4334 (svr4_relocate_section_addresses): Likewise.
4336 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4339 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4340 sprintf. Simplify code and avoid loosing memory.
4341 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4342 (call0_frame_cache): Remove && operator from end of line.
4344 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 Fix libraries displacement if they change whether they were prelinked.
4347 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4348 does not match. Comment why.
4350 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * corelow.c: Include wrapper.h.
4353 (core_open): Call now gdb_target_find_new_threads.
4354 * wrapper.c: Include target.h.
4355 (gdb_target_find_new_threads): New.
4356 * wrapper.h (gdb_target_find_new_threads): New declaration.
4358 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4361 even if !TARGET_HAS_EXECUTION.
4363 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4366 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4367 bfd_get_synthetic_symtab.
4368 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4369 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4370 parameter parent, remove the call to add_separate_debug_objfile.
4371 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4372 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4373 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4374 parent, new comment for it, call add_separate_debug_objfile for it.
4375 (symbol_file_add_separate): Pass objfile as the parameter parent,
4376 remove the call to add_separate_debug_objfile.
4377 (symbol_file_add_from_bfd): New parameter parent, pass it.
4378 (symbol_file_add): Pass NULL to the new parameter parent.
4379 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4381 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4383 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4386 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 Fix Python access to inlined frames.
4389 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4390 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4392 2011-04-15 Tom Tromey <tromey@redhat.com>
4394 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4396 2011-04-15 Gary Benson <gbenson@redhat.com>
4398 * MAINTAINERS: Add myself to write-after-approval section.
4400 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4402 * remote-sim.c (sim_command_completer): New function.
4403 (_initialize_remote_sim): Set completer to sim_command_completer.
4405 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4407 * breakpoint.c (print_exception_catchpoint): Rename to ...
4408 (print_it_exception_catchpoint): ... this.
4409 (gnu_v3_exception_catchpoint_ops): Update with new name
4410 for print_it_exception_catchpoint.
4412 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4414 * MAINTAINERS: Add myself for write after approval privileges.
4416 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4418 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4420 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4422 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4424 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4426 * breakpoint.c (save_breakpoints): Verify whether
4427 breakpoint_ops.print_recreate is defined before calling it.
4429 2011-04-11 Gary Benson <gbenson@redhat.com>
4431 Fix failure with --enable-maintainer-mode.
4432 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4434 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4437 * symtab.c (search_symbols): Reorder the KIND description in the
4438 function comment. Remove the unused 4th element of types, types2,
4439 types3 and types4. New gdb_assert on KIND.
4440 (symtab_symbol_info): Remove the unused 4th element of classnames.
4441 New gdb_assert on KIND.
4442 * symtab.h (enum search_domain): New warning in the enum comment.
4443 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4446 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4448 Fix crash of gdb save-index on a STABS file.
4449 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4452 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4454 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4455 * dwarf2read.c: Include ctype.h.
4456 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4458 (dwarf2_add_field): Fix new_field->accessibility by calling
4459 dwarf2_default_access_attribute. Restructure setting accessibility
4461 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4462 is_private and is_protected by calling
4463 dwarf2_default_access_attribute.
4465 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4467 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4468 to the initialization.
4470 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4472 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4475 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4477 Remove support for old Cygwin 1.5 versions.
4478 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4479 function on old Cygwin version.
4480 * windows-nat.c: Remove cygwin version check and always define
4481 __USEWIDE for Cygwin compilation.
4483 2011-04-07 Yao Qi <yao@codesourcery.com>
4485 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4487 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4488 (arm_copy_svc): Remove parameters INSN and TO.
4489 (decode_svc_copro): Update caller.
4490 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4491 from function pointer `copy_svc_os'.
4493 2011-04-07 Yao Qi <yao@codesourcery.com>
4495 * arm-tdep.c (cleanup_branch): Set a correct return address in
4496 LR for ARM and Thumb.
4498 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4501 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4502 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4503 in the function comment, a new note on values compatibility.
4504 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4505 * symtab.h (SYMBOL_HASH_NEXT): New.
4507 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4509 * ppc-linux-nat.c (check_condition): Add len output parameter.
4510 Set it based on the memory region referenced in the condition
4511 expression. Update all callers.
4513 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4515 Fix crash regression on systems featuring .gdb_index.
4516 * objfiles.c (free_objfile): Move the
4517 forget_cached_source_info_for_objfile call earlier. Comment it.
4518 Extend the comment for objfile_free_data.
4520 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4522 Fix regression of displaying the debug format.
4523 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4526 2011-04-04 Tom Tromey <tromey@redhat.com>
4528 * cli/cli-interp.c (struct captured_execute_command_args):
4530 (do_captured_execute_command): Remove.
4531 (safe_execute_command): Use TRY_CATCH.
4532 * cli/cli-script.c (struct wrapped_read_command_file_args):
4534 (wrapped_read_command_file): Remove.
4535 (script_from_file): Use TRY_CATCH.
4536 * exceptions.c (catch_exception): Remove.
4537 * exceptions.h (catch_exception): Remove.
4538 (deprecated_throw_reason): Update comment.
4539 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4540 argument to 'context'.
4541 (mi_execute_command): Use TRY_CATCH.
4542 * remote.c (struct start_remote_args): Remove.
4543 (remote_start_remote): Update; change arguments.
4544 (remote_open_1): Use TRY_CATCH.
4546 2011-04-04 Tom Tromey <tromey@redhat.com>
4548 * tracepoint.c (scope_info): Update.
4549 * symtab.c (decode_line_spec): Update.
4550 * python/python.c (gdbpy_decode_line): Update.
4551 * linespec.h (decode_line_1): Update.
4552 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4553 (decode_compound, find_method, symtab_from_filename)
4554 (decode_variable): Likewise.
4555 * cli/cli-cmds.c (edit_command): Update.
4556 (list_command): Update.
4557 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4559 (create_breakpoint): Update.
4560 (until_break_command): Update.
4561 (addr_string_to_sals): Update.
4562 (decode_line_spec_1): Update.
4564 2011-04-04 Tom Tromey <tromey@redhat.com>
4566 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4567 (do_captured_parse_breakpoint): Remove.
4568 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4569 Use TRY_CATCH directly.
4571 2011-04-04 Tom Tromey <tromey@redhat.com>
4573 * symtab.h (free_symtab): Remove.
4574 (forget_cached_source_info_for_objfile): Declare.
4575 * symmisc.c (free_symtab): Remove.
4576 * source.c (forget_cached_source_info_for_objfile): New function.
4577 (forget_cached_source_info): Use it.
4578 * objfiles.c (free_objfile): Simplify check before calling
4579 clear_current_source_symtab_and_line. Call
4580 forget_cached_source_info_for_objfile.
4582 2011-04-04 Tom Tromey <tromey@redhat.com>
4584 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4585 (new_symtab): Don't set `free_code' on symtab.
4586 (new_linetable): Properly handle size==0.
4587 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4588 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4590 * jv-lang.c (struct jv_per_objfile_data): New.
4591 (jv_per_objfile_free): Free the data.
4592 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4593 (get_java_class_symtab): Set the `dict' field on the
4594 jv_per_objfile_data.
4595 (free_class_block): Remove.
4596 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4599 2011-04-04 Tom Tromey <tromey@redhat.com>
4601 * symfile.c (reread_symbols): Update.
4602 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4604 * objfiles.c (allocate_objfile): Update.
4605 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4607 * cp-namespace.c (lookup_symbol_file): Don't call
4608 lookup_possible_namespace_symbol.
4609 (initialize_namespace_symtab, get_possible_namespace_block)
4610 (free_namespace_block, cp_check_possible_namespace_symbols)
4611 (check_possible_namespace_symbols_loop)
4612 (check_one_possible_namespace_symbol)
4613 (lookup_possible_namespace_symbol): Remove.
4614 (maintenance_cplus_namespace): Replace with notice.
4615 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4617 2011-04-04 Tom Tromey <tromey@redhat.com>
4619 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4620 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4621 * symmisc.c (free_symtab): Don't free debugformat.
4622 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4623 (record_debugformat, record_producer): Document.
4624 * buildsym.c (end_symtab): Don't save debugformat and producer
4626 (end_symtab): Don't free debugformat and producer fields.
4627 (record_debugformat): Don't call xstrdup.
4628 (record_producer): Likewise.
4630 2011-04-04 Tom Tromey <tromey@redhat.com>
4632 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4633 (source_line_charpos, source_charpos_line): Remove.
4635 2011-04-04 Tom Tromey <tromey@redhat.com>
4637 * symtab.h (domain_enum): Split in two...
4638 (enum search_domain): New.
4639 (search_symbols): Update.
4640 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4641 redundant declarations.
4642 (search_symbols): Change 'kind' argument to search_domain.
4644 (print_symbol_info): Likewise.
4645 (symtab_symbol_info): Likewise.
4646 * symfile.h (struct quick_symbol_functions)
4647 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4648 <expand_symtabs_matching>: Likewise.
4649 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4650 (expand_symtabs_matching_via_partial): Update.
4651 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4652 (dw2_expand_symtabs_for_function): Update.
4653 * block.h: Moved anonymous enum...
4654 * defs.h (enum block_enum): ... here. Now named.
4656 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4658 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4659 * version.in: Bump version to 7.3.50.20110403-cvs.
4661 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4663 * NEWS: Create a new section for the next release branch.
4664 Rename the section of the current branch, now that it has
4667 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4669 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4670 for "fpscr" in target description.
4672 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4674 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4675 initialize it. Delay HASH initialization. Strip the part after open
4676 parenthesis for languages with qualifiers. Call do_cleanups.
4678 2011-04-01 Tom Tromey <tromey@redhat.com>
4680 * utils.c (report_command_stats): Don't print `-' for negative
4683 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4685 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4686 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4689 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4691 * breakpoint.h (bpdisp_text): Add declaration.
4692 * breakpoint.c (bpdisp_text): Make non-static.
4693 * ada-lang.c: #include "mi/mi-common.h".
4694 (print_it_exception): Rewrite to improve GDB/MI output.
4696 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4698 * arm-tdep.h (struct address_space): Add forward declaration.
4700 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4702 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4703 * arm-tdep.c (arm_override_mode): New global.
4704 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4705 execution mode heuristics.
4706 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4707 second single-step breakpoint if needed, using
4708 arm_insert_single_step_breakpoint.
4709 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4710 ARM execution mode, do not call thumb_get_next_pc_raw.
4711 (arm_get_next_pc): Encode execution mode in return value. Call
4712 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4713 (arm_insert_single_step_breakpoint): New function.
4714 (arm_software_single_step): Call it.
4715 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4716 argument to return execution mode of sigreturn target.
4717 (arm_linux_syscall_next_pc): Use it.
4718 (arm_linux_copy_svc): Update call.
4719 (arm_linux_software_single_step): Call
4720 arm_insert_single_step_breakpoint.
4722 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4724 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4727 2011-03-31 Tom Tromey <tromey@redhat.com>
4729 * varobj.c (update_dynamic_varobj_children): Properly handle
4730 errors from iterator.
4732 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4734 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4735 struct linkage name twice.
4737 2011-03-31 Tom Tromey <tromey@redhat.com>
4739 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4740 missing ">" to message.
4742 2011-03-31 Tom Tromey <tromey@redhat.com>
4744 * varobj.c (instantiate_pretty_printer): Remove duplicate
4747 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4749 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4750 if neither saved value nor register available (e.g. signal frame).
4752 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4754 * macroexp.c (expand): Avoid uninitialized variable
4757 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4759 * breakpoint.c (break_range_command): Fix typo in comment.
4761 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4762 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4764 Implement support for PowerPC BookE ranged breakpoints.
4765 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4766 * breakpoint.h (struct bp_target_info) <length>: New member
4768 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4769 instead of struct breakpoint as argument, and also add ASPACE
4770 and BP_ADDR arguments. Update all callers.
4771 (struct breakpoint_ops) <print_one_detail>: New method.
4772 (struct breakpoint) <addr_string_range_end>: New member variable.
4773 * breakpoint.c (breakpoint_location_address_match): Add function
4775 (insert_bp_location): Set bl->target_info.length.
4776 (breakpoint_here_p): Call breakpoint_location_address_match.
4777 (moribund_breakpoint_here_p): Likewise.
4778 (regular_breakpoint_inserted_here_p): Likewise.
4779 (breakpoint_thread_match): Likewise.
4780 (bpstat_stop_status): Likewise.
4781 (bpstat_check_location): Move call to
4782 breakpoint_ops.breakpoint_hit to the top.
4783 (print_one_breakpoint_location): Call
4784 breakpoint_ops.print_one_detail if available.
4785 (breakpoint_address_match_range): New function.
4786 (breakpoint_location_address_match): Likewise.
4787 (breakpoint_locations_match): Compare the length field of the
4789 (hw_breakpoint_used_count): Count resources used by all locations
4790 in a breakpoint, and use breakpoint_ops.resources_needed if
4792 (breakpoint_hit_ranged_breakpoint): New function.
4793 (resources_needed_ranged_breakpoint): Likewise.
4794 (print_it_ranged_breakpoint): Likewise.
4795 (print_one_ranged_breakpoint): Likewise.
4796 (print_one_detail_ranged_breakpoint): Likewise.
4797 (print_mention_ranged_breakpoint): Likewise.
4798 (print_recreate_ranged_breakpoint): Likewise.
4799 (ranged_breakpoint_ops): New structure.
4800 (find_breakpoint_range_end): New function.
4801 (break_range_command): Likewise.
4802 (delete_breakpoint): Free addr_string_range_end.
4803 (update_breakpoint_locations): Add SALS_END argument. Update
4804 all callers. Calculate breakpoint length if a non-zero SALS_END
4805 is given. Call breakpoint_locations_match instead of
4806 breakpoint_address_match.
4807 (reset_breakpoint): Find SaL of the end of the range if B is a
4809 (_initialize_breakpoint): Register break-range command.
4810 * defs.h (print_core_address): Add function prototype.
4811 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4813 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4814 (ppc_linux_remove_hw_breakpoint): Likewise.
4815 (_initialize_ppc_linux_nat): Initialize
4816 to_ranged_break_num_registers.
4817 * target.c (update_current_target): Add comment about
4818 to_ranged_break_num_registers.
4819 (target_ranged_break_num_registers): New function.
4820 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4822 (target_ranged_break_num_registers): Add function prototype.
4823 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4824 * utils.c (print_core_address): ... here.
4826 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4828 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4829 variable compiler warning.
4831 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4833 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4835 (re_set_breakpoint): ... to here ...
4836 (addr_string_to_sals): ... and here.
4838 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4840 * Makefile.in (SFILES): Add missing C sources.
4841 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4842 Add missing headers.
4844 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4846 * .gitignore: New file.
4848 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4850 * NEWS: Mention new cfi device simulation.
4852 2011-03-29 Tom Tromey <tromey@redhat.com>
4854 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4855 otherwise anonymous types.
4856 (dwarf2_name): Likewise.
4857 * valops.c (value_struct_elt_for_reference): Refine artificial
4858 type logic. Call error if j==-1.
4860 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4862 Fix false GCC warning.
4863 * infcall.c (find_function_addr): Initialize funaddr.
4865 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4867 Fix mingw compilation with --enable-targets=all.
4868 * remote-mips.c (gdb_usleep.h): Include header.
4869 (mips_enter_debug): Use gdb_usleep instead of sleep.
4871 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 Support resolution of STT_GNU_IFUNC via breakpoints.
4874 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4875 bp_gnu_ifunc_resolver_return.
4876 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4877 the loop. Support bp_gnu_ifunc_resolver and
4878 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4879 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4881 (bptype_string, print_one_breakpoint_location): Support
4882 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4883 (user_settable_breakpoint): Return true also for
4884 bp_gnu_ifunc_resolver.
4885 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4886 bp_gnu_ifunc_resolver_return.
4887 (set_breakpoint_location_function): New parameter explicit_loc,
4888 describe it. Call find_pc_partial_function_gnu_ifunc with new
4889 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4890 EXPLICIT_LOC is not set.
4891 (set_raw_breakpoint): Set EXPLICIT_LOC for
4892 set_breakpoint_location_function.
4893 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4894 set_breakpoint_location_function.
4895 (mention): Support bp_gnu_ifunc_resolver and
4896 bp_gnu_ifunc_resolver_return.
4897 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4898 set_breakpoint_location_function.
4899 (update_breakpoint_locations): Remove static.
4900 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4901 bp_gnu_ifunc_resolver_return.
4902 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4903 bp_gnu_ifunc_resolver_return.
4904 (update_breakpoint_locations): New declaration.
4905 * elfread.c: Include gdbthread.h and regcache.h.
4906 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4908 (elf_gnu_ifunc_fns): Install them.
4909 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4910 (stub_gnu_ifunc_resolver_return_stop): New functions.
4911 (stub_gnu_ifunc_fns): Install them.
4912 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4913 and gnu_ifunc_resolver_return_stop.
4914 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4916 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4918 STT_GNU_IFUNC reader implementation.
4919 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4920 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4921 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4922 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4923 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4924 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4925 (elf_gnu_ifunc_resolve_addr): New.
4926 (elf_symfile_read): Call elf_rel_plt_read.
4927 (elf_gnu_ifunc_fns): New.
4928 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4929 Install elf_gnu_ifunc_fns.
4930 * infcall.c (find_function_return_type): New function.
4931 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4932 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4933 (stub_gnu_ifunc_resolve_name): New functions.
4934 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4935 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4936 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4938 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 Code cleanup for later STT_GNU_IFUNC support.
4941 * infcall.c (find_function_addr): Remove variable code, use explicit
4942 dereferences for it. Move VALUE_TYPE initialization later.
4944 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4946 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4947 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4948 (clear_pc_function_cache): Clear it.
4949 (find_pc_partial_function): Rename to ...
4950 (find_pc_partial_function_gnu_ifunc): ... this function. New
4951 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4952 (find_pc_partial_function): New wrapper for this function.
4953 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4955 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4957 GDB internal type support for STT_GNU_IFUNC.
4958 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4959 (elf_symtab_read): Set mst_text_gnu_ifunc for
4960 BSF_GNU_INDIRECT_FUNCTION.
4961 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4962 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4963 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4964 nodebug_got_plt_symbol.
4965 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4966 (TYPE_GNU_IFUNC): New.
4967 (struct main_type): New field flag_gnu_ifunc.
4968 (struct builtin_type): New field builtin_func_func.
4969 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4970 nodebug_got_plt_symbol.
4971 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4972 (in_gnu_ifunc_stub): New.
4973 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4975 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4976 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4977 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4979 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4980 * symtab.c (search_symbols): Likewise.
4981 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4982 and mst_slot_got_plt.
4983 (in_gnu_ifunc_stub): New declaration.
4985 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4987 Support a ring of related breakpoints.
4988 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4989 other functions, add gdb_assert.
4990 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4991 watchpoint_del_at_next_stop.
4992 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4993 (bpstat_stop_status): Handle ring in related_breakpoint.
4994 (set_raw_breakpoint_without_location): Initialize ring in
4996 (delete_breakpoint): Handle ring in related_breakpoint, use
4997 watchpoint_del_at_next_stop.
4998 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5000 2011-03-28 Tom Tromey <tromey@redhat.com>
5003 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5004 with `language_minimal'.
5006 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5008 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5009 instead of checking for STT_ARM_TFUNC symbol type.
5011 2011-03-25 Tom Tromey <tromey@redhat.com>
5013 * linespec.c (symbol_found): Restore line-based result for
5014 non-LOC_LABEL symbols.
5016 2011-03-25 Kai Tietz <ktietz@redhat.com>
5018 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5019 instead of strcmp for comparison.
5020 (tui_source_is_displayed): Likewise.
5021 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5023 2011-03-24 Mark Wielaard <mjw@redhat.com>
5025 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5027 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5028 (find_partial_die_in_comp_unit): Likewise in comment.
5029 (read_attribute_value): Likewise.
5030 (lookup_die_type): Likewise.
5031 (dwarf_form_name): Likewise.
5032 (dump_die_shallow): Likewise.
5033 (follow_die_ref_or_sig): Likewise.
5035 2011-03-24 Tom Tromey <tromey@redhat.com>
5037 PR breakpoints/11816:
5038 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5039 (decode_compound): Update.
5040 (find_function_symbol): New function.
5041 (decode_dollar): Update.
5042 (decode_label): Add 'function_symbol' parameter. Handle
5043 function-relative labels.
5044 (decode_variable): Update.
5045 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5046 not its line. Set `special_display' and canonical name for
5049 2011-03-24 Tom Tromey <tromey@redhat.com>
5051 * linespec.h (struct linespec_result) <special_display>: New
5053 * breakpoint.h (struct breakpoint) <display_canonical>: New
5055 * breakpoint.c (print_breakpoint_location): Respect
5057 (create_breakpoint_sal): Add 'display_canonical' parameter.
5058 (create_breakpoints_sal): Update.
5059 (create_breakpoint): Update.
5061 2011-03-24 Tom Tromey <tromey@redhat.com>
5063 * symtab.c (decode_line_spec): Update.
5064 * linespec.c (build_canonical_line_spec): Change type of
5066 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5067 (find_method, decode_all_digits, decode_dollar, decode_label)
5068 (symbol_found): Likewise.
5069 (init_linespec_result): New function.
5070 * breakpoint.c (struct captured_parse_breakpoint_args)
5071 <canonical_p>: New field, replaces addr_string_p.
5072 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5074 (parse_breakpoint_sals): Likewise.
5075 (do_captured_parse_breakpoint): Update.
5076 (create_breakpoint): Use struct linespec_result.
5077 (until_break_command): Update.
5078 (breakpoint_re_set_one): Update.
5079 (decode_line_spec_1): Update.
5080 * linespec.h (struct linespec_result): New.
5081 (init_linespec_result): Declare.
5083 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5085 * regcache.c (regcache_raw_read): If the target didn't supply a
5086 given raw register, mark it as unavailable.
5088 2011-03-23 Kai Tietz <ktietz@redhat.com>
5090 * breakpoint.c (clear_command): Use filename_cmp
5091 instead of strcmp for comparison.
5092 * buildsym.c (watch_main_source_file_lossage): Likewise.
5093 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5094 checking just for slash.
5095 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5096 strrchr and filename_cmp instead of strcmp for filenames.
5097 (add_old_header_file): Use filename_cmp
5098 instead of strcmp for comparison.
5099 * exec.c (exec_set_section_address): Likewise.
5100 * macrotab.c (macro_lookup_inclusion): Likewise.
5101 (macro_lookup_inclusion): Likewise.
5102 * elfread.c (_initialize_elfread): Likewise.
5103 (elfstab_offset_sections): Likewise.
5104 (elfstab_offset_sections): Use lbasename instead of
5106 * mdebugread.c (parse_partial_symbols): Likewise.
5107 (arse_partial_symbols): Use filename_(n)cmp instead of
5108 str(n)cmp for comparison.
5109 * minsyms.c (lookup_minimal_symbol): Likewise.
5110 * psymtab.c (read_psymtabs_with_filename): Likewise.
5111 * solib.c (solib_read_symbols): Likewise.
5112 (reload_shared_libraries_1): Likewise.
5113 * symmisc.c (maintenance_print_symbols): Likewise.
5114 * symfile.c (separate_debug_file_exists): Likewise.
5115 (reread_symbols): Likewise.
5116 (find_separate_debug_file_by_debuglink): Likewise.
5117 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5118 * source.c (add_path): Likewise.
5119 * symtab.c (filename_seen): Likewise.
5120 (file_matches): Likewise.
5121 (print_symbol_info): Likewise.
5122 (maybe_add_partial_symtab_filename): Likewise.
5123 (make_source_files_completion_list): Likewise.
5124 * xml-syscall.c (init_sysinfo): Likewise.
5125 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5126 IS_DIR_SEPARATOR for checking for trailing path separator.
5128 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5130 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5131 label abort_expression.
5132 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5133 DWARF_VALUE_OPTIMIZED_OUT.
5135 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5138 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5139 to linkage_name. Invert its value. Update the function comment.
5140 (c_type_print_varspec_suffix): Invert it at the caller.
5141 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5143 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5145 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5146 errors when reading the `stop_pc'.
5147 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5150 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5152 * NEWS: Document gdb.Write stream keyword.
5154 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5158 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5159 (dwarf2_add_field): Fix new_field->accessibility for
5160 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5162 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5166 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5167 other error classes. Do not print stack trace.
5169 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5171 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5172 (dwarf2_add_field): Fix new_field->accessibility for
5173 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5175 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5177 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5178 encountering a load via a non-SP register.
5180 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5182 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5183 field in returned unwinder.
5185 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5187 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5189 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5191 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5194 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5196 * frame.c (frame_unwind_register): Throw an error if unwinding the
5198 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5199 an unwind stop reason.
5200 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5201 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5202 UNWIND_UNAVAILABLE>: New.
5203 * inline-frame.c (inline_frame_unwind): Install
5204 default_frame_unwind_stop_reason.
5205 * frame-unwind.c: Include "exceptions.h".
5206 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5207 (default_frame_unwind_stop_reason): New.
5208 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5209 (default_frame_unwind_stop_reason): Declare.
5210 (struct frame_unwind) <stop_reason>: New function pointer.
5212 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5213 * dwarf2-frame.c: Include exceptions.h.
5214 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5215 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5216 computing the CFA. If such an error was thrown, set
5217 unavailable_retaddr.
5218 (dwarf2_frame_unwind_stop_reason): New.
5219 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5221 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5222 (dwarf2_signal_frame_unwind): Ditto.
5224 * amd64-tdep.c: Include "exceptions.h".
5225 (struct amd64_frame_cache): New field "base_p".
5226 (amd64_init_frame_cache): Clear it.
5227 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5228 Avoid reading registers with functions that throw if the register
5229 is not necessary to compute the frame base.
5230 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5231 swallowing NOT_AVAILABLE_ERROR.
5232 (amd64_frame_unwind_stop_reason): New.
5233 (amd64_frame_this_id): Don't build a frame id if the frame base
5235 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5236 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5237 base_p if the frame base was computable.
5238 (amd64_sigtramp_frame_unwind_stop_reason): New.
5239 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5240 frame base was unavailable.
5241 (amd64_sigtramp_frame_unwind): Install
5242 amd64_sigtramp_frame_unwind_stop_reason.
5243 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5244 base_p if the frame base was computable.
5245 (amd64_epilogue_frame_unwind_stop_reason): New.
5246 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5247 frame base was unavailable.
5248 (amd64_epilogue_frame_unwind): Install
5249 amd64_epilogue_frame_unwind_stop_reason.
5250 * i386-tdep.c: Include "exceptions.h".
5251 (struct i386_frame_cache): New field "base_p".
5252 (i386_init_frame_cache): Clear it.
5253 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5254 Avoid reading registers with functions that throw if the register
5255 is not necessary to compute the frame base.
5256 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5257 swallowing NOT_AVAILABLE_ERROR.
5258 (i386_frame_unwind_stop_reason): New.
5259 (i386_frame_this_id): Don't build a frame id if the frame base was
5261 (i386_frame_prev_register): Handle unavailable SP.
5262 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5263 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5264 base_p if the frame base was computable.
5265 (i386_epilogue_frame_unwind_stop_reason): New.
5266 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5267 base was unavailable.
5268 (i386_epilogue_frame_unwind): Install
5269 i386_epilogue_frame_unwind_stop_reason.
5270 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5271 base_p if the frame base was computable.
5272 (i386_sigtramp_frame_unwind_stop_reason): New.
5273 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5274 base was unavailable.
5275 (i386_sigtramp_frame_unwind): Install
5276 i386_sigtramp_frame_unwind_stop_reason.
5277 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5278 type's size, not the register's.
5279 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5281 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5282 default_frame_unwind_stop_reason.
5283 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5284 (alpha_heuristic_frame_unwind): Ditto.
5285 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5286 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5287 * avr-tdep.c (avr_frame_unwind): Ditto.
5288 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5290 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5291 * frv-tdep.c (frv_frame_unwind): Ditto.
5292 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5293 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5294 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5295 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5296 (hppa_stub_frame_unwind): Ditto.
5297 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5298 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5299 (ia64_libunwind_frame_unwind)
5300 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5301 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5302 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5303 * m32c-tdep.c (m32c_unwind): Ditto.
5304 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5305 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5306 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5307 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5308 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5309 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5310 * mep-tdep.c (mep_frame_unwind): Ditto.
5311 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5312 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5313 (mips_stub_frame_unwind): Ditto.
5314 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5315 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5316 * mt-tdep.c (mt_frame_unwind): Ditto.
5317 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5318 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5319 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5320 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5321 (s390_sigtramp_frame_unwind): Ditto.
5322 * score-tdep.c (score_prologue_unwind): Ditto.
5323 * sh-tdep.c (sh_frame_unwind): Ditto.
5324 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5325 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5326 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5327 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5328 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5329 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5330 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5331 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5332 (sparc64obsd_trapframe_unwind): Ditto.
5333 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5334 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5335 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5336 * v850-tdep.c (v850_frame_unwind): Ditto.
5337 * vax-tdep.c (vax_frame_unwind): Ditto.
5338 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5339 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5340 * xtensa-tdep.c (xtensa_unwind): Ditto.
5342 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5344 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5345 there's always a frame. Use get_frame_pc_if_available instead of
5346 get_frame_pc, and if there's no PC available, don't look up a
5349 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5351 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5354 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5356 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5359 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5361 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5362 * frame.c (frame_unwind_caller_pc_if_available): New.
5363 * stack.c (frame_info): Handle unavailable PC.
5365 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5367 * frame.c (frame_unwind_pc): Rename to ...
5368 (frame_unwind_pc_if_available): ... this. New `pc' output
5369 parameter. Change return type to int. Gracefully handle
5370 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5371 happened, or 1 otherwise.
5372 (frame_unwind_pc): Reimplement on top of
5373 frame_unwind_pc_if_available.
5374 (get_frame_func): Rename to ...
5375 (get_frame_func_if_available): New `pc' output parameter. Change
5376 return type to int. Gracefully handle the PC not being available.
5377 (get_frame_func): Reimplement on top of
5378 get_frame_func_if_available.
5379 (select_frame): Handle the PC being unavailable.
5380 (get_prev_frame): Handle the PC being unavailable.
5381 (get_frame_pc_if_available): New.
5382 (get_frame_address_in_block_if_available): New.
5383 (find_frame_sal): Handle the frame PC not being available.
5384 * frame.h (get_frame_pc_if_available): Declare.
5385 (get_frame_address_in_block_if_available): Declare.
5386 (get_frame_func_if_available): Declare.
5387 * stack.c (print_frame_info): Handle the PC being unavailable.
5388 (find_frame_funname): Ditto.
5389 (print_frame): Handle the PC being unavailable.
5390 (get_frame_language): Ditto.
5391 * blockframe.c (get_frame_block): Ditto.
5392 * macroscope.c (default_macro_scope): Ditto.
5393 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5395 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5397 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5398 NOT_AVAILABLE_ERROR when evaluating the location expression.
5400 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5402 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5403 returning that the register piece is unavailable/optimized out.
5404 (write_pieced_value): Handle get_frame_register_bytes returning
5405 that the register piece is unavailable/optimized out when doing a
5406 read-modify write of a bitfield.
5407 * findvar.c (value_from_register): Handle get_frame_register_bytes
5408 returning that the register piece is unavailable/optimized out.
5409 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5410 and `unavailablep'. Throw error on bad debug info. Use
5411 frame_register instead of frame_register_read, to fill in the new
5413 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5415 * valops.c: (value_assign): Adjust, and handle
5416 get_frame_register_bytes failing.
5417 * spu-tdep.c: Include exceptions.h.
5418 (spu_software_single_step): Adjust, and handle
5419 get_frame_register_bytes failing.
5420 (spu_get_longjmp_target): Ditto.
5421 * gdbarch.sh (register_to_value): Change to return int. New
5422 parameters `optimizedp' and `unavailablep'.
5423 * gdbarch.h, gdbarch.c: Regenerate.
5424 * i386-tdep.c (i386_register_to_value): Adjust to new
5425 gdbarch_register_to_value interface.
5426 * i387-tdep.c (i387_register_to_value): Ditto.
5427 * i387-tdep.h (i387_register_to_value): Ditto.
5428 * alpha-tdep.c (alpha_register_to_value): Ditto.
5429 * ia64-tdep.c (ia64_register_to_value): Ditto.
5430 * m68k-tdep.c (m68k_register_to_value): Ditto.
5431 * mips-tdep.c (mips_register_to_value): Ditto.
5432 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5434 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5436 * findvar.c (value_of_register): Mark the value as unavailable, if
5437 the register is unavailable.
5438 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5439 (frame_register): New `unavailablep' parameter.
5440 (frame_register_read): Update comment.
5441 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5442 Set it if the register is unavailable. If the register is
5443 unavailable, clear the output buffer.
5444 (frame_register): New `unavailablep' parameter. Pass it down.
5445 (frame_unwind_register): Adjust.
5446 (put_frame_register): Adjust.
5447 (frame_register_read): Adjust. Also return false if the register
5449 (frame_register_unwind_location): Adjust.
5450 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5451 is unavailable, mark the value accordingly.
5452 * stack.c (frame_info): Handle unavailable registers.
5454 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5456 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5457 simplify, using regcache_cooked_read.
5459 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5461 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5462 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5463 (regcache_raw_read_unsigned, regcache_raw_read_part)
5464 (regcache_cooked_read, regcache_cooked_read_signed)
5465 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5466 (regcache_cooked_read_ftype): Change return to enum
5468 * regcache.c: Include exceptions.h
5469 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5470 (do_cooked_read): Change return to enum register_status. Always
5471 forward to regcache_cooked_read.
5472 (regcache_raw_read): Change return to enum register_status. If
5473 the register is not REG_VALID, memset the buffer. Return the
5475 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5476 return the register's status.
5477 (regcache_raw_read_unsigned): Ditto.
5478 (regcache_cooked_read): Change return to enum register_status.
5479 Assert that with read-only regcaches, the register's status must
5480 be known. If the regcache is read-only, and the register is not
5481 REG_VALID, memset the buffer. Return the register's status.
5482 (regcache_cooked_read_signed): Change return to enum
5483 register_status. Handle non-REG_VALID registers and return the
5485 (regcache_cooked_read_unsigned): Change return to enum
5486 register_status. Handle non-REG_VALID registers and return the
5488 (regcache_xfer_part, regcache_raw_read_part)
5489 (regcache_cooked_read_part): Change return to enum
5490 register_status. Return the register's status.
5491 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5493 (regcache_dump): Handle unavailable cooked registers.
5494 * frame.c (do_frame_register_read): Adjust interface to match
5495 regcache_cooked_read_ftype.
5496 * gdbarch.sh (pseudo_register_read): Change return to enum
5498 * gdbarch.h, gdbarch.c: Regenerate.
5500 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5502 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5503 register_status. If reading a raw register indicates the raw
5504 register is not valid, return the raw register's status,
5505 otherwise, return REG_VALID.
5506 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5507 register_status. Handle non-REG_VALID raw registers and return
5508 the register's status.
5509 * arm-tdep.c (arm_neon_quad_read)
5510 (arm_pseudo_read): Change return to enum register_status. Handle
5511 non-REG_VALID raw registers and return the register's status.
5512 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5513 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5514 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5515 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5516 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5518 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5519 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5520 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5521 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5522 (m32c_pseudo_register_read): Change return to enum
5523 register_status. Adjust.
5524 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5525 enum register_status. Return the register's status.
5526 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5527 register_status. Return the register's status.
5528 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5529 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5530 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5531 * rs6000-tdep.c (move_ev_register_func): New typedef.
5532 (e500_move_ev_register): Use it. Change return to enum
5533 register_status. Return the register's status.
5534 (do_regcache_raw_read): New function.
5535 (do_regcache_raw_write): New function.
5536 (e500_pseudo_register_read): Change return to enum
5537 register_status. Return the register's status. Use
5538 do_regcache_raw_read.
5539 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5540 (dfp_pseudo_register_read): Change return to enum register_status.
5541 Return the register's status.
5542 (vsx_pseudo_register_read): Ditto.
5543 (efpr_pseudo_register_read): Ditto.
5544 (rs6000_pseudo_register_read): Ditto.
5545 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5546 register_status. Return the register's status.
5547 * sh64-tdep.c (pseudo_register_read_portions): New function.
5548 (sh64_pseudo_register_read): Change return to enum
5549 register_status. Use pseudo_register_read_portions. Return the
5551 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5552 register_status. Return the register's status.
5553 * sh-tdep.c (pseudo_register_read_portions): New function.
5554 (sh_pseudo_register_read): Change return to enum register_status.
5555 Use pseudo_register_read_portions. Return the register's status.
5556 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5557 enum register_status. Return the register's status.
5558 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5559 * spu-tdep.c (spu_pseudo_register_read_spu)
5560 (spu_pseudo_register_read): Ditto.
5561 * xtensa-tdep.c (xtensa_register_read_masked)
5562 (xtensa_pseudo_register_read): Ditto.
5563 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5565 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5567 * python/py-value.c (valpy_getitem): Fix formatting of error function
5570 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5572 ARI fixes: Add missing internationalization markups throughout
5574 * darwin-nat-info.c: Ditto.
5577 * mi/mi-main.c: Ditto.
5579 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5581 ARI fixes: Add missing internationalization markups throughout
5584 * cp-name-parser.y: Ditto.
5587 * objc-exp.y: Ditto.
5590 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5592 ARI fixes: Messages should have no trailing new lines.
5593 * darwin-nat.c (mach_check_error): Remove trailing new line from
5594 warning function call message.
5595 * record.c (bfdcore_read): Idem for error call.
5597 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5599 * common/signals.c (target_signal_from_host): Add _ markup to error
5600 function call message.
5601 (target_signal_to_host): Add _ markup and remove trailing new line
5602 from warning call message.
5603 (target_signal_from_command): Add _ markup to error function call
5606 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5610 * python/python.c (gdbpy_write): Accept a stream argument and
5611 operate to the appropriate stream.
5612 (gdbpy_flush): Likewise.
5613 (_initialize_python): Add stream constants.
5614 (finish_python_initialization): Add GdbOutputErrorFile class.
5616 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5618 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5620 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5622 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5623 to store_signed_integer. Add debug message when relocating CALL
5624 instructions. Fix formatting of debug message.
5625 * i386-tdep.c (i386_relocate_instruction): Ditto.
5627 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5629 * target.h (struct target_ops): Remove to_lookup_symbol field.
5630 (target_lookup_symbol): Delete macro.
5631 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5632 (update_current_target, setup_target_debug): Remove handling
5633 of to_lookup_symbol target_ops field.
5634 * ada-tasks.c (get_known_tasks_addr): Remove use of
5635 target_lookup_symbol.
5636 * coffread.c (coff_symtab_read): Likewise.
5637 * dbxread.c (read_dbx_symtab): Ditto.
5639 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5642 * configure.ac: Add getthrds declaration check.
5643 * configure, config.in: Regenerate.
5644 * aix-thread.c (getthrds): Declare only if not already declared
5645 in procinfo.h. More declaration out of get_signaled_thread to
5648 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5650 * python/py-symtab.c: Populate symtab_object_methods,
5652 (stpy_is_valid): New function.
5653 (salpy_is_valid): Ditto.
5654 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5655 (sympy_is_valid): New function.
5656 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5657 (objfpy_is_valid): New function.
5658 * python/py-inferior.c: Populate inferior_object_methods.
5659 (infpy_is_valid): New function.
5660 * python/py-infthread.c: Populate thread_object_methods.
5661 (thpy_is_valid): New function.
5662 * python/py-block.c: Declare block_object_methods. Populate. Declare
5663 block_iterator_object_methods. Populate.
5664 (blpy_is_valid): New function.
5665 (blpy_iter_is_valid): Ditto.
5667 2011-03-16 Keith Seitz <keiths@redhat.com>
5669 * linespec.c (find_methods): Canonicalize NAME before looking
5671 (name_end): New function.
5672 (keep_name_info): New function.
5673 (decode_line_1): Use keep_name_info.
5674 (decode_compound): Likewise.
5675 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5676 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5679 * linespec.c (locate_first_half): Keep overload information, too.
5680 (decode_compound): Use a string to represent break characters
5682 If P points to a break character, do not increment it.
5683 For C++ and Java, keep overload information and relevant keywords.
5684 If we cannot find a symbol, search the minimal symbols.
5687 * linespec.c (decode_compound): Rename SAVED_ARG to
5689 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5691 Pass a valid block to lookup_symbol.
5692 (lookup_prefix_sym): Likewise.
5693 (find_method): Construct search name based on SYM_CLASS instead
5695 * psymtab.c (lookup_partial_symbol): Add language parameter.
5696 (lookup_symbol_aux_psymtabs): Likewise.
5697 Don't assume that the psymtab we found was the right one. Search
5698 for the desired symbol in the symtab to be certain.
5699 (psymtab_search_name): New function.
5700 (lookup_partial_symbol): Use psymtab_search_name.
5701 Add language parameter.
5702 (read_symtabs_for_function): Add language parameter and pass to
5703 lookup_partial_symbol.
5704 (find_symbol_file_from_partial): Likewise.
5706 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5709 * dwarf2read.c (noop_record_line): New function.
5710 (dwarf_decode_lines): Ignore line tables for GCd functions.
5712 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5714 Fix ARI warnings about new lines at the end of messages, which
5715 are unneeded as there is a new line added at the end of the message
5717 * darwin-nat.c (darwin_stop_inferior): Ditto.
5718 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5719 * dfp.c (decimal_to_number): Ditto.
5720 * exec.c (print_section_info): Ditto.
5721 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5722 * osdata.c (get_osdata): Ditto.
5723 * record.c (bfdcore_write): Ditto.
5724 * remote-mips.c (mips_readchar): Ditto.
5725 * remote.c (read_ptid): Ditto.
5726 * ser-mingw.c (ser_windows_raw): Ditto.
5727 * tracepoint.c (add_local_symbols): Ditto.
5728 * windows-nat.c (fake_create_process): Ditto.
5730 2011-03-16 Tom Tromey <tromey@redhat.com>
5732 * tracepoint.c (stop_tracing): Don't declare.
5733 * event-top.c (after_char_processing_hook): Add `(void)'.
5735 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5737 * NEWS: Add Parameter sub-classing description.
5739 2011-03-16 Kai Tietz <ktietz@redhat.com>
5741 * MAINTAINERS: Update my e-mail address.
5743 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5745 * MAINTAINERS: Add myself for write after approval privileges.
5747 2011-03-15 Michael Snyder <msnyder@vmware.com>
5749 * frame.c (find_frame_sal): Assert sym is not null.
5751 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5753 * objc-lang.c (selectors_info): Check strchr for null result.
5755 * stabsread.c (define_symbol): Guard against bad stabstring input.
5757 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5759 Remove trailing spaces and tabulations from pascal language
5764 p-valprint.c: Ditto.
5766 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5768 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5769 than LOW. Comment it.
5770 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5771 HIGHPC not strictly higher than LOWPC.
5773 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5775 Fix formatting of function declarations returning a pointer in
5777 * varobj.c (varobj_add_child): Ditto.
5778 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5779 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5781 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5784 for the "generic" vector ABI used with GCC 4.3 and later.
5785 (ppc64_sysv_abi_return_value): Likewise.
5787 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5789 * infcall.c (call_function_by_hand): Function return value is
5790 always a non_lval, even when using struct_return.
5792 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5794 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5795 (map_display_numbers): New.
5796 (do_delete_display): New.
5797 (undisplay_command): Use map_display_numbers.
5798 (do_enable_disable_display): New.
5799 (enable_disable_display_command): New function.
5800 (enable_display): Delete.
5801 (enable_display_command): New.
5802 (disable_display_command): Reimplement.
5803 (_initialize_printcmd): Adjust "enable display" command to use
5804 `enable_display_command' as callback.
5806 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5808 * NEWS: Add Python breakpoint 'stop' operation.
5810 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5812 * NEWS: Delete duplicate entry. Fix typo.
5814 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5816 Fix ARI warning about function names in first column.
5817 Put prototype declaration on same line as return type.
5818 * objc-exp.y: Ditto.
5820 * python/py-stopevent.h: Ditto.
5821 For long function names, split parameters to
5822 allow function name on same line as return type.
5823 * solib-pa64.c: Ditto.
5826 For long function declaration, use single line.
5827 * hppa-tdep.h: Ditto.
5828 * inferior.h: Ditto.
5830 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5832 * python/python.h: Declare gdbpy_should_stop and
5833 gdbpy_breakpoint_has_py_cond.
5834 * python/python.c: Add python.h to includes. Remove python.h from
5835 HAVE_PYTHON definition
5836 (gdbpy_should_stop): New dummy function.
5837 (gdbpy_breakpoint_has_py_cond): New dummy function.
5838 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5839 sub-classing capabilities.
5840 (gdbpy_should_stop): New function.
5841 (gdbpy_breakpoint_has_py_cond): New function.
5842 (local_setattro): New function.
5843 * breakpoint.c (condition_command): Add check for Python 'stop'
5845 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5846 operation function as part of stop/continue tests.
5848 2011-03-14 Tom Tromey <tromey@redhat.com>
5851 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5852 (needs_frame_dwarf_call): Likewise.
5854 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5856 Fix ARI warning about functions without parameters that do not
5858 * breakpoint.c (all_tracepoints): Replace () by (void).
5859 * f-exp.y (match_string_literal): Ditto.
5861 * m2-exp.y (yylex): Ditto.
5862 * mep-tdep.c (current_me_module): Ditto.
5863 (current_options): Ditto.
5864 (current_cop_data_bus_width): Ditto.
5865 (current_cr_names): Ditto.
5866 (current_cr_is_float): Ditto.
5867 (current_ccr_names): Ditto.
5868 * objc-exp.y (yylex): Ditto.
5869 * p-exp.y (yylex): Ditto.
5870 * remote.c (send_interrupt_sequence): Ditto.
5871 * tracepoint.c (current_trace_status): Ditto.
5872 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5873 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5875 2011-03-11 Michael Snyder <msnyder@vmware.com>
5877 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5878 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5879 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5880 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5881 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5883 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5884 (delete_async_event_handler): Ditto.
5886 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5888 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5890 * top.c (set_verbose): Assert showcmd was found.
5892 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5894 * xtensa-tdep.c (warning_once): Correct style issues.
5896 2011-03-11 Yao Qi <yao@codesourcery.com>
5898 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5900 2011-03-11 Andreas Schwab <schwab@redhat.com>
5902 * common/aclocal.m4: Remove.
5904 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5906 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5907 (xtensa_write_register, xtensa_read_register): Likewise.
5908 (xtensa_hextochar): Removed.
5909 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5911 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5913 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5914 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5915 (xtensa_alloc_frame_cache): Add initialization for new fields.
5916 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5917 (warning_once): New function.
5918 (xtensa_insn_kind): New item c0opc_and.
5919 (call0_classify_opcode): Add the case for AND instruction.
5920 (call0_track_op): Change arguments. New local variable litbase.
5921 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5922 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5924 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5925 (call0_analyze_prologue): Update the comments. Change arguments.
5926 Add the variety of updates to handle extended prologues, which now can
5927 conduct dynamic stack adjustments.
5928 (call0_frame_cache): Likewise.
5929 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5930 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5932 2011-03-10 Michael Snyder <msnyder@vmware.com>
5934 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5935 (cmd_qtframe): Ditto.
5936 (cmd_qtbuffer): Ditto.
5937 (cmd_bigqtbuffer): Ditto.
5939 2011-03-10 Tom Tromey <tromey@redhat.com>
5941 * tracepoint.c (trace_actions_command): Update.
5942 * thread.c (thread_apply_command): Update.
5943 * reverse.c (delete_bookmark_command): Update.
5944 (bookmarks_info): Update.
5945 * printcmd.c (undisplay_command): Update.
5946 * memattr.c (mem_enable_command): Update.
5947 (mem_disable_command): Update.
5948 (mem_delete_command): Update.
5949 * inferior.c (detach_inferior_command): Update.
5950 (kill_inferior_command): Update.
5951 (remove_inferior_command): Update.
5952 * cli/cli-utils.h (struct get_number_or_range_state): New.
5953 (init_number_or_range): Declare.
5954 (get_number_or_range): Update.
5955 * cli/cli-utils.c (init_number_or_range): New function.
5956 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5958 (number_is_in_list): Update.
5959 * breakpoint.h (get_tracepoint_by_number): Update.
5960 * breakpoint.c (map_breakpoint_numbers): Update for change to
5961 get_number_or_range.
5962 (find_location_by_number): Use get_number, not
5963 get_number_or_range.
5964 (trace_pass_set_count): New function.
5965 (trace_pass_command): Update for change to get_number_or_range.
5967 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5970 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5972 * python/py-param.c (add_setshow_generic): Add set/show callback
5973 parameters. Register Python object context.
5974 (get_show_value): New function.
5975 (get_set_value): New function.
5976 (call_doc_function): New function.
5977 (get_doc_string): Move behind get_show_value/get_set_value.
5979 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5981 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5983 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5985 * xtensa-tdep.c (xtensa_read_register): Add comment.
5986 (xtensa_write_register): Likewise.
5987 (xtensa_hextochar): Add comment and update to match coding conventions.
5988 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5989 (execute_l32e, execute_s32e, execute_code): Update comments.
5990 (xtensa_exception_handler_t): Update to match coding conventions.
5991 (xtensa_insn_kind): Likewise.
5993 2011-03-09 Michael Snyder <msnyder@vmware.com>
5995 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5997 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5999 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6001 2011-03-09 Tom Tromey <tromey@redhat.com>
6003 * thread.c (restore_selected_frame): Handle frame_level == -1.
6004 (make_cleanup_restore_current_thread): Use
6005 get_selected_frame_if_set.
6006 * frame.h (get_selected_frame_if_set): Declare.
6007 * frame.c (get_selected_frame_if_set): New function.
6009 2011-03-09 Pedro Alves <pedro@codesourcery.com>
6011 * cli/cli-cmds.c (shell_escape): Use lbasename.
6012 * coffread.c (coff_start_symtab): Constify parameter.
6013 (complete_symtab): Constify `name' parameter.
6014 (coff_symtab_read): Constify `filestring' local.
6015 (coff_getfilename): Constify return and `result' local.
6017 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6018 * linux-fork.c (info_checkpoints_command): Use lbasename.
6019 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6020 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6021 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6022 * procfs.c (procfs_make_note_section): Use lbasename.
6023 * tui/tui-io.c (printable_part): Constity return and parameter.
6025 (print_filename): Constify parameters, and local `s'.
6026 (tui_rl_display_match_list): Constify local `temp'.
6028 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6031 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6032 Fix DWARF-3+ DW_AT_accessibility default assumption.
6033 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6034 cu->header.version >= 3.
6036 2011-03-09 Yao Qi <yao@codesourcery.com>
6038 * common/Makefile.in: Remove.
6039 * common/configure: Remove.
6040 * common/configure.ac: Remove.
6042 2011-03-09 Yao Qi <yao@codesourcery.com>
6045 2011-02-11 Yao Qi <yao@codesourcery.com>
6047 * common/Makefile.in: Add copyright header.
6049 2011-02-11 Yao Qi <yao@codesourcery.com>
6051 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6053 * configure.ac: Add common to sub dir.
6054 * configure: Regenerate.
6056 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6058 * xtensa-tdep.c (call0_ret): New function.
6059 (xtensa_skip_prologue): Speed up analysis.
6061 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6063 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6064 while executing MI command -data-list-changed-registers.
6066 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6068 * xtensa-tdep.c (xtensa_read_register): New function.
6069 (xtensa_write_register): New function.
6070 (xtensa_find_register_by_name): New function.
6071 (xtensa_windowed_frame_cache): Update comments in type description.
6072 (xtensa_frame_cache): Likewise.
6073 (xtensa_window_interrupt_insn): New function.
6074 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6075 (xtensa_insn_kind): Add new instructions.
6076 (rwx_special_register): New function.
6077 (call0_classify_opcode): Add new instructions to the analysis.
6078 (a0_saved, a7_saved, a11_saved): New variables.
6079 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6080 (execute_l32e): New function.
6081 (execute_s32e): New function.
6082 (xtensa_exception_handler_t): New type.
6083 (execute_code): New function.
6084 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6085 analysis for Xtensa Window Exception handlers.
6087 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6089 * xtensa-tdep.c (TX_PS): New.
6090 (windowing_enabled): Update to count for Call0 ABI.
6091 (xtensa_hextochar): New.
6092 (xtensa_init_reggroups): Make algorithm generic.
6093 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6095 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6097 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6099 2011-03-08 Michael Snyder <msnyder@vmware.com>
6101 * i386-tdep.c (i386_follow_jump): Check return value of
6103 (i386_analyze_struct_return): Ditto.
6104 (i386_skip_probe): Ditto.
6105 (i386_match_insn): Ditto.
6106 (i386_skip_noop): Ditto.
6107 (i386_analyze_frame_setup): Ditto.
6108 (i386_analyze_register_saves): Ditto.
6109 (i386_skip_prologue): Ditto.
6110 (i386_skip_main_prologue): Ditto.
6112 * target.c (read_whatever_is_readable): Fix memory leak.
6114 * i386-tdep.c (i386_process_record): Document fall through.
6116 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6118 Fix DWARF-3+ DW_AT_accessibility default assumption.
6119 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6120 cu->header.version >= 3.
6122 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6124 * remote.c (remote_check_symbols): Skip if the target has no
6127 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6129 * target.c (read_whatever_is_readable): Reformat comment,
6130 with a minor typo fix. Minor reformatting of the code.
6132 2011-03-08 Yao Qi <yao@codesourcery.com>
6134 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6135 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6136 Use cached result instead of calling displaced_in_arm_mode again.
6137 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6138 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6139 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6140 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6141 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6142 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6143 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6144 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6145 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6146 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6147 (arm_catch_kernel_helper_return): Likewise.
6148 * gdb/arm-tdep.h : Update function declarations.
6150 2011-03-07 Michael Snyder <msnyder@vmware.com>
6152 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6154 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6156 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6158 * elfread.c (elf_symtab_read): Stop memory leak.
6160 * main.c (captured_main): Fix memory leak.
6162 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6164 * ada-lang.c (compare_names): Call is_name_suffix with string1
6167 2011-03-07 Tom Tromey <tromey@redhat.com>
6169 * xcoffread.c (xcoff_sym_fns): Update.
6170 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6171 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6172 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6173 (symbol_file_add_with_addrs_or_offsets): Likewise.
6174 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6175 * somread.c (som_sym_fns): Update.
6176 * psymtab.h (require_partial_symbols): Declare.
6177 * psymtab.c (require_partial_symbols): New function.
6178 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6179 (ALL_OBJFILE_PSYMTABS): Undef.
6180 (ALL_PSYMTABS): Move from psympriv.h.
6181 (lookup_partial_symtab, find_pc_sect_psymtab)
6182 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6183 (find_last_source_symtab_from_partial)
6184 (forget_cached_source_info_partial)
6185 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6186 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6187 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6188 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6189 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6190 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6191 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6192 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6193 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6195 * mipsread.c (ecoff_sym_fns): Update.
6196 * machoread.c (macho_sym_fns): Update.
6197 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6198 (read_psyms): New function.
6199 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6200 (elf_sym_fns_lazy_psyms): New global.
6201 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6202 dwarf2_build_psymtabs.
6203 * dbxread.c (aout_sym_fns): Update.
6204 * coffread.c (coff_sym_fns): Update.
6206 2011-03-07 Tom Tromey <tromey@redhat.com>
6208 * infrun.c (print_exited_reason): Include inferior id and pid in
6211 2011-03-07 Tom Tromey <tromey@redhat.com>
6213 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6215 (target_has_execution_1): Update.
6216 (target_has_execution_current): Declare.
6217 (target_has_execution): Call target_has_execution_current.
6218 (default_child_has_execution): Update.
6219 * target.c (default_child_has_execution): Add 'the_ptid'
6221 (target_has_execution_1): Likewise.
6222 (target_has_execution_current): New function.
6223 (add_target): Update.
6224 (init_dummy_target): Update.
6225 * remote-m32r-sdi.c (m32r_has_execution): New function.
6226 (init_m32r_ops): Use it.
6227 * record.c (record_core_has_execution): Now static. Add
6228 'the_ptid' parameter.
6229 * inferior.c (have_live_inferiors): Don't save current thread.
6230 Use target_has_execution_1.
6232 2011-03-07 Yao Qi <yao@codesourcery.com>
6234 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6236 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6238 * elfread.c (elf_symtab_read): Minor reformatting.
6240 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6242 * objc-lang.c (selectors_info): Minor reformatting.
6244 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6246 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6248 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6249 Michael Snyder <msnyder@vmware.com>
6251 * ada-valprint.c (ada_val_print_array): Move the declaration of
6252 "byte_order" and "elttype" inside the block where these variables
6253 are actually used. Remove some special handling for the case
6254 where "elttype" and "eltlen" are null. Replace by a comment
6255 and a couple of assertion checks.
6257 2011-03-05 Michael Snyder <msnyder@vmware.com>
6259 * source.c (add_path): Replace semicolon at end of block.
6260 * dwarf2expr.c (execute_stack_op): Ditto.
6262 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6264 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6265 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6266 (bfin-*-*): Likewise.
6268 2011-03-05 Michael Snyder <msnyder@vmware.com>
6270 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6271 * mdebugread.c (parse_symbol): Ditto.
6272 * parse.c (parse_exp_in_context): Ditto.
6273 * source.c (add_path): Ditto.
6274 * utils.c (gnu_debuglink_crc32): Ditto.
6275 * varobj.c (variable_language): Ditto.
6277 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6279 2011-03-04 Michael Snyder <msnyder@vmware.com>
6281 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6283 * symfile.c (simple_overlay_update): Check for null return value
6284 from lookup_minimal_symbol.
6286 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6288 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6290 * eval.c (parse_and_eval_address_1): Remove function.
6291 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6292 instead of parse_and_eval_address_1.
6293 * value.h (parse_and_eval_address_1): Remove prototype.
6295 2011-03-04 Michael Snyder <msnyder@vmware.com>
6297 * remote.c (putpkt_binary): Document that case stmt falls through.
6299 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6301 * breakpointc (print_it_typical): Move NULL check from here...
6302 (print_bp_stop_message): ... to here.
6304 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6306 * breakpoint.c (enable_command): Use break instead of continue,
6307 and fill in a missing break.
6308 (disable_command): Ditto.
6310 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6312 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6313 (terminal_save_ours): Remove misleading comment.
6314 (inflow_inferior_data_cleanup): Free ttystate.
6315 (inflow_inferior_exit): Likewise.
6316 (copy_terminal_info): Copy ttystate.
6318 * serial.c (serial_copy_tty_state): New function.
6319 * serial.h (serial_copy_tty_state): Add prototype.
6320 (struct serial_ops): Add copy_tty_state callback.
6321 * ser-base.c (ser_base_copy_tty_state): New function.
6322 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6323 * ser-go32.c (dos_copy_tty_state): New function.
6324 (dos_ops): Install copy_tty_state callback.
6325 * ser-mingw.c (_initialize_ser_windows): Likewise.
6326 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6327 * ser-unix.c (hardwire_copy_tty_state): New function.
6328 (_initialize_ser_hardwire): Install it.
6330 2011-03-04 Michael Snyder <msnyder@vmware.com>
6332 * breakpoint.c (create_breakpoint): Add missing break statement.
6334 Reverting this patch:
6335 * infcall.c (call_function_by_hand): Add break statements for lint.
6337 Reverting this patch:
6338 * cli/cli-script.c (script_from_file): Add break for lint.
6340 2011-03-04 Michael Snyder <msnyder@vmware.com>
6342 * solib.c (reload_shared_libraries_1): Close memory leak.
6344 2011-03-03 Tom Tromey <tromey@redhat.com>
6347 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6350 2011-03-03 Michael Snyder <msnyder@vmware.com>
6352 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6353 fields of struct 'st' to zero.
6355 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6356 sal.pspace before calling set_current_source_symtab_and_line.
6358 2011-03-03 Yao Qi <yao@codesourcery.com>
6360 * Makefile.in (configure-common): Remove. Let Makefile
6361 in dir common to rebuild itself.
6362 (common/Makefile): Likewise.
6364 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6366 * utils.c (parse_escape): Add i18n markup in error message.
6368 2011-03-03 Yao Qi <yao@codesourcery.com>
6370 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6372 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6373 (displaced_write_reg, displaced_read_reg): Likewise.
6374 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6375 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6376 (cleanup_branch): Replace magic number 14 and 15 with
6377 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6379 2011-03-02 Michael Snyder <msnyder@vmware.com>
6381 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6383 * cli/cli-script.c (script_from_file): Add break for lint.
6385 * mdebugread.c (parse_partial_symbols): Fix indent.
6387 * target-descriptions.c (tdesc_gdb_type): No need to call
6388 xstrdup, callee saves a copy.
6390 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6392 * infcall.c (call_function_by_hand): Add break statements for lint.
6394 * utils.c (parse_escape): Escape the escape char.
6396 * python/py-inferior.c (build_inferior_list): Error out if
6397 PyList_Append fails.
6398 (gdbpy_inferiors): Error out if build_inferior_list fails.
6400 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6403 * record.c (record_restore): Move printf to before error return.
6405 2011-03-02 Yao Qi <yao@codesourcery.com>
6407 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6408 is_thumb and insn_size.
6409 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6410 on both ARM and Thumb mode.
6411 (arm_process_displaced_insn): Set is_thumb and insn_size.
6412 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6413 (arm_displaced_step_fixup): Likewise.
6415 2011-03-01 Michael Snyder <msnyder@vmware.com>
6417 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6419 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6421 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6423 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6425 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6428 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6429 which shadows function parameter.
6431 * tracepoint.c (create_tsv_from_upload): Superfluous call
6432 to xstrdup. Callee already calls xstrdup.
6434 * linespec.c (decode_line_1): Remove unnecessary null check.
6436 * tracepoint.c (scope_info): Fix mem leak, remove underused
6439 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6440 superfluous null check.
6442 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6443 (value_of_builtin_frame_fp_reg): Ditto.
6445 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6447 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6450 * linespec.c (decode_line_1): Check for null before dereference.
6452 * reverse.c (record_restore): Move null-check to before pointer
6455 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6457 * objc-lang.c (selectors_info): Add explanitory comment.
6458 (classes_info): Ditto.
6460 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6462 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6463 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6464 versions of the trampoline. Handle Thumb vs. ARM addresses.
6465 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6466 (arm_linux_init_abi): Install it.
6467 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6468 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6470 2011-02-28 Michael Snyder <msnyder@vmware.com>
6472 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6473 a little bigger, to avoid possibility of an overflow.
6475 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6476 buffers a little bigger, to avoid possibility of an overflow.
6478 * coffread.c (coff_getfilename): Add check to avoid overflow.
6480 * objc-lang.c (selectors_info): Add a small safety margin to
6482 (classes_info): Error out on too long REGEXP.
6484 * infrun.c (handle_inferior_event): Remove unused function call.
6486 * fork-child.c (fork_inferior): Remove ifdef'd code and
6489 * linux-thread-db.c (attach_thread): Discard unused value.
6491 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6493 * remote.c (remote_get_noisy_reply): Discard unused value.
6494 (remote_vcont_resume): Ditto.
6495 (remote_stop_ns): Ditto.
6497 * linespec.c (decode_objc): Delete unused variable.
6499 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6501 * dwarf2read.c (add_partial_symbol): Discard unused values.
6502 (read_base_type): Delete unused variable.
6504 * dbxread.c (read_dbx_symtab): Discard unused value.
6506 * eval.c (evaluate_subexp_standard): Delete unused variable,
6507 and discard unused values.
6509 * infcmd.c (_initialize_infcmd): Discard unused values.
6511 * stabsread.c (rs6000_builtin_type): Missing break statement.
6513 * dbxread.c (process_one_symbol): Discard unused value.
6515 * coffread.c (coff_end_symtab): Delete unused variable.
6517 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6518 (dwarf2_add_typedef): Delete unused variable.
6519 (read_namespace): Ditto.
6520 (dwarf_decode_macros): Ditto.
6522 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6524 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6526 * p-valprint.c (pascal_val_print): Discard unused value.
6528 * utils.c (nquery): Call va_end before return;
6532 * proc-service.c (ps_plog): Call va_end before return.
6534 2011-02-28 Tom Tromey <tromey@redhat.com>
6536 * python/python.c (gdbpy_value_cst): New global.
6537 (_initialize_python): Initialize it.
6538 * python/python-internal.h (gdbpy_value_cst): Declare.
6539 * python/py-value.c (convert_value_from_python): Use
6542 2011-02-28 Michael Snyder <msnyder@vmware.com>
6544 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6546 * breakpoint.c (catch_syscall_completer): Free malloced list.
6548 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6550 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6551 (lval_func_check_synthetic_pointer): Ditto.
6552 (lval_func_free_closure): Fix use-after-free.
6554 2011-02-28 Tom Tromey <tromey@redhat.com>
6556 * psymtab.c (expand_partial_symbol_tables): Use
6557 ALL_OBJFILE_PSYMTABS.
6559 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6561 * objc-lang.c (selectors_info): Error on too long REGEXP.
6563 2011-02-28 Michael Snyder <msnyder@vmware.com>
6565 * python/py-param.c (set_parameter_value): Add missing
6568 * linux-record.c (record_linux_system_call): Add missing
6571 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6573 * breakpoint.c (print_one_breakpoint_location): Remove unused
6574 argument PRINT_ADDRESS_BITS. Update callers.
6575 (print_one_breakpoint): Likewise.
6577 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6579 * breakpoint.c (wrap_indent_at_field): New function.
6580 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6581 Allocate ui_stream locally instead of using STB argument.
6582 (print_one_breakpoint_location): Update call.
6583 * ui-out.c (ui_out_query_field): New function.
6584 * ui-out.h (ui_out_query_field): Add prototype.
6586 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6588 From Michael Snyder <msnyder@vmware.com>
6589 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6591 2011-02-27 Michael Snyder <msnyder@vmware.com>
6593 * objc-lang.c (selectors_info): Prevent string overrun.
6595 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6598 * symtab.c (rbreak_command): Move variable 'file_name' to
6601 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6602 param with a local variable of the same name.
6604 2011-02-27 Michael Snyder <msnyder@vmware.com>
6606 * value.c (value_from_history_ref): New function.
6607 * value.h (value_from_history_ref): Export.
6608 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6609 to parse value history references.
6610 * cli/cli-utils.h (get_number_trailer): Update comment.
6612 2011-02-27 Michael Snyder <msnyder@vmware.com>
6614 * inferior.c (detach_inferior_command): Use get_number_or_range.
6615 (kill_inferior_command): Ditto.
6616 (remove_inferior_command): Ditto.
6617 (initialize_inferiors): Make command names plural.
6618 Update help strings.
6620 2011-02-27 Michael Snyder <msnyder@vmware.com>
6622 * darwin-nat-info.c: Fix comment typo.
6623 * dwarf2expr.h: Ditto.
6624 * fbsd-nat.c: Ditto.
6625 * fbsd-nat.h: Ditto.
6626 * frame-unwind.h: Ditto.
6628 * hppa-hpux-tdep.c: Ditto.
6629 * i386-linux-nat.c: Ditto.
6630 * linux-nat.c: Ditto.
6631 * nbsd-nat.c: Ditto.
6632 * nbsd-nat.h: Ditto.
6633 * ppc-linux-tdep.c: Ditto.
6636 * tui/tui-winsource.c: Ditto.
6638 2011-02-26 Michael Snyder <msnyder@vmware.com>
6640 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6642 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6644 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6645 with a local variable of the same name.
6647 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6648 param with a local variable of the same name.
6649 (i387_supply_xsave): Ditto.
6651 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6652 that it does not shadow a function parameter.
6654 * i386-nat.c (i386_length_and_rw_bits): Document that case
6655 statement is meant to fall through.
6657 * expprint.c (dump_subexp_body_standard): Document that case
6658 statement is meant to fall through.
6660 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6661 dead if statement. Condition can't be false.
6663 2011-02-25 Michael Snyder <msnyder@vmware.com>
6665 * arm-tdep.c: Fix typos in comments.
6666 * bsd-uthread.c: Ditto.
6667 * completer.c: Ditto.
6669 * cp-namespace.c: Ditto.
6670 * cp-support.c: Ditto.
6671 * cris-tdep.c: Ditto.
6673 * dwarf2read.c: Ditto.
6675 * gdbtypes.h: Ditto.
6676 * inferior.h: Ditto.
6677 * mdebugread.c: Ditto.
6678 * mips-tdep.c: Ditto.
6679 * ppc-linux-nat.c: Ditto.
6680 * ppc-linux-tdep.c: Ditto.
6681 * printcmd.c: Ditto.
6682 * sol-thread.c: Ditto.
6683 * solib-frv.c: Ditto.
6685 * sparc64-tdep.c: Ditto.
6686 * spu-tdep.c: Ditto.
6687 * stabsread.c: Ditto.
6692 * python/py-block.c: Ditto.
6693 * python/py-symbol.c: Ditto.
6694 * python/py-symtab.c: Ditto.
6695 * python/py-value.c: Ditto.
6696 * tui/tui-win.c: Ditto.
6698 2011-02-25 Michael Snyder <msnyder@vmware.com>
6700 * inferior.c (print_inferior): Accept a string instead of an int
6701 for requested_inferiors, and use get_number_or_range to parse it.
6702 (info_inferiors_command): Pass args string to print_inferior.
6703 (initialize_inferiors): Change help string for info inferiors.
6704 * inferior.h (print_inferior): Export prototype change.
6706 2011-02-25 Tom Tromey <tromey@redhat.com>
6708 * common/ax.def (invalid2): Set to 0x31.
6710 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6712 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6714 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6716 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6718 2011-02-24 Michael Snyder <msnyder@vmware.com>
6720 * Makefile.in (clean): Make clean should remove generated files
6721 observer.h and observer.inc.
6723 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6725 Revert the following patch (not approved yet):
6726 2011-02-21 Hui Zhu <teawater@gmail.com>
6727 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6728 * ax-gdb.c (gen_printf_expr_callback): New function.
6729 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6730 * ax-general.c (ax_memcpy): New function.
6731 (ax_print): Handle "printf".
6733 * ax.h (ax_memcpy): Forward declare.
6734 * common/ax.def (invalid2): Removed.
6735 (printf): New entry.
6736 * printcmd.c (printcmd.h): New include.
6737 (string_printf): New function.
6738 (ui_printf): Removed.
6739 (printf_command): Remove static. Call string_printf.
6740 (eval_command): Call string_printf.
6741 * printcmd.h: New file.
6742 * tracepoint.c (validate_actionline,
6743 encode_actions_1): handle printf_command.
6745 2011-02-23 Tom Tromey <tromey@redhat.com>
6747 * ax-general.c (ax_pick): Add missing newline.
6749 2011-02-23 Michael Snyder <msnyder@vmware.com>
6751 * breakpoint.c (breakpoint_1): Change first argument from an int
6752 to a char pointer, so that the function now accepts a list of
6753 breakpoints rather than just one. Use new function
6754 'number_is_in_list' to implement.
6755 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6756 (watchpoints_info): Ditto.
6757 (tracepoints_info): Ditto.
6758 (maintenance_info_breakpoints): Ditto.
6759 (_initialize_breakpoint): Update help strings to reflect the fact
6760 that these functions can now take more than one argument.
6761 * cli/cli-utils.c (number_is_in_list): New function.
6762 * cli/cli-utils.h (number_is_in_list): Export.
6764 2011-02-23 Michael Snyder <msnyder@vmware.com>
6766 * memattr.c (mem_enable_command): Use get_number_or_range.
6767 (mem_disable_command): Ditto.
6768 (mem_delete_command): Ditto.
6769 (_initialize_mem): Tweak usage message to reflect multiple
6772 2011-02-22 Doug Evans <dje@google.com>
6774 Add gdb.lookup_global_symbol python function.
6776 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6777 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6778 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6780 2011-02-22 Tom Tromey <tromey@redhat.com>
6782 * language.c (language_class_name_from_physname): Rename
6783 'curr_language' argument to 'lang'; use in body.
6785 2011-02-22 Michael Snyder <msnyder@vmware.com>
6787 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6789 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6791 * frame-unwind.h: Fix comment to mention the this frame, not the
6794 2011-02-22 Tom Tromey <tromey@redhat.com>
6796 * symfile.c (auto_solib_limit): Remove.
6797 * symfile.h (auto_solib_limit): Remove.
6799 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6801 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6803 2011-02-21 Michael Snyder <msnyder@vmware.com>
6805 * gdbthread.h (print_thread_info): Change prototype.
6806 * thread.c (print_thread_info): Accept char* instead of int for
6807 requested_threads argument. Use new function number_is_in_list
6808 to determine which threads to list.
6809 (info_threads_command): Pass char* to print_thread_info.
6810 * cli/cli-utils.c (number_is_in_list): New function.
6811 * cli/cli-utils.h (number_is_in_list): Export.
6812 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6814 (print_one_inferior): Ditto.
6815 (mi_cmd_list_thread_groups): Ditto.
6817 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 * common/Makefile.in (CFLAGS): New.
6820 (COMPILE): Add $(CFLAGS).
6822 2011-02-21 Tom Tromey <tromey@redhat.com>
6824 * breakpoint.c (catch_syscall_command_1): Fix typo.
6826 2011-02-21 Tom Tromey <tromey@redhat.com>
6828 * reverse.c: Include cli-utils.h.
6829 * printcmd.c: Include cli-utils.h.
6830 (string_printf): Use skip_spaces.
6831 * cli/cli-utils.h: New file.
6832 * cli/cli-utils.c: New file.
6833 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6834 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6835 * breakpoint.h (get_number, get_number_or_range): Move to
6837 * breakpoint.c: Include cli-utils.h.
6838 (get_number_trailer, get_number, get_number_or_range)
6839 (ep_skip_leading_whitespace): Move to cli-utils.c.
6840 (create_breakpoint_sal, find_condition_and_thread)
6841 (decode_static_tracepoint_spec, watch_command_1)
6842 (watch_maybe_just_location, ep_parse_optional_if_clause)
6843 (catch_fork_command_1, catch_exec_command_1)
6844 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6845 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6846 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6847 (HFILES_NO_SRCDIR): Add cli-utils.h.
6848 (cli-utils.o): New target.
6850 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6852 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6853 before calling discard_all_inferiors.
6855 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6857 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6858 (struct builtin_opencl_type): Remove.
6859 (builtin_opencl_type): Change return type to "struct type **".
6860 (lookup_opencl_vector_type): Update caller.
6861 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6862 (build_opencl_types): Install plain array of "struct type *"
6863 instead of "struct builtin_opencl_type".
6865 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6866 Ulrich Weigand <uweigand@de.ibm.com>
6868 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6869 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6870 (struct arm_linux_hwbp_cap): New type.
6871 (arm_linux_get_hwbp_cap): New function.
6872 (arm_linux_get_hw_breakpoint_count): Likewise.
6873 (arm_linux_get_hw_watchpoint_count): Likewise.
6874 (arm_linux_can_use_hw_breakpoint): Likewise.
6875 (arm_hwbp_type): New type.
6876 (arm_hwbp_control_t): Likewise.
6877 (struct arm_linux_hw_breakpoint): Likewise.
6878 (struct arm_linux_thread_points): Likewise.
6879 (arm_threads): New global variable.
6880 (arm_linux_find_breakpoints_by_tid): New function.
6881 (arm_hwbp_control_initialize): Likewise.
6882 (arm_hwbp_control_is_enabled): Likewise.
6883 (arm_hwbp_control_disable): Likewise.
6884 (arm_linux_hw_breakpoint_initialize): Likewise.
6885 (arm_linux_get_hwbp_type): Likewise.
6886 (arm_linux_hw_watchpoint_initialize): Likewise.
6887 (arm_linux_hw_breakpoint_equal): Likewise.
6888 (arm_linux_insert_hw_breakpoint1): Likewise.
6889 (arm_linux_remove_hw_breakpoint1): Likewise.
6890 (arm_linux_insert_hw_breakpoint): Likewise.
6891 (arm_linux_remove_hw_breakpoint): Likewise.
6892 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6893 (arm_linux_insert_watchpoint): Likewise.
6894 (arm_linux_remove_watchpoint): Likewise.
6895 (arm_linux_stopped_data_address): Likewise.
6896 (arm_linux_stopped_by_watchpoint): Likewise.
6897 (arm_linux_watchpoint_addr_within_range): Likewise.
6898 (arm_linux_new_thread): Likewise.
6899 (arm_linux_thread_exit): Likewise.
6900 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6901 related target callbacks. Register arm_linux_new_thread and
6902 arm_linux_thread_exit.
6903 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6904 * arm-tdep.c (arm_pc_is_thumb): Make global.
6905 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6907 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6909 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6910 per-frame locations while within a function epilogue.
6912 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6914 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6915 to GNU coding standards.
6917 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6919 Allow use of mingw native on Windows 95 OS.
6920 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6921 (ser_windows_close): Only call CancelIo if function exists.
6922 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6923 to check for existence of CancelIo function in kernel32 DLL.
6925 2011-02-21 Hui Zhu <teawater@gmail.com>
6927 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6928 * ax-gdb.c (gen_printf_expr_callback): New function.
6929 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6930 * ax-general.c (ax_memcpy): New function.
6931 (ax_print): Handle "printf".
6933 * ax.h (ax_memcpy): Forward declare.
6934 * common/ax.def (invalid2): Removed.
6935 (printf): New entry.
6936 * printcmd.c (printcmd.h): New include.
6937 (string_printf): New function.
6938 (ui_printf): Removed.
6939 (printf_command): Remove static. Call string_printf.
6940 (eval_command): Call string_printf.
6941 * printcmd.h: New file.
6942 * tracepoint.c (validate_actionline,
6943 encode_actions_1): handle printf_command.
6945 2011-02-19 Michael Snyder <msnyder@vmware.com>
6947 * reverse.c (delete_one_bookmark): Argument is now bookmark
6948 id rather than pointer to bookmark struct.
6949 (delete_bookmark_command): Use get_number_or_range.
6950 (goto_bookmark_command): Parse with get_number instead of strtoul.
6951 (bookmark_1): New function. Print info for one bookmark.
6952 (bookmarks_info): Use get_number_or_range and bookmark_1.
6954 2011-02-18 Michael Snyder <msnyder@vmware.com>
6956 * thread.c (info_threads_command): Re-implement using
6957 get_number_or_range.
6958 (thread_apply_command): Ditto.
6960 2011-02-18 Tom Tromey <tromey@redhat.com>
6962 * common/ax.def: New file.
6963 * ax.h (enum agent_op): Use ax.def.
6964 * ax-general.c (aop_map): Use ax.def.
6966 2011-02-18 Tom Tromey <tromey@redhat.com>
6968 * ax-general.c (aop_map): Add pick and rot.
6969 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6970 <DW_OP_rot>: Implement.
6971 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6973 * ax-general.c (ax_pick): New function.
6975 2011-02-18 Tom Tromey <tromey@redhat.com>
6977 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6979 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6980 Tom Tromey <tromey@redhat.com>
6982 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6983 make_symbol_overload_list_block with NULL BLOCK.
6984 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6986 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6988 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6989 * breakpoint.h (get_number_or_range): Declare.
6990 * printcmd.c (ALL_DISPLAYS): Declare.
6991 (delete_display): Reimplement taking a display pointer.
6992 (undisplay_command): Accept a range of displays to delete, using
6993 get_number_or_range.
6995 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6997 * c-valprint.c (c_val_print): Add embedded_offset to address
6998 for arrays of unspecified length.
6999 * p-valprint.c (pascal_val_print): Likewise.
7001 2011-02-18 Yao Qi <yao@codesourcery.com>
7003 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7004 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7005 (thumb_process_displaced_insn): New.
7006 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7007 call to arm_process_displaced_insn.
7008 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7010 2011-02-17 Tom Tromey <tromey@redhat.com>
7012 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7013 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7014 compile_dwarf_to_ax. No longer static. Call
7015 dwarf2_compile_cfa_to_ax.
7016 (locexpr_tracepoint_var_ref): Update.
7017 (loclist_tracepoint_var_ref): Update.
7018 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7019 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7020 argument; add 'gdbarch' and 'pc'.
7021 (dwarf2_compile_cfa_to_ax): New function.
7022 (dwarf2_frame_cache): Update.
7024 2011-02-17 Joel Brobecker <brobecker@adacore.com>
7026 * ada-lang.c (ada_type_of_array): Fix the size of the array
7027 in the case of an unconstrained packed array.
7029 2011-02-17 Yao Qi <yao@codesourcery.com>
7031 * common/Makefile.in: Add more targets for make.
7033 2011-02-16 Tom Tromey <tromey@redhat.com>
7035 * dwarf2loc.c (unimplemented): Fix typo.
7037 2011-02-16 Tom Tromey <tromey@redhat.com>
7039 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7040 (compile_dwarf_to_ax) <default>: Use unimplemented.
7041 <DW_OP_deref>: Update.
7042 (disassemble_dwarf_expression): Update.
7043 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7044 (decode_locdesc): Update.
7045 * dwarf2expr.h (dwarf_stack_op_name): Update.
7047 2011-02-16 Tom Tromey <tromey@redhat.com>
7049 * ax.h (struct aop_map) <name>: Now const.
7051 2011-02-16 Tom Tromey <tromey@redhat.com>
7053 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7056 2011-02-16 Yao Qi <yao@codesourcery.com>
7058 * infrun.c (get_displaced_step_closure_by_addr): New.
7059 * inferior.h: Declare it.
7060 * arm-tdep.c: (arm_pc_is_thumb): Call
7061 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7064 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7065 Jan Kratochvil <jan.kratochvil@redhat.com>
7068 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7070 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7071 Jan Kratochvil <jan.kratochvil@redhat.com>
7073 * value.c (value_contents_copy_raw): Extend describing comment.
7074 Assert that the destination contents we're overwriting are wholly
7076 (value_contents_copy): Extend describing comment.
7078 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7079 Jan Kratochvil <jan.kratochvil@redhat.com>
7081 * value.c (value_available_contents_eq): Remove redundant local
7082 variables. Fix available contents comparision.
7083 * value.h (value_available_contents_eq): Extend describing
7086 2011-02-16 Yao Qi <yao@codesourcery.com>
7088 * thread.c (info_threads_command): Add missing i18n markup and remove
7091 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7093 * breakpoint.c (longjmp_names): New variable.
7094 (struct breakpoint_objfile_data): New type.
7095 (breakpoint_objfile_key): New variable.
7096 (msym_not_found): New variable.
7097 (msym_not_found_p): New predicate.
7098 (get_breakpoint_objfile_data): New function.
7099 (create_overlay_event_breakpoint): Check per-objfile cache for
7101 (create_longjmp_master_breakpoint): Likewise.
7102 (create_std_terminate_master_breakpoint): Likewise.
7103 (create_exception_master_breakpoint): Likewise.
7104 (_initialize_breakpoint): Register per-objfile data key.
7106 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7108 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7110 (create_longjmp_master_breakpoint): Loop over longjmp names.
7111 (create_std_terminate_master_breakpoint): Const-propagate parameter
7113 (update_breakpoints_after_exec): Adjust.
7114 (breakpoint_re_set): Adjust.
7116 2011-02-15 Michael Snyder <msnyder@vmware.com>
7118 * thread.c (info_threads_command): Process arg as thread id,
7119 or list of thread ids.
7120 (thread_find_command): New command.
7121 (_initialize_thread): Document argument for info threads.
7122 Document 'thread find' command.
7123 * NEWS: Document new command "thread find".
7125 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7127 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7128 * aclocal.m4: Regenerated with aclocal-1.11.1.
7129 * common/configure: Regenerate with autoconf-2.64.
7131 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7133 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7134 bool data type to a size of one byte.
7136 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7137 Jan Kratochvil <jan.kratochvil@redhat.com>
7139 * target.c (memory_xfer_live_readonly_partial): Document where to
7140 look for interface description.
7142 2011-02-15 Yao Qi <yao@codesourcery.com>
7145 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7146 order to store PC value on stack instead of text section.
7148 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7150 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7151 the EFP register set size.
7152 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7153 data from the VMX register.
7154 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7155 and write data from/to the VMX register.
7157 2011-02-14 Michael Snyder <msnyder@vmware.com>
7159 * command.h (enum command_class): New class 'no_set_class', for
7160 "show" commands without a corresponding "set" command.
7161 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7162 * copying.c (_initialize_copying): Ditto for "show copying" and
7164 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7166 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7167 which there is no corresponding "set" command (eg. "show copying").
7169 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7170 Jan Kratochvil <jan.kratochvil@redhat.com>
7172 * exec.c (section_table_available_memory): Change `len' parameter
7174 * exec.h (section_table_available_memory): Ditto.
7175 * value.h (read_value_memory): Rename the `offset' parameter to
7178 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7179 Jan Kratochvil <jan.kratochvil@redhat.com>
7181 * memrange.c (compare_mem_ranges): Mention sort order in
7183 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7184 * tracepoint.c (traceframe_available_memory): Extend comment to
7185 mention what happens to RESULT when the target does not support
7188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7189 Jan Kratochvil <jan.kratochvil@redhat.com>
7191 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7194 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7196 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7197 No longer handle NULL values.
7199 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7201 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7202 * value.c: Include "exceptions.h".
7203 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7205 * cp-abi.c: Include gdb_assert.h.
7206 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7207 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7209 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7210 parameters. No longer returns -1 on error.
7211 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7213 * cp-valprint.c: Include exceptions.h.
7214 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7215 the baseclass_offset. Handle unavailable base classes. Use
7216 val_print_invalid_address.
7217 * p-valprint.c: Include exceptions.h.
7218 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7219 when fetching the baseclass_offset. No longer expect
7220 baseclass_offset returning -1. Handle unavailable base classes.
7221 Use val_print_invalid_address.
7222 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7223 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7224 `embedded_offset' and `val' parameters. Adjust.
7225 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7226 parameter, and change its type to gdb_byte pointer. Add
7227 `embedded_offset' and `val' parameters. Adjust. No longer expect
7228 baseclass_offset returning -1.
7229 (value_dynamic_cast): Use value_contents_for_printing rather than
7230 value_contents. Adjust.
7231 (search_struct_field): No longer expect baseclass_offset returning
7233 (search_struct_method): If reading memory from the target is
7234 necessary, wrap it in a new value to pass to baseclass_offset. No
7235 longer expect baseclass_offset returning -1.
7236 (find_method_list): No longer expect baseclass_offset returning
7237 -1. Use value_contents_for_printing rather than value_contents.
7238 * valprint.c (val_print_invalid_address): New function.
7239 * valprint.h (val_print_invalid_address): Declare.
7240 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7241 and `val' parameters. No longer expect baseclass_offset returning
7243 * gnu-v2-abi.c: Include "exceptions.h".
7244 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7245 parameters. Handle unavailable memory. Recurse through
7246 gnuv2_baseclass_offset directly, rather than through
7247 baseclass_offset. No longer returns -1 on not found, instead
7249 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7250 `val' parameters. Adjust.
7252 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7254 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7255 almost but not quite adjacent.
7257 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7259 * value.h (value_entirely_available): Declare.
7260 * value.c (value_entirely_available): New function.
7261 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7262 real type if the pointer is unavailable.
7264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7266 * valops.c (value_repeat): Use read_value_memory instead of
7269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7271 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7272 * value.c (value_contents_copy_raw, value_contents_copy): New
7274 (value_primitive_field): Use value_contents_copy_raw instead of
7276 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7278 (value_array, value_slice): Ditto.
7279 * valarith.c (value_subscripted_rvalue): Use
7280 value_contents_copy_raw instead of memcpy.
7282 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7284 <unavailable> references.
7286 * valops.c (get_value_at): Use value_from_contents_and_address,
7287 avoiding read_memory.
7289 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7291 * c-valprint.c (c_val_print): Print a string with unavailable
7292 contents as an array.
7294 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7296 * value.h (unpack_bits_as_long): Delete declaration.
7297 (unpack_value_bits_as_long): Declare.
7298 (unpack_value_field_as_long): Declare.
7299 (value_field_bitfield): Declare.
7300 * value.c (unpack_bits_as_long): Rename to...
7301 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7302 value parameters. Return the extracted result in a new output
7303 parameter. If the value contents are unavailable, return false,
7304 otherwise return true.
7305 (unpack_value_bits_as_long): New.
7306 (unpack_field_as_long): Rename to...
7307 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7308 Add embedded_offset and value parameters. Return the extracted
7309 result in a new output parameter. If the value contents are
7310 unavailable, return false, otherwise return true.
7311 (unpack_value_field_as_long): New.
7312 (unpack_field_as_long_1): New.
7313 (unpack_field_as_long): Reimplement as wrapper around
7314 unpack_value_field_as_long_1.
7315 (value_field_bitfield): New function.
7316 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7317 unpack_value_bits_as_long. Mark the value as unavailable, if it
7319 * jv-valprint.c (java_print_value_fields): Use
7320 value_field_bitfield.
7321 * p-valprint.c (pascal_object_print_value_fields): Use
7322 value_field_bitfield.
7323 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7327 * value.c (get_internalvar_integer): Also return the int value of
7328 TYPE_CODE_INT INTERNALVAR_VALUE values.
7329 (set_internalvar): Don't special case TYPE_CODE_INT.
7331 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7333 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7334 INTERNALVAR_POINTER.
7336 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7337 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7338 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7340 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7342 * value.h (value_available_contents_eq): Declare.
7343 * value.c (find_first_range_overlap): New function.
7344 (value_available_contents_eq): New function.
7345 * valprint.c (val_print_array_elements): Use
7346 value_available_contents_eq.
7347 * ada-valprint.c (val_print_packed_array_elements): Use
7348 value_available_contents_eq.
7349 * jv-valprint.c (java_value_print): Use
7350 value_available_contents_eq.
7352 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7354 * target.c (target_read_live_memory): New function.
7355 (memory_xfer_live_readonly_partial): New.
7356 (memory_xfer_partial): If reading from a traceframe, fallback to
7357 reading unavailable read-only memory from read-only regions of
7359 * tracepoint.c (disconnect_tracing): Adjust.
7360 (set_current_traceframe): New, factored out from
7361 set_traceframe_number.
7362 (set_traceframe_number): Reimplement to only change the traceframe
7363 number on the GDB side.
7364 (do_restore_current_traceframe_cleanup): Adjust.
7365 (make_cleanup_restore_traceframe_number): New.
7366 (cur_traceframe_number): New global.
7367 (tfile_open): Set cur_traceframe_number to no traceframe.
7368 (set_tfile_traceframe): New function.
7369 (tfile_trace_find): If looking up a traceframe using any method
7370 other than by number, make sure the current tfile traceframe
7371 matches gdb's current traceframe. Update the current tfile
7372 traceframe if the lookup succeeded.
7373 (tfile_fetch_registers, tfile_xfer_partial)
7374 (tfile_get_trace_state_variable_value): Make sure the remote
7375 traceframe matches gdb's current traceframe.
7376 * remote.c (remote_traceframe_number): New global.
7377 (remote_open_1): Set it to -1.
7378 (set_remote_traceframe): New function.
7379 (remote_fetch_registers, remote_store_registers)
7380 (remote_xfer_memory, remote_xfer_partial)
7381 (remote_get_trace_state_variable_value): Make sure the remote
7382 traceframe matches gdb's current traceframe.
7383 (remote_trace_find): If looking up a traceframe using any method
7384 other than by number, make sure the current remote traceframe
7385 matches gdb's current traceframe. Update the current remote
7386 traceframe if the lookup succeeded.
7387 * infrun.c (fetch_inferior_event): Adjust.
7388 * tracepoint.h (set_current_traceframe): Declare.
7389 (get_traceframe_number, set_traceframe_number): Add describing
7392 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7394 Mark pieces of values as unavailable if the corresponding memory
7397 * valops.c: Include tracepoint.h.
7398 (value_fetch_lazy): Use read_value_memory.
7399 (read_value_memory): New.
7400 * value.h (read_value_memory): Declare.
7401 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7402 * exec.c (section_table_available_memory): New function.
7403 * exec.h (section_table_available_memory): Declare.
7405 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7407 * Makefile.in (SFILES): Add memrange.c.
7408 (HFILES_NO_SRCDIR): Add memrange.h.
7409 (COMMON_OBS): Add memrange.o.
7410 * memrange.c: New file.
7411 * memrange.h: New file.
7412 * tracepoint.c: Include memrange.h.
7413 (struct mem_range): Delete.
7414 (mem_range_s): Delete.
7415 (traceframe_available_memory): New function.
7416 * tracepoint.h (traceframe_available_memory): Declare.
7418 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7420 * target.h (struct traceframe_info): Forward declare.
7421 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7422 (struct target_ops) <to_traceframe_info>: New field.
7423 (target_traceframe_info): New.
7424 * target.c (update_current_target): Inherit and default
7426 * remote.c (PACKET_qXfer_traceframe_info): New.
7427 (remote_protocol_features): Register qXfer:traceframe-info:read.
7428 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7429 (remote_traceframe_info): New.
7430 (init_remote_ops): Install it.
7431 (_initialize_remote): Install "set/show remote traceframe-info"
7433 * tracepoint.h (parse_traceframe_info): Declare.
7434 * tracepoint.c (struct mem_range): New.
7435 (mem_range_s): New typedef.
7436 (struct traceframe_info): New.
7437 (traceframe_info): New global.
7438 (free_traceframe_info): New function.
7439 (clear_traceframe_info): New function.
7440 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7442 (build_traceframe_info): New function.
7443 (tfile_traceframe_info): New function.
7444 (init_tfile_ops): Install tfile_traceframe_info.
7445 (traceframe_info_start_memory, free_result): New functions.
7446 (memory_attributes, traceframe_info_elements): New globals.
7447 (parse_traceframe_info, get_traceframe_info): New functions.
7448 * features/traceframe-info.dtd: New file.
7449 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7451 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7453 Base support for <unavailable> value contents.
7455 * value.h (value_bytes_available): Declare.
7456 (mark_value_bytes_unavailable): Declare.
7457 * value.c (struct range): New struct.
7458 (range_s): New typedef.
7459 (ranges_overlap): New function.
7460 (range_lessthan): New function.
7461 (ranges_contain_p): New function.
7462 (struct value) <unavailable>: New field.
7463 (value_bytes_available): New function.
7464 (mark_value_bytes_unavailable): New function.
7465 (require_not_optimized_out): Constify parameter.
7466 (require_available): New function.
7467 (value_contents_all, value_contents): Require all bytes be
7469 (value_free): Free `unavailable'.
7470 (value_copy): Copy `unavailable'.
7471 * valprint.h (val_print_unavailable): Declare.
7472 * valprint.c (valprint_check_validity): Rename `offset' parameter
7473 to `embedded_offset'. If printing a scalar, check whether the
7474 value chunk is available.
7475 (val_print_unavailable): New.
7476 (val_print_scalar_formatted): Check whether the value is
7478 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7479 pretty-printing unavailable values.
7481 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7483 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7484 * c-typeprint.c (c_type_print_args): Update the function comment. New
7485 variable param_type, initialize it. Remove const/volatile qualifiers
7486 for language_cplus and !show_artificial. Use param_type.
7488 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7490 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7491 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7492 * symtab.h (struct symtab) <next>: Comment extension.
7494 2011-02-12 Yao Qi <yao@codesourcery.com>
7496 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7498 2011-02-11 Yao Qi <yao@codesourcery.com>
7500 * common/Makefile.in: Add copyright header.
7502 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7504 * infrun.c (proceed): Move switching out and in of tfind mode from
7506 (fetch_inferior_event): ... to here.
7508 2011-02-11 Yao Qi <yao@codesourcery.com>
7510 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7512 * configure.ac: Add common to sub dir.
7513 * configure: Regenerate.
7515 2011-02-11 Yao Qi <yao@codesourcery.com>
7519 * common/Makefile.in: New.
7520 * common/configure.ac: New.
7521 * common/aclocal.m4: New.
7522 * common/configure: Generate.
7524 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7526 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7527 side of the parenthesis.
7530 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7531 * vec.h (VEC_block_remove): Fix comment.
7533 2011-02-08 Michael Snyder <msnyder@vmware.com>
7535 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7537 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7539 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7540 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7543 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7548 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7549 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7551 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7553 * dwarf2read.c (read_subroutine_type): Set special calling
7554 convention flag for functions compiled by IBM XL C for OpenCL.
7555 * ppc-sysv-tdep.c: Include "dwarf2.h"
7556 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7558 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7559 IBM OpenCL vector types calling convention.
7560 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7561 (ppc_sysv_abi_broken_return_value): Likewise.
7562 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7563 types calling convention.
7564 (ppc64_sysv_abi_return_value): Likewise.
7565 * spu-tdep.c: Include "dwarf2.h"
7566 (spu_return_value): Implement IBM OpenCL vector types calling
7569 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7571 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7572 correct ABI for AltiVec vector arguments.
7574 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7576 * valprint.c (val_print): Extend comment.
7577 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7578 interface explanation to val_print.
7579 (ada_val_print_array): Adjust comment to current interface.
7580 (print_field_values): Adjust comment to current interface.
7581 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7582 explanation to val_print.
7583 * f-valprint.c (f_val_print): Ditto.
7584 * jv-valprint.c (java_val_print): Ditto.
7585 * m2-valprint.c (m2_val_print): Ditto.
7586 * p-valprint.c (pascal_val_print): Ditto.
7588 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7590 * breakpoint.c (parse_breakpoint_sals): Fix description.
7592 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7593 Oguz Kayral <oguzkayral@gmail.com>
7595 * python/py-inferior.c (python_on_normal_stop): New function.
7596 (python_on_resume): New function.
7597 (python_inferior_exit): New function.
7598 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7599 inferior_exit observers.
7600 * python/py-evtregistry.c: New file.
7601 * python/py-threadevent.c : New file.
7602 * python/py-event.c: New file.
7603 * python/py-evts.c: New file.
7604 * python/py-continueevent.c: New file.
7605 * python/py-bpevent.c: New file.
7606 * python/py-signalevent.c: New file.
7607 * python/py-exetiedevent.c: New file.
7608 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7609 Move struct breakpoint_object from here...
7610 * python/python-internal.h: ... to here.
7611 * python/py-event.h: New file.
7612 * python/py-events.h: New file.
7613 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7614 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7615 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7616 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7617 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7618 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7619 Add build rules for all the above.
7621 2011-02-04 Tom Tromey <tromey@redhat.com>
7623 * dwarf2read.c (dwarf2_section_empty_p): New function.
7624 (dwarf2_read_section): Use dwarf2_section_empty_p.
7625 (dwarf2_section_size): New function.
7626 (dwarf2_get_section_info): Unconditionally read section.
7627 (dwarf2_read_index): Use dwarf2_section_empty_p.
7628 (partial_read_comp_unit_head): Use dwarf2_section_size.
7629 (dwarf2_symbol_mark_computed): Likewise.
7631 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7633 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7635 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7637 * mips-linux-tdep.c: Include xml-syscall.h.
7638 (mips_linux_get_syscall_number): New function.
7639 (mips_linux_init_abi): Add calls to
7640 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7641 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7642 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7643 * syscalls/mips-n32-linux.xml: New file.
7644 * syscalls/mips-n64-linux.xml: New file.
7645 * syscalls/mips-o32-linux.xml: New file.
7647 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7649 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7650 Complain about inverted range entries.
7651 (dwarf2_record_block_ranges): Likewise.
7653 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7656 * breakpoint.c (update_watchpoint): Fix name of the
7657 update_global_location_list function.
7658 (print_one_breakpoint): Fix typo.
7659 (_initialize_breakpoint): Remove extra space in hbreak help
7661 * breakpoint.h (struct bp_location) <length>: Fix field
7664 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7666 * regcache.c (registers_changed_ptid): Don't explictly always
7667 clear `current_regcache'. Only clear current_thread_ptid and
7668 current_thread_arch when PTID matches. Only reinit the frame
7669 cache if PTID matches the current inferior_ptid. Move alloca(0)
7671 (registers_changed): ... here.
7673 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7675 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7676 starts with __stack_chk_guard as stack guard symbol.
7678 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7680 * disasm.c (compare_lines): Handle the end of sequence markers
7681 within the line table to better support disassembling over
7682 compilation unit boundaries.
7684 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7686 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7687 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7688 implementation even if no symbols are available.
7689 (thumb_analyze_prologue): Update call to skip_prologue_function.
7690 (arm_analyze_prologue): Likewise.
7692 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7694 * arm-tdep.c: Include "observer.h".
7695 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7696 (arm_exidx_data_key): New static variable.
7697 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7698 (struct arm_exidx_data): Likewise.
7699 (arm_exidx_data_free): New function.
7700 (arm_compare_exidx_entries): Likewise.
7701 (arm_obj_section_from_vma): Likewise.
7702 (arm_exidx_new_objfile): Likewise.
7703 (arm_find_exidx_entry): Likewise.
7704 (arm_exidx_fill_cache): Likewise.
7705 (arm_exidx_unwind_sniffer): Likewise.
7706 (arm_exidx_unwind): New global variable.
7707 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7708 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7709 observer. Register arm_exidx_data_key as objfile data.
7711 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7713 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7714 due to accessing uninitialized variable. Fix indentation.
7716 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7718 * c-valprint.c (c_value_print): When doing virtual base pointer
7719 adjustment, create a new value with adjusted contents rather than
7720 changing the contents of the value being printed (and getting it
7723 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7725 * xml-support.c (xml_find_attribute): New.
7726 (xinclude_start_include): Use it.
7727 * xml-support.h (xml_find_attribute): Declare.
7728 * memory-map.c (memory_map_start_memory)
7729 (memory_map_start_property): Use xml_find_attribute.
7730 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7732 * remote.c (start_thread): Use xml_find_attribute.
7733 * solib-target.c (library_list_start_segment)
7734 (library_list_start_section, library_list_start_library)
7735 (library_list_start_list): Use xml_find_attribute.
7736 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7737 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7738 (tdesc_start_field): Use xml_find_attribute.
7740 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7742 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7743 (BUILD_OCL_VTYPES): Update.
7745 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7747 * configure.ac: Work around non-GNU sed limitation when computing
7748 python version number.
7749 * configure: Regenerate.
7751 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7753 Fix debug printing of TYPE_INSTANCE.
7754 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7755 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7757 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7759 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7760 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7761 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7762 * ada-operator.inc: Rename the file to ...
7763 * ada-operator.def: ... here, wrap all the entries by macro OP.
7764 * expprint.c (op_name_standard): Remove all the entries. Include
7765 "std-operator.def" instead.
7766 * expression.h (enum exp_opcode): Include "std-operator.def" and
7767 "ada-operator.def". Move all the entries ...
7768 * std-operator.def: ... here, wrap all the entries by macro OP.
7770 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7772 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7773 * breakpoint.c (remove_jit_event_breakpoints): New function.
7774 * jit.c (jit_descriptor_addr): Delete.
7775 (registering_code): Delete.
7776 (clear_int): Delete.
7777 (jit_inferior_data): New variable.
7778 (struct jit_inferior_data): New type.
7779 (get_jit_inferior_data): New function.
7780 (jit_inferior_data_cleanup): New function.
7781 (jit_read_descriptor): Adjust.
7782 (jit_register_code): Adjust.
7783 (jit_breakpoint_re_set_internal): New function; move code here ...
7784 (jit_inferior_init): ... from here.
7785 (jit_breakpoint_re_set): Adjust.
7786 (jit_reset_inferior_data_and_breakpoints): New function.
7787 (jit_inferior_created_observer): Adjust.
7788 (jit_inferior_exit_hook): Adjust.
7789 (jit_executable_changed_observer): New function.
7790 (jit_event_handler): Adjust.
7791 (_initialize_jit): Adjust.
7793 2011-01-31 Michael Snyder <msnyder@vmware.com>
7795 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7798 2011-01-31 Tom Tromey <tromey@redhat.com>
7801 * python/python.c (execute_gdb_command): Call
7802 prevent_dont_repeat.
7803 * top.c (suppress_dont_repeat): New global.
7804 (dont_repeat): Use it.
7805 (prevent_dont_repeat): New function.
7806 * command.h (prevent_dont_repeat): Declare.
7808 2011-01-31 Tom Tromey <tromey@redhat.com>
7810 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7811 * python/py-breakpoint.c (bppy_set_silent): Use
7812 breakpoint_set_silent.
7813 (bppy_set_thread): Use breakpoint_set_thread.
7814 (bppy_set_task): Use breakpoint_set_task.
7815 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7816 (breakpoint_set_task): Declare.
7817 (make_breakpoint_silent): Remove.
7818 * breakpoint.c (breakpoint_set_silent): New function.
7819 (breakpoint_set_thread): Likewise.
7820 (breakpoint_set_task): Likewise.
7821 (make_breakpoint_silent): Remove.
7823 2011-01-31 Tom Tromey <tromey@redhat.com>
7825 * breakpoint.h (user_breakpoint_p): Declare.
7826 * breakpoint.c (user_breakpoint_p): New function.
7827 (breakpoint_1): Use it.
7828 (save_breakpoints): Likewise.
7830 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7832 * configure.ac: Add handling of Python distribution on Windows.
7833 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7834 sysconfig variables are not defined, then do not use them.
7835 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7836 instead. On Windows, return all paths using forward-slashes
7837 rather than backslashes.
7839 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7841 * configure.ac: Remove fallback behavior for building
7842 against Python. Remove tweaking of Python include path.
7843 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7844 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7845 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7846 Always restore CPPFLAGS and LIBS after linking test.
7847 * configure: Regenerated.
7848 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7849 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7850 * python/python-internal.h: Adjust includes of Python .h files.
7852 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7854 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7857 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7859 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7862 2011-01-31 Yao Qi <yao@codesourcery.com>
7864 * arm-linux-nat.c: Update calls to regcache_register_status
7865 instead of regcache_valid_p.
7866 * aix-thread.c: Likewise.
7867 * i386gnu-nat.c: Likewise.
7869 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7873 touching TYPE_FIELD_ARTIFICIAL.
7875 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7877 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7880 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7882 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7883 selected, don't try iterating over the traceframe's blocks.
7884 (tfile_has_stack): If there's no traceframe selected, then there's
7886 (tfile_has_registers): If there's no traceframe selected, then
7887 there's no registers.
7889 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7891 * target.c (memory_xfer_partial): No need to restore shadows if we
7892 haven't read anything.
7894 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7896 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7897 and val_print_scalar_formatted.
7899 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7901 * tracepoint.c (tfile_read): New.
7902 (tfile_open): Use it.
7903 (tfile_get_traceframe_address): Use it.
7904 (tfile_trace_find): Use it.
7905 (walk_blocks_callback_func): New typedef.
7906 (match_blocktype): New function.
7907 (traceframe_walk_blocks): New function.
7908 (traceframe_find_block_type): New function.
7909 (tfile_fetch_registers, tfile_xfer_partial)
7910 (tfile_get_trace_state_variable_value): Use
7911 traceframe_find_block_type and tfile_read.
7913 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7915 * remote-mips.c: Add internationalization mark ups. Remove
7916 trailing \n from already marked up strings.
7918 2011-01-26 Tom Tromey <tromey@redhat.com>
7920 * python/py-prettyprint.c (print_string_repr): Clear
7921 'addressprint' option when calling val_print_string.
7922 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7923 option when calling val_print_string.
7925 2011-01-26 Tom Tromey <tromey@redhat.com>
7927 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7929 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7931 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7932 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7933 (gdb_py_long_as_ulongest): New defines.
7934 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7935 (gdb_py_int_as_long): Declare.
7936 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7937 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7938 (valpy_long): Add comment.
7939 * python/py-utils.c (get_addr_from_python): Use
7940 gdb_py_long_as_ulongest. Handle overflow properly.
7941 (gdb_py_object_from_longest): New function.
7942 (gdb_py_object_from_ulongest): Likewise.
7943 (gdb_py_int_as_long): Likewise.
7944 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7945 * python/py-symtab.c (salpy_get_pc): Use
7946 gdb_py_long_from_ulongest.
7947 (salpy_get_line): Use PyInt_FromLong.
7948 * python/py-param.c (set_parameter_value): Use
7950 * python/py-lazy-string.c (stpy_get_address): Use
7951 gdb_py_long_from_ulongest.
7952 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7953 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7954 * python/py-breakpoint.c (bppy_set_thread): Use
7956 (bppy_set_task): Likewise.
7957 (bppy_set_ignore_count): Likewise.
7958 (bppy_set_hit_count): Likewise.
7959 * python/py-block.c (blpy_get_start): Use
7960 gdb_py_object_from_ulongest.
7961 (blpy_get_end): Likewise.
7962 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7964 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7967 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7968 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7969 equality test for objfile, initialize addr_low if needed.
7971 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7973 * tui/tui-regs.c (tui_register_format): Remove dead code.
7975 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7977 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7978 instead of print_scalar_formatted.
7979 (print_scalar_formatted): Don't handle 's' format strings here,
7980 and add an assertion that we never see such format here.
7981 * valprint.h (val_print_scalar_formatted): Declare.
7982 * valprint.c (val_print_scalar_formatted): New.
7983 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7984 instead of print_scalar_formatted.
7985 * jv-valprint.c (java_val_print): Ditto.
7986 * p-valprint.c (pascal_val_print): Ditto.
7987 * ada-valprint.c (ada_val_print_1): Ditto.
7988 * f-valprint.c (f_val_print): Ditto.
7989 * infcmd.c (registers_info): Ditto.
7990 * m2-valprint.c (m2_val_print): Ditto.
7992 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7994 * m2-valprint.c (print_unbounded_array): Pass
7995 value_contents_for_printing rather than value_contents, to
7996 m2_print_array_contents. Also pass in the value.
7998 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8000 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8001 (save_gdb_index_command): Switch to .gdb_index version 4.
8003 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8005 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8006 than frame_register, and always pass a valid value to val_print.
8008 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8010 Centralize printing "<optimized out>".
8012 * valprint.h (val_print_optimized_out): Declare.
8013 * cp-valprint.c (cp_print_value_fields): Use
8014 val_print_optimized_out.
8015 * jv-valprint.c (java_print_value_fields): Ditto.
8016 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8017 * printcmd.c (print_formatted): Ditto.
8018 * valprint.c (valprint_check_validity): Ditto.
8019 (value_check_printable): Ditto.
8020 (val_print_optimized_out): New.
8022 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8024 * infcmd.c (default_print_registers_info): Allocate values so to
8025 never pass a NULL value to val_print.
8027 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8029 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8030 boolean. Make sure to always pass a value that matches the
8031 contents buffer to callees. Preserve `address' for following
8033 * value.c (value_contents_for_printing_const): New.
8034 (value_address): Constify value argument.
8035 * value.h (value_contents_for_printing_const): Declare.
8036 (value_address): Constify value argument.
8038 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8040 * regcache.c (struct regcache_descr): Rename
8041 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8042 and sizeof_cooked_register_valid_p to
8043 sizeof_cooked_register_status.
8044 (init_regcache_descr): Adjust.
8045 (struct regcache): Rename register_valid_p field to
8047 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8048 (do_cooked_read): Adjust.
8049 (regcache_valid_p): Rename to ...
8050 (regcache_register_status): ... this. Adjust.
8051 (regcache_invalidate): Adjust.
8052 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8054 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8055 as unavailable, not valid.
8056 (regcache_dump): Adjust.
8057 * regcache.h (enum register_status): New.
8058 (regcache_register_status): Declare.
8059 (regcache_invalidate): Delete declaration.
8060 * corelow.c (get_core_registers): Adjust.
8061 * tracepoint.c (tfile_fetch_registers): Adjust.
8062 * trad-frame.c (REG_VALUE): Rename to ...
8063 (TF_REG_VALUE): ... this.
8064 (REG_UNKNOWN): Rename to ...
8065 (TF_REG_UNKNOWN): ... this.
8066 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8067 * mi/mi-main.c (register_changed_p): Adjust.
8069 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8071 * regcache.c (struct regcache_descr): Remove outdated comment.
8072 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8074 (regcache_xmalloc): Rename to ...
8075 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8076 Allocate the regcache type accordingly.
8077 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8078 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8079 cooked registers, not raw.
8080 (regcache_dup_no_passthrough): Delete.
8081 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8082 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8083 mention obsolete write_register_bytes.
8084 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8086 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8088 Stop remote_read_bytes from handling partial reads itself.
8090 * remote-fileio.c: Include target.h.
8091 (remote_fileio_write_bytes): Delete.
8092 (remote_fileio_func_open, remote_fileio_func_write)
8093 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8095 (remote_fileio_func_stat): Use target_read_memory and
8096 target_write_memory.
8097 (remote_fileio_func_gettimeofday): Use target_write_memory.
8098 (remote_fileio_func_system): Use target_read_memory.
8099 * remote.c (remote_write_bytes): Make it static.
8100 (remote_read_bytes): Don't handle partial reads here.
8101 * remote.h (remote_read_bytes): Delete declaration.
8103 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8105 Simplify XML parsing a bit.
8107 * xml-support.h (gdb_xml_parse_quick): Declare.
8108 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8109 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8111 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8112 gdb_xml_create_parser_and_cleanup_1.
8113 (gdb_xml_parse_quick): New.
8114 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8115 * osdata.c (osdata_parse): Ditto.
8116 * remote.c (remote_threads_info): Ditto.
8117 * solib-target.c (solib_target_parse_libraries): Ditto.
8118 * xml-syscall.c (syscall_parse_xml): Ditto.
8119 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8121 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8123 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8124 with remote-mips.o added to gdb_target_obs.
8125 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8127 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8129 * ada-valprint.c (val_print_packed_array_elements): Pass the
8130 correct struct value to val_print.
8131 (ada_val_print_1): Ditto.
8133 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8135 Don't lose embedded_offset in printing routines throughout.
8137 * valprint.h (val_print_array_elements): Change prototype.
8138 * valprint.c (val_print_array_elements): Add `embedded_offset'
8139 parameter, and adjust to pass it down to val_print, while passing
8140 `valaddr' or `address' unmodified. Take embedded_offset into
8141 account when checking repetitions.
8142 * c-valprint.c (c_val_print): Pass embedded_offset to
8143 val_print_array_elements instead of adjusting `valaddr' and
8145 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8146 embedded_offset to val_print_array_elements instead of adjusting
8148 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8149 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8150 val_print_array_elements and pascal_object_print_value_fields
8151 instead of adjusting `valaddr'.
8152 (pascal_object_print_value_fields): Add `offset' parameter, and
8154 (pascal_object_print_value): Add `offset' parameter, and adjust to
8156 (pascal_object_print_static_field): Use
8157 value_contents_for_printing/value_embedded_offset, rather than
8159 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8160 parameter, and adjust to use it. Use
8161 value_contents_for_printing/value_embedded_offset, rather than
8163 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8164 (ada_val_print_array): Add `offset' parameter, and adjust to use
8166 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8167 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8168 Instead work with offsets. Use
8169 value_contents_for_printing/value_embedded_offset, rather than
8170 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8171 and use value_from_pointer to extract a target pointer, rather
8172 than value_from_longest.
8173 (print_variant_part): Add `offset' parameter. Replace
8174 `outer_valaddr' parameter by a new `outer_offset' parameter.
8175 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8176 (ada_value_print): Use
8177 value_contents_for_printing/value_embedded_offset, rather than
8179 (print_record): Add `offset' parameter, and adjust to pass it
8181 (print_field_values): Add `offset' parameter. Replace
8182 `outer_valaddr' parameter by a new `outer_offset' parameter.
8183 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8184 Use value_contents_for_printing/value_embedded_offset, rather than
8186 * d-valprint.c (dynamic_array_type): Use
8187 value_contents_for_printing/value_embedded_offset, rather than
8189 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8190 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8191 (java_print_value_fields): Take `offset' into account. Don't
8192 re-adjust `valaddr'. Instead pass down adjusted offsets.
8193 (java_val_print): Take `embedded_offset' into account. Pass it to
8194 java_print_value_fields.
8195 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8196 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8197 down adjusted offsets.
8198 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8199 (f_val_print): Take `embedded_offset' into account.
8201 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8203 * inflow.c: Include "gdbcmd.h".
8204 (interactive_mode): New static global, moved here from top.c.
8205 (show_interactive_mode): New function, moved here from top.c.
8206 use gdb_has_a_terminal instead of input_from_terminal_p to
8207 determine the current mode.
8208 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8210 (_initialize_inflow): Add the "set/show interactive-mode"
8211 commands. Moved here from top.c, after having adjusted slightly
8213 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8215 (input_from_terminal_p): Remove handling of "interactive-mode"
8216 setting, moved to infow.c.
8217 (init_main): Remove creation of the "set/show interactive-mode"
8218 commands, moved to inflow.c.
8220 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8222 * NEWS: Add entry for native ia64-hpux support.
8224 2011-01-19 Tom Tromey <tromey@redhat.com>
8227 * thread.c (free_thread): Free 'name'.
8228 (print_thread_info): Emit thread name. Change CLI output.
8229 (thread_name_command): New function.
8230 (do_captured_thread_select): Emit newline.
8231 (_initialize_thread): Register 'thread name' command.
8232 * target.h (struct target_ops) <to_thread_name>: New field.
8233 (target_thread_name): New macro.
8234 * target.c (update_current_target): Handle to_thread_name.
8235 * python/py-infthread.c (thpy_get_name): New function.
8236 (thpy_set_name): Likewise.
8237 (thread_object_getset): Add "name".
8238 * linux-nat.c (linux_nat_thread_name): New function.
8239 (linux_nat_add_target): Set to_thread_name.
8240 * gdbthread.h (struct thread_info) <name>: New field.
8242 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8244 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8245 (ada_val_print_1): Likewise.
8247 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8249 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8250 upper limit address is not greater than the function end address
8251 when the upper limit could not be computed using the debugging
8254 2011-01-17 Tom Tromey <tromey@redhat.com>
8256 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8258 * utils.c: Include gdb_regex.h.
8259 (do_regfree_cleanup): New function.
8260 (make_regfree_cleanup): Likewise.
8261 (get_regcomp_error): Likewise.
8262 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8264 2011-01-17 Tom Tromey <tromey@redhat.com>
8266 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8269 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8271 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8272 for internal variables.
8273 (last_was_structop): New static variable.
8274 (COMPLETE): New token.
8275 (field_exp): New rule to group all '.' suffix handling.
8276 Add mark_struct_expression calls when approriate to be able
8277 to correctly find fields for completion.
8278 (yylex): Adapt to handle field completion and set INTVAR when
8281 2011-01-14 Yao Qi <yao@codesourcery.com>
8283 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8284 save_reggroup, restore_reggroup and all_reggroup.
8286 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8288 * ada-valprint. (ada_printchar): Use the correct type length
8289 in call to ada_emit_char.
8290 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8292 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8294 * solib-som.h (hpux_major_release): Declare variable here.
8295 * solib-som.c: Remove <sys/utsname.h> header.
8296 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8297 (hpux_major_release): Make global, change default value to
8298 DEFAULT_HPUX_MAJOR_RELEASE.
8299 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8300 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8301 Add "solib-som.h" header.
8302 (set_hpux_major_release): New function.
8303 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8305 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8307 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8309 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8311 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8312 new-line at end of warning message.
8313 (ia64_hpux_store_register): Remove trailing new-line at end of
8315 * ia64-hpux-tdep.c: Rephrase comment.
8316 * solib-ia64-hpux.c (struct dld_info): Change type of field
8317 dld_flags from "long long" to ULONGEST.
8319 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8321 * target.h (deprecated_child_ops): Delete declaration.
8322 * target.c (deprecated_child_ops): Delete definition.
8324 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8326 * Makefile.in (hpux-thread.o): Delete rule.
8327 * configure.ac: Don't check for HPUX DCE threads support.
8328 * configure, config.in: Regenerate.
8329 * hppa-hpux-nat.c (child_suppress_run): Delete.
8330 (hppa_hpux_child_can_run): Delete.
8331 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8332 * hpux-thread.c: Delete.
8334 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8336 * hpux-thread.c (hpux_pid_to_str): Delete.
8338 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8340 * ada-valprint.c (ada_emit_char): Remove strange code.
8341 Check that c is <= UCHAR_MAX before passing it to isascii.
8342 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8344 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8346 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8347 to the case where instream is stdin.
8349 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8351 * ia64-tdep.h (struct regcache): Forward declare.
8352 (struct ia64_infcall_ops): New struct type.
8353 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8355 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8356 Renames ia64_find_global_pointer.
8357 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8358 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8359 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8361 (ia64_infcall_ops): New static global constant.
8362 (ia64_gdbarch_init): Set tdep->infcall_ops.
8363 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8364 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8365 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8366 (ia64_hpux_dummy_code): New static global constant.
8367 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8368 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8369 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8371 (ia64_hpux_infcall_ops): New static global constant.
8372 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8373 for inferior function calls to work properly on ia64-hpux.
8375 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8377 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8378 * ia64-tdep.h (struct frame_info): forward declaration.
8379 (struct gdbarch_tdep): Add field size_of_register_frame.
8380 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8381 to determine the size of the register frame.
8382 (ia64_size_of_register_frame): New function.
8383 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8384 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8385 (IA64_HPUX_UREG_REASON): New macro.
8386 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8388 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8389 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8390 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8393 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8395 Add support for ia64-hpux.
8396 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8397 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8399 * configure.host: Add handling for ia64-hpux hosts. Add associated
8401 * configure.tgt: Add handling for ia64-hpux targets.
8402 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8403 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8404 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8406 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8408 [ttrace] Compute thread list immediately after attach.
8409 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8411 (inf_ttrace_attach): Use it.
8413 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8415 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8416 if we could not determine the frame's function address. Instead,
8417 use the frame's PC, and then continue.
8419 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8421 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8422 not already defined.
8424 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8426 * ia64-tdep.c (ia64_struct_type_p): New function.
8427 (ia64_extract_return_value): Handle integral values that are
8428 less than 8 bytes long.
8429 (ia64_push_dummy_call): Likewise.
8431 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8433 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8434 floatformat_ia64_ext.
8435 (floatformat_ia64_ext_big): New static const.
8436 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8438 2011-01-12 Tom Tromey <tromey@redhat.com>
8440 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8442 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8443 (mi_cmd_thread_list_ids): Likewise.
8444 (mi_cmd_data_list_changed_registers): Likewise.
8445 (mi_cmd_data_list_register_values): Likewise.
8446 (mi_cmd_data_write_register_values): Likewise.
8447 (mi_cmd_data_evaluate_expression): Likewise.
8448 (mi_cmd_data_read_memory): Likewise.
8449 (mi_cmd_data_read_memory_bytes): Likewise.
8450 (mi_cmd_data_write_memory): Likewise.
8451 (mi_cmd_enable_timings): Likewise.
8452 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8453 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8454 (mi_cmd_var_delete): Likewise.
8455 (mi_cmd_var_set_format): Likewise.
8456 (mi_cmd_var_show_format): Likewise.
8457 (mi_cmd_var_info_num_children): Likewise.
8458 (mi_cmd_var_list_children): Likewise.
8459 (mi_cmd_var_info_type): Likewise.
8460 (mi_cmd_var_info_expression): Likewise.
8461 (mi_cmd_var_show_attributes): Likewise.
8462 (mi_cmd_var_assign): Likewise.
8463 (mi_cmd_var_update): Likewise.
8464 (mi_cmd_enable_pretty_printing): Likewise.
8465 (mi_cmd_var_set_update_range): Likewise.
8466 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8468 (mi_cmd_target_file_put): Likewise.
8469 (mi_cmd_target_file_delete): Likewise.
8470 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8472 (mi_cmd_stack_info_depth): Likewise.
8473 (mi_cmd_stack_list_locals): Likewise.
8474 (mi_cmd_stack_list_args): Likewise.
8475 (mi_cmd_stack_select_frame): Likewise.
8476 (mi_cmd_stack_select_frame): Likewise.
8477 (mi_cmd_stack_info_frame): Likewise.
8478 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8480 (mi_cmd_file_list_exec_source_files): Likewise.
8481 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8482 (mi_cmd_env_cd): Likewise.
8483 (mi_cmd_env_path): Likewise.
8484 (mi_cmd_env_dir): Likewise.
8485 (mi_cmd_inferior_tty_show): Likewise.
8486 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8487 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8488 (mi_cmd_break_watch): Likewise.
8490 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8492 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8493 (ppc_linux_insert_hw_breakpoint): Likewise.
8494 (ppc_linux_remove_hw_breakpoint): Likewise.
8495 (ppc_linux_insert_watchpoint): Likewise.
8497 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8498 Jan Kratochvil <jan.kratochvil@redhat.com>
8500 PR fortran/11104 and DWARF unbound arrays detection.
8501 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8502 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8503 unspecified upper bound.
8504 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8505 variables array_size_array, tmp_type and offset_item. New variable
8506 array. Remove call to f77_get_upperbound. New variables array_type
8507 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8508 the final call to deprecated_set_value_type.
8510 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8512 Make value allocations more lazy.
8513 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8514 instead of allocate_value and set_value_lazy when possible.
8515 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8516 instead of allocate_value and set_value_lazy.
8517 * findvar.c (value_of_register_lazy): Likewise.
8518 (read_var_value): Remove V preallocation, call just check_typedef in
8519 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8520 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8521 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8522 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8523 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8524 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8525 the end, remove set_value_lazy there.
8526 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8527 instead of allocate_value and set_value_lazy when possible.
8528 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8529 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8530 of allocate_value and set_value_lazy.
8531 (value_from_contents_and_address): Use allocate_value_lazy instead of
8532 allocate_value and set_value_lazy when possible.
8534 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8536 * disasm.c (dump_insns): Support dumping opcodes for MI.
8537 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8538 dumping of instruction opcodes.
8540 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8542 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8545 2011-01-11 Tom Tromey <tromey@redhat.com>
8547 * thread.c (do_captured_thread_select): Emit newline before
8550 2011-01-11 Michael Snyder <msnyder@vmware.com>
8552 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8553 * score-tdep.c: Ditto.
8554 * score-tdep.h: Ditto.
8555 * ser-base.c: Ditto.
8556 * ser-go32.c: Ditto.
8559 * ser-mingw.c: Ditto.
8560 * ser-pipe.c: Ditto.
8562 * ser-unix.c: Ditto.
8563 * sh64-tdep.c: Ditto.
8564 * shnbsd-nat.c: Ditto.
8568 * solib-darwin.c: Ditto.
8569 * solib-frv.c: Ditto.
8571 * solib-irix.c: Ditto.
8572 * solib-osf.c: Ditto.
8573 * solib-pa64.c: Ditto.
8574 * solib-som.c: Ditto.
8575 * solib-spu.c: Ditto.
8576 * solib-sunos.c: Ditto.
8577 * solib-svr4.c: Ditto.
8579 * sol-thread.c: Ditto.
8583 * sparc64-linux-tdep.c: Ditto.
8584 * sparc64-tdep.c: Ditto.
8585 * sparc-linux-nat.c: Ditto.
8586 * sparc-linux-tdep.c: Ditto.
8587 * sparc-sol2-nat.c: Ditto.
8588 * sparc-sol2-tdep.c: Ditto.
8589 * sparc-tdep.c: Ditto.
8590 * sparc-tdep.h: Ditto.
8591 * spu-tdep.c: Ditto.
8592 * stabsread.c: Ditto.
8593 * stabsread.h: Ditto.
8601 * target-descriptions.c: Ditto.
8602 * target-descriptions.h: Ditto.
8604 * target-memory.c: Ditto.
8605 * terminal.h: Ditto.
8608 * tracepoint.c: Ditto.
8609 * tracepoint.h: Ditto.
8610 * trad-frame.h: Ditto.
8611 * typeprint.c: Ditto.
8613 2011-01-11 Michael Snyder <msnyder@vmware.com>
8615 * ui-file.c: Comment cleanup, mostly periods and spaces.
8620 * v850-tdep.c: Ditto.
8621 * valarith.c: Ditto.
8623 * valprint.c: Ditto.
8624 * valprint.h: Ditto.
8629 * vax-tdep.c: Ditto.
8633 * windows-nat.c: Ditto.
8634 * windows-tdep.c: Ditto.
8635 * xcoffread.c: Ditto.
8636 * xcoffsolib.c: Ditto.
8637 * xml-support.c: Ditto.
8638 * xstormy16-tdep.c: Ditto.
8639 * xtensa-tdep.c: Ditto.
8640 * xtensa-tdep.h: Ditto.
8642 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8644 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8645 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8647 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8648 Thiago Jung Bauermann <bauerman@br.ibm.com>
8650 Implement support for PowerPC BookE ranged watchpoints.
8652 (struct breakpoint_ops) <resources_needed>: New method.
8653 Initialize to NULL in all existing breakpoint_ops instances.
8654 (struct breakpoint) <exact>: New field.
8655 (target_exact_watchpoints): Declare external global.
8656 * breakpoint.c (target_exact_watchpoints): New global flag.
8657 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8658 b->enable_state to bp_enabled before calling
8659 hw_watchpoint_used_count.
8660 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8661 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8663 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8664 if the watchpoint is exact.
8665 (resources_needed_watchpoint): New function.
8666 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8667 (watch_command_1): Set b->exact if the user asked for an exact
8668 watchpoint and one can be set.
8669 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8670 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8671 the user asks for an exact watchpoint and one can be set. Return
8672 number of needed debug registers to watch the expression.
8673 * gdbtypes.c (is_scalar_type): New function, based on
8674 valprint.c:scalar_type_p.
8675 (is_scalar_type_recursive): New function.
8676 * gdbtypes.h (is_scalar_type_recursive): Declare.
8677 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8678 handle regions when ranged watchpoints are available.
8679 (create_watchpoint_request): New function.
8680 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8681 create_watchpoint_request.
8682 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8683 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8684 `set powerpc' and `show powerpc' commands.
8685 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8686 Mention documentation comment in the target macro.
8687 (target_region_ok_for_hw_watchpoint): Document return value.
8689 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8691 * breakpoint.c (update_watchpoint): Decide on using a software or
8692 hardware watchpoint after the bp_locations are created.
8694 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8696 Convert hardware watchpoints to use breakpoint_ops.
8697 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8698 <insert_location>: ... this. Return int instead of void.
8699 Accept pointer to struct bp_location instead of pointer to
8700 struct breakpoint. Adapt all implementations.
8701 (breakpoint_ops) <remove>: Rename to...
8702 <remove_location>: ... this. Accept pointer to struct bp_location
8703 instead of pointer to struct breakpoint. Adapt all implementations.
8704 * breakpoint.c (insert_catchpoint): Delete function.
8705 (insert_bp_location): Call the watchpoint or catchpoint's
8706 breakpoint_ops.insert method.
8707 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8708 breakpoint_ops.remove method.
8709 (insert_watchpoint, remove_watchpoint): New functions.
8710 (watchpoint_breakpoint_ops): New structure.
8711 (watch_command_1): Initialize the OPS field.
8712 * inf-child.c (inf_child_insert_fork_catchpoint)
8713 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8714 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8715 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8717 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8718 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8719 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8720 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8721 * target.c (update_current_target): Change default implementation of
8722 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8723 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8724 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8725 to_set_syscall_catchpoint to return_one.
8726 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8727 (debug_to_insert_exec_catchpoint): Report return value.
8728 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8729 (to_insert_exec_catchpoint): Change declaration to return int instead
8732 2011-01-11 Michael Snyder <msnyder@vmware.com>
8734 * arm-tdep.c: Internationalization.
8737 * fork-child.c: Ditto.
8738 * nto-procfs.c: Ditto.
8739 * ppc-sysv-tdep.c: Ditto.
8741 * remote-mips.c: Ditto.
8743 * rs6000-nat.c: Ditto.
8744 * rs6000-tdep.c: Ditto.
8748 * xml-support.c: Ditto.
8749 * mi/mi-cmd-break.c: Ditto.
8750 * mi/mi-cmd-var.c: Ditto.
8751 * mi/mi-interp.c: Ditto.
8752 * mi/mi-main.c: Ditto.
8754 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8756 * remote-sim.c (gdbsim_store_register): Update API to
8757 sim_store_register to check more error conditions.
8759 2011-01-10 Michael Snyder <msnyder@vmware.com>
8761 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8762 * nto-tdep.c: Ditto.
8763 * nto-tdep.h: Ditto.
8764 * objc-exp.y: Ditto.
8765 * objc-lang.c: Ditto.
8766 * objfiles.c: Ditto.
8767 * objfiles.h: Ditto.
8768 * observer.c: Ditto.
8769 * opencl-lang.c: Ditto.
8772 * parser-defs.h: Ditto.
8775 * posix-hdep.c: Ditto.
8776 * ppcbug-rom.c: Ditto.
8777 * ppc-linux-nat.c: Ditto.
8778 * ppc-linux-tdep.c: Ditto.
8779 * ppc-linux-tdep.h: Ditto.
8780 * ppcnbsd-tdep.c: Ditto.
8781 * ppcobsd-tdep.c: Ditto.
8782 * ppcobsd-tdep.h: Ditto.
8783 * ppc-sysv-tdep.c: Ditto.
8784 * ppc-tdep.h: Ditto.
8785 * printcmd.c: Ditto.
8786 * proc-abi.c: Ditto.
8787 * proc-flags.c: Ditto.
8789 * proc-utils.h: Ditto.
8790 * progspace.h: Ditto.
8791 * prologue-value.c: Ditto.
8792 * prologue-value.h: Ditto.
8793 * psympriv.h: Ditto.
8795 * p-typeprint.c: Ditto.
8796 * p-valprint.c: Ditto.
8797 * ravenscar-sparc-thread.c: Ditto.
8798 * ravenscar-thread.c: Ditto.
8799 * ravenscar-thread.h: Ditto.
8801 * regcache.c: Ditto.
8802 * regcache.h: Ditto.
8804 * remote-fileio.c: Ditto.
8805 * remote-fileio.h: Ditto.
8807 * remote-m32r-sdi.c: Ditto.
8808 * remote-mips.c: Ditto.
8809 * remote-sim.c: Ditto.
8810 * rs6000-aix-tdep.c: Ditto.
8811 * rs6000-nat.c: Ditto.
8812 * rs6000-tdep.c: Ditto.
8814 2011-01-10 Michael Snyder <msnyder@vmware.com>
8816 * charset.c (validate): Internationalization.
8817 * coffread.c (read_one_sym): Ditto.
8818 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8819 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8820 * inflow.c (new_tty): Ditto.
8821 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8822 * m32c-tdep.c (m32c_return_value): Ditto.
8823 * mep-tdep.c (mep_store_return_value): Ditto.
8824 * score-tdep.c (score7_fetch_insn): Ditto.
8825 * ser-mingw.c (pipe_windows_open): Ditto.
8826 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8827 * spu-tdep.c (spu_register_type): Ditto.
8828 * tracepoint.c (trace_find_command): Ditto.
8829 * valarith.c (value_pos): Ditto.
8831 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8833 * ada-valprint.c (printstr): Minor comment reformatting.
8835 2011-01-08 Michael Snyder <msnyder@vmware.com>
8837 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8840 2011-01-08 Michael Snyder <msnyder@vmware.com>
8842 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8843 * hppa-hpux-tdep.c: Ditto.
8844 * hppa-linux-nat.c: Ditto.
8845 * hppa-linux-tdep.c: Ditto.
8846 * hppanbsd-tdep.c: Ditto.
8847 * hppa-tdep.c: Ditto.
8848 * hppa-tdep.h: Ditto.
8849 * hpux-thread.c: Ditto.
8850 * i386-cygwin-tdep.c: Ditto.
8851 * i386-darwin-nat.c: Ditto.
8852 * i386gnu-nat.c: Ditto.
8853 * i386-linux-nat.c: Ditto.
8854 * i386-linux-tdep.c: Ditto.
8855 * i386-nat.c: Ditto.
8856 * i386-nat.h: Ditto.
8857 * i386nbsd-tdep.c: Ditto.
8858 * i386-sol2-nat.c: Ditto.
8859 * i386-stub.c: Ditto.
8860 * i386-tdep.c: Ditto.
8861 * i386-tdep.h: Ditto.
8862 * i387-tdep.c: Ditto.
8863 * ia64-linux-nat.c: Ditto.
8864 * ia64-linux-tdep.c: Ditto.
8865 * ia64-tdep.c: Ditto.
8869 * inferior.c: Ditto.
8870 * inferior.h: Ditto.
8876 * iq2000-tdep.c: Ditto.
8877 * irix5-nat.c: Ditto.
8883 * jv-typeprint.c: Ditto.
8884 * jv-valprint.c: Ditto.
8885 * language.c: Ditto.
8886 * language.h: Ditto.
8887 * linespec.c: Ditto.
8888 * linux-fork.c: Ditto.
8889 * linux-nat.c: Ditto.
8890 * linux-thread-db.c: Ditto.
8891 * lm32-tdep.c: Ditto.
8893 2011-01-08 Michael Snyder <msnyder@vmware.com>
8895 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8897 * m2-typeprint.c: Ditto.
8898 * m2-valprint.c: Ditto.
8899 * m32c-tdep.c: Ditto.
8900 * m32r-linux-nat.c: Ditto.
8901 * m32r-rom.c: Ditto.
8902 * m32r-tdep.c: Ditto.
8903 * m32r-tdep.h: Ditto.
8904 * m68hc11-tdep.c: Ditto.
8905 * m58klinux-nat.c: Ditto.
8906 * m68k-tdep.c: Ditto.
8907 * m88k-tdep.c: Ditto.
8908 * m88k-tdep.h: Ditto.
8909 * machoread.c: Ditto.
8910 * macrocmd.c: Ditto.
8911 * macroexp.c: Ditto.
8912 * macrotab.c: Ditto.
8915 * mdebugread.c: Ditto.
8916 * mdebugread.h: Ditto.
8919 * memory-map.h: Ditto.
8920 * mep-tdep.c: Ditto.
8921 * microblaze-rom.c: Ditto.
8922 * microblaze-tdep.c: Ditto.
8924 * mips-irix-tdep.c: Ditto.
8925 * mips-linux-nat.c: Ditto.
8926 * mips-linux-tdep.c: Ditto.
8927 * mips-linux-tdep.h: Ditto.
8928 * mipsnbsd-nat.c: Ditto.
8929 * mipsnbsd-tdep.c: Ditto.
8930 * mipsread.c: Ditto.
8931 * mips-tdep.c: Ditto.
8932 * mips-tdep.h: Ditto.
8933 * mn10300-linux-tdep.c: Ditto.
8934 * mn10300-tdep.c: Ditto.
8935 * mn10300-tdep.h: Ditto.
8938 * moxie-tdep.c: Ditto.
8939 * moxie-tdep.h: Ditto.
8942 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8944 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8946 2011-01-08 Robert Millan <rmh@gnu.org>
8948 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8950 2011-01-07 Michael Snyder <msnyder@vmware.com>
8952 * charset.c (_initialize_charset): Fix typo in string.
8954 2011-01-07 Michael Snyder <msnyder@vmware.com>
8956 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8958 * tui/tui-layout.c (tui_set_layout_for_display_command):
8959 Split line so that operator goes to beginning of line.
8960 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8961 assignment out of if statement.
8963 2011-01-07 Michael Snyder <msnyder@vmware.com>
8965 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8966 * ada-lang.h: Ditto.
8967 * ada-tasks.c: Ditto.
8968 * ada-valprint.c: Ditto.
8969 * aix-threads.c: Ditto.
8970 * alpha-linux-nat.c: Ditto.
8971 * alpha-linux-tdep.c: Ditto.
8972 * alpha-mdebug-tdep.c: Ditto.
8973 * alpha-nat.c: Ditto.
8974 * alpha-osf1-tdep.c: Ditto.
8975 * alpha-tdep.c: Ditto.
8976 * alphabsd-nat.c: Ditto.
8977 * alphabsd-tdep.c: Ditto.
8978 * amd64-darwin-tdep.c: Ditto.
8979 * amd64-linux-nat.c: Ditto.
8980 * amd64-linux-tdep.c: Ditto.
8981 * amd64-sol2-tdep.c: Ditto.
8982 * amd64-tdep.c: Ditto.
8983 * amd64-fbsd-tdep.c: Ditto.
8984 * amd64-nbsd-tdep.c: Ditto.
8985 * amd64-obsd-tdep.c: Ditto.
8986 * amd64-linux-nat.c: Ditto.
8987 * amd64-linux-tdep.c: Ditto.
8988 * arm-tdep.c: Ditto.
8989 * arm-tdep.h: Ditto.
8990 * armnbsd-nat.c: Ditto.
8991 * avr-tdep.c: Ditto.
8992 * bfin-tdep.c: Ditto.
8994 * c-typeprintc: Ditto.
8995 * c-valprint.c: Ditto.
8996 * coff-pe-read.h: Ditto.
8997 * coffreead.c: Ditto.
8998 * cris-tdep.c: Ditto.
9000 * darwin-nat-info.c: Ditto.
9001 * darwin-nat.c: Ditto.
9002 * dbug-rom.c: Ditto.
9006 * dec-thread.c: Ditto.
9008 * demangle.c: Ditto.
9009 * dicos-tdep.c: Ditto.
9010 * dictionary.c: Ditto.
9011 * dictionary.h: Ditto.
9012 * dink32-rom.c: Ditto.
9014 * doublest.c: Ditto.
9016 * dummy-frame.c: Ditto.
9017 * dwarf2-frame.c: Ditto.
9018 * dwarf2expr.c: Ditto.
9019 * dwarf2loc.c: Ditto.
9020 * dwarf2read.c: Ditto.
9024 * event-top.h: Ditto.
9025 * exceptions.c: Ditto.
9026 * exceptions.h: Ditto.
9028 * expprint.c: Ditto.
9029 * expression.h: Ditto.
9033 * f-typeprint.c: Ditto.
9034 * f-valprint.c: Ditto.
9035 * fbsd-nat.c: Ditto.
9037 * fork-child.c: Ditto.
9040 * frv-linux-tdep.c: Ditto.
9041 * frv-tdep.c: Ditto.
9043 * gdb-stabs.h: Ditto.
9044 * gdb_assert.h: Ditto.
9045 * gdb_string.h: Ditto.
9046 * gdb_thread_db.h: Ditto.
9047 * gdb_wait.h: Ditto.
9048 * gdbarch.sh: Ditto.
9050 * gdbthread.h: Ditto.
9051 * gdbtypes.c: Ditto.
9052 * gdbtypes.h: Ditto.
9055 * gnu-v2-abi.c: Ditto.
9056 * gnu-v3-abi.c: Ditto.
9057 * go32-nat.c: Ditto.
9058 * gdbarch.c: Regenerate.
9059 * gdbarch.h: Regenerate.
9061 2011-01-07 Michael Snyder <msnyder@vmware.com>
9063 * ax-gdb.c: Adjust some long output strings.
9064 * breakpoint.c: Ditto.
9069 * linux-nat.c: Ditto.
9070 * solib-pa64.c: Ditto.
9071 * solib-som.c: Ditto.
9073 2011-01-06 Tom Tromey <tromey@redhat.com>
9077 * python/python.c (GdbMethods): Add "newest_frame" method.
9078 * python/python-internal.h (gdbpy_newest_frame): Declare.
9079 * python/py-frame.c (gdbpy_newest_frame): New function.
9081 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9083 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9084 * jit.c (jit_debug): New variable.
9085 (show_jit_debug): New function.
9086 (struct target_buffer): Use ULONGEST.
9087 (bfd_open_from_target_memory): Likewise.
9088 (jit_register_code, jit_inferior_init): Add debug output.
9089 (_initialize_jit): Register "debug jit" command.
9091 2011-01-06 Tom Tromey <tromey@redhat.com>
9093 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9094 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9097 2011-01-06 Tom Tromey <tromey@redhat.com>
9099 * python/py-frame.c (frapy_block): Use get_frame_block.
9101 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9103 Do not stop on SIGPRIO signals by default
9104 * infrun.c (_initialize_infrun): Unset signal_stop and
9105 signal_print for TARGET_SIGNAL_PRIO.
9107 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9109 * ada-tasks.c: Fix style violation in comment.
9111 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9113 * linespec.c (decode_compound, find_method): Remove trailing \n
9114 at end of error string.
9115 * solib-irix.c (irix_current_sos): Likewise.
9116 * varobj.c (uninstall_variable): Likewise.
9118 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9120 * copyright.py: New script.
9121 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9122 Launch emacs without exec'ing. Call copyright.py afterwards.
9124 2011-01-05 Michael Snyder <msnyder@vmware.com>
9126 * addrmap.c: Shorten lines of >= 80 columns.
9127 * arch-utils.c: Ditto.
9128 * arch-utils.h: Ditto.
9130 * ax-general.c: Ditto.
9132 * blockframe.c: Ditto.
9133 * breakpoint.c: Ditto.
9134 * buildsym.c: Ditto.
9136 * c-typeprint.c: Ditto.
9138 * coffread.c: Ditto.
9142 * cp-namespace.c: Ditto.
9143 * cp-support.c: Ditto.
9144 * dbug-rom.c: Ditto.
9149 * dictionary.c: Ditto.
9151 * doublest.c: Ditto.
9152 * dwarf2-frame.c: Ditto.
9153 * dwarf2expr.c: Ditto.
9154 * dwarf2loc.c: Ditto.
9155 * dwarf2read.c: Ditto.
9158 * event-loop.c: Ditto.
9159 * event-loop.h: Ditto.
9160 * exceptions.h: Ditto.
9162 * expprint.c: Ditto.
9163 * expression.h: Ditto.
9165 * f-valprint.c: Ditto.
9167 * frame-base.c: Ditto.
9168 * frame-unwind.c: Ditto.
9169 * frame-unwind.h: Ditto.
9173 * gdb-stabs.h: Ditto.
9174 * gdb_assert.h: Ditto.
9175 * gdb_dirent.h: Ditto.
9176 * gdb_obstack.h: Ditto.
9178 * gdbtypes.c: Ditto.
9179 * gdbtypes.h: Ditto.
9180 * inf-ttrace.c: Ditto.
9185 * inline-frame.h: Ditto.
9186 * language.c: Ditto.
9187 * language.h: Ditto.
9188 * libunwind-frame.c: Ditto.
9189 * libunwind-frame.h: Ditto.
9190 * linespec.c: Ditto.
9191 * linux-nat.c: Ditto.
9192 * linux-nat.h: Ditto.
9193 * linux-thread-db.c: Ditto.
9194 * machoread.c: Ditto.
9195 * macroexp.c: Ditto.
9196 * macrotab.c: Ditto.
9199 * mdebugread.c: Ditto.
9204 * objfiles.c: Ditto.
9205 * objfiles.h: Ditto.
9207 * p-typeprint.c: Ditto.
9208 * p-valprint.c: Ditto.
9210 * printcmd.c: Ditto.
9211 * proc-events.c: Ditto.
9213 * progspace.c: Ditto.
9214 * progspace.h: Ditto.
9215 * psympriv.h: Ditto.
9218 * regcache.c: Ditto.
9219 * regcache.h: Ditto.
9220 * remote-fileio.c: Ditto.
9222 * ser-mingw.c: Ditto.
9224 * ser-unix.c: Ditto.
9227 * solib-frv.c: Ditto.
9228 * solib-irix.c: Ditto.
9229 * solib-osf.c: Ditto.
9230 * solib-pa64.c: Ditto.
9231 * solib-som.c: Ditto.
9232 * solib-sunos.c: Ditto.
9233 * solib-svr4.c: Ditto.
9234 * solib-target.c: Ditto.
9238 * stabsread.c: Ditto.
9239 * stabsread.c: Ditto.
9242 * symfile-mem.c: Ditto.
9248 * target-descriptions.c: Ditto.
9249 * target-memory.c: Ditto.
9252 * terminal.h: Ditto.
9255 * tracepoint.c: Ditto.
9256 * tracepoint.h: Ditto.
9260 * user-regs.c: Ditto.
9261 * user-regs.h: Ditto.
9263 * valarith.c: Ditto.
9265 * valprint.c: Ditto.
9266 * valprint.h: Ditto.
9271 * xcoffread.c: Ditto.
9272 * xcoffsolib.c: Ditto.
9273 * xcoffsolib.h: Ditto.
9274 * xml-syscall.c: Ditto.
9275 * xml-tdesc.c: Ditto.
9277 2011-01-05 Michael Snyder <msnyder@vmware.com>
9279 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9280 * cli/cli-decode.c: Ditto.
9281 * cli/cli-dump.c: Ditto.
9282 * cli/cli-logging.c: Ditto.
9283 * cli/cli-script.c: Ditto.
9284 * cli/cli-setshow.c: Ditto.
9285 * common/signals.c: Ditto.
9286 * mi/mi-cmd-break.c: Ditto.
9287 * mi/mi-cmd-disas.c: Ditto.
9288 * mi/mi-cmd-stack.c: Ditto.
9289 * mi/mi-cmd-var.c: Ditto.
9290 * mi/mi-cmds.c: Ditto.
9291 * mi/mi-common.h: Ditto.
9292 * mi/mi-console.c: Ditto.
9293 * mi/mi-interp.c: Ditto.
9294 * mi/mi-main.c: Ditto.
9295 * osf-share/cma_attr.c: Ditto.
9296 * osf-share/cma_deb_core.h: Ditto.
9297 * osf-share/cma_debug_client.h: Ditto.
9298 * osf-share/cma_handle.h: Ditto.
9299 * osf-share/cma_mutex.h: Ditto.
9300 * osf-share/cma_stack_int.h: Ditto.
9301 * osf-share/cma_tcb_defs.h: Ditto.
9302 * python/py-auto-load.c: Ditto.
9303 * python/py-breakpoint.c: Ditto.
9304 * python/py-cmd.c: Ditto.
9305 * python/py-frame.c: Ditto.
9306 * python/py-objfile.c: Ditto.
9307 * python/py-param.c: Ditto.
9308 * python/py-progspace.c: Ditto.
9309 * python/py-symbol.c: Ditto.
9310 * python/py-value.c: Ditto.
9311 * python/python-internal.h: Ditto.
9312 * python/python.c: Ditto.
9313 * tui/tui-data.c: Ditto.
9314 * tui/tui-disasm.c: Ditto.
9315 * tui/tui-hooks.c: Ditto.
9316 * tui/tui-io.c: Ditto.
9317 * tui/tui-layout.c: Ditto.
9318 * tui/tui-regs.c: Ditto.
9319 * tui/tui-source.c: Ditto.
9320 * tui/tui-stack.c: Ditto.
9321 * tui/tui-win.c: Ditto.
9322 * tui/tui-windata.c: Ditto.
9323 * tui/tui-winsource.c: Ditto.
9325 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9327 * configure.ac, gdb.1: Copyright year update.
9329 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9332 this_pc_in_block, morestack_msym and morestack_name. Check for
9333 "__morestack" minimal symbol there.
9335 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9337 * symfile.c (find_sym_fns): Add call to dont_repeat.
9339 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9341 Copyright year update in most files (performed by copyright.sh).
9343 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9345 * top.c (print_gdb_version): Update copyright year in version output.
9347 For older changes see ChangeLog-2010.
9353 version-control: never