1 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3 * MAINTAINERS (Right After Approval): Add myself to the list
5 2011-09-14 Pedro Alves <pedro@codesourcery.com>
7 * infrun.c (prepare_for_detach, wait_for_inferior)
8 (fetch_inferior_event): Don't flush the register cache.
9 * remote.c (struct stop_reply) <regcache>: Add comment.
11 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Remove excessive DWARF expressions memory duplication.
14 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
16 (indirect_pieced_value): Remove variable result. Remove variable
17 back_to and its use for baton.data.
18 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
20 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
21 Update the function comment.
23 2011-09-13 Pedro Alves <pedro@codesourcery.com>
25 * inferior.h (ALL_INFERIORS): New.
26 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
28 (thread_db_find_new_threads): Look for threads in all inferiors.
30 2011-09-13 Pedro Alves <pedro@codesourcery.com>
32 * breakpoint.c (update_watchpoint): Handle the case of the
33 watchpoint to update not being in the breakpoint list yet.
34 (hw_watchpoint_use_count): New, factored out from
35 hw_watchpoint_used_count.
36 (hw_watchpoint_used_count): Rename to ...
37 (hw_watchpoint_used_count_others): ... this. Add `except'
38 parameter. Don't count resources of `except'. Use
39 hw_watchpoint_use_count.
41 2011-09-13 Pedro Alves <pedro@codesourcery.com>
43 * gdbthread.h (enum thread_state): Moved here.
44 (struct thread_info): Rename `executing_' field to `executing' and
46 * thread.c (enum thread_state): Moved to gdbthread.h.
47 (new_thread, add_thread_silent, delete_thread_1)
48 (any_live_thread_of_process, thread_alive, set_running)
49 (set_running, is_thread_state, any_running, is_executing)
50 (set_executing, finish_thread_state, print_thread_info)
51 (do_captured_thread_select): Adjust.
53 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
55 Fix compatibility with gcc < 4.3 and non-gcc compilers.
56 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
58 2011-09-12 Pedro Alves <pedro@codesourcery.com>
59 Matt Rice <ratmice@gmail.com>
63 * interps.c (struct interp) <interpreter_out>: Delete field.
64 (interp_new): Remove the data and uiout parameters and adjust.
65 (interp_set): Only set the current_uiout from the interpreter's
66 uiout after initializing the interpreter. Adjust call to
68 (interp_ui_out): Adjust to call procs->ui_out_proc.
69 (interp_data, interp_name): New.
70 * interps.h (interp_init_ftype): Add `self' parameter.
71 (interp_ui_out_ftype): New typedef.
72 (struct interp_procs) <ui_out_proc>: New method pointer.
73 (interp_new): Remove the data and uiout parameters.
74 (interp_data, interp_name): Declare.
75 * tui/tui-interp.c (tui_init): Adjust prototype.
77 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
78 tui_out here. Adjust call to interp_new.
79 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
80 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
82 (_initialize_cli_interp): Install it. Adjust call to interp_new.
83 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
84 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
85 Initialize mi->uiout depending on the mi_version as extracted from
86 the interpreter's name.
88 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
89 interp_new. Don't allocate the ui_out's of the interpreters here.
91 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
93 * solib.c (solib_used): New function.
94 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
95 by another so_list object before freeing it.
97 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
103 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
106 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
107 (amd64_skip_xmm_prologue): ... this new function. Describe its
108 parameters. No longer use amd64_prologue_line_bug.
109 * defs.h (producer_is_gcc_ge_4): New declaration.
110 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
111 (process_full_comp_unit): Update its caller. Remove
112 amd64_prologue_line_bug initialization.
113 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
114 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
116 2011-09-09 Pedro Alves <pedro@codesourcery.com>
118 * linux-nat.h (enum resume_kind): New.
119 (struct lwp_info) <last_resume_kind>: New field.
120 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
121 resume_stop on the new lwp.
122 (add_lwp): Set last_resume_kind as resume_continue by default.
123 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
124 (resume_lwp): New, factored out from resume_callback. Also check
125 for pending status in lp->waitstatus.
126 (resume_callback): Reimplement.
127 (resume_clear_callback): Set last_resume_kind as resume_stop.
128 (resume_set_callback): Set last_resume_kind as resume_continue.
129 (linux_nat_resume, linux_handle_extended_wait): Set
131 (running_callback): Also check lp->waitstatus for pending events.
132 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
134 (stop_and_resume_callback): Don't re-resume if the core wanted the
135 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
136 using an invalidated pointer.
137 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
138 SIGSTOPs if the core wanted the LWP to stop.
139 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
140 wanted the lwp to stop. If the core wanted the lwp to stop, and
141 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
142 of TARGET_SIGNAL_STOP.
143 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
144 here. Instead, signal the lwp, and set the last_resume_kind to
147 2011-09-09 Pedro Alves <pedro@codesourcery.com>
149 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
150 -1 (error), if the lwp exits right after attaching.
152 2011-09-08 Doug Evans <dje@google.com>
154 * py-cmd.c: Some minor formatting fixes.
155 (gdbpy_parse_command_name): Rename text arg to name, make const.
157 * python-internal.h (gdbpy_parse_command_name): Update.
159 * cli/cli-decode.c (add_cmd): Add comment.
161 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
165 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
166 * dwarf2read.c (process_full_comp_unit): Initialize
167 amd64_prologue_line_bug.
168 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
170 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
172 Fix TUI screen corruption.
173 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
176 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
178 * findvar.c (read_var_value): Never return NULL, throw an error
179 instead. Update the function comment. State symbol name in the error
181 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
183 * stack.c (print_frame_args): Likewise.
184 * valops.c (value_of_variable): Likewise.
186 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * stack.c (print_frame_args): New variable except. Wrap
189 read_var_value and common_val_print into TRY_CATCH.
191 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
193 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
194 caller to value_of_this.
195 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
197 * valops.c (value_of_this): Remove parameter complain and variable ret.
198 Update function comment. Never return NULL by this code.
199 (value_of_this_silent): New function.
200 * value.h (value_of_this): Remove parameter complain.
201 (value_of_this_silent): New declaration.
203 2011-09-07 Yao Qi <yao@codesourcery.com>
205 * gdbthread.h (struct thread_info): Remove fields
206 `stepping_through_solib_after_catch' and
207 `stepping_through_solib_catchpoints'.
208 * infrun.c (init_thread_stepping_state): Update.
209 (process_event_stop_test, currently_stepping): Update.
210 (currently_stepping_or_nexting_callback): Update.
212 2011-09-07 Yao Qi <yao@codesourcery.com>
214 * gdbthread.h (struct thread_info): Comment on field
215 `step_after_step_resume_breakpoint'.
217 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
219 * remote.c (remote_console_output): Reindent.
221 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
223 * frame.c (has_stack_frames): Check for currently selected
226 2011-09-06 Pedro Alves <pedro@codesourcery.com>
228 * event-top.h (MAXPROMPTS, struct prompts): Delete.
229 (set_async_annotation_level, set_async_prompt, pop_prompt)
230 (push_prompt, new_async_prompt): Delete declarations.
231 * top.h (get_prompt, set_prompt): Change prototype.
232 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
234 * top.c (command_loop):
235 (top_prompt): New global.
236 (get_prefix, set_prefix, get_suffix, ): Delete.
237 (get_prompt, set_prompt): Rewrite.
238 (show_new_async_prompt): Rename to ...
239 (show_prompt): ... this.
240 (init_main): Adjust. Don't handle --annotate=2 here.
241 * event-top.c (new_async_prompt): Delete.
242 (the_prompts): Delete.
243 (more_to_come): Make static.
244 (display_gdb_prompt): Use top_level_prompt() to compute the top
245 level prompt, and don't notify the before_prompt observers
246 directly here. Always trick readline into not trying to display
247 the prompt if sync_execution and displaying the primary prompt.
248 If displaying a local/secondary prompt, always show it, even if
249 sync_execution is set.
250 (change_annotation_level): Delete.
251 (top_level_prompt): New, based on change_annotation_level.
252 (push_prompt, pop_prompt): Delete.
253 (async_disable_stdin): No longer pushes prompt.
254 (command_line_handler): No longer pushes or pops prompt. If more
255 input is expected, call display_gdb_prompt with an explicit empty
257 (async_stop_sig): Adjust.
258 (set_async_annotation_level, set_async_prompt): Delete.
259 * python/python.c (before_prompt_hook): Adjust.
261 2011-09-05 Pedro Alves <pedro@codesourcery.com>
265 * infrun.c (fetch_inferior_event): Check if there's a selected
266 thread before checking if the selected thread is executing.
268 2011-09-05 Pedro Alves <pedro@codesourcery.com>
270 * inf-loop.c (execute_command): Don't check if the current thread
271 if running before synchronously waiting for command completion.
272 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
274 (normal_stop): Call async_enable_stdin here.
275 * inf-loop.c (inferior_event_handler): Don't call
276 async_enable_stdin, nor handle "set exec-done-display" here.
278 2011-09-04 Joel Brobecker <brobecker@adacore.com>
282 2011-09-04 Joel Brobecker <brobecker@adacore.com>
284 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
286 2011-09-04 Joel Brobecker <brobecker@adacore.com>
288 * NEWS: Add entry for OpenBSD/NetBSD build failure.
290 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
292 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
294 2011-09-02 Matt Rice <ratmice@gmail.com>
297 * event-top.c (cli_command_loop): Replace readline setup with
298 direct call to display_gdb_prompt.
299 (display_gdb_prompt): Do not call observer mechanism during
300 synchronous execution.
302 2011-09-02 Pedro Alves <pedro@codesourcery.com>
304 * linux-nat.c (in_pid_list_p): New.
305 (linux_record_stopped_pid): Delete.
306 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
307 already attached to the LWP. Return an indication if so.
308 (linux_nat_filter_event): Adjust.
309 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
310 returning an indication to ignore this thread.
312 2011-09-02 Pedro Alves <pedro@codesourcery.com>
314 * top.c: Include interps.h.
315 (execute_command): If the target can async, but the interpreter is
316 in sync mode, synchronously wait for the command to finish before
318 (execute_command_to_string): Force the interpreter to sync mode.
319 * infrun.c: Include interps.h.
320 (fetch_inferior_event): Don't restore the prompt yet if the
321 interpreter is in sync mode.
322 * interps.c (interpreter_async): New global.
323 * interps.h (interpreter_async): Declare.
324 * inf-loop.c: Include interps.h.
325 (inferior_event_handler): Don't print the language change or run
326 breakpoint commands yet if the interpreter in is sync mode.
327 * main.c (captured_command_loop): Flip the interpreter to async
329 * cli/cli-script.c: Include interps.h.
330 (execute_user_command, while_command, if_command): Force the
331 interpreter to sync mode.
332 * python/python.c: Include interps.h.
333 (python_command, execute_gdb_command): Force the interpreter to
336 2011-09-02 Pedro Alves <pedro@codesourcery.com>
338 * value.c (show_convenience): Catch errors thrown while printing
339 each internal variable.
340 * infrun.c (validate_siginfo_access): New function.
341 (siginfo_value_read, siginfo_value_write): Call it.
343 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
346 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
347 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
350 2011-08-29 Yao Qi <yao@codesourcery.com>
352 * solib-dsbt.c (bfd_lookup_symbol): Removed.
354 (enable_break2): Update caller.
355 * solib-frv.c (bfd_lookup_symbol): Removed.
357 (enable_break2): Update caller.
358 * solib-pa64.c (bfd_lookup_symbol): Removed.
360 * solib-svr4.c (bfd_lookup_symbol): Removed.
361 (cmp_name_and_sec_flags): New.
362 (enable_break): Update caller.
363 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
364 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
365 (gdb_bfd_lookup_symbol): New.
366 * solib.h: Functions declarations.
368 2011-08-29 Yao Qi <yao@codesourcery.com>
370 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
373 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
375 Fix TUI stepi on code without symbols.
376 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
379 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
382 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
383 and the static keyword.
384 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
385 Make prefix an array.
386 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
387 * mi/mi-main.c (get_register): Remove stb initialization and the static
390 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
392 Code cleanup - make mi_opt const.
393 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
395 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
396 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
397 (mi_cmd_env_dir): Likewise.
398 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
399 (mi_cmd_target_file_put): Likewise.
400 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
401 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
402 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
403 (mi_valid_noargs): Make opts const.
404 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
405 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
406 (mi_cmd_data_read_memory): Likewise.
407 (mi_cmd_data_read_memory_bytes): Likewise.
408 (mi_cmd_data_write_memory): Likewise.
410 2011-08-26 Matt Rice <ratmice@gmail.com>
412 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
413 bcache_xmalloc, replace bcache_xmalloc with call to
414 psymbol_bcache_init for psymbol_cache.
415 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
417 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
419 * inf-loop.c (inferior_event_handler): Add exception_print in
422 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
424 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
425 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
426 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
427 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
428 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
429 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
430 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
431 * infrun.c (fetch_inferior_event): Call
432 make_bpstat_clear_actions_cleanup.
433 * top.c (execute_command): New variable cleanup_if_error, call
434 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
435 * utils.c (do_bpstat_clear_actions_cleanup)
436 (make_bpstat_clear_actions_cleanup): New functions.
438 2011-08-26 Pedro Alves <pedro@codesourcery.com>
440 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
441 either the parent or the child forks. Rename a couple locals.
443 2011-08-26 Pedro Alves <pedro@codesourcery.com>
445 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
446 library call. Avoid reading the `status' local if all waitpid
449 2011-08-26 Pedro Alves <pedro@codesourcery.com>
451 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
452 opening /proc/PID/task always succeeds.
454 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
456 * linespec.c (symtab_from_filename): Check for the end of string.
458 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
461 * varobj.c (cplus_describe_child): Add the keyword
462 'class' to the output of the method when dealing
463 with a cast to a base class.
465 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
467 No functionality change.
468 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
469 function comment a reference, new variables tp and bs, move here code
470 from throw_exception.
471 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
472 describe it in the comment.
473 * exceptions.c (throw_exception): Remove variable tp, move the code for
474 bpstat_clear_actions to bpstat_clear_actions.
476 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
478 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
479 * linux-nat.c: Include linux-procfs.h.
480 (linux_proc_get_tgid): Move to ...
481 * common/linux-procfs.c: ... here. New file.
482 * common/linux-procfs.h: New file.
483 * linux-thread-db.c: Include linux-procfs.h.
484 * Makefile.in: Update dependencies.
485 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
486 * config/arm/linux.mh: Likewise.
487 * config/i386/linux.mh: Likewise.
488 * config/i386/linux64.mh: Likewise.
489 * config/ia64/linux.mh: Likewise.
490 * config/m32r/linux.mh: Likewise.
491 * config/m68k/linux.mh: Likewise.
492 * config/mips/linux.mh: Likewise.
493 * config/pa/linux.mh: Likewise.
494 * config/pa/linux.mh: Likewise.
495 * config/powerpc/linux.mh: Likewise.
496 * config/powerpc/ppc64-linux.mh: Likewise.
497 * config/powerpc/spu-linux.mh: Likewise.
498 * config/sparc/linux.mh: Likewise.
499 * config/sparc/linux64.mh: Likewise.
500 * config/xtensa/linux.mh: Likewise.
502 2011-08-24 Hui Zhu <teawater@gmail.com>
504 * tracepoint.c (cond_string_is_same): New function.
505 (find_matching_tracepoint): Add condition check
506 by cond_string_is_same.
508 2011-08-23 Josh Matthews <josh@joshmatthews.net>
510 Fix build error in Darwin port.
511 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
513 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
517 (command_line_is_silent): New function.
518 (bpstat_do_actions_1): No longer use commands_left, use
519 command_line_is_silent for commands.
520 (bpstat_alloc): Remove clearing of commands_left.
521 (bpstat_stop_status): Remove initialization of commands_left, use
522 command_line_is_silent.
523 * breakpoint.h (struct bpstats): Remove commands_left.
525 2011-08-18 Keith Seitz <keiths@redhat.com>
528 * cp-name-parser.y (struct demangle_info): Remove unused
531 (allocate_info): Change return type to struct demangle_info *.
532 Always allocate a new demangle_info.
533 Remove unused PREV pointer.
534 (cp_new_demangle_parse_info): New function.
535 (cp_demangled_name_parse_free): New function.
536 (do_demangled_name_parse_free_cleanup): New function.
537 (make_cleanup_cp_demangled_name_parse_free): New function.
538 (cp_demangled_name_to_comp): Change return type to
539 struct demangle_parse_info *.
540 Allocate a new storage for each call.
541 (main): Update usage for cp_demangled_name_to_comp
543 * cp-support.h (struct demangle_parse_info): New structure.
544 (cp_demangled_name_to_comp): Update API change for
546 (cp_new_demangle_parse_info): Declare.
547 (make_cleanup_cp_demangled_name_parse_free): New declaration.
548 (cp_demangled_name_parse_free): Declare.
549 * cp-support.c (cp_canonicalize_string): Update API
550 change for cp_demangled_name_to_comp.
551 (mangled_name_to_comp): Likewise.
552 Return struct demangle_parse_info, too.
553 (cp_class_name_from_physname): Update mangled_name_to_comp
555 (method_name_from_physname): Likewise.
556 (cp_func_name): Update API change for cp_demangled_name_to_comp.
557 (cp_remove_params): Likewise.
558 * python/py-type.c (typy_legacy_template_argument): Likewise.
560 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
561 (cp_merge_demangle_parse_infos): Declare.
562 * cp-support.c (ignore_typedefs): New file global.
563 (copy_string_to_obstack): New function.
564 (inspect_type): New function.
565 (replace_typedefs): New function.
566 (replace_typedefs_qualified_name): New function.
567 (cp_canonicalize_string_no_typedefs): New function.
568 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
569 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
570 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
571 instead of cp_canonicalize_string.
572 (find_method): Likewise.
573 (decode_compound): Before looking up the name, call
574 cp_canonicalize_string_no_typedefs.
575 (decode_variable): Likewise.
577 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
578 Tom Tromey <tromey@redhat.com>
579 Matt Rice <ratmice@gmail.com>
581 * python/lib/gdb/prompt.py: New file.
582 * python/lib/gdb/command/prompt.py: New file.
583 * NEWS: Document set extended-prompt and gdb.prompt library
585 2011-08-16 Yao Qi <yao@codesourcery.com>
587 * tic6x-linux-tdep.c: Move const arrays definition from here...
588 * tic6x-tdep.c: to here ...
590 2011-08-14 Yao Qi <yao@codesourcery.com>
592 * NEWS: New port to Texas Instruments TMS320C6x.
594 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
595 Bernd Schmidt <bernds@codesourcery.com>
596 Yao Qi <yao@codesourcery.com>
598 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
599 * solib-dsbt.c: New file. Support DSBT shared object.
600 * tic6x-linux-tdep.c: New file.
601 * tic6x-tdep.c: New file.
602 * tic6x-tdep.h: New file.
604 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
605 Yao Qi <yao@codesourcery.com>
607 * remote.c (PACKET_qXfer_fdpic): New enum value.
608 (remote_protocol_features): Add qXfer:fdpic:read packet.
609 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
610 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
611 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
613 2011-08-14 Yao Qi <yao@codesourcery.com>
615 Target description for tic6x.
616 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
617 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
618 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
619 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
620 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
621 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
622 * features/tic6x-c64xp-linux.xml: New.
623 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
624 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
625 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
626 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
627 * regformats/tic6x-c64xp.dat,
628 regformats/tic6x-c62x-linux.dat: Generated.
629 * regformats/tic6x-c64x-linux.dat,
630 regformats/tic6x-c64xp-linux.dat: Generated.
631 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
632 features/tic6x-*.c files.
633 Add regformats/tic6x-*.dat files.
635 2011-08-12 Doug Evans <dje@google.com>
637 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
638 * python/py-symbol.c (sympy_get_type): New function.
639 (symbol_object_getset): Add "type".
641 2011-08-12 Pedro Alves <pedro@codesourcery.com>
645 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
647 (tui_show_register_group): Don't store a byte buffer in the data
649 (tui_register_format): Skip registers with an empty name.
650 (tui_get_register): Store a struct value in the data element's
651 value field instead of a byte buffer holding the raw register
652 contents. Account for optimized-out and unavailable registers
653 when comparing register contents.
655 2011-08-09 Pedro Alves <pedro@codesourcery.com>
657 * printcmd.c (current_display_number): Update comment.
658 (disable_current_display_cleanup): Delete.
659 (do_one_display): Use make_cleanup_restore_integer. Gracefully
660 catch errors thrown while evaluating and printing the display.
662 2011-08-09 Tom Tromey <tromey@redhat.com>
664 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
666 2011-08-09 Pedro Alves <pedro@codesourcery.com>
668 * elfread.c (elf_symtab_read): Rework comments.
669 * maint.c (maintenance_command): Ditto.
670 * somread.c (som_symtab_read): Ditto.
671 * solib.c (solib_find, solib_map_sections, update_solib_list)
672 (solib_add, info_sharedlibrary_command, solib_name_from_address)
673 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
674 (sharedlibrary_command, no_shared_libraries): Ditto.
675 * solib-irix.c (locate_base, disable_break, enable_break)
676 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
677 (irix_current_sos, irix_open_symbol_file_object)
678 (irix_special_symbol_handling): Ditto.
679 * solib-sunos.c (locate_base, first_link_map_member)
680 (sunos_current_sos, disable_break, enable_break)
681 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
683 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
684 (open_symbol_file_object, svr4_current_sos, enable_break)
685 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
687 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
688 (frv_current_sos, enable_break, frv_special_symbol_handling)
689 (frv_solib_create_inferior_hook): Ditto.
690 * solist.h (struct target_so_ops): Extend the comments of the
691 special_symbol_handling, current_sos and open_symbol_file_object
694 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
696 * python/lib/gdb/__init__.py: Auto-load files in command and
697 function directories.
698 * python/python.c (finish_python_initialization): Use
700 * python/lib/gdb/command/pretty_printers.py: Self register
702 * NEWS: Document auto-loading.
704 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
706 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
707 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
708 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
710 2011-08-08 Tom Tromey <tromey@redhat.com>
712 * breakpoint.c (clean_up_filters): Remove.
713 (catch_syscall_split_args): Use VEC_cleanup.
715 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
717 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
718 (main): Uncomment "Demangling error\n".
720 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
722 * solib-target.c (segment_attributes): Make them static.
723 (section_attributes, library_children, library_attributes): Likewise.
724 (library_list_children, library_list_attributes): Likesise.
725 (library_list_elements): Likewise.
727 2011-08-05 Pedro Alves <pedro@codesourcery.com>
729 * exceptions.c (throw_exception): Don't disable the current
731 * printcmd.c (disable_current_display_cleanup): New function.
732 (do_one_display): Install a cleanup to disable the current display
733 if doing the display throws.
735 2011-08-05 Eli Zaretskii <eliz@gnu.org>
737 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
738 initialization of the tp_new member to the corresponding
739 gdbpy_initialize_* function.
740 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
741 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
742 * python/py-function.c (gdbpy_initialize_functions): Likewise.
743 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
744 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
746 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
748 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
749 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
750 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
751 references to current_uiout.
753 2011-08-04 Pedro Alves <pedro@codesourcery.com>
755 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
756 (start_event_loop): Use TRY_CATCH instead of catch_errors.
757 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
758 * top.c (gdb_readline_wrapper): Adjust.
759 * tui/tui-interp.c (tui_command_loop):
760 (_initialize_tui_interp): Don't install it.
762 2011-08-04 Pedro Alves <pedro@codesourcery.com>
764 * ui-out.h (uiout): Rename to ...
765 (current_uiout): ... this.
766 * ui-out.c (uiout): Rename to ...
767 (current_uiout): ... this.
768 * ada-lang.c (print_it_exception, print_one_exception)
769 (print_mention_exception): Adjust.
770 * breakpoint.c (watchpoint_check): Adjust.
771 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
772 (default_collect_info, watchpoints_info, print_one_catch_fork)
773 (print_one_catch_vfork, print_one_catch_syscall)
774 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
775 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
776 (print_it_watchpoint, print_mention_watchpoint)
777 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
778 (print_it_exception_catchpoint, print_one_exception_catchpoint)
779 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
780 (bkpt_print_mention, momentary_bkpt_print_it)
781 (tracepoint_print_mention, update_static_tracepoint)
782 (tracepoints_info, save_breakpoints): Adjust.
783 * cli-out.c (field_separator): Adjust.
784 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
785 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
786 * frame.c (get_current_frame): Adjust.
787 * infcmd.c (run_command_1, print_return_value): Adjust.
788 * inferior.c (inferior_command, info_inferiors_command): Adjust.
789 * infrun.c (print_end_stepping_range_reason): Adjust.
790 (print_signal_exited_reason, print_exited_reason): Adjust.
791 (print_signal_received_reason, print_no_history_reason): Adjust.
792 * interps.c (interp_set): Adjust.
793 * osdata.c (info_osdata_command): Adjust.
794 * progspace.c (maintenance_info_program_spaces_command): Adjust.
795 * remote-fileio.c (remote_fileio_request): Adjust.
796 * remote.c (show_remote_cmd): Adjust.
797 * solib.c (info_sharedlibrary_command): Adjust.
798 * source.c (print_source_lines_base): Adjust.
799 * stack.c (print_stack_frame): Adjust.
800 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
801 * symfile-mem.c (add_vsyscall_page): Adjust.
802 * symfile.c (load_progress, generic_load)
803 (print_transfer_performance): Adjust.
804 * thread.c (info_threads_command, restore_selected_frame)
805 (thread_command): Adjust.
806 * top.c (make_cleanup_restore_ui_file): Adjust.
807 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
808 (print_one_static_tracepoint_marker): Adjust.
809 * cli/cli-cmds.c (print_disassembly): Adjust.
810 * cli/cli-decode.c (print_doc_line): Adjust.
811 * cli/cli-interp.c (safe_execute_command): Adjust.
812 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
813 (handle_redirections): Adjust.
814 * cli/cli-script.c (show_user_1): Adjust.
815 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
816 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
817 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
818 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
819 (mi_cmd_env_dir): Adjust.
820 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
821 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
822 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
823 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
824 (list_args_or_locals): Adjust.
825 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
826 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
827 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
828 (mi_cmd_var_list_children, mi_cmd_var_info_type)
829 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
830 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
831 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
832 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
833 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
834 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
835 (list_available_thread_groups, mi_cmd_list_thread_groups)
836 (mi_cmd_data_list_register_names)
837 (mi_cmd_data_list_changed_registers)
838 (mi_cmd_data_list_register_values, get_register)
839 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
840 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
841 (mi_cmd_list_target_features, mi_cmd_add_inferior)
842 (mi_execute_command, mi_load_progress): Adjust.
843 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
844 * python/py-auto-load.c (print_script, info_auto_load_scripts):
846 * python/py-breakpoint.c (bppy_get_commands): Adjust.
847 * tui/tui-interp.c (tui_command_loop): Adjust.
848 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
850 2011-08-04 Pedro Alves <pedro@codesourcery.com>
852 * exceptions.c (struct catcher): Remove saved_uiout field.
853 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
854 no longer save/resvore the global ui_out builder.
855 (catch_exceptions_with_msg): Save/override/restore the global
856 ui_out builder manually instead of relying on TRY_CATCH to do it.
857 (catch_errors): Save/restore the global ui_out builder manually
858 instead of relying on TRY_CATCH to do it.
859 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
862 * cli/cli-interp.c (safe_execute_command): Save/override/restore
863 the global ui_out builder manually instead of relying on TRY_CATCH
866 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
868 * breakpoint.c (update_global_location_list): Ensure
869 invariant 'first loc marked not duplicated and inserted,
870 following locs marked duplicated/not inserted' is respected
871 for multiple locations at the same address.
872 (unduplicated_should_be_inserted) New function.
873 (swap_insertion) New function.
875 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
877 * stack.c (print_frame_arguments_choices): Comment typo fix.
879 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
882 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
883 * breakpoint.c (insert_bp_location): Remove disabled_breaks
884 argument. Update callers.
886 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
889 * doublest.c (convert_doublest_to_floatformat): Pass correct
890 mantissa length to put_field.
892 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
894 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
895 exception_print code path.
896 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
897 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
898 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
900 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
903 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
904 Remove, merge them into ...
905 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
906 variable args and its initialization.
907 (struct print_args_args, print_args_stub): Remove, merge them into
909 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
911 (do_gdb_disassembly): ... here. Remove variable args and its
913 (print_frame): Remove variable args and its initialization, new
914 variable gdbarch and numargs (from print_args_stub), inline here
915 print_args_stub with a TRY_CATCH.
916 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
918 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
919 New variable e, remove variable btargs and its initialization.
921 2011-08-01 Tristan Gingold <gingold@adacore.com>
923 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
925 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
927 * breakpoint.c (insert_bp_location): Document return value.
928 (insert_breakpoint_locations): Fix documentation.
929 (remove_breakpoints): Add documentation.
931 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
933 * breakpoint.c (insert_bp_location): Remove disabled_breaks
934 argument. Update callers.
936 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
938 * stack.c (print_frame_info): Comment typo fix.
940 2011-07-29 Sterling Augustine <saugustine@google.com>
942 * MAINTAINERS (Write After Approval): Add myself to the list.
944 2011-07-29 Tom Tromey <tromey@redhat.com>
946 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
947 (library_list_start_segment): Update.
948 (library_list_start_section): Update.
950 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
952 * varobj.c (value_get_print_value): Move hint check later into the
953 function. Comment function. Free thevalue before reusing it.
955 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
956 Pedro Alves <pedro@codesourcery.com>
958 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
960 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
961 Assert the result kind.
962 * value.h (value_one): Remove parameter lv.
964 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
966 Fix crash on lval_computed values.
967 * valops.c (value_zero): Use not_lval for lval_computed.
969 2011-07-27 Tom Tromey <tromey@redhat.com>
971 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
972 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
974 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
976 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
977 "ptype" by their typedefs difference.
979 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
981 * dwarf2expr.c (ctx_no_read_reg): New function.
982 * dwarf2expr.h (ctx_no_read_reg): New declaration.
983 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
984 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
985 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
987 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
989 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
990 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
992 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
993 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
994 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
995 (ctx_no_get_base_type): Move the functions here.
996 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
997 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
998 (ctx_no_get_base_type): New declarations.
1000 2011-07-27 Tom Tromey <tromey@redhat.com>
1002 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1004 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1005 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1007 2011-07-26 Sterling Augustine <saugustine@google.com>
1009 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1011 (dump_bfd_file): Likewise.
1013 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1015 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1016 (remote_hw_watchpoint_length_limit): New variable.
1017 (_initialize_remote) add set,show cmds for this new variable.
1018 * gdb.texinfo: document these new commands.
1019 * NEWS: Mention these new commands.
1021 2011-07-26 Pedro Alves <pedro@codesourcery.com>
1023 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1024 true for software watchpoints.
1026 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1030 2011-07-26 Tom Tromey <tromey@redhat.com>
1032 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1033 * dwarf2read.c (read_indirect_string_at_offset): New function.
1034 (read_indirect_string): Use it.
1035 (dwarf_decode_macro_bytes): New function, taken from
1036 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1037 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1038 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1040 (struct dwarf2_per_objfile) <macro>: New field.
1041 (dwarf2_elf_names): Add .debug_macro.
1042 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1043 (dwarf2_locate_sections): Handle new section.
1044 (read_file_scope): Handle DW_AT_GNU_macros.
1045 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1047 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1049 * NEWS: Mention dcache configuration.
1050 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1051 (dcache_size, dcache_line_size): New variables.
1052 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1053 (struct dcache_block): Make it expandable.
1054 (struct dcache_struct): New field.
1055 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1056 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1057 (dcache_poke_byte, dcache_print_line): Adjust.
1058 (set_dcache_size, set_dcache_line_size): New functions.
1059 (set_dcache_command, show_dcache_command): New functions.
1060 (_initialize_dcache): Add new commands.
1062 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1064 * progspace.h (struct program_space): Add solib_add_generation.
1065 * infcmd.c (post_create_inferior): Only call solib_add if not
1067 * solib.c (solib_add): Increment solib_add_generation.
1069 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 Fix implicit pointer offsets.
1072 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1075 2011-07-25 Tom Tromey <tromey@redhat.com>
1077 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1079 (ada_exception_sal): Make 'ops' const.
1080 (ada_decode_exception_location): Likewise.
1081 (ada_decode_assert_location): Likewise.
1082 (catch_assert_command): Update.
1083 (catch_ada_exception_command): Update.
1084 (create_ada_exception_catchpoint): Make 'ops' const.
1085 * breakpoint.c (set_raw_breakpoint_without_location)
1086 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1088 (create_internal_breakpoint): Update.
1089 (init_raw_breakpoint_without_location): Make 'ops' const.
1090 (init_raw_breakpoint, init_catchpoint)
1091 (create_fork_vfork_event_catchpoint)
1092 (create_syscall_event_catchpoint, init_breakpoint_sal)
1093 (create_breakpoint_sal, create_breakpoints_sal)
1094 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1095 * breakpoint.h (struct breakpoint) <ops>: Now const.
1096 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1099 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1101 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1103 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1105 * breakpoint.h (print_recreate_thread): Declare.
1106 (struct breakpoint): Move step_count, pass_count,
1107 number_on_target, static_trace_marker_id,
1108 static_trace_marker_id_idx ...
1109 (struct tracepoint): ... to this new struct.
1110 (get_tracepoint, get_tracepoint_by_number_on_target)
1111 (get_tracepoint_by_number): Change return type to struct
1113 * breakpoint.c (is_tracepoint_type): New, factored out from
1115 (is_tracepoint): Adjust.
1116 (print_one_breakpoint_location): Cast to struct tracepoint as
1117 necessary, and adjust.
1118 (print_recreate_catch_fork, print_recreate_catch_vfork)
1119 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1120 print_recreate_thread.
1121 (init_breakpoint_sal): New, factored out from
1122 create_breakpoint_sal.
1123 (create_breakpoint_sal): Reimplement.
1124 (create_breakpoint): Allocate a struct tracecepoint if the caller
1125 wanted a tracepoint. Use init_breakpoint_sal and
1127 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1128 (print_recreate_masked_watchpoint)
1129 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1130 (tracepoint_print_one_detail): Adjust.
1131 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1132 Dump the pass count here.
1133 (update_static_tracepoint): Adjust.
1134 (addr_string_to_sals): Adjust.
1135 (create_tracepoint_from_upload): Adjust. Change return type to
1136 struct tracepoint pointer.
1137 (trace_pass_set_count): Change parameter type to struct tracepoint
1138 pointer, and adjust.
1139 (trace_pass_command): Adjust.
1140 (get_tracepoint, get_tracepoint_by_number_on_target)
1141 (get_tracepoint_by_number): Change return type to struct
1142 tracepoint pointer, and adjust.
1143 (print_recreate_thread): New, factored out from save_breakpoints.
1144 (save_breakpoints): Don't print thread and task and passcount
1146 * remote.c (remote_download_tracepoint): Adjust.
1147 * tracepoint.c (trace_actions_command, validate_actionline)
1148 (start_tracing, tfind_1, trace_find_tracepoint_command)
1149 (trace_dump_command): Adjust.
1150 (find_matching_tracepoint): Change return type to struct
1151 tracepoint pointer, and adjust.
1152 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1153 (tfile_trace_find, tfile_fetch_registers): Adjust.
1154 * tracepoint.h (create_tracepoint_from_upload): Change return type
1155 to struct tracepoint pointer.
1156 * ada-lang.c (print_recreate_exception): Call
1157 print_recreate_thread.
1158 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1160 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1162 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1163 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1164 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1165 watchpoint_thread, watchpoint_triggered ...
1166 (struct watchpoint): ... to this new struct.
1167 (is_watchpoint): Declare.
1168 (install_breakpoint): Add new `internal' parameter.
1169 * breakpoint.c (is_watchpoint): Delete declaration.
1170 (set_breakpoint_condition): Handle watchpoints.
1171 (is_watchpoint): Make public.
1172 (watchpoint_in_thread_scope): Change parameter type to struct
1174 (watchpoint_del_at_next_stop): Change parameter type to struct
1175 watchpoint. Remove assertion. Adjust.
1176 (update_watchpoint): Ditto.
1177 (insert_breakpoints, breakpoint_init_inferior)
1178 (watchpoints_triggered, watchpoint_check)
1179 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1180 (bpstat_stop_status, print_one_breakpoint_location)
1181 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1182 to struct watchpoint as necessary, and adjust.
1183 (install_breakpoint): Add `internal' argument. If true, don't
1184 mention the new breakpoint. Use set_breakpoint_number.
1185 (create_fork_vfork_event_catchpoint)
1186 (create_syscall_event_catchpoint): Adjust.
1187 (dtor_watchpoint): New.
1188 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1189 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1190 (print_it_watchpoint, print_mention_watchpoint)
1191 (print_recreate_watchpoint, insert_masked_watchpoint)
1192 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1193 (print_one_detail_masked_watchpoint)
1194 (print_mention_masked_watchpoint)
1195 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1196 necessary, and adjust.
1197 (watch_command_1): Allocate and initialize a struct watchpoint
1198 instead of a struct breakpoint. Use install_breakpoint.
1199 (catch_exec_command_1): Adjust.
1200 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1202 (delete_breakpoint, enable_breakpoint_disp)
1203 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1204 as necessary, and adjust.
1205 (initialize_breakpoint_ops): Install dtor_watchpoint as
1206 watchpoints' dtor method.
1207 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1208 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1209 to struct watchpoint as necessary, and adjust.
1211 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1213 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1214 the the base class ops table.
1215 (catch_exception_breakpoint_ops)
1216 (catch_exception_unhandled_breakpoint_ops)
1217 (catch_assert_breakpoint_ops): Don't statically initialize.
1218 (initialize_ada_catchpoint_ops): New.
1219 (_initialize_ada_language): Call it.
1220 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1221 (bkpt_breakpoint_ops): Forward declare.
1222 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1223 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1224 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1225 (masked_watchpoint_breakpoint_ops)
1226 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1227 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1228 base class ops table.
1229 (null_re_set, null_check_status, null_works_in_software_mode)
1230 (null_resources_needed, null_print_one_detail): Delete.
1231 (bkpt_dtor): Rename to ...
1232 (base_breakpoint_dtor): ... this. Make static.
1233 (bkpt_allocate_location): Rename to ...
1234 (base_breakpoint_allocate_location): ... this. Make static.
1235 (base_breakpoint_re_set): New.
1236 (internal_error_pure_virtual_called): New.
1237 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1238 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1239 (base_breakpoint_works_in_software_mode)
1240 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1241 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1242 (base_breakpoint_print_recreate): New functions.
1243 (base_breakpoint_ops): New global.
1244 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1245 (bkpt_breakpoint_hit): Make static.
1246 (bkpt_check_status): Delete.
1247 (bkpt_resources_needed): Make static.
1248 (bkpt_works_in_software_mode): Delete.
1249 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1251 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1252 (momentary_breakpoint_ops): Don't statically initialize.
1253 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1255 (tracepoint_insert_location, tracepoint_remove_location)
1256 (tracepoint_check_status, tracepoint_works_in_software_mode)
1257 (tracepoint_print_it): Delete.
1258 (tracepoint_breakpoint_ops): Don't statically initialize.
1259 (initialize_breakpoint_ops): New.
1260 (_initialize_breakpoint): Call it.
1261 * breakpoint.h (null_re_set, null_works_in_software_mode)
1262 (null_resources_needed, null_check_status, null_print_one_detail):
1263 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1264 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1265 (bkpt_check_status, bkpt_resources_needed)
1266 (bkpt_works_in_software_mode, bkpt_print_it)
1267 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1268 Delete declarations.
1269 (initialize_breakpoint_ops): Declare.
1271 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1273 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1274 (momentary_bkpt_print_it): Simplify.
1276 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1278 Split internal, momentary and user breakpoints breakpoint_ops
1281 * breakpoint.c (internal_breakpoint_ops)
1282 (momentary_breakpoint_ops): Forward declare.
1283 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1284 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1285 (create_overlay_event_breakpoint)
1286 (create_std_terminate_master_breakpoint)
1287 (create_exception_master_breakpoint): Create breakpoints with
1288 internal_breakpoint_ops vtable.
1289 (set_longjmp_breakpoint): Create momentary breakpoints with
1290 momentary_breakpoint_ops vtable, using
1291 momentary_breakpoint_from_master.
1292 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1293 (create_solib_event_breakpoint): Create breakpoints with
1294 internal_breakpoint_ops vtable.
1295 (set_momentary_breakpoint): Create breakpoints with
1296 momentary_breakpoint_ops vtable.
1297 (momentary_breakpoint_from_master): New, factored out from
1298 clone_momentary_breakpoint.
1299 (clone_momentary_breakpoint): Adjust.
1300 (watch_command_1): Create scope breakpoints with
1301 momentary_breakpoint_ops vtable.
1302 (bkpt_re_set): Remove handling of internal and momentary
1304 (bkpt_print_mention, bkpt_print_recreate): New.
1305 (bkpt_breakpoint_ops): Adjust.
1306 (internal_bkpt_re_set, internal_bkpt_check_status)
1307 (internal_bkpt_print_it, internal_bkpt_print_mention)
1308 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1309 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1310 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1311 (momentary_bkpt_print_recreate): New.
1312 (momentary_breakpoint_ops): New.
1314 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1316 Implement most breakpoint_ops methods for all breakpoint types,
1317 and move the default handlings to the proper callbacks.
1319 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1320 works_in_software_mode method.
1321 (insert_bp_location): Go through breakpoint_ops->insert_location
1322 for software and hardware watchpoints.
1323 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1325 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1326 for software and hardware watchpoints.
1327 (print_it_typical): Delete.
1328 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1330 (watchpoint_check): Adjust comment.
1331 (bpstat_check_location): Simply always call the breakpoint's
1332 breakpoint_hit method.
1333 (bpstat_stop_status): Always call the breakpoint's check_status
1334 method. Remove special cases for watchpoints and internal event
1335 breakpoints from here (moved to the check_status implementations).
1336 (print_one_breakpoint_location): Assume b->ops is never NULL.
1337 Remove static tracepoint marker id printing from here (moved to
1338 the print_one_detail callback implementation of tracepoints).
1339 (init_bp_location): Assert OPS is never NULL.
1340 (allocate_bp_location): Always call the breakpoint's
1341 allocate_location method, and remove the default code from here.
1342 (free_bp_location): Always call the location's dtor method, and
1343 remove the default code from here.
1344 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1345 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1346 parameter. Pass it down.
1347 (set_raw_breakpoint): Ditto.
1348 (print_it_catch_fork): Adjust to take a bpstat as argument.
1349 (catch_fork_breakpoint_ops): Install methods.
1350 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1351 (catch_vfork_breakpoint_ops): Install methods.
1352 (dtor_catch_syscall): Call the base dtor.
1353 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1354 (catch_syscall_breakpoint_ops): Install methods.
1355 (dtor_catch_exec): Call the base dtor.
1356 (print_it_catch_exec): Adjust to take a bpstat as argument.
1357 (catch_exec_breakpoint_ops): Install methods.
1358 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1359 the breakpoint's resources_needed method, and remove the default
1361 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1363 (clone_momentary_breakpoint): Clone the original's ops.
1364 (mention): Always call the breakpoint's print_mention method, and
1365 remove the default code from here.
1366 (create_breakpoint_sal): Adjust to pass the ops to
1367 set_raw_breakpoint rather than setting it manually.
1368 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1369 ops to set_raw_breakpoint_without_location rather than setting it
1371 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1372 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1373 (ranged_breakpoint_ops): Install methods.
1374 (break_range_command): Adjust to pass the ops to
1375 set_raw_breakpoint rather than setting it manually.
1376 (re_set_watchpoint, breakpoint_hit_watchpoint)
1377 (check_status_watchpoint, resources_needed_watchpoint)
1378 (works_in_software_mode_watchpoint, print_it_watchpoint)
1379 (print_mention_watchpoint, print_recreate_watchpoint): New
1381 (watchpoint_breakpoint_ops): Install new methods.
1382 (print_it_masked_watchpoint): New function.
1383 (masked_watchpoint_breakpoint_ops): Install new methods.
1384 (watch_command_1): Adjust to pass the right breakpoint_ops to
1385 set_raw_breakpoint_without_location rather than setting it
1386 manually later. Record the current pspace.
1387 (print_it_exception_catchpoint): Adjust to take a bpstat as
1389 (gnu_v3_exception_catchpoint_ops): Install new methods.
1390 (say_where): New function.
1391 (null_re_set, null_check_status, null_works_in_software_mode)
1392 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1394 (bp_location_ops): New global.
1395 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1396 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1397 (bkpt_check_status, bkpt_resources_needed)
1398 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1399 (bkpt_print_recreate): New functions.
1400 (bkpt_breakpoint_ops): New global.
1401 (tracepoint_re_set, tracepoint_insert_location)
1402 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1403 (tracepoint_check_status, tracepoint_works_in_software_mode)
1404 (tracepoint_print_it, tracepoint_print_one_detail)
1405 (tracepoint_print_mention, tracepoint_print_recreate): New
1407 (tracepoint_breakpoint_ops): New global.
1408 (delete_breakpoint): Always call the breakpoint's dtor method, and
1409 remove the default handling from here.
1410 (breakpoint_re_set_default): Make static.
1411 (breakpoint_re_set_one): Always call the breakpoints re_set
1412 method, and remove the default handling from here.
1413 (trace_command, ftrace_command, strace_command)
1414 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1415 to create_breakpoint.
1416 (save_breakpoints): Always call the breakpoint's print_recreate
1417 method, and remove the default handling from here.
1419 * ada-lang.c (dtor_exception): Call the base dtor.
1420 (re_set_exception): Call the base method.
1421 (print_it_exception, print_it_catch_exception): Adjust to take a
1423 (catch_exception_breakpoint_ops): Install methods.
1424 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1426 (catch_exception_unhandled_breakpoint_ops): Install methods.
1427 (print_it_catch_assert): Adjust to take a bpstat as argument.
1428 (catch_assert_breakpoint_ops): Install methods.
1430 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1431 to take a bpstat as argument.
1432 (enum print_stop_action): Add describing comments to each enum
1434 (breakpoint_re_set_default): Delete declaration.
1435 (null_re_set, null_works_in_software_mode, null_resources_needed)
1436 (null_check_status, null_print_one_detail): Declare.
1437 (bkpt_breakpoint_ops): Declare.
1438 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1439 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1440 (bkpt_check_status, bkpt_resources_needed)
1441 (bkpt_works_in_software_mode, bkpt_print_it)
1442 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1445 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1446 bkpt_breakpoint_ops.
1447 * python/py-breakpoint.c (bppy_init): Ditto.
1449 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1451 * MAINTAINERS (Write After Approval): Add myself to the list.
1453 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1455 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1457 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1459 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1460 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1461 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1463 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1464 (struct i386_debug_reg_state): New.
1465 (i386_init_dregs): New.
1467 (i386_cleanup_dregs): Use i386_init_dregs.
1468 (i386_show_dr): Add state parameter and adjust.
1469 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1471 (i386_remove_aligned_watchpoint): Likewise.
1472 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1473 (i386_update_inferior_debug_regs): New.
1474 (i386_insert_watchpoint): Work on a local mirror of the debug
1475 registers, and only update the inferior on success.
1476 (i386_remove_watchpoint): Ditto.
1477 (i386_region_ok_for_watchpoint): Adjust.
1478 (i386_stopped_data_address): Adjust.
1479 (i386_insert_hw_breakpoint): Adjust.
1480 (i386_remove_hw_breakpoint): Adjust.
1482 2011-07-22 Tom Tromey <tromey@redhat.com>
1484 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1485 from amd64_pseudo_register_read. Change arguments. Call
1486 mark_value_bytes_unavailable when needed.
1487 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1488 set_gdbarch_pseudo_register_read.
1489 * sentinel-frame.c (sentinel_frame_prev_register): Use
1490 regcache_cooked_read_value.
1491 * regcache.h (regcache_cooked_read_value): Declare.
1492 * regcache.c (regcache_cooked_read_value): New function.
1493 (regcache_cooked_read): Call
1494 gdbarch_pseudo_register_read_value if available.
1495 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1496 (i386_pseudo_register_read): Remove.
1497 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1498 i386_pseudo_register_read. Change arguments. Call
1499 mark_value_bytes_unavailable when needed.
1500 (i386_pseudo_register_read_value): New function.
1501 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1502 not set_gdbarch_pseudo_register_read.
1503 * gdbarch.sh (pseudo_register_read_value): New method.
1504 * gdbarch.c, gdbarch.h: Rebuild.
1505 * findvar.c (value_from_register): Call get_frame_register_value.
1507 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1509 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1511 (display_gdb_prompt): Likewise.
1512 (change_annotation_level): Likewise.
1513 (push_prompt): Likewise.
1514 (pop_prompt): Likewise.
1515 (handle_stop_sig): Use get_prompt with a level.
1516 * top.c (command_loop): Use get_prompt with a level.
1517 (set_async_annotation_level): Use set_prompt with a level.
1518 (get_prefix): New function.
1519 (set_prefix): Ditto.
1520 (set_suffix): Ditto.
1521 (get_suffix): Ditto.
1522 (get_prompt): Accept a level argument.
1523 (set_prompt): Accept a level argument. Free old prompts. Set
1524 new_async_prompt if level is 0.
1525 (init_main): Use set_prompt with a level. Do not set
1527 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1528 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1529 Modify set_prompt, get_prompt to account for levels.
1530 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1532 * python/python.c (before_prompt_hook): Use set_prompt.
1534 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1536 * defs.h: Add guard against inclusion in gdbserver.
1537 (struct ptid, ptid_t): Move to common/ptid.h.
1538 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1539 xsnprintf, internal_error): Move to common/common-utils.h.
1541 * gdb_assert.h: Move into common/ sub-directory.
1542 * gdb_locale.h: Ditto.
1543 * gdb_dirent.h: Ditto.
1544 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1545 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1546 Move into common/ptid.h.
1547 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1548 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1549 Change nomem to malloc_failure.
1550 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1551 * utils.c (nomem): Rename to malloc_failure.
1552 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1553 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1554 (gdb_buildargv): Change nomem to malloc_failure.
1555 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1556 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1557 ptid_is_pid): Move into common/ptid.c.
1558 (initialize_infrun): Delete initialization of null_ptid and
1560 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1561 linux_common_xfer_osdata.
1562 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1563 common/ptid.c and common/buffer.c.
1564 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1565 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1566 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1567 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1569 * common/gdb_assert.h: New.
1570 * common/gdb_dirent.h: New.
1571 * common/gdb_locale.h: New.
1572 * common/buffer.c: New.
1573 * common/buffer.h: New.
1574 * common/ptid.c: New.
1575 * common/ptid.h: New.
1576 * common/xml-utils.c: New.
1577 * common/xml-utils.h: New.
1578 * common/common-utils.c: New.
1579 * common/common-utils.h: New.
1580 * common/linux-osdata.c: New.
1581 * common/linux-osdata.h: New.
1582 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1583 * config/arm/linux.mh (NATDEPFILES): Ditto.
1584 * config/i386/linux.mh (NATDEPFILES): Ditto.
1585 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1586 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1587 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1588 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1589 * config/mips/linux.mh (NATDEPFILES): Ditto.
1590 * config/pa/linux.mh (NATDEPFILES): Ditto.
1591 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1592 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1593 * config/s390/s390.mh (NATDEPFILES): Ditto.
1594 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1595 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1596 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1598 2011-07-21 Matt Rice <ratmice@gmail.com>
1600 * NEWS: Add info macros and info definitions commands.
1602 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1604 * NEWS: Document Python prompt substitution hook.
1606 2011-07-18 Matt Rice <ratmice@gmail.com>
1609 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1610 * macrotab.c (foreach_macro): Ditto.
1611 (foreach_macro_in_scope): Ditto.
1612 * macrocmd.c (print_macro_callback): New function.
1613 (info_macro_command): Move some code to print_macro_definition.
1614 (print_macro_definition): New function.
1615 (print_one_macro): Add new arguments to callback.
1616 (info_definitions_command): New function.
1617 (info_macros_command): Ditto.
1618 (_initialize_macrocmd): Add info macros and info definitions commands.
1619 * symtab.c (add_macro_name): Add new arguments to callback.
1621 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1622 Tom Tromey <tromey@redhat.com>
1624 * top.c (set_prompt): Rewrite to free previous prompt, free
1625 asynch_new_prompt and set both on new prompts.
1626 * event-top.c (display_gdb_prompt): Add prompt substitution
1628 * python/python.c (before_prompt_hook): New function.
1630 2011-07-20 Matt Rice <ratmice@gmail.com>
1632 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1633 arguments to store_unsigned_integer.
1635 2011-07-20 Tom Tromey <tromey@redhat.com>
1637 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1638 in some declaration-only cases.
1640 2011-07-18 Tom Tromey <tromey@redhat.com>
1643 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1644 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1645 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1646 <debug_type_section>: New field.
1647 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1648 (load_cu): Use appropriate section.
1649 (create_signatured_type_table_from_index): Add 'section'
1651 (dwarf2_read_index): Only allow a single .debug_types section.
1652 (dw2_get_file_names): Use appropriate section.
1653 (read_type_comp_unit_head): Add 'section' argument.
1654 (create_debug_types_hash_table): Loop over all .debug_types
1656 (init_cu_die_reader): Use appropriate section.
1657 (process_psymtab_comp_unit, load_partial_comp_unit)
1658 (load_full_comp_unit, read_die_and_children, find_partial_die)
1659 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1660 (lookup_signatured_type_at_offset): Add 'section' argument.
1661 (read_signatured_type_at_offset): Add 'sect' argument.
1662 (read_signatured_type): Use appropriate section.
1663 (set_die_type, get_die_type_at_offset): Update.
1664 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1666 (write_psymtabs_to_index): Don't allow index with more than one
1667 .debug_types section.
1669 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 Fix crash if referenced CU is aged out.
1672 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1673 xfree of block.data.
1674 (indirect_pieced_value): New variable back_to, use to for xfree of
1676 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1678 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1679 (load_cu): New function from ...
1680 (dw2_do_instantiate_symtab): ... the code here ...
1681 (process_full_comp_unit): ... and here.
1682 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1685 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1687 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1690 2011-07-19 Gary Benson <gbenson@redhat.com>
1692 * infrun.c (struct execution_control_state): New member
1693 stop_func_filled_in.
1694 (clear_stop_func, fill_in_stop_func): New functions.
1695 (handle_inferior_event): Call clear_stop_func rather than
1696 manipulating the execution control state directly.
1697 Call fill_in_stop_func lazily as required rather than
1698 directly calling find_pc_partial_function in all cases.
1700 2011-07-18 Tom Tromey <tromey@redhat.com>
1702 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1703 checking for variable-sized array.
1705 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1707 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1708 of supported languages.
1709 * varobj.c: Add top definitions and basic implementation of the
1710 following callbacks: ada_number_of_children, ada_name_of_variable,
1711 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1712 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1713 (languages): Register Ada-specific callbacks.
1714 (variable_language): Add the Ada case in the language setter switch.
1716 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1718 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1720 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1723 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1724 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1725 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1726 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1727 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1728 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1729 (struct dwarf_expr_context_funcs): New, move here methods from ...
1730 (struct dwarf_expr_context): ... here. New fields funcs.
1731 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1732 (dwarf_expr_ctx_funcs): New.
1733 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1734 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1735 (needs_frame_ctx_funcs): New.
1736 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1738 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1740 * MAINTAINERS (Write After Approval): Add myself to the list.
1742 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1744 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1745 that CIE pointer of an FDE really points to a CIE .
1747 2011-07-15 Hui Zhu <teawater@gmail.com>
1749 * remote.c (remote_get_trace_status): Add comments.
1751 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1753 Code cleanup - constify struct lval_funcs.
1754 * dwarf2loc.c (pieced_value_funcs): Make it const.
1755 * infrun.c (siginfo_value_funcs): Likewise.
1756 * opencl-lang.c (opencl_value_funcs): Likewise.
1757 * valops.c (value_assign, value_ind): Make the funcs variable const.
1758 * value.c (struct value): Make location.computed.funcs target const.
1759 Rearrange the comments.
1760 (allocate_computed_value): Make the funcs parameter target const.
1761 (value_computed_funcs): Return the funcs target const.
1762 (value_free, value_copy, set_value_component_location): Make the funcs
1764 * value.h (allocate_computed_value): Make the funcs parameter target
1766 (value_computed_funcs): Return the funcs target const.
1767 * windows-tdep.c (tlb_value_funcs): Make it const.
1769 2011-07-14 Hui Zhu <teawater@gmail.com>
1771 * remote.c (remote_get_trace_status): Initialize p.
1773 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * remote.c (remote_get_trace_status): New variable ex. Put
1777 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1779 2011-07-13 Tom Tromey <tromey@redhat.com>
1781 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1782 value_from_contents for final conversion.
1784 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1787 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1788 Indent prototypes so they do not get into tags.
1790 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 Code cleanup making also optimized out values lazy.
1793 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1794 allocate_optimized_out_value. Twice.
1795 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1796 * findvar.c (read_var_value): Likewise.
1797 * value.c (allocate_optimized_out_value): New function.
1798 * value.h (allocate_optimized_out_value): New declaration.
1800 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 Fix occasional crash of CTRL-C during DWARF read in.
1803 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1805 2011-07-11 Tom Tromey <tromey@redhat.com>
1807 * regcache.c (struct regcache_descr): Fix typo.
1808 * i387-tdep.c (i387_supply_xsave): Fix typo.
1810 2011-07-11 Tom Tromey <tromey@redhat.com>
1812 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1813 (read_file_scope, read_type_unit_scope): Use it.
1815 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1817 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1820 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1823 * python/python.c: Set gdbpy_should_print_stack default to off.
1824 (set_python): Deprecate maint set python print-stack to
1826 (_initialize_python): Deprecate maint set/show python print-stack.
1827 Add new prefix command, python. Add new setting, print-backtrace.
1828 * NEWS: Document set python print-stack. Document default change.
1830 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1832 * python/py-inferior.c (infpy_dealloc): New function.
1833 (inferior_to_inferior_object): Return a new object, or a
1834 new reference to the existing object.
1835 (find_thread_object): Cleanup references to inferior.
1836 (delete_thread_object): Ditto.
1837 * python/py-infthread.c (create_thread_object): Do not increment
1838 inferior reference count.
1840 2011-07-08 Tom Tromey <tromey@redhat.com>
1842 * dwarf2loc.c (locexpr_regname): New function.
1843 (locexpr_describe_location_piece): Use it.
1844 (disassemble_dwarf_expression): Add per_cu argument. Use
1846 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1847 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1849 (locexpr_describe_location_1): Add per_cu argument.
1850 (locexpr_describe_location): Update.
1851 (loclist_describe_location): Update.
1853 2011-07-08 Tom Tromey <tromey@redhat.com>
1855 * dwarf2expr.c (execute_stack_op): Add QUIT.
1857 2011-07-07 Hui Zhu <teawater@gmail.com>
1860 2011-07-06 Hui Zhu <teawater@gmail.com>
1861 * remote.c (remote_start_remote): Add TRY_CATCH for
1862 remote_get_trace_status.
1863 * tracepoint.c (disconnect_tracing): Ditto.
1865 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1867 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1868 variables as signed, not unsigned.
1870 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1872 * jit.c (jit_inferior_init): Reformat forward declaration.
1874 2011-07-06 Matt Rice <ratmice@gmail.com>
1876 * MAINTAINERS (Write After Approval): Add myself to the list.
1878 2011-07-06 Hui Zhu <teawater@gmail.com>
1880 * remote.c (remote_start_remote): Add TRY_CATCH for
1881 remote_get_trace_status.
1882 * tracepoint.c (disconnect_tracing): Ditto.
1884 2011-07-05 Tom Tromey <tromey@redhat.com>
1886 * symtab.c (operator_chars): Now static.
1887 * linespec.c (operator_chars): Don't declare.
1889 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1891 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1893 2011-07-05 Tom Tromey <tromey@redhat.com>
1895 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1896 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1897 (TYPE_CPLUS_REALLY_JAVA): New macro.
1898 * dwarf2read.c (process_structure_scope): Set
1899 TYPE_CPLUS_REALLY_JAVA.
1901 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1903 * ada-lang.c: Fix typos.
1904 * amd64-tdep.c: Likewise.
1905 * breakpoint.c: Likewise.
1906 * cli/cli-decode.c: Likewise.
1907 * findcmd.c: Likewise.
1908 * inline-frame.c: Likewise.
1909 * mi/mi-main.c: Likewise.
1910 * minsyms.c: Likewise.
1911 * monitor.c: Likewise.
1912 * monitor.h: Likewise.
1913 * prologue-value.c: Likewise.
1914 * reverse.c: Likewise.
1915 * s390-tdep.c: Likewise.
1917 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1919 * jit.c (jit_inferior_init): Forward declare.
1920 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1922 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1924 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1926 2011-07-04 Tristan Gingold <gingold@adacore.com>
1928 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1929 (tcb_fieldno): Add activation_link field.
1930 (get_known_tasks_addr): Moved and rewritten.
1931 (get_tcb_types_info): Set activation_link field.
1932 (read_known_tasks_array): Add parameter. Rewritten.
1933 (read_known_tasks_list): New function.
1934 (read_known_tasks): New function.
1935 (ada_build_task_list): Call read_known_tasks instead of
1936 read_known_tasks_array.
1937 * ravenscar-thread.c: Add first_task_name constant.
1938 (has_ravenscar_runtime): Check for task list too.
1940 2011-07-04 Tristan Gingold <gingold@adacore.com>
1942 * ada-tasks.c: Renames fieldno to actb_fieldno.
1943 (ada_get_task_number): Indentation.
1944 (get_tcb_types_info): Remove all parameters. Write directly
1946 (ptid_from_atcb_common): Adjust.
1947 (read_atcb): Adjust.
1949 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1951 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1953 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1955 * ui-out.c (ui_out_field_core_addr): Mention that the function
1956 description is in the header file.
1957 * ui-out.h (ui_out_field_core_addr): Document function.
1959 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1961 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1962 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1964 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1966 * symtab.c (expand_line_sal): Remove empty line.
1968 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1970 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1971 same way as ELFOSABI_NONE.
1972 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1974 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1976 * breakpoint.c: Fix typos in comments.
1977 * linespec.c: Likewise.
1978 * symtab.c: Likewise.
1980 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1982 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1983 section in separate object files.
1985 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1987 Fix false GCC warning.
1988 * linespec.c (decode_line_1): Initialize values.
1990 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * linespec.c (find_method): Accept the function type automatically only
1993 if it was specified with parameter types.
1995 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 Stop on first linespec terminator instead of eating what we can.
1998 * linespec.c (is_linespec_boundary): New function.
1999 (name_end): Remove function.
2000 (keep_name_info): New parameter on_boundary, replace the body.
2001 (decode_line_1): Provide the parameter to keep_name_info.
2002 (decode_compound): Likewise. Drop the trailing java return type
2005 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2007 Fall back linespec to minimal symbols.
2008 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2009 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2010 (find_method, symbol_found): Change error to cplusplus_error.
2012 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2014 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
2016 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 Tom Tromey <tromey@redhat.com>
2019 * dwarf2read.c (check_physname): New variable.
2020 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2021 (show_check_physname): New function.
2022 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2024 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2026 * machoread.c (macho_symfile_read): Delete OBE comment.
2028 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2030 * machoread.c (struct macho_oso_data): Delete.
2031 (current_oso): Delete.
2032 (macho_relocate_common_syms): New function, mostly extracted
2034 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2035 Remove code that sets and unset current_oso.
2036 (macho_symfile_relocate): Delete handling of common symbols,
2037 now moved to macho_relocate_common_syms.
2039 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2041 * darwin-nat.c (darwin_ptrace): Add documentation.
2042 Set errno to zero before calling ptrace. If ptrace returns
2043 -1 and errno is zero, then change then return zero.
2044 (darwin_kill_inferior): Issue a warning instead of triggering
2045 a failed assertion when the PT_KILL ptrace operations returned
2048 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2050 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2051 only when inf->private->no_ptrace.
2053 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2055 * ada-lang.c (print_it_exception): Print temporary catchpoints
2056 as "Temporary catchpoint".
2057 (print_mention_exception): Likewise.
2059 2011-07-01 Tom Tromey <tromey@redhat.com>
2061 * jv-lang.c (java_language_defn): Use java_printchar,
2063 (java_get_encoding): New function.
2064 (java_emit_char): Use generic_emit_char.
2065 (java_printchar): New function.
2066 (java_printstr): Likewise.
2068 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2070 * ada-typeprint.c (print_record_type): If unable to decode
2071 the name of the parent type, use the encoded name.
2073 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2075 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2076 pointer to constrained packed array type output.
2077 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2078 packed array output.
2080 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2082 * ada-typeprint.c (print_array_type): removed if condition on show
2083 being negative for bounds printing.
2085 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2087 * ada-lang.c (ada_identical_enum_types_p): New function.
2088 (symbols_are_identical_enums): New function.
2089 (remove_extra_symbols): Do nothing if NSYMS < 2.
2090 Use symbols_are_identical_enums.
2092 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2094 * ada-valprint.c (ada_value_print): Handle typedefs.
2096 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2098 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2100 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2102 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2103 (decode_constrained_packed_array): Likewise.
2104 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2106 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2108 * ada-exp.y (convert_char_literal): Handle typedef types.
2110 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2112 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2114 2011-06-30 Tom Tromey <tromey@redhat.com>
2116 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2117 * valops.c (find_overload_match): Call do_cleanups on early exit
2119 * solib.c (solib_find): Call do_cleanups on early exit path.
2121 2011-06-30 Tom Tromey <tromey@redhat.com>
2123 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2124 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2125 return paths. Defer final do_cleanups until last return.
2126 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2129 2011-06-30 Tom Tromey <tromey@redhat.com>
2131 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2133 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2135 * MAINTAINERS (Write After Approval): Add myself to the list.
2137 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 Disable epilogue unwinders on recent GCCs.
2140 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2141 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2142 * dwarf2read.c (process_full_comp_unit): Initialize
2143 EPILOGUE_UNWIND_VALID.
2144 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2145 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2146 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2148 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2150 Code cleanup - reformatting.
2151 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2152 (producer_is_gcc_ge_4): ... here, change the return value.
2153 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2156 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Fix non-only rename list for Fortran modules import.
2159 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2160 cp_add_using_directive caller.
2161 (cp_add_using_directive): New parameter excludes, describe it. New
2162 variables ix and param. Compare if also excludes match. Allocate NEW
2163 with variable size, initialize EXCLUDES there.
2164 (cp_lookup_symbol_imports): New variable excludep, test
2165 current->EXCLUDES with it.
2166 * cp-support.h: Include vec.h.
2167 (struct using_direct): New field excludes, describe it.
2168 (DEF_VEC_P (const_char_ptr)): New.
2169 (cp_add_using_directive): New parameter excludes.
2170 * defs.h (const_char_ptr): New typedef.
2171 * dwarf2read.c (read_import_statement): New variables child_die,
2172 excludes and cleanups, read in excludes.
2173 (read_namespace): Adjust the cp_add_using_directive caller.
2175 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2178 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2179 negative comparisons.
2181 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2183 * mi/mi-main.c (mi_cmd_list_features): Emit
2184 breakpoint-notifications.
2186 2011-06-29 Tom Tromey <tromey@redhat.com>
2189 * valprint.h (generic_emit_char, generic_printstr): Declare.
2190 * valprint.c (wchar_printable, append_string_as_wide)
2191 (print_wchar): Move from c-lang.c.
2192 (generic_emit_char): New function; mostly taken from c_emit_char.
2193 (generic_printstr): New function; mostly taken from c_printstr.
2194 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2195 represented as arrays.
2196 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2198 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2199 identically to TYPE_CODE_INT.
2200 * f-lang.c (f_get_encoding): New function.
2201 (f_emit_char): Use generic_emit_char.
2202 (f_printchar): Replace comment.
2203 (f_printstr): Use generic_printstr.
2204 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2205 "character" types specially.
2206 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2208 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2210 (c_emit_char): Call generic_emit_char.
2211 (c_printstr): Call generic_printstr.
2213 2011-06-29 Gary Benson <gbenson@redhat.com>
2215 * breakpoint.c (bpstat_what): Removed duplicated case.
2217 2011-06-28 Tom Tromey <tromey@redhat.com>
2219 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2221 2011-06-27 Tom Tromey <tromey@redhat.com>
2223 * valops.c (find_overload_match): Call do_cleanups before early
2225 * top.c (execute_command): Call do_cleanups before early return.
2226 (command_loop): Likewise.
2227 * stack.c (backtrace_command): Make a null cleanup early. Don't
2228 conditionally call do_cleanups.
2229 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2231 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2232 so cleanups are always run.
2233 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2234 * findcmd.c (parse_find_args): Call do_cleanups on early return
2236 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2237 Don't conditionally call do_cleanups.
2238 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2241 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2243 * MAINTAINERS (Write After Approval): Use default email address.
2245 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2247 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2249 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2251 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2252 saved_regs_mask and copied_regs_mask fields.
2253 (sparc_record_save_insn): New prototype.
2254 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2255 (sparc_record_save_insn): New function.
2256 (sparc_analyze_prologue): Add head comment. Recognize store insns
2257 of call-saved registers. Use OFFSET consistently. Recognize flat
2258 frames and cache their settings.
2259 (sparc32_skip_prologue): Handle flat frames.
2260 (sparc_frame_cache): Add frame_offset to the base address.
2261 (sparc32_frame_cache): Adjust to new frame description.
2262 (sparc32_frame_prev_register): Likewise.
2263 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2264 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2265 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2266 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2267 frame by calling sparc_record_save_insn.
2268 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2269 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2270 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2272 2011-06-27 Tristan Gingold <gingold@adacore.com>
2274 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2275 field by map_addr and map_len.
2276 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2277 (munmap_section_buffer): Likewise.
2279 2011-06-24 Tom Tromey <tromey@redhat.com>
2281 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2282 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2283 * python/python.c (gdbpy_parameter): Make 'arg' const.
2284 (execute_gdb_command): Likewise.
2285 (gdbpy_decode_line): Likewise. Copy it.
2286 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2287 (gdbpy_write): Make 'arg' const.
2288 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2290 (gdbpy_lookup_type): Likewise.
2291 * python/py-prettyprint.c (print_children): Make 'name' const.
2292 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2293 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2295 * python/py-function.c (fnpy_init): Make 'name' const.
2296 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2297 (gdbpy_string_to_argv): Make 'input' const.
2298 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2300 * gdbtypes.h (lookup_typename): Update.
2301 * gdbtypes.c (lookup_typename): Make 'name' const.
2302 (lookup_struct): Likewise.
2303 (lookup_union): Likewise.
2304 (lookup_enum): Likewise.
2306 2011-06-24 Tom Tromey <tromey@redhat.com>
2308 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2309 gdb_thread_db.h. Move all common/ entries to be together.
2310 (TAGS): Don't depend on DEPFILES.
2312 2011-06-23 Yao Qi <yao@codesourcery.com>
2314 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2315 * remote.c (remote_start_remote): ... here.
2316 * monitor.c (monitor_open): ... here.
2318 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2320 * gdbtypes.c (append_composite_type_field_aligned): Fix
2321 calculation of bit position based on alignment.
2323 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2325 * breakpoint.c (bpstat_stop_status): Call the check_status
2326 breakpoint_ops method.
2327 (print_one_breakpoint_location): Also print the condition for Ada
2328 exception catchpoints.
2329 (allocate_bp_location): New, factored out from
2330 allocate_bp_location.
2331 (allocate_bp_location): Adjust. Call the owner breakpoint's
2332 allocate_location method, if there is one.
2333 (free_bp_location): Call the locations's dtor method, if there is
2335 (init_raw_breakpoint_without_location): New breakpoint_ops
2337 (set_raw_breakpoint_without_location): Adjust.
2338 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2339 (set_raw_breakpoint): Adjust.
2340 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2341 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2342 re_set and check_status methods.
2343 (init_catchpoint): Don't memset, initialize thread, addr_string
2344 and enable_state. Pass the ops down to init_raw_breakpoint.
2345 (install_catchpoint): Rename to ...
2346 (install_breakpoint): ... this, and make extern.
2347 (create_fork_vfork_event_catchpoint): Adjust.
2348 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2349 re_set and check_status methods.
2350 (create_syscall_event_catchpoint): Adjust.
2351 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2352 (masked_watchpoint_breakpoint_ops): Install NULL
2353 allocate_location, re_set and check_status methods.
2354 (catch_exec_command_1): Adjust.
2355 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2356 re_set and check_status methods.
2357 (create_ada_exception_breakpoint): Rename to ...
2358 (init_ada_exception_breakpoint): ... this. Add a struct
2359 breakpoint parameter, and delete the exp_string, cond_string and
2360 cond parameters. Use init_raw_breakpoint, and don't install or
2361 mention the breakpoint yet. Don't clear breakpoint fields that
2362 init_raw_breakpoint already clears.
2363 (re_set_breakpoint): Delete, split into ...
2364 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2366 (breakpoint_re_set_one): Call the breakpoint's
2367 breakpoint_ops->re_set implementation, if there's one. Adjust.
2368 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2369 (struct bp_location_ops): New type.
2370 (struct bp_location): New field `ops'.
2371 (struct breakpoint_ops): New `allocate_location', `re_set' and
2372 `check_status' fields. Make `breakpoint_hit''s description match
2374 (init_bp_location): Declare.
2375 (breakpoint_re_set_default): Declare.
2376 (create_ada_exception_breakpoint): Rename to ...
2377 (init_ada_exception_breakpoint): ... this. Add a struct
2378 breakpoint parameter, and delete the exp_string, cond_string and
2380 (install_breakpoint): Declare.
2381 * ada-lang.c: Include exceptions.h.
2382 <Ada exceptions description>: Update.
2383 (struct ada_catchpoint_location): New type.
2384 (ada_catchpoint_location_dtor): New function.
2385 (ada_catchpoint_location_ops): New global.
2386 (ada_catchpoint): New type.
2387 (create_excep_cond_exprs): New function.
2388 (dtor_exception, allocate_location_exception, re_set_exception)
2389 (should_stop_exception, check_status_exception): New functions.
2390 (print_one_exception, print_mention_exception)
2391 (print_recreate_exception): Adjust.
2392 (dtor_catch_exception, allocate_location_catch_exception)
2393 (re_set_catch_exception, check_status_catch_exception): New
2395 (catch_exception_breakpoint_ops): Install them.
2396 (dtor_catch_exception_unhandled)
2397 (allocate_location_catch_exception_unhandled)
2398 (re_set_catch_exception_unhandled)
2399 (check_status_catch_exception_unhandled): New functions.
2400 (catch_exception_unhandled_breakpoint_ops): Install them.
2401 (dtor_catch_assert, allocate_location_catch_assert)
2402 (re_set_catch_assert, check_status_catch_assert): New functions.
2403 (catch_assert_breakpoint_ops): Install them.
2404 (ada_exception_catchpoint_p): Delete.
2405 (catch_ada_exception_command_split)
2406 (ada_exception_catchpoint_cond_string): Rename exp_string
2407 parameter to excep_string. Adjust.
2408 (ada_parse_catchpoint_condition): Delete.
2409 (ada_exception_sal): Rename the exp_string parameter to
2410 excep_string. Delete the cond_string and cond parameters.
2412 (ada_decode_exception_location): Rename the exp_string parameter
2413 to excep_string. Delete the cond_string and cond parameters.
2415 (create_ada_exception_catchpoint): New function.
2416 (catch_ada_exception_command, ada_decode_assert_location)
2417 (catch_assert_command): Adjust.
2418 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2420 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2422 * ada-lang.c: Include arch-utils.h.
2423 (ada_decode_exception_location): Make static.
2424 (catch_ada_exception_command): Moved here from breakpoint.c.
2425 (ada_decode_assert_location): Make static.
2426 (catch_assert_command): Moved here from breakpoint.c.
2427 (_initialize_ada_lang): Install the exception and assert
2428 catchpoint commands here.
2429 * ada-lang.h (ada_decode_exception_location)
2430 (ada_decode_assert_location): Delete declarations.
2431 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2433 (create_ada_exception_breakpoint): Make extern.
2434 (catch_ada_exception_command, catch_assert_command): Moved to
2436 (add_catch_command): Make extern.
2437 (_initilize_breakpoint): Don't install the exception and assert
2438 catchpoint commands here.
2439 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2441 (add_catch_command, create_ada_exception_breakpoint): Declare.
2443 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2445 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2446 the breakpoint to the breakpoint chain here.
2447 (set_raw_breakpoint_without_location): Add the breakpoint to the
2448 breakpoint chain here.
2449 (init_raw_breakpoint): Adjust comments.
2450 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2452 (init_catchpoint): Don't set the catchpoint's breakpoint number
2454 (install_catchpoint): New function.
2455 (create_fork_vfork_event_catchpoint)
2456 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2457 use install_catchpoint.
2459 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2461 * breakpoint.c (create_catchpoint_without_mention)
2462 (create_catchpoint): Delete.
2464 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2466 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2467 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2468 reference to exec_pathname.
2469 (struct exec_catchpoint): New type.
2470 (dtor_catch_exec): New function.
2471 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2472 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2473 (catch_exec_command_1): Adjust to use init_catchpoint.
2474 (delete_breakpoint): Remove reference to exec_pathname.
2476 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2478 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2479 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2480 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2481 reference to syscalls_to_be_caught.
2482 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2484 (struct syscall_catchpoint): New type.
2485 (dtor_catch_syscall): New function.
2486 (insert_catch_syscall, remove_catch_syscall)
2487 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2488 (print_recreate_catch_syscall): Adjust.
2489 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2490 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2491 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2492 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2493 (masked_watchpoint_breakpoint_ops)
2494 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2495 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2496 there is one. Remove references to syscalls_to_be_caught.
2497 (catching_syscall_number): Adjust.
2498 * ada-lang.c (catch_exception_breakpoint_ops)
2499 (catch_exception_unhandled_breakpoint_ops)
2500 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2502 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2504 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2506 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2507 reference to forked_inferior_pid.
2508 (struct fork_catchpoint): New type.
2509 (breakpoint_hit_catch_fork, print_it_catch_fork)
2510 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2511 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2512 (create_fork_vfork_event_catchpoint): Adjust to use
2515 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2517 * breakpoint.c (add_to_breakpoint_chain)
2518 (init_raw_breakpoint_without_location): New functions, factored
2520 (set_raw_breakpoint_without_location): ... this one.
2521 (init_raw_breakpoint): New function, factored out from
2522 set_raw_breakpoint and adjusted to use
2523 init_raw_breakpoint_without_location.
2524 (set_raw_breakpoint): Adjust.
2525 (init_catchpoint): New function, factored out from
2526 create_catchpoint_without_mention and adjusted to use
2527 init_raw_breakpoint.
2528 (create_catchpoint_without_mention): Adjust.
2530 2011-06-22 Tom Tromey <tromey@redhat.com>
2532 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2533 argument of 0 specially.
2535 2011-06-22 Yao Qi <yao@codesourcery.com>
2537 * infrun.c (handle_inferior_event): Remove write-only local variable
2538 `sw_single_step_trap_p'.
2540 2011-06-20 Tom Tromey <tromey@redhat.com>
2542 * symtab.c (lookup_language_this): End loop if block is NULL.
2544 2011-06-17 Tom Tromey <tromey@redhat.com>
2546 * valops.c (value_of_this): Use lookup_language_this.
2547 * symtab.h (lookup_language_this): Declare.
2548 * symtab.c (lookup_language_this): New function.
2549 (lookup_symbol_aux): Use lookup_language_this.
2550 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2552 2011-06-17 Tom Tromey <tromey@redhat.com>
2554 * value.h (value_of_this): Update.
2555 (value_of_local): Remove.
2556 * valops.c (value_of_this): Rename from value_of_local. Change
2558 * p-exp.y (exp): Update.
2559 (variable): Likewise.
2560 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2562 2011-06-17 Tom Tromey <tromey@redhat.com>
2564 * valops.c (value_of_local): Complain if NAME is NULL.
2565 * std-operator.def (OP_OBJC_SELF): Remove.
2566 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2567 * objc-exp.y (name_not_typename): Use OP_THIS.
2568 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2570 <OP_OBJC_SELF>: Remove.
2571 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2573 2011-06-16 Tristan Gingold <gingold@adacore.com>
2575 * python/py-events.h (gdb_py_events): Make it extern.
2576 * python/py-evtregistry.c (gdb_py_events): Declare.
2578 2011-06-16 Hui Zhu <teawater@gmail.com>
2580 * remote.c (remote_trace_set_readonly_regions): Add check for
2581 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2584 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2586 * arm-linux-tdep.c: Include "auxv.h".
2588 (ARM_LINUX_SIZEOF_VFP): Define.
2589 (arm_linux_supply_vfp): New function.
2590 (arm_linux_collect_vfp): Likewise.
2591 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2592 (arm_linux_fpa_regset_sections): New variable.
2593 (arm_linux_vfp_regset_sections): Likewise.
2594 (arm_linux_core_read_description): New function.
2595 (arm_linux_init_abi): Install arm_linux_core_read_description and
2596 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2597 appropriate for the architecture.
2598 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2599 (tdesc_arm_with_m): Declare.
2600 (tdesc_arm_with_iwmmxt): Likewise.
2601 (tdesc_arm_with_vfpv2): Likewise.
2602 (tdesc_arm_with_vfpv3): Likewise.
2603 (tdesc_arm_with_neon): Likewise.
2604 * arm-linux-nat.c: Move features/*.c includes ...
2605 * arm-tdep.c: ... here.
2606 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2607 target description data structures ...
2608 * arm-tdep.c (_initialize_arm_tdep): ... here.
2609 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2610 HWCAP_VFPv3D16): Move definitions ...
2611 * arm-linux-tdep.h: ... here.
2613 2011-06-15 Hui Zhu <teawater@gmail.com>
2615 * remote.c (remote_trace_set_readonly_regions): Add a check for
2618 2011-06-14 Tom Tromey <tromey@redhat.com>
2620 * coffread.c (coffread_objfile): Rename from current_objfile.
2621 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2622 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2624 2011-06-14 Tom Tromey <tromey@redhat.com>
2626 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2627 (class_symtab): Remove.
2628 (jv_dynamics_progspace_key): New global.
2629 (jv_per_objfile_free): Reset program space data. Update assert.
2630 Don't clear globals.
2631 (get_dynamics_objfile): Use and set program space data.
2632 (get_java_class_symtab): Use get_dynamics_objfile.
2633 (add_class_symbol): Likewise.
2634 (java_link_class_type): Likewise.
2635 (java_object_type, jv_clear_object_type, set_java_object_type):
2637 (get_java_object_type): Update. Don't cache result.
2638 (is_object_type): Don't call set_java_object_type.
2639 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2640 initialize jv_dynamics_progspace_key.
2642 2011-06-14 Tom Tromey <tromey@redhat.com>
2644 * symtab.h (current_objfile): Don't declare.
2645 * objfiles.h (current_objfile): Don't declare.
2646 * objfiles.c (current_objfile): Remove.
2647 * mdebugread.c (current_objfile): New file-scope global.
2648 * dbxread.c (current_objfile): New file-scope global.
2649 * coffread.c (current_objfile): New file-scope global.
2651 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2653 * top.h (line): Rename to ...
2654 (saved_command_line): ... this.
2655 (linesize): Rename to ...
2656 (saved_command_line_size): ... this.
2657 * top.c (line): Rename to ...
2658 (saved_command_line): ... this.
2659 (linesize): Rename to ...
2660 (saved_command_line_size): ... this.
2661 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2662 * event-top.c (command_line_handler): Adjust.
2663 * main.c (captured_main): Adjust.
2665 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2667 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2668 get_frame_func instead of get_frame_pc to determine the code
2669 address used to construct the frame ID.
2670 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2671 (i386_epilogue_frame_this_id): Likewise.
2672 (i386_epilogue_frame_prev_register): New function.
2673 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2674 (i386_stack_tramp_frame_sniffer): Fix coding style.
2675 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2676 (i386_gdbarch_init): Fix comments.
2678 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2680 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2681 instruction when walking back through the instruction stream.
2683 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2685 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2686 fullname parameters order.
2688 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2691 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2693 * psymtab.c (map_symbol_filenames_psymtab)
2694 (map_partial_symbol_filenames): Likewise.
2695 * psymtab.h: Include symfile.h.
2696 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2697 * symfile.h (symbol_filename_ftype): New.
2698 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2699 map_symbol_filenames, clarify more the naming in comment.
2701 2011-06-07 Doug Evans <dje@google.com>
2703 * cc-with-index.sh: Fix typos in comment.
2704 Look for ../../gdb, for fullname.exp.
2706 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2707 Pedro Alves <pedro@codesourcery.com>
2709 * cli/cli-cmds.c (shell_escape): Use waitpid.
2710 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2712 2011-06-07 Tristan Gingold <gingold@adacore.com>
2714 * xcoffread.c (dwarf2_xcoff_names): New variable.
2715 (aix_process_linenos): Add a guard.
2716 (xcoff_symfile_finish): Free dwarf2.
2717 (xcoff_initial_scan): Add dwarf2 support.
2719 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2721 * infcall.c (run_inferior_call): Don't mask async. Instead force
2722 a synchronous wait, if the target can async.
2724 * target.h (struct target_ops): Delete to_async_mask.
2725 (target_async_mask): Delete.
2726 * target.c (update_current_target): Delete references to to_async_mask.
2727 * linux-nat.c (linux_nat_async_mask_value): Delete.
2728 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2729 to linux_nat_async_mask_value.
2730 (linux_nat_async_mask): Delete.
2731 (linux_nat_async, linux_nat_close): Remove references to
2732 linux_nat_async_mask_value.
2733 * record.c (record_async_mask_value): Delete.
2734 (record_async): Remove references to record_async_mask_value.
2735 (record_async_mask): Delete.
2736 (record_can_async_p, record_is_async_p): Remove references to
2737 record_async_mask_value.
2738 (init_record_ops, init_record_core_ops): Remove references to
2740 * remote.c (remote_async_mask_value): Delete.
2741 (init_remote_ops): Remove reference to remote_async_mask.
2742 (remote_can_async_p, remote_is_async_p): Remove references to
2743 remote_async_mask_value.
2744 (remote_async): Remove references to remote_async_mask_value.
2745 (remote_async_mask): Delete.
2747 * infrun.c (fetch_inferior_event): Don't claim registers changed
2748 if the current thread is already not executing.
2750 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2752 From Stephen Kitt <steve@sk2.org>
2753 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2754 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2756 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2758 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2759 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2761 2011-06-03 Tom Tromey <tromey@redhat.com>
2763 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2765 * python/py-exitedevent.c (create_exited_event_object): Change
2766 type of 'exit_code'. Optionally add exit_code attribute.
2767 (emit_exited_event): Change type of 'exit_code'.
2768 * python/py-event.h (emit_exited_event): Update.
2769 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2770 * infrun.c (handle_inferior_event): Set exit code fields on
2772 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2774 * inferior.c (exit_inferior_1): Initialize new fields.
2776 2011-06-03 Tom Tromey <tromey@redhat.com>
2778 * dwarf2expr.c (get_signed_type): New function.
2779 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2781 2011-06-02 Keith Seitz <keiths@redhat.com>
2783 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2785 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2787 * top.h (simplified_command_loop): Delete declaration.
2789 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2791 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2792 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2794 2011-06-01 Yao Qi <yao@codesourcery.com>
2796 * objfiles.h (obj_section_addr): Update reference to objfile from
2798 (obj_section_endaddr): Likewise.
2800 2011-06-01 Daniel Jacobowitz <drow@false.org>
2802 * MAINTAINERS: Update my email address and affiliation. Also
2803 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2805 2010-05-31 Keith Seitz <keiths@redhat.com>
2808 * linespec.c (get_search_block): New function.
2809 (find_methods): Add FILE_SYMTATB parameter and use it and
2810 get_search_block to pass an appropriate block to
2811 lookup_symbol_in_namespace.
2812 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2813 Check if *ARGPTR starts with a filename first.
2814 If it does, call locate_first_half again to locate the next
2815 "first half" of the linespec.
2816 Pass FILE_SYMTATB to decode_objc and decode_compound.
2817 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2818 (locate_first_half): Stop on the first colon seen.
2819 (decode_compound): Add FILE_SYMTAB parameter.
2820 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2821 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2822 get_search_block with lookup_symbol.
2823 (find_method): Add FILE_SYMTAB parameter and pass it to
2825 (decode_objc): Use get_search_block.
2827 2010-05-31 Keith Seitz <keiths@redhat.com>
2830 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2831 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2832 and CP_ANONYMOUS_NAMESPACE_LEN.
2833 (cp_is_anonymous): Likewise.
2834 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2835 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2836 * dwarf2read.c (namespace_name): Likewise.
2837 (fixup_partial_die): Likewise.
2838 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2839 seen in the input, keep it.
2841 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2843 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2844 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2845 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2846 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2847 * remote.c (_initialize_remote): Register
2848 async_remote_interrupt_twice directly as
2849 sigint_remote_twice_token event.
2851 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2853 * target.h (enum inferior_event_type): Delete INF_ERROR.
2854 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2856 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2858 * interps.c (interp_set): Don't cancel continuations.
2860 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2862 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2864 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2866 * continuations.h (continuation_ftype): Add `err' parameter.
2867 Document parameters.
2868 (do_all_continuations, do_all_continuations_thread)
2869 (do_all_intermediate_continuations)
2870 (do_all_intermediate_continuations_thread)
2871 (do_all_inferior_continuations): Add `err' parameter.
2872 * continuations.c (do_my_continuations_1, do_my_continuations)
2873 (do_all_inferior_continuations, do_all_continuations_ptid)
2874 (do_all_continuations_thread_callback)
2875 (do_all_continuations_thread, do_all_continuations)
2876 (do_all_intermediate_continuations_thread_callback)
2877 (do_all_intermediate_continuations_thread)
2878 (do_all_intermediate_continuations): Add `err' parameter, and pass
2879 it down all the way to the continuations proper.
2880 * inf-loop.c (inferior_event_handler): If fetching an inferior
2881 event throws an error, don't pop the target, and still call the
2882 continuations, but with `err' set. Adjust all other continuation
2884 * breakpoint.c (until_break_command_continuation): Add `err'
2886 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2887 issue another step if `err' is set.
2888 (struct until_next_continuation_args): New.
2889 (until_next_continuation): Add `err' parameter. Adjust.
2890 (until_next_command): Adjust.
2891 (struct finish_command_continuation_args): Add `thread' field.
2892 (finish_command_continuation): Add `err' parameter. Handle it.
2893 (finish_forward): Adjust.
2894 (attach_command_continuation): Add `err' parameter. Handle it.
2895 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2896 cancel the continuations.
2897 * interps.c (interp_set): Adjust to cancel the continuations.
2898 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2899 continuations rather than discarding.
2900 (free_thread): Don't clear thread inferior resources here.
2901 (delete_thread_1): Do it here instead. And do it before removing
2902 the thread from the threads list. Tag the thread as exited before
2903 clearing thread inferior resources.
2905 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2907 * infcall.c (call_function_by_hand): Rephrase error message.
2909 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2911 * defs.h (struct thread_info, struct inferior): Delete forward
2913 * breakpoint.h (struct thread_info): New forward declaration.
2914 * observer.sh (struct inferior): New forward declaration.
2915 * python/python-internal.h (struct inferior): New forward
2918 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2920 * defs.h (struct continuation, continuation_ftype)
2921 (continuation_free_arg_ftype, add_continuation)
2922 (do_all_continuations, do_all_continuations_thread)
2923 (discard_all_continuations, discard_all_continuations_thread)
2924 (add_intermediate_continuation, do_all_intermediate_continuations)
2925 (do_all_intermediate_continuations_thread)
2926 (discard_all_intermediate_continuations)
2927 (discard_all_intermediate_continuations_thread)
2928 (add_inferior_continuation, do_all_inferior_continuations)
2929 (discard_all_inferior_continuations): Move to ...
2930 * continuations.h: ... this new file.
2931 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2932 infcmd.c, inferior.c, infrun.c, interps.c: Include
2935 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2936 Doug Evans <dje@google.com>
2938 Fix PR 10970, PR 12702.
2939 * linux-nat.c (linux_lwp_is_zombie): New function.
2940 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2941 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2943 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2945 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2947 (add_continuation, add_intermediate_continuation)
2948 (add_inferior_continuation): Use them.
2949 * continuations.c (struct continuation): Use them.
2950 (make_continuation_ftype): Delete.
2951 (make_continuation, add_inferior_continuation, add_continuation)
2952 (add_intermediate_continuation): Use continuation_ftype and
2953 continuation_free_arg_ftype. Rename parameters to shorter names.
2955 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2957 * continuations.c (make_continuation): Make it return void.
2958 (do_my_continuations): Rename to ...
2959 (do_my_continuations_1): ... this. Remove old_chain parameter and
2961 (do_my_continuations): New.
2962 (discard_my_continuations): Rename to ...
2963 (discard_my_continuations_1): ... this. Remove old_chain
2964 parameter and adjust.
2965 (discard_my_continuations): New.
2966 (add_inferior_continuation): Simplify.
2967 (do_all_inferior_continuations): Reimplement on top
2968 do_my_continuations.
2969 (discard_all_inferior_continuations): Simplify.
2970 (add_continuation): Simplify.
2971 (do_all_continuations_ptid): Simplify.
2972 (discard_all_continuations_thread_callback): Simplify.
2973 (add_intermediate_continuation): Simplify.
2974 (discard_all_intermediate_continuations_thread_callback):
2977 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2979 * utils.c (struct continuation, add_continuation)
2980 (add_inferior_continuation)
2981 (do_all_inferior_continuations, discard_all_inferior_continuations)
2982 (restore_thread_cleanup, do_all_continuations_ptid)
2983 (do_all_continuations_thread_callback)
2984 (do_all_continuations_thread, do_all_continuations)
2985 (discard_all_continuations_thread_callback)
2986 (discard_all_continuations_thread, discard_all_continuations)
2987 (add_intermediate_continuation)
2988 (do_all_intermediate_continuations_thread_callback)
2989 (do_all_intermediate_continuations_thread)
2990 (do_all_intermediate_continuations)
2991 (discard_all_intermediate_continuations_thread_callback)
2992 (discard_all_intermediate_continuations_thread)
2993 (discard_all_intermediate_continuations): Move to ...
2994 * continuations.c: ... this new file, and adjust to no longer
2995 implement continuations on top of cleanups.
2996 * Makefile.in (SFILES): Add continuations.c.
2997 (COMMON_OBS): Add continuations.o.
2999 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3001 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3002 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3003 Internal error on invalid values.
3004 * reverse.c: Don't handle EXEC_ERROR.
3005 * mi/mi-main.c: Don't handle EXEC_ERROR.
3007 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3009 * record.c: Include event-loop.h, inf-loop.h.
3010 (record_beneath_to_async): New global.
3011 (tmp_to_async): New global.
3012 (record_async_inferior_event_token): New global.
3013 (record_open_1): Don't error out if async is enabled.
3014 (record_open): Handle to_async. Create an async event source in
3016 (record_close): Delete the async event source.
3017 (record_resumed): New global.
3018 (record_execution_dir): New global.
3019 (record_resume, record_core_resume): Set them. Register the
3020 target on the event loop.
3021 (record_wait): Rename to ...
3022 (record_wait_1): ... this. Add more debug output. Handle
3023 TARGET_WNOHANG, and the target beneath returning
3024 TARGET_WAITKIND_IGNORE.
3025 (record_wait): Reimplement on top of record_wait_1.
3026 (record_async_mask_value): New global.
3027 (record_async, record_async_mask, record_can_async_p)
3028 (record_is_async_p, record_execution_direction): New functions.
3029 (init_record_ops, init_record_core_ops): Install new methods.
3030 * infrun.c (fetch_inferior_event): Temporarily switch the global
3031 execution direction to the direction the target was going.
3032 (execution_direction): Change type to int.
3033 * target.c (default_execution_direction): New function.
3034 (update_current_target): Inherit and de_fault
3035 to_execution_direction.
3036 * target.h (struct target_ops) <to_execution_direction>: New
3038 (target_execution_direction): New macro.
3039 * inferior.h (execution_direction): Change type to int.
3041 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3043 * infcall.c (call_function_by_hand): Don't allow calling functions
3044 in reverse execution mode.
3046 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3048 * infcmd.c (finish_command): Allow async finish in reverse.
3050 2011-05-26 Yao Qi <yao@codesourcery.com>
3052 * gdb_thread_db.h: Delete. Move to ...
3053 * common/gdb_thread_db.h: ... here.
3055 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3057 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3058 function's entry point instead of a manually managed momentary
3059 breakpoint, and only ever issue one proceed call.
3060 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3061 doing a reverse-finish, switch to stepi mode, to do another step.
3062 (insert_step_resume_breakpoint_at_sal): Make public.
3063 (normal_stop): No need to save function value return registers if
3065 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3067 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3069 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3070 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3071 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3073 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3074 step-resume breakpoints.
3075 (print_it_typical): Handle bp_hp_step_resume.
3076 (bpstat_what): Ditto.
3077 (bptype_string): Ditto.
3078 (print_one_breakpoint_location): Ditto.
3079 (allocate_bp_location): Ditto.
3081 (breakpoint_re_set_one): Ditto.
3082 * infrun.c (handle_inferior_event): Adjust. Split
3083 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3084 BPSTAT_WHAT_HP_STEP_RESUME.
3085 (insert_step_resume_breakpoint_at_sal): Rename to ...
3086 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3087 parameter. Handle it.
3088 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3089 insert_step_resume_breakpoint_at_sal_1.
3090 (insert_step_resume_breakpoint_at_frame): Rename to ...
3091 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3092 set a high-priority step-resume breakpoint.
3093 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3094 (insert_step_resume_breakpoint_at_caller): Ditto.
3096 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3098 * breakpoint.c (iterate_over_related_breakpoints): New.
3099 (do_map_delete_breakpoint): New.
3100 (delete_command): Pass do_map_delete_breakpoint to
3101 map_breakpoint_numbers.
3102 (do_disable_breakpoint): New.
3103 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3105 (do_enable_breakpoint): Rename to ...
3106 (enable_breakpoint_disp): ... this.
3107 (enable_breakpoint): Adjust.
3108 (do_enable_breakpoint): New.
3109 (enable_once_breakpoint): Delete.
3110 (do_map_enable_breakpoint): New.
3111 (do_map_enable_once_breakpoint): New.
3112 (enable_once_command, enable_delete_command)
3113 (delete_trace_command): Iterate over the breakpoint's related
3116 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3118 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3119 for ALPHA_ZERO_REGNUM.
3120 (alpha_supply_int_regs): Explicitly supply zero as the value for
3121 ALPHA_ZERO_REGNUM in the register cache.
3122 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3124 2011-05-26 Yao Qi <yao@codesourcery.com>
3126 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3128 2011-05-26 Tristan Gingold <gingold@adacore.com>
3130 * symfile.h (struct dwarf2_section_names): New type.
3131 (struct dwarf2_debug_sections): New type.
3132 (dwarf2_has_info): Add parameter.
3133 * dwarf2read.c (dwarf2_elf_names): New variable.
3134 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3135 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3136 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3137 (dwarf2_has_info): Add names parameter. Pass names
3138 to dwarf2_locate_sections.
3139 (section_is_p): Rewrite using the names parameter.
3140 (dwarf2_locate_sections): Use section names from the names parameter.
3141 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3142 * elfread.c (read_psyms): Ditto.
3143 * machoread.c (macho_symfile_read): Ditto.
3145 2011-05-25 Andreas Schwab <schwab@redhat.com>
3148 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3150 2011-05-24 Keith Seitz <keiths@redhat.com>
3153 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3154 (decode_compound): Unconditionally call keep_name_info.
3156 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3158 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3159 scope, clear its command list.
3160 (map_breakpoint_numbers): Don't walk the related breakpoints list
3163 2011-05-24 Tom Tromey <tromey@redhat.com>
3165 * MAINTAINERS: Move Jim Blandy to past maintainers.
3167 2011-05-24 Tristan Gingold <gingold@adacore.com>
3169 * symfile.h (enum dwarf2_section_enum): New type.
3170 (dwarf2_get_section_info): New prototype.
3171 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3172 section_name by sect. Use a switch to select the info.
3173 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3174 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3176 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3178 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3179 shared library event breakpoint if there's no execution.
3181 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3183 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3184 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3186 2011-05-23 Tom Tromey <tromey@redhat.com>
3188 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3191 2011-05-23 Doug Evans <dje@google.com>
3193 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3194 entry for RuntimeError to doc string.
3196 2011-05-23 Jerome Guitton <guitton@adacore.com>
3198 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3199 sequence for probing loops.
3201 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3203 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3206 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3208 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3209 zero as the value for %g0 in the register cache.
3210 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3211 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3213 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3215 * infrun.c (proceed): Set previous_inferior_ptid here.
3216 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3217 inferior_ptid, not null_ptid.
3218 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3219 (fetch_inferior_event): Nor here.
3221 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3223 * inf-loop.c (inferior_event_handler): Only output a message if
3226 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3228 * MAINTAINERS: Update my e-mail address.
3230 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3232 * infrun.c (proceed): Switch the inferior event loop to
3233 INF_EXEC_COMPLETE if the target refused to resume from a
3236 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3238 * infcmd.c: Include "inf-loop.h".
3239 (step_once): When stepping into an inline subroutine, pretend the
3240 target has run. If the target can async, switch the inferior
3241 event loop to INF_EXEC_COMPLETE.
3242 * inferior.h (user_visible_resume_ptid): Declare.
3243 * infrun.c (user_visible_resume_ptid): New function, factored out
3246 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3247 that the current thread is running. Merge async and sync
3250 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3252 * infcmd.c (step_1): Simplify synchronous case.
3254 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3256 * tracepoint.c: Include exceptions.h.
3257 (TFILE_PID): Move higher in file.
3258 (tfile_open): Delay pushing the tfile target until we're assured
3259 the tfile header is present in the file. Wrap reading the initial
3260 newline-terminated lines in TRY_CATCH. Pop the target if the
3261 initial setup failed. Add the tfile's thread immediately
3262 aftwards, before any non-essential setup. Don't skip
3263 post_create_inferior if there are no traceframes present in the
3265 (tfile_close): Remove redundant check for null before xfree call.
3266 (tfile_thread_alive): New function.
3267 (init_tfile_ops): Register it as to_thread_alive callback.
3269 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3271 * tracepoint.c (tfile_open): Delete #if 0'd code.
3273 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3275 Fix -readnow for -gdwarf-4 unused type units.
3276 * dwarf2read.c (struct signatured_type): Remove the field offset.
3277 (create_signatured_type_table_from_index): Remove its initialization.
3278 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3279 instead. Add a complaint call.
3280 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3281 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3282 (lookup_signatured_type_at_offset, read_signatured_type)
3283 (write_one_signatured_type): Update the field for per_cu.
3285 2011-05-19 Tom Tromey <tromey@redhat.com>
3287 * python/py-inferior.c (python_inferior_exit): Use
3289 (python_on_resume): Likewise.
3291 2011-05-19 Matt Rice <ratmice@gmail.com>
3293 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3295 2011-05-19 Hui Zhu <teawater@gmail.com>
3297 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3299 2011-05-19 Hui Zhu <teawater@gmail.com>
3301 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3303 2011-05-18 Tom Tromey <tromey@redhat.com>
3305 * dwarf2read.c (dwarf2_add_field): Constify.
3306 * value.c (value_static_field): Constify.
3307 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3309 * ax-gdb.c (gen_static_field): Constify
3311 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3313 * linux-nat.c (kill_callback): Use SIGKILL first.
3315 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3317 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3319 2011-05-18 Tom Tromey <tromey@redhat.com>
3321 * value.c (value_fn_field): Constify.
3322 * symtab.c (gdb_mangle_name): Constify.
3323 * stabsread.c (update_method_name_from_physname): Make 'physname'
3325 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3326 const. Use explicit fputc_filtered loop.
3327 (pascal_type_print_base): Constify.
3328 * p-lang.h (pascal_type_print_method_args): Update.
3329 * linespec.c (add_matching_methods): Constify.
3330 (add_constructors): Likewise.
3331 * jv-typeprint.c (java_type_print_base): Constify.
3332 * gdbtypes.h (struct cplus_struct_type)
3333 <fn_fieldlist.fn_field.physname>: Now const.
3334 * dwarf2read.c (compute_delayed_physnames): Constify.
3335 (dwarf2_add_member_fn): Likewise.
3336 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3338 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3340 * infrun.c (resume): Mention which is the current thread, and its
3341 current PC in debug output.
3342 (prepare_to_proceed): Mention the thread switching in debug
3345 2011-05-18 Tom Tromey <tromey@redhat.com>
3347 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3348 path check. Use xmalloc and cleanups.
3349 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3351 2011-05-17 Tom Tromey <tromey@redhat.com>
3353 * cp-valprint.c (cp_print_value_fields): Catch errors from
3356 2011-05-17 Tom Tromey <tromey@redhat.com>
3358 * dwarf2read.c (dwarf2_get_die_type): Call
3359 get_die_type_at_offset.
3360 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3361 get_base_type function.
3363 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3365 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3368 2011-05-16 Doug Evans <dje@google.com>
3370 * python/py-auto-load.c (source_section_scripts): Mention objfile
3373 2011-05-15 Doug Evans <dje@google.com>
3375 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3376 (try_thread_db_load_from_pdir): Call it. If unable to find
3377 libthread_db in directory of libpthread, see if we're looking at
3378 the separate-debug-info copy.
3380 * python/py-autoload.c (print_script): Print "Missing" instead of
3381 "No" for missing scripts.
3382 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3384 2011-05-13 Doug Evans <dje@google.com>
3386 * ui-file.c (stdio_file_write_async_safe): Add comment.
3388 2011-05-14 Hui Zhu <teawater@gmail.com>
3390 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3392 2011-05-13 Doug Evans <dje@google.com>
3394 Support $pdir and $sdir in libthread-db-search-path.
3395 * NEWS: Mention $sdir,$pdir.
3396 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3397 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3398 (try_thread_db_load_from_sdir): New function.
3399 (try_thread_db_load_from_dir): New function.
3400 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3401 system directories if search of libthread-db-search-path fails,
3402 that is now done via $sdir.
3403 (has_libpthread): New function.
3404 (thread_db_load): Remove search for libthread_db in directory of
3405 libpthread, that is now done via $pdir.
3407 * NEWS: Mention "info auto-load-scripts".
3408 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3409 script_not_found_warning_printed.
3410 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3411 all callers updated. Initialize script_not_found_warning_printed.
3412 (get_auto_load_pspace_data_for_loading): New function.
3413 (maybe_add_script): New function.
3414 (source_section_scripts): Simplify. Only print one warning regardless
3415 of the number of auto-load scripts not found.
3416 (clear_section_scripts): Clear script_not_found_warning_printed.
3417 (auto_load_objfile_script): Record script in hash table.
3418 (count_matching_scripts): New function.
3419 (maybe_print_script): Renamed from maybe_print_section_script, all
3420 callers updated. Rewrite to use ui_out_*.
3421 (info_auto_load_scripts): Renamed from
3422 maintenance_print_section_scripts, all callers updated.
3423 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3424 renamed as "info auto-load-scripts".
3426 2011-05-13 Tom Tromey <tromey@redhat.com>
3428 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3429 (read_sleb128): Likewise.
3431 2011-05-13 Tom Tromey <tromey@redhat.com>
3433 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3436 2011-05-13 Doug Evans <dje@google.com>
3438 * linux-nat.c (debug_linux_nat_async): Delete.
3439 Replace all references to use debug_linux_nat instead.
3440 (show_debug_linux_nat_async): Delete.
3441 (sigchld_handler): Call ui_file_write_async_safe instead of
3443 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3444 * ui-file.c (struct ui_file): New member to_write_async_safe.
3445 (null_file_write_async_safe): New function.
3446 (ui_file_write_async_safe): New function.
3447 (set_ui_file_write_async_safe): New function.
3448 (ui_file_new): Initialize to_write_async_safe.
3449 (stdio_file_write_async_safe): New function.
3450 (struct stdio_file): New member fd.
3451 (stdio_file_new): Initialize to_write_async_safe, fd.
3452 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3454 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3455 (set_ui_file_write_async_safe): Declare.
3456 (ui_file_write_async_safe): Declare.
3458 2011-05-13 Tom Tromey <tromey@redhat.com>
3460 * utils.c (do_value_free): New function.
3461 (make_cleanup_value_free): Likewise.
3462 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3464 (dwarf2_loc_desc_needs_frame): Call
3465 make_cleanup_value_free_to_mark.
3466 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3467 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3469 (new_dwarf_expr_context): Don't call value_mark.
3470 * dwarf2-frame.c (execute_stack_op): Call
3471 make_cleanup_value_free_to_mark.
3472 * defs.h (make_cleanup_value_free): Declare.
3474 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3476 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3477 prepare_execute_command.
3478 * top.c (prepare_execute_command): Return cleanup.
3479 (execute_command): Use cleanup from prepare_execute_command.
3480 * top.h (prepare_execute_command): Change prototype to return
3482 * defs.h (struct value): Add opaque declaration.
3483 (make_cleanup_value_free_to_mark): Add prototype.
3484 * utils.c (do_value_free_to_mark): New function.
3485 (make_cleanup_value_free_to_mark): Likewise.
3487 2011-05-12 Tom Tromey <tromey@redhat.com>
3489 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3490 cast left-hand-side to unsigned.
3492 2011-05-12 Tom Tromey <tromey@redhat.com>
3495 * value.h (value_from_contents): Declare.
3496 * value.c (value_from_contents): New function.
3497 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3498 (dwarf2_get_die_type): New function.
3499 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3500 (allocate_piece_closure): Acquire reference to values.
3501 (read_pieced_value): Update for value-based expressions.
3502 (write_pieced_value): Likewise.
3503 (free_pieced_value_closure): Call value_free as needed.
3504 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3505 Update for value-based expressions.
3506 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3507 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3508 <get_base_type>: New field.
3509 (struct dwarf_expr_piece) <v.value>: Change type.
3510 <v.regno>: New field.
3511 (struct dwarf_expr_context) <mark>: New field.
3512 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3513 (dwarf_expr_pop, dwarf_expr_push): Remove.
3514 (dwarf_expr_push_address): Declare.
3515 * dwarf2expr.c (dwarf_arch_cookie): New global.
3516 (struct dwarf_gdbarch_types): New.
3517 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3519 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3521 (dwarf_expr_push_address): New function.
3522 (dwarf_expr_pop): Now static.
3523 (dwarf_expr_fetch): Change return type.
3524 (dwarf_require_integral): New function.
3525 (dwarf_expr_fetch): Simplify.
3526 (add_piece): Update.
3527 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3529 (execute_stack_op) <sign_ext>: Remove.
3530 Use values for DWARF stack.
3531 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3532 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3534 (_initialize_dwarf2expr): New function.
3535 (add_piece): Update.
3536 (new_dwarf_expr_context): Set new field.
3537 (free_dwarf_expr_context): Call value_free_to_mark.
3538 * dwarf2-frame.c (no_base_type): New function.
3539 (execute_stack_op): Set get_base_type field. Update.
3541 2011-05-12 Tom Tromey <tromey@redhat.com>
3543 * dwarf2read.c (read_common_block): Fix formatting.
3545 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3547 * breakpoint.c (disable_breakpoint): Disable all locations
3548 associated with a tracepoint on target if a trace experiment is
3550 (disable_command): Disable a specific tracepoint location on target if
3551 a trace experiment is running.
3552 (do_enable_breakpoint): Enable all locations associated with a
3553 tracepoint on target if a trace experiment is running.
3554 (enable_command) Enable a specific tracepoint location on target if a
3555 trace experiment is running.
3556 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3557 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3558 to_disable_tracepoint.
3559 * target.h: Add declaration of struct bp_location.
3560 (struct target_ops): Add new functions
3561 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3562 to_disable_tracepoint to target operations.
3563 (target_supports_enable_disable_tracepoint): New macro.
3564 (target_enable_tracepoint): New macro.
3565 (target_disable_tracepoint): New macro.
3566 * remote.c (struct remote_state): Add new field.
3567 (remote_enable_disable_tracepoint_feature): New.
3568 (remote_protocol_features): Add new entry.
3569 (remote_supports_enable_disable_tracepoint): New.
3570 (remote_enable_tracepoint): New.
3571 (remote_disable_tracepoint): New.
3572 (init_remote_ops): Add remote_enable_tracepoint,
3573 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3574 to remote operations.
3575 * tracepoint.c (start_tracing): Allow tracing to start without any
3576 tracepoints enabled with just a warning if they can be re-enabled
3578 * NEWS: Add news item for the new behaviour of the enable and disable
3579 GDB commands when applied to tracepoints.
3580 Add news items for the new remote packets QTEnable and QTDisable.
3582 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3584 * config.in: Regenerate.
3585 * configure: Regenerate.
3586 * configure.ac <--with-system-readline> (for readline_echoing_p):
3588 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3589 (tui_old_rl_echoing_p): ... here.
3590 (tui_setup_io): Rename extern declaration readline_echoing_p to
3591 _rl_echoing_p. Adjust assignments for the both renames.
3593 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3595 * symtab.c (lookup_symtab): Run cleanup before returning.
3597 2011-05-11 Tom Tromey <tromey@redhat.com>
3599 * dwarf2read.c (handle_data_member_location): New function.
3600 (dwarf2_add_field): Use it.
3601 (read_common_block): Likewise.
3603 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3605 Make addrs->SECTINDEX always defined.
3606 * symfile.c (relative_addr_info_to_section_offsets): Check for
3607 SECTINDEX -1, not for zero ADDR.
3608 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3609 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3610 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3613 2011-05-10 Doug Evans <dje@google.com>
3615 * linux-thread-db.c: Whitespace cleanup.
3616 (try_thread_db_load_1): Fix comment.
3618 * linux-thread-db.c (set_libthread_db_search_path): New function.
3619 (_initialize_thread_db): Add setter for libthread-db-search-path.
3621 2011-05-09 Doug Evans <dje@google.com>
3623 * NEWS: Mention --with-iconv-bin.
3624 * configure.ac: New option --with-iconv-bin.
3625 * configure: Regenerate.
3626 * config.in: Regenerate.
3627 * defs.h (relocate_gdb_directory): Declare.
3628 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3629 removed progname parameter, and exported. All callers updated.
3630 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3632 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3633 adding missing call to restore_child_signals_mask.
3635 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3637 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3639 * infrun.c (proceed, start_remote): Adjust.
3640 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3641 and adjust to not handle it.
3642 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3643 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3644 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3645 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3646 * windows-nat.c (do_initial_windows_stuff): Adjust.
3647 * infcmd.c (attach_command): Adjust.
3648 (notice_new_inferior): Adjust.
3650 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3652 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3653 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3654 * spu-tdep.c (op_selb): Use correct value.
3656 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3658 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3659 "parent" parameter to symbol_file_add_from_bfd call.
3661 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3662 Thiago Jung Bauermann <bauerman@br.ibm.com>
3664 Implement support for PowerPC BookE masked watchpoints.
3665 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3667 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3668 method. Initialize to NULL in all existing breakpoint_ops instances.
3669 (struct breakpoint) <hw_wp_mask>: New field.
3670 * breakpoint.c (is_masked_watchpoint): Add prototype.
3671 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3672 breakpoint's breakpoint_ops.works_in_software_mode if available.
3673 (watchpoints_triggered): Handle the case of a hardware masked
3675 (watchpoint_check): Likewise.
3676 (works_in_software_mode_watchpoint): New function.
3677 (insert_masked_watchpoint, remove_masked_watchpoint)
3678 (resources_needed_masked_watchpoint)
3679 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3680 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3681 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3683 (masked_watchpoint_breakpoint_ops): New structure.
3684 (watch_command_1): Check for the existence of the `mask' parameter.
3685 Set b->ops according to the type of hardware watchpoint being created.
3686 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3687 (ppc_linux_remove_mask_watchpoint)
3688 (ppc_linux_masked_watch_num_registers): New functions.
3689 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3690 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3691 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3692 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3693 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3694 (target_masked_watch_num_registers): New functions.
3695 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3696 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3698 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3699 (target_masked_watch_num_registers): Add prototypes.
3701 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3705 (producer_is_gcc_ge_4_0): New function.
3706 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3707 symtab->language code.
3708 (var_decode_location): Set cu->has_loclist.
3709 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3710 skip. Intialize force_skip from locations_valid. Move the prologue
3711 skipping code into two passes.
3712 * symtab.h (struct symtab): Make the primary field a bitfield. New
3713 field locations_valid.
3715 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3718 (classify_inner_name): Call cp_lookup_nested_type with
3720 * cp-namespace.c (cp_lookup_nested_type): New variable
3721 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3722 type_name_no_tag_or_error with saved_parent_type.
3723 * dwarf2read.c (load_partial_dies): Read in any children of
3724 DW_TAG_typedef with complaint in such case.
3725 * gdbtypes.c (type_name_no_tag_or_error): New function.
3726 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3727 * valops.c (destructor_name_p): New comment for parameter type. Remove
3728 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3729 * value.h (destructor_name_p): Remove type const.
3731 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3733 * symtab.c (compare_symbol_name): New function.
3734 (completion_list_add_name, expand_partial_symbol_name): Call it,
3735 remove the variable ncmp.
3736 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3739 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3741 Demote to sw watchpoint only in update_watchpoint.
3742 * breakpoint.c (update_watchpoint): Change between software and
3743 hardware watchpoint for all kinds of watchpoints, not just
3744 read/write ones. Determine b->exact value here instead of
3745 in watch_command_1. Error out if there are not enough resources
3746 for a read or access hardware watchpoint.
3747 (watch_command_1): Remove logic of checking whether there are
3748 enough resources available, since update_watchpoint will do that
3749 work now. Don't set b->exact here. Catch exceptions thrown by
3750 update_watchpoint and delete the watchpoint.
3751 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3752 Use target_exact_watchpoints instead.
3753 (delete_breakpoint): Notify observers only if deleted watchpoint
3754 has a breakpoint number assigned to it.
3756 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3758 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3760 2011-05-05 Jerome Guitton <guitton@adacore.com>
3762 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3764 (i386_stack_tramp_frame_unwind): New static global.
3765 (i386_match_pattern): New function, extracted from i386_match_insn.
3766 (i386_match_insn): Use i386_match_pattern.
3767 (i386_match_insn_block): New function.
3768 (i386_tramp_chain_in_reg_insns)
3769 (i386_tramp_chain_on_stack_insns): New static variables.
3770 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3773 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3775 * configure.host (xscale*): Don't handle target.
3776 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3779 2011-05-04 Yao Qi <yao@codesourcery.com>
3781 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3783 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3786 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3787 | * elfread.c (elf_symtab_read): Stop memory leak.
3789 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3791 * nto-tdep.c (nto_target): Replace deprecated call to
3792 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3794 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3796 Fix false GCC warning.
3797 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3799 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3801 * breakpoint.c (update_watchpoint): Move code to change
3802 the enable state of breakpoint from here ...
3803 (do_enable_breakpoint): ... to here.
3805 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3807 * valprint.c (val_print_array_elements): Fixed poor performance
3808 of printing very large arrays with repeat_count_threshold set
3809 to unlimited. New comment.
3811 2011-04-29 Tom Tromey <tromey@redhat.com>
3813 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3814 (mi_parse): Likewise.
3815 * breakpoint.c (break_range_command): Use sizeof char*, not
3817 (create_breakpoint): Likewise.
3818 (parse_breakpoint_sals): Likewise.
3820 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3822 * linux-nat.c (linux_child_remove_fork_catchpoint)
3823 (linux_child_remove_vfork_catchpoint)
3824 (linux_child_remove_exec_catchpoint): New functions.
3825 (linux_target_install_ops): Install them.
3827 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3831 * varobj.c (install_default_visualizer): Do not install a
3832 visualizer if the varobj is CPLUS_FAKE_CHILD.
3833 (construct_visualizer): Likewise.
3835 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3838 case insensitive comparison.
3840 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3842 * infrun.c (proceed): Revert previous change.
3843 (resume): Instead, handle the case of signal delivery while stepping
3844 off a breakpoint location here, and only if software single-stepping
3845 is used. Handle nested signals.
3847 2011-04-28 Yao Qi <yao@codesourcery.com>
3849 * arm-tdep.c (copy_unmodified): Rename to ...
3850 (arm_copy_unmodified): .. this. New.
3851 (copy_preload): Move common part to ...
3852 (install_preload): .. this. New.
3853 (arm_copy_preload): New.
3854 (copy_preload_reg): Move common part to ...
3855 (install_preload_reg): ... this. New.
3856 (arm_copy_preload_reg): New.
3857 (copy_b_bl_blx): Move common part to ...
3858 (install_b_bl_blx): .. this. New.
3859 (arm_copy_b_bl_blx): New.
3860 (copy_bx_blx_reg): Move common part to ...
3861 (install_bx_blx_reg): ... this. New.
3862 (arm_copy_bx_blx_reg): New.
3863 (copy_alu_reg): Move common part to ...
3864 (install_alu_reg): ... this. New.
3865 (arm_copy_alu_reg): New.
3866 (copy_alu_shifted_reg): Move common part to ...
3867 (install_alu_shifted_reg): ... this. New.
3868 (copy_ldr_str_ldrb_strb): Move common part to ...
3869 (install_ldr_str_ldrb_strb): ... this. New.
3870 (arm_copy_ldr_str_ldrb_strb): New.
3871 (copy_copro_load_store): Move some common part to ...
3872 (install_copy_copro_load_store): ... this. New.
3873 (arm_copy_copro_load_store): New.
3875 (arm_copy_svc): Renamed from copy_svc.
3876 (copy_undef): Delete.
3877 (arm_copy_undef): Renamed from copy_undef.
3878 (decode_ext_reg_ld_st): Delete.
3879 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3880 (decode_svc_copro): Delete.
3881 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3882 (copy_copro_load_store, copy_alu_imm): update callers.
3883 (copy_extra_ld_st, copy_block_xfer): Likewise.
3884 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3885 (decode_miscellaneous, decode_dp_misc): Likewise.
3886 (decode_ld_st_word_ubyte, decode_media): Likewise.
3887 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3888 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3889 (decode_unconditional, decode_miscellaneous): Likewise.
3890 (decode_media, decode_b_bl_ldmstm): Likewise.
3891 (arm_process_displaced_insn): Likewise..
3892 (decode_misc_memhint_neon): Delete.
3893 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3894 (decode_miscellaneous): Delete.
3895 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3896 (decode_dp_misc): Delete.
3897 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3898 (decode_ld_st_word_ubyte): Delete.
3899 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3900 (decode_media): Delete.
3901 (arm_decode_media): Renamed from decode_media.
3902 (decode_b_bl_ldmstm): Delete.
3903 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3904 (decode_ext_reg_ld_st): Delete.
3905 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3906 (decode_unconditional): Delete.
3907 (arm_decode_unconditional): Renamed from decode_unconditional.
3909 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 Case insensitive lookups implementation.
3912 * dwarf2read.c: Include ctype.h.
3913 (struct mapped_index): New field version.
3914 (mapped_index_string_hash): New parameter index_version. New comment
3915 for it. Call tolower appropriately.
3916 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3917 Choose the right index version for mapped_index_string_hash.
3918 (dwarf2_read_index): Support also the index version 5. Initialize the
3919 new struct mapped_index field version.
3920 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3921 (find_slot): Explain the version needs. Pass INT_MAX for the new
3923 (write_psymtabs_to_index): Produce version 5.
3924 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3925 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3926 * psymtab.c (lookup_partial_symbol): Find the
3927 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3929 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3931 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3932 (completion_list_add_name): New variable ncmp, initialize it, use it.
3933 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3934 * utils.c (strcmp_iw): Support case_sensitive_off.
3935 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3936 New function comment part. New variables saved_string1,
3937 saved_string2 and case_pass. Add a proper second pass.
3939 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3941 Replace re_comp/re_exec by regcomp/regexec.
3942 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3943 (search_symbols_name_matches): Use them, use regexec.
3944 (search_symbols): New variable retval_chain, adjust the use of
3945 old_chain against it. Replace re_comp by regcomp. Use the new struct
3946 search_symbols_data fields, use regexec instead of re_exec.
3948 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3950 Format the code for the next patch.
3951 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3952 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3953 New variables c1 and c2.
3955 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3957 * infrun.c (proceed): Do not single-step into signal delivery
3958 when stepping off a breakpoint location.
3959 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3960 (insert_step_resume_breakpoint_at_caller): Likewise.
3961 (insert_step_resume_breakpoint_at_sal): Likewise.
3962 (insert_longjmp_resume_breakpoint): Likewise.
3964 2011-04-27 Yao Qi <yao@codesourcery.com>
3966 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3968 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3970 * procfs.c (procfs_pass_signals): Fix advance declaration.
3972 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3974 * target.h (struct target_ops): Remove to_notice_signals;
3975 add to_pass_signals.
3976 (target_notice_signals): Remove.
3977 (target_pass_signals): Add prototype.
3978 * target.c (update_current_target): Remove to_notice_signals;
3979 mention to_pass_signals.
3980 (target_pass_signals): New function.
3981 (debug_to_notice_signals): Remove.
3982 (setup_target_debug): Do not install debug_to_notice_signals.
3984 * infrun.c (signal_pass): New global.
3985 (resume): Call target_pass_signals.
3986 (handle_inferior_event): Report all signals while stepping over
3987 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3988 are re-inserted when stepping over a signal handler.
3989 (signal_cache_update): New function.
3990 (signal_stop_update): Call it.
3991 (signal_print_update): Likewise.
3992 (signal_pass_update): Likewise.
3993 (handle_command): Call signal_cache_update and target_pass_signals
3994 instead of target_notice_signals.
3995 (_initialize_infrun): Initialize signal_pass.
3997 * linux-nat.c (pass_mask): New global.
3998 (linux_nat_pass_signals): New function.
3999 (linux_nat_create_inferior): Report all signals initially.
4000 (linux_nat_attach): Likewise.
4001 (linux_nat_resume): Use pass_mask to decide whether to directly
4002 handle an inferior signal.
4003 (linux_nat_wait_1): Likewise.
4004 (linux_nat_add_target): Install to_pass_signals callback.
4006 * nto-procfs.c (notice_signals): Remove.
4007 (procfs_resume): Do not call notice_signals.
4008 (procfs_notice_signals): Remove.
4009 (procfs_pass_signals): New function.
4010 (init_procfs_ops): Install to_pass_signals callback instead of
4011 to_notice_signals callback.
4012 (_initialize_procfs): Report all signals initially.
4014 * procfs.c (procfs_notice_signals): Remove.
4015 (procfs_pass_signals): New function.
4016 (procfs_target): Install to_pass_signals callback instead of
4017 to_notice_signals callback.
4018 (register_gdb_signals): Remove.
4019 (procfs_debug_inferior): Report all signals initially.
4020 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4022 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4023 parameters; use them instead of calling signal_..._state routines.
4024 (remote_notice_signals): Remove.
4025 (remote_start_remote): Report all signals initially.
4026 (remote_resume): Do not call remote_pass_signals.
4027 (_initialize_remote): Install to_pass_signals callback instead of
4028 to_notice_signals callback.
4030 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4032 * breakpoint.c (user_settable_breakpoint): Delete.
4033 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4034 (delete_command): Check user_breakpoint_p instead of looking at
4035 the breakpoint's type.
4036 (disable_command): Ditto.
4037 (enable_command): Ditto.
4038 (delete_trace_command): Use user_breakpoint_p instead of looking
4039 at the breakpoint number directly. When checking if there are
4040 user visible tracepoints, in order to know whether to ask the user
4041 for confirmation, check whether the breakpoint is actually a
4044 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4046 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4049 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4051 MI breakpoint notifications.
4053 * annotate.c (breakpoint_changed): Adjust parameter type.
4054 * breakpoint.c (set_breakpoint_condition): Adjust to change
4055 in breakpoint_modified type.
4056 (breakpoint_set_commands): Likewise.
4057 (do_map_commands_command): Likewise.
4058 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4059 changed after bumping hit count.
4060 (bpstat_stop_status): Likewise.
4061 (print_one_breakpoint_location): Don't wrap in tuple here.
4062 (print_one_breakpoint): Always print individual locations.
4063 For locations, use unnamed tuple.
4064 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4066 (create_catchpoint, create_syscall_event_catchpoint): Call
4067 breakpoint_created obsever.
4068 (mention): Don't call breakpoint_created observer.
4069 (create_breakpoint_sal): Call breakpoint_created observer.
4070 (create_breakpoint, watch_command_1): Likewise.
4071 (create_ada_exception_breakpoint): Likewise.
4072 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4073 (locations_are_equal): New.
4074 (update_breakpoint_locations): If locations were changed, notify.
4075 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4076 Call breakpoint_modified observer.
4078 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4079 (mi_cmd_break_insert): Don't set observers for modify and delete.
4080 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4081 (mi_breakpoint_created, mi_breakpoint_deleted)
4082 (mi_breakpoint_modified): New.
4083 (mi_interpreter_init): Hook the above.
4084 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4085 while -break-* commands are executing.
4086 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4087 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4089 (mi_ui_out_impl): Hook in mi_redirect.
4090 (mi_field_skip): True to the name, skip the field, don't output
4091 a field with an empty value.
4093 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4094 (gdbpy_breakpoint_deleted): Adjust.
4095 * tui/tui-hooks.c (tui_event_create_breakpoint)
4096 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4098 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4100 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4101 (procfs_remove_hw_watchpoint): Likewise.
4103 2011-04-26 Michael Walle <michael@walle.cc>
4105 * remote.c (remote_start_remote): Ack packet after sending the
4108 2011-04-26 Yao Qi <yao@codesourcery.com>
4110 * linux-nat.c: Move common macros to ...
4111 Include linux-ptrace.h.
4112 * common/linux-ptrace.h: ... here. New.
4114 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4116 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4117 !objfile_has_partial_symbols. New comment.
4118 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4119 SYM_READ_PSYMBOLS is not present. Extend the comment.
4120 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4122 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4124 * defs.h (ENUM_BITFIELD): Remove.
4126 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 Eli Zaretskii <eliz@gnu.org>
4129 * NEWS: Document the new gdbserver --once option.
4131 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4133 * MAINTAINERS: Update my email address.
4135 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4137 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4138 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4139 function call if __STDC_ISO_10646__ macro is defined.
4140 (intermediate_encoding): New prototype.
4141 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4142 to generate compile time error for unsupported gdb_wchar_t size.
4143 (ENDIAN_SUFFIX): New macro.
4144 (intermediate_encoding): New function.
4146 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * ada-lang.c (struct add_partial_datum): Update the comment for
4149 expand_partial_symbol_name.
4150 (ada_add_partial_symbol_completions): Rename to ...
4151 (ada_expand_partial_symbol_name): ... here, change return type, update
4152 function comment, call symbol_completion_match instead of
4153 symbol_completion_add.
4154 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4155 and ada_expand_partial_symbol_name.
4156 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4158 (dw2_map_symbol_names): Remove.
4159 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4160 * psymtab.c (map_symbol_names_psymtab): Remove.
4161 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4162 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4164 (psym_functions): Unlist map_symbol_names_psymtab.
4165 (map_partial_symbol_names): Rename to ...
4166 (expand_partial_symbol_names): ... here, change the FUN type, call
4167 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4168 * psymtab.h (map_partial_symbol_names): Rename to ...
4169 (expand_partial_symbol_names): ... here, change the FUN type.
4170 * symfile.h (struct quick_symbol_functions): Update the description of
4171 expand_symtabs_matching. Remove map_symbol_names.
4172 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4173 (struct add_name_data): Update the comment for
4174 expand_partial_symbol_name.
4175 (add_partial_symbol_name): Rename to ...
4176 (expand_partial_symbol_name): ... here. Replace
4177 completion_list_add_name call by strncmp.
4178 (default_make_symbol_completion_list_break_on): Use now
4179 expand_partial_symbol_names and expand_partial_symbol_name.
4180 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4182 2011-04-20 Tom Tromey <tromey@redhat.com>
4184 * dwarf2read.c (save_gdb_index_command): Replace format
4185 documentation with a pointer to the manual.
4187 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4189 * regcache.c: Include remote.h.
4190 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4191 (regcache_dump): Handle regcache_dump_remote.
4192 (maintenance_print_remote_registers): New function.
4193 (_initialize_regcache): Install "maint print remote-registers"
4195 * remote.c (map_regcache_remote_table): New function, factored out
4197 (init_remote_state): ... here.
4198 (remote_register_number_and_offset): New.
4199 * remote.h (remote_register_number_and_offset): Declare.
4201 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4203 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4204 null_ptid, assume and allow a NULL address space, instead of
4205 asking the target for the ptid's address space.
4206 * infrun.c (ptid_is_pid): Remove assertion.
4208 2011-04-19 Tom Tromey <tromey@redhat.com>
4210 * windows-tdep.c (windows_xfer_shared_library):
4211 * windows-nat.c (get_module_name, windows_make_so):
4212 * v850-tdep.c (v850_handle_pushm):
4213 * utils.c (null_cleanup, gdb_realpath):
4214 * ui-out.c (get_next_header):
4215 * tracepoint.c (clear_traceframe_info):
4216 * symtab.c (lookup_symtab):
4217 * serial.h (struct serial_ops):
4218 * mipsread.c (read_alphacoff_dynamic_symtab):
4219 * infcmd.c (print_return_value):
4220 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4221 * f-exp.y (parse_number):
4222 * exceptions.c (catch_exceptions):
4223 * dummy-frame.c (dummy_frame_this_id):
4224 * defs.h (struct cleanup):
4225 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4226 * arm-tdep.c (arm_push_dummy_call):
4227 * amd64-tdep.h (amd64_collect_xsave):
4228 * amd64-tdep.c (amd64_collect_xsave):
4229 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4230 * README (typing): Remove duplicate words.
4231 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4232 * infrun.c (siginfo_value_read): Fix typo.
4233 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4234 * top.c (source_line_number): Add comma.
4236 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4238 * thread.c (any_live_thread_of_process): Prioritize threads
4239 that are not executing.
4240 * gdbthread.h (any_live_thread_of_process): Update comment
4241 as per above change.
4243 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4245 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4246 (scan_xcoff_symtab): Likewise.
4248 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4250 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4253 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4254 Pedro Alves <pedro@codesourcery.com>
4256 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4257 variables to simplify code and avoid == operator at end of
4258 line as this is against GNU coding standards.
4260 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4262 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4263 lm_name to name_lm to avoid conflict with lm_name function.
4265 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4267 ARI fixes: Use only lowercase function name for static functions.
4268 * nto-tdep.c (LM_ADDR): Rename to...
4269 (lm_addr): New function name.
4270 (nto_relocate_section_addresses): Adapt to change above.
4271 * solib-sunos.c (LM_ADDR): Rename to...
4272 (lm_addr): New function name.
4273 (LM_NEXT): Rename to...
4274 (lm_next): New function name.
4275 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4276 function name changes above.
4277 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4278 (lm_addr_from_link_map): New function name.
4279 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4280 (has_lm_dynamic_from_link_map): New function name.
4281 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4282 (lm_dynamic_from_link_map): New function name.
4283 (LM_ADDR_CHECK): Rename to...
4284 (lm_addr_check): New function name.
4285 (LM_NEXT): Rename to...
4286 (lm_next): New function name.
4287 (LM_PREV): Rename to...
4288 (lm_prev): New function name.
4289 (LM_NAME): Rename to...
4290 (lm_name): New function name.
4291 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4292 (ignore_first_link_map_entry): New function name.
4293 (svr4_keep_data_in_core): Adapt to function name changes above.
4294 (svr4_current_sos): Likewise.
4295 (enable_break): Likewise.
4296 (svr4_relocate_section_addresses): Likewise.
4298 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4301 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4302 sprintf. Simplify code and avoid loosing memory.
4303 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4304 (call0_frame_cache): Remove && operator from end of line.
4306 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4308 Fix libraries displacement if they change whether they were prelinked.
4309 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4310 does not match. Comment why.
4312 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4314 * corelow.c: Include wrapper.h.
4315 (core_open): Call now gdb_target_find_new_threads.
4316 * wrapper.c: Include target.h.
4317 (gdb_target_find_new_threads): New.
4318 * wrapper.h (gdb_target_find_new_threads): New declaration.
4320 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4322 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4323 even if !TARGET_HAS_EXECUTION.
4325 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4327 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4328 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4329 bfd_get_synthetic_symtab.
4330 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4331 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4332 parameter parent, remove the call to add_separate_debug_objfile.
4333 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4334 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4335 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4336 parent, new comment for it, call add_separate_debug_objfile for it.
4337 (symbol_file_add_separate): Pass objfile as the parameter parent,
4338 remove the call to add_separate_debug_objfile.
4339 (symbol_file_add_from_bfd): New parameter parent, pass it.
4340 (symbol_file_add): Pass NULL to the new parameter parent.
4341 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4343 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4345 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4348 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 Fix Python access to inlined frames.
4351 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4352 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4354 2011-04-15 Tom Tromey <tromey@redhat.com>
4356 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4358 2011-04-15 Gary Benson <gbenson@redhat.com>
4360 * MAINTAINERS: Add myself to write-after-approval section.
4362 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4364 * remote-sim.c (sim_command_completer): New function.
4365 (_initialize_remote_sim): Set completer to sim_command_completer.
4367 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4369 * breakpoint.c (print_exception_catchpoint): Rename to ...
4370 (print_it_exception_catchpoint): ... this.
4371 (gnu_v3_exception_catchpoint_ops): Update with new name
4372 for print_it_exception_catchpoint.
4374 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4376 * MAINTAINERS: Add myself for write after approval privileges.
4378 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4380 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4382 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4384 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4386 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4388 * breakpoint.c (save_breakpoints): Verify whether
4389 breakpoint_ops.print_recreate is defined before calling it.
4391 2011-04-11 Gary Benson <gbenson@redhat.com>
4393 Fix failure with --enable-maintainer-mode.
4394 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4396 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4399 * symtab.c (search_symbols): Reorder the KIND description in the
4400 function comment. Remove the unused 4th element of types, types2,
4401 types3 and types4. New gdb_assert on KIND.
4402 (symtab_symbol_info): Remove the unused 4th element of classnames.
4403 New gdb_assert on KIND.
4404 * symtab.h (enum search_domain): New warning in the enum comment.
4405 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4408 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 Fix crash of gdb save-index on a STABS file.
4411 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4414 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4416 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4417 * dwarf2read.c: Include ctype.h.
4418 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4420 (dwarf2_add_field): Fix new_field->accessibility by calling
4421 dwarf2_default_access_attribute. Restructure setting accessibility
4423 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4424 is_private and is_protected by calling
4425 dwarf2_default_access_attribute.
4427 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4429 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4430 to the initialization.
4432 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4434 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4437 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4439 Remove support for old Cygwin 1.5 versions.
4440 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4441 function on old Cygwin version.
4442 * windows-nat.c: Remove cygwin version check and always define
4443 __USEWIDE for Cygwin compilation.
4445 2011-04-07 Yao Qi <yao@codesourcery.com>
4447 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4449 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4450 (arm_copy_svc): Remove parameters INSN and TO.
4451 (decode_svc_copro): Update caller.
4452 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4453 from function pointer `copy_svc_os'.
4455 2011-04-07 Yao Qi <yao@codesourcery.com>
4457 * arm-tdep.c (cleanup_branch): Set a correct return address in
4458 LR for ARM and Thumb.
4460 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4463 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4464 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4465 in the function comment, a new note on values compatibility.
4466 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4467 * symtab.h (SYMBOL_HASH_NEXT): New.
4469 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4471 * ppc-linux-nat.c (check_condition): Add len output parameter.
4472 Set it based on the memory region referenced in the condition
4473 expression. Update all callers.
4475 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4477 Fix crash regression on systems featuring .gdb_index.
4478 * objfiles.c (free_objfile): Move the
4479 forget_cached_source_info_for_objfile call earlier. Comment it.
4480 Extend the comment for objfile_free_data.
4482 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4484 Fix regression of displaying the debug format.
4485 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4488 2011-04-04 Tom Tromey <tromey@redhat.com>
4490 * cli/cli-interp.c (struct captured_execute_command_args):
4492 (do_captured_execute_command): Remove.
4493 (safe_execute_command): Use TRY_CATCH.
4494 * cli/cli-script.c (struct wrapped_read_command_file_args):
4496 (wrapped_read_command_file): Remove.
4497 (script_from_file): Use TRY_CATCH.
4498 * exceptions.c (catch_exception): Remove.
4499 * exceptions.h (catch_exception): Remove.
4500 (deprecated_throw_reason): Update comment.
4501 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4502 argument to 'context'.
4503 (mi_execute_command): Use TRY_CATCH.
4504 * remote.c (struct start_remote_args): Remove.
4505 (remote_start_remote): Update; change arguments.
4506 (remote_open_1): Use TRY_CATCH.
4508 2011-04-04 Tom Tromey <tromey@redhat.com>
4510 * tracepoint.c (scope_info): Update.
4511 * symtab.c (decode_line_spec): Update.
4512 * python/python.c (gdbpy_decode_line): Update.
4513 * linespec.h (decode_line_1): Update.
4514 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4515 (decode_compound, find_method, symtab_from_filename)
4516 (decode_variable): Likewise.
4517 * cli/cli-cmds.c (edit_command): Update.
4518 (list_command): Update.
4519 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4521 (create_breakpoint): Update.
4522 (until_break_command): Update.
4523 (addr_string_to_sals): Update.
4524 (decode_line_spec_1): Update.
4526 2011-04-04 Tom Tromey <tromey@redhat.com>
4528 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4529 (do_captured_parse_breakpoint): Remove.
4530 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4531 Use TRY_CATCH directly.
4533 2011-04-04 Tom Tromey <tromey@redhat.com>
4535 * symtab.h (free_symtab): Remove.
4536 (forget_cached_source_info_for_objfile): Declare.
4537 * symmisc.c (free_symtab): Remove.
4538 * source.c (forget_cached_source_info_for_objfile): New function.
4539 (forget_cached_source_info): Use it.
4540 * objfiles.c (free_objfile): Simplify check before calling
4541 clear_current_source_symtab_and_line. Call
4542 forget_cached_source_info_for_objfile.
4544 2011-04-04 Tom Tromey <tromey@redhat.com>
4546 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4547 (new_symtab): Don't set `free_code' on symtab.
4548 (new_linetable): Properly handle size==0.
4549 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4550 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4552 * jv-lang.c (struct jv_per_objfile_data): New.
4553 (jv_per_objfile_free): Free the data.
4554 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4555 (get_java_class_symtab): Set the `dict' field on the
4556 jv_per_objfile_data.
4557 (free_class_block): Remove.
4558 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4561 2011-04-04 Tom Tromey <tromey@redhat.com>
4563 * symfile.c (reread_symbols): Update.
4564 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4566 * objfiles.c (allocate_objfile): Update.
4567 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4569 * cp-namespace.c (lookup_symbol_file): Don't call
4570 lookup_possible_namespace_symbol.
4571 (initialize_namespace_symtab, get_possible_namespace_block)
4572 (free_namespace_block, cp_check_possible_namespace_symbols)
4573 (check_possible_namespace_symbols_loop)
4574 (check_one_possible_namespace_symbol)
4575 (lookup_possible_namespace_symbol): Remove.
4576 (maintenance_cplus_namespace): Replace with notice.
4577 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4579 2011-04-04 Tom Tromey <tromey@redhat.com>
4581 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4582 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4583 * symmisc.c (free_symtab): Don't free debugformat.
4584 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4585 (record_debugformat, record_producer): Document.
4586 * buildsym.c (end_symtab): Don't save debugformat and producer
4588 (end_symtab): Don't free debugformat and producer fields.
4589 (record_debugformat): Don't call xstrdup.
4590 (record_producer): Likewise.
4592 2011-04-04 Tom Tromey <tromey@redhat.com>
4594 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4595 (source_line_charpos, source_charpos_line): Remove.
4597 2011-04-04 Tom Tromey <tromey@redhat.com>
4599 * symtab.h (domain_enum): Split in two...
4600 (enum search_domain): New.
4601 (search_symbols): Update.
4602 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4603 redundant declarations.
4604 (search_symbols): Change 'kind' argument to search_domain.
4606 (print_symbol_info): Likewise.
4607 (symtab_symbol_info): Likewise.
4608 * symfile.h (struct quick_symbol_functions)
4609 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4610 <expand_symtabs_matching>: Likewise.
4611 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4612 (expand_symtabs_matching_via_partial): Update.
4613 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4614 (dw2_expand_symtabs_for_function): Update.
4615 * block.h: Moved anonymous enum...
4616 * defs.h (enum block_enum): ... here. Now named.
4618 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4620 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4621 * version.in: Bump version to 7.3.50.20110403-cvs.
4623 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4625 * NEWS: Create a new section for the next release branch.
4626 Rename the section of the current branch, now that it has
4629 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4631 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4632 for "fpscr" in target description.
4634 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4636 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4637 initialize it. Delay HASH initialization. Strip the part after open
4638 parenthesis for languages with qualifiers. Call do_cleanups.
4640 2011-04-01 Tom Tromey <tromey@redhat.com>
4642 * utils.c (report_command_stats): Don't print `-' for negative
4645 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4647 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4648 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4651 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4653 * breakpoint.h (bpdisp_text): Add declaration.
4654 * breakpoint.c (bpdisp_text): Make non-static.
4655 * ada-lang.c: #include "mi/mi-common.h".
4656 (print_it_exception): Rewrite to improve GDB/MI output.
4658 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4660 * arm-tdep.h (struct address_space): Add forward declaration.
4662 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4664 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4665 * arm-tdep.c (arm_override_mode): New global.
4666 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4667 execution mode heuristics.
4668 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4669 second single-step breakpoint if needed, using
4670 arm_insert_single_step_breakpoint.
4671 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4672 ARM execution mode, do not call thumb_get_next_pc_raw.
4673 (arm_get_next_pc): Encode execution mode in return value. Call
4674 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4675 (arm_insert_single_step_breakpoint): New function.
4676 (arm_software_single_step): Call it.
4677 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4678 argument to return execution mode of sigreturn target.
4679 (arm_linux_syscall_next_pc): Use it.
4680 (arm_linux_copy_svc): Update call.
4681 (arm_linux_software_single_step): Call
4682 arm_insert_single_step_breakpoint.
4684 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4686 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4689 2011-03-31 Tom Tromey <tromey@redhat.com>
4691 * varobj.c (update_dynamic_varobj_children): Properly handle
4692 errors from iterator.
4694 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4696 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4697 struct linkage name twice.
4699 2011-03-31 Tom Tromey <tromey@redhat.com>
4701 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4702 missing ">" to message.
4704 2011-03-31 Tom Tromey <tromey@redhat.com>
4706 * varobj.c (instantiate_pretty_printer): Remove duplicate
4709 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4711 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4712 if neither saved value nor register available (e.g. signal frame).
4714 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4716 * macroexp.c (expand): Avoid uninitialized variable
4719 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4721 * breakpoint.c (break_range_command): Fix typo in comment.
4723 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4724 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4726 Implement support for PowerPC BookE ranged breakpoints.
4727 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4728 * breakpoint.h (struct bp_target_info) <length>: New member
4730 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4731 instead of struct breakpoint as argument, and also add ASPACE
4732 and BP_ADDR arguments. Update all callers.
4733 (struct breakpoint_ops) <print_one_detail>: New method.
4734 (struct breakpoint) <addr_string_range_end>: New member variable.
4735 * breakpoint.c (breakpoint_location_address_match): Add function
4737 (insert_bp_location): Set bl->target_info.length.
4738 (breakpoint_here_p): Call breakpoint_location_address_match.
4739 (moribund_breakpoint_here_p): Likewise.
4740 (regular_breakpoint_inserted_here_p): Likewise.
4741 (breakpoint_thread_match): Likewise.
4742 (bpstat_stop_status): Likewise.
4743 (bpstat_check_location): Move call to
4744 breakpoint_ops.breakpoint_hit to the top.
4745 (print_one_breakpoint_location): Call
4746 breakpoint_ops.print_one_detail if available.
4747 (breakpoint_address_match_range): New function.
4748 (breakpoint_location_address_match): Likewise.
4749 (breakpoint_locations_match): Compare the length field of the
4751 (hw_breakpoint_used_count): Count resources used by all locations
4752 in a breakpoint, and use breakpoint_ops.resources_needed if
4754 (breakpoint_hit_ranged_breakpoint): New function.
4755 (resources_needed_ranged_breakpoint): Likewise.
4756 (print_it_ranged_breakpoint): Likewise.
4757 (print_one_ranged_breakpoint): Likewise.
4758 (print_one_detail_ranged_breakpoint): Likewise.
4759 (print_mention_ranged_breakpoint): Likewise.
4760 (print_recreate_ranged_breakpoint): Likewise.
4761 (ranged_breakpoint_ops): New structure.
4762 (find_breakpoint_range_end): New function.
4763 (break_range_command): Likewise.
4764 (delete_breakpoint): Free addr_string_range_end.
4765 (update_breakpoint_locations): Add SALS_END argument. Update
4766 all callers. Calculate breakpoint length if a non-zero SALS_END
4767 is given. Call breakpoint_locations_match instead of
4768 breakpoint_address_match.
4769 (reset_breakpoint): Find SaL of the end of the range if B is a
4771 (_initialize_breakpoint): Register break-range command.
4772 * defs.h (print_core_address): Add function prototype.
4773 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4775 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4776 (ppc_linux_remove_hw_breakpoint): Likewise.
4777 (_initialize_ppc_linux_nat): Initialize
4778 to_ranged_break_num_registers.
4779 * target.c (update_current_target): Add comment about
4780 to_ranged_break_num_registers.
4781 (target_ranged_break_num_registers): New function.
4782 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4784 (target_ranged_break_num_registers): Add function prototype.
4785 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4786 * utils.c (print_core_address): ... here.
4788 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4790 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4791 variable compiler warning.
4793 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4795 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4797 (re_set_breakpoint): ... to here ...
4798 (addr_string_to_sals): ... and here.
4800 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4802 * Makefile.in (SFILES): Add missing C sources.
4803 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4804 Add missing headers.
4806 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4808 * .gitignore: New file.
4810 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4812 * NEWS: Mention new cfi device simulation.
4814 2011-03-29 Tom Tromey <tromey@redhat.com>
4816 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4817 otherwise anonymous types.
4818 (dwarf2_name): Likewise.
4819 * valops.c (value_struct_elt_for_reference): Refine artificial
4820 type logic. Call error if j==-1.
4822 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4824 Fix false GCC warning.
4825 * infcall.c (find_function_addr): Initialize funaddr.
4827 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4829 Fix mingw compilation with --enable-targets=all.
4830 * remote-mips.c (gdb_usleep.h): Include header.
4831 (mips_enter_debug): Use gdb_usleep instead of sleep.
4833 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 Support resolution of STT_GNU_IFUNC via breakpoints.
4836 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4837 bp_gnu_ifunc_resolver_return.
4838 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4839 the loop. Support bp_gnu_ifunc_resolver and
4840 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4841 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4843 (bptype_string, print_one_breakpoint_location): Support
4844 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4845 (user_settable_breakpoint): Return true also for
4846 bp_gnu_ifunc_resolver.
4847 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4848 bp_gnu_ifunc_resolver_return.
4849 (set_breakpoint_location_function): New parameter explicit_loc,
4850 describe it. Call find_pc_partial_function_gnu_ifunc with new
4851 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4852 EXPLICIT_LOC is not set.
4853 (set_raw_breakpoint): Set EXPLICIT_LOC for
4854 set_breakpoint_location_function.
4855 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4856 set_breakpoint_location_function.
4857 (mention): Support bp_gnu_ifunc_resolver and
4858 bp_gnu_ifunc_resolver_return.
4859 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4860 set_breakpoint_location_function.
4861 (update_breakpoint_locations): Remove static.
4862 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4863 bp_gnu_ifunc_resolver_return.
4864 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4865 bp_gnu_ifunc_resolver_return.
4866 (update_breakpoint_locations): New declaration.
4867 * elfread.c: Include gdbthread.h and regcache.h.
4868 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4870 (elf_gnu_ifunc_fns): Install them.
4871 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4872 (stub_gnu_ifunc_resolver_return_stop): New functions.
4873 (stub_gnu_ifunc_fns): Install them.
4874 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4875 and gnu_ifunc_resolver_return_stop.
4876 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4878 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4880 STT_GNU_IFUNC reader implementation.
4881 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4882 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4883 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4884 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4885 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4886 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4887 (elf_gnu_ifunc_resolve_addr): New.
4888 (elf_symfile_read): Call elf_rel_plt_read.
4889 (elf_gnu_ifunc_fns): New.
4890 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4891 Install elf_gnu_ifunc_fns.
4892 * infcall.c (find_function_return_type): New function.
4893 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4894 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4895 (stub_gnu_ifunc_resolve_name): New functions.
4896 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4897 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4898 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4900 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4902 Code cleanup for later STT_GNU_IFUNC support.
4903 * infcall.c (find_function_addr): Remove variable code, use explicit
4904 dereferences for it. Move VALUE_TYPE initialization later.
4906 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4908 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4909 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4910 (clear_pc_function_cache): Clear it.
4911 (find_pc_partial_function): Rename to ...
4912 (find_pc_partial_function_gnu_ifunc): ... this function. New
4913 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4914 (find_pc_partial_function): New wrapper for this function.
4915 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4917 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4919 GDB internal type support for STT_GNU_IFUNC.
4920 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4921 (elf_symtab_read): Set mst_text_gnu_ifunc for
4922 BSF_GNU_INDIRECT_FUNCTION.
4923 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4924 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4925 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4926 nodebug_got_plt_symbol.
4927 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4928 (TYPE_GNU_IFUNC): New.
4929 (struct main_type): New field flag_gnu_ifunc.
4930 (struct builtin_type): New field builtin_func_func.
4931 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4932 nodebug_got_plt_symbol.
4933 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4934 (in_gnu_ifunc_stub): New.
4935 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4937 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4938 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4939 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4941 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4942 * symtab.c (search_symbols): Likewise.
4943 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4944 and mst_slot_got_plt.
4945 (in_gnu_ifunc_stub): New declaration.
4947 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4949 Support a ring of related breakpoints.
4950 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4951 other functions, add gdb_assert.
4952 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4953 watchpoint_del_at_next_stop.
4954 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4955 (bpstat_stop_status): Handle ring in related_breakpoint.
4956 (set_raw_breakpoint_without_location): Initialize ring in
4958 (delete_breakpoint): Handle ring in related_breakpoint, use
4959 watchpoint_del_at_next_stop.
4960 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4962 2011-03-28 Tom Tromey <tromey@redhat.com>
4965 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4966 with `language_minimal'.
4968 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4970 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4971 instead of checking for STT_ARM_TFUNC symbol type.
4973 2011-03-25 Tom Tromey <tromey@redhat.com>
4975 * linespec.c (symbol_found): Restore line-based result for
4976 non-LOC_LABEL symbols.
4978 2011-03-25 Kai Tietz <ktietz@redhat.com>
4980 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4981 instead of strcmp for comparison.
4982 (tui_source_is_displayed): Likewise.
4983 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4985 2011-03-24 Mark Wielaard <mjw@redhat.com>
4987 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4989 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4990 (find_partial_die_in_comp_unit): Likewise in comment.
4991 (read_attribute_value): Likewise.
4992 (lookup_die_type): Likewise.
4993 (dwarf_form_name): Likewise.
4994 (dump_die_shallow): Likewise.
4995 (follow_die_ref_or_sig): Likewise.
4997 2011-03-24 Tom Tromey <tromey@redhat.com>
4999 PR breakpoints/11816:
5000 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5001 (decode_compound): Update.
5002 (find_function_symbol): New function.
5003 (decode_dollar): Update.
5004 (decode_label): Add 'function_symbol' parameter. Handle
5005 function-relative labels.
5006 (decode_variable): Update.
5007 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5008 not its line. Set `special_display' and canonical name for
5011 2011-03-24 Tom Tromey <tromey@redhat.com>
5013 * linespec.h (struct linespec_result) <special_display>: New
5015 * breakpoint.h (struct breakpoint) <display_canonical>: New
5017 * breakpoint.c (print_breakpoint_location): Respect
5019 (create_breakpoint_sal): Add 'display_canonical' parameter.
5020 (create_breakpoints_sal): Update.
5021 (create_breakpoint): Update.
5023 2011-03-24 Tom Tromey <tromey@redhat.com>
5025 * symtab.c (decode_line_spec): Update.
5026 * linespec.c (build_canonical_line_spec): Change type of
5028 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5029 (find_method, decode_all_digits, decode_dollar, decode_label)
5030 (symbol_found): Likewise.
5031 (init_linespec_result): New function.
5032 * breakpoint.c (struct captured_parse_breakpoint_args)
5033 <canonical_p>: New field, replaces addr_string_p.
5034 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5036 (parse_breakpoint_sals): Likewise.
5037 (do_captured_parse_breakpoint): Update.
5038 (create_breakpoint): Use struct linespec_result.
5039 (until_break_command): Update.
5040 (breakpoint_re_set_one): Update.
5041 (decode_line_spec_1): Update.
5042 * linespec.h (struct linespec_result): New.
5043 (init_linespec_result): Declare.
5045 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5047 * regcache.c (regcache_raw_read): If the target didn't supply a
5048 given raw register, mark it as unavailable.
5050 2011-03-23 Kai Tietz <ktietz@redhat.com>
5052 * breakpoint.c (clear_command): Use filename_cmp
5053 instead of strcmp for comparison.
5054 * buildsym.c (watch_main_source_file_lossage): Likewise.
5055 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5056 checking just for slash.
5057 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5058 strrchr and filename_cmp instead of strcmp for filenames.
5059 (add_old_header_file): Use filename_cmp
5060 instead of strcmp for comparison.
5061 * exec.c (exec_set_section_address): Likewise.
5062 * macrotab.c (macro_lookup_inclusion): Likewise.
5063 (macro_lookup_inclusion): Likewise.
5064 * elfread.c (_initialize_elfread): Likewise.
5065 (elfstab_offset_sections): Likewise.
5066 (elfstab_offset_sections): Use lbasename instead of
5068 * mdebugread.c (parse_partial_symbols): Likewise.
5069 (arse_partial_symbols): Use filename_(n)cmp instead of
5070 str(n)cmp for comparison.
5071 * minsyms.c (lookup_minimal_symbol): Likewise.
5072 * psymtab.c (read_psymtabs_with_filename): Likewise.
5073 * solib.c (solib_read_symbols): Likewise.
5074 (reload_shared_libraries_1): Likewise.
5075 * symmisc.c (maintenance_print_symbols): Likewise.
5076 * symfile.c (separate_debug_file_exists): Likewise.
5077 (reread_symbols): Likewise.
5078 (find_separate_debug_file_by_debuglink): Likewise.
5079 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5080 * source.c (add_path): Likewise.
5081 * symtab.c (filename_seen): Likewise.
5082 (file_matches): Likewise.
5083 (print_symbol_info): Likewise.
5084 (maybe_add_partial_symtab_filename): Likewise.
5085 (make_source_files_completion_list): Likewise.
5086 * xml-syscall.c (init_sysinfo): Likewise.
5087 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5088 IS_DIR_SEPARATOR for checking for trailing path separator.
5090 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5092 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5093 label abort_expression.
5094 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5095 DWARF_VALUE_OPTIMIZED_OUT.
5097 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5100 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5101 to linkage_name. Invert its value. Update the function comment.
5102 (c_type_print_varspec_suffix): Invert it at the caller.
5103 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5105 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5107 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5108 errors when reading the `stop_pc'.
5109 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5112 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5114 * NEWS: Document gdb.Write stream keyword.
5116 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5119 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5120 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5121 (dwarf2_add_field): Fix new_field->accessibility for
5122 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5124 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5128 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5129 other error classes. Do not print stack trace.
5131 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5133 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5134 (dwarf2_add_field): Fix new_field->accessibility for
5135 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5137 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5139 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5140 encountering a load via a non-SP register.
5142 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5144 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5145 field in returned unwinder.
5147 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5149 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5151 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5153 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5156 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5158 * frame.c (frame_unwind_register): Throw an error if unwinding the
5160 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5161 an unwind stop reason.
5162 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5163 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5164 UNWIND_UNAVAILABLE>: New.
5165 * inline-frame.c (inline_frame_unwind): Install
5166 default_frame_unwind_stop_reason.
5167 * frame-unwind.c: Include "exceptions.h".
5168 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5169 (default_frame_unwind_stop_reason): New.
5170 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5171 (default_frame_unwind_stop_reason): Declare.
5172 (struct frame_unwind) <stop_reason>: New function pointer.
5174 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5175 * dwarf2-frame.c: Include exceptions.h.
5176 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5177 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5178 computing the CFA. If such an error was thrown, set
5179 unavailable_retaddr.
5180 (dwarf2_frame_unwind_stop_reason): New.
5181 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5183 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5184 (dwarf2_signal_frame_unwind): Ditto.
5186 * amd64-tdep.c: Include "exceptions.h".
5187 (struct amd64_frame_cache): New field "base_p".
5188 (amd64_init_frame_cache): Clear it.
5189 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5190 Avoid reading registers with functions that throw if the register
5191 is not necessary to compute the frame base.
5192 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5193 swallowing NOT_AVAILABLE_ERROR.
5194 (amd64_frame_unwind_stop_reason): New.
5195 (amd64_frame_this_id): Don't build a frame id if the frame base
5197 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5198 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5199 base_p if the frame base was computable.
5200 (amd64_sigtramp_frame_unwind_stop_reason): New.
5201 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5202 frame base was unavailable.
5203 (amd64_sigtramp_frame_unwind): Install
5204 amd64_sigtramp_frame_unwind_stop_reason.
5205 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5206 base_p if the frame base was computable.
5207 (amd64_epilogue_frame_unwind_stop_reason): New.
5208 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5209 frame base was unavailable.
5210 (amd64_epilogue_frame_unwind): Install
5211 amd64_epilogue_frame_unwind_stop_reason.
5212 * i386-tdep.c: Include "exceptions.h".
5213 (struct i386_frame_cache): New field "base_p".
5214 (i386_init_frame_cache): Clear it.
5215 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5216 Avoid reading registers with functions that throw if the register
5217 is not necessary to compute the frame base.
5218 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5219 swallowing NOT_AVAILABLE_ERROR.
5220 (i386_frame_unwind_stop_reason): New.
5221 (i386_frame_this_id): Don't build a frame id if the frame base was
5223 (i386_frame_prev_register): Handle unavailable SP.
5224 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5225 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5226 base_p if the frame base was computable.
5227 (i386_epilogue_frame_unwind_stop_reason): New.
5228 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5229 base was unavailable.
5230 (i386_epilogue_frame_unwind): Install
5231 i386_epilogue_frame_unwind_stop_reason.
5232 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5233 base_p if the frame base was computable.
5234 (i386_sigtramp_frame_unwind_stop_reason): New.
5235 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5236 base was unavailable.
5237 (i386_sigtramp_frame_unwind): Install
5238 i386_sigtramp_frame_unwind_stop_reason.
5239 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5240 type's size, not the register's.
5241 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5243 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5244 default_frame_unwind_stop_reason.
5245 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5246 (alpha_heuristic_frame_unwind): Ditto.
5247 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5248 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5249 * avr-tdep.c (avr_frame_unwind): Ditto.
5250 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5252 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5253 * frv-tdep.c (frv_frame_unwind): Ditto.
5254 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5255 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5256 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5257 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5258 (hppa_stub_frame_unwind): Ditto.
5259 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5260 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5261 (ia64_libunwind_frame_unwind)
5262 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5263 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5264 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5265 * m32c-tdep.c (m32c_unwind): Ditto.
5266 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5267 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5268 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5269 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5270 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5271 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5272 * mep-tdep.c (mep_frame_unwind): Ditto.
5273 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5274 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5275 (mips_stub_frame_unwind): Ditto.
5276 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5277 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5278 * mt-tdep.c (mt_frame_unwind): Ditto.
5279 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5280 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5281 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5282 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5283 (s390_sigtramp_frame_unwind): Ditto.
5284 * score-tdep.c (score_prologue_unwind): Ditto.
5285 * sh-tdep.c (sh_frame_unwind): Ditto.
5286 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5287 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5288 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5289 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5290 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5291 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5292 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5293 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5294 (sparc64obsd_trapframe_unwind): Ditto.
5295 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5296 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5297 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5298 * v850-tdep.c (v850_frame_unwind): Ditto.
5299 * vax-tdep.c (vax_frame_unwind): Ditto.
5300 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5301 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5302 * xtensa-tdep.c (xtensa_unwind): Ditto.
5304 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5306 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5307 there's always a frame. Use get_frame_pc_if_available instead of
5308 get_frame_pc, and if there's no PC available, don't look up a
5311 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5313 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5316 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5318 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5321 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5323 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5324 * frame.c (frame_unwind_caller_pc_if_available): New.
5325 * stack.c (frame_info): Handle unavailable PC.
5327 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5329 * frame.c (frame_unwind_pc): Rename to ...
5330 (frame_unwind_pc_if_available): ... this. New `pc' output
5331 parameter. Change return type to int. Gracefully handle
5332 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5333 happened, or 1 otherwise.
5334 (frame_unwind_pc): Reimplement on top of
5335 frame_unwind_pc_if_available.
5336 (get_frame_func): Rename to ...
5337 (get_frame_func_if_available): New `pc' output parameter. Change
5338 return type to int. Gracefully handle the PC not being available.
5339 (get_frame_func): Reimplement on top of
5340 get_frame_func_if_available.
5341 (select_frame): Handle the PC being unavailable.
5342 (get_prev_frame): Handle the PC being unavailable.
5343 (get_frame_pc_if_available): New.
5344 (get_frame_address_in_block_if_available): New.
5345 (find_frame_sal): Handle the frame PC not being available.
5346 * frame.h (get_frame_pc_if_available): Declare.
5347 (get_frame_address_in_block_if_available): Declare.
5348 (get_frame_func_if_available): Declare.
5349 * stack.c (print_frame_info): Handle the PC being unavailable.
5350 (find_frame_funname): Ditto.
5351 (print_frame): Handle the PC being unavailable.
5352 (get_frame_language): Ditto.
5353 * blockframe.c (get_frame_block): Ditto.
5354 * macroscope.c (default_macro_scope): Ditto.
5355 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5357 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5359 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5360 NOT_AVAILABLE_ERROR when evaluating the location expression.
5362 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5364 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5365 returning that the register piece is unavailable/optimized out.
5366 (write_pieced_value): Handle get_frame_register_bytes returning
5367 that the register piece is unavailable/optimized out when doing a
5368 read-modify write of a bitfield.
5369 * findvar.c (value_from_register): Handle get_frame_register_bytes
5370 returning that the register piece is unavailable/optimized out.
5371 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5372 and `unavailablep'. Throw error on bad debug info. Use
5373 frame_register instead of frame_register_read, to fill in the new
5375 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5377 * valops.c: (value_assign): Adjust, and handle
5378 get_frame_register_bytes failing.
5379 * spu-tdep.c: Include exceptions.h.
5380 (spu_software_single_step): Adjust, and handle
5381 get_frame_register_bytes failing.
5382 (spu_get_longjmp_target): Ditto.
5383 * gdbarch.sh (register_to_value): Change to return int. New
5384 parameters `optimizedp' and `unavailablep'.
5385 * gdbarch.h, gdbarch.c: Regenerate.
5386 * i386-tdep.c (i386_register_to_value): Adjust to new
5387 gdbarch_register_to_value interface.
5388 * i387-tdep.c (i387_register_to_value): Ditto.
5389 * i387-tdep.h (i387_register_to_value): Ditto.
5390 * alpha-tdep.c (alpha_register_to_value): Ditto.
5391 * ia64-tdep.c (ia64_register_to_value): Ditto.
5392 * m68k-tdep.c (m68k_register_to_value): Ditto.
5393 * mips-tdep.c (mips_register_to_value): Ditto.
5394 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5396 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5398 * findvar.c (value_of_register): Mark the value as unavailable, if
5399 the register is unavailable.
5400 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5401 (frame_register): New `unavailablep' parameter.
5402 (frame_register_read): Update comment.
5403 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5404 Set it if the register is unavailable. If the register is
5405 unavailable, clear the output buffer.
5406 (frame_register): New `unavailablep' parameter. Pass it down.
5407 (frame_unwind_register): Adjust.
5408 (put_frame_register): Adjust.
5409 (frame_register_read): Adjust. Also return false if the register
5411 (frame_register_unwind_location): Adjust.
5412 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5413 is unavailable, mark the value accordingly.
5414 * stack.c (frame_info): Handle unavailable registers.
5416 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5418 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5419 simplify, using regcache_cooked_read.
5421 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5423 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5424 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5425 (regcache_raw_read_unsigned, regcache_raw_read_part)
5426 (regcache_cooked_read, regcache_cooked_read_signed)
5427 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5428 (regcache_cooked_read_ftype): Change return to enum
5430 * regcache.c: Include exceptions.h
5431 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5432 (do_cooked_read): Change return to enum register_status. Always
5433 forward to regcache_cooked_read.
5434 (regcache_raw_read): Change return to enum register_status. If
5435 the register is not REG_VALID, memset the buffer. Return the
5437 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5438 return the register's status.
5439 (regcache_raw_read_unsigned): Ditto.
5440 (regcache_cooked_read): Change return to enum register_status.
5441 Assert that with read-only regcaches, the register's status must
5442 be known. If the regcache is read-only, and the register is not
5443 REG_VALID, memset the buffer. Return the register's status.
5444 (regcache_cooked_read_signed): Change return to enum
5445 register_status. Handle non-REG_VALID registers and return the
5447 (regcache_cooked_read_unsigned): Change return to enum
5448 register_status. Handle non-REG_VALID registers and return the
5450 (regcache_xfer_part, regcache_raw_read_part)
5451 (regcache_cooked_read_part): Change return to enum
5452 register_status. Return the register's status.
5453 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5455 (regcache_dump): Handle unavailable cooked registers.
5456 * frame.c (do_frame_register_read): Adjust interface to match
5457 regcache_cooked_read_ftype.
5458 * gdbarch.sh (pseudo_register_read): Change return to enum
5460 * gdbarch.h, gdbarch.c: Regenerate.
5462 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5464 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5465 register_status. If reading a raw register indicates the raw
5466 register is not valid, return the raw register's status,
5467 otherwise, return REG_VALID.
5468 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5469 register_status. Handle non-REG_VALID raw registers and return
5470 the register's status.
5471 * arm-tdep.c (arm_neon_quad_read)
5472 (arm_pseudo_read): Change return to enum register_status. Handle
5473 non-REG_VALID raw registers and return the register's status.
5474 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5475 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5476 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5477 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5478 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5480 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5481 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5482 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5483 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5484 (m32c_pseudo_register_read): Change return to enum
5485 register_status. Adjust.
5486 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5487 enum register_status. Return the register's status.
5488 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5489 register_status. Return the register's status.
5490 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5491 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5492 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5493 * rs6000-tdep.c (move_ev_register_func): New typedef.
5494 (e500_move_ev_register): Use it. Change return to enum
5495 register_status. Return the register's status.
5496 (do_regcache_raw_read): New function.
5497 (do_regcache_raw_write): New function.
5498 (e500_pseudo_register_read): Change return to enum
5499 register_status. Return the register's status. Use
5500 do_regcache_raw_read.
5501 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5502 (dfp_pseudo_register_read): Change return to enum register_status.
5503 Return the register's status.
5504 (vsx_pseudo_register_read): Ditto.
5505 (efpr_pseudo_register_read): Ditto.
5506 (rs6000_pseudo_register_read): Ditto.
5507 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5508 register_status. Return the register's status.
5509 * sh64-tdep.c (pseudo_register_read_portions): New function.
5510 (sh64_pseudo_register_read): Change return to enum
5511 register_status. Use pseudo_register_read_portions. Return the
5513 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5514 register_status. Return the register's status.
5515 * sh-tdep.c (pseudo_register_read_portions): New function.
5516 (sh_pseudo_register_read): Change return to enum register_status.
5517 Use pseudo_register_read_portions. Return the register's status.
5518 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5519 enum register_status. Return the register's status.
5520 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5521 * spu-tdep.c (spu_pseudo_register_read_spu)
5522 (spu_pseudo_register_read): Ditto.
5523 * xtensa-tdep.c (xtensa_register_read_masked)
5524 (xtensa_pseudo_register_read): Ditto.
5525 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5527 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5529 * python/py-value.c (valpy_getitem): Fix formatting of error function
5532 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5534 ARI fixes: Add missing internationalization markups throughout
5536 * darwin-nat-info.c: Ditto.
5539 * mi/mi-main.c: Ditto.
5541 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5543 ARI fixes: Add missing internationalization markups throughout
5546 * cp-name-parser.y: Ditto.
5549 * objc-exp.y: Ditto.
5552 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5554 ARI fixes: Messages should have no trailing new lines.
5555 * darwin-nat.c (mach_check_error): Remove trailing new line from
5556 warning function call message.
5557 * record.c (bfdcore_read): Idem for error call.
5559 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5561 * common/signals.c (target_signal_from_host): Add _ markup to error
5562 function call message.
5563 (target_signal_to_host): Add _ markup and remove trailing new line
5564 from warning call message.
5565 (target_signal_from_command): Add _ markup to error function call
5568 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5572 * python/python.c (gdbpy_write): Accept a stream argument and
5573 operate to the appropriate stream.
5574 (gdbpy_flush): Likewise.
5575 (_initialize_python): Add stream constants.
5576 (finish_python_initialization): Add GdbOutputErrorFile class.
5578 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5580 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5582 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5584 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5585 to store_signed_integer. Add debug message when relocating CALL
5586 instructions. Fix formatting of debug message.
5587 * i386-tdep.c (i386_relocate_instruction): Ditto.
5589 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5591 * target.h (struct target_ops): Remove to_lookup_symbol field.
5592 (target_lookup_symbol): Delete macro.
5593 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5594 (update_current_target, setup_target_debug): Remove handling
5595 of to_lookup_symbol target_ops field.
5596 * ada-tasks.c (get_known_tasks_addr): Remove use of
5597 target_lookup_symbol.
5598 * coffread.c (coff_symtab_read): Likewise.
5599 * dbxread.c (read_dbx_symtab): Ditto.
5601 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5604 * configure.ac: Add getthrds declaration check.
5605 * configure, config.in: Regenerate.
5606 * aix-thread.c (getthrds): Declare only if not already declared
5607 in procinfo.h. More declaration out of get_signaled_thread to
5610 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5612 * python/py-symtab.c: Populate symtab_object_methods,
5614 (stpy_is_valid): New function.
5615 (salpy_is_valid): Ditto.
5616 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5617 (sympy_is_valid): New function.
5618 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5619 (objfpy_is_valid): New function.
5620 * python/py-inferior.c: Populate inferior_object_methods.
5621 (infpy_is_valid): New function.
5622 * python/py-infthread.c: Populate thread_object_methods.
5623 (thpy_is_valid): New function.
5624 * python/py-block.c: Declare block_object_methods. Populate. Declare
5625 block_iterator_object_methods. Populate.
5626 (blpy_is_valid): New function.
5627 (blpy_iter_is_valid): Ditto.
5629 2011-03-16 Keith Seitz <keiths@redhat.com>
5631 * linespec.c (find_methods): Canonicalize NAME before looking
5633 (name_end): New function.
5634 (keep_name_info): New function.
5635 (decode_line_1): Use keep_name_info.
5636 (decode_compound): Likewise.
5637 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5638 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5641 * linespec.c (locate_first_half): Keep overload information, too.
5642 (decode_compound): Use a string to represent break characters
5644 If P points to a break character, do not increment it.
5645 For C++ and Java, keep overload information and relevant keywords.
5646 If we cannot find a symbol, search the minimal symbols.
5649 * linespec.c (decode_compound): Rename SAVED_ARG to
5651 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5653 Pass a valid block to lookup_symbol.
5654 (lookup_prefix_sym): Likewise.
5655 (find_method): Construct search name based on SYM_CLASS instead
5657 * psymtab.c (lookup_partial_symbol): Add language parameter.
5658 (lookup_symbol_aux_psymtabs): Likewise.
5659 Don't assume that the psymtab we found was the right one. Search
5660 for the desired symbol in the symtab to be certain.
5661 (psymtab_search_name): New function.
5662 (lookup_partial_symbol): Use psymtab_search_name.
5663 Add language parameter.
5664 (read_symtabs_for_function): Add language parameter and pass to
5665 lookup_partial_symbol.
5666 (find_symbol_file_from_partial): Likewise.
5668 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5671 * dwarf2read.c (noop_record_line): New function.
5672 (dwarf_decode_lines): Ignore line tables for GCd functions.
5674 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5676 Fix ARI warnings about new lines at the end of messages, which
5677 are unneeded as there is a new line added at the end of the message
5679 * darwin-nat.c (darwin_stop_inferior): Ditto.
5680 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5681 * dfp.c (decimal_to_number): Ditto.
5682 * exec.c (print_section_info): Ditto.
5683 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5684 * osdata.c (get_osdata): Ditto.
5685 * record.c (bfdcore_write): Ditto.
5686 * remote-mips.c (mips_readchar): Ditto.
5687 * remote.c (read_ptid): Ditto.
5688 * ser-mingw.c (ser_windows_raw): Ditto.
5689 * tracepoint.c (add_local_symbols): Ditto.
5690 * windows-nat.c (fake_create_process): Ditto.
5692 2011-03-16 Tom Tromey <tromey@redhat.com>
5694 * tracepoint.c (stop_tracing): Don't declare.
5695 * event-top.c (after_char_processing_hook): Add `(void)'.
5697 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5699 * NEWS: Add Parameter sub-classing description.
5701 2011-03-16 Kai Tietz <ktietz@redhat.com>
5703 * MAINTAINERS: Update my e-mail address.
5705 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5707 * MAINTAINERS: Add myself for write after approval privileges.
5709 2011-03-15 Michael Snyder <msnyder@vmware.com>
5711 * frame.c (find_frame_sal): Assert sym is not null.
5713 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5715 * objc-lang.c (selectors_info): Check strchr for null result.
5717 * stabsread.c (define_symbol): Guard against bad stabstring input.
5719 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5721 Remove trailing spaces and tabulations from pascal language
5726 p-valprint.c: Ditto.
5728 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5730 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5731 than LOW. Comment it.
5732 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5733 HIGHPC not strictly higher than LOWPC.
5735 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5737 Fix formatting of function declarations returning a pointer in
5739 * varobj.c (varobj_add_child): Ditto.
5740 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5741 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5743 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5745 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5746 for the "generic" vector ABI used with GCC 4.3 and later.
5747 (ppc64_sysv_abi_return_value): Likewise.
5749 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5751 * infcall.c (call_function_by_hand): Function return value is
5752 always a non_lval, even when using struct_return.
5754 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5756 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5757 (map_display_numbers): New.
5758 (do_delete_display): New.
5759 (undisplay_command): Use map_display_numbers.
5760 (do_enable_disable_display): New.
5761 (enable_disable_display_command): New function.
5762 (enable_display): Delete.
5763 (enable_display_command): New.
5764 (disable_display_command): Reimplement.
5765 (_initialize_printcmd): Adjust "enable display" command to use
5766 `enable_display_command' as callback.
5768 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5770 * NEWS: Add Python breakpoint 'stop' operation.
5772 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5774 * NEWS: Delete duplicate entry. Fix typo.
5776 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5778 Fix ARI warning about function names in first column.
5779 Put prototype declaration on same line as return type.
5780 * objc-exp.y: Ditto.
5782 * python/py-stopevent.h: Ditto.
5783 For long function names, split parameters to
5784 allow function name on same line as return type.
5785 * solib-pa64.c: Ditto.
5788 For long function declaration, use single line.
5789 * hppa-tdep.h: Ditto.
5790 * inferior.h: Ditto.
5792 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5794 * python/python.h: Declare gdbpy_should_stop and
5795 gdbpy_breakpoint_has_py_cond.
5796 * python/python.c: Add python.h to includes. Remove python.h from
5797 HAVE_PYTHON definition
5798 (gdbpy_should_stop): New dummy function.
5799 (gdbpy_breakpoint_has_py_cond): New dummy function.
5800 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5801 sub-classing capabilities.
5802 (gdbpy_should_stop): New function.
5803 (gdbpy_breakpoint_has_py_cond): New function.
5804 (local_setattro): New function.
5805 * breakpoint.c (condition_command): Add check for Python 'stop'
5807 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5808 operation function as part of stop/continue tests.
5810 2011-03-14 Tom Tromey <tromey@redhat.com>
5813 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5814 (needs_frame_dwarf_call): Likewise.
5816 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5818 Fix ARI warning about functions without parameters that do not
5820 * breakpoint.c (all_tracepoints): Replace () by (void).
5821 * f-exp.y (match_string_literal): Ditto.
5823 * m2-exp.y (yylex): Ditto.
5824 * mep-tdep.c (current_me_module): Ditto.
5825 (current_options): Ditto.
5826 (current_cop_data_bus_width): Ditto.
5827 (current_cr_names): Ditto.
5828 (current_cr_is_float): Ditto.
5829 (current_ccr_names): Ditto.
5830 * objc-exp.y (yylex): Ditto.
5831 * p-exp.y (yylex): Ditto.
5832 * remote.c (send_interrupt_sequence): Ditto.
5833 * tracepoint.c (current_trace_status): Ditto.
5834 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5835 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5837 2011-03-11 Michael Snyder <msnyder@vmware.com>
5839 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5840 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5841 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5842 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5843 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5845 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5846 (delete_async_event_handler): Ditto.
5848 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5850 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5852 * top.c (set_verbose): Assert showcmd was found.
5854 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5856 * xtensa-tdep.c (warning_once): Correct style issues.
5858 2011-03-11 Yao Qi <yao@codesourcery.com>
5860 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5862 2011-03-11 Andreas Schwab <schwab@redhat.com>
5864 * common/aclocal.m4: Remove.
5866 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5868 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5869 (xtensa_write_register, xtensa_read_register): Likewise.
5870 (xtensa_hextochar): Removed.
5871 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5873 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5875 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5876 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5877 (xtensa_alloc_frame_cache): Add initialization for new fields.
5878 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5879 (warning_once): New function.
5880 (xtensa_insn_kind): New item c0opc_and.
5881 (call0_classify_opcode): Add the case for AND instruction.
5882 (call0_track_op): Change arguments. New local variable litbase.
5883 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5884 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5886 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5887 (call0_analyze_prologue): Update the comments. Change arguments.
5888 Add the variety of updates to handle extended prologues, which now can
5889 conduct dynamic stack adjustments.
5890 (call0_frame_cache): Likewise.
5891 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5892 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5894 2011-03-10 Michael Snyder <msnyder@vmware.com>
5896 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5897 (cmd_qtframe): Ditto.
5898 (cmd_qtbuffer): Ditto.
5899 (cmd_bigqtbuffer): Ditto.
5901 2011-03-10 Tom Tromey <tromey@redhat.com>
5903 * tracepoint.c (trace_actions_command): Update.
5904 * thread.c (thread_apply_command): Update.
5905 * reverse.c (delete_bookmark_command): Update.
5906 (bookmarks_info): Update.
5907 * printcmd.c (undisplay_command): Update.
5908 * memattr.c (mem_enable_command): Update.
5909 (mem_disable_command): Update.
5910 (mem_delete_command): Update.
5911 * inferior.c (detach_inferior_command): Update.
5912 (kill_inferior_command): Update.
5913 (remove_inferior_command): Update.
5914 * cli/cli-utils.h (struct get_number_or_range_state): New.
5915 (init_number_or_range): Declare.
5916 (get_number_or_range): Update.
5917 * cli/cli-utils.c (init_number_or_range): New function.
5918 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5920 (number_is_in_list): Update.
5921 * breakpoint.h (get_tracepoint_by_number): Update.
5922 * breakpoint.c (map_breakpoint_numbers): Update for change to
5923 get_number_or_range.
5924 (find_location_by_number): Use get_number, not
5925 get_number_or_range.
5926 (trace_pass_set_count): New function.
5927 (trace_pass_command): Update for change to get_number_or_range.
5929 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5932 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5934 * python/py-param.c (add_setshow_generic): Add set/show callback
5935 parameters. Register Python object context.
5936 (get_show_value): New function.
5937 (get_set_value): New function.
5938 (call_doc_function): New function.
5939 (get_doc_string): Move behind get_show_value/get_set_value.
5941 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5943 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5945 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5947 * xtensa-tdep.c (xtensa_read_register): Add comment.
5948 (xtensa_write_register): Likewise.
5949 (xtensa_hextochar): Add comment and update to match coding conventions.
5950 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5951 (execute_l32e, execute_s32e, execute_code): Update comments.
5952 (xtensa_exception_handler_t): Update to match coding conventions.
5953 (xtensa_insn_kind): Likewise.
5955 2011-03-09 Michael Snyder <msnyder@vmware.com>
5957 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5959 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5961 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5963 2011-03-09 Tom Tromey <tromey@redhat.com>
5965 * thread.c (restore_selected_frame): Handle frame_level == -1.
5966 (make_cleanup_restore_current_thread): Use
5967 get_selected_frame_if_set.
5968 * frame.h (get_selected_frame_if_set): Declare.
5969 * frame.c (get_selected_frame_if_set): New function.
5971 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5973 * cli/cli-cmds.c (shell_escape): Use lbasename.
5974 * coffread.c (coff_start_symtab): Constify parameter.
5975 (complete_symtab): Constify `name' parameter.
5976 (coff_symtab_read): Constify `filestring' local.
5977 (coff_getfilename): Constify return and `result' local.
5979 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5980 * linux-fork.c (info_checkpoints_command): Use lbasename.
5981 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5982 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5983 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5984 * procfs.c (procfs_make_note_section): Use lbasename.
5985 * tui/tui-io.c (printable_part): Constity return and parameter.
5987 (print_filename): Constify parameters, and local `s'.
5988 (tui_rl_display_match_list): Constify local `temp'.
5990 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5994 Fix DWARF-3+ DW_AT_accessibility default assumption.
5995 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5996 cu->header.version >= 3.
5998 2011-03-09 Yao Qi <yao@codesourcery.com>
6000 * common/Makefile.in: Remove.
6001 * common/configure: Remove.
6002 * common/configure.ac: Remove.
6004 2011-03-09 Yao Qi <yao@codesourcery.com>
6007 2011-02-11 Yao Qi <yao@codesourcery.com>
6009 * common/Makefile.in: Add copyright header.
6011 2011-02-11 Yao Qi <yao@codesourcery.com>
6013 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6015 * configure.ac: Add common to sub dir.
6016 * configure: Regenerate.
6018 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6020 * xtensa-tdep.c (call0_ret): New function.
6021 (xtensa_skip_prologue): Speed up analysis.
6023 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6025 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6026 while executing MI command -data-list-changed-registers.
6028 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6030 * xtensa-tdep.c (xtensa_read_register): New function.
6031 (xtensa_write_register): New function.
6032 (xtensa_find_register_by_name): New function.
6033 (xtensa_windowed_frame_cache): Update comments in type description.
6034 (xtensa_frame_cache): Likewise.
6035 (xtensa_window_interrupt_insn): New function.
6036 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6037 (xtensa_insn_kind): Add new instructions.
6038 (rwx_special_register): New function.
6039 (call0_classify_opcode): Add new instructions to the analysis.
6040 (a0_saved, a7_saved, a11_saved): New variables.
6041 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6042 (execute_l32e): New function.
6043 (execute_s32e): New function.
6044 (xtensa_exception_handler_t): New type.
6045 (execute_code): New function.
6046 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6047 analysis for Xtensa Window Exception handlers.
6049 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6051 * xtensa-tdep.c (TX_PS): New.
6052 (windowing_enabled): Update to count for Call0 ABI.
6053 (xtensa_hextochar): New.
6054 (xtensa_init_reggroups): Make algorithm generic.
6055 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6057 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6059 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6061 2011-03-08 Michael Snyder <msnyder@vmware.com>
6063 * i386-tdep.c (i386_follow_jump): Check return value of
6065 (i386_analyze_struct_return): Ditto.
6066 (i386_skip_probe): Ditto.
6067 (i386_match_insn): Ditto.
6068 (i386_skip_noop): Ditto.
6069 (i386_analyze_frame_setup): Ditto.
6070 (i386_analyze_register_saves): Ditto.
6071 (i386_skip_prologue): Ditto.
6072 (i386_skip_main_prologue): Ditto.
6074 * target.c (read_whatever_is_readable): Fix memory leak.
6076 * i386-tdep.c (i386_process_record): Document fall through.
6078 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6080 Fix DWARF-3+ DW_AT_accessibility default assumption.
6081 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6082 cu->header.version >= 3.
6084 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6086 * remote.c (remote_check_symbols): Skip if the target has no
6089 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6091 * target.c (read_whatever_is_readable): Reformat comment,
6092 with a minor typo fix. Minor reformatting of the code.
6094 2011-03-08 Yao Qi <yao@codesourcery.com>
6096 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6097 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6098 Use cached result instead of calling displaced_in_arm_mode again.
6099 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6100 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6101 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6102 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6103 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6104 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6105 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6106 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6107 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6108 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6109 (arm_catch_kernel_helper_return): Likewise.
6110 * gdb/arm-tdep.h : Update function declarations.
6112 2011-03-07 Michael Snyder <msnyder@vmware.com>
6114 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6116 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6118 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6120 * elfread.c (elf_symtab_read): Stop memory leak.
6122 * main.c (captured_main): Fix memory leak.
6124 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6126 * ada-lang.c (compare_names): Call is_name_suffix with string1
6129 2011-03-07 Tom Tromey <tromey@redhat.com>
6131 * xcoffread.c (xcoff_sym_fns): Update.
6132 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6133 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6134 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6135 (symbol_file_add_with_addrs_or_offsets): Likewise.
6136 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6137 * somread.c (som_sym_fns): Update.
6138 * psymtab.h (require_partial_symbols): Declare.
6139 * psymtab.c (require_partial_symbols): New function.
6140 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6141 (ALL_OBJFILE_PSYMTABS): Undef.
6142 (ALL_PSYMTABS): Move from psympriv.h.
6143 (lookup_partial_symtab, find_pc_sect_psymtab)
6144 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6145 (find_last_source_symtab_from_partial)
6146 (forget_cached_source_info_partial)
6147 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6148 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6149 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6150 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6151 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6152 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6153 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6154 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6155 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6157 * mipsread.c (ecoff_sym_fns): Update.
6158 * machoread.c (macho_sym_fns): Update.
6159 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6160 (read_psyms): New function.
6161 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6162 (elf_sym_fns_lazy_psyms): New global.
6163 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6164 dwarf2_build_psymtabs.
6165 * dbxread.c (aout_sym_fns): Update.
6166 * coffread.c (coff_sym_fns): Update.
6168 2011-03-07 Tom Tromey <tromey@redhat.com>
6170 * infrun.c (print_exited_reason): Include inferior id and pid in
6173 2011-03-07 Tom Tromey <tromey@redhat.com>
6175 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6177 (target_has_execution_1): Update.
6178 (target_has_execution_current): Declare.
6179 (target_has_execution): Call target_has_execution_current.
6180 (default_child_has_execution): Update.
6181 * target.c (default_child_has_execution): Add 'the_ptid'
6183 (target_has_execution_1): Likewise.
6184 (target_has_execution_current): New function.
6185 (add_target): Update.
6186 (init_dummy_target): Update.
6187 * remote-m32r-sdi.c (m32r_has_execution): New function.
6188 (init_m32r_ops): Use it.
6189 * record.c (record_core_has_execution): Now static. Add
6190 'the_ptid' parameter.
6191 * inferior.c (have_live_inferiors): Don't save current thread.
6192 Use target_has_execution_1.
6194 2011-03-07 Yao Qi <yao@codesourcery.com>
6196 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6198 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6200 * elfread.c (elf_symtab_read): Minor reformatting.
6202 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6204 * objc-lang.c (selectors_info): Minor reformatting.
6206 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6208 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6210 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6211 Michael Snyder <msnyder@vmware.com>
6213 * ada-valprint.c (ada_val_print_array): Move the declaration of
6214 "byte_order" and "elttype" inside the block where these variables
6215 are actually used. Remove some special handling for the case
6216 where "elttype" and "eltlen" are null. Replace by a comment
6217 and a couple of assertion checks.
6219 2011-03-05 Michael Snyder <msnyder@vmware.com>
6221 * source.c (add_path): Replace semicolon at end of block.
6222 * dwarf2expr.c (execute_stack_op): Ditto.
6224 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6226 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6227 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6228 (bfin-*-*): Likewise.
6230 2011-03-05 Michael Snyder <msnyder@vmware.com>
6232 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6233 * mdebugread.c (parse_symbol): Ditto.
6234 * parse.c (parse_exp_in_context): Ditto.
6235 * source.c (add_path): Ditto.
6236 * utils.c (gnu_debuglink_crc32): Ditto.
6237 * varobj.c (variable_language): Ditto.
6239 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6241 2011-03-04 Michael Snyder <msnyder@vmware.com>
6243 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6245 * symfile.c (simple_overlay_update): Check for null return value
6246 from lookup_minimal_symbol.
6248 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6250 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6252 * eval.c (parse_and_eval_address_1): Remove function.
6253 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6254 instead of parse_and_eval_address_1.
6255 * value.h (parse_and_eval_address_1): Remove prototype.
6257 2011-03-04 Michael Snyder <msnyder@vmware.com>
6259 * remote.c (putpkt_binary): Document that case stmt falls through.
6261 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6263 * breakpointc (print_it_typical): Move NULL check from here...
6264 (print_bp_stop_message): ... to here.
6266 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6268 * breakpoint.c (enable_command): Use break instead of continue,
6269 and fill in a missing break.
6270 (disable_command): Ditto.
6272 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6274 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6275 (terminal_save_ours): Remove misleading comment.
6276 (inflow_inferior_data_cleanup): Free ttystate.
6277 (inflow_inferior_exit): Likewise.
6278 (copy_terminal_info): Copy ttystate.
6280 * serial.c (serial_copy_tty_state): New function.
6281 * serial.h (serial_copy_tty_state): Add prototype.
6282 (struct serial_ops): Add copy_tty_state callback.
6283 * ser-base.c (ser_base_copy_tty_state): New function.
6284 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6285 * ser-go32.c (dos_copy_tty_state): New function.
6286 (dos_ops): Install copy_tty_state callback.
6287 * ser-mingw.c (_initialize_ser_windows): Likewise.
6288 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6289 * ser-unix.c (hardwire_copy_tty_state): New function.
6290 (_initialize_ser_hardwire): Install it.
6292 2011-03-04 Michael Snyder <msnyder@vmware.com>
6294 * breakpoint.c (create_breakpoint): Add missing break statement.
6296 Reverting this patch:
6297 * infcall.c (call_function_by_hand): Add break statements for lint.
6299 Reverting this patch:
6300 * cli/cli-script.c (script_from_file): Add break for lint.
6302 2011-03-04 Michael Snyder <msnyder@vmware.com>
6304 * solib.c (reload_shared_libraries_1): Close memory leak.
6306 2011-03-03 Tom Tromey <tromey@redhat.com>
6309 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6312 2011-03-03 Michael Snyder <msnyder@vmware.com>
6314 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6315 fields of struct 'st' to zero.
6317 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6318 sal.pspace before calling set_current_source_symtab_and_line.
6320 2011-03-03 Yao Qi <yao@codesourcery.com>
6322 * Makefile.in (configure-common): Remove. Let Makefile
6323 in dir common to rebuild itself.
6324 (common/Makefile): Likewise.
6326 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6328 * utils.c (parse_escape): Add i18n markup in error message.
6330 2011-03-03 Yao Qi <yao@codesourcery.com>
6332 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6334 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6335 (displaced_write_reg, displaced_read_reg): Likewise.
6336 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6337 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6338 (cleanup_branch): Replace magic number 14 and 15 with
6339 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6341 2011-03-02 Michael Snyder <msnyder@vmware.com>
6343 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6345 * cli/cli-script.c (script_from_file): Add break for lint.
6347 * mdebugread.c (parse_partial_symbols): Fix indent.
6349 * target-descriptions.c (tdesc_gdb_type): No need to call
6350 xstrdup, callee saves a copy.
6352 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6354 * infcall.c (call_function_by_hand): Add break statements for lint.
6356 * utils.c (parse_escape): Escape the escape char.
6358 * python/py-inferior.c (build_inferior_list): Error out if
6359 PyList_Append fails.
6360 (gdbpy_inferiors): Error out if build_inferior_list fails.
6362 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6365 * record.c (record_restore): Move printf to before error return.
6367 2011-03-02 Yao Qi <yao@codesourcery.com>
6369 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6370 is_thumb and insn_size.
6371 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6372 on both ARM and Thumb mode.
6373 (arm_process_displaced_insn): Set is_thumb and insn_size.
6374 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6375 (arm_displaced_step_fixup): Likewise.
6377 2011-03-01 Michael Snyder <msnyder@vmware.com>
6379 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6381 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6383 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6385 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6387 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6390 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6391 which shadows function parameter.
6393 * tracepoint.c (create_tsv_from_upload): Superfluous call
6394 to xstrdup. Callee already calls xstrdup.
6396 * linespec.c (decode_line_1): Remove unnecessary null check.
6398 * tracepoint.c (scope_info): Fix mem leak, remove underused
6401 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6402 superfluous null check.
6404 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6405 (value_of_builtin_frame_fp_reg): Ditto.
6407 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6409 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6412 * linespec.c (decode_line_1): Check for null before dereference.
6414 * reverse.c (record_restore): Move null-check to before pointer
6417 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6419 * objc-lang.c (selectors_info): Add explanitory comment.
6420 (classes_info): Ditto.
6422 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6424 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6425 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6426 versions of the trampoline. Handle Thumb vs. ARM addresses.
6427 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6428 (arm_linux_init_abi): Install it.
6429 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6430 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6432 2011-02-28 Michael Snyder <msnyder@vmware.com>
6434 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6435 a little bigger, to avoid possibility of an overflow.
6437 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6438 buffers a little bigger, to avoid possibility of an overflow.
6440 * coffread.c (coff_getfilename): Add check to avoid overflow.
6442 * objc-lang.c (selectors_info): Add a small safety margin to
6444 (classes_info): Error out on too long REGEXP.
6446 * infrun.c (handle_inferior_event): Remove unused function call.
6448 * fork-child.c (fork_inferior): Remove ifdef'd code and
6451 * linux-thread-db.c (attach_thread): Discard unused value.
6453 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6455 * remote.c (remote_get_noisy_reply): Discard unused value.
6456 (remote_vcont_resume): Ditto.
6457 (remote_stop_ns): Ditto.
6459 * linespec.c (decode_objc): Delete unused variable.
6461 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6463 * dwarf2read.c (add_partial_symbol): Discard unused values.
6464 (read_base_type): Delete unused variable.
6466 * dbxread.c (read_dbx_symtab): Discard unused value.
6468 * eval.c (evaluate_subexp_standard): Delete unused variable,
6469 and discard unused values.
6471 * infcmd.c (_initialize_infcmd): Discard unused values.
6473 * stabsread.c (rs6000_builtin_type): Missing break statement.
6475 * dbxread.c (process_one_symbol): Discard unused value.
6477 * coffread.c (coff_end_symtab): Delete unused variable.
6479 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6480 (dwarf2_add_typedef): Delete unused variable.
6481 (read_namespace): Ditto.
6482 (dwarf_decode_macros): Ditto.
6484 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6486 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6488 * p-valprint.c (pascal_val_print): Discard unused value.
6490 * utils.c (nquery): Call va_end before return;
6494 * proc-service.c (ps_plog): Call va_end before return.
6496 2011-02-28 Tom Tromey <tromey@redhat.com>
6498 * python/python.c (gdbpy_value_cst): New global.
6499 (_initialize_python): Initialize it.
6500 * python/python-internal.h (gdbpy_value_cst): Declare.
6501 * python/py-value.c (convert_value_from_python): Use
6504 2011-02-28 Michael Snyder <msnyder@vmware.com>
6506 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6508 * breakpoint.c (catch_syscall_completer): Free malloced list.
6510 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6512 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6513 (lval_func_check_synthetic_pointer): Ditto.
6514 (lval_func_free_closure): Fix use-after-free.
6516 2011-02-28 Tom Tromey <tromey@redhat.com>
6518 * psymtab.c (expand_partial_symbol_tables): Use
6519 ALL_OBJFILE_PSYMTABS.
6521 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 * objc-lang.c (selectors_info): Error on too long REGEXP.
6525 2011-02-28 Michael Snyder <msnyder@vmware.com>
6527 * python/py-param.c (set_parameter_value): Add missing
6530 * linux-record.c (record_linux_system_call): Add missing
6533 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6535 * breakpoint.c (print_one_breakpoint_location): Remove unused
6536 argument PRINT_ADDRESS_BITS. Update callers.
6537 (print_one_breakpoint): Likewise.
6539 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6541 * breakpoint.c (wrap_indent_at_field): New function.
6542 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6543 Allocate ui_stream locally instead of using STB argument.
6544 (print_one_breakpoint_location): Update call.
6545 * ui-out.c (ui_out_query_field): New function.
6546 * ui-out.h (ui_out_query_field): Add prototype.
6548 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6550 From Michael Snyder <msnyder@vmware.com>
6551 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6553 2011-02-27 Michael Snyder <msnyder@vmware.com>
6555 * objc-lang.c (selectors_info): Prevent string overrun.
6557 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6560 * symtab.c (rbreak_command): Move variable 'file_name' to
6563 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6564 param with a local variable of the same name.
6566 2011-02-27 Michael Snyder <msnyder@vmware.com>
6568 * value.c (value_from_history_ref): New function.
6569 * value.h (value_from_history_ref): Export.
6570 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6571 to parse value history references.
6572 * cli/cli-utils.h (get_number_trailer): Update comment.
6574 2011-02-27 Michael Snyder <msnyder@vmware.com>
6576 * inferior.c (detach_inferior_command): Use get_number_or_range.
6577 (kill_inferior_command): Ditto.
6578 (remove_inferior_command): Ditto.
6579 (initialize_inferiors): Make command names plural.
6580 Update help strings.
6582 2011-02-27 Michael Snyder <msnyder@vmware.com>
6584 * darwin-nat-info.c: Fix comment typo.
6585 * dwarf2expr.h: Ditto.
6586 * fbsd-nat.c: Ditto.
6587 * fbsd-nat.h: Ditto.
6588 * frame-unwind.h: Ditto.
6590 * hppa-hpux-tdep.c: Ditto.
6591 * i386-linux-nat.c: Ditto.
6592 * linux-nat.c: Ditto.
6593 * nbsd-nat.c: Ditto.
6594 * nbsd-nat.h: Ditto.
6595 * ppc-linux-tdep.c: Ditto.
6598 * tui/tui-winsource.c: Ditto.
6600 2011-02-26 Michael Snyder <msnyder@vmware.com>
6602 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6604 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6606 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6607 with a local variable of the same name.
6609 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6610 param with a local variable of the same name.
6611 (i387_supply_xsave): Ditto.
6613 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6614 that it does not shadow a function parameter.
6616 * i386-nat.c (i386_length_and_rw_bits): Document that case
6617 statement is meant to fall through.
6619 * expprint.c (dump_subexp_body_standard): Document that case
6620 statement is meant to fall through.
6622 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6623 dead if statement. Condition can't be false.
6625 2011-02-25 Michael Snyder <msnyder@vmware.com>
6627 * arm-tdep.c: Fix typos in comments.
6628 * bsd-uthread.c: Ditto.
6629 * completer.c: Ditto.
6631 * cp-namespace.c: Ditto.
6632 * cp-support.c: Ditto.
6633 * cris-tdep.c: Ditto.
6635 * dwarf2read.c: Ditto.
6637 * gdbtypes.h: Ditto.
6638 * inferior.h: Ditto.
6639 * mdebugread.c: Ditto.
6640 * mips-tdep.c: Ditto.
6641 * ppc-linux-nat.c: Ditto.
6642 * ppc-linux-tdep.c: Ditto.
6643 * printcmd.c: Ditto.
6644 * sol-thread.c: Ditto.
6645 * solib-frv.c: Ditto.
6647 * sparc64-tdep.c: Ditto.
6648 * spu-tdep.c: Ditto.
6649 * stabsread.c: Ditto.
6654 * python/py-block.c: Ditto.
6655 * python/py-symbol.c: Ditto.
6656 * python/py-symtab.c: Ditto.
6657 * python/py-value.c: Ditto.
6658 * tui/tui-win.c: Ditto.
6660 2011-02-25 Michael Snyder <msnyder@vmware.com>
6662 * inferior.c (print_inferior): Accept a string instead of an int
6663 for requested_inferiors, and use get_number_or_range to parse it.
6664 (info_inferiors_command): Pass args string to print_inferior.
6665 (initialize_inferiors): Change help string for info inferiors.
6666 * inferior.h (print_inferior): Export prototype change.
6668 2011-02-25 Tom Tromey <tromey@redhat.com>
6670 * common/ax.def (invalid2): Set to 0x31.
6672 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6674 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6676 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6678 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6680 2011-02-24 Michael Snyder <msnyder@vmware.com>
6682 * Makefile.in (clean): Make clean should remove generated files
6683 observer.h and observer.inc.
6685 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6687 Revert the following patch (not approved yet):
6688 2011-02-21 Hui Zhu <teawater@gmail.com>
6689 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6690 * ax-gdb.c (gen_printf_expr_callback): New function.
6691 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6692 * ax-general.c (ax_memcpy): New function.
6693 (ax_print): Handle "printf".
6695 * ax.h (ax_memcpy): Forward declare.
6696 * common/ax.def (invalid2): Removed.
6697 (printf): New entry.
6698 * printcmd.c (printcmd.h): New include.
6699 (string_printf): New function.
6700 (ui_printf): Removed.
6701 (printf_command): Remove static. Call string_printf.
6702 (eval_command): Call string_printf.
6703 * printcmd.h: New file.
6704 * tracepoint.c (validate_actionline,
6705 encode_actions_1): handle printf_command.
6707 2011-02-23 Tom Tromey <tromey@redhat.com>
6709 * ax-general.c (ax_pick): Add missing newline.
6711 2011-02-23 Michael Snyder <msnyder@vmware.com>
6713 * breakpoint.c (breakpoint_1): Change first argument from an int
6714 to a char pointer, so that the function now accepts a list of
6715 breakpoints rather than just one. Use new function
6716 'number_is_in_list' to implement.
6717 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6718 (watchpoints_info): Ditto.
6719 (tracepoints_info): Ditto.
6720 (maintenance_info_breakpoints): Ditto.
6721 (_initialize_breakpoint): Update help strings to reflect the fact
6722 that these functions can now take more than one argument.
6723 * cli/cli-utils.c (number_is_in_list): New function.
6724 * cli/cli-utils.h (number_is_in_list): Export.
6726 2011-02-23 Michael Snyder <msnyder@vmware.com>
6728 * memattr.c (mem_enable_command): Use get_number_or_range.
6729 (mem_disable_command): Ditto.
6730 (mem_delete_command): Ditto.
6731 (_initialize_mem): Tweak usage message to reflect multiple
6734 2011-02-22 Doug Evans <dje@google.com>
6736 Add gdb.lookup_global_symbol python function.
6738 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6739 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6740 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6742 2011-02-22 Tom Tromey <tromey@redhat.com>
6744 * language.c (language_class_name_from_physname): Rename
6745 'curr_language' argument to 'lang'; use in body.
6747 2011-02-22 Michael Snyder <msnyder@vmware.com>
6749 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6751 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6753 * frame-unwind.h: Fix comment to mention the this frame, not the
6756 2011-02-22 Tom Tromey <tromey@redhat.com>
6758 * symfile.c (auto_solib_limit): Remove.
6759 * symfile.h (auto_solib_limit): Remove.
6761 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6763 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6765 2011-02-21 Michael Snyder <msnyder@vmware.com>
6767 * gdbthread.h (print_thread_info): Change prototype.
6768 * thread.c (print_thread_info): Accept char* instead of int for
6769 requested_threads argument. Use new function number_is_in_list
6770 to determine which threads to list.
6771 (info_threads_command): Pass char* to print_thread_info.
6772 * cli/cli-utils.c (number_is_in_list): New function.
6773 * cli/cli-utils.h (number_is_in_list): Export.
6774 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6776 (print_one_inferior): Ditto.
6777 (mi_cmd_list_thread_groups): Ditto.
6779 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6781 * common/Makefile.in (CFLAGS): New.
6782 (COMPILE): Add $(CFLAGS).
6784 2011-02-21 Tom Tromey <tromey@redhat.com>
6786 * breakpoint.c (catch_syscall_command_1): Fix typo.
6788 2011-02-21 Tom Tromey <tromey@redhat.com>
6790 * reverse.c: Include cli-utils.h.
6791 * printcmd.c: Include cli-utils.h.
6792 (string_printf): Use skip_spaces.
6793 * cli/cli-utils.h: New file.
6794 * cli/cli-utils.c: New file.
6795 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6796 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6797 * breakpoint.h (get_number, get_number_or_range): Move to
6799 * breakpoint.c: Include cli-utils.h.
6800 (get_number_trailer, get_number, get_number_or_range)
6801 (ep_skip_leading_whitespace): Move to cli-utils.c.
6802 (create_breakpoint_sal, find_condition_and_thread)
6803 (decode_static_tracepoint_spec, watch_command_1)
6804 (watch_maybe_just_location, ep_parse_optional_if_clause)
6805 (catch_fork_command_1, catch_exec_command_1)
6806 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6807 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6808 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6809 (HFILES_NO_SRCDIR): Add cli-utils.h.
6810 (cli-utils.o): New target.
6812 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6814 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6815 before calling discard_all_inferiors.
6817 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6819 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6820 (struct builtin_opencl_type): Remove.
6821 (builtin_opencl_type): Change return type to "struct type **".
6822 (lookup_opencl_vector_type): Update caller.
6823 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6824 (build_opencl_types): Install plain array of "struct type *"
6825 instead of "struct builtin_opencl_type".
6827 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6828 Ulrich Weigand <uweigand@de.ibm.com>
6830 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6831 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6832 (struct arm_linux_hwbp_cap): New type.
6833 (arm_linux_get_hwbp_cap): New function.
6834 (arm_linux_get_hw_breakpoint_count): Likewise.
6835 (arm_linux_get_hw_watchpoint_count): Likewise.
6836 (arm_linux_can_use_hw_breakpoint): Likewise.
6837 (arm_hwbp_type): New type.
6838 (arm_hwbp_control_t): Likewise.
6839 (struct arm_linux_hw_breakpoint): Likewise.
6840 (struct arm_linux_thread_points): Likewise.
6841 (arm_threads): New global variable.
6842 (arm_linux_find_breakpoints_by_tid): New function.
6843 (arm_hwbp_control_initialize): Likewise.
6844 (arm_hwbp_control_is_enabled): Likewise.
6845 (arm_hwbp_control_disable): Likewise.
6846 (arm_linux_hw_breakpoint_initialize): Likewise.
6847 (arm_linux_get_hwbp_type): Likewise.
6848 (arm_linux_hw_watchpoint_initialize): Likewise.
6849 (arm_linux_hw_breakpoint_equal): Likewise.
6850 (arm_linux_insert_hw_breakpoint1): Likewise.
6851 (arm_linux_remove_hw_breakpoint1): Likewise.
6852 (arm_linux_insert_hw_breakpoint): Likewise.
6853 (arm_linux_remove_hw_breakpoint): Likewise.
6854 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6855 (arm_linux_insert_watchpoint): Likewise.
6856 (arm_linux_remove_watchpoint): Likewise.
6857 (arm_linux_stopped_data_address): Likewise.
6858 (arm_linux_stopped_by_watchpoint): Likewise.
6859 (arm_linux_watchpoint_addr_within_range): Likewise.
6860 (arm_linux_new_thread): Likewise.
6861 (arm_linux_thread_exit): Likewise.
6862 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6863 related target callbacks. Register arm_linux_new_thread and
6864 arm_linux_thread_exit.
6865 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6866 * arm-tdep.c (arm_pc_is_thumb): Make global.
6867 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6869 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6871 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6872 per-frame locations while within a function epilogue.
6874 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6876 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6877 to GNU coding standards.
6879 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6881 Allow use of mingw native on Windows 95 OS.
6882 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6883 (ser_windows_close): Only call CancelIo if function exists.
6884 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6885 to check for existence of CancelIo function in kernel32 DLL.
6887 2011-02-21 Hui Zhu <teawater@gmail.com>
6889 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6890 * ax-gdb.c (gen_printf_expr_callback): New function.
6891 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6892 * ax-general.c (ax_memcpy): New function.
6893 (ax_print): Handle "printf".
6895 * ax.h (ax_memcpy): Forward declare.
6896 * common/ax.def (invalid2): Removed.
6897 (printf): New entry.
6898 * printcmd.c (printcmd.h): New include.
6899 (string_printf): New function.
6900 (ui_printf): Removed.
6901 (printf_command): Remove static. Call string_printf.
6902 (eval_command): Call string_printf.
6903 * printcmd.h: New file.
6904 * tracepoint.c (validate_actionline,
6905 encode_actions_1): handle printf_command.
6907 2011-02-19 Michael Snyder <msnyder@vmware.com>
6909 * reverse.c (delete_one_bookmark): Argument is now bookmark
6910 id rather than pointer to bookmark struct.
6911 (delete_bookmark_command): Use get_number_or_range.
6912 (goto_bookmark_command): Parse with get_number instead of strtoul.
6913 (bookmark_1): New function. Print info for one bookmark.
6914 (bookmarks_info): Use get_number_or_range and bookmark_1.
6916 2011-02-18 Michael Snyder <msnyder@vmware.com>
6918 * thread.c (info_threads_command): Re-implement using
6919 get_number_or_range.
6920 (thread_apply_command): Ditto.
6922 2011-02-18 Tom Tromey <tromey@redhat.com>
6924 * common/ax.def: New file.
6925 * ax.h (enum agent_op): Use ax.def.
6926 * ax-general.c (aop_map): Use ax.def.
6928 2011-02-18 Tom Tromey <tromey@redhat.com>
6930 * ax-general.c (aop_map): Add pick and rot.
6931 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6932 <DW_OP_rot>: Implement.
6933 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6935 * ax-general.c (ax_pick): New function.
6937 2011-02-18 Tom Tromey <tromey@redhat.com>
6939 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6941 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6942 Tom Tromey <tromey@redhat.com>
6944 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6945 make_symbol_overload_list_block with NULL BLOCK.
6946 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6948 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6950 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6951 * breakpoint.h (get_number_or_range): Declare.
6952 * printcmd.c (ALL_DISPLAYS): Declare.
6953 (delete_display): Reimplement taking a display pointer.
6954 (undisplay_command): Accept a range of displays to delete, using
6955 get_number_or_range.
6957 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6959 * c-valprint.c (c_val_print): Add embedded_offset to address
6960 for arrays of unspecified length.
6961 * p-valprint.c (pascal_val_print): Likewise.
6963 2011-02-18 Yao Qi <yao@codesourcery.com>
6965 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6966 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6967 (thumb_process_displaced_insn): New.
6968 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6969 call to arm_process_displaced_insn.
6970 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6972 2011-02-17 Tom Tromey <tromey@redhat.com>
6974 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6975 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6976 compile_dwarf_to_ax. No longer static. Call
6977 dwarf2_compile_cfa_to_ax.
6978 (locexpr_tracepoint_var_ref): Update.
6979 (loclist_tracepoint_var_ref): Update.
6980 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6981 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6982 argument; add 'gdbarch' and 'pc'.
6983 (dwarf2_compile_cfa_to_ax): New function.
6984 (dwarf2_frame_cache): Update.
6986 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6988 * ada-lang.c (ada_type_of_array): Fix the size of the array
6989 in the case of an unconstrained packed array.
6991 2011-02-17 Yao Qi <yao@codesourcery.com>
6993 * common/Makefile.in: Add more targets for make.
6995 2011-02-16 Tom Tromey <tromey@redhat.com>
6997 * dwarf2loc.c (unimplemented): Fix typo.
6999 2011-02-16 Tom Tromey <tromey@redhat.com>
7001 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7002 (compile_dwarf_to_ax) <default>: Use unimplemented.
7003 <DW_OP_deref>: Update.
7004 (disassemble_dwarf_expression): Update.
7005 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7006 (decode_locdesc): Update.
7007 * dwarf2expr.h (dwarf_stack_op_name): Update.
7009 2011-02-16 Tom Tromey <tromey@redhat.com>
7011 * ax.h (struct aop_map) <name>: Now const.
7013 2011-02-16 Tom Tromey <tromey@redhat.com>
7015 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7018 2011-02-16 Yao Qi <yao@codesourcery.com>
7020 * infrun.c (get_displaced_step_closure_by_addr): New.
7021 * inferior.h: Declare it.
7022 * arm-tdep.c: (arm_pc_is_thumb): Call
7023 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7026 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7027 Jan Kratochvil <jan.kratochvil@redhat.com>
7030 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7032 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7033 Jan Kratochvil <jan.kratochvil@redhat.com>
7035 * value.c (value_contents_copy_raw): Extend describing comment.
7036 Assert that the destination contents we're overwriting are wholly
7038 (value_contents_copy): Extend describing comment.
7040 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7041 Jan Kratochvil <jan.kratochvil@redhat.com>
7043 * value.c (value_available_contents_eq): Remove redundant local
7044 variables. Fix available contents comparision.
7045 * value.h (value_available_contents_eq): Extend describing
7048 2011-02-16 Yao Qi <yao@codesourcery.com>
7050 * thread.c (info_threads_command): Add missing i18n markup and remove
7053 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7055 * breakpoint.c (longjmp_names): New variable.
7056 (struct breakpoint_objfile_data): New type.
7057 (breakpoint_objfile_key): New variable.
7058 (msym_not_found): New variable.
7059 (msym_not_found_p): New predicate.
7060 (get_breakpoint_objfile_data): New function.
7061 (create_overlay_event_breakpoint): Check per-objfile cache for
7063 (create_longjmp_master_breakpoint): Likewise.
7064 (create_std_terminate_master_breakpoint): Likewise.
7065 (create_exception_master_breakpoint): Likewise.
7066 (_initialize_breakpoint): Register per-objfile data key.
7068 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7070 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7072 (create_longjmp_master_breakpoint): Loop over longjmp names.
7073 (create_std_terminate_master_breakpoint): Const-propagate parameter
7075 (update_breakpoints_after_exec): Adjust.
7076 (breakpoint_re_set): Adjust.
7078 2011-02-15 Michael Snyder <msnyder@vmware.com>
7080 * thread.c (info_threads_command): Process arg as thread id,
7081 or list of thread ids.
7082 (thread_find_command): New command.
7083 (_initialize_thread): Document argument for info threads.
7084 Document 'thread find' command.
7085 * NEWS: Document new command "thread find".
7087 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7089 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7090 * aclocal.m4: Regenerated with aclocal-1.11.1.
7091 * common/configure: Regenerate with autoconf-2.64.
7093 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7095 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7096 bool data type to a size of one byte.
7098 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7099 Jan Kratochvil <jan.kratochvil@redhat.com>
7101 * target.c (memory_xfer_live_readonly_partial): Document where to
7102 look for interface description.
7104 2011-02-15 Yao Qi <yao@codesourcery.com>
7107 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7108 order to store PC value on stack instead of text section.
7110 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7112 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7113 the EFP register set size.
7114 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7115 data from the VMX register.
7116 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7117 and write data from/to the VMX register.
7119 2011-02-14 Michael Snyder <msnyder@vmware.com>
7121 * command.h (enum command_class): New class 'no_set_class', for
7122 "show" commands without a corresponding "set" command.
7123 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7124 * copying.c (_initialize_copying): Ditto for "show copying" and
7126 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7128 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7129 which there is no corresponding "set" command (eg. "show copying").
7131 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7132 Jan Kratochvil <jan.kratochvil@redhat.com>
7134 * exec.c (section_table_available_memory): Change `len' parameter
7136 * exec.h (section_table_available_memory): Ditto.
7137 * value.h (read_value_memory): Rename the `offset' parameter to
7140 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7141 Jan Kratochvil <jan.kratochvil@redhat.com>
7143 * memrange.c (compare_mem_ranges): Mention sort order in
7145 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7146 * tracepoint.c (traceframe_available_memory): Extend comment to
7147 mention what happens to RESULT when the target does not support
7150 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7151 Jan Kratochvil <jan.kratochvil@redhat.com>
7153 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7156 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7158 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7159 No longer handle NULL values.
7161 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7163 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7164 * value.c: Include "exceptions.h".
7165 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7167 * cp-abi.c: Include gdb_assert.h.
7168 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7169 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7171 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7172 parameters. No longer returns -1 on error.
7173 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7175 * cp-valprint.c: Include exceptions.h.
7176 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7177 the baseclass_offset. Handle unavailable base classes. Use
7178 val_print_invalid_address.
7179 * p-valprint.c: Include exceptions.h.
7180 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7181 when fetching the baseclass_offset. No longer expect
7182 baseclass_offset returning -1. Handle unavailable base classes.
7183 Use val_print_invalid_address.
7184 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7185 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7186 `embedded_offset' and `val' parameters. Adjust.
7187 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7188 parameter, and change its type to gdb_byte pointer. Add
7189 `embedded_offset' and `val' parameters. Adjust. No longer expect
7190 baseclass_offset returning -1.
7191 (value_dynamic_cast): Use value_contents_for_printing rather than
7192 value_contents. Adjust.
7193 (search_struct_field): No longer expect baseclass_offset returning
7195 (search_struct_method): If reading memory from the target is
7196 necessary, wrap it in a new value to pass to baseclass_offset. No
7197 longer expect baseclass_offset returning -1.
7198 (find_method_list): No longer expect baseclass_offset returning
7199 -1. Use value_contents_for_printing rather than value_contents.
7200 * valprint.c (val_print_invalid_address): New function.
7201 * valprint.h (val_print_invalid_address): Declare.
7202 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7203 and `val' parameters. No longer expect baseclass_offset returning
7205 * gnu-v2-abi.c: Include "exceptions.h".
7206 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7207 parameters. Handle unavailable memory. Recurse through
7208 gnuv2_baseclass_offset directly, rather than through
7209 baseclass_offset. No longer returns -1 on not found, instead
7211 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7212 `val' parameters. Adjust.
7214 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7216 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7217 almost but not quite adjacent.
7219 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7221 * value.h (value_entirely_available): Declare.
7222 * value.c (value_entirely_available): New function.
7223 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7224 real type if the pointer is unavailable.
7226 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7228 * valops.c (value_repeat): Use read_value_memory instead of
7231 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7233 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7234 * value.c (value_contents_copy_raw, value_contents_copy): New
7236 (value_primitive_field): Use value_contents_copy_raw instead of
7238 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7240 (value_array, value_slice): Ditto.
7241 * valarith.c (value_subscripted_rvalue): Use
7242 value_contents_copy_raw instead of memcpy.
7244 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7246 <unavailable> references.
7248 * valops.c (get_value_at): Use value_from_contents_and_address,
7249 avoiding read_memory.
7251 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7253 * c-valprint.c (c_val_print): Print a string with unavailable
7254 contents as an array.
7256 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7258 * value.h (unpack_bits_as_long): Delete declaration.
7259 (unpack_value_bits_as_long): Declare.
7260 (unpack_value_field_as_long): Declare.
7261 (value_field_bitfield): Declare.
7262 * value.c (unpack_bits_as_long): Rename to...
7263 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7264 value parameters. Return the extracted result in a new output
7265 parameter. If the value contents are unavailable, return false,
7266 otherwise return true.
7267 (unpack_value_bits_as_long): New.
7268 (unpack_field_as_long): Rename to...
7269 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7270 Add embedded_offset and value parameters. Return the extracted
7271 result in a new output parameter. If the value contents are
7272 unavailable, return false, otherwise return true.
7273 (unpack_value_field_as_long): New.
7274 (unpack_field_as_long_1): New.
7275 (unpack_field_as_long): Reimplement as wrapper around
7276 unpack_value_field_as_long_1.
7277 (value_field_bitfield): New function.
7278 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7279 unpack_value_bits_as_long. Mark the value as unavailable, if it
7281 * jv-valprint.c (java_print_value_fields): Use
7282 value_field_bitfield.
7283 * p-valprint.c (pascal_object_print_value_fields): Use
7284 value_field_bitfield.
7285 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7287 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7289 * value.c (get_internalvar_integer): Also return the int value of
7290 TYPE_CODE_INT INTERNALVAR_VALUE values.
7291 (set_internalvar): Don't special case TYPE_CODE_INT.
7293 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7295 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7296 INTERNALVAR_POINTER.
7298 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7299 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7300 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7304 * value.h (value_available_contents_eq): Declare.
7305 * value.c (find_first_range_overlap): New function.
7306 (value_available_contents_eq): New function.
7307 * valprint.c (val_print_array_elements): Use
7308 value_available_contents_eq.
7309 * ada-valprint.c (val_print_packed_array_elements): Use
7310 value_available_contents_eq.
7311 * jv-valprint.c (java_value_print): Use
7312 value_available_contents_eq.
7314 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7316 * target.c (target_read_live_memory): New function.
7317 (memory_xfer_live_readonly_partial): New.
7318 (memory_xfer_partial): If reading from a traceframe, fallback to
7319 reading unavailable read-only memory from read-only regions of
7321 * tracepoint.c (disconnect_tracing): Adjust.
7322 (set_current_traceframe): New, factored out from
7323 set_traceframe_number.
7324 (set_traceframe_number): Reimplement to only change the traceframe
7325 number on the GDB side.
7326 (do_restore_current_traceframe_cleanup): Adjust.
7327 (make_cleanup_restore_traceframe_number): New.
7328 (cur_traceframe_number): New global.
7329 (tfile_open): Set cur_traceframe_number to no traceframe.
7330 (set_tfile_traceframe): New function.
7331 (tfile_trace_find): If looking up a traceframe using any method
7332 other than by number, make sure the current tfile traceframe
7333 matches gdb's current traceframe. Update the current tfile
7334 traceframe if the lookup succeeded.
7335 (tfile_fetch_registers, tfile_xfer_partial)
7336 (tfile_get_trace_state_variable_value): Make sure the remote
7337 traceframe matches gdb's current traceframe.
7338 * remote.c (remote_traceframe_number): New global.
7339 (remote_open_1): Set it to -1.
7340 (set_remote_traceframe): New function.
7341 (remote_fetch_registers, remote_store_registers)
7342 (remote_xfer_memory, remote_xfer_partial)
7343 (remote_get_trace_state_variable_value): Make sure the remote
7344 traceframe matches gdb's current traceframe.
7345 (remote_trace_find): If looking up a traceframe using any method
7346 other than by number, make sure the current remote traceframe
7347 matches gdb's current traceframe. Update the current remote
7348 traceframe if the lookup succeeded.
7349 * infrun.c (fetch_inferior_event): Adjust.
7350 * tracepoint.h (set_current_traceframe): Declare.
7351 (get_traceframe_number, set_traceframe_number): Add describing
7354 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7356 Mark pieces of values as unavailable if the corresponding memory
7359 * valops.c: Include tracepoint.h.
7360 (value_fetch_lazy): Use read_value_memory.
7361 (read_value_memory): New.
7362 * value.h (read_value_memory): Declare.
7363 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7364 * exec.c (section_table_available_memory): New function.
7365 * exec.h (section_table_available_memory): Declare.
7367 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7369 * Makefile.in (SFILES): Add memrange.c.
7370 (HFILES_NO_SRCDIR): Add memrange.h.
7371 (COMMON_OBS): Add memrange.o.
7372 * memrange.c: New file.
7373 * memrange.h: New file.
7374 * tracepoint.c: Include memrange.h.
7375 (struct mem_range): Delete.
7376 (mem_range_s): Delete.
7377 (traceframe_available_memory): New function.
7378 * tracepoint.h (traceframe_available_memory): Declare.
7380 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7382 * target.h (struct traceframe_info): Forward declare.
7383 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7384 (struct target_ops) <to_traceframe_info>: New field.
7385 (target_traceframe_info): New.
7386 * target.c (update_current_target): Inherit and default
7388 * remote.c (PACKET_qXfer_traceframe_info): New.
7389 (remote_protocol_features): Register qXfer:traceframe-info:read.
7390 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7391 (remote_traceframe_info): New.
7392 (init_remote_ops): Install it.
7393 (_initialize_remote): Install "set/show remote traceframe-info"
7395 * tracepoint.h (parse_traceframe_info): Declare.
7396 * tracepoint.c (struct mem_range): New.
7397 (mem_range_s): New typedef.
7398 (struct traceframe_info): New.
7399 (traceframe_info): New global.
7400 (free_traceframe_info): New function.
7401 (clear_traceframe_info): New function.
7402 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7404 (build_traceframe_info): New function.
7405 (tfile_traceframe_info): New function.
7406 (init_tfile_ops): Install tfile_traceframe_info.
7407 (traceframe_info_start_memory, free_result): New functions.
7408 (memory_attributes, traceframe_info_elements): New globals.
7409 (parse_traceframe_info, get_traceframe_info): New functions.
7410 * features/traceframe-info.dtd: New file.
7411 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7413 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7415 Base support for <unavailable> value contents.
7417 * value.h (value_bytes_available): Declare.
7418 (mark_value_bytes_unavailable): Declare.
7419 * value.c (struct range): New struct.
7420 (range_s): New typedef.
7421 (ranges_overlap): New function.
7422 (range_lessthan): New function.
7423 (ranges_contain_p): New function.
7424 (struct value) <unavailable>: New field.
7425 (value_bytes_available): New function.
7426 (mark_value_bytes_unavailable): New function.
7427 (require_not_optimized_out): Constify parameter.
7428 (require_available): New function.
7429 (value_contents_all, value_contents): Require all bytes be
7431 (value_free): Free `unavailable'.
7432 (value_copy): Copy `unavailable'.
7433 * valprint.h (val_print_unavailable): Declare.
7434 * valprint.c (valprint_check_validity): Rename `offset' parameter
7435 to `embedded_offset'. If printing a scalar, check whether the
7436 value chunk is available.
7437 (val_print_unavailable): New.
7438 (val_print_scalar_formatted): Check whether the value is
7440 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7441 pretty-printing unavailable values.
7443 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7445 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7446 * c-typeprint.c (c_type_print_args): Update the function comment. New
7447 variable param_type, initialize it. Remove const/volatile qualifiers
7448 for language_cplus and !show_artificial. Use param_type.
7450 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7452 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7453 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7454 * symtab.h (struct symtab) <next>: Comment extension.
7456 2011-02-12 Yao Qi <yao@codesourcery.com>
7458 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7460 2011-02-11 Yao Qi <yao@codesourcery.com>
7462 * common/Makefile.in: Add copyright header.
7464 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7466 * infrun.c (proceed): Move switching out and in of tfind mode from
7468 (fetch_inferior_event): ... to here.
7470 2011-02-11 Yao Qi <yao@codesourcery.com>
7472 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7474 * configure.ac: Add common to sub dir.
7475 * configure: Regenerate.
7477 2011-02-11 Yao Qi <yao@codesourcery.com>
7481 * common/Makefile.in: New.
7482 * common/configure.ac: New.
7483 * common/aclocal.m4: New.
7484 * common/configure: Generate.
7486 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7488 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7489 side of the parenthesis.
7492 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7493 * vec.h (VEC_block_remove): Fix comment.
7495 2011-02-08 Michael Snyder <msnyder@vmware.com>
7497 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7499 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7501 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7502 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7505 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7508 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7510 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7511 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7513 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7515 * dwarf2read.c (read_subroutine_type): Set special calling
7516 convention flag for functions compiled by IBM XL C for OpenCL.
7517 * ppc-sysv-tdep.c: Include "dwarf2.h"
7518 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7520 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7521 IBM OpenCL vector types calling convention.
7522 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7523 (ppc_sysv_abi_broken_return_value): Likewise.
7524 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7525 types calling convention.
7526 (ppc64_sysv_abi_return_value): Likewise.
7527 * spu-tdep.c: Include "dwarf2.h"
7528 (spu_return_value): Implement IBM OpenCL vector types calling
7531 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7533 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7534 correct ABI for AltiVec vector arguments.
7536 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7538 * valprint.c (val_print): Extend comment.
7539 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7540 interface explanation to val_print.
7541 (ada_val_print_array): Adjust comment to current interface.
7542 (print_field_values): Adjust comment to current interface.
7543 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7544 explanation to val_print.
7545 * f-valprint.c (f_val_print): Ditto.
7546 * jv-valprint.c (java_val_print): Ditto.
7547 * m2-valprint.c (m2_val_print): Ditto.
7548 * p-valprint.c (pascal_val_print): Ditto.
7550 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7552 * breakpoint.c (parse_breakpoint_sals): Fix description.
7554 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7555 Oguz Kayral <oguzkayral@gmail.com>
7557 * python/py-inferior.c (python_on_normal_stop): New function.
7558 (python_on_resume): New function.
7559 (python_inferior_exit): New function.
7560 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7561 inferior_exit observers.
7562 * python/py-evtregistry.c: New file.
7563 * python/py-threadevent.c : New file.
7564 * python/py-event.c: New file.
7565 * python/py-evts.c: New file.
7566 * python/py-continueevent.c: New file.
7567 * python/py-bpevent.c: New file.
7568 * python/py-signalevent.c: New file.
7569 * python/py-exetiedevent.c: New file.
7570 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7571 Move struct breakpoint_object from here...
7572 * python/python-internal.h: ... to here.
7573 * python/py-event.h: New file.
7574 * python/py-events.h: New file.
7575 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7576 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7577 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7578 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7579 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7580 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7581 Add build rules for all the above.
7583 2011-02-04 Tom Tromey <tromey@redhat.com>
7585 * dwarf2read.c (dwarf2_section_empty_p): New function.
7586 (dwarf2_read_section): Use dwarf2_section_empty_p.
7587 (dwarf2_section_size): New function.
7588 (dwarf2_get_section_info): Unconditionally read section.
7589 (dwarf2_read_index): Use dwarf2_section_empty_p.
7590 (partial_read_comp_unit_head): Use dwarf2_section_size.
7591 (dwarf2_symbol_mark_computed): Likewise.
7593 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7595 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7597 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7599 * mips-linux-tdep.c: Include xml-syscall.h.
7600 (mips_linux_get_syscall_number): New function.
7601 (mips_linux_init_abi): Add calls to
7602 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7603 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7604 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7605 * syscalls/mips-n32-linux.xml: New file.
7606 * syscalls/mips-n64-linux.xml: New file.
7607 * syscalls/mips-o32-linux.xml: New file.
7609 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7611 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7612 Complain about inverted range entries.
7613 (dwarf2_record_block_ranges): Likewise.
7615 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7618 * breakpoint.c (update_watchpoint): Fix name of the
7619 update_global_location_list function.
7620 (print_one_breakpoint): Fix typo.
7621 (_initialize_breakpoint): Remove extra space in hbreak help
7623 * breakpoint.h (struct bp_location) <length>: Fix field
7626 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7628 * regcache.c (registers_changed_ptid): Don't explictly always
7629 clear `current_regcache'. Only clear current_thread_ptid and
7630 current_thread_arch when PTID matches. Only reinit the frame
7631 cache if PTID matches the current inferior_ptid. Move alloca(0)
7633 (registers_changed): ... here.
7635 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7637 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7638 starts with __stack_chk_guard as stack guard symbol.
7640 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7642 * disasm.c (compare_lines): Handle the end of sequence markers
7643 within the line table to better support disassembling over
7644 compilation unit boundaries.
7646 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7648 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7649 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7650 implementation even if no symbols are available.
7651 (thumb_analyze_prologue): Update call to skip_prologue_function.
7652 (arm_analyze_prologue): Likewise.
7654 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7656 * arm-tdep.c: Include "observer.h".
7657 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7658 (arm_exidx_data_key): New static variable.
7659 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7660 (struct arm_exidx_data): Likewise.
7661 (arm_exidx_data_free): New function.
7662 (arm_compare_exidx_entries): Likewise.
7663 (arm_obj_section_from_vma): Likewise.
7664 (arm_exidx_new_objfile): Likewise.
7665 (arm_find_exidx_entry): Likewise.
7666 (arm_exidx_fill_cache): Likewise.
7667 (arm_exidx_unwind_sniffer): Likewise.
7668 (arm_exidx_unwind): New global variable.
7669 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7670 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7671 observer. Register arm_exidx_data_key as objfile data.
7673 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7675 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7676 due to accessing uninitialized variable. Fix indentation.
7678 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7680 * c-valprint.c (c_value_print): When doing virtual base pointer
7681 adjustment, create a new value with adjusted contents rather than
7682 changing the contents of the value being printed (and getting it
7685 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7687 * xml-support.c (xml_find_attribute): New.
7688 (xinclude_start_include): Use it.
7689 * xml-support.h (xml_find_attribute): Declare.
7690 * memory-map.c (memory_map_start_memory)
7691 (memory_map_start_property): Use xml_find_attribute.
7692 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7694 * remote.c (start_thread): Use xml_find_attribute.
7695 * solib-target.c (library_list_start_segment)
7696 (library_list_start_section, library_list_start_library)
7697 (library_list_start_list): Use xml_find_attribute.
7698 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7699 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7700 (tdesc_start_field): Use xml_find_attribute.
7702 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7704 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7705 (BUILD_OCL_VTYPES): Update.
7707 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7709 * configure.ac: Work around non-GNU sed limitation when computing
7710 python version number.
7711 * configure: Regenerate.
7713 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7715 Fix debug printing of TYPE_INSTANCE.
7716 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7717 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7719 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7721 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7722 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7723 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7724 * ada-operator.inc: Rename the file to ...
7725 * ada-operator.def: ... here, wrap all the entries by macro OP.
7726 * expprint.c (op_name_standard): Remove all the entries. Include
7727 "std-operator.def" instead.
7728 * expression.h (enum exp_opcode): Include "std-operator.def" and
7729 "ada-operator.def". Move all the entries ...
7730 * std-operator.def: ... here, wrap all the entries by macro OP.
7732 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7734 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7735 * breakpoint.c (remove_jit_event_breakpoints): New function.
7736 * jit.c (jit_descriptor_addr): Delete.
7737 (registering_code): Delete.
7738 (clear_int): Delete.
7739 (jit_inferior_data): New variable.
7740 (struct jit_inferior_data): New type.
7741 (get_jit_inferior_data): New function.
7742 (jit_inferior_data_cleanup): New function.
7743 (jit_read_descriptor): Adjust.
7744 (jit_register_code): Adjust.
7745 (jit_breakpoint_re_set_internal): New function; move code here ...
7746 (jit_inferior_init): ... from here.
7747 (jit_breakpoint_re_set): Adjust.
7748 (jit_reset_inferior_data_and_breakpoints): New function.
7749 (jit_inferior_created_observer): Adjust.
7750 (jit_inferior_exit_hook): Adjust.
7751 (jit_executable_changed_observer): New function.
7752 (jit_event_handler): Adjust.
7753 (_initialize_jit): Adjust.
7755 2011-01-31 Michael Snyder <msnyder@vmware.com>
7757 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7760 2011-01-31 Tom Tromey <tromey@redhat.com>
7763 * python/python.c (execute_gdb_command): Call
7764 prevent_dont_repeat.
7765 * top.c (suppress_dont_repeat): New global.
7766 (dont_repeat): Use it.
7767 (prevent_dont_repeat): New function.
7768 * command.h (prevent_dont_repeat): Declare.
7770 2011-01-31 Tom Tromey <tromey@redhat.com>
7772 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7773 * python/py-breakpoint.c (bppy_set_silent): Use
7774 breakpoint_set_silent.
7775 (bppy_set_thread): Use breakpoint_set_thread.
7776 (bppy_set_task): Use breakpoint_set_task.
7777 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7778 (breakpoint_set_task): Declare.
7779 (make_breakpoint_silent): Remove.
7780 * breakpoint.c (breakpoint_set_silent): New function.
7781 (breakpoint_set_thread): Likewise.
7782 (breakpoint_set_task): Likewise.
7783 (make_breakpoint_silent): Remove.
7785 2011-01-31 Tom Tromey <tromey@redhat.com>
7787 * breakpoint.h (user_breakpoint_p): Declare.
7788 * breakpoint.c (user_breakpoint_p): New function.
7789 (breakpoint_1): Use it.
7790 (save_breakpoints): Likewise.
7792 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7794 * configure.ac: Add handling of Python distribution on Windows.
7795 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7796 sysconfig variables are not defined, then do not use them.
7797 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7798 instead. On Windows, return all paths using forward-slashes
7799 rather than backslashes.
7801 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7803 * configure.ac: Remove fallback behavior for building
7804 against Python. Remove tweaking of Python include path.
7805 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7806 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7807 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7808 Always restore CPPFLAGS and LIBS after linking test.
7809 * configure: Regenerated.
7810 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7811 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7812 * python/python-internal.h: Adjust includes of Python .h files.
7814 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7816 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7819 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7821 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7824 2011-01-31 Yao Qi <yao@codesourcery.com>
7826 * arm-linux-nat.c: Update calls to regcache_register_status
7827 instead of regcache_valid_p.
7828 * aix-thread.c: Likewise.
7829 * i386gnu-nat.c: Likewise.
7831 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7834 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7835 touching TYPE_FIELD_ARTIFICIAL.
7837 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7839 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7842 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7844 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7845 selected, don't try iterating over the traceframe's blocks.
7846 (tfile_has_stack): If there's no traceframe selected, then there's
7848 (tfile_has_registers): If there's no traceframe selected, then
7849 there's no registers.
7851 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7853 * target.c (memory_xfer_partial): No need to restore shadows if we
7854 haven't read anything.
7856 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7858 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7859 and val_print_scalar_formatted.
7861 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7863 * tracepoint.c (tfile_read): New.
7864 (tfile_open): Use it.
7865 (tfile_get_traceframe_address): Use it.
7866 (tfile_trace_find): Use it.
7867 (walk_blocks_callback_func): New typedef.
7868 (match_blocktype): New function.
7869 (traceframe_walk_blocks): New function.
7870 (traceframe_find_block_type): New function.
7871 (tfile_fetch_registers, tfile_xfer_partial)
7872 (tfile_get_trace_state_variable_value): Use
7873 traceframe_find_block_type and tfile_read.
7875 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7877 * remote-mips.c: Add internationalization mark ups. Remove
7878 trailing \n from already marked up strings.
7880 2011-01-26 Tom Tromey <tromey@redhat.com>
7882 * python/py-prettyprint.c (print_string_repr): Clear
7883 'addressprint' option when calling val_print_string.
7884 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7885 option when calling val_print_string.
7887 2011-01-26 Tom Tromey <tromey@redhat.com>
7889 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7891 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7893 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7894 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7895 (gdb_py_long_as_ulongest): New defines.
7896 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7897 (gdb_py_int_as_long): Declare.
7898 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7899 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7900 (valpy_long): Add comment.
7901 * python/py-utils.c (get_addr_from_python): Use
7902 gdb_py_long_as_ulongest. Handle overflow properly.
7903 (gdb_py_object_from_longest): New function.
7904 (gdb_py_object_from_ulongest): Likewise.
7905 (gdb_py_int_as_long): Likewise.
7906 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7907 * python/py-symtab.c (salpy_get_pc): Use
7908 gdb_py_long_from_ulongest.
7909 (salpy_get_line): Use PyInt_FromLong.
7910 * python/py-param.c (set_parameter_value): Use
7912 * python/py-lazy-string.c (stpy_get_address): Use
7913 gdb_py_long_from_ulongest.
7914 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7915 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7916 * python/py-breakpoint.c (bppy_set_thread): Use
7918 (bppy_set_task): Likewise.
7919 (bppy_set_ignore_count): Likewise.
7920 (bppy_set_hit_count): Likewise.
7921 * python/py-block.c (blpy_get_start): Use
7922 gdb_py_object_from_ulongest.
7923 (blpy_get_end): Likewise.
7924 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7926 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7929 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7930 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7931 equality test for objfile, initialize addr_low if needed.
7933 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7935 * tui/tui-regs.c (tui_register_format): Remove dead code.
7937 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7939 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7940 instead of print_scalar_formatted.
7941 (print_scalar_formatted): Don't handle 's' format strings here,
7942 and add an assertion that we never see such format here.
7943 * valprint.h (val_print_scalar_formatted): Declare.
7944 * valprint.c (val_print_scalar_formatted): New.
7945 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7946 instead of print_scalar_formatted.
7947 * jv-valprint.c (java_val_print): Ditto.
7948 * p-valprint.c (pascal_val_print): Ditto.
7949 * ada-valprint.c (ada_val_print_1): Ditto.
7950 * f-valprint.c (f_val_print): Ditto.
7951 * infcmd.c (registers_info): Ditto.
7952 * m2-valprint.c (m2_val_print): Ditto.
7954 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7956 * m2-valprint.c (print_unbounded_array): Pass
7957 value_contents_for_printing rather than value_contents, to
7958 m2_print_array_contents. Also pass in the value.
7960 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7962 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7963 (save_gdb_index_command): Switch to .gdb_index version 4.
7965 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7967 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7968 than frame_register, and always pass a valid value to val_print.
7970 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7972 Centralize printing "<optimized out>".
7974 * valprint.h (val_print_optimized_out): Declare.
7975 * cp-valprint.c (cp_print_value_fields): Use
7976 val_print_optimized_out.
7977 * jv-valprint.c (java_print_value_fields): Ditto.
7978 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7979 * printcmd.c (print_formatted): Ditto.
7980 * valprint.c (valprint_check_validity): Ditto.
7981 (value_check_printable): Ditto.
7982 (val_print_optimized_out): New.
7984 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7986 * infcmd.c (default_print_registers_info): Allocate values so to
7987 never pass a NULL value to val_print.
7989 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7991 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7992 boolean. Make sure to always pass a value that matches the
7993 contents buffer to callees. Preserve `address' for following
7995 * value.c (value_contents_for_printing_const): New.
7996 (value_address): Constify value argument.
7997 * value.h (value_contents_for_printing_const): Declare.
7998 (value_address): Constify value argument.
8000 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8002 * regcache.c (struct regcache_descr): Rename
8003 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8004 and sizeof_cooked_register_valid_p to
8005 sizeof_cooked_register_status.
8006 (init_regcache_descr): Adjust.
8007 (struct regcache): Rename register_valid_p field to
8009 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8010 (do_cooked_read): Adjust.
8011 (regcache_valid_p): Rename to ...
8012 (regcache_register_status): ... this. Adjust.
8013 (regcache_invalidate): Adjust.
8014 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8016 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8017 as unavailable, not valid.
8018 (regcache_dump): Adjust.
8019 * regcache.h (enum register_status): New.
8020 (regcache_register_status): Declare.
8021 (regcache_invalidate): Delete declaration.
8022 * corelow.c (get_core_registers): Adjust.
8023 * tracepoint.c (tfile_fetch_registers): Adjust.
8024 * trad-frame.c (REG_VALUE): Rename to ...
8025 (TF_REG_VALUE): ... this.
8026 (REG_UNKNOWN): Rename to ...
8027 (TF_REG_UNKNOWN): ... this.
8028 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8029 * mi/mi-main.c (register_changed_p): Adjust.
8031 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8033 * regcache.c (struct regcache_descr): Remove outdated comment.
8034 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8036 (regcache_xmalloc): Rename to ...
8037 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8038 Allocate the regcache type accordingly.
8039 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8040 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8041 cooked registers, not raw.
8042 (regcache_dup_no_passthrough): Delete.
8043 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8044 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8045 mention obsolete write_register_bytes.
8046 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8048 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8050 Stop remote_read_bytes from handling partial reads itself.
8052 * remote-fileio.c: Include target.h.
8053 (remote_fileio_write_bytes): Delete.
8054 (remote_fileio_func_open, remote_fileio_func_write)
8055 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8057 (remote_fileio_func_stat): Use target_read_memory and
8058 target_write_memory.
8059 (remote_fileio_func_gettimeofday): Use target_write_memory.
8060 (remote_fileio_func_system): Use target_read_memory.
8061 * remote.c (remote_write_bytes): Make it static.
8062 (remote_read_bytes): Don't handle partial reads here.
8063 * remote.h (remote_read_bytes): Delete declaration.
8065 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8067 Simplify XML parsing a bit.
8069 * xml-support.h (gdb_xml_parse_quick): Declare.
8070 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8071 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8073 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8074 gdb_xml_create_parser_and_cleanup_1.
8075 (gdb_xml_parse_quick): New.
8076 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8077 * osdata.c (osdata_parse): Ditto.
8078 * remote.c (remote_threads_info): Ditto.
8079 * solib-target.c (solib_target_parse_libraries): Ditto.
8080 * xml-syscall.c (syscall_parse_xml): Ditto.
8081 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8083 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8085 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8086 with remote-mips.o added to gdb_target_obs.
8087 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8089 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8091 * ada-valprint.c (val_print_packed_array_elements): Pass the
8092 correct struct value to val_print.
8093 (ada_val_print_1): Ditto.
8095 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8097 Don't lose embedded_offset in printing routines throughout.
8099 * valprint.h (val_print_array_elements): Change prototype.
8100 * valprint.c (val_print_array_elements): Add `embedded_offset'
8101 parameter, and adjust to pass it down to val_print, while passing
8102 `valaddr' or `address' unmodified. Take embedded_offset into
8103 account when checking repetitions.
8104 * c-valprint.c (c_val_print): Pass embedded_offset to
8105 val_print_array_elements instead of adjusting `valaddr' and
8107 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8108 embedded_offset to val_print_array_elements instead of adjusting
8110 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8111 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8112 val_print_array_elements and pascal_object_print_value_fields
8113 instead of adjusting `valaddr'.
8114 (pascal_object_print_value_fields): Add `offset' parameter, and
8116 (pascal_object_print_value): Add `offset' parameter, and adjust to
8118 (pascal_object_print_static_field): Use
8119 value_contents_for_printing/value_embedded_offset, rather than
8121 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8122 parameter, and adjust to use it. Use
8123 value_contents_for_printing/value_embedded_offset, rather than
8125 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8126 (ada_val_print_array): Add `offset' parameter, and adjust to use
8128 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8129 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8130 Instead work with offsets. Use
8131 value_contents_for_printing/value_embedded_offset, rather than
8132 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8133 and use value_from_pointer to extract a target pointer, rather
8134 than value_from_longest.
8135 (print_variant_part): Add `offset' parameter. Replace
8136 `outer_valaddr' parameter by a new `outer_offset' parameter.
8137 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8138 (ada_value_print): Use
8139 value_contents_for_printing/value_embedded_offset, rather than
8141 (print_record): Add `offset' parameter, and adjust to pass it
8143 (print_field_values): Add `offset' parameter. Replace
8144 `outer_valaddr' parameter by a new `outer_offset' parameter.
8145 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8146 Use value_contents_for_printing/value_embedded_offset, rather than
8148 * d-valprint.c (dynamic_array_type): Use
8149 value_contents_for_printing/value_embedded_offset, rather than
8151 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8152 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8153 (java_print_value_fields): Take `offset' into account. Don't
8154 re-adjust `valaddr'. Instead pass down adjusted offsets.
8155 (java_val_print): Take `embedded_offset' into account. Pass it to
8156 java_print_value_fields.
8157 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8158 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8159 down adjusted offsets.
8160 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8161 (f_val_print): Take `embedded_offset' into account.
8163 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8165 * inflow.c: Include "gdbcmd.h".
8166 (interactive_mode): New static global, moved here from top.c.
8167 (show_interactive_mode): New function, moved here from top.c.
8168 use gdb_has_a_terminal instead of input_from_terminal_p to
8169 determine the current mode.
8170 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8172 (_initialize_inflow): Add the "set/show interactive-mode"
8173 commands. Moved here from top.c, after having adjusted slightly
8175 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8177 (input_from_terminal_p): Remove handling of "interactive-mode"
8178 setting, moved to infow.c.
8179 (init_main): Remove creation of the "set/show interactive-mode"
8180 commands, moved to inflow.c.
8182 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8184 * NEWS: Add entry for native ia64-hpux support.
8186 2011-01-19 Tom Tromey <tromey@redhat.com>
8189 * thread.c (free_thread): Free 'name'.
8190 (print_thread_info): Emit thread name. Change CLI output.
8191 (thread_name_command): New function.
8192 (do_captured_thread_select): Emit newline.
8193 (_initialize_thread): Register 'thread name' command.
8194 * target.h (struct target_ops) <to_thread_name>: New field.
8195 (target_thread_name): New macro.
8196 * target.c (update_current_target): Handle to_thread_name.
8197 * python/py-infthread.c (thpy_get_name): New function.
8198 (thpy_set_name): Likewise.
8199 (thread_object_getset): Add "name".
8200 * linux-nat.c (linux_nat_thread_name): New function.
8201 (linux_nat_add_target): Set to_thread_name.
8202 * gdbthread.h (struct thread_info) <name>: New field.
8204 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8206 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8207 (ada_val_print_1): Likewise.
8209 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8211 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8212 upper limit address is not greater than the function end address
8213 when the upper limit could not be computed using the debugging
8216 2011-01-17 Tom Tromey <tromey@redhat.com>
8218 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8220 * utils.c: Include gdb_regex.h.
8221 (do_regfree_cleanup): New function.
8222 (make_regfree_cleanup): Likewise.
8223 (get_regcomp_error): Likewise.
8224 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8226 2011-01-17 Tom Tromey <tromey@redhat.com>
8228 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8231 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8233 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8234 for internal variables.
8235 (last_was_structop): New static variable.
8236 (COMPLETE): New token.
8237 (field_exp): New rule to group all '.' suffix handling.
8238 Add mark_struct_expression calls when approriate to be able
8239 to correctly find fields for completion.
8240 (yylex): Adapt to handle field completion and set INTVAR when
8243 2011-01-14 Yao Qi <yao@codesourcery.com>
8245 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8246 save_reggroup, restore_reggroup and all_reggroup.
8248 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8250 * ada-valprint. (ada_printchar): Use the correct type length
8251 in call to ada_emit_char.
8252 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8254 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8256 * solib-som.h (hpux_major_release): Declare variable here.
8257 * solib-som.c: Remove <sys/utsname.h> header.
8258 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8259 (hpux_major_release): Make global, change default value to
8260 DEFAULT_HPUX_MAJOR_RELEASE.
8261 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8262 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8263 Add "solib-som.h" header.
8264 (set_hpux_major_release): New function.
8265 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8267 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8269 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8271 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8273 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8274 new-line at end of warning message.
8275 (ia64_hpux_store_register): Remove trailing new-line at end of
8277 * ia64-hpux-tdep.c: Rephrase comment.
8278 * solib-ia64-hpux.c (struct dld_info): Change type of field
8279 dld_flags from "long long" to ULONGEST.
8281 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8283 * target.h (deprecated_child_ops): Delete declaration.
8284 * target.c (deprecated_child_ops): Delete definition.
8286 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8288 * Makefile.in (hpux-thread.o): Delete rule.
8289 * configure.ac: Don't check for HPUX DCE threads support.
8290 * configure, config.in: Regenerate.
8291 * hppa-hpux-nat.c (child_suppress_run): Delete.
8292 (hppa_hpux_child_can_run): Delete.
8293 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8294 * hpux-thread.c: Delete.
8296 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8298 * hpux-thread.c (hpux_pid_to_str): Delete.
8300 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8302 * ada-valprint.c (ada_emit_char): Remove strange code.
8303 Check that c is <= UCHAR_MAX before passing it to isascii.
8304 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8306 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8308 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8309 to the case where instream is stdin.
8311 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8313 * ia64-tdep.h (struct regcache): Forward declare.
8314 (struct ia64_infcall_ops): New struct type.
8315 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8317 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8318 Renames ia64_find_global_pointer.
8319 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8320 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8321 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8323 (ia64_infcall_ops): New static global constant.
8324 (ia64_gdbarch_init): Set tdep->infcall_ops.
8325 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8326 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8327 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8328 (ia64_hpux_dummy_code): New static global constant.
8329 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8330 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8331 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8333 (ia64_hpux_infcall_ops): New static global constant.
8334 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8335 for inferior function calls to work properly on ia64-hpux.
8337 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8339 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8340 * ia64-tdep.h (struct frame_info): forward declaration.
8341 (struct gdbarch_tdep): Add field size_of_register_frame.
8342 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8343 to determine the size of the register frame.
8344 (ia64_size_of_register_frame): New function.
8345 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8346 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8347 (IA64_HPUX_UREG_REASON): New macro.
8348 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8350 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8351 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8352 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8355 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8357 Add support for ia64-hpux.
8358 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8359 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8361 * configure.host: Add handling for ia64-hpux hosts. Add associated
8363 * configure.tgt: Add handling for ia64-hpux targets.
8364 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8365 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8366 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8368 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8370 [ttrace] Compute thread list immediately after attach.
8371 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8373 (inf_ttrace_attach): Use it.
8375 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8377 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8378 if we could not determine the frame's function address. Instead,
8379 use the frame's PC, and then continue.
8381 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8383 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8384 not already defined.
8386 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8388 * ia64-tdep.c (ia64_struct_type_p): New function.
8389 (ia64_extract_return_value): Handle integral values that are
8390 less than 8 bytes long.
8391 (ia64_push_dummy_call): Likewise.
8393 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8395 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8396 floatformat_ia64_ext.
8397 (floatformat_ia64_ext_big): New static const.
8398 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8400 2011-01-12 Tom Tromey <tromey@redhat.com>
8402 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8404 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8405 (mi_cmd_thread_list_ids): Likewise.
8406 (mi_cmd_data_list_changed_registers): Likewise.
8407 (mi_cmd_data_list_register_values): Likewise.
8408 (mi_cmd_data_write_register_values): Likewise.
8409 (mi_cmd_data_evaluate_expression): Likewise.
8410 (mi_cmd_data_read_memory): Likewise.
8411 (mi_cmd_data_read_memory_bytes): Likewise.
8412 (mi_cmd_data_write_memory): Likewise.
8413 (mi_cmd_enable_timings): Likewise.
8414 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8415 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8416 (mi_cmd_var_delete): Likewise.
8417 (mi_cmd_var_set_format): Likewise.
8418 (mi_cmd_var_show_format): Likewise.
8419 (mi_cmd_var_info_num_children): Likewise.
8420 (mi_cmd_var_list_children): Likewise.
8421 (mi_cmd_var_info_type): Likewise.
8422 (mi_cmd_var_info_expression): Likewise.
8423 (mi_cmd_var_show_attributes): Likewise.
8424 (mi_cmd_var_assign): Likewise.
8425 (mi_cmd_var_update): Likewise.
8426 (mi_cmd_enable_pretty_printing): Likewise.
8427 (mi_cmd_var_set_update_range): Likewise.
8428 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8430 (mi_cmd_target_file_put): Likewise.
8431 (mi_cmd_target_file_delete): Likewise.
8432 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8434 (mi_cmd_stack_info_depth): Likewise.
8435 (mi_cmd_stack_list_locals): Likewise.
8436 (mi_cmd_stack_list_args): Likewise.
8437 (mi_cmd_stack_select_frame): Likewise.
8438 (mi_cmd_stack_select_frame): Likewise.
8439 (mi_cmd_stack_info_frame): Likewise.
8440 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8442 (mi_cmd_file_list_exec_source_files): Likewise.
8443 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8444 (mi_cmd_env_cd): Likewise.
8445 (mi_cmd_env_path): Likewise.
8446 (mi_cmd_env_dir): Likewise.
8447 (mi_cmd_inferior_tty_show): Likewise.
8448 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8449 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8450 (mi_cmd_break_watch): Likewise.
8452 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8454 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8455 (ppc_linux_insert_hw_breakpoint): Likewise.
8456 (ppc_linux_remove_hw_breakpoint): Likewise.
8457 (ppc_linux_insert_watchpoint): Likewise.
8459 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8460 Jan Kratochvil <jan.kratochvil@redhat.com>
8462 PR fortran/11104 and DWARF unbound arrays detection.
8463 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8464 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8465 unspecified upper bound.
8466 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8467 variables array_size_array, tmp_type and offset_item. New variable
8468 array. Remove call to f77_get_upperbound. New variables array_type
8469 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8470 the final call to deprecated_set_value_type.
8472 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8474 Make value allocations more lazy.
8475 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8476 instead of allocate_value and set_value_lazy when possible.
8477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8478 instead of allocate_value and set_value_lazy.
8479 * findvar.c (value_of_register_lazy): Likewise.
8480 (read_var_value): Remove V preallocation, call just check_typedef in
8481 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8482 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8483 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8484 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8485 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8486 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8487 the end, remove set_value_lazy there.
8488 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8489 instead of allocate_value and set_value_lazy when possible.
8490 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8491 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8492 of allocate_value and set_value_lazy.
8493 (value_from_contents_and_address): Use allocate_value_lazy instead of
8494 allocate_value and set_value_lazy when possible.
8496 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8498 * disasm.c (dump_insns): Support dumping opcodes for MI.
8499 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8500 dumping of instruction opcodes.
8502 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8504 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8507 2011-01-11 Tom Tromey <tromey@redhat.com>
8509 * thread.c (do_captured_thread_select): Emit newline before
8512 2011-01-11 Michael Snyder <msnyder@vmware.com>
8514 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8515 * score-tdep.c: Ditto.
8516 * score-tdep.h: Ditto.
8517 * ser-base.c: Ditto.
8518 * ser-go32.c: Ditto.
8521 * ser-mingw.c: Ditto.
8522 * ser-pipe.c: Ditto.
8524 * ser-unix.c: Ditto.
8525 * sh64-tdep.c: Ditto.
8526 * shnbsd-nat.c: Ditto.
8530 * solib-darwin.c: Ditto.
8531 * solib-frv.c: Ditto.
8533 * solib-irix.c: Ditto.
8534 * solib-osf.c: Ditto.
8535 * solib-pa64.c: Ditto.
8536 * solib-som.c: Ditto.
8537 * solib-spu.c: Ditto.
8538 * solib-sunos.c: Ditto.
8539 * solib-svr4.c: Ditto.
8541 * sol-thread.c: Ditto.
8545 * sparc64-linux-tdep.c: Ditto.
8546 * sparc64-tdep.c: Ditto.
8547 * sparc-linux-nat.c: Ditto.
8548 * sparc-linux-tdep.c: Ditto.
8549 * sparc-sol2-nat.c: Ditto.
8550 * sparc-sol2-tdep.c: Ditto.
8551 * sparc-tdep.c: Ditto.
8552 * sparc-tdep.h: Ditto.
8553 * spu-tdep.c: Ditto.
8554 * stabsread.c: Ditto.
8555 * stabsread.h: Ditto.
8563 * target-descriptions.c: Ditto.
8564 * target-descriptions.h: Ditto.
8566 * target-memory.c: Ditto.
8567 * terminal.h: Ditto.
8570 * tracepoint.c: Ditto.
8571 * tracepoint.h: Ditto.
8572 * trad-frame.h: Ditto.
8573 * typeprint.c: Ditto.
8575 2011-01-11 Michael Snyder <msnyder@vmware.com>
8577 * ui-file.c: Comment cleanup, mostly periods and spaces.
8582 * v850-tdep.c: Ditto.
8583 * valarith.c: Ditto.
8585 * valprint.c: Ditto.
8586 * valprint.h: Ditto.
8591 * vax-tdep.c: Ditto.
8595 * windows-nat.c: Ditto.
8596 * windows-tdep.c: Ditto.
8597 * xcoffread.c: Ditto.
8598 * xcoffsolib.c: Ditto.
8599 * xml-support.c: Ditto.
8600 * xstormy16-tdep.c: Ditto.
8601 * xtensa-tdep.c: Ditto.
8602 * xtensa-tdep.h: Ditto.
8604 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8606 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8607 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8609 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8610 Thiago Jung Bauermann <bauerman@br.ibm.com>
8612 Implement support for PowerPC BookE ranged watchpoints.
8614 (struct breakpoint_ops) <resources_needed>: New method.
8615 Initialize to NULL in all existing breakpoint_ops instances.
8616 (struct breakpoint) <exact>: New field.
8617 (target_exact_watchpoints): Declare external global.
8618 * breakpoint.c (target_exact_watchpoints): New global flag.
8619 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8620 b->enable_state to bp_enabled before calling
8621 hw_watchpoint_used_count.
8622 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8623 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8625 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8626 if the watchpoint is exact.
8627 (resources_needed_watchpoint): New function.
8628 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8629 (watch_command_1): Set b->exact if the user asked for an exact
8630 watchpoint and one can be set.
8631 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8632 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8633 the user asks for an exact watchpoint and one can be set. Return
8634 number of needed debug registers to watch the expression.
8635 * gdbtypes.c (is_scalar_type): New function, based on
8636 valprint.c:scalar_type_p.
8637 (is_scalar_type_recursive): New function.
8638 * gdbtypes.h (is_scalar_type_recursive): Declare.
8639 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8640 handle regions when ranged watchpoints are available.
8641 (create_watchpoint_request): New function.
8642 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8643 create_watchpoint_request.
8644 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8645 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8646 `set powerpc' and `show powerpc' commands.
8647 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8648 Mention documentation comment in the target macro.
8649 (target_region_ok_for_hw_watchpoint): Document return value.
8651 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8653 * breakpoint.c (update_watchpoint): Decide on using a software or
8654 hardware watchpoint after the bp_locations are created.
8656 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8658 Convert hardware watchpoints to use breakpoint_ops.
8659 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8660 <insert_location>: ... this. Return int instead of void.
8661 Accept pointer to struct bp_location instead of pointer to
8662 struct breakpoint. Adapt all implementations.
8663 (breakpoint_ops) <remove>: Rename to...
8664 <remove_location>: ... this. Accept pointer to struct bp_location
8665 instead of pointer to struct breakpoint. Adapt all implementations.
8666 * breakpoint.c (insert_catchpoint): Delete function.
8667 (insert_bp_location): Call the watchpoint or catchpoint's
8668 breakpoint_ops.insert method.
8669 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8670 breakpoint_ops.remove method.
8671 (insert_watchpoint, remove_watchpoint): New functions.
8672 (watchpoint_breakpoint_ops): New structure.
8673 (watch_command_1): Initialize the OPS field.
8674 * inf-child.c (inf_child_insert_fork_catchpoint)
8675 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8676 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8677 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8679 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8680 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8681 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8682 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8683 * target.c (update_current_target): Change default implementation of
8684 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8685 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8686 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8687 to_set_syscall_catchpoint to return_one.
8688 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8689 (debug_to_insert_exec_catchpoint): Report return value.
8690 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8691 (to_insert_exec_catchpoint): Change declaration to return int instead
8694 2011-01-11 Michael Snyder <msnyder@vmware.com>
8696 * arm-tdep.c: Internationalization.
8699 * fork-child.c: Ditto.
8700 * nto-procfs.c: Ditto.
8701 * ppc-sysv-tdep.c: Ditto.
8703 * remote-mips.c: Ditto.
8705 * rs6000-nat.c: Ditto.
8706 * rs6000-tdep.c: Ditto.
8710 * xml-support.c: Ditto.
8711 * mi/mi-cmd-break.c: Ditto.
8712 * mi/mi-cmd-var.c: Ditto.
8713 * mi/mi-interp.c: Ditto.
8714 * mi/mi-main.c: Ditto.
8716 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8718 * remote-sim.c (gdbsim_store_register): Update API to
8719 sim_store_register to check more error conditions.
8721 2011-01-10 Michael Snyder <msnyder@vmware.com>
8723 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8724 * nto-tdep.c: Ditto.
8725 * nto-tdep.h: Ditto.
8726 * objc-exp.y: Ditto.
8727 * objc-lang.c: Ditto.
8728 * objfiles.c: Ditto.
8729 * objfiles.h: Ditto.
8730 * observer.c: Ditto.
8731 * opencl-lang.c: Ditto.
8734 * parser-defs.h: Ditto.
8737 * posix-hdep.c: Ditto.
8738 * ppcbug-rom.c: Ditto.
8739 * ppc-linux-nat.c: Ditto.
8740 * ppc-linux-tdep.c: Ditto.
8741 * ppc-linux-tdep.h: Ditto.
8742 * ppcnbsd-tdep.c: Ditto.
8743 * ppcobsd-tdep.c: Ditto.
8744 * ppcobsd-tdep.h: Ditto.
8745 * ppc-sysv-tdep.c: Ditto.
8746 * ppc-tdep.h: Ditto.
8747 * printcmd.c: Ditto.
8748 * proc-abi.c: Ditto.
8749 * proc-flags.c: Ditto.
8751 * proc-utils.h: Ditto.
8752 * progspace.h: Ditto.
8753 * prologue-value.c: Ditto.
8754 * prologue-value.h: Ditto.
8755 * psympriv.h: Ditto.
8757 * p-typeprint.c: Ditto.
8758 * p-valprint.c: Ditto.
8759 * ravenscar-sparc-thread.c: Ditto.
8760 * ravenscar-thread.c: Ditto.
8761 * ravenscar-thread.h: Ditto.
8763 * regcache.c: Ditto.
8764 * regcache.h: Ditto.
8766 * remote-fileio.c: Ditto.
8767 * remote-fileio.h: Ditto.
8769 * remote-m32r-sdi.c: Ditto.
8770 * remote-mips.c: Ditto.
8771 * remote-sim.c: Ditto.
8772 * rs6000-aix-tdep.c: Ditto.
8773 * rs6000-nat.c: Ditto.
8774 * rs6000-tdep.c: Ditto.
8776 2011-01-10 Michael Snyder <msnyder@vmware.com>
8778 * charset.c (validate): Internationalization.
8779 * coffread.c (read_one_sym): Ditto.
8780 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8781 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8782 * inflow.c (new_tty): Ditto.
8783 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8784 * m32c-tdep.c (m32c_return_value): Ditto.
8785 * mep-tdep.c (mep_store_return_value): Ditto.
8786 * score-tdep.c (score7_fetch_insn): Ditto.
8787 * ser-mingw.c (pipe_windows_open): Ditto.
8788 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8789 * spu-tdep.c (spu_register_type): Ditto.
8790 * tracepoint.c (trace_find_command): Ditto.
8791 * valarith.c (value_pos): Ditto.
8793 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8795 * ada-valprint.c (printstr): Minor comment reformatting.
8797 2011-01-08 Michael Snyder <msnyder@vmware.com>
8799 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8802 2011-01-08 Michael Snyder <msnyder@vmware.com>
8804 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8805 * hppa-hpux-tdep.c: Ditto.
8806 * hppa-linux-nat.c: Ditto.
8807 * hppa-linux-tdep.c: Ditto.
8808 * hppanbsd-tdep.c: Ditto.
8809 * hppa-tdep.c: Ditto.
8810 * hppa-tdep.h: Ditto.
8811 * hpux-thread.c: Ditto.
8812 * i386-cygwin-tdep.c: Ditto.
8813 * i386-darwin-nat.c: Ditto.
8814 * i386gnu-nat.c: Ditto.
8815 * i386-linux-nat.c: Ditto.
8816 * i386-linux-tdep.c: Ditto.
8817 * i386-nat.c: Ditto.
8818 * i386-nat.h: Ditto.
8819 * i386nbsd-tdep.c: Ditto.
8820 * i386-sol2-nat.c: Ditto.
8821 * i386-stub.c: Ditto.
8822 * i386-tdep.c: Ditto.
8823 * i386-tdep.h: Ditto.
8824 * i387-tdep.c: Ditto.
8825 * ia64-linux-nat.c: Ditto.
8826 * ia64-linux-tdep.c: Ditto.
8827 * ia64-tdep.c: Ditto.
8831 * inferior.c: Ditto.
8832 * inferior.h: Ditto.
8838 * iq2000-tdep.c: Ditto.
8839 * irix5-nat.c: Ditto.
8845 * jv-typeprint.c: Ditto.
8846 * jv-valprint.c: Ditto.
8847 * language.c: Ditto.
8848 * language.h: Ditto.
8849 * linespec.c: Ditto.
8850 * linux-fork.c: Ditto.
8851 * linux-nat.c: Ditto.
8852 * linux-thread-db.c: Ditto.
8853 * lm32-tdep.c: Ditto.
8855 2011-01-08 Michael Snyder <msnyder@vmware.com>
8857 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8859 * m2-typeprint.c: Ditto.
8860 * m2-valprint.c: Ditto.
8861 * m32c-tdep.c: Ditto.
8862 * m32r-linux-nat.c: Ditto.
8863 * m32r-rom.c: Ditto.
8864 * m32r-tdep.c: Ditto.
8865 * m32r-tdep.h: Ditto.
8866 * m68hc11-tdep.c: Ditto.
8867 * m58klinux-nat.c: Ditto.
8868 * m68k-tdep.c: Ditto.
8869 * m88k-tdep.c: Ditto.
8870 * m88k-tdep.h: Ditto.
8871 * machoread.c: Ditto.
8872 * macrocmd.c: Ditto.
8873 * macroexp.c: Ditto.
8874 * macrotab.c: Ditto.
8877 * mdebugread.c: Ditto.
8878 * mdebugread.h: Ditto.
8881 * memory-map.h: Ditto.
8882 * mep-tdep.c: Ditto.
8883 * microblaze-rom.c: Ditto.
8884 * microblaze-tdep.c: Ditto.
8886 * mips-irix-tdep.c: Ditto.
8887 * mips-linux-nat.c: Ditto.
8888 * mips-linux-tdep.c: Ditto.
8889 * mips-linux-tdep.h: Ditto.
8890 * mipsnbsd-nat.c: Ditto.
8891 * mipsnbsd-tdep.c: Ditto.
8892 * mipsread.c: Ditto.
8893 * mips-tdep.c: Ditto.
8894 * mips-tdep.h: Ditto.
8895 * mn10300-linux-tdep.c: Ditto.
8896 * mn10300-tdep.c: Ditto.
8897 * mn10300-tdep.h: Ditto.
8900 * moxie-tdep.c: Ditto.
8901 * moxie-tdep.h: Ditto.
8904 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8906 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8908 2011-01-08 Robert Millan <rmh@gnu.org>
8910 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8912 2011-01-07 Michael Snyder <msnyder@vmware.com>
8914 * charset.c (_initialize_charset): Fix typo in string.
8916 2011-01-07 Michael Snyder <msnyder@vmware.com>
8918 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8920 * tui/tui-layout.c (tui_set_layout_for_display_command):
8921 Split line so that operator goes to beginning of line.
8922 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8923 assignment out of if statement.
8925 2011-01-07 Michael Snyder <msnyder@vmware.com>
8927 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8928 * ada-lang.h: Ditto.
8929 * ada-tasks.c: Ditto.
8930 * ada-valprint.c: Ditto.
8931 * aix-threads.c: Ditto.
8932 * alpha-linux-nat.c: Ditto.
8933 * alpha-linux-tdep.c: Ditto.
8934 * alpha-mdebug-tdep.c: Ditto.
8935 * alpha-nat.c: Ditto.
8936 * alpha-osf1-tdep.c: Ditto.
8937 * alpha-tdep.c: Ditto.
8938 * alphabsd-nat.c: Ditto.
8939 * alphabsd-tdep.c: Ditto.
8940 * amd64-darwin-tdep.c: Ditto.
8941 * amd64-linux-nat.c: Ditto.
8942 * amd64-linux-tdep.c: Ditto.
8943 * amd64-sol2-tdep.c: Ditto.
8944 * amd64-tdep.c: Ditto.
8945 * amd64-fbsd-tdep.c: Ditto.
8946 * amd64-nbsd-tdep.c: Ditto.
8947 * amd64-obsd-tdep.c: Ditto.
8948 * amd64-linux-nat.c: Ditto.
8949 * amd64-linux-tdep.c: Ditto.
8950 * arm-tdep.c: Ditto.
8951 * arm-tdep.h: Ditto.
8952 * armnbsd-nat.c: Ditto.
8953 * avr-tdep.c: Ditto.
8954 * bfin-tdep.c: Ditto.
8956 * c-typeprintc: Ditto.
8957 * c-valprint.c: Ditto.
8958 * coff-pe-read.h: Ditto.
8959 * coffreead.c: Ditto.
8960 * cris-tdep.c: Ditto.
8962 * darwin-nat-info.c: Ditto.
8963 * darwin-nat.c: Ditto.
8964 * dbug-rom.c: Ditto.
8968 * dec-thread.c: Ditto.
8970 * demangle.c: Ditto.
8971 * dicos-tdep.c: Ditto.
8972 * dictionary.c: Ditto.
8973 * dictionary.h: Ditto.
8974 * dink32-rom.c: Ditto.
8976 * doublest.c: Ditto.
8978 * dummy-frame.c: Ditto.
8979 * dwarf2-frame.c: Ditto.
8980 * dwarf2expr.c: Ditto.
8981 * dwarf2loc.c: Ditto.
8982 * dwarf2read.c: Ditto.
8986 * event-top.h: Ditto.
8987 * exceptions.c: Ditto.
8988 * exceptions.h: Ditto.
8990 * expprint.c: Ditto.
8991 * expression.h: Ditto.
8995 * f-typeprint.c: Ditto.
8996 * f-valprint.c: Ditto.
8997 * fbsd-nat.c: Ditto.
8999 * fork-child.c: Ditto.
9002 * frv-linux-tdep.c: Ditto.
9003 * frv-tdep.c: Ditto.
9005 * gdb-stabs.h: Ditto.
9006 * gdb_assert.h: Ditto.
9007 * gdb_string.h: Ditto.
9008 * gdb_thread_db.h: Ditto.
9009 * gdb_wait.h: Ditto.
9010 * gdbarch.sh: Ditto.
9012 * gdbthread.h: Ditto.
9013 * gdbtypes.c: Ditto.
9014 * gdbtypes.h: Ditto.
9017 * gnu-v2-abi.c: Ditto.
9018 * gnu-v3-abi.c: Ditto.
9019 * go32-nat.c: Ditto.
9020 * gdbarch.c: Regenerate.
9021 * gdbarch.h: Regenerate.
9023 2011-01-07 Michael Snyder <msnyder@vmware.com>
9025 * ax-gdb.c: Adjust some long output strings.
9026 * breakpoint.c: Ditto.
9031 * linux-nat.c: Ditto.
9032 * solib-pa64.c: Ditto.
9033 * solib-som.c: Ditto.
9035 2011-01-06 Tom Tromey <tromey@redhat.com>
9039 * python/python.c (GdbMethods): Add "newest_frame" method.
9040 * python/python-internal.h (gdbpy_newest_frame): Declare.
9041 * python/py-frame.c (gdbpy_newest_frame): New function.
9043 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9045 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9046 * jit.c (jit_debug): New variable.
9047 (show_jit_debug): New function.
9048 (struct target_buffer): Use ULONGEST.
9049 (bfd_open_from_target_memory): Likewise.
9050 (jit_register_code, jit_inferior_init): Add debug output.
9051 (_initialize_jit): Register "debug jit" command.
9053 2011-01-06 Tom Tromey <tromey@redhat.com>
9055 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9056 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9059 2011-01-06 Tom Tromey <tromey@redhat.com>
9061 * python/py-frame.c (frapy_block): Use get_frame_block.
9063 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9065 Do not stop on SIGPRIO signals by default
9066 * infrun.c (_initialize_infrun): Unset signal_stop and
9067 signal_print for TARGET_SIGNAL_PRIO.
9069 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9071 * ada-tasks.c: Fix style violation in comment.
9073 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9075 * linespec.c (decode_compound, find_method): Remove trailing \n
9076 at end of error string.
9077 * solib-irix.c (irix_current_sos): Likewise.
9078 * varobj.c (uninstall_variable): Likewise.
9080 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9082 * copyright.py: New script.
9083 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9084 Launch emacs without exec'ing. Call copyright.py afterwards.
9086 2011-01-05 Michael Snyder <msnyder@vmware.com>
9088 * addrmap.c: Shorten lines of >= 80 columns.
9089 * arch-utils.c: Ditto.
9090 * arch-utils.h: Ditto.
9092 * ax-general.c: Ditto.
9094 * blockframe.c: Ditto.
9095 * breakpoint.c: Ditto.
9096 * buildsym.c: Ditto.
9098 * c-typeprint.c: Ditto.
9100 * coffread.c: Ditto.
9104 * cp-namespace.c: Ditto.
9105 * cp-support.c: Ditto.
9106 * dbug-rom.c: Ditto.
9111 * dictionary.c: Ditto.
9113 * doublest.c: Ditto.
9114 * dwarf2-frame.c: Ditto.
9115 * dwarf2expr.c: Ditto.
9116 * dwarf2loc.c: Ditto.
9117 * dwarf2read.c: Ditto.
9120 * event-loop.c: Ditto.
9121 * event-loop.h: Ditto.
9122 * exceptions.h: Ditto.
9124 * expprint.c: Ditto.
9125 * expression.h: Ditto.
9127 * f-valprint.c: Ditto.
9129 * frame-base.c: Ditto.
9130 * frame-unwind.c: Ditto.
9131 * frame-unwind.h: Ditto.
9135 * gdb-stabs.h: Ditto.
9136 * gdb_assert.h: Ditto.
9137 * gdb_dirent.h: Ditto.
9138 * gdb_obstack.h: Ditto.
9140 * gdbtypes.c: Ditto.
9141 * gdbtypes.h: Ditto.
9142 * inf-ttrace.c: Ditto.
9147 * inline-frame.h: Ditto.
9148 * language.c: Ditto.
9149 * language.h: Ditto.
9150 * libunwind-frame.c: Ditto.
9151 * libunwind-frame.h: Ditto.
9152 * linespec.c: Ditto.
9153 * linux-nat.c: Ditto.
9154 * linux-nat.h: Ditto.
9155 * linux-thread-db.c: Ditto.
9156 * machoread.c: Ditto.
9157 * macroexp.c: Ditto.
9158 * macrotab.c: Ditto.
9161 * mdebugread.c: Ditto.
9166 * objfiles.c: Ditto.
9167 * objfiles.h: Ditto.
9169 * p-typeprint.c: Ditto.
9170 * p-valprint.c: Ditto.
9172 * printcmd.c: Ditto.
9173 * proc-events.c: Ditto.
9175 * progspace.c: Ditto.
9176 * progspace.h: Ditto.
9177 * psympriv.h: Ditto.
9180 * regcache.c: Ditto.
9181 * regcache.h: Ditto.
9182 * remote-fileio.c: Ditto.
9184 * ser-mingw.c: Ditto.
9186 * ser-unix.c: Ditto.
9189 * solib-frv.c: Ditto.
9190 * solib-irix.c: Ditto.
9191 * solib-osf.c: Ditto.
9192 * solib-pa64.c: Ditto.
9193 * solib-som.c: Ditto.
9194 * solib-sunos.c: Ditto.
9195 * solib-svr4.c: Ditto.
9196 * solib-target.c: Ditto.
9200 * stabsread.c: Ditto.
9201 * stabsread.c: Ditto.
9204 * symfile-mem.c: Ditto.
9210 * target-descriptions.c: Ditto.
9211 * target-memory.c: Ditto.
9214 * terminal.h: Ditto.
9217 * tracepoint.c: Ditto.
9218 * tracepoint.h: Ditto.
9222 * user-regs.c: Ditto.
9223 * user-regs.h: Ditto.
9225 * valarith.c: Ditto.
9227 * valprint.c: Ditto.
9228 * valprint.h: Ditto.
9233 * xcoffread.c: Ditto.
9234 * xcoffsolib.c: Ditto.
9235 * xcoffsolib.h: Ditto.
9236 * xml-syscall.c: Ditto.
9237 * xml-tdesc.c: Ditto.
9239 2011-01-05 Michael Snyder <msnyder@vmware.com>
9241 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9242 * cli/cli-decode.c: Ditto.
9243 * cli/cli-dump.c: Ditto.
9244 * cli/cli-logging.c: Ditto.
9245 * cli/cli-script.c: Ditto.
9246 * cli/cli-setshow.c: Ditto.
9247 * common/signals.c: Ditto.
9248 * mi/mi-cmd-break.c: Ditto.
9249 * mi/mi-cmd-disas.c: Ditto.
9250 * mi/mi-cmd-stack.c: Ditto.
9251 * mi/mi-cmd-var.c: Ditto.
9252 * mi/mi-cmds.c: Ditto.
9253 * mi/mi-common.h: Ditto.
9254 * mi/mi-console.c: Ditto.
9255 * mi/mi-interp.c: Ditto.
9256 * mi/mi-main.c: Ditto.
9257 * osf-share/cma_attr.c: Ditto.
9258 * osf-share/cma_deb_core.h: Ditto.
9259 * osf-share/cma_debug_client.h: Ditto.
9260 * osf-share/cma_handle.h: Ditto.
9261 * osf-share/cma_mutex.h: Ditto.
9262 * osf-share/cma_stack_int.h: Ditto.
9263 * osf-share/cma_tcb_defs.h: Ditto.
9264 * python/py-auto-load.c: Ditto.
9265 * python/py-breakpoint.c: Ditto.
9266 * python/py-cmd.c: Ditto.
9267 * python/py-frame.c: Ditto.
9268 * python/py-objfile.c: Ditto.
9269 * python/py-param.c: Ditto.
9270 * python/py-progspace.c: Ditto.
9271 * python/py-symbol.c: Ditto.
9272 * python/py-value.c: Ditto.
9273 * python/python-internal.h: Ditto.
9274 * python/python.c: Ditto.
9275 * tui/tui-data.c: Ditto.
9276 * tui/tui-disasm.c: Ditto.
9277 * tui/tui-hooks.c: Ditto.
9278 * tui/tui-io.c: Ditto.
9279 * tui/tui-layout.c: Ditto.
9280 * tui/tui-regs.c: Ditto.
9281 * tui/tui-source.c: Ditto.
9282 * tui/tui-stack.c: Ditto.
9283 * tui/tui-win.c: Ditto.
9284 * tui/tui-windata.c: Ditto.
9285 * tui/tui-winsource.c: Ditto.
9287 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9289 * configure.ac, gdb.1: Copyright year update.
9291 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9293 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9294 this_pc_in_block, morestack_msym and morestack_name. Check for
9295 "__morestack" minimal symbol there.
9297 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9299 * symfile.c (find_sym_fns): Add call to dont_repeat.
9301 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9303 Copyright year update in most files (performed by copyright.sh).
9305 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9307 * top.c (print_gdb_version): Update copyright year in version output.
9309 For older changes see ChangeLog-2010.
9315 version-control: never