1 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.c (update_watchpoint): Handle the case of the
4 watchpoint to update not being in the breakpoint list yet.
5 (hw_watchpoint_use_count): New, factored out from
6 hw_watchpoint_used_count.
7 (hw_watchpoint_used_count): Rename to ...
8 (hw_watchpoint_used_count_others): ... this. Add `except'
9 parameter. Don't count resources of `except'. Use
10 hw_watchpoint_use_count.
12 2011-09-13 Pedro Alves <pedro@codesourcery.com>
14 * gdbthread.h (enum thread_state): Moved here.
15 (struct thread_info): Rename `executing_' field to `executing' and
17 * thread.c (enum thread_state): Moved to gdbthread.h.
18 (new_thread, add_thread_silent, delete_thread_1)
19 (any_live_thread_of_process, thread_alive, set_running)
20 (set_running, is_thread_state, any_running, is_executing)
21 (set_executing, finish_thread_state, print_thread_info)
22 (do_captured_thread_select): Adjust.
24 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
26 Fix compatibility with gcc < 4.3 and non-gcc compilers.
27 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
29 2011-09-12 Pedro Alves <pedro@codesourcery.com>
30 Matt Rice <ratmice@gmail.com>
34 * interps.c (struct interp) <interpreter_out>: Delete field.
35 (interp_new): Remove the data and uiout parameters and adjust.
36 (interp_set): Only set the current_uiout from the interpreter's
37 uiout after initializing the interpreter. Adjust call to
39 (interp_ui_out): Adjust to call procs->ui_out_proc.
40 (interp_data, interp_name): New.
41 * interps.h (interp_init_ftype): Add `self' parameter.
42 (interp_ui_out_ftype): New typedef.
43 (struct interp_procs) <ui_out_proc>: New method pointer.
44 (interp_new): Remove the data and uiout parameters.
45 (interp_data, interp_name): Declare.
46 * tui/tui-interp.c (tui_init): Adjust prototype.
48 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
49 tui_out here. Adjust call to interp_new.
50 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
51 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
53 (_initialize_cli_interp): Install it. Adjust call to interp_new.
54 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
55 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
56 Initialize mi->uiout depending on the mi_version as extracted from
57 the interpreter's name.
59 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
60 interp_new. Don't allocate the ui_out's of the interpreters here.
62 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
64 * solib.c (solib_used): New function.
65 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
66 by another so_list object before freeing it.
68 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
71 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
74 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
77 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
78 (amd64_skip_xmm_prologue): ... this new function. Describe its
79 parameters. No longer use amd64_prologue_line_bug.
80 * defs.h (producer_is_gcc_ge_4): New declaration.
81 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
82 (process_full_comp_unit): Update its caller. Remove
83 amd64_prologue_line_bug initialization.
84 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
85 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
87 2011-09-09 Pedro Alves <pedro@codesourcery.com>
89 * linux-nat.h (enum resume_kind): New.
90 (struct lwp_info) <last_resume_kind>: New field.
91 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
92 resume_stop on the new lwp.
93 (add_lwp): Set last_resume_kind as resume_continue by default.
94 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
95 (resume_lwp): New, factored out from resume_callback. Also check
96 for pending status in lp->waitstatus.
97 (resume_callback): Reimplement.
98 (resume_clear_callback): Set last_resume_kind as resume_stop.
99 (resume_set_callback): Set last_resume_kind as resume_continue.
100 (linux_nat_resume, linux_handle_extended_wait): Set
102 (running_callback): Also check lp->waitstatus for pending events.
103 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
105 (stop_and_resume_callback): Don't re-resume if the core wanted the
106 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
107 using an invalidated pointer.
108 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
109 SIGSTOPs if the core wanted the LWP to stop.
110 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
111 wanted the lwp to stop. If the core wanted the lwp to stop, and
112 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
113 of TARGET_SIGNAL_STOP.
114 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
115 here. Instead, signal the lwp, and set the last_resume_kind to
118 2011-09-09 Pedro Alves <pedro@codesourcery.com>
120 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
121 -1 (error), if the lwp exits right after attaching.
123 2011-09-08 Doug Evans <dje@google.com>
125 * py-cmd.c: Some minor formatting fixes.
126 (gdbpy_parse_command_name): Rename text arg to name, make const.
128 * python-internal.h (gdbpy_parse_command_name): Update.
130 * cli/cli-decode.c (add_cmd): Add comment.
132 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
135 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
136 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
137 * dwarf2read.c (process_full_comp_unit): Initialize
138 amd64_prologue_line_bug.
139 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
141 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
143 Fix TUI screen corruption.
144 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
147 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
149 * findvar.c (read_var_value): Never return NULL, throw an error
150 instead. Update the function comment. State symbol name in the error
152 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
154 * stack.c (print_frame_args): Likewise.
155 * valops.c (value_of_variable): Likewise.
157 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
159 * stack.c (print_frame_args): New variable except. Wrap
160 read_var_value and common_val_print into TRY_CATCH.
162 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
165 caller to value_of_this.
166 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
168 * valops.c (value_of_this): Remove parameter complain and variable ret.
169 Update function comment. Never return NULL by this code.
170 (value_of_this_silent): New function.
171 * value.h (value_of_this): Remove parameter complain.
172 (value_of_this_silent): New declaration.
174 2011-09-07 Yao Qi <yao@codesourcery.com>
176 * gdbthread.h (struct thread_info): Remove fields
177 `stepping_through_solib_after_catch' and
178 `stepping_through_solib_catchpoints'.
179 * infrun.c (init_thread_stepping_state): Update.
180 (process_event_stop_test, currently_stepping): Update.
181 (currently_stepping_or_nexting_callback): Update.
183 2011-09-07 Yao Qi <yao@codesourcery.com>
185 * gdbthread.h (struct thread_info): Comment on field
186 `step_after_step_resume_breakpoint'.
188 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
190 * remote.c (remote_console_output): Reindent.
192 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
194 * frame.c (has_stack_frames): Check for currently selected
197 2011-09-06 Pedro Alves <pedro@codesourcery.com>
199 * event-top.h (MAXPROMPTS, struct prompts): Delete.
200 (set_async_annotation_level, set_async_prompt, pop_prompt)
201 (push_prompt, new_async_prompt): Delete declarations.
202 * top.h (get_prompt, set_prompt): Change prototype.
203 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
205 * top.c (command_loop):
206 (top_prompt): New global.
207 (get_prefix, set_prefix, get_suffix, ): Delete.
208 (get_prompt, set_prompt): Rewrite.
209 (show_new_async_prompt): Rename to ...
210 (show_prompt): ... this.
211 (init_main): Adjust. Don't handle --annotate=2 here.
212 * event-top.c (new_async_prompt): Delete.
213 (the_prompts): Delete.
214 (more_to_come): Make static.
215 (display_gdb_prompt): Use top_level_prompt() to compute the top
216 level prompt, and don't notify the before_prompt observers
217 directly here. Always trick readline into not trying to display
218 the prompt if sync_execution and displaying the primary prompt.
219 If displaying a local/secondary prompt, always show it, even if
220 sync_execution is set.
221 (change_annotation_level): Delete.
222 (top_level_prompt): New, based on change_annotation_level.
223 (push_prompt, pop_prompt): Delete.
224 (async_disable_stdin): No longer pushes prompt.
225 (command_line_handler): No longer pushes or pops prompt. If more
226 input is expected, call display_gdb_prompt with an explicit empty
228 (async_stop_sig): Adjust.
229 (set_async_annotation_level, set_async_prompt): Delete.
230 * python/python.c (before_prompt_hook): Adjust.
232 2011-09-05 Pedro Alves <pedro@codesourcery.com>
236 * infrun.c (fetch_inferior_event): Check if there's a selected
237 thread before checking if the selected thread is executing.
239 2011-09-05 Pedro Alves <pedro@codesourcery.com>
241 * inf-loop.c (execute_command): Don't check if the current thread
242 if running before synchronously waiting for command completion.
243 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
245 (normal_stop): Call async_enable_stdin here.
246 * inf-loop.c (inferior_event_handler): Don't call
247 async_enable_stdin, nor handle "set exec-done-display" here.
249 2011-09-04 Joel Brobecker <brobecker@adacore.com>
253 2011-09-04 Joel Brobecker <brobecker@adacore.com>
255 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
257 2011-09-04 Joel Brobecker <brobecker@adacore.com>
259 * NEWS: Add entry for OpenBSD/NetBSD build failure.
261 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
263 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
265 2011-09-02 Matt Rice <ratmice@gmail.com>
268 * event-top.c (cli_command_loop): Replace readline setup with
269 direct call to display_gdb_prompt.
270 (display_gdb_prompt): Do not call observer mechanism during
271 synchronous execution.
273 2011-09-02 Pedro Alves <pedro@codesourcery.com>
275 * linux-nat.c (in_pid_list_p): New.
276 (linux_record_stopped_pid): Delete.
277 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
278 already attached to the LWP. Return an indication if so.
279 (linux_nat_filter_event): Adjust.
280 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
281 returning an indication to ignore this thread.
283 2011-09-02 Pedro Alves <pedro@codesourcery.com>
285 * top.c: Include interps.h.
286 (execute_command): If the target can async, but the interpreter is
287 in sync mode, synchronously wait for the command to finish before
289 (execute_command_to_string): Force the interpreter to sync mode.
290 * infrun.c: Include interps.h.
291 (fetch_inferior_event): Don't restore the prompt yet if the
292 interpreter is in sync mode.
293 * interps.c (interpreter_async): New global.
294 * interps.h (interpreter_async): Declare.
295 * inf-loop.c: Include interps.h.
296 (inferior_event_handler): Don't print the language change or run
297 breakpoint commands yet if the interpreter in is sync mode.
298 * main.c (captured_command_loop): Flip the interpreter to async
300 * cli/cli-script.c: Include interps.h.
301 (execute_user_command, while_command, if_command): Force the
302 interpreter to sync mode.
303 * python/python.c: Include interps.h.
304 (python_command, execute_gdb_command): Force the interpreter to
307 2011-09-02 Pedro Alves <pedro@codesourcery.com>
309 * value.c (show_convenience): Catch errors thrown while printing
310 each internal variable.
311 * infrun.c (validate_siginfo_access): New function.
312 (siginfo_value_read, siginfo_value_write): Call it.
314 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
317 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
318 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
321 2011-08-29 Yao Qi <yao@codesourcery.com>
323 * solib-dsbt.c (bfd_lookup_symbol): Removed.
325 (enable_break2): Update caller.
326 * solib-frv.c (bfd_lookup_symbol): Removed.
328 (enable_break2): Update caller.
329 * solib-pa64.c (bfd_lookup_symbol): Removed.
331 * solib-svr4.c (bfd_lookup_symbol): Removed.
332 (cmp_name_and_sec_flags): New.
333 (enable_break): Update caller.
334 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
335 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
336 (gdb_bfd_lookup_symbol): New.
337 * solib.h: Functions declarations.
339 2011-08-29 Yao Qi <yao@codesourcery.com>
341 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
344 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
346 Fix TUI stepi on code without symbols.
347 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
350 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
353 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
354 and the static keyword.
355 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
356 Make prefix an array.
357 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
358 * mi/mi-main.c (get_register): Remove stb initialization and the static
361 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
363 Code cleanup - make mi_opt const.
364 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
366 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
367 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
368 (mi_cmd_env_dir): Likewise.
369 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
370 (mi_cmd_target_file_put): Likewise.
371 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
372 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
373 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
374 (mi_valid_noargs): Make opts const.
375 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
376 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
377 (mi_cmd_data_read_memory): Likewise.
378 (mi_cmd_data_read_memory_bytes): Likewise.
379 (mi_cmd_data_write_memory): Likewise.
381 2011-08-26 Matt Rice <ratmice@gmail.com>
383 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
384 bcache_xmalloc, replace bcache_xmalloc with call to
385 psymbol_bcache_init for psymbol_cache.
386 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
388 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
390 * inf-loop.c (inferior_event_handler): Add exception_print in
393 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
395 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
396 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
397 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
398 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
399 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
400 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
401 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
402 * infrun.c (fetch_inferior_event): Call
403 make_bpstat_clear_actions_cleanup.
404 * top.c (execute_command): New variable cleanup_if_error, call
405 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
406 * utils.c (do_bpstat_clear_actions_cleanup)
407 (make_bpstat_clear_actions_cleanup): New functions.
409 2011-08-26 Pedro Alves <pedro@codesourcery.com>
411 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
412 either the parent or the child forks. Rename a couple locals.
414 2011-08-26 Pedro Alves <pedro@codesourcery.com>
416 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
417 library call. Avoid reading the `status' local if all waitpid
420 2011-08-26 Pedro Alves <pedro@codesourcery.com>
422 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
423 opening /proc/PID/task always succeeds.
425 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
427 * linespec.c (symtab_from_filename): Check for the end of string.
429 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
432 * varobj.c (cplus_describe_child): Add the keyword
433 'class' to the output of the method when dealing
434 with a cast to a base class.
436 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
438 No functionality change.
439 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
440 function comment a reference, new variables tp and bs, move here code
441 from throw_exception.
442 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
443 describe it in the comment.
444 * exceptions.c (throw_exception): Remove variable tp, move the code for
445 bpstat_clear_actions to bpstat_clear_actions.
447 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
449 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
450 * linux-nat.c: Include linux-procfs.h.
451 (linux_proc_get_tgid): Move to ...
452 * common/linux-procfs.c: ... here. New file.
453 * common/linux-procfs.h: New file.
454 * linux-thread-db.c: Include linux-procfs.h.
455 * Makefile.in: Update dependencies.
456 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
457 * config/arm/linux.mh: Likewise.
458 * config/i386/linux.mh: Likewise.
459 * config/i386/linux64.mh: Likewise.
460 * config/ia64/linux.mh: Likewise.
461 * config/m32r/linux.mh: Likewise.
462 * config/m68k/linux.mh: Likewise.
463 * config/mips/linux.mh: Likewise.
464 * config/pa/linux.mh: Likewise.
465 * config/pa/linux.mh: Likewise.
466 * config/powerpc/linux.mh: Likewise.
467 * config/powerpc/ppc64-linux.mh: Likewise.
468 * config/powerpc/spu-linux.mh: Likewise.
469 * config/sparc/linux.mh: Likewise.
470 * config/sparc/linux64.mh: Likewise.
471 * config/xtensa/linux.mh: Likewise.
473 2011-08-24 Hui Zhu <teawater@gmail.com>
475 * tracepoint.c (cond_string_is_same): New function.
476 (find_matching_tracepoint): Add condition check
477 by cond_string_is_same.
479 2011-08-23 Josh Matthews <josh@joshmatthews.net>
481 Fix build error in Darwin port.
482 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
484 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
487 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
488 (command_line_is_silent): New function.
489 (bpstat_do_actions_1): No longer use commands_left, use
490 command_line_is_silent for commands.
491 (bpstat_alloc): Remove clearing of commands_left.
492 (bpstat_stop_status): Remove initialization of commands_left, use
493 command_line_is_silent.
494 * breakpoint.h (struct bpstats): Remove commands_left.
496 2011-08-18 Keith Seitz <keiths@redhat.com>
499 * cp-name-parser.y (struct demangle_info): Remove unused
502 (allocate_info): Change return type to struct demangle_info *.
503 Always allocate a new demangle_info.
504 Remove unused PREV pointer.
505 (cp_new_demangle_parse_info): New function.
506 (cp_demangled_name_parse_free): New function.
507 (do_demangled_name_parse_free_cleanup): New function.
508 (make_cleanup_cp_demangled_name_parse_free): New function.
509 (cp_demangled_name_to_comp): Change return type to
510 struct demangle_parse_info *.
511 Allocate a new storage for each call.
512 (main): Update usage for cp_demangled_name_to_comp
514 * cp-support.h (struct demangle_parse_info): New structure.
515 (cp_demangled_name_to_comp): Update API change for
517 (cp_new_demangle_parse_info): Declare.
518 (make_cleanup_cp_demangled_name_parse_free): New declaration.
519 (cp_demangled_name_parse_free): Declare.
520 * cp-support.c (cp_canonicalize_string): Update API
521 change for cp_demangled_name_to_comp.
522 (mangled_name_to_comp): Likewise.
523 Return struct demangle_parse_info, too.
524 (cp_class_name_from_physname): Update mangled_name_to_comp
526 (method_name_from_physname): Likewise.
527 (cp_func_name): Update API change for cp_demangled_name_to_comp.
528 (cp_remove_params): Likewise.
529 * python/py-type.c (typy_legacy_template_argument): Likewise.
531 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
532 (cp_merge_demangle_parse_infos): Declare.
533 * cp-support.c (ignore_typedefs): New file global.
534 (copy_string_to_obstack): New function.
535 (inspect_type): New function.
536 (replace_typedefs): New function.
537 (replace_typedefs_qualified_name): New function.
538 (cp_canonicalize_string_no_typedefs): New function.
539 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
540 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
541 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
542 instead of cp_canonicalize_string.
543 (find_method): Likewise.
544 (decode_compound): Before looking up the name, call
545 cp_canonicalize_string_no_typedefs.
546 (decode_variable): Likewise.
548 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
549 Tom Tromey <tromey@redhat.com>
550 Matt Rice <ratmice@gmail.com>
552 * python/lib/gdb/prompt.py: New file.
553 * python/lib/gdb/command/prompt.py: New file.
554 * NEWS: Document set extended-prompt and gdb.prompt library
556 2011-08-16 Yao Qi <yao@codesourcery.com>
558 * tic6x-linux-tdep.c: Move const arrays definition from here...
559 * tic6x-tdep.c: to here ...
561 2011-08-14 Yao Qi <yao@codesourcery.com>
563 * NEWS: New port to Texas Instruments TMS320C6x.
565 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
566 Bernd Schmidt <bernds@codesourcery.com>
567 Yao Qi <yao@codesourcery.com>
569 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
570 * solib-dsbt.c: New file. Support DSBT shared object.
571 * tic6x-linux-tdep.c: New file.
572 * tic6x-tdep.c: New file.
573 * tic6x-tdep.h: New file.
575 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
576 Yao Qi <yao@codesourcery.com>
578 * remote.c (PACKET_qXfer_fdpic): New enum value.
579 (remote_protocol_features): Add qXfer:fdpic:read packet.
580 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
581 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
582 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
584 2011-08-14 Yao Qi <yao@codesourcery.com>
586 Target description for tic6x.
587 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
588 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
589 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
590 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
591 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
592 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
593 * features/tic6x-c64xp-linux.xml: New.
594 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
595 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
596 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
597 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
598 * regformats/tic6x-c64xp.dat,
599 regformats/tic6x-c62x-linux.dat: Generated.
600 * regformats/tic6x-c64x-linux.dat,
601 regformats/tic6x-c64xp-linux.dat: Generated.
602 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
603 features/tic6x-*.c files.
604 Add regformats/tic6x-*.dat files.
606 2011-08-12 Doug Evans <dje@google.com>
608 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
609 * python/py-symbol.c (sympy_get_type): New function.
610 (symbol_object_getset): Add "type".
612 2011-08-12 Pedro Alves <pedro@codesourcery.com>
616 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
618 (tui_show_register_group): Don't store a byte buffer in the data
620 (tui_register_format): Skip registers with an empty name.
621 (tui_get_register): Store a struct value in the data element's
622 value field instead of a byte buffer holding the raw register
623 contents. Account for optimized-out and unavailable registers
624 when comparing register contents.
626 2011-08-09 Pedro Alves <pedro@codesourcery.com>
628 * printcmd.c (current_display_number): Update comment.
629 (disable_current_display_cleanup): Delete.
630 (do_one_display): Use make_cleanup_restore_integer. Gracefully
631 catch errors thrown while evaluating and printing the display.
633 2011-08-09 Tom Tromey <tromey@redhat.com>
635 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
637 2011-08-09 Pedro Alves <pedro@codesourcery.com>
639 * elfread.c (elf_symtab_read): Rework comments.
640 * maint.c (maintenance_command): Ditto.
641 * somread.c (som_symtab_read): Ditto.
642 * solib.c (solib_find, solib_map_sections, update_solib_list)
643 (solib_add, info_sharedlibrary_command, solib_name_from_address)
644 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
645 (sharedlibrary_command, no_shared_libraries): Ditto.
646 * solib-irix.c (locate_base, disable_break, enable_break)
647 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
648 (irix_current_sos, irix_open_symbol_file_object)
649 (irix_special_symbol_handling): Ditto.
650 * solib-sunos.c (locate_base, first_link_map_member)
651 (sunos_current_sos, disable_break, enable_break)
652 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
654 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
655 (open_symbol_file_object, svr4_current_sos, enable_break)
656 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
658 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
659 (frv_current_sos, enable_break, frv_special_symbol_handling)
660 (frv_solib_create_inferior_hook): Ditto.
661 * solist.h (struct target_so_ops): Extend the comments of the
662 special_symbol_handling, current_sos and open_symbol_file_object
665 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
667 * python/lib/gdb/__init__.py: Auto-load files in command and
668 function directories.
669 * python/python.c (finish_python_initialization): Use
671 * python/lib/gdb/command/pretty_printers.py: Self register
673 * NEWS: Document auto-loading.
675 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
677 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
678 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
679 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
681 2011-08-08 Tom Tromey <tromey@redhat.com>
683 * breakpoint.c (clean_up_filters): Remove.
684 (catch_syscall_split_args): Use VEC_cleanup.
686 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
688 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
689 (main): Uncomment "Demangling error\n".
691 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
693 * solib-target.c (segment_attributes): Make them static.
694 (section_attributes, library_children, library_attributes): Likewise.
695 (library_list_children, library_list_attributes): Likesise.
696 (library_list_elements): Likewise.
698 2011-08-05 Pedro Alves <pedro@codesourcery.com>
700 * exceptions.c (throw_exception): Don't disable the current
702 * printcmd.c (disable_current_display_cleanup): New function.
703 (do_one_display): Install a cleanup to disable the current display
704 if doing the display throws.
706 2011-08-05 Eli Zaretskii <eliz@gnu.org>
708 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
709 initialization of the tp_new member to the corresponding
710 gdbpy_initialize_* function.
711 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
712 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
713 * python/py-function.c (gdbpy_initialize_functions): Likewise.
714 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
715 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
717 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
719 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
720 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
721 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
722 references to current_uiout.
724 2011-08-04 Pedro Alves <pedro@codesourcery.com>
726 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
727 (start_event_loop): Use TRY_CATCH instead of catch_errors.
728 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
729 * top.c (gdb_readline_wrapper): Adjust.
730 * tui/tui-interp.c (tui_command_loop):
731 (_initialize_tui_interp): Don't install it.
733 2011-08-04 Pedro Alves <pedro@codesourcery.com>
735 * ui-out.h (uiout): Rename to ...
736 (current_uiout): ... this.
737 * ui-out.c (uiout): Rename to ...
738 (current_uiout): ... this.
739 * ada-lang.c (print_it_exception, print_one_exception)
740 (print_mention_exception): Adjust.
741 * breakpoint.c (watchpoint_check): Adjust.
742 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
743 (default_collect_info, watchpoints_info, print_one_catch_fork)
744 (print_one_catch_vfork, print_one_catch_syscall)
745 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
746 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
747 (print_it_watchpoint, print_mention_watchpoint)
748 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
749 (print_it_exception_catchpoint, print_one_exception_catchpoint)
750 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
751 (bkpt_print_mention, momentary_bkpt_print_it)
752 (tracepoint_print_mention, update_static_tracepoint)
753 (tracepoints_info, save_breakpoints): Adjust.
754 * cli-out.c (field_separator): Adjust.
755 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
756 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
757 * frame.c (get_current_frame): Adjust.
758 * infcmd.c (run_command_1, print_return_value): Adjust.
759 * inferior.c (inferior_command, info_inferiors_command): Adjust.
760 * infrun.c (print_end_stepping_range_reason): Adjust.
761 (print_signal_exited_reason, print_exited_reason): Adjust.
762 (print_signal_received_reason, print_no_history_reason): Adjust.
763 * interps.c (interp_set): Adjust.
764 * osdata.c (info_osdata_command): Adjust.
765 * progspace.c (maintenance_info_program_spaces_command): Adjust.
766 * remote-fileio.c (remote_fileio_request): Adjust.
767 * remote.c (show_remote_cmd): Adjust.
768 * solib.c (info_sharedlibrary_command): Adjust.
769 * source.c (print_source_lines_base): Adjust.
770 * stack.c (print_stack_frame): Adjust.
771 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
772 * symfile-mem.c (add_vsyscall_page): Adjust.
773 * symfile.c (load_progress, generic_load)
774 (print_transfer_performance): Adjust.
775 * thread.c (info_threads_command, restore_selected_frame)
776 (thread_command): Adjust.
777 * top.c (make_cleanup_restore_ui_file): Adjust.
778 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
779 (print_one_static_tracepoint_marker): Adjust.
780 * cli/cli-cmds.c (print_disassembly): Adjust.
781 * cli/cli-decode.c (print_doc_line): Adjust.
782 * cli/cli-interp.c (safe_execute_command): Adjust.
783 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
784 (handle_redirections): Adjust.
785 * cli/cli-script.c (show_user_1): Adjust.
786 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
787 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
788 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
789 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
790 (mi_cmd_env_dir): Adjust.
791 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
792 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
793 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
794 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
795 (list_args_or_locals): Adjust.
796 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
797 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
798 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
799 (mi_cmd_var_list_children, mi_cmd_var_info_type)
800 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
801 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
802 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
803 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
804 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
805 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
806 (list_available_thread_groups, mi_cmd_list_thread_groups)
807 (mi_cmd_data_list_register_names)
808 (mi_cmd_data_list_changed_registers)
809 (mi_cmd_data_list_register_values, get_register)
810 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
811 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
812 (mi_cmd_list_target_features, mi_cmd_add_inferior)
813 (mi_execute_command, mi_load_progress): Adjust.
814 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
815 * python/py-auto-load.c (print_script, info_auto_load_scripts):
817 * python/py-breakpoint.c (bppy_get_commands): Adjust.
818 * tui/tui-interp.c (tui_command_loop): Adjust.
819 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
821 2011-08-04 Pedro Alves <pedro@codesourcery.com>
823 * exceptions.c (struct catcher): Remove saved_uiout field.
824 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
825 no longer save/resvore the global ui_out builder.
826 (catch_exceptions_with_msg): Save/override/restore the global
827 ui_out builder manually instead of relying on TRY_CATCH to do it.
828 (catch_errors): Save/restore the global ui_out builder manually
829 instead of relying on TRY_CATCH to do it.
830 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
833 * cli/cli-interp.c (safe_execute_command): Save/override/restore
834 the global ui_out builder manually instead of relying on TRY_CATCH
837 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
839 * breakpoint.c (update_global_location_list): Ensure
840 invariant 'first loc marked not duplicated and inserted,
841 following locs marked duplicated/not inserted' is respected
842 for multiple locations at the same address.
843 (unduplicated_should_be_inserted) New function.
844 (swap_insertion) New function.
846 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
848 * stack.c (print_frame_arguments_choices): Comment typo fix.
850 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
853 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
854 * breakpoint.c (insert_bp_location): Remove disabled_breaks
855 argument. Update callers.
857 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
860 * doublest.c (convert_doublest_to_floatformat): Pass correct
861 mantissa length to put_field.
863 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
865 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
866 exception_print code path.
867 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
868 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
869 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
871 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
874 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
875 Remove, merge them into ...
876 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
877 variable args and its initialization.
878 (struct print_args_args, print_args_stub): Remove, merge them into
880 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
882 (do_gdb_disassembly): ... here. Remove variable args and its
884 (print_frame): Remove variable args and its initialization, new
885 variable gdbarch and numargs (from print_args_stub), inline here
886 print_args_stub with a TRY_CATCH.
887 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
889 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
890 New variable e, remove variable btargs and its initialization.
892 2011-08-01 Tristan Gingold <gingold@adacore.com>
894 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
896 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
898 * breakpoint.c (insert_bp_location): Document return value.
899 (insert_breakpoint_locations): Fix documentation.
900 (remove_breakpoints): Add documentation.
902 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
904 * breakpoint.c (insert_bp_location): Remove disabled_breaks
905 argument. Update callers.
907 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
909 * stack.c (print_frame_info): Comment typo fix.
911 2011-07-29 Sterling Augustine <saugustine@google.com>
913 * MAINTAINERS (Write After Approval): Add myself to the list.
915 2011-07-29 Tom Tromey <tromey@redhat.com>
917 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
918 (library_list_start_segment): Update.
919 (library_list_start_section): Update.
921 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
923 * varobj.c (value_get_print_value): Move hint check later into the
924 function. Comment function. Free thevalue before reusing it.
926 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
927 Pedro Alves <pedro@codesourcery.com>
929 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
931 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
932 Assert the result kind.
933 * value.h (value_one): Remove parameter lv.
935 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
937 Fix crash on lval_computed values.
938 * valops.c (value_zero): Use not_lval for lval_computed.
940 2011-07-27 Tom Tromey <tromey@redhat.com>
942 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
943 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
945 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
947 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
948 "ptype" by their typedefs difference.
950 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
952 * dwarf2expr.c (ctx_no_read_reg): New function.
953 * dwarf2expr.h (ctx_no_read_reg): New declaration.
954 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
955 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
956 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
958 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
960 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
961 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
963 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
964 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
965 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
966 (ctx_no_get_base_type): Move the functions here.
967 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
968 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
969 (ctx_no_get_base_type): New declarations.
971 2011-07-27 Tom Tromey <tromey@redhat.com>
973 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
975 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
976 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
978 2011-07-26 Sterling Augustine <saugustine@google.com>
980 * cli/cli-dump.c (dump_binary_file): Change parameter type to
982 (dump_bfd_file): Likewise.
984 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
986 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
987 (remote_hw_watchpoint_length_limit): New variable.
988 (_initialize_remote) add set,show cmds for this new variable.
989 * gdb.texinfo: document these new commands.
990 * NEWS: Mention these new commands.
992 2011-07-26 Pedro Alves <pedro@codesourcery.com>
994 * breakpoint.c (works_in_software_mode_watchpoint): Also return
995 true for software watchpoints.
997 2011-07-26 Joel Brobecker <brobecker@adacore.com>
1001 2011-07-26 Tom Tromey <tromey@redhat.com>
1003 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1004 * dwarf2read.c (read_indirect_string_at_offset): New function.
1005 (read_indirect_string): Use it.
1006 (dwarf_decode_macro_bytes): New function, taken from
1007 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1008 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1009 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1011 (struct dwarf2_per_objfile) <macro>: New field.
1012 (dwarf2_elf_names): Add .debug_macro.
1013 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1014 (dwarf2_locate_sections): Handle new section.
1015 (read_file_scope): Handle DW_AT_GNU_macros.
1016 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1018 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1020 * NEWS: Mention dcache configuration.
1021 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1022 (dcache_size, dcache_line_size): New variables.
1023 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1024 (struct dcache_block): Make it expandable.
1025 (struct dcache_struct): New field.
1026 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1027 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1028 (dcache_poke_byte, dcache_print_line): Adjust.
1029 (set_dcache_size, set_dcache_line_size): New functions.
1030 (set_dcache_command, show_dcache_command): New functions.
1031 (_initialize_dcache): Add new commands.
1033 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1035 * progspace.h (struct program_space): Add solib_add_generation.
1036 * infcmd.c (post_create_inferior): Only call solib_add if not
1038 * solib.c (solib_add): Increment solib_add_generation.
1040 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1042 Fix implicit pointer offsets.
1043 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1046 2011-07-25 Tom Tromey <tromey@redhat.com>
1048 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1050 (ada_exception_sal): Make 'ops' const.
1051 (ada_decode_exception_location): Likewise.
1052 (ada_decode_assert_location): Likewise.
1053 (catch_assert_command): Update.
1054 (catch_ada_exception_command): Update.
1055 (create_ada_exception_catchpoint): Make 'ops' const.
1056 * breakpoint.c (set_raw_breakpoint_without_location)
1057 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1059 (create_internal_breakpoint): Update.
1060 (init_raw_breakpoint_without_location): Make 'ops' const.
1061 (init_raw_breakpoint, init_catchpoint)
1062 (create_fork_vfork_event_catchpoint)
1063 (create_syscall_event_catchpoint, init_breakpoint_sal)
1064 (create_breakpoint_sal, create_breakpoints_sal)
1065 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1066 * breakpoint.h (struct breakpoint) <ops>: Now const.
1067 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1070 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1072 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1074 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1076 * breakpoint.h (print_recreate_thread): Declare.
1077 (struct breakpoint): Move step_count, pass_count,
1078 number_on_target, static_trace_marker_id,
1079 static_trace_marker_id_idx ...
1080 (struct tracepoint): ... to this new struct.
1081 (get_tracepoint, get_tracepoint_by_number_on_target)
1082 (get_tracepoint_by_number): Change return type to struct
1084 * breakpoint.c (is_tracepoint_type): New, factored out from
1086 (is_tracepoint): Adjust.
1087 (print_one_breakpoint_location): Cast to struct tracepoint as
1088 necessary, and adjust.
1089 (print_recreate_catch_fork, print_recreate_catch_vfork)
1090 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1091 print_recreate_thread.
1092 (init_breakpoint_sal): New, factored out from
1093 create_breakpoint_sal.
1094 (create_breakpoint_sal): Reimplement.
1095 (create_breakpoint): Allocate a struct tracecepoint if the caller
1096 wanted a tracepoint. Use init_breakpoint_sal and
1098 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1099 (print_recreate_masked_watchpoint)
1100 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1101 (tracepoint_print_one_detail): Adjust.
1102 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1103 Dump the pass count here.
1104 (update_static_tracepoint): Adjust.
1105 (addr_string_to_sals): Adjust.
1106 (create_tracepoint_from_upload): Adjust. Change return type to
1107 struct tracepoint pointer.
1108 (trace_pass_set_count): Change parameter type to struct tracepoint
1109 pointer, and adjust.
1110 (trace_pass_command): Adjust.
1111 (get_tracepoint, get_tracepoint_by_number_on_target)
1112 (get_tracepoint_by_number): Change return type to struct
1113 tracepoint pointer, and adjust.
1114 (print_recreate_thread): New, factored out from save_breakpoints.
1115 (save_breakpoints): Don't print thread and task and passcount
1117 * remote.c (remote_download_tracepoint): Adjust.
1118 * tracepoint.c (trace_actions_command, validate_actionline)
1119 (start_tracing, tfind_1, trace_find_tracepoint_command)
1120 (trace_dump_command): Adjust.
1121 (find_matching_tracepoint): Change return type to struct
1122 tracepoint pointer, and adjust.
1123 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1124 (tfile_trace_find, tfile_fetch_registers): Adjust.
1125 * tracepoint.h (create_tracepoint_from_upload): Change return type
1126 to struct tracepoint pointer.
1127 * ada-lang.c (print_recreate_exception): Call
1128 print_recreate_thread.
1129 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1131 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1133 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1134 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1135 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1136 watchpoint_thread, watchpoint_triggered ...
1137 (struct watchpoint): ... to this new struct.
1138 (is_watchpoint): Declare.
1139 (install_breakpoint): Add new `internal' parameter.
1140 * breakpoint.c (is_watchpoint): Delete declaration.
1141 (set_breakpoint_condition): Handle watchpoints.
1142 (is_watchpoint): Make public.
1143 (watchpoint_in_thread_scope): Change parameter type to struct
1145 (watchpoint_del_at_next_stop): Change parameter type to struct
1146 watchpoint. Remove assertion. Adjust.
1147 (update_watchpoint): Ditto.
1148 (insert_breakpoints, breakpoint_init_inferior)
1149 (watchpoints_triggered, watchpoint_check)
1150 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1151 (bpstat_stop_status, print_one_breakpoint_location)
1152 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1153 to struct watchpoint as necessary, and adjust.
1154 (install_breakpoint): Add `internal' argument. If true, don't
1155 mention the new breakpoint. Use set_breakpoint_number.
1156 (create_fork_vfork_event_catchpoint)
1157 (create_syscall_event_catchpoint): Adjust.
1158 (dtor_watchpoint): New.
1159 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1160 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1161 (print_it_watchpoint, print_mention_watchpoint)
1162 (print_recreate_watchpoint, insert_masked_watchpoint)
1163 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1164 (print_one_detail_masked_watchpoint)
1165 (print_mention_masked_watchpoint)
1166 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1167 necessary, and adjust.
1168 (watch_command_1): Allocate and initialize a struct watchpoint
1169 instead of a struct breakpoint. Use install_breakpoint.
1170 (catch_exec_command_1): Adjust.
1171 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1173 (delete_breakpoint, enable_breakpoint_disp)
1174 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1175 as necessary, and adjust.
1176 (initialize_breakpoint_ops): Install dtor_watchpoint as
1177 watchpoints' dtor method.
1178 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1179 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1180 to struct watchpoint as necessary, and adjust.
1182 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1184 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1185 the the base class ops table.
1186 (catch_exception_breakpoint_ops)
1187 (catch_exception_unhandled_breakpoint_ops)
1188 (catch_assert_breakpoint_ops): Don't statically initialize.
1189 (initialize_ada_catchpoint_ops): New.
1190 (_initialize_ada_language): Call it.
1191 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1192 (bkpt_breakpoint_ops): Forward declare.
1193 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1194 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1195 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1196 (masked_watchpoint_breakpoint_ops)
1197 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1198 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1199 base class ops table.
1200 (null_re_set, null_check_status, null_works_in_software_mode)
1201 (null_resources_needed, null_print_one_detail): Delete.
1202 (bkpt_dtor): Rename to ...
1203 (base_breakpoint_dtor): ... this. Make static.
1204 (bkpt_allocate_location): Rename to ...
1205 (base_breakpoint_allocate_location): ... this. Make static.
1206 (base_breakpoint_re_set): New.
1207 (internal_error_pure_virtual_called): New.
1208 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1209 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1210 (base_breakpoint_works_in_software_mode)
1211 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1212 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1213 (base_breakpoint_print_recreate): New functions.
1214 (base_breakpoint_ops): New global.
1215 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1216 (bkpt_breakpoint_hit): Make static.
1217 (bkpt_check_status): Delete.
1218 (bkpt_resources_needed): Make static.
1219 (bkpt_works_in_software_mode): Delete.
1220 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1222 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1223 (momentary_breakpoint_ops): Don't statically initialize.
1224 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1226 (tracepoint_insert_location, tracepoint_remove_location)
1227 (tracepoint_check_status, tracepoint_works_in_software_mode)
1228 (tracepoint_print_it): Delete.
1229 (tracepoint_breakpoint_ops): Don't statically initialize.
1230 (initialize_breakpoint_ops): New.
1231 (_initialize_breakpoint): Call it.
1232 * breakpoint.h (null_re_set, null_works_in_software_mode)
1233 (null_resources_needed, null_check_status, null_print_one_detail):
1234 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1235 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1236 (bkpt_check_status, bkpt_resources_needed)
1237 (bkpt_works_in_software_mode, bkpt_print_it)
1238 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1239 Delete declarations.
1240 (initialize_breakpoint_ops): Declare.
1242 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1244 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1245 (momentary_bkpt_print_it): Simplify.
1247 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1249 Split internal, momentary and user breakpoints breakpoint_ops
1252 * breakpoint.c (internal_breakpoint_ops)
1253 (momentary_breakpoint_ops): Forward declare.
1254 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1255 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1256 (create_overlay_event_breakpoint)
1257 (create_std_terminate_master_breakpoint)
1258 (create_exception_master_breakpoint): Create breakpoints with
1259 internal_breakpoint_ops vtable.
1260 (set_longjmp_breakpoint): Create momentary breakpoints with
1261 momentary_breakpoint_ops vtable, using
1262 momentary_breakpoint_from_master.
1263 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1264 (create_solib_event_breakpoint): Create breakpoints with
1265 internal_breakpoint_ops vtable.
1266 (set_momentary_breakpoint): Create breakpoints with
1267 momentary_breakpoint_ops vtable.
1268 (momentary_breakpoint_from_master): New, factored out from
1269 clone_momentary_breakpoint.
1270 (clone_momentary_breakpoint): Adjust.
1271 (watch_command_1): Create scope breakpoints with
1272 momentary_breakpoint_ops vtable.
1273 (bkpt_re_set): Remove handling of internal and momentary
1275 (bkpt_print_mention, bkpt_print_recreate): New.
1276 (bkpt_breakpoint_ops): Adjust.
1277 (internal_bkpt_re_set, internal_bkpt_check_status)
1278 (internal_bkpt_print_it, internal_bkpt_print_mention)
1279 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1280 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1281 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1282 (momentary_bkpt_print_recreate): New.
1283 (momentary_breakpoint_ops): New.
1285 2011-07-25 Pedro Alves <pedro@codesourcery.com>
1287 Implement most breakpoint_ops methods for all breakpoint types,
1288 and move the default handlings to the proper callbacks.
1290 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1291 works_in_software_mode method.
1292 (insert_bp_location): Go through breakpoint_ops->insert_location
1293 for software and hardware watchpoints.
1294 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1296 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1297 for software and hardware watchpoints.
1298 (print_it_typical): Delete.
1299 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1301 (watchpoint_check): Adjust comment.
1302 (bpstat_check_location): Simply always call the breakpoint's
1303 breakpoint_hit method.
1304 (bpstat_stop_status): Always call the breakpoint's check_status
1305 method. Remove special cases for watchpoints and internal event
1306 breakpoints from here (moved to the check_status implementations).
1307 (print_one_breakpoint_location): Assume b->ops is never NULL.
1308 Remove static tracepoint marker id printing from here (moved to
1309 the print_one_detail callback implementation of tracepoints).
1310 (init_bp_location): Assert OPS is never NULL.
1311 (allocate_bp_location): Always call the breakpoint's
1312 allocate_location method, and remove the default code from here.
1313 (free_bp_location): Always call the location's dtor method, and
1314 remove the default code from here.
1315 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1316 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1317 parameter. Pass it down.
1318 (set_raw_breakpoint): Ditto.
1319 (print_it_catch_fork): Adjust to take a bpstat as argument.
1320 (catch_fork_breakpoint_ops): Install methods.
1321 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1322 (catch_vfork_breakpoint_ops): Install methods.
1323 (dtor_catch_syscall): Call the base dtor.
1324 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1325 (catch_syscall_breakpoint_ops): Install methods.
1326 (dtor_catch_exec): Call the base dtor.
1327 (print_it_catch_exec): Adjust to take a bpstat as argument.
1328 (catch_exec_breakpoint_ops): Install methods.
1329 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1330 the breakpoint's resources_needed method, and remove the default
1332 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1334 (clone_momentary_breakpoint): Clone the original's ops.
1335 (mention): Always call the breakpoint's print_mention method, and
1336 remove the default code from here.
1337 (create_breakpoint_sal): Adjust to pass the ops to
1338 set_raw_breakpoint rather than setting it manually.
1339 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1340 ops to set_raw_breakpoint_without_location rather than setting it
1342 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1343 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1344 (ranged_breakpoint_ops): Install methods.
1345 (break_range_command): Adjust to pass the ops to
1346 set_raw_breakpoint rather than setting it manually.
1347 (re_set_watchpoint, breakpoint_hit_watchpoint)
1348 (check_status_watchpoint, resources_needed_watchpoint)
1349 (works_in_software_mode_watchpoint, print_it_watchpoint)
1350 (print_mention_watchpoint, print_recreate_watchpoint): New
1352 (watchpoint_breakpoint_ops): Install new methods.
1353 (print_it_masked_watchpoint): New function.
1354 (masked_watchpoint_breakpoint_ops): Install new methods.
1355 (watch_command_1): Adjust to pass the right breakpoint_ops to
1356 set_raw_breakpoint_without_location rather than setting it
1357 manually later. Record the current pspace.
1358 (print_it_exception_catchpoint): Adjust to take a bpstat as
1360 (gnu_v3_exception_catchpoint_ops): Install new methods.
1361 (say_where): New function.
1362 (null_re_set, null_check_status, null_works_in_software_mode)
1363 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1365 (bp_location_ops): New global.
1366 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1367 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1368 (bkpt_check_status, bkpt_resources_needed)
1369 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1370 (bkpt_print_recreate): New functions.
1371 (bkpt_breakpoint_ops): New global.
1372 (tracepoint_re_set, tracepoint_insert_location)
1373 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1374 (tracepoint_check_status, tracepoint_works_in_software_mode)
1375 (tracepoint_print_it, tracepoint_print_one_detail)
1376 (tracepoint_print_mention, tracepoint_print_recreate): New
1378 (tracepoint_breakpoint_ops): New global.
1379 (delete_breakpoint): Always call the breakpoint's dtor method, and
1380 remove the default handling from here.
1381 (breakpoint_re_set_default): Make static.
1382 (breakpoint_re_set_one): Always call the breakpoints re_set
1383 method, and remove the default handling from here.
1384 (trace_command, ftrace_command, strace_command)
1385 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1386 to create_breakpoint.
1387 (save_breakpoints): Always call the breakpoint's print_recreate
1388 method, and remove the default handling from here.
1390 * ada-lang.c (dtor_exception): Call the base dtor.
1391 (re_set_exception): Call the base method.
1392 (print_it_exception, print_it_catch_exception): Adjust to take a
1394 (catch_exception_breakpoint_ops): Install methods.
1395 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1397 (catch_exception_unhandled_breakpoint_ops): Install methods.
1398 (print_it_catch_assert): Adjust to take a bpstat as argument.
1399 (catch_assert_breakpoint_ops): Install methods.
1401 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1402 to take a bpstat as argument.
1403 (enum print_stop_action): Add describing comments to each enum
1405 (breakpoint_re_set_default): Delete declaration.
1406 (null_re_set, null_works_in_software_mode, null_resources_needed)
1407 (null_check_status, null_print_one_detail): Declare.
1408 (bkpt_breakpoint_ops): Declare.
1409 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1410 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1411 (bkpt_check_status, bkpt_resources_needed)
1412 (bkpt_works_in_software_mode, bkpt_print_it)
1413 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1416 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1417 bkpt_breakpoint_ops.
1418 * python/py-breakpoint.c (bppy_init): Ditto.
1420 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1422 * MAINTAINERS (Write After Approval): Add myself to the list.
1424 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1426 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1428 2011-07-22 Pedro Alves <pedro@codesourcery.com>
1430 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1431 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1432 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1434 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1435 (struct i386_debug_reg_state): New.
1436 (i386_init_dregs): New.
1438 (i386_cleanup_dregs): Use i386_init_dregs.
1439 (i386_show_dr): Add state parameter and adjust.
1440 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1442 (i386_remove_aligned_watchpoint): Likewise.
1443 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1444 (i386_update_inferior_debug_regs): New.
1445 (i386_insert_watchpoint): Work on a local mirror of the debug
1446 registers, and only update the inferior on success.
1447 (i386_remove_watchpoint): Ditto.
1448 (i386_region_ok_for_watchpoint): Adjust.
1449 (i386_stopped_data_address): Adjust.
1450 (i386_insert_hw_breakpoint): Adjust.
1451 (i386_remove_hw_breakpoint): Adjust.
1453 2011-07-22 Tom Tromey <tromey@redhat.com>
1455 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1456 from amd64_pseudo_register_read. Change arguments. Call
1457 mark_value_bytes_unavailable when needed.
1458 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1459 set_gdbarch_pseudo_register_read.
1460 * sentinel-frame.c (sentinel_frame_prev_register): Use
1461 regcache_cooked_read_value.
1462 * regcache.h (regcache_cooked_read_value): Declare.
1463 * regcache.c (regcache_cooked_read_value): New function.
1464 (regcache_cooked_read): Call
1465 gdbarch_pseudo_register_read_value if available.
1466 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1467 (i386_pseudo_register_read): Remove.
1468 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1469 i386_pseudo_register_read. Change arguments. Call
1470 mark_value_bytes_unavailable when needed.
1471 (i386_pseudo_register_read_value): New function.
1472 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1473 not set_gdbarch_pseudo_register_read.
1474 * gdbarch.sh (pseudo_register_read_value): New method.
1475 * gdbarch.c, gdbarch.h: Rebuild.
1476 * findvar.c (value_from_register): Call get_frame_register_value.
1478 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1480 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1482 (display_gdb_prompt): Likewise.
1483 (change_annotation_level): Likewise.
1484 (push_prompt): Likewise.
1485 (pop_prompt): Likewise.
1486 (handle_stop_sig): Use get_prompt with a level.
1487 * top.c (command_loop): Use get_prompt with a level.
1488 (set_async_annotation_level): Use set_prompt with a level.
1489 (get_prefix): New function.
1490 (set_prefix): Ditto.
1491 (set_suffix): Ditto.
1492 (get_suffix): Ditto.
1493 (get_prompt): Accept a level argument.
1494 (set_prompt): Accept a level argument. Free old prompts. Set
1495 new_async_prompt if level is 0.
1496 (init_main): Use set_prompt with a level. Do not set
1498 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1499 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1500 Modify set_prompt, get_prompt to account for levels.
1501 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1503 * python/python.c (before_prompt_hook): Use set_prompt.
1505 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1507 * defs.h: Add guard against inclusion in gdbserver.
1508 (struct ptid, ptid_t): Move to common/ptid.h.
1509 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1510 xsnprintf, internal_error): Move to common/common-utils.h.
1512 * gdb_assert.h: Move into common/ sub-directory.
1513 * gdb_locale.h: Ditto.
1514 * gdb_dirent.h: Ditto.
1515 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1516 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1517 Move into common/ptid.h.
1518 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1519 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1520 Change nomem to malloc_failure.
1521 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1522 * utils.c (nomem): Rename to malloc_failure.
1523 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1524 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1525 (gdb_buildargv): Change nomem to malloc_failure.
1526 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1527 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1528 ptid_is_pid): Move into common/ptid.c.
1529 (initialize_infrun): Delete initialization of null_ptid and
1531 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1532 linux_common_xfer_osdata.
1533 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1534 common/ptid.c and common/buffer.c.
1535 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1536 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1537 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1538 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1540 * common/gdb_assert.h: New.
1541 * common/gdb_dirent.h: New.
1542 * common/gdb_locale.h: New.
1543 * common/buffer.c: New.
1544 * common/buffer.h: New.
1545 * common/ptid.c: New.
1546 * common/ptid.h: New.
1547 * common/xml-utils.c: New.
1548 * common/xml-utils.h: New.
1549 * common/common-utils.c: New.
1550 * common/common-utils.h: New.
1551 * common/linux-osdata.c: New.
1552 * common/linux-osdata.h: New.
1553 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1554 * config/arm/linux.mh (NATDEPFILES): Ditto.
1555 * config/i386/linux.mh (NATDEPFILES): Ditto.
1556 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1557 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1558 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1559 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1560 * config/mips/linux.mh (NATDEPFILES): Ditto.
1561 * config/pa/linux.mh (NATDEPFILES): Ditto.
1562 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1563 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1564 * config/s390/s390.mh (NATDEPFILES): Ditto.
1565 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1566 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1567 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1569 2011-07-21 Matt Rice <ratmice@gmail.com>
1571 * NEWS: Add info macros and info definitions commands.
1573 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1575 * NEWS: Document Python prompt substitution hook.
1577 2011-07-18 Matt Rice <ratmice@gmail.com>
1580 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1581 * macrotab.c (foreach_macro): Ditto.
1582 (foreach_macro_in_scope): Ditto.
1583 * macrocmd.c (print_macro_callback): New function.
1584 (info_macro_command): Move some code to print_macro_definition.
1585 (print_macro_definition): New function.
1586 (print_one_macro): Add new arguments to callback.
1587 (info_definitions_command): New function.
1588 (info_macros_command): Ditto.
1589 (_initialize_macrocmd): Add info macros and info definitions commands.
1590 * symtab.c (add_macro_name): Add new arguments to callback.
1592 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1593 Tom Tromey <tromey@redhat.com>
1595 * top.c (set_prompt): Rewrite to free previous prompt, free
1596 asynch_new_prompt and set both on new prompts.
1597 * event-top.c (display_gdb_prompt): Add prompt substitution
1599 * python/python.c (before_prompt_hook): New function.
1601 2011-07-20 Matt Rice <ratmice@gmail.com>
1603 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1604 arguments to store_unsigned_integer.
1606 2011-07-20 Tom Tromey <tromey@redhat.com>
1608 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1609 in some declaration-only cases.
1611 2011-07-18 Tom Tromey <tromey@redhat.com>
1614 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1615 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1616 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1617 <debug_type_section>: New field.
1618 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1619 (load_cu): Use appropriate section.
1620 (create_signatured_type_table_from_index): Add 'section'
1622 (dwarf2_read_index): Only allow a single .debug_types section.
1623 (dw2_get_file_names): Use appropriate section.
1624 (read_type_comp_unit_head): Add 'section' argument.
1625 (create_debug_types_hash_table): Loop over all .debug_types
1627 (init_cu_die_reader): Use appropriate section.
1628 (process_psymtab_comp_unit, load_partial_comp_unit)
1629 (load_full_comp_unit, read_die_and_children, find_partial_die)
1630 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1631 (lookup_signatured_type_at_offset): Add 'section' argument.
1632 (read_signatured_type_at_offset): Add 'sect' argument.
1633 (read_signatured_type): Use appropriate section.
1634 (set_die_type, get_die_type_at_offset): Update.
1635 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1637 (write_psymtabs_to_index): Don't allow index with more than one
1638 .debug_types section.
1640 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1642 Fix crash if referenced CU is aged out.
1643 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1644 xfree of block.data.
1645 (indirect_pieced_value): New variable back_to, use to for xfree of
1647 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1649 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1650 (load_cu): New function from ...
1651 (dw2_do_instantiate_symtab): ... the code here ...
1652 (process_full_comp_unit): ... and here.
1653 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1656 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1658 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1661 2011-07-19 Gary Benson <gbenson@redhat.com>
1663 * infrun.c (struct execution_control_state): New member
1664 stop_func_filled_in.
1665 (clear_stop_func, fill_in_stop_func): New functions.
1666 (handle_inferior_event): Call clear_stop_func rather than
1667 manipulating the execution control state directly.
1668 Call fill_in_stop_func lazily as required rather than
1669 directly calling find_pc_partial_function in all cases.
1671 2011-07-18 Tom Tromey <tromey@redhat.com>
1673 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1674 checking for variable-sized array.
1676 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1678 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1679 of supported languages.
1680 * varobj.c: Add top definitions and basic implementation of the
1681 following callbacks: ada_number_of_children, ada_name_of_variable,
1682 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1683 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1684 (languages): Register Ada-specific callbacks.
1685 (variable_language): Add the Ada case in the language setter switch.
1687 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1691 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1694 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1695 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1696 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1697 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1698 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1699 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1700 (struct dwarf_expr_context_funcs): New, move here methods from ...
1701 (struct dwarf_expr_context): ... here. New fields funcs.
1702 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1703 (dwarf_expr_ctx_funcs): New.
1704 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1705 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1706 (needs_frame_ctx_funcs): New.
1707 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1709 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1711 * MAINTAINERS (Write After Approval): Add myself to the list.
1713 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1715 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1716 that CIE pointer of an FDE really points to a CIE .
1718 2011-07-15 Hui Zhu <teawater@gmail.com>
1720 * remote.c (remote_get_trace_status): Add comments.
1722 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1724 Code cleanup - constify struct lval_funcs.
1725 * dwarf2loc.c (pieced_value_funcs): Make it const.
1726 * infrun.c (siginfo_value_funcs): Likewise.
1727 * opencl-lang.c (opencl_value_funcs): Likewise.
1728 * valops.c (value_assign, value_ind): Make the funcs variable const.
1729 * value.c (struct value): Make location.computed.funcs target const.
1730 Rearrange the comments.
1731 (allocate_computed_value): Make the funcs parameter target const.
1732 (value_computed_funcs): Return the funcs target const.
1733 (value_free, value_copy, set_value_component_location): Make the funcs
1735 * value.h (allocate_computed_value): Make the funcs parameter target
1737 (value_computed_funcs): Return the funcs target const.
1738 * windows-tdep.c (tlb_value_funcs): Make it const.
1740 2011-07-14 Hui Zhu <teawater@gmail.com>
1742 * remote.c (remote_get_trace_status): Initialize p.
1744 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1747 * remote.c (remote_get_trace_status): New variable ex. Put
1748 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1750 2011-07-13 Tom Tromey <tromey@redhat.com>
1752 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1753 value_from_contents for final conversion.
1755 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1758 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1759 Indent prototypes so they do not get into tags.
1761 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1763 Code cleanup making also optimized out values lazy.
1764 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1765 allocate_optimized_out_value. Twice.
1766 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1767 * findvar.c (read_var_value): Likewise.
1768 * value.c (allocate_optimized_out_value): New function.
1769 * value.h (allocate_optimized_out_value): New declaration.
1771 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1773 Fix occasional crash of CTRL-C during DWARF read in.
1774 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1776 2011-07-11 Tom Tromey <tromey@redhat.com>
1778 * regcache.c (struct regcache_descr): Fix typo.
1779 * i387-tdep.c (i387_supply_xsave): Fix typo.
1781 2011-07-11 Tom Tromey <tromey@redhat.com>
1783 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1784 (read_file_scope, read_type_unit_scope): Use it.
1786 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1788 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1791 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1794 * python/python.c: Set gdbpy_should_print_stack default to off.
1795 (set_python): Deprecate maint set python print-stack to
1797 (_initialize_python): Deprecate maint set/show python print-stack.
1798 Add new prefix command, python. Add new setting, print-backtrace.
1799 * NEWS: Document set python print-stack. Document default change.
1801 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1803 * python/py-inferior.c (infpy_dealloc): New function.
1804 (inferior_to_inferior_object): Return a new object, or a
1805 new reference to the existing object.
1806 (find_thread_object): Cleanup references to inferior.
1807 (delete_thread_object): Ditto.
1808 * python/py-infthread.c (create_thread_object): Do not increment
1809 inferior reference count.
1811 2011-07-08 Tom Tromey <tromey@redhat.com>
1813 * dwarf2loc.c (locexpr_regname): New function.
1814 (locexpr_describe_location_piece): Use it.
1815 (disassemble_dwarf_expression): Add per_cu argument. Use
1817 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1818 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1820 (locexpr_describe_location_1): Add per_cu argument.
1821 (locexpr_describe_location): Update.
1822 (loclist_describe_location): Update.
1824 2011-07-08 Tom Tromey <tromey@redhat.com>
1826 * dwarf2expr.c (execute_stack_op): Add QUIT.
1828 2011-07-07 Hui Zhu <teawater@gmail.com>
1831 2011-07-06 Hui Zhu <teawater@gmail.com>
1832 * remote.c (remote_start_remote): Add TRY_CATCH for
1833 remote_get_trace_status.
1834 * tracepoint.c (disconnect_tracing): Ditto.
1836 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1838 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1839 variables as signed, not unsigned.
1841 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1843 * jit.c (jit_inferior_init): Reformat forward declaration.
1845 2011-07-06 Matt Rice <ratmice@gmail.com>
1847 * MAINTAINERS (Write After Approval): Add myself to the list.
1849 2011-07-06 Hui Zhu <teawater@gmail.com>
1851 * remote.c (remote_start_remote): Add TRY_CATCH for
1852 remote_get_trace_status.
1853 * tracepoint.c (disconnect_tracing): Ditto.
1855 2011-07-05 Tom Tromey <tromey@redhat.com>
1857 * symtab.c (operator_chars): Now static.
1858 * linespec.c (operator_chars): Don't declare.
1860 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1862 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1864 2011-07-05 Tom Tromey <tromey@redhat.com>
1866 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1867 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1868 (TYPE_CPLUS_REALLY_JAVA): New macro.
1869 * dwarf2read.c (process_structure_scope): Set
1870 TYPE_CPLUS_REALLY_JAVA.
1872 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1874 * ada-lang.c: Fix typos.
1875 * amd64-tdep.c: Likewise.
1876 * breakpoint.c: Likewise.
1877 * cli/cli-decode.c: Likewise.
1878 * findcmd.c: Likewise.
1879 * inline-frame.c: Likewise.
1880 * mi/mi-main.c: Likewise.
1881 * minsyms.c: Likewise.
1882 * monitor.c: Likewise.
1883 * monitor.h: Likewise.
1884 * prologue-value.c: Likewise.
1885 * reverse.c: Likewise.
1886 * s390-tdep.c: Likewise.
1888 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1890 * jit.c (jit_inferior_init): Forward declare.
1891 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1893 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1895 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1897 2011-07-04 Tristan Gingold <gingold@adacore.com>
1899 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1900 (tcb_fieldno): Add activation_link field.
1901 (get_known_tasks_addr): Moved and rewritten.
1902 (get_tcb_types_info): Set activation_link field.
1903 (read_known_tasks_array): Add parameter. Rewritten.
1904 (read_known_tasks_list): New function.
1905 (read_known_tasks): New function.
1906 (ada_build_task_list): Call read_known_tasks instead of
1907 read_known_tasks_array.
1908 * ravenscar-thread.c: Add first_task_name constant.
1909 (has_ravenscar_runtime): Check for task list too.
1911 2011-07-04 Tristan Gingold <gingold@adacore.com>
1913 * ada-tasks.c: Renames fieldno to actb_fieldno.
1914 (ada_get_task_number): Indentation.
1915 (get_tcb_types_info): Remove all parameters. Write directly
1917 (ptid_from_atcb_common): Adjust.
1918 (read_atcb): Adjust.
1920 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1922 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1924 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1926 * ui-out.c (ui_out_field_core_addr): Mention that the function
1927 description is in the header file.
1928 * ui-out.h (ui_out_field_core_addr): Document function.
1930 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1932 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1933 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1935 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1937 * symtab.c (expand_line_sal): Remove empty line.
1939 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1941 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1942 same way as ELFOSABI_NONE.
1943 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1945 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1947 * breakpoint.c: Fix typos in comments.
1948 * linespec.c: Likewise.
1949 * symtab.c: Likewise.
1951 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1953 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1954 section in separate object files.
1956 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1958 Fix false GCC warning.
1959 * linespec.c (decode_line_1): Initialize values.
1961 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1963 * linespec.c (find_method): Accept the function type automatically only
1964 if it was specified with parameter types.
1966 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 Stop on first linespec terminator instead of eating what we can.
1969 * linespec.c (is_linespec_boundary): New function.
1970 (name_end): Remove function.
1971 (keep_name_info): New parameter on_boundary, replace the body.
1972 (decode_line_1): Provide the parameter to keep_name_info.
1973 (decode_compound): Likewise. Drop the trailing java return type
1976 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Fall back linespec to minimal symbols.
1979 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1980 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1981 (find_method, symbol_found): Change error to cplusplus_error.
1983 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1985 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1987 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1988 Tom Tromey <tromey@redhat.com>
1990 * dwarf2read.c (check_physname): New variable.
1991 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1992 (show_check_physname): New function.
1993 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1995 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1997 * machoread.c (macho_symfile_read): Delete OBE comment.
1999 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2001 * machoread.c (struct macho_oso_data): Delete.
2002 (current_oso): Delete.
2003 (macho_relocate_common_syms): New function, mostly extracted
2005 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2006 Remove code that sets and unset current_oso.
2007 (macho_symfile_relocate): Delete handling of common symbols,
2008 now moved to macho_relocate_common_syms.
2010 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2012 * darwin-nat.c (darwin_ptrace): Add documentation.
2013 Set errno to zero before calling ptrace. If ptrace returns
2014 -1 and errno is zero, then change then return zero.
2015 (darwin_kill_inferior): Issue a warning instead of triggering
2016 a failed assertion when the PT_KILL ptrace operations returned
2019 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2021 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2022 only when inf->private->no_ptrace.
2024 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2026 * ada-lang.c (print_it_exception): Print temporary catchpoints
2027 as "Temporary catchpoint".
2028 (print_mention_exception): Likewise.
2030 2011-07-01 Tom Tromey <tromey@redhat.com>
2032 * jv-lang.c (java_language_defn): Use java_printchar,
2034 (java_get_encoding): New function.
2035 (java_emit_char): Use generic_emit_char.
2036 (java_printchar): New function.
2037 (java_printstr): Likewise.
2039 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2041 * ada-typeprint.c (print_record_type): If unable to decode
2042 the name of the parent type, use the encoded name.
2044 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2046 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2047 pointer to constrained packed array type output.
2048 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2049 packed array output.
2051 2011-07-01 Jean-Charles Delay <delay@adacore.com>
2053 * ada-typeprint.c (print_array_type): removed if condition on show
2054 being negative for bounds printing.
2056 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2058 * ada-lang.c (ada_identical_enum_types_p): New function.
2059 (symbols_are_identical_enums): New function.
2060 (remove_extra_symbols): Do nothing if NSYMS < 2.
2061 Use symbols_are_identical_enums.
2063 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2065 * ada-valprint.c (ada_value_print): Handle typedefs.
2067 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2069 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2071 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2073 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2074 (decode_constrained_packed_array): Likewise.
2075 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2077 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2079 * ada-exp.y (convert_char_literal): Handle typedef types.
2081 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2083 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2085 2011-06-30 Tom Tromey <tromey@redhat.com>
2087 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2088 * valops.c (find_overload_match): Call do_cleanups on early exit
2090 * solib.c (solib_find): Call do_cleanups on early exit path.
2092 2011-06-30 Tom Tromey <tromey@redhat.com>
2094 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2095 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2096 return paths. Defer final do_cleanups until last return.
2097 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2100 2011-06-30 Tom Tromey <tromey@redhat.com>
2102 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2104 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
2106 * MAINTAINERS (Write After Approval): Add myself to the list.
2108 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2110 Disable epilogue unwinders on recent GCCs.
2111 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2112 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2113 * dwarf2read.c (process_full_comp_unit): Initialize
2114 EPILOGUE_UNWIND_VALID.
2115 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2116 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2117 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2119 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2121 Code cleanup - reformatting.
2122 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2123 (producer_is_gcc_ge_4): ... here, change the return value.
2124 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2127 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2129 Fix non-only rename list for Fortran modules import.
2130 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2131 cp_add_using_directive caller.
2132 (cp_add_using_directive): New parameter excludes, describe it. New
2133 variables ix and param. Compare if also excludes match. Allocate NEW
2134 with variable size, initialize EXCLUDES there.
2135 (cp_lookup_symbol_imports): New variable excludep, test
2136 current->EXCLUDES with it.
2137 * cp-support.h: Include vec.h.
2138 (struct using_direct): New field excludes, describe it.
2139 (DEF_VEC_P (const_char_ptr)): New.
2140 (cp_add_using_directive): New parameter excludes.
2141 * defs.h (const_char_ptr): New typedef.
2142 * dwarf2read.c (read_import_statement): New variables child_die,
2143 excludes and cleanups, read in excludes.
2144 (read_namespace): Adjust the cp_add_using_directive caller.
2146 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2149 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2150 negative comparisons.
2152 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
2154 * mi/mi-main.c (mi_cmd_list_features): Emit
2155 breakpoint-notifications.
2157 2011-06-29 Tom Tromey <tromey@redhat.com>
2160 * valprint.h (generic_emit_char, generic_printstr): Declare.
2161 * valprint.c (wchar_printable, append_string_as_wide)
2162 (print_wchar): Move from c-lang.c.
2163 (generic_emit_char): New function; mostly taken from c_emit_char.
2164 (generic_printstr): New function; mostly taken from c_printstr.
2165 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2166 represented as arrays.
2167 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2169 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2170 identically to TYPE_CODE_INT.
2171 * f-lang.c (f_get_encoding): New function.
2172 (f_emit_char): Use generic_emit_char.
2173 (f_printchar): Replace comment.
2174 (f_printstr): Use generic_printstr.
2175 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2176 "character" types specially.
2177 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2179 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2181 (c_emit_char): Call generic_emit_char.
2182 (c_printstr): Call generic_printstr.
2184 2011-06-29 Gary Benson <gbenson@redhat.com>
2186 * breakpoint.c (bpstat_what): Removed duplicated case.
2188 2011-06-28 Tom Tromey <tromey@redhat.com>
2190 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2192 2011-06-27 Tom Tromey <tromey@redhat.com>
2194 * valops.c (find_overload_match): Call do_cleanups before early
2196 * top.c (execute_command): Call do_cleanups before early return.
2197 (command_loop): Likewise.
2198 * stack.c (backtrace_command): Make a null cleanup early. Don't
2199 conditionally call do_cleanups.
2200 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2202 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2203 so cleanups are always run.
2204 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2205 * findcmd.c (parse_find_args): Call do_cleanups on early return
2207 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2208 Don't conditionally call do_cleanups.
2209 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2212 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2214 * MAINTAINERS (Write After Approval): Use default email address.
2216 2011-06-27 Joel Brobecker <brobecker@adacore.com>
2218 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2220 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2222 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2223 saved_regs_mask and copied_regs_mask fields.
2224 (sparc_record_save_insn): New prototype.
2225 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2226 (sparc_record_save_insn): New function.
2227 (sparc_analyze_prologue): Add head comment. Recognize store insns
2228 of call-saved registers. Use OFFSET consistently. Recognize flat
2229 frames and cache their settings.
2230 (sparc32_skip_prologue): Handle flat frames.
2231 (sparc_frame_cache): Add frame_offset to the base address.
2232 (sparc32_frame_cache): Adjust to new frame description.
2233 (sparc32_frame_prev_register): Likewise.
2234 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2235 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2236 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2237 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2238 frame by calling sparc_record_save_insn.
2239 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2240 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2241 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2243 2011-06-27 Tristan Gingold <gingold@adacore.com>
2245 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2246 field by map_addr and map_len.
2247 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2248 (munmap_section_buffer): Likewise.
2250 2011-06-24 Tom Tromey <tromey@redhat.com>
2252 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2253 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2254 * python/python.c (gdbpy_parameter): Make 'arg' const.
2255 (execute_gdb_command): Likewise.
2256 (gdbpy_decode_line): Likewise. Copy it.
2257 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2258 (gdbpy_write): Make 'arg' const.
2259 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2261 (gdbpy_lookup_type): Likewise.
2262 * python/py-prettyprint.c (print_children): Make 'name' const.
2263 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2264 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2266 * python/py-function.c (fnpy_init): Make 'name' const.
2267 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2268 (gdbpy_string_to_argv): Make 'input' const.
2269 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2271 * gdbtypes.h (lookup_typename): Update.
2272 * gdbtypes.c (lookup_typename): Make 'name' const.
2273 (lookup_struct): Likewise.
2274 (lookup_union): Likewise.
2275 (lookup_enum): Likewise.
2277 2011-06-24 Tom Tromey <tromey@redhat.com>
2279 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2280 gdb_thread_db.h. Move all common/ entries to be together.
2281 (TAGS): Don't depend on DEPFILES.
2283 2011-06-23 Yao Qi <yao@codesourcery.com>
2285 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2286 * remote.c (remote_start_remote): ... here.
2287 * monitor.c (monitor_open): ... here.
2289 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
2291 * gdbtypes.c (append_composite_type_field_aligned): Fix
2292 calculation of bit position based on alignment.
2294 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2296 * breakpoint.c (bpstat_stop_status): Call the check_status
2297 breakpoint_ops method.
2298 (print_one_breakpoint_location): Also print the condition for Ada
2299 exception catchpoints.
2300 (allocate_bp_location): New, factored out from
2301 allocate_bp_location.
2302 (allocate_bp_location): Adjust. Call the owner breakpoint's
2303 allocate_location method, if there is one.
2304 (free_bp_location): Call the locations's dtor method, if there is
2306 (init_raw_breakpoint_without_location): New breakpoint_ops
2308 (set_raw_breakpoint_without_location): Adjust.
2309 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2310 (set_raw_breakpoint): Adjust.
2311 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2312 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2313 re_set and check_status methods.
2314 (init_catchpoint): Don't memset, initialize thread, addr_string
2315 and enable_state. Pass the ops down to init_raw_breakpoint.
2316 (install_catchpoint): Rename to ...
2317 (install_breakpoint): ... this, and make extern.
2318 (create_fork_vfork_event_catchpoint): Adjust.
2319 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2320 re_set and check_status methods.
2321 (create_syscall_event_catchpoint): Adjust.
2322 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2323 (masked_watchpoint_breakpoint_ops): Install NULL
2324 allocate_location, re_set and check_status methods.
2325 (catch_exec_command_1): Adjust.
2326 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2327 re_set and check_status methods.
2328 (create_ada_exception_breakpoint): Rename to ...
2329 (init_ada_exception_breakpoint): ... this. Add a struct
2330 breakpoint parameter, and delete the exp_string, cond_string and
2331 cond parameters. Use init_raw_breakpoint, and don't install or
2332 mention the breakpoint yet. Don't clear breakpoint fields that
2333 init_raw_breakpoint already clears.
2334 (re_set_breakpoint): Delete, split into ...
2335 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2337 (breakpoint_re_set_one): Call the breakpoint's
2338 breakpoint_ops->re_set implementation, if there's one. Adjust.
2339 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2340 (struct bp_location_ops): New type.
2341 (struct bp_location): New field `ops'.
2342 (struct breakpoint_ops): New `allocate_location', `re_set' and
2343 `check_status' fields. Make `breakpoint_hit''s description match
2345 (init_bp_location): Declare.
2346 (breakpoint_re_set_default): Declare.
2347 (create_ada_exception_breakpoint): Rename to ...
2348 (init_ada_exception_breakpoint): ... this. Add a struct
2349 breakpoint parameter, and delete the exp_string, cond_string and
2351 (install_breakpoint): Declare.
2352 * ada-lang.c: Include exceptions.h.
2353 <Ada exceptions description>: Update.
2354 (struct ada_catchpoint_location): New type.
2355 (ada_catchpoint_location_dtor): New function.
2356 (ada_catchpoint_location_ops): New global.
2357 (ada_catchpoint): New type.
2358 (create_excep_cond_exprs): New function.
2359 (dtor_exception, allocate_location_exception, re_set_exception)
2360 (should_stop_exception, check_status_exception): New functions.
2361 (print_one_exception, print_mention_exception)
2362 (print_recreate_exception): Adjust.
2363 (dtor_catch_exception, allocate_location_catch_exception)
2364 (re_set_catch_exception, check_status_catch_exception): New
2366 (catch_exception_breakpoint_ops): Install them.
2367 (dtor_catch_exception_unhandled)
2368 (allocate_location_catch_exception_unhandled)
2369 (re_set_catch_exception_unhandled)
2370 (check_status_catch_exception_unhandled): New functions.
2371 (catch_exception_unhandled_breakpoint_ops): Install them.
2372 (dtor_catch_assert, allocate_location_catch_assert)
2373 (re_set_catch_assert, check_status_catch_assert): New functions.
2374 (catch_assert_breakpoint_ops): Install them.
2375 (ada_exception_catchpoint_p): Delete.
2376 (catch_ada_exception_command_split)
2377 (ada_exception_catchpoint_cond_string): Rename exp_string
2378 parameter to excep_string. Adjust.
2379 (ada_parse_catchpoint_condition): Delete.
2380 (ada_exception_sal): Rename the exp_string parameter to
2381 excep_string. Delete the cond_string and cond parameters.
2383 (ada_decode_exception_location): Rename the exp_string parameter
2384 to excep_string. Delete the cond_string and cond parameters.
2386 (create_ada_exception_catchpoint): New function.
2387 (catch_ada_exception_command, ada_decode_assert_location)
2388 (catch_assert_command): Adjust.
2389 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2391 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2393 * ada-lang.c: Include arch-utils.h.
2394 (ada_decode_exception_location): Make static.
2395 (catch_ada_exception_command): Moved here from breakpoint.c.
2396 (ada_decode_assert_location): Make static.
2397 (catch_assert_command): Moved here from breakpoint.c.
2398 (_initialize_ada_lang): Install the exception and assert
2399 catchpoint commands here.
2400 * ada-lang.h (ada_decode_exception_location)
2401 (ada_decode_assert_location): Delete declarations.
2402 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2404 (create_ada_exception_breakpoint): Make extern.
2405 (catch_ada_exception_command, catch_assert_command): Moved to
2407 (add_catch_command): Make extern.
2408 (_initilize_breakpoint): Don't install the exception and assert
2409 catchpoint commands here.
2410 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2412 (add_catch_command, create_ada_exception_breakpoint): Declare.
2414 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2416 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2417 the breakpoint to the breakpoint chain here.
2418 (set_raw_breakpoint_without_location): Add the breakpoint to the
2419 breakpoint chain here.
2420 (init_raw_breakpoint): Adjust comments.
2421 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2423 (init_catchpoint): Don't set the catchpoint's breakpoint number
2425 (install_catchpoint): New function.
2426 (create_fork_vfork_event_catchpoint)
2427 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2428 use install_catchpoint.
2430 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2432 * breakpoint.c (create_catchpoint_without_mention)
2433 (create_catchpoint): Delete.
2435 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2437 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2438 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2439 reference to exec_pathname.
2440 (struct exec_catchpoint): New type.
2441 (dtor_catch_exec): New function.
2442 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2443 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2444 (catch_exec_command_1): Adjust to use init_catchpoint.
2445 (delete_breakpoint): Remove reference to exec_pathname.
2447 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2449 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2450 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2451 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2452 reference to syscalls_to_be_caught.
2453 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2455 (struct syscall_catchpoint): New type.
2456 (dtor_catch_syscall): New function.
2457 (insert_catch_syscall, remove_catch_syscall)
2458 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2459 (print_recreate_catch_syscall): Adjust.
2460 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2461 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2462 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2463 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2464 (masked_watchpoint_breakpoint_ops)
2465 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2466 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2467 there is one. Remove references to syscalls_to_be_caught.
2468 (catching_syscall_number): Adjust.
2469 * ada-lang.c (catch_exception_breakpoint_ops)
2470 (catch_exception_unhandled_breakpoint_ops)
2471 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2473 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2475 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2477 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2478 reference to forked_inferior_pid.
2479 (struct fork_catchpoint): New type.
2480 (breakpoint_hit_catch_fork, print_it_catch_fork)
2481 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2482 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2483 (create_fork_vfork_event_catchpoint): Adjust to use
2486 2011-06-22 Pedro Alves <pedro@codesourcery.com>
2488 * breakpoint.c (add_to_breakpoint_chain)
2489 (init_raw_breakpoint_without_location): New functions, factored
2491 (set_raw_breakpoint_without_location): ... this one.
2492 (init_raw_breakpoint): New function, factored out from
2493 set_raw_breakpoint and adjusted to use
2494 init_raw_breakpoint_without_location.
2495 (set_raw_breakpoint): Adjust.
2496 (init_catchpoint): New function, factored out from
2497 create_catchpoint_without_mention and adjusted to use
2498 init_raw_breakpoint.
2499 (create_catchpoint_without_mention): Adjust.
2501 2011-06-22 Tom Tromey <tromey@redhat.com>
2503 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2504 argument of 0 specially.
2506 2011-06-22 Yao Qi <yao@codesourcery.com>
2508 * infrun.c (handle_inferior_event): Remove write-only local variable
2509 `sw_single_step_trap_p'.
2511 2011-06-20 Tom Tromey <tromey@redhat.com>
2513 * symtab.c (lookup_language_this): End loop if block is NULL.
2515 2011-06-17 Tom Tromey <tromey@redhat.com>
2517 * valops.c (value_of_this): Use lookup_language_this.
2518 * symtab.h (lookup_language_this): Declare.
2519 * symtab.c (lookup_language_this): New function.
2520 (lookup_symbol_aux): Use lookup_language_this.
2521 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2523 2011-06-17 Tom Tromey <tromey@redhat.com>
2525 * value.h (value_of_this): Update.
2526 (value_of_local): Remove.
2527 * valops.c (value_of_this): Rename from value_of_local. Change
2529 * p-exp.y (exp): Update.
2530 (variable): Likewise.
2531 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2533 2011-06-17 Tom Tromey <tromey@redhat.com>
2535 * valops.c (value_of_local): Complain if NAME is NULL.
2536 * std-operator.def (OP_OBJC_SELF): Remove.
2537 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2538 * objc-exp.y (name_not_typename): Use OP_THIS.
2539 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2541 <OP_OBJC_SELF>: Remove.
2542 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2544 2011-06-16 Tristan Gingold <gingold@adacore.com>
2546 * python/py-events.h (gdb_py_events): Make it extern.
2547 * python/py-evtregistry.c (gdb_py_events): Declare.
2549 2011-06-16 Hui Zhu <teawater@gmail.com>
2551 * remote.c (remote_trace_set_readonly_regions): Add check for
2552 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2555 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2557 * arm-linux-tdep.c: Include "auxv.h".
2559 (ARM_LINUX_SIZEOF_VFP): Define.
2560 (arm_linux_supply_vfp): New function.
2561 (arm_linux_collect_vfp): Likewise.
2562 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2563 (arm_linux_fpa_regset_sections): New variable.
2564 (arm_linux_vfp_regset_sections): Likewise.
2565 (arm_linux_core_read_description): New function.
2566 (arm_linux_init_abi): Install arm_linux_core_read_description and
2567 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2568 appropriate for the architecture.
2569 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2570 (tdesc_arm_with_m): Declare.
2571 (tdesc_arm_with_iwmmxt): Likewise.
2572 (tdesc_arm_with_vfpv2): Likewise.
2573 (tdesc_arm_with_vfpv3): Likewise.
2574 (tdesc_arm_with_neon): Likewise.
2575 * arm-linux-nat.c: Move features/*.c includes ...
2576 * arm-tdep.c: ... here.
2577 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2578 target description data structures ...
2579 * arm-tdep.c (_initialize_arm_tdep): ... here.
2580 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2581 HWCAP_VFPv3D16): Move definitions ...
2582 * arm-linux-tdep.h: ... here.
2584 2011-06-15 Hui Zhu <teawater@gmail.com>
2586 * remote.c (remote_trace_set_readonly_regions): Add a check for
2589 2011-06-14 Tom Tromey <tromey@redhat.com>
2591 * coffread.c (coffread_objfile): Rename from current_objfile.
2592 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2593 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2595 2011-06-14 Tom Tromey <tromey@redhat.com>
2597 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2598 (class_symtab): Remove.
2599 (jv_dynamics_progspace_key): New global.
2600 (jv_per_objfile_free): Reset program space data. Update assert.
2601 Don't clear globals.
2602 (get_dynamics_objfile): Use and set program space data.
2603 (get_java_class_symtab): Use get_dynamics_objfile.
2604 (add_class_symbol): Likewise.
2605 (java_link_class_type): Likewise.
2606 (java_object_type, jv_clear_object_type, set_java_object_type):
2608 (get_java_object_type): Update. Don't cache result.
2609 (is_object_type): Don't call set_java_object_type.
2610 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2611 initialize jv_dynamics_progspace_key.
2613 2011-06-14 Tom Tromey <tromey@redhat.com>
2615 * symtab.h (current_objfile): Don't declare.
2616 * objfiles.h (current_objfile): Don't declare.
2617 * objfiles.c (current_objfile): Remove.
2618 * mdebugread.c (current_objfile): New file-scope global.
2619 * dbxread.c (current_objfile): New file-scope global.
2620 * coffread.c (current_objfile): New file-scope global.
2622 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2624 * top.h (line): Rename to ...
2625 (saved_command_line): ... this.
2626 (linesize): Rename to ...
2627 (saved_command_line_size): ... this.
2628 * top.c (line): Rename to ...
2629 (saved_command_line): ... this.
2630 (linesize): Rename to ...
2631 (saved_command_line_size): ... this.
2632 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2633 * event-top.c (command_line_handler): Adjust.
2634 * main.c (captured_main): Adjust.
2636 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2638 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2639 get_frame_func instead of get_frame_pc to determine the code
2640 address used to construct the frame ID.
2641 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2642 (i386_epilogue_frame_this_id): Likewise.
2643 (i386_epilogue_frame_prev_register): New function.
2644 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2645 (i386_stack_tramp_frame_sniffer): Fix coding style.
2646 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2647 (i386_gdbarch_init): Fix comments.
2649 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2651 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2652 instruction when walking back through the instruction stream.
2654 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2656 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2657 fullname parameters order.
2659 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2662 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2664 * psymtab.c (map_symbol_filenames_psymtab)
2665 (map_partial_symbol_filenames): Likewise.
2666 * psymtab.h: Include symfile.h.
2667 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2668 * symfile.h (symbol_filename_ftype): New.
2669 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2670 map_symbol_filenames, clarify more the naming in comment.
2672 2011-06-07 Doug Evans <dje@google.com>
2674 * cc-with-index.sh: Fix typos in comment.
2675 Look for ../../gdb, for fullname.exp.
2677 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 Pedro Alves <pedro@codesourcery.com>
2680 * cli/cli-cmds.c (shell_escape): Use waitpid.
2681 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2683 2011-06-07 Tristan Gingold <gingold@adacore.com>
2685 * xcoffread.c (dwarf2_xcoff_names): New variable.
2686 (aix_process_linenos): Add a guard.
2687 (xcoff_symfile_finish): Free dwarf2.
2688 (xcoff_initial_scan): Add dwarf2 support.
2690 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2692 * infcall.c (run_inferior_call): Don't mask async. Instead force
2693 a synchronous wait, if the target can async.
2695 * target.h (struct target_ops): Delete to_async_mask.
2696 (target_async_mask): Delete.
2697 * target.c (update_current_target): Delete references to to_async_mask.
2698 * linux-nat.c (linux_nat_async_mask_value): Delete.
2699 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2700 to linux_nat_async_mask_value.
2701 (linux_nat_async_mask): Delete.
2702 (linux_nat_async, linux_nat_close): Remove references to
2703 linux_nat_async_mask_value.
2704 * record.c (record_async_mask_value): Delete.
2705 (record_async): Remove references to record_async_mask_value.
2706 (record_async_mask): Delete.
2707 (record_can_async_p, record_is_async_p): Remove references to
2708 record_async_mask_value.
2709 (init_record_ops, init_record_core_ops): Remove references to
2711 * remote.c (remote_async_mask_value): Delete.
2712 (init_remote_ops): Remove reference to remote_async_mask.
2713 (remote_can_async_p, remote_is_async_p): Remove references to
2714 remote_async_mask_value.
2715 (remote_async): Remove references to remote_async_mask_value.
2716 (remote_async_mask): Delete.
2718 * infrun.c (fetch_inferior_event): Don't claim registers changed
2719 if the current thread is already not executing.
2721 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2723 From Stephen Kitt <steve@sk2.org>
2724 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2725 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2727 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2729 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2730 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2732 2011-06-03 Tom Tromey <tromey@redhat.com>
2734 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2736 * python/py-exitedevent.c (create_exited_event_object): Change
2737 type of 'exit_code'. Optionally add exit_code attribute.
2738 (emit_exited_event): Change type of 'exit_code'.
2739 * python/py-event.h (emit_exited_event): Update.
2740 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2741 * infrun.c (handle_inferior_event): Set exit code fields on
2743 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2745 * inferior.c (exit_inferior_1): Initialize new fields.
2747 2011-06-03 Tom Tromey <tromey@redhat.com>
2749 * dwarf2expr.c (get_signed_type): New function.
2750 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2752 2011-06-02 Keith Seitz <keiths@redhat.com>
2754 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2756 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2758 * top.h (simplified_command_loop): Delete declaration.
2760 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2762 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2763 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2765 2011-06-01 Yao Qi <yao@codesourcery.com>
2767 * objfiles.h (obj_section_addr): Update reference to objfile from
2769 (obj_section_endaddr): Likewise.
2771 2011-06-01 Daniel Jacobowitz <drow@false.org>
2773 * MAINTAINERS: Update my email address and affiliation. Also
2774 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2776 2010-05-31 Keith Seitz <keiths@redhat.com>
2779 * linespec.c (get_search_block): New function.
2780 (find_methods): Add FILE_SYMTATB parameter and use it and
2781 get_search_block to pass an appropriate block to
2782 lookup_symbol_in_namespace.
2783 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2784 Check if *ARGPTR starts with a filename first.
2785 If it does, call locate_first_half again to locate the next
2786 "first half" of the linespec.
2787 Pass FILE_SYMTATB to decode_objc and decode_compound.
2788 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2789 (locate_first_half): Stop on the first colon seen.
2790 (decode_compound): Add FILE_SYMTAB parameter.
2791 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2792 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2793 get_search_block with lookup_symbol.
2794 (find_method): Add FILE_SYMTAB parameter and pass it to
2796 (decode_objc): Use get_search_block.
2798 2010-05-31 Keith Seitz <keiths@redhat.com>
2801 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2802 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2803 and CP_ANONYMOUS_NAMESPACE_LEN.
2804 (cp_is_anonymous): Likewise.
2805 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2806 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2807 * dwarf2read.c (namespace_name): Likewise.
2808 (fixup_partial_die): Likewise.
2809 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2810 seen in the input, keep it.
2812 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2814 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2815 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2816 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2817 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2818 * remote.c (_initialize_remote): Register
2819 async_remote_interrupt_twice directly as
2820 sigint_remote_twice_token event.
2822 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2824 * target.h (enum inferior_event_type): Delete INF_ERROR.
2825 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2827 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2829 * interps.c (interp_set): Don't cancel continuations.
2831 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2833 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2835 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2837 * continuations.h (continuation_ftype): Add `err' parameter.
2838 Document parameters.
2839 (do_all_continuations, do_all_continuations_thread)
2840 (do_all_intermediate_continuations)
2841 (do_all_intermediate_continuations_thread)
2842 (do_all_inferior_continuations): Add `err' parameter.
2843 * continuations.c (do_my_continuations_1, do_my_continuations)
2844 (do_all_inferior_continuations, do_all_continuations_ptid)
2845 (do_all_continuations_thread_callback)
2846 (do_all_continuations_thread, do_all_continuations)
2847 (do_all_intermediate_continuations_thread_callback)
2848 (do_all_intermediate_continuations_thread)
2849 (do_all_intermediate_continuations): Add `err' parameter, and pass
2850 it down all the way to the continuations proper.
2851 * inf-loop.c (inferior_event_handler): If fetching an inferior
2852 event throws an error, don't pop the target, and still call the
2853 continuations, but with `err' set. Adjust all other continuation
2855 * breakpoint.c (until_break_command_continuation): Add `err'
2857 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2858 issue another step if `err' is set.
2859 (struct until_next_continuation_args): New.
2860 (until_next_continuation): Add `err' parameter. Adjust.
2861 (until_next_command): Adjust.
2862 (struct finish_command_continuation_args): Add `thread' field.
2863 (finish_command_continuation): Add `err' parameter. Handle it.
2864 (finish_forward): Adjust.
2865 (attach_command_continuation): Add `err' parameter. Handle it.
2866 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2867 cancel the continuations.
2868 * interps.c (interp_set): Adjust to cancel the continuations.
2869 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2870 continuations rather than discarding.
2871 (free_thread): Don't clear thread inferior resources here.
2872 (delete_thread_1): Do it here instead. And do it before removing
2873 the thread from the threads list. Tag the thread as exited before
2874 clearing thread inferior resources.
2876 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2878 * infcall.c (call_function_by_hand): Rephrase error message.
2880 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2882 * defs.h (struct thread_info, struct inferior): Delete forward
2884 * breakpoint.h (struct thread_info): New forward declaration.
2885 * observer.sh (struct inferior): New forward declaration.
2886 * python/python-internal.h (struct inferior): New forward
2889 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2891 * defs.h (struct continuation, continuation_ftype)
2892 (continuation_free_arg_ftype, add_continuation)
2893 (do_all_continuations, do_all_continuations_thread)
2894 (discard_all_continuations, discard_all_continuations_thread)
2895 (add_intermediate_continuation, do_all_intermediate_continuations)
2896 (do_all_intermediate_continuations_thread)
2897 (discard_all_intermediate_continuations)
2898 (discard_all_intermediate_continuations_thread)
2899 (add_inferior_continuation, do_all_inferior_continuations)
2900 (discard_all_inferior_continuations): Move to ...
2901 * continuations.h: ... this new file.
2902 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2903 infcmd.c, inferior.c, infrun.c, interps.c: Include
2906 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2907 Doug Evans <dje@google.com>
2909 Fix PR 10970, PR 12702.
2910 * linux-nat.c (linux_lwp_is_zombie): New function.
2911 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2912 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2914 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2916 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2918 (add_continuation, add_intermediate_continuation)
2919 (add_inferior_continuation): Use them.
2920 * continuations.c (struct continuation): Use them.
2921 (make_continuation_ftype): Delete.
2922 (make_continuation, add_inferior_continuation, add_continuation)
2923 (add_intermediate_continuation): Use continuation_ftype and
2924 continuation_free_arg_ftype. Rename parameters to shorter names.
2926 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2928 * continuations.c (make_continuation): Make it return void.
2929 (do_my_continuations): Rename to ...
2930 (do_my_continuations_1): ... this. Remove old_chain parameter and
2932 (do_my_continuations): New.
2933 (discard_my_continuations): Rename to ...
2934 (discard_my_continuations_1): ... this. Remove old_chain
2935 parameter and adjust.
2936 (discard_my_continuations): New.
2937 (add_inferior_continuation): Simplify.
2938 (do_all_inferior_continuations): Reimplement on top
2939 do_my_continuations.
2940 (discard_all_inferior_continuations): Simplify.
2941 (add_continuation): Simplify.
2942 (do_all_continuations_ptid): Simplify.
2943 (discard_all_continuations_thread_callback): Simplify.
2944 (add_intermediate_continuation): Simplify.
2945 (discard_all_intermediate_continuations_thread_callback):
2948 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2950 * utils.c (struct continuation, add_continuation)
2951 (add_inferior_continuation)
2952 (do_all_inferior_continuations, discard_all_inferior_continuations)
2953 (restore_thread_cleanup, do_all_continuations_ptid)
2954 (do_all_continuations_thread_callback)
2955 (do_all_continuations_thread, do_all_continuations)
2956 (discard_all_continuations_thread_callback)
2957 (discard_all_continuations_thread, discard_all_continuations)
2958 (add_intermediate_continuation)
2959 (do_all_intermediate_continuations_thread_callback)
2960 (do_all_intermediate_continuations_thread)
2961 (do_all_intermediate_continuations)
2962 (discard_all_intermediate_continuations_thread_callback)
2963 (discard_all_intermediate_continuations_thread)
2964 (discard_all_intermediate_continuations): Move to ...
2965 * continuations.c: ... this new file, and adjust to no longer
2966 implement continuations on top of cleanups.
2967 * Makefile.in (SFILES): Add continuations.c.
2968 (COMMON_OBS): Add continuations.o.
2970 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2972 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2973 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2974 Internal error on invalid values.
2975 * reverse.c: Don't handle EXEC_ERROR.
2976 * mi/mi-main.c: Don't handle EXEC_ERROR.
2978 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2980 * record.c: Include event-loop.h, inf-loop.h.
2981 (record_beneath_to_async): New global.
2982 (tmp_to_async): New global.
2983 (record_async_inferior_event_token): New global.
2984 (record_open_1): Don't error out if async is enabled.
2985 (record_open): Handle to_async. Create an async event source in
2987 (record_close): Delete the async event source.
2988 (record_resumed): New global.
2989 (record_execution_dir): New global.
2990 (record_resume, record_core_resume): Set them. Register the
2991 target on the event loop.
2992 (record_wait): Rename to ...
2993 (record_wait_1): ... this. Add more debug output. Handle
2994 TARGET_WNOHANG, and the target beneath returning
2995 TARGET_WAITKIND_IGNORE.
2996 (record_wait): Reimplement on top of record_wait_1.
2997 (record_async_mask_value): New global.
2998 (record_async, record_async_mask, record_can_async_p)
2999 (record_is_async_p, record_execution_direction): New functions.
3000 (init_record_ops, init_record_core_ops): Install new methods.
3001 * infrun.c (fetch_inferior_event): Temporarily switch the global
3002 execution direction to the direction the target was going.
3003 (execution_direction): Change type to int.
3004 * target.c (default_execution_direction): New function.
3005 (update_current_target): Inherit and de_fault
3006 to_execution_direction.
3007 * target.h (struct target_ops) <to_execution_direction>: New
3009 (target_execution_direction): New macro.
3010 * inferior.h (execution_direction): Change type to int.
3012 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3014 * infcall.c (call_function_by_hand): Don't allow calling functions
3015 in reverse execution mode.
3017 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3019 * infcmd.c (finish_command): Allow async finish in reverse.
3021 2011-05-26 Yao Qi <yao@codesourcery.com>
3023 * gdb_thread_db.h: Delete. Move to ...
3024 * common/gdb_thread_db.h: ... here.
3026 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3028 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3029 function's entry point instead of a manually managed momentary
3030 breakpoint, and only ever issue one proceed call.
3031 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3032 doing a reverse-finish, switch to stepi mode, to do another step.
3033 (insert_step_resume_breakpoint_at_sal): Make public.
3034 (normal_stop): No need to save function value return registers if
3036 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3038 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3040 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3041 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3042 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3044 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3045 step-resume breakpoints.
3046 (print_it_typical): Handle bp_hp_step_resume.
3047 (bpstat_what): Ditto.
3048 (bptype_string): Ditto.
3049 (print_one_breakpoint_location): Ditto.
3050 (allocate_bp_location): Ditto.
3052 (breakpoint_re_set_one): Ditto.
3053 * infrun.c (handle_inferior_event): Adjust. Split
3054 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3055 BPSTAT_WHAT_HP_STEP_RESUME.
3056 (insert_step_resume_breakpoint_at_sal): Rename to ...
3057 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3058 parameter. Handle it.
3059 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3060 insert_step_resume_breakpoint_at_sal_1.
3061 (insert_step_resume_breakpoint_at_frame): Rename to ...
3062 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3063 set a high-priority step-resume breakpoint.
3064 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3065 (insert_step_resume_breakpoint_at_caller): Ditto.
3067 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3069 * breakpoint.c (iterate_over_related_breakpoints): New.
3070 (do_map_delete_breakpoint): New.
3071 (delete_command): Pass do_map_delete_breakpoint to
3072 map_breakpoint_numbers.
3073 (do_disable_breakpoint): New.
3074 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3076 (do_enable_breakpoint): Rename to ...
3077 (enable_breakpoint_disp): ... this.
3078 (enable_breakpoint): Adjust.
3079 (do_enable_breakpoint): New.
3080 (enable_once_breakpoint): Delete.
3081 (do_map_enable_breakpoint): New.
3082 (do_map_enable_once_breakpoint): New.
3083 (enable_once_command, enable_delete_command)
3084 (delete_trace_command): Iterate over the breakpoint's related
3087 2011-05-26 Pedro Alves <pedro@codesourcery.com>
3089 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3090 for ALPHA_ZERO_REGNUM.
3091 (alpha_supply_int_regs): Explicitly supply zero as the value for
3092 ALPHA_ZERO_REGNUM in the register cache.
3093 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3095 2011-05-26 Yao Qi <yao@codesourcery.com>
3097 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3099 2011-05-26 Tristan Gingold <gingold@adacore.com>
3101 * symfile.h (struct dwarf2_section_names): New type.
3102 (struct dwarf2_debug_sections): New type.
3103 (dwarf2_has_info): Add parameter.
3104 * dwarf2read.c (dwarf2_elf_names): New variable.
3105 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3106 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3107 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3108 (dwarf2_has_info): Add names parameter. Pass names
3109 to dwarf2_locate_sections.
3110 (section_is_p): Rewrite using the names parameter.
3111 (dwarf2_locate_sections): Use section names from the names parameter.
3112 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3113 * elfread.c (read_psyms): Ditto.
3114 * machoread.c (macho_symfile_read): Ditto.
3116 2011-05-25 Andreas Schwab <schwab@redhat.com>
3119 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3121 2011-05-24 Keith Seitz <keiths@redhat.com>
3124 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3125 (decode_compound): Unconditionally call keep_name_info.
3127 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3129 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3130 scope, clear its command list.
3131 (map_breakpoint_numbers): Don't walk the related breakpoints list
3134 2011-05-24 Tom Tromey <tromey@redhat.com>
3136 * MAINTAINERS: Move Jim Blandy to past maintainers.
3138 2011-05-24 Tristan Gingold <gingold@adacore.com>
3140 * symfile.h (enum dwarf2_section_enum): New type.
3141 (dwarf2_get_section_info): New prototype.
3142 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3143 section_name by sect. Use a switch to select the info.
3144 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3145 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3147 2011-05-24 Pedro Alves <pedro@codesourcery.com>
3149 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3150 shared library event breakpoint if there's no execution.
3152 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3154 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3155 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3157 2011-05-23 Tom Tromey <tromey@redhat.com>
3159 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3162 2011-05-23 Doug Evans <dje@google.com>
3164 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3165 entry for RuntimeError to doc string.
3167 2011-05-23 Jerome Guitton <guitton@adacore.com>
3169 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3170 sequence for probing loops.
3172 2011-05-23 Pedro Alves <pedro@codesourcery.com>
3174 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3177 2011-05-21 Mark Kettenis <kettenis@gnu.org>
3179 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3180 zero as the value for %g0 in the register cache.
3181 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3182 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3184 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3186 * infrun.c (proceed): Set previous_inferior_ptid here.
3187 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3188 inferior_ptid, not null_ptid.
3189 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3190 (fetch_inferior_event): Nor here.
3192 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3194 * inf-loop.c (inferior_event_handler): Only output a message if
3197 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
3199 * MAINTAINERS: Update my e-mail address.
3201 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3203 * infrun.c (proceed): Switch the inferior event loop to
3204 INF_EXEC_COMPLETE if the target refused to resume from a
3207 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3209 * infcmd.c: Include "inf-loop.h".
3210 (step_once): When stepping into an inline subroutine, pretend the
3211 target has run. If the target can async, switch the inferior
3212 event loop to INF_EXEC_COMPLETE.
3213 * inferior.h (user_visible_resume_ptid): Declare.
3214 * infrun.c (user_visible_resume_ptid): New function, factored out
3217 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3218 that the current thread is running. Merge async and sync
3221 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3223 * infcmd.c (step_1): Simplify synchronous case.
3225 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3227 * tracepoint.c: Include exceptions.h.
3228 (TFILE_PID): Move higher in file.
3229 (tfile_open): Delay pushing the tfile target until we're assured
3230 the tfile header is present in the file. Wrap reading the initial
3231 newline-terminated lines in TRY_CATCH. Pop the target if the
3232 initial setup failed. Add the tfile's thread immediately
3233 aftwards, before any non-essential setup. Don't skip
3234 post_create_inferior if there are no traceframes present in the
3236 (tfile_close): Remove redundant check for null before xfree call.
3237 (tfile_thread_alive): New function.
3238 (init_tfile_ops): Register it as to_thread_alive callback.
3240 2011-05-20 Pedro Alves <pedro@codesourcery.com>
3242 * tracepoint.c (tfile_open): Delete #if 0'd code.
3244 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3246 Fix -readnow for -gdwarf-4 unused type units.
3247 * dwarf2read.c (struct signatured_type): Remove the field offset.
3248 (create_signatured_type_table_from_index): Remove its initialization.
3249 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3250 instead. Add a complaint call.
3251 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3252 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3253 (lookup_signatured_type_at_offset, read_signatured_type)
3254 (write_one_signatured_type): Update the field for per_cu.
3256 2011-05-19 Tom Tromey <tromey@redhat.com>
3258 * python/py-inferior.c (python_inferior_exit): Use
3260 (python_on_resume): Likewise.
3262 2011-05-19 Matt Rice <ratmice@gmail.com>
3264 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3266 2011-05-19 Hui Zhu <teawater@gmail.com>
3268 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3270 2011-05-19 Hui Zhu <teawater@gmail.com>
3272 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3274 2011-05-18 Tom Tromey <tromey@redhat.com>
3276 * dwarf2read.c (dwarf2_add_field): Constify.
3277 * value.c (value_static_field): Constify.
3278 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3280 * ax-gdb.c (gen_static_field): Constify
3282 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3284 * linux-nat.c (kill_callback): Use SIGKILL first.
3286 2011-05-18 Joel Brobecker <brobecker@adacore.com>
3288 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3290 2011-05-18 Tom Tromey <tromey@redhat.com>
3292 * value.c (value_fn_field): Constify.
3293 * symtab.c (gdb_mangle_name): Constify.
3294 * stabsread.c (update_method_name_from_physname): Make 'physname'
3296 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3297 const. Use explicit fputc_filtered loop.
3298 (pascal_type_print_base): Constify.
3299 * p-lang.h (pascal_type_print_method_args): Update.
3300 * linespec.c (add_matching_methods): Constify.
3301 (add_constructors): Likewise.
3302 * jv-typeprint.c (java_type_print_base): Constify.
3303 * gdbtypes.h (struct cplus_struct_type)
3304 <fn_fieldlist.fn_field.physname>: Now const.
3305 * dwarf2read.c (compute_delayed_physnames): Constify.
3306 (dwarf2_add_member_fn): Likewise.
3307 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3309 2011-05-18 Pedro Alves <pedro@codesourcery.com>
3311 * infrun.c (resume): Mention which is the current thread, and its
3312 current PC in debug output.
3313 (prepare_to_proceed): Mention the thread switching in debug
3316 2011-05-18 Tom Tromey <tromey@redhat.com>
3318 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3319 path check. Use xmalloc and cleanups.
3320 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3322 2011-05-17 Tom Tromey <tromey@redhat.com>
3324 * cp-valprint.c (cp_print_value_fields): Catch errors from
3327 2011-05-17 Tom Tromey <tromey@redhat.com>
3329 * dwarf2read.c (dwarf2_get_die_type): Call
3330 get_die_type_at_offset.
3331 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3332 get_base_type function.
3334 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
3336 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3339 2011-05-16 Doug Evans <dje@google.com>
3341 * python/py-auto-load.c (source_section_scripts): Mention objfile
3344 2011-05-15 Doug Evans <dje@google.com>
3346 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3347 (try_thread_db_load_from_pdir): Call it. If unable to find
3348 libthread_db in directory of libpthread, see if we're looking at
3349 the separate-debug-info copy.
3351 * python/py-autoload.c (print_script): Print "Missing" instead of
3352 "No" for missing scripts.
3353 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3355 2011-05-13 Doug Evans <dje@google.com>
3357 * ui-file.c (stdio_file_write_async_safe): Add comment.
3359 2011-05-14 Hui Zhu <teawater@gmail.com>
3361 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3363 2011-05-13 Doug Evans <dje@google.com>
3365 Support $pdir and $sdir in libthread-db-search-path.
3366 * NEWS: Mention $sdir,$pdir.
3367 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3368 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3369 (try_thread_db_load_from_sdir): New function.
3370 (try_thread_db_load_from_dir): New function.
3371 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3372 system directories if search of libthread-db-search-path fails,
3373 that is now done via $sdir.
3374 (has_libpthread): New function.
3375 (thread_db_load): Remove search for libthread_db in directory of
3376 libpthread, that is now done via $pdir.
3378 * NEWS: Mention "info auto-load-scripts".
3379 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3380 script_not_found_warning_printed.
3381 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3382 all callers updated. Initialize script_not_found_warning_printed.
3383 (get_auto_load_pspace_data_for_loading): New function.
3384 (maybe_add_script): New function.
3385 (source_section_scripts): Simplify. Only print one warning regardless
3386 of the number of auto-load scripts not found.
3387 (clear_section_scripts): Clear script_not_found_warning_printed.
3388 (auto_load_objfile_script): Record script in hash table.
3389 (count_matching_scripts): New function.
3390 (maybe_print_script): Renamed from maybe_print_section_script, all
3391 callers updated. Rewrite to use ui_out_*.
3392 (info_auto_load_scripts): Renamed from
3393 maintenance_print_section_scripts, all callers updated.
3394 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3395 renamed as "info auto-load-scripts".
3397 2011-05-13 Tom Tromey <tromey@redhat.com>
3399 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3400 (read_sleb128): Likewise.
3402 2011-05-13 Tom Tromey <tromey@redhat.com>
3404 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3407 2011-05-13 Doug Evans <dje@google.com>
3409 * linux-nat.c (debug_linux_nat_async): Delete.
3410 Replace all references to use debug_linux_nat instead.
3411 (show_debug_linux_nat_async): Delete.
3412 (sigchld_handler): Call ui_file_write_async_safe instead of
3414 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3415 * ui-file.c (struct ui_file): New member to_write_async_safe.
3416 (null_file_write_async_safe): New function.
3417 (ui_file_write_async_safe): New function.
3418 (set_ui_file_write_async_safe): New function.
3419 (ui_file_new): Initialize to_write_async_safe.
3420 (stdio_file_write_async_safe): New function.
3421 (struct stdio_file): New member fd.
3422 (stdio_file_new): Initialize to_write_async_safe, fd.
3423 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3425 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3426 (set_ui_file_write_async_safe): Declare.
3427 (ui_file_write_async_safe): Declare.
3429 2011-05-13 Tom Tromey <tromey@redhat.com>
3431 * utils.c (do_value_free): New function.
3432 (make_cleanup_value_free): Likewise.
3433 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3435 (dwarf2_loc_desc_needs_frame): Call
3436 make_cleanup_value_free_to_mark.
3437 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3438 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3440 (new_dwarf_expr_context): Don't call value_mark.
3441 * dwarf2-frame.c (execute_stack_op): Call
3442 make_cleanup_value_free_to_mark.
3443 * defs.h (make_cleanup_value_free): Declare.
3445 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3447 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3448 prepare_execute_command.
3449 * top.c (prepare_execute_command): Return cleanup.
3450 (execute_command): Use cleanup from prepare_execute_command.
3451 * top.h (prepare_execute_command): Change prototype to return
3453 * defs.h (struct value): Add opaque declaration.
3454 (make_cleanup_value_free_to_mark): Add prototype.
3455 * utils.c (do_value_free_to_mark): New function.
3456 (make_cleanup_value_free_to_mark): Likewise.
3458 2011-05-12 Tom Tromey <tromey@redhat.com>
3460 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3461 cast left-hand-side to unsigned.
3463 2011-05-12 Tom Tromey <tromey@redhat.com>
3466 * value.h (value_from_contents): Declare.
3467 * value.c (value_from_contents): New function.
3468 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3469 (dwarf2_get_die_type): New function.
3470 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3471 (allocate_piece_closure): Acquire reference to values.
3472 (read_pieced_value): Update for value-based expressions.
3473 (write_pieced_value): Likewise.
3474 (free_pieced_value_closure): Call value_free as needed.
3475 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3476 Update for value-based expressions.
3477 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3478 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3479 <get_base_type>: New field.
3480 (struct dwarf_expr_piece) <v.value>: Change type.
3481 <v.regno>: New field.
3482 (struct dwarf_expr_context) <mark>: New field.
3483 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3484 (dwarf_expr_pop, dwarf_expr_push): Remove.
3485 (dwarf_expr_push_address): Declare.
3486 * dwarf2expr.c (dwarf_arch_cookie): New global.
3487 (struct dwarf_gdbarch_types): New.
3488 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3490 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3492 (dwarf_expr_push_address): New function.
3493 (dwarf_expr_pop): Now static.
3494 (dwarf_expr_fetch): Change return type.
3495 (dwarf_require_integral): New function.
3496 (dwarf_expr_fetch): Simplify.
3497 (add_piece): Update.
3498 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3500 (execute_stack_op) <sign_ext>: Remove.
3501 Use values for DWARF stack.
3502 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3503 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3505 (_initialize_dwarf2expr): New function.
3506 (add_piece): Update.
3507 (new_dwarf_expr_context): Set new field.
3508 (free_dwarf_expr_context): Call value_free_to_mark.
3509 * dwarf2-frame.c (no_base_type): New function.
3510 (execute_stack_op): Set get_base_type field. Update.
3512 2011-05-12 Tom Tromey <tromey@redhat.com>
3514 * dwarf2read.c (read_common_block): Fix formatting.
3516 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3518 * breakpoint.c (disable_breakpoint): Disable all locations
3519 associated with a tracepoint on target if a trace experiment is
3521 (disable_command): Disable a specific tracepoint location on target if
3522 a trace experiment is running.
3523 (do_enable_breakpoint): Enable all locations associated with a
3524 tracepoint on target if a trace experiment is running.
3525 (enable_command) Enable a specific tracepoint location on target if a
3526 trace experiment is running.
3527 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3528 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3529 to_disable_tracepoint.
3530 * target.h: Add declaration of struct bp_location.
3531 (struct target_ops): Add new functions
3532 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3533 to_disable_tracepoint to target operations.
3534 (target_supports_enable_disable_tracepoint): New macro.
3535 (target_enable_tracepoint): New macro.
3536 (target_disable_tracepoint): New macro.
3537 * remote.c (struct remote_state): Add new field.
3538 (remote_enable_disable_tracepoint_feature): New.
3539 (remote_protocol_features): Add new entry.
3540 (remote_supports_enable_disable_tracepoint): New.
3541 (remote_enable_tracepoint): New.
3542 (remote_disable_tracepoint): New.
3543 (init_remote_ops): Add remote_enable_tracepoint,
3544 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3545 to remote operations.
3546 * tracepoint.c (start_tracing): Allow tracing to start without any
3547 tracepoints enabled with just a warning if they can be re-enabled
3549 * NEWS: Add news item for the new behaviour of the enable and disable
3550 GDB commands when applied to tracepoints.
3551 Add news items for the new remote packets QTEnable and QTDisable.
3553 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3555 * config.in: Regenerate.
3556 * configure: Regenerate.
3557 * configure.ac <--with-system-readline> (for readline_echoing_p):
3559 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3560 (tui_old_rl_echoing_p): ... here.
3561 (tui_setup_io): Rename extern declaration readline_echoing_p to
3562 _rl_echoing_p. Adjust assignments for the both renames.
3564 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3566 * symtab.c (lookup_symtab): Run cleanup before returning.
3568 2011-05-11 Tom Tromey <tromey@redhat.com>
3570 * dwarf2read.c (handle_data_member_location): New function.
3571 (dwarf2_add_field): Use it.
3572 (read_common_block): Likewise.
3574 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 Make addrs->SECTINDEX always defined.
3577 * symfile.c (relative_addr_info_to_section_offsets): Check for
3578 SECTINDEX -1, not for zero ADDR.
3579 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3580 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3581 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3584 2011-05-10 Doug Evans <dje@google.com>
3586 * linux-thread-db.c: Whitespace cleanup.
3587 (try_thread_db_load_1): Fix comment.
3589 * linux-thread-db.c (set_libthread_db_search_path): New function.
3590 (_initialize_thread_db): Add setter for libthread-db-search-path.
3592 2011-05-09 Doug Evans <dje@google.com>
3594 * NEWS: Mention --with-iconv-bin.
3595 * configure.ac: New option --with-iconv-bin.
3596 * configure: Regenerate.
3597 * config.in: Regenerate.
3598 * defs.h (relocate_gdb_directory): Declare.
3599 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3600 removed progname parameter, and exported. All callers updated.
3601 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3603 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3604 adding missing call to restore_child_signals_mask.
3606 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3608 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3610 * infrun.c (proceed, start_remote): Adjust.
3611 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3612 and adjust to not handle it.
3613 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3614 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3615 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3616 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3617 * windows-nat.c (do_initial_windows_stuff): Adjust.
3618 * infcmd.c (attach_command): Adjust.
3619 (notice_new_inferior): Adjust.
3621 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3623 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3624 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3625 * spu-tdep.c (op_selb): Use correct value.
3627 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3629 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3630 "parent" parameter to symbol_file_add_from_bfd call.
3632 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3633 Thiago Jung Bauermann <bauerman@br.ibm.com>
3635 Implement support for PowerPC BookE masked watchpoints.
3636 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3638 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3639 method. Initialize to NULL in all existing breakpoint_ops instances.
3640 (struct breakpoint) <hw_wp_mask>: New field.
3641 * breakpoint.c (is_masked_watchpoint): Add prototype.
3642 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3643 breakpoint's breakpoint_ops.works_in_software_mode if available.
3644 (watchpoints_triggered): Handle the case of a hardware masked
3646 (watchpoint_check): Likewise.
3647 (works_in_software_mode_watchpoint): New function.
3648 (insert_masked_watchpoint, remove_masked_watchpoint)
3649 (resources_needed_masked_watchpoint)
3650 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3651 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3652 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3654 (masked_watchpoint_breakpoint_ops): New structure.
3655 (watch_command_1): Check for the existence of the `mask' parameter.
3656 Set b->ops according to the type of hardware watchpoint being created.
3657 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3658 (ppc_linux_remove_mask_watchpoint)
3659 (ppc_linux_masked_watch_num_registers): New functions.
3660 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3661 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3662 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3663 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3664 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3665 (target_masked_watch_num_registers): New functions.
3666 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3667 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3669 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3670 (target_masked_watch_num_registers): Add prototypes.
3672 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3675 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3676 (producer_is_gcc_ge_4_0): New function.
3677 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3678 symtab->language code.
3679 (var_decode_location): Set cu->has_loclist.
3680 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3681 skip. Intialize force_skip from locations_valid. Move the prologue
3682 skipping code into two passes.
3683 * symtab.h (struct symtab): Make the primary field a bitfield. New
3684 field locations_valid.
3686 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3688 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3689 (classify_inner_name): Call cp_lookup_nested_type with
3691 * cp-namespace.c (cp_lookup_nested_type): New variable
3692 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3693 type_name_no_tag_or_error with saved_parent_type.
3694 * dwarf2read.c (load_partial_dies): Read in any children of
3695 DW_TAG_typedef with complaint in such case.
3696 * gdbtypes.c (type_name_no_tag_or_error): New function.
3697 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3698 * valops.c (destructor_name_p): New comment for parameter type. Remove
3699 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3700 * value.h (destructor_name_p): Remove type const.
3702 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3704 * symtab.c (compare_symbol_name): New function.
3705 (completion_list_add_name, expand_partial_symbol_name): Call it,
3706 remove the variable ncmp.
3707 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3710 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3712 Demote to sw watchpoint only in update_watchpoint.
3713 * breakpoint.c (update_watchpoint): Change between software and
3714 hardware watchpoint for all kinds of watchpoints, not just
3715 read/write ones. Determine b->exact value here instead of
3716 in watch_command_1. Error out if there are not enough resources
3717 for a read or access hardware watchpoint.
3718 (watch_command_1): Remove logic of checking whether there are
3719 enough resources available, since update_watchpoint will do that
3720 work now. Don't set b->exact here. Catch exceptions thrown by
3721 update_watchpoint and delete the watchpoint.
3722 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3723 Use target_exact_watchpoints instead.
3724 (delete_breakpoint): Notify observers only if deleted watchpoint
3725 has a breakpoint number assigned to it.
3727 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3729 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3731 2011-05-05 Jerome Guitton <guitton@adacore.com>
3733 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3735 (i386_stack_tramp_frame_unwind): New static global.
3736 (i386_match_pattern): New function, extracted from i386_match_insn.
3737 (i386_match_insn): Use i386_match_pattern.
3738 (i386_match_insn_block): New function.
3739 (i386_tramp_chain_in_reg_insns)
3740 (i386_tramp_chain_on_stack_insns): New static variables.
3741 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3744 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3746 * configure.host (xscale*): Don't handle target.
3747 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3750 2011-05-04 Yao Qi <yao@codesourcery.com>
3752 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3754 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3757 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3758 | * elfread.c (elf_symtab_read): Stop memory leak.
3760 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3762 * nto-tdep.c (nto_target): Replace deprecated call to
3763 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3765 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3767 Fix false GCC warning.
3768 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3770 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3772 * breakpoint.c (update_watchpoint): Move code to change
3773 the enable state of breakpoint from here ...
3774 (do_enable_breakpoint): ... to here.
3776 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3778 * valprint.c (val_print_array_elements): Fixed poor performance
3779 of printing very large arrays with repeat_count_threshold set
3780 to unlimited. New comment.
3782 2011-04-29 Tom Tromey <tromey@redhat.com>
3784 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3785 (mi_parse): Likewise.
3786 * breakpoint.c (break_range_command): Use sizeof char*, not
3788 (create_breakpoint): Likewise.
3789 (parse_breakpoint_sals): Likewise.
3791 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3793 * linux-nat.c (linux_child_remove_fork_catchpoint)
3794 (linux_child_remove_vfork_catchpoint)
3795 (linux_child_remove_exec_catchpoint): New functions.
3796 (linux_target_install_ops): Install them.
3798 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3802 * varobj.c (install_default_visualizer): Do not install a
3803 visualizer if the varobj is CPLUS_FAKE_CHILD.
3804 (construct_visualizer): Likewise.
3806 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3808 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3809 case insensitive comparison.
3811 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3813 * infrun.c (proceed): Revert previous change.
3814 (resume): Instead, handle the case of signal delivery while stepping
3815 off a breakpoint location here, and only if software single-stepping
3816 is used. Handle nested signals.
3818 2011-04-28 Yao Qi <yao@codesourcery.com>
3820 * arm-tdep.c (copy_unmodified): Rename to ...
3821 (arm_copy_unmodified): .. this. New.
3822 (copy_preload): Move common part to ...
3823 (install_preload): .. this. New.
3824 (arm_copy_preload): New.
3825 (copy_preload_reg): Move common part to ...
3826 (install_preload_reg): ... this. New.
3827 (arm_copy_preload_reg): New.
3828 (copy_b_bl_blx): Move common part to ...
3829 (install_b_bl_blx): .. this. New.
3830 (arm_copy_b_bl_blx): New.
3831 (copy_bx_blx_reg): Move common part to ...
3832 (install_bx_blx_reg): ... this. New.
3833 (arm_copy_bx_blx_reg): New.
3834 (copy_alu_reg): Move common part to ...
3835 (install_alu_reg): ... this. New.
3836 (arm_copy_alu_reg): New.
3837 (copy_alu_shifted_reg): Move common part to ...
3838 (install_alu_shifted_reg): ... this. New.
3839 (copy_ldr_str_ldrb_strb): Move common part to ...
3840 (install_ldr_str_ldrb_strb): ... this. New.
3841 (arm_copy_ldr_str_ldrb_strb): New.
3842 (copy_copro_load_store): Move some common part to ...
3843 (install_copy_copro_load_store): ... this. New.
3844 (arm_copy_copro_load_store): New.
3846 (arm_copy_svc): Renamed from copy_svc.
3847 (copy_undef): Delete.
3848 (arm_copy_undef): Renamed from copy_undef.
3849 (decode_ext_reg_ld_st): Delete.
3850 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3851 (decode_svc_copro): Delete.
3852 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3853 (copy_copro_load_store, copy_alu_imm): update callers.
3854 (copy_extra_ld_st, copy_block_xfer): Likewise.
3855 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3856 (decode_miscellaneous, decode_dp_misc): Likewise.
3857 (decode_ld_st_word_ubyte, decode_media): Likewise.
3858 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3859 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3860 (decode_unconditional, decode_miscellaneous): Likewise.
3861 (decode_media, decode_b_bl_ldmstm): Likewise.
3862 (arm_process_displaced_insn): Likewise..
3863 (decode_misc_memhint_neon): Delete.
3864 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3865 (decode_miscellaneous): Delete.
3866 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3867 (decode_dp_misc): Delete.
3868 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3869 (decode_ld_st_word_ubyte): Delete.
3870 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3871 (decode_media): Delete.
3872 (arm_decode_media): Renamed from decode_media.
3873 (decode_b_bl_ldmstm): Delete.
3874 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3875 (decode_ext_reg_ld_st): Delete.
3876 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3877 (decode_unconditional): Delete.
3878 (arm_decode_unconditional): Renamed from decode_unconditional.
3880 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 Case insensitive lookups implementation.
3883 * dwarf2read.c: Include ctype.h.
3884 (struct mapped_index): New field version.
3885 (mapped_index_string_hash): New parameter index_version. New comment
3886 for it. Call tolower appropriately.
3887 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3888 Choose the right index version for mapped_index_string_hash.
3889 (dwarf2_read_index): Support also the index version 5. Initialize the
3890 new struct mapped_index field version.
3891 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3892 (find_slot): Explain the version needs. Pass INT_MAX for the new
3894 (write_psymtabs_to_index): Produce version 5.
3895 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3896 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3897 * psymtab.c (lookup_partial_symbol): Find the
3898 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3900 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3902 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3903 (completion_list_add_name): New variable ncmp, initialize it, use it.
3904 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3905 * utils.c (strcmp_iw): Support case_sensitive_off.
3906 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3907 New function comment part. New variables saved_string1,
3908 saved_string2 and case_pass. Add a proper second pass.
3910 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3912 Replace re_comp/re_exec by regcomp/regexec.
3913 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3914 (search_symbols_name_matches): Use them, use regexec.
3915 (search_symbols): New variable retval_chain, adjust the use of
3916 old_chain against it. Replace re_comp by regcomp. Use the new struct
3917 search_symbols_data fields, use regexec instead of re_exec.
3919 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3921 Format the code for the next patch.
3922 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3923 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3924 New variables c1 and c2.
3926 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3928 * infrun.c (proceed): Do not single-step into signal delivery
3929 when stepping off a breakpoint location.
3930 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3931 (insert_step_resume_breakpoint_at_caller): Likewise.
3932 (insert_step_resume_breakpoint_at_sal): Likewise.
3933 (insert_longjmp_resume_breakpoint): Likewise.
3935 2011-04-27 Yao Qi <yao@codesourcery.com>
3937 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3939 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3941 * procfs.c (procfs_pass_signals): Fix advance declaration.
3943 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3945 * target.h (struct target_ops): Remove to_notice_signals;
3946 add to_pass_signals.
3947 (target_notice_signals): Remove.
3948 (target_pass_signals): Add prototype.
3949 * target.c (update_current_target): Remove to_notice_signals;
3950 mention to_pass_signals.
3951 (target_pass_signals): New function.
3952 (debug_to_notice_signals): Remove.
3953 (setup_target_debug): Do not install debug_to_notice_signals.
3955 * infrun.c (signal_pass): New global.
3956 (resume): Call target_pass_signals.
3957 (handle_inferior_event): Report all signals while stepping over
3958 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3959 are re-inserted when stepping over a signal handler.
3960 (signal_cache_update): New function.
3961 (signal_stop_update): Call it.
3962 (signal_print_update): Likewise.
3963 (signal_pass_update): Likewise.
3964 (handle_command): Call signal_cache_update and target_pass_signals
3965 instead of target_notice_signals.
3966 (_initialize_infrun): Initialize signal_pass.
3968 * linux-nat.c (pass_mask): New global.
3969 (linux_nat_pass_signals): New function.
3970 (linux_nat_create_inferior): Report all signals initially.
3971 (linux_nat_attach): Likewise.
3972 (linux_nat_resume): Use pass_mask to decide whether to directly
3973 handle an inferior signal.
3974 (linux_nat_wait_1): Likewise.
3975 (linux_nat_add_target): Install to_pass_signals callback.
3977 * nto-procfs.c (notice_signals): Remove.
3978 (procfs_resume): Do not call notice_signals.
3979 (procfs_notice_signals): Remove.
3980 (procfs_pass_signals): New function.
3981 (init_procfs_ops): Install to_pass_signals callback instead of
3982 to_notice_signals callback.
3983 (_initialize_procfs): Report all signals initially.
3985 * procfs.c (procfs_notice_signals): Remove.
3986 (procfs_pass_signals): New function.
3987 (procfs_target): Install to_pass_signals callback instead of
3988 to_notice_signals callback.
3989 (register_gdb_signals): Remove.
3990 (procfs_debug_inferior): Report all signals initially.
3991 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3993 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3994 parameters; use them instead of calling signal_..._state routines.
3995 (remote_notice_signals): Remove.
3996 (remote_start_remote): Report all signals initially.
3997 (remote_resume): Do not call remote_pass_signals.
3998 (_initialize_remote): Install to_pass_signals callback instead of
3999 to_notice_signals callback.
4001 2011-04-27 Pedro Alves <pedro@codesourcery.com>
4003 * breakpoint.c (user_settable_breakpoint): Delete.
4004 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4005 (delete_command): Check user_breakpoint_p instead of looking at
4006 the breakpoint's type.
4007 (disable_command): Ditto.
4008 (enable_command): Ditto.
4009 (delete_trace_command): Use user_breakpoint_p instead of looking
4010 at the breakpoint number directly. When checking if there are
4011 user visible tracepoints, in order to know whether to ask the user
4012 for confirmation, check whether the breakpoint is actually a
4015 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4017 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4020 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4022 MI breakpoint notifications.
4024 * annotate.c (breakpoint_changed): Adjust parameter type.
4025 * breakpoint.c (set_breakpoint_condition): Adjust to change
4026 in breakpoint_modified type.
4027 (breakpoint_set_commands): Likewise.
4028 (do_map_commands_command): Likewise.
4029 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4030 changed after bumping hit count.
4031 (bpstat_stop_status): Likewise.
4032 (print_one_breakpoint_location): Don't wrap in tuple here.
4033 (print_one_breakpoint): Always print individual locations.
4034 For locations, use unnamed tuple.
4035 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4037 (create_catchpoint, create_syscall_event_catchpoint): Call
4038 breakpoint_created obsever.
4039 (mention): Don't call breakpoint_created observer.
4040 (create_breakpoint_sal): Call breakpoint_created observer.
4041 (create_breakpoint, watch_command_1): Likewise.
4042 (create_ada_exception_breakpoint): Likewise.
4043 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4044 (locations_are_equal): New.
4045 (update_breakpoint_locations): If locations were changed, notify.
4046 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4047 Call breakpoint_modified observer.
4049 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4050 (mi_cmd_break_insert): Don't set observers for modify and delete.
4051 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4052 (mi_breakpoint_created, mi_breakpoint_deleted)
4053 (mi_breakpoint_modified): New.
4054 (mi_interpreter_init): Hook the above.
4055 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4056 while -break-* commands are executing.
4057 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4058 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4060 (mi_ui_out_impl): Hook in mi_redirect.
4061 (mi_field_skip): True to the name, skip the field, don't output
4062 a field with an empty value.
4064 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4065 (gdbpy_breakpoint_deleted): Adjust.
4066 * tui/tui-hooks.c (tui_event_create_breakpoint)
4067 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
4069 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4071 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4072 (procfs_remove_hw_watchpoint): Likewise.
4074 2011-04-26 Michael Walle <michael@walle.cc>
4076 * remote.c (remote_start_remote): Ack packet after sending the
4079 2011-04-26 Yao Qi <yao@codesourcery.com>
4081 * linux-nat.c: Move common macros to ...
4082 Include linux-ptrace.h.
4083 * common/linux-ptrace.h: ... here. New.
4085 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4087 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4088 !objfile_has_partial_symbols. New comment.
4089 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4090 SYM_READ_PSYMBOLS is not present. Extend the comment.
4091 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4093 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4095 * defs.h (ENUM_BITFIELD): Remove.
4097 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4098 Eli Zaretskii <eliz@gnu.org>
4100 * NEWS: Document the new gdbserver --once option.
4102 2011-04-21 Jie Zhang <jzhang918@gmail.com>
4104 * MAINTAINERS: Update my email address.
4106 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4108 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4109 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4110 function call if __STDC_ISO_10646__ macro is defined.
4111 (intermediate_encoding): New prototype.
4112 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4113 to generate compile time error for unsupported gdb_wchar_t size.
4114 (ENDIAN_SUFFIX): New macro.
4115 (intermediate_encoding): New function.
4117 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4119 * ada-lang.c (struct add_partial_datum): Update the comment for
4120 expand_partial_symbol_name.
4121 (ada_add_partial_symbol_completions): Rename to ...
4122 (ada_expand_partial_symbol_name): ... here, change return type, update
4123 function comment, call symbol_completion_match instead of
4124 symbol_completion_add.
4125 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4126 and ada_expand_partial_symbol_name.
4127 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4129 (dw2_map_symbol_names): Remove.
4130 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4131 * psymtab.c (map_symbol_names_psymtab): Remove.
4132 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4133 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4135 (psym_functions): Unlist map_symbol_names_psymtab.
4136 (map_partial_symbol_names): Rename to ...
4137 (expand_partial_symbol_names): ... here, change the FUN type, call
4138 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4139 * psymtab.h (map_partial_symbol_names): Rename to ...
4140 (expand_partial_symbol_names): ... here, change the FUN type.
4141 * symfile.h (struct quick_symbol_functions): Update the description of
4142 expand_symtabs_matching. Remove map_symbol_names.
4143 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4144 (struct add_name_data): Update the comment for
4145 expand_partial_symbol_name.
4146 (add_partial_symbol_name): Rename to ...
4147 (expand_partial_symbol_name): ... here. Replace
4148 completion_list_add_name call by strncmp.
4149 (default_make_symbol_completion_list_break_on): Use now
4150 expand_partial_symbol_names and expand_partial_symbol_name.
4151 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4153 2011-04-20 Tom Tromey <tromey@redhat.com>
4155 * dwarf2read.c (save_gdb_index_command): Replace format
4156 documentation with a pointer to the manual.
4158 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4160 * regcache.c: Include remote.h.
4161 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4162 (regcache_dump): Handle regcache_dump_remote.
4163 (maintenance_print_remote_registers): New function.
4164 (_initialize_regcache): Install "maint print remote-registers"
4166 * remote.c (map_regcache_remote_table): New function, factored out
4168 (init_remote_state): ... here.
4169 (remote_register_number_and_offset): New.
4170 * remote.h (remote_register_number_and_offset): Declare.
4172 2011-04-20 Pedro Alves <pedro@codesourcery.com>
4174 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4175 null_ptid, assume and allow a NULL address space, instead of
4176 asking the target for the ptid's address space.
4177 * infrun.c (ptid_is_pid): Remove assertion.
4179 2011-04-19 Tom Tromey <tromey@redhat.com>
4181 * windows-tdep.c (windows_xfer_shared_library):
4182 * windows-nat.c (get_module_name, windows_make_so):
4183 * v850-tdep.c (v850_handle_pushm):
4184 * utils.c (null_cleanup, gdb_realpath):
4185 * ui-out.c (get_next_header):
4186 * tracepoint.c (clear_traceframe_info):
4187 * symtab.c (lookup_symtab):
4188 * serial.h (struct serial_ops):
4189 * mipsread.c (read_alphacoff_dynamic_symtab):
4190 * infcmd.c (print_return_value):
4191 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4192 * f-exp.y (parse_number):
4193 * exceptions.c (catch_exceptions):
4194 * dummy-frame.c (dummy_frame_this_id):
4195 * defs.h (struct cleanup):
4196 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4197 * arm-tdep.c (arm_push_dummy_call):
4198 * amd64-tdep.h (amd64_collect_xsave):
4199 * amd64-tdep.c (amd64_collect_xsave):
4200 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4201 * README (typing): Remove duplicate words.
4202 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4203 * infrun.c (siginfo_value_read): Fix typo.
4204 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4205 * top.c (source_line_number): Add comma.
4207 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4209 * thread.c (any_live_thread_of_process): Prioritize threads
4210 that are not executing.
4211 * gdbthread.h (any_live_thread_of_process): Update comment
4212 as per above change.
4214 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4216 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4217 (scan_xcoff_symtab): Likewise.
4219 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4221 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4224 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4225 Pedro Alves <pedro@codesourcery.com>
4227 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4228 variables to simplify code and avoid == operator at end of
4229 line as this is against GNU coding standards.
4231 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4233 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4234 lm_name to name_lm to avoid conflict with lm_name function.
4236 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4238 ARI fixes: Use only lowercase function name for static functions.
4239 * nto-tdep.c (LM_ADDR): Rename to...
4240 (lm_addr): New function name.
4241 (nto_relocate_section_addresses): Adapt to change above.
4242 * solib-sunos.c (LM_ADDR): Rename to...
4243 (lm_addr): New function name.
4244 (LM_NEXT): Rename to...
4245 (lm_next): New function name.
4246 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4247 function name changes above.
4248 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4249 (lm_addr_from_link_map): New function name.
4250 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4251 (has_lm_dynamic_from_link_map): New function name.
4252 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4253 (lm_dynamic_from_link_map): New function name.
4254 (LM_ADDR_CHECK): Rename to...
4255 (lm_addr_check): New function name.
4256 (LM_NEXT): Rename to...
4257 (lm_next): New function name.
4258 (LM_PREV): Rename to...
4259 (lm_prev): New function name.
4260 (LM_NAME): Rename to...
4261 (lm_name): New function name.
4262 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4263 (ignore_first_link_map_entry): New function name.
4264 (svr4_keep_data_in_core): Adapt to function name changes above.
4265 (svr4_current_sos): Likewise.
4266 (enable_break): Likewise.
4267 (svr4_relocate_section_addresses): Likewise.
4269 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4272 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4273 sprintf. Simplify code and avoid loosing memory.
4274 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4275 (call0_frame_cache): Remove && operator from end of line.
4277 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4279 Fix libraries displacement if they change whether they were prelinked.
4280 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4281 does not match. Comment why.
4283 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4285 * corelow.c: Include wrapper.h.
4286 (core_open): Call now gdb_target_find_new_threads.
4287 * wrapper.c: Include target.h.
4288 (gdb_target_find_new_threads): New.
4289 * wrapper.h (gdb_target_find_new_threads): New declaration.
4291 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4293 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4294 even if !TARGET_HAS_EXECUTION.
4296 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4298 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4299 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4300 bfd_get_synthetic_symtab.
4301 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4302 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4303 parameter parent, remove the call to add_separate_debug_objfile.
4304 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4305 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4306 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4307 parent, new comment for it, call add_separate_debug_objfile for it.
4308 (symbol_file_add_separate): Pass objfile as the parameter parent,
4309 remove the call to add_separate_debug_objfile.
4310 (symbol_file_add_from_bfd): New parameter parent, pass it.
4311 (symbol_file_add): Pass NULL to the new parameter parent.
4312 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4314 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4319 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4321 Fix Python access to inlined frames.
4322 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4323 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4325 2011-04-15 Tom Tromey <tromey@redhat.com>
4327 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4329 2011-04-15 Gary Benson <gbenson@redhat.com>
4331 * MAINTAINERS: Add myself to write-after-approval section.
4333 2011-04-14 Mike Frysinger <vapier@gentoo.org>
4335 * remote-sim.c (sim_command_completer): New function.
4336 (_initialize_remote_sim): Set completer to sim_command_completer.
4338 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4340 * breakpoint.c (print_exception_catchpoint): Rename to ...
4341 (print_it_exception_catchpoint): ... this.
4342 (gnu_v3_exception_catchpoint_ops): Update with new name
4343 for print_it_exception_catchpoint.
4345 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4347 * MAINTAINERS: Add myself for write after approval privileges.
4349 2011-04-13 Marek Polacek <mpolacek@redhat.com>
4351 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4353 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4355 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4357 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4359 * breakpoint.c (save_breakpoints): Verify whether
4360 breakpoint_ops.print_recreate is defined before calling it.
4362 2011-04-11 Gary Benson <gbenson@redhat.com>
4364 Fix failure with --enable-maintainer-mode.
4365 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4367 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 * symtab.c (search_symbols): Reorder the KIND description in the
4371 function comment. Remove the unused 4th element of types, types2,
4372 types3 and types4. New gdb_assert on KIND.
4373 (symtab_symbol_info): Remove the unused 4th element of classnames.
4374 New gdb_assert on KIND.
4375 * symtab.h (enum search_domain): New warning in the enum comment.
4376 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4379 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4381 Fix crash of gdb save-index on a STABS file.
4382 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4385 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4388 * dwarf2read.c: Include ctype.h.
4389 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4391 (dwarf2_add_field): Fix new_field->accessibility by calling
4392 dwarf2_default_access_attribute. Restructure setting accessibility
4394 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4395 is_private and is_protected by calling
4396 dwarf2_default_access_attribute.
4398 2011-04-08 Kevin Buettner <kevinb@redhat.com>
4400 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4401 to the initialization.
4403 2011-04-08 Steve Ellcey <sje@cup.hp.com>
4405 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4408 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4410 Remove support for old Cygwin 1.5 versions.
4411 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4412 function on old Cygwin version.
4413 * windows-nat.c: Remove cygwin version check and always define
4414 __USEWIDE for Cygwin compilation.
4416 2011-04-07 Yao Qi <yao@codesourcery.com>
4418 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4420 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4421 (arm_copy_svc): Remove parameters INSN and TO.
4422 (decode_svc_copro): Update caller.
4423 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4424 from function pointer `copy_svc_os'.
4426 2011-04-07 Yao Qi <yao@codesourcery.com>
4428 * arm-tdep.c (cleanup_branch): Set a correct return address in
4429 LR for ARM and Thumb.
4431 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4435 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4436 in the function comment, a new note on values compatibility.
4437 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4438 * symtab.h (SYMBOL_HASH_NEXT): New.
4440 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4442 * ppc-linux-nat.c (check_condition): Add len output parameter.
4443 Set it based on the memory region referenced in the condition
4444 expression. Update all callers.
4446 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4448 Fix crash regression on systems featuring .gdb_index.
4449 * objfiles.c (free_objfile): Move the
4450 forget_cached_source_info_for_objfile call earlier. Comment it.
4451 Extend the comment for objfile_free_data.
4453 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4455 Fix regression of displaying the debug format.
4456 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4459 2011-04-04 Tom Tromey <tromey@redhat.com>
4461 * cli/cli-interp.c (struct captured_execute_command_args):
4463 (do_captured_execute_command): Remove.
4464 (safe_execute_command): Use TRY_CATCH.
4465 * cli/cli-script.c (struct wrapped_read_command_file_args):
4467 (wrapped_read_command_file): Remove.
4468 (script_from_file): Use TRY_CATCH.
4469 * exceptions.c (catch_exception): Remove.
4470 * exceptions.h (catch_exception): Remove.
4471 (deprecated_throw_reason): Update comment.
4472 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4473 argument to 'context'.
4474 (mi_execute_command): Use TRY_CATCH.
4475 * remote.c (struct start_remote_args): Remove.
4476 (remote_start_remote): Update; change arguments.
4477 (remote_open_1): Use TRY_CATCH.
4479 2011-04-04 Tom Tromey <tromey@redhat.com>
4481 * tracepoint.c (scope_info): Update.
4482 * symtab.c (decode_line_spec): Update.
4483 * python/python.c (gdbpy_decode_line): Update.
4484 * linespec.h (decode_line_1): Update.
4485 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4486 (decode_compound, find_method, symtab_from_filename)
4487 (decode_variable): Likewise.
4488 * cli/cli-cmds.c (edit_command): Update.
4489 (list_command): Update.
4490 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4492 (create_breakpoint): Update.
4493 (until_break_command): Update.
4494 (addr_string_to_sals): Update.
4495 (decode_line_spec_1): Update.
4497 2011-04-04 Tom Tromey <tromey@redhat.com>
4499 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4500 (do_captured_parse_breakpoint): Remove.
4501 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4502 Use TRY_CATCH directly.
4504 2011-04-04 Tom Tromey <tromey@redhat.com>
4506 * symtab.h (free_symtab): Remove.
4507 (forget_cached_source_info_for_objfile): Declare.
4508 * symmisc.c (free_symtab): Remove.
4509 * source.c (forget_cached_source_info_for_objfile): New function.
4510 (forget_cached_source_info): Use it.
4511 * objfiles.c (free_objfile): Simplify check before calling
4512 clear_current_source_symtab_and_line. Call
4513 forget_cached_source_info_for_objfile.
4515 2011-04-04 Tom Tromey <tromey@redhat.com>
4517 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4518 (new_symtab): Don't set `free_code' on symtab.
4519 (new_linetable): Properly handle size==0.
4520 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4521 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4523 * jv-lang.c (struct jv_per_objfile_data): New.
4524 (jv_per_objfile_free): Free the data.
4525 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4526 (get_java_class_symtab): Set the `dict' field on the
4527 jv_per_objfile_data.
4528 (free_class_block): Remove.
4529 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4532 2011-04-04 Tom Tromey <tromey@redhat.com>
4534 * symfile.c (reread_symbols): Update.
4535 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4537 * objfiles.c (allocate_objfile): Update.
4538 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4540 * cp-namespace.c (lookup_symbol_file): Don't call
4541 lookup_possible_namespace_symbol.
4542 (initialize_namespace_symtab, get_possible_namespace_block)
4543 (free_namespace_block, cp_check_possible_namespace_symbols)
4544 (check_possible_namespace_symbols_loop)
4545 (check_one_possible_namespace_symbol)
4546 (lookup_possible_namespace_symbol): Remove.
4547 (maintenance_cplus_namespace): Replace with notice.
4548 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4550 2011-04-04 Tom Tromey <tromey@redhat.com>
4552 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4553 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4554 * symmisc.c (free_symtab): Don't free debugformat.
4555 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4556 (record_debugformat, record_producer): Document.
4557 * buildsym.c (end_symtab): Don't save debugformat and producer
4559 (end_symtab): Don't free debugformat and producer fields.
4560 (record_debugformat): Don't call xstrdup.
4561 (record_producer): Likewise.
4563 2011-04-04 Tom Tromey <tromey@redhat.com>
4565 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4566 (source_line_charpos, source_charpos_line): Remove.
4568 2011-04-04 Tom Tromey <tromey@redhat.com>
4570 * symtab.h (domain_enum): Split in two...
4571 (enum search_domain): New.
4572 (search_symbols): Update.
4573 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4574 redundant declarations.
4575 (search_symbols): Change 'kind' argument to search_domain.
4577 (print_symbol_info): Likewise.
4578 (symtab_symbol_info): Likewise.
4579 * symfile.h (struct quick_symbol_functions)
4580 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4581 <expand_symtabs_matching>: Likewise.
4582 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4583 (expand_symtabs_matching_via_partial): Update.
4584 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4585 (dw2_expand_symtabs_for_function): Update.
4586 * block.h: Moved anonymous enum...
4587 * defs.h (enum block_enum): ... here. Now named.
4589 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4591 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4592 * version.in: Bump version to 7.3.50.20110403-cvs.
4594 2011-04-03 Joel Brobecker <brobecker@adacore.com>
4596 * NEWS: Create a new section for the next release branch.
4597 Rename the section of the current branch, now that it has
4600 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4602 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4603 for "fpscr" in target description.
4605 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4607 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4608 initialize it. Delay HASH initialization. Strip the part after open
4609 parenthesis for languages with qualifiers. Call do_cleanups.
4611 2011-04-01 Tom Tromey <tromey@redhat.com>
4613 * utils.c (report_command_stats): Don't print `-' for negative
4616 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4618 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4619 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4622 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4624 * breakpoint.h (bpdisp_text): Add declaration.
4625 * breakpoint.c (bpdisp_text): Make non-static.
4626 * ada-lang.c: #include "mi/mi-common.h".
4627 (print_it_exception): Rewrite to improve GDB/MI output.
4629 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4631 * arm-tdep.h (struct address_space): Add forward declaration.
4633 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4635 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4636 * arm-tdep.c (arm_override_mode): New global.
4637 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4638 execution mode heuristics.
4639 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4640 second single-step breakpoint if needed, using
4641 arm_insert_single_step_breakpoint.
4642 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4643 ARM execution mode, do not call thumb_get_next_pc_raw.
4644 (arm_get_next_pc): Encode execution mode in return value. Call
4645 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4646 (arm_insert_single_step_breakpoint): New function.
4647 (arm_software_single_step): Call it.
4648 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4649 argument to return execution mode of sigreturn target.
4650 (arm_linux_syscall_next_pc): Use it.
4651 (arm_linux_copy_svc): Update call.
4652 (arm_linux_software_single_step): Call
4653 arm_insert_single_step_breakpoint.
4655 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4657 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4660 2011-03-31 Tom Tromey <tromey@redhat.com>
4662 * varobj.c (update_dynamic_varobj_children): Properly handle
4663 errors from iterator.
4665 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4667 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4668 struct linkage name twice.
4670 2011-03-31 Tom Tromey <tromey@redhat.com>
4672 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4673 missing ">" to message.
4675 2011-03-31 Tom Tromey <tromey@redhat.com>
4677 * varobj.c (instantiate_pretty_printer): Remove duplicate
4680 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4682 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4683 if neither saved value nor register available (e.g. signal frame).
4685 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4687 * macroexp.c (expand): Avoid uninitialized variable
4690 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4692 * breakpoint.c (break_range_command): Fix typo in comment.
4694 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4695 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4697 Implement support for PowerPC BookE ranged breakpoints.
4698 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4699 * breakpoint.h (struct bp_target_info) <length>: New member
4701 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4702 instead of struct breakpoint as argument, and also add ASPACE
4703 and BP_ADDR arguments. Update all callers.
4704 (struct breakpoint_ops) <print_one_detail>: New method.
4705 (struct breakpoint) <addr_string_range_end>: New member variable.
4706 * breakpoint.c (breakpoint_location_address_match): Add function
4708 (insert_bp_location): Set bl->target_info.length.
4709 (breakpoint_here_p): Call breakpoint_location_address_match.
4710 (moribund_breakpoint_here_p): Likewise.
4711 (regular_breakpoint_inserted_here_p): Likewise.
4712 (breakpoint_thread_match): Likewise.
4713 (bpstat_stop_status): Likewise.
4714 (bpstat_check_location): Move call to
4715 breakpoint_ops.breakpoint_hit to the top.
4716 (print_one_breakpoint_location): Call
4717 breakpoint_ops.print_one_detail if available.
4718 (breakpoint_address_match_range): New function.
4719 (breakpoint_location_address_match): Likewise.
4720 (breakpoint_locations_match): Compare the length field of the
4722 (hw_breakpoint_used_count): Count resources used by all locations
4723 in a breakpoint, and use breakpoint_ops.resources_needed if
4725 (breakpoint_hit_ranged_breakpoint): New function.
4726 (resources_needed_ranged_breakpoint): Likewise.
4727 (print_it_ranged_breakpoint): Likewise.
4728 (print_one_ranged_breakpoint): Likewise.
4729 (print_one_detail_ranged_breakpoint): Likewise.
4730 (print_mention_ranged_breakpoint): Likewise.
4731 (print_recreate_ranged_breakpoint): Likewise.
4732 (ranged_breakpoint_ops): New structure.
4733 (find_breakpoint_range_end): New function.
4734 (break_range_command): Likewise.
4735 (delete_breakpoint): Free addr_string_range_end.
4736 (update_breakpoint_locations): Add SALS_END argument. Update
4737 all callers. Calculate breakpoint length if a non-zero SALS_END
4738 is given. Call breakpoint_locations_match instead of
4739 breakpoint_address_match.
4740 (reset_breakpoint): Find SaL of the end of the range if B is a
4742 (_initialize_breakpoint): Register break-range command.
4743 * defs.h (print_core_address): Add function prototype.
4744 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4746 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4747 (ppc_linux_remove_hw_breakpoint): Likewise.
4748 (_initialize_ppc_linux_nat): Initialize
4749 to_ranged_break_num_registers.
4750 * target.c (update_current_target): Add comment about
4751 to_ranged_break_num_registers.
4752 (target_ranged_break_num_registers): New function.
4753 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4755 (target_ranged_break_num_registers): Add function prototype.
4756 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4757 * utils.c (print_core_address): ... here.
4759 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4761 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4762 variable compiler warning.
4764 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4766 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4768 (re_set_breakpoint): ... to here ...
4769 (addr_string_to_sals): ... and here.
4771 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4773 * Makefile.in (SFILES): Add missing C sources.
4774 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4775 Add missing headers.
4777 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4779 * .gitignore: New file.
4781 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4783 * NEWS: Mention new cfi device simulation.
4785 2011-03-29 Tom Tromey <tromey@redhat.com>
4787 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4788 otherwise anonymous types.
4789 (dwarf2_name): Likewise.
4790 * valops.c (value_struct_elt_for_reference): Refine artificial
4791 type logic. Call error if j==-1.
4793 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4795 Fix false GCC warning.
4796 * infcall.c (find_function_addr): Initialize funaddr.
4798 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4800 Fix mingw compilation with --enable-targets=all.
4801 * remote-mips.c (gdb_usleep.h): Include header.
4802 (mips_enter_debug): Use gdb_usleep instead of sleep.
4804 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4806 Support resolution of STT_GNU_IFUNC via breakpoints.
4807 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4808 bp_gnu_ifunc_resolver_return.
4809 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4810 the loop. Support bp_gnu_ifunc_resolver and
4811 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4812 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4814 (bptype_string, print_one_breakpoint_location): Support
4815 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4816 (user_settable_breakpoint): Return true also for
4817 bp_gnu_ifunc_resolver.
4818 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4819 bp_gnu_ifunc_resolver_return.
4820 (set_breakpoint_location_function): New parameter explicit_loc,
4821 describe it. Call find_pc_partial_function_gnu_ifunc with new
4822 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4823 EXPLICIT_LOC is not set.
4824 (set_raw_breakpoint): Set EXPLICIT_LOC for
4825 set_breakpoint_location_function.
4826 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4827 set_breakpoint_location_function.
4828 (mention): Support bp_gnu_ifunc_resolver and
4829 bp_gnu_ifunc_resolver_return.
4830 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4831 set_breakpoint_location_function.
4832 (update_breakpoint_locations): Remove static.
4833 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4834 bp_gnu_ifunc_resolver_return.
4835 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4836 bp_gnu_ifunc_resolver_return.
4837 (update_breakpoint_locations): New declaration.
4838 * elfread.c: Include gdbthread.h and regcache.h.
4839 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4841 (elf_gnu_ifunc_fns): Install them.
4842 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4843 (stub_gnu_ifunc_resolver_return_stop): New functions.
4844 (stub_gnu_ifunc_fns): Install them.
4845 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4846 and gnu_ifunc_resolver_return_stop.
4847 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4849 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4851 STT_GNU_IFUNC reader implementation.
4852 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4853 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4854 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4855 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4856 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4857 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4858 (elf_gnu_ifunc_resolve_addr): New.
4859 (elf_symfile_read): Call elf_rel_plt_read.
4860 (elf_gnu_ifunc_fns): New.
4861 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4862 Install elf_gnu_ifunc_fns.
4863 * infcall.c (find_function_return_type): New function.
4864 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4865 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4866 (stub_gnu_ifunc_resolve_name): New functions.
4867 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4868 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4869 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4871 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 Code cleanup for later STT_GNU_IFUNC support.
4874 * infcall.c (find_function_addr): Remove variable code, use explicit
4875 dereferences for it. Move VALUE_TYPE initialization later.
4877 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4879 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4880 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4881 (clear_pc_function_cache): Clear it.
4882 (find_pc_partial_function): Rename to ...
4883 (find_pc_partial_function_gnu_ifunc): ... this function. New
4884 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4885 (find_pc_partial_function): New wrapper for this function.
4886 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4888 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4890 GDB internal type support for STT_GNU_IFUNC.
4891 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4892 (elf_symtab_read): Set mst_text_gnu_ifunc for
4893 BSF_GNU_INDIRECT_FUNCTION.
4894 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4895 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4896 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4897 nodebug_got_plt_symbol.
4898 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4899 (TYPE_GNU_IFUNC): New.
4900 (struct main_type): New field flag_gnu_ifunc.
4901 (struct builtin_type): New field builtin_func_func.
4902 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4903 nodebug_got_plt_symbol.
4904 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4905 (in_gnu_ifunc_stub): New.
4906 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4908 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4909 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4910 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4912 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4913 * symtab.c (search_symbols): Likewise.
4914 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4915 and mst_slot_got_plt.
4916 (in_gnu_ifunc_stub): New declaration.
4918 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4920 Support a ring of related breakpoints.
4921 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4922 other functions, add gdb_assert.
4923 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4924 watchpoint_del_at_next_stop.
4925 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4926 (bpstat_stop_status): Handle ring in related_breakpoint.
4927 (set_raw_breakpoint_without_location): Initialize ring in
4929 (delete_breakpoint): Handle ring in related_breakpoint, use
4930 watchpoint_del_at_next_stop.
4931 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4933 2011-03-28 Tom Tromey <tromey@redhat.com>
4936 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4937 with `language_minimal'.
4939 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4941 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4942 instead of checking for STT_ARM_TFUNC symbol type.
4944 2011-03-25 Tom Tromey <tromey@redhat.com>
4946 * linespec.c (symbol_found): Restore line-based result for
4947 non-LOC_LABEL symbols.
4949 2011-03-25 Kai Tietz <ktietz@redhat.com>
4951 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4952 instead of strcmp for comparison.
4953 (tui_source_is_displayed): Likewise.
4954 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4956 2011-03-24 Mark Wielaard <mjw@redhat.com>
4958 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4960 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4961 (find_partial_die_in_comp_unit): Likewise in comment.
4962 (read_attribute_value): Likewise.
4963 (lookup_die_type): Likewise.
4964 (dwarf_form_name): Likewise.
4965 (dump_die_shallow): Likewise.
4966 (follow_die_ref_or_sig): Likewise.
4968 2011-03-24 Tom Tromey <tromey@redhat.com>
4970 PR breakpoints/11816:
4971 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4972 (decode_compound): Update.
4973 (find_function_symbol): New function.
4974 (decode_dollar): Update.
4975 (decode_label): Add 'function_symbol' parameter. Handle
4976 function-relative labels.
4977 (decode_variable): Update.
4978 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4979 not its line. Set `special_display' and canonical name for
4982 2011-03-24 Tom Tromey <tromey@redhat.com>
4984 * linespec.h (struct linespec_result) <special_display>: New
4986 * breakpoint.h (struct breakpoint) <display_canonical>: New
4988 * breakpoint.c (print_breakpoint_location): Respect
4990 (create_breakpoint_sal): Add 'display_canonical' parameter.
4991 (create_breakpoints_sal): Update.
4992 (create_breakpoint): Update.
4994 2011-03-24 Tom Tromey <tromey@redhat.com>
4996 * symtab.c (decode_line_spec): Update.
4997 * linespec.c (build_canonical_line_spec): Change type of
4999 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5000 (find_method, decode_all_digits, decode_dollar, decode_label)
5001 (symbol_found): Likewise.
5002 (init_linespec_result): New function.
5003 * breakpoint.c (struct captured_parse_breakpoint_args)
5004 <canonical_p>: New field, replaces addr_string_p.
5005 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5007 (parse_breakpoint_sals): Likewise.
5008 (do_captured_parse_breakpoint): Update.
5009 (create_breakpoint): Use struct linespec_result.
5010 (until_break_command): Update.
5011 (breakpoint_re_set_one): Update.
5012 (decode_line_spec_1): Update.
5013 * linespec.h (struct linespec_result): New.
5014 (init_linespec_result): Declare.
5016 2011-03-23 Pedro Alves <pedro@codesourcery.com>
5018 * regcache.c (regcache_raw_read): If the target didn't supply a
5019 given raw register, mark it as unavailable.
5021 2011-03-23 Kai Tietz <ktietz@redhat.com>
5023 * breakpoint.c (clear_command): Use filename_cmp
5024 instead of strcmp for comparison.
5025 * buildsym.c (watch_main_source_file_lossage): Likewise.
5026 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5027 checking just for slash.
5028 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5029 strrchr and filename_cmp instead of strcmp for filenames.
5030 (add_old_header_file): Use filename_cmp
5031 instead of strcmp for comparison.
5032 * exec.c (exec_set_section_address): Likewise.
5033 * macrotab.c (macro_lookup_inclusion): Likewise.
5034 (macro_lookup_inclusion): Likewise.
5035 * elfread.c (_initialize_elfread): Likewise.
5036 (elfstab_offset_sections): Likewise.
5037 (elfstab_offset_sections): Use lbasename instead of
5039 * mdebugread.c (parse_partial_symbols): Likewise.
5040 (arse_partial_symbols): Use filename_(n)cmp instead of
5041 str(n)cmp for comparison.
5042 * minsyms.c (lookup_minimal_symbol): Likewise.
5043 * psymtab.c (read_psymtabs_with_filename): Likewise.
5044 * solib.c (solib_read_symbols): Likewise.
5045 (reload_shared_libraries_1): Likewise.
5046 * symmisc.c (maintenance_print_symbols): Likewise.
5047 * symfile.c (separate_debug_file_exists): Likewise.
5048 (reread_symbols): Likewise.
5049 (find_separate_debug_file_by_debuglink): Likewise.
5050 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5051 * source.c (add_path): Likewise.
5052 * symtab.c (filename_seen): Likewise.
5053 (file_matches): Likewise.
5054 (print_symbol_info): Likewise.
5055 (maybe_add_partial_symtab_filename): Likewise.
5056 (make_source_files_completion_list): Likewise.
5057 * xml-syscall.c (init_sysinfo): Likewise.
5058 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5059 IS_DIR_SEPARATOR for checking for trailing path separator.
5061 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5063 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5064 label abort_expression.
5065 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5066 DWARF_VALUE_OPTIMIZED_OUT.
5068 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5071 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5072 to linkage_name. Invert its value. Update the function comment.
5073 (c_type_print_varspec_suffix): Invert it at the caller.
5074 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5076 2011-03-22 Pedro Alves <pedro@codesourcery.com>
5078 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5079 errors when reading the `stop_pc'.
5080 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5083 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5085 * NEWS: Document gdb.Write stream keyword.
5087 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5090 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5091 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5092 (dwarf2_add_field): Fix new_field->accessibility for
5093 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5095 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5099 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5100 other error classes. Do not print stack trace.
5102 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5104 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5105 (dwarf2_add_field): Fix new_field->accessibility for
5106 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5108 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5110 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5111 encountering a load via a non-SP register.
5113 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5115 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5116 field in returned unwinder.
5118 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5120 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5122 2012-03-21 Joel Brobecker <brobecker@adacore.com>
5124 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5127 2012-03-18 Pedro Alves <pedro@codesourcery.com>
5129 * frame.c (frame_unwind_register): Throw an error if unwinding the
5131 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5132 an unwind stop reason.
5133 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5134 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5135 UNWIND_UNAVAILABLE>: New.
5136 * inline-frame.c (inline_frame_unwind): Install
5137 default_frame_unwind_stop_reason.
5138 * frame-unwind.c: Include "exceptions.h".
5139 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5140 (default_frame_unwind_stop_reason): New.
5141 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5142 (default_frame_unwind_stop_reason): Declare.
5143 (struct frame_unwind) <stop_reason>: New function pointer.
5145 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5146 * dwarf2-frame.c: Include exceptions.h.
5147 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5148 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5149 computing the CFA. If such an error was thrown, set
5150 unavailable_retaddr.
5151 (dwarf2_frame_unwind_stop_reason): New.
5152 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5154 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5155 (dwarf2_signal_frame_unwind): Ditto.
5157 * amd64-tdep.c: Include "exceptions.h".
5158 (struct amd64_frame_cache): New field "base_p".
5159 (amd64_init_frame_cache): Clear it.
5160 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5161 Avoid reading registers with functions that throw if the register
5162 is not necessary to compute the frame base.
5163 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5164 swallowing NOT_AVAILABLE_ERROR.
5165 (amd64_frame_unwind_stop_reason): New.
5166 (amd64_frame_this_id): Don't build a frame id if the frame base
5168 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5169 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5170 base_p if the frame base was computable.
5171 (amd64_sigtramp_frame_unwind_stop_reason): New.
5172 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5173 frame base was unavailable.
5174 (amd64_sigtramp_frame_unwind): Install
5175 amd64_sigtramp_frame_unwind_stop_reason.
5176 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5177 base_p if the frame base was computable.
5178 (amd64_epilogue_frame_unwind_stop_reason): New.
5179 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5180 frame base was unavailable.
5181 (amd64_epilogue_frame_unwind): Install
5182 amd64_epilogue_frame_unwind_stop_reason.
5183 * i386-tdep.c: Include "exceptions.h".
5184 (struct i386_frame_cache): New field "base_p".
5185 (i386_init_frame_cache): Clear it.
5186 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5187 Avoid reading registers with functions that throw if the register
5188 is not necessary to compute the frame base.
5189 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5190 swallowing NOT_AVAILABLE_ERROR.
5191 (i386_frame_unwind_stop_reason): New.
5192 (i386_frame_this_id): Don't build a frame id if the frame base was
5194 (i386_frame_prev_register): Handle unavailable SP.
5195 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5196 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5197 base_p if the frame base was computable.
5198 (i386_epilogue_frame_unwind_stop_reason): New.
5199 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5200 base was unavailable.
5201 (i386_epilogue_frame_unwind): Install
5202 i386_epilogue_frame_unwind_stop_reason.
5203 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5204 base_p if the frame base was computable.
5205 (i386_sigtramp_frame_unwind_stop_reason): New.
5206 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5207 base was unavailable.
5208 (i386_sigtramp_frame_unwind): Install
5209 i386_sigtramp_frame_unwind_stop_reason.
5210 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5211 type's size, not the register's.
5212 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5214 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5215 default_frame_unwind_stop_reason.
5216 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5217 (alpha_heuristic_frame_unwind): Ditto.
5218 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5219 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5220 * avr-tdep.c (avr_frame_unwind): Ditto.
5221 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5223 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5224 * frv-tdep.c (frv_frame_unwind): Ditto.
5225 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5226 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5227 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5228 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5229 (hppa_stub_frame_unwind): Ditto.
5230 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5231 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5232 (ia64_libunwind_frame_unwind)
5233 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5234 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5235 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5236 * m32c-tdep.c (m32c_unwind): Ditto.
5237 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5238 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5239 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5240 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5241 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5242 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5243 * mep-tdep.c (mep_frame_unwind): Ditto.
5244 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5245 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5246 (mips_stub_frame_unwind): Ditto.
5247 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5248 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5249 * mt-tdep.c (mt_frame_unwind): Ditto.
5250 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5251 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5252 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5253 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5254 (s390_sigtramp_frame_unwind): Ditto.
5255 * score-tdep.c (score_prologue_unwind): Ditto.
5256 * sh-tdep.c (sh_frame_unwind): Ditto.
5257 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5258 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5259 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5260 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5261 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5262 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5263 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5264 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5265 (sparc64obsd_trapframe_unwind): Ditto.
5266 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5267 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5268 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5269 * v850-tdep.c (v850_frame_unwind): Ditto.
5270 * vax-tdep.c (vax_frame_unwind): Ditto.
5271 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5272 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5273 * xtensa-tdep.c (xtensa_unwind): Ditto.
5275 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5277 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5278 there's always a frame. Use get_frame_pc_if_available instead of
5279 get_frame_pc, and if there's no PC available, don't look up a
5282 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5284 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5287 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5289 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5292 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5294 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5295 * frame.c (frame_unwind_caller_pc_if_available): New.
5296 * stack.c (frame_info): Handle unavailable PC.
5298 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5300 * frame.c (frame_unwind_pc): Rename to ...
5301 (frame_unwind_pc_if_available): ... this. New `pc' output
5302 parameter. Change return type to int. Gracefully handle
5303 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5304 happened, or 1 otherwise.
5305 (frame_unwind_pc): Reimplement on top of
5306 frame_unwind_pc_if_available.
5307 (get_frame_func): Rename to ...
5308 (get_frame_func_if_available): New `pc' output parameter. Change
5309 return type to int. Gracefully handle the PC not being available.
5310 (get_frame_func): Reimplement on top of
5311 get_frame_func_if_available.
5312 (select_frame): Handle the PC being unavailable.
5313 (get_prev_frame): Handle the PC being unavailable.
5314 (get_frame_pc_if_available): New.
5315 (get_frame_address_in_block_if_available): New.
5316 (find_frame_sal): Handle the frame PC not being available.
5317 * frame.h (get_frame_pc_if_available): Declare.
5318 (get_frame_address_in_block_if_available): Declare.
5319 (get_frame_func_if_available): Declare.
5320 * stack.c (print_frame_info): Handle the PC being unavailable.
5321 (find_frame_funname): Ditto.
5322 (print_frame): Handle the PC being unavailable.
5323 (get_frame_language): Ditto.
5324 * blockframe.c (get_frame_block): Ditto.
5325 * macroscope.c (default_macro_scope): Ditto.
5326 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5328 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5330 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5331 NOT_AVAILABLE_ERROR when evaluating the location expression.
5333 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5335 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5336 returning that the register piece is unavailable/optimized out.
5337 (write_pieced_value): Handle get_frame_register_bytes returning
5338 that the register piece is unavailable/optimized out when doing a
5339 read-modify write of a bitfield.
5340 * findvar.c (value_from_register): Handle get_frame_register_bytes
5341 returning that the register piece is unavailable/optimized out.
5342 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5343 and `unavailablep'. Throw error on bad debug info. Use
5344 frame_register instead of frame_register_read, to fill in the new
5346 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5348 * valops.c: (value_assign): Adjust, and handle
5349 get_frame_register_bytes failing.
5350 * spu-tdep.c: Include exceptions.h.
5351 (spu_software_single_step): Adjust, and handle
5352 get_frame_register_bytes failing.
5353 (spu_get_longjmp_target): Ditto.
5354 * gdbarch.sh (register_to_value): Change to return int. New
5355 parameters `optimizedp' and `unavailablep'.
5356 * gdbarch.h, gdbarch.c: Regenerate.
5357 * i386-tdep.c (i386_register_to_value): Adjust to new
5358 gdbarch_register_to_value interface.
5359 * i387-tdep.c (i387_register_to_value): Ditto.
5360 * i387-tdep.h (i387_register_to_value): Ditto.
5361 * alpha-tdep.c (alpha_register_to_value): Ditto.
5362 * ia64-tdep.c (ia64_register_to_value): Ditto.
5363 * m68k-tdep.c (m68k_register_to_value): Ditto.
5364 * mips-tdep.c (mips_register_to_value): Ditto.
5365 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5367 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5369 * findvar.c (value_of_register): Mark the value as unavailable, if
5370 the register is unavailable.
5371 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5372 (frame_register): New `unavailablep' parameter.
5373 (frame_register_read): Update comment.
5374 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5375 Set it if the register is unavailable. If the register is
5376 unavailable, clear the output buffer.
5377 (frame_register): New `unavailablep' parameter. Pass it down.
5378 (frame_unwind_register): Adjust.
5379 (put_frame_register): Adjust.
5380 (frame_register_read): Adjust. Also return false if the register
5382 (frame_register_unwind_location): Adjust.
5383 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5384 is unavailable, mark the value accordingly.
5385 * stack.c (frame_info): Handle unavailable registers.
5387 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5389 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5390 simplify, using regcache_cooked_read.
5392 2011-03-18 Pedro Alves <pedro@codesourcery.com>
5394 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5395 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5396 (regcache_raw_read_unsigned, regcache_raw_read_part)
5397 (regcache_cooked_read, regcache_cooked_read_signed)
5398 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5399 (regcache_cooked_read_ftype): Change return to enum
5401 * regcache.c: Include exceptions.h
5402 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5403 (do_cooked_read): Change return to enum register_status. Always
5404 forward to regcache_cooked_read.
5405 (regcache_raw_read): Change return to enum register_status. If
5406 the register is not REG_VALID, memset the buffer. Return the
5408 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5409 return the register's status.
5410 (regcache_raw_read_unsigned): Ditto.
5411 (regcache_cooked_read): Change return to enum register_status.
5412 Assert that with read-only regcaches, the register's status must
5413 be known. If the regcache is read-only, and the register is not
5414 REG_VALID, memset the buffer. Return the register's status.
5415 (regcache_cooked_read_signed): Change return to enum
5416 register_status. Handle non-REG_VALID registers and return the
5418 (regcache_cooked_read_unsigned): Change return to enum
5419 register_status. Handle non-REG_VALID registers and return the
5421 (regcache_xfer_part, regcache_raw_read_part)
5422 (regcache_cooked_read_part): Change return to enum
5423 register_status. Return the register's status.
5424 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5426 (regcache_dump): Handle unavailable cooked registers.
5427 * frame.c (do_frame_register_read): Adjust interface to match
5428 regcache_cooked_read_ftype.
5429 * gdbarch.sh (pseudo_register_read): Change return to enum
5431 * gdbarch.h, gdbarch.c: Regenerate.
5433 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5435 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5436 register_status. If reading a raw register indicates the raw
5437 register is not valid, return the raw register's status,
5438 otherwise, return REG_VALID.
5439 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5440 register_status. Handle non-REG_VALID raw registers and return
5441 the register's status.
5442 * arm-tdep.c (arm_neon_quad_read)
5443 (arm_pseudo_read): Change return to enum register_status. Handle
5444 non-REG_VALID raw registers and return the register's status.
5445 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5446 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5447 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5448 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5449 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5451 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5452 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5453 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5454 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5455 (m32c_pseudo_register_read): Change return to enum
5456 register_status. Adjust.
5457 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5458 enum register_status. Return the register's status.
5459 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5460 register_status. Return the register's status.
5461 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5462 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5463 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5464 * rs6000-tdep.c (move_ev_register_func): New typedef.
5465 (e500_move_ev_register): Use it. Change return to enum
5466 register_status. Return the register's status.
5467 (do_regcache_raw_read): New function.
5468 (do_regcache_raw_write): New function.
5469 (e500_pseudo_register_read): Change return to enum
5470 register_status. Return the register's status. Use
5471 do_regcache_raw_read.
5472 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5473 (dfp_pseudo_register_read): Change return to enum register_status.
5474 Return the register's status.
5475 (vsx_pseudo_register_read): Ditto.
5476 (efpr_pseudo_register_read): Ditto.
5477 (rs6000_pseudo_register_read): Ditto.
5478 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5479 register_status. Return the register's status.
5480 * sh64-tdep.c (pseudo_register_read_portions): New function.
5481 (sh64_pseudo_register_read): Change return to enum
5482 register_status. Use pseudo_register_read_portions. Return the
5484 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5485 register_status. Return the register's status.
5486 * sh-tdep.c (pseudo_register_read_portions): New function.
5487 (sh_pseudo_register_read): Change return to enum register_status.
5488 Use pseudo_register_read_portions. Return the register's status.
5489 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5490 enum register_status. Return the register's status.
5491 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5492 * spu-tdep.c (spu_pseudo_register_read_spu)
5493 (spu_pseudo_register_read): Ditto.
5494 * xtensa-tdep.c (xtensa_register_read_masked)
5495 (xtensa_pseudo_register_read): Ditto.
5496 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5498 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5500 * python/py-value.c (valpy_getitem): Fix formatting of error function
5503 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5505 ARI fixes: Add missing internationalization markups throughout
5507 * darwin-nat-info.c: Ditto.
5510 * mi/mi-main.c: Ditto.
5512 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5514 ARI fixes: Add missing internationalization markups throughout
5517 * cp-name-parser.y: Ditto.
5520 * objc-exp.y: Ditto.
5523 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5525 ARI fixes: Messages should have no trailing new lines.
5526 * darwin-nat.c (mach_check_error): Remove trailing new line from
5527 warning function call message.
5528 * record.c (bfdcore_read): Idem for error call.
5530 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5532 * common/signals.c (target_signal_from_host): Add _ markup to error
5533 function call message.
5534 (target_signal_to_host): Add _ markup and remove trailing new line
5535 from warning call message.
5536 (target_signal_from_command): Add _ markup to error function call
5539 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5543 * python/python.c (gdbpy_write): Accept a stream argument and
5544 operate to the appropriate stream.
5545 (gdbpy_flush): Likewise.
5546 (_initialize_python): Add stream constants.
5547 (finish_python_initialization): Add GdbOutputErrorFile class.
5549 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5551 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5553 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5555 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5556 to store_signed_integer. Add debug message when relocating CALL
5557 instructions. Fix formatting of debug message.
5558 * i386-tdep.c (i386_relocate_instruction): Ditto.
5560 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5562 * target.h (struct target_ops): Remove to_lookup_symbol field.
5563 (target_lookup_symbol): Delete macro.
5564 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5565 (update_current_target, setup_target_debug): Remove handling
5566 of to_lookup_symbol target_ops field.
5567 * ada-tasks.c (get_known_tasks_addr): Remove use of
5568 target_lookup_symbol.
5569 * coffread.c (coff_symtab_read): Likewise.
5570 * dbxread.c (read_dbx_symtab): Ditto.
5572 2011-03-17 Joel Brobecker <brobecker@gnat.com>
5575 * configure.ac: Add getthrds declaration check.
5576 * configure, config.in: Regenerate.
5577 * aix-thread.c (getthrds): Declare only if not already declared
5578 in procinfo.h. More declaration out of get_signaled_thread to
5581 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5583 * python/py-symtab.c: Populate symtab_object_methods,
5585 (stpy_is_valid): New function.
5586 (salpy_is_valid): Ditto.
5587 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5588 (sympy_is_valid): New function.
5589 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5590 (objfpy_is_valid): New function.
5591 * python/py-inferior.c: Populate inferior_object_methods.
5592 (infpy_is_valid): New function.
5593 * python/py-infthread.c: Populate thread_object_methods.
5594 (thpy_is_valid): New function.
5595 * python/py-block.c: Declare block_object_methods. Populate. Declare
5596 block_iterator_object_methods. Populate.
5597 (blpy_is_valid): New function.
5598 (blpy_iter_is_valid): Ditto.
5600 2011-03-16 Keith Seitz <keiths@redhat.com>
5602 * linespec.c (find_methods): Canonicalize NAME before looking
5604 (name_end): New function.
5605 (keep_name_info): New function.
5606 (decode_line_1): Use keep_name_info.
5607 (decode_compound): Likewise.
5608 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5609 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5612 * linespec.c (locate_first_half): Keep overload information, too.
5613 (decode_compound): Use a string to represent break characters
5615 If P points to a break character, do not increment it.
5616 For C++ and Java, keep overload information and relevant keywords.
5617 If we cannot find a symbol, search the minimal symbols.
5620 * linespec.c (decode_compound): Rename SAVED_ARG to
5622 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5624 Pass a valid block to lookup_symbol.
5625 (lookup_prefix_sym): Likewise.
5626 (find_method): Construct search name based on SYM_CLASS instead
5628 * psymtab.c (lookup_partial_symbol): Add language parameter.
5629 (lookup_symbol_aux_psymtabs): Likewise.
5630 Don't assume that the psymtab we found was the right one. Search
5631 for the desired symbol in the symtab to be certain.
5632 (psymtab_search_name): New function.
5633 (lookup_partial_symbol): Use psymtab_search_name.
5634 Add language parameter.
5635 (read_symtabs_for_function): Add language parameter and pass to
5636 lookup_partial_symbol.
5637 (find_symbol_file_from_partial): Likewise.
5639 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5642 * dwarf2read.c (noop_record_line): New function.
5643 (dwarf_decode_lines): Ignore line tables for GCd functions.
5645 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5647 Fix ARI warnings about new lines at the end of messages, which
5648 are unneeded as there is a new line added at the end of the message
5650 * darwin-nat.c (darwin_stop_inferior): Ditto.
5651 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5652 * dfp.c (decimal_to_number): Ditto.
5653 * exec.c (print_section_info): Ditto.
5654 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5655 * osdata.c (get_osdata): Ditto.
5656 * record.c (bfdcore_write): Ditto.
5657 * remote-mips.c (mips_readchar): Ditto.
5658 * remote.c (read_ptid): Ditto.
5659 * ser-mingw.c (ser_windows_raw): Ditto.
5660 * tracepoint.c (add_local_symbols): Ditto.
5661 * windows-nat.c (fake_create_process): Ditto.
5663 2011-03-16 Tom Tromey <tromey@redhat.com>
5665 * tracepoint.c (stop_tracing): Don't declare.
5666 * event-top.c (after_char_processing_hook): Add `(void)'.
5668 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5670 * NEWS: Add Parameter sub-classing description.
5672 2011-03-16 Kai Tietz <ktietz@redhat.com>
5674 * MAINTAINERS: Update my e-mail address.
5676 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5678 * MAINTAINERS: Add myself for write after approval privileges.
5680 2011-03-15 Michael Snyder <msnyder@vmware.com>
5682 * frame.c (find_frame_sal): Assert sym is not null.
5684 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5686 * objc-lang.c (selectors_info): Check strchr for null result.
5688 * stabsread.c (define_symbol): Guard against bad stabstring input.
5690 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5692 Remove trailing spaces and tabulations from pascal language
5697 p-valprint.c: Ditto.
5699 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5701 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5702 than LOW. Comment it.
5703 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5704 HIGHPC not strictly higher than LOWPC.
5706 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5708 Fix formatting of function declarations returning a pointer in
5710 * varobj.c (varobj_add_child): Ditto.
5711 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5712 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5714 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5716 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5717 for the "generic" vector ABI used with GCC 4.3 and later.
5718 (ppc64_sysv_abi_return_value): Likewise.
5720 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5722 * infcall.c (call_function_by_hand): Function return value is
5723 always a non_lval, even when using struct_return.
5725 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5727 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5728 (map_display_numbers): New.
5729 (do_delete_display): New.
5730 (undisplay_command): Use map_display_numbers.
5731 (do_enable_disable_display): New.
5732 (enable_disable_display_command): New function.
5733 (enable_display): Delete.
5734 (enable_display_command): New.
5735 (disable_display_command): Reimplement.
5736 (_initialize_printcmd): Adjust "enable display" command to use
5737 `enable_display_command' as callback.
5739 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5741 * NEWS: Add Python breakpoint 'stop' operation.
5743 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5745 * NEWS: Delete duplicate entry. Fix typo.
5747 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5749 Fix ARI warning about function names in first column.
5750 Put prototype declaration on same line as return type.
5751 * objc-exp.y: Ditto.
5753 * python/py-stopevent.h: Ditto.
5754 For long function names, split parameters to
5755 allow function name on same line as return type.
5756 * solib-pa64.c: Ditto.
5759 For long function declaration, use single line.
5760 * hppa-tdep.h: Ditto.
5761 * inferior.h: Ditto.
5763 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5765 * python/python.h: Declare gdbpy_should_stop and
5766 gdbpy_breakpoint_has_py_cond.
5767 * python/python.c: Add python.h to includes. Remove python.h from
5768 HAVE_PYTHON definition
5769 (gdbpy_should_stop): New dummy function.
5770 (gdbpy_breakpoint_has_py_cond): New dummy function.
5771 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5772 sub-classing capabilities.
5773 (gdbpy_should_stop): New function.
5774 (gdbpy_breakpoint_has_py_cond): New function.
5775 (local_setattro): New function.
5776 * breakpoint.c (condition_command): Add check for Python 'stop'
5778 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5779 operation function as part of stop/continue tests.
5781 2011-03-14 Tom Tromey <tromey@redhat.com>
5784 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5785 (needs_frame_dwarf_call): Likewise.
5787 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5789 Fix ARI warning about functions without parameters that do not
5791 * breakpoint.c (all_tracepoints): Replace () by (void).
5792 * f-exp.y (match_string_literal): Ditto.
5794 * m2-exp.y (yylex): Ditto.
5795 * mep-tdep.c (current_me_module): Ditto.
5796 (current_options): Ditto.
5797 (current_cop_data_bus_width): Ditto.
5798 (current_cr_names): Ditto.
5799 (current_cr_is_float): Ditto.
5800 (current_ccr_names): Ditto.
5801 * objc-exp.y (yylex): Ditto.
5802 * p-exp.y (yylex): Ditto.
5803 * remote.c (send_interrupt_sequence): Ditto.
5804 * tracepoint.c (current_trace_status): Ditto.
5805 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5806 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5808 2011-03-11 Michael Snyder <msnyder@vmware.com>
5810 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5811 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5812 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5813 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5814 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5816 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5817 (delete_async_event_handler): Ditto.
5819 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5821 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5823 * top.c (set_verbose): Assert showcmd was found.
5825 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5827 * xtensa-tdep.c (warning_once): Correct style issues.
5829 2011-03-11 Yao Qi <yao@codesourcery.com>
5831 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5833 2011-03-11 Andreas Schwab <schwab@redhat.com>
5835 * common/aclocal.m4: Remove.
5837 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5839 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5840 (xtensa_write_register, xtensa_read_register): Likewise.
5841 (xtensa_hextochar): Removed.
5842 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5844 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5846 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5847 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5848 (xtensa_alloc_frame_cache): Add initialization for new fields.
5849 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5850 (warning_once): New function.
5851 (xtensa_insn_kind): New item c0opc_and.
5852 (call0_classify_opcode): Add the case for AND instruction.
5853 (call0_track_op): Change arguments. New local variable litbase.
5854 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5855 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5857 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5858 (call0_analyze_prologue): Update the comments. Change arguments.
5859 Add the variety of updates to handle extended prologues, which now can
5860 conduct dynamic stack adjustments.
5861 (call0_frame_cache): Likewise.
5862 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5863 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5865 2011-03-10 Michael Snyder <msnyder@vmware.com>
5867 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5868 (cmd_qtframe): Ditto.
5869 (cmd_qtbuffer): Ditto.
5870 (cmd_bigqtbuffer): Ditto.
5872 2011-03-10 Tom Tromey <tromey@redhat.com>
5874 * tracepoint.c (trace_actions_command): Update.
5875 * thread.c (thread_apply_command): Update.
5876 * reverse.c (delete_bookmark_command): Update.
5877 (bookmarks_info): Update.
5878 * printcmd.c (undisplay_command): Update.
5879 * memattr.c (mem_enable_command): Update.
5880 (mem_disable_command): Update.
5881 (mem_delete_command): Update.
5882 * inferior.c (detach_inferior_command): Update.
5883 (kill_inferior_command): Update.
5884 (remove_inferior_command): Update.
5885 * cli/cli-utils.h (struct get_number_or_range_state): New.
5886 (init_number_or_range): Declare.
5887 (get_number_or_range): Update.
5888 * cli/cli-utils.c (init_number_or_range): New function.
5889 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5891 (number_is_in_list): Update.
5892 * breakpoint.h (get_tracepoint_by_number): Update.
5893 * breakpoint.c (map_breakpoint_numbers): Update for change to
5894 get_number_or_range.
5895 (find_location_by_number): Use get_number, not
5896 get_number_or_range.
5897 (trace_pass_set_count): New function.
5898 (trace_pass_command): Update for change to get_number_or_range.
5900 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5903 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5905 * python/py-param.c (add_setshow_generic): Add set/show callback
5906 parameters. Register Python object context.
5907 (get_show_value): New function.
5908 (get_set_value): New function.
5909 (call_doc_function): New function.
5910 (get_doc_string): Move behind get_show_value/get_set_value.
5912 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5914 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5916 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5918 * xtensa-tdep.c (xtensa_read_register): Add comment.
5919 (xtensa_write_register): Likewise.
5920 (xtensa_hextochar): Add comment and update to match coding conventions.
5921 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5922 (execute_l32e, execute_s32e, execute_code): Update comments.
5923 (xtensa_exception_handler_t): Update to match coding conventions.
5924 (xtensa_insn_kind): Likewise.
5926 2011-03-09 Michael Snyder <msnyder@vmware.com>
5928 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5930 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5932 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5934 2011-03-09 Tom Tromey <tromey@redhat.com>
5936 * thread.c (restore_selected_frame): Handle frame_level == -1.
5937 (make_cleanup_restore_current_thread): Use
5938 get_selected_frame_if_set.
5939 * frame.h (get_selected_frame_if_set): Declare.
5940 * frame.c (get_selected_frame_if_set): New function.
5942 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5944 * cli/cli-cmds.c (shell_escape): Use lbasename.
5945 * coffread.c (coff_start_symtab): Constify parameter.
5946 (complete_symtab): Constify `name' parameter.
5947 (coff_symtab_read): Constify `filestring' local.
5948 (coff_getfilename): Constify return and `result' local.
5950 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5951 * linux-fork.c (info_checkpoints_command): Use lbasename.
5952 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5953 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5954 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5955 * procfs.c (procfs_make_note_section): Use lbasename.
5956 * tui/tui-io.c (printable_part): Constity return and parameter.
5958 (print_filename): Constify parameters, and local `s'.
5959 (tui_rl_display_match_list): Constify local `temp'.
5961 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5965 Fix DWARF-3+ DW_AT_accessibility default assumption.
5966 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5967 cu->header.version >= 3.
5969 2011-03-09 Yao Qi <yao@codesourcery.com>
5971 * common/Makefile.in: Remove.
5972 * common/configure: Remove.
5973 * common/configure.ac: Remove.
5975 2011-03-09 Yao Qi <yao@codesourcery.com>
5978 2011-02-11 Yao Qi <yao@codesourcery.com>
5980 * common/Makefile.in: Add copyright header.
5982 2011-02-11 Yao Qi <yao@codesourcery.com>
5984 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5986 * configure.ac: Add common to sub dir.
5987 * configure: Regenerate.
5989 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5991 * xtensa-tdep.c (call0_ret): New function.
5992 (xtensa_skip_prologue): Speed up analysis.
5994 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5996 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5997 while executing MI command -data-list-changed-registers.
5999 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6001 * xtensa-tdep.c (xtensa_read_register): New function.
6002 (xtensa_write_register): New function.
6003 (xtensa_find_register_by_name): New function.
6004 (xtensa_windowed_frame_cache): Update comments in type description.
6005 (xtensa_frame_cache): Likewise.
6006 (xtensa_window_interrupt_insn): New function.
6007 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6008 (xtensa_insn_kind): Add new instructions.
6009 (rwx_special_register): New function.
6010 (call0_classify_opcode): Add new instructions to the analysis.
6011 (a0_saved, a7_saved, a11_saved): New variables.
6012 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6013 (execute_l32e): New function.
6014 (execute_s32e): New function.
6015 (xtensa_exception_handler_t): New type.
6016 (execute_code): New function.
6017 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6018 analysis for Xtensa Window Exception handlers.
6020 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6022 * xtensa-tdep.c (TX_PS): New.
6023 (windowing_enabled): Update to count for Call0 ABI.
6024 (xtensa_hextochar): New.
6025 (xtensa_init_reggroups): Make algorithm generic.
6026 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6028 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6030 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
6032 2011-03-08 Michael Snyder <msnyder@vmware.com>
6034 * i386-tdep.c (i386_follow_jump): Check return value of
6036 (i386_analyze_struct_return): Ditto.
6037 (i386_skip_probe): Ditto.
6038 (i386_match_insn): Ditto.
6039 (i386_skip_noop): Ditto.
6040 (i386_analyze_frame_setup): Ditto.
6041 (i386_analyze_register_saves): Ditto.
6042 (i386_skip_prologue): Ditto.
6043 (i386_skip_main_prologue): Ditto.
6045 * target.c (read_whatever_is_readable): Fix memory leak.
6047 * i386-tdep.c (i386_process_record): Document fall through.
6049 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6051 Fix DWARF-3+ DW_AT_accessibility default assumption.
6052 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6053 cu->header.version >= 3.
6055 2011-03-08 Pedro Alves <pedro@codesourcery.com>
6057 * remote.c (remote_check_symbols): Skip if the target has no
6060 2011-03-08 Joel Brobecker <brobecker@adacore.com>
6062 * target.c (read_whatever_is_readable): Reformat comment,
6063 with a minor typo fix. Minor reformatting of the code.
6065 2011-03-08 Yao Qi <yao@codesourcery.com>
6067 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6068 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6069 Use cached result instead of calling displaced_in_arm_mode again.
6070 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6071 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6072 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6073 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6074 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6075 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6076 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6077 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6078 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6079 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6080 (arm_catch_kernel_helper_return): Likewise.
6081 * gdb/arm-tdep.h : Update function declarations.
6083 2011-03-07 Michael Snyder <msnyder@vmware.com>
6085 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6087 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6089 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6091 * elfread.c (elf_symtab_read): Stop memory leak.
6093 * main.c (captured_main): Fix memory leak.
6095 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6097 * ada-lang.c (compare_names): Call is_name_suffix with string1
6100 2011-03-07 Tom Tromey <tromey@redhat.com>
6102 * xcoffread.c (xcoff_sym_fns): Update.
6103 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6104 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6105 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6106 (symbol_file_add_with_addrs_or_offsets): Likewise.
6107 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6108 * somread.c (som_sym_fns): Update.
6109 * psymtab.h (require_partial_symbols): Declare.
6110 * psymtab.c (require_partial_symbols): New function.
6111 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6112 (ALL_OBJFILE_PSYMTABS): Undef.
6113 (ALL_PSYMTABS): Move from psympriv.h.
6114 (lookup_partial_symtab, find_pc_sect_psymtab)
6115 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6116 (find_last_source_symtab_from_partial)
6117 (forget_cached_source_info_partial)
6118 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6119 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6120 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6121 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6122 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6123 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6124 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6125 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6126 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6128 * mipsread.c (ecoff_sym_fns): Update.
6129 * machoread.c (macho_sym_fns): Update.
6130 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6131 (read_psyms): New function.
6132 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6133 (elf_sym_fns_lazy_psyms): New global.
6134 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6135 dwarf2_build_psymtabs.
6136 * dbxread.c (aout_sym_fns): Update.
6137 * coffread.c (coff_sym_fns): Update.
6139 2011-03-07 Tom Tromey <tromey@redhat.com>
6141 * infrun.c (print_exited_reason): Include inferior id and pid in
6144 2011-03-07 Tom Tromey <tromey@redhat.com>
6146 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6148 (target_has_execution_1): Update.
6149 (target_has_execution_current): Declare.
6150 (target_has_execution): Call target_has_execution_current.
6151 (default_child_has_execution): Update.
6152 * target.c (default_child_has_execution): Add 'the_ptid'
6154 (target_has_execution_1): Likewise.
6155 (target_has_execution_current): New function.
6156 (add_target): Update.
6157 (init_dummy_target): Update.
6158 * remote-m32r-sdi.c (m32r_has_execution): New function.
6159 (init_m32r_ops): Use it.
6160 * record.c (record_core_has_execution): Now static. Add
6161 'the_ptid' parameter.
6162 * inferior.c (have_live_inferiors): Don't save current thread.
6163 Use target_has_execution_1.
6165 2011-03-07 Yao Qi <yao@codesourcery.com>
6167 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6169 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6171 * elfread.c (elf_symtab_read): Minor reformatting.
6173 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6175 * objc-lang.c (selectors_info): Minor reformatting.
6177 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6179 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6181 2011-03-07 Joel Brobecker <brobecker@adacore.com>
6182 Michael Snyder <msnyder@vmware.com>
6184 * ada-valprint.c (ada_val_print_array): Move the declaration of
6185 "byte_order" and "elttype" inside the block where these variables
6186 are actually used. Remove some special handling for the case
6187 where "elttype" and "eltlen" are null. Replace by a comment
6188 and a couple of assertion checks.
6190 2011-03-05 Michael Snyder <msnyder@vmware.com>
6192 * source.c (add_path): Replace semicolon at end of block.
6193 * dwarf2expr.c (execute_stack_op): Ditto.
6195 2011-03-05 Mike Frysinger <vapier@gentoo.org>
6197 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6198 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6199 (bfin-*-*): Likewise.
6201 2011-03-05 Michael Snyder <msnyder@vmware.com>
6203 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6204 * mdebugread.c (parse_symbol): Ditto.
6205 * parse.c (parse_exp_in_context): Ditto.
6206 * source.c (add_path): Ditto.
6207 * utils.c (gnu_debuglink_crc32): Ditto.
6208 * varobj.c (variable_language): Ditto.
6210 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6212 2011-03-04 Michael Snyder <msnyder@vmware.com>
6214 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6216 * symfile.c (simple_overlay_update): Check for null return value
6217 from lookup_minimal_symbol.
6219 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6221 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6223 * eval.c (parse_and_eval_address_1): Remove function.
6224 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6225 instead of parse_and_eval_address_1.
6226 * value.h (parse_and_eval_address_1): Remove prototype.
6228 2011-03-04 Michael Snyder <msnyder@vmware.com>
6230 * remote.c (putpkt_binary): Document that case stmt falls through.
6232 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6234 * breakpointc (print_it_typical): Move NULL check from here...
6235 (print_bp_stop_message): ... to here.
6237 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6239 * breakpoint.c (enable_command): Use break instead of continue,
6240 and fill in a missing break.
6241 (disable_command): Ditto.
6243 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6245 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6246 (terminal_save_ours): Remove misleading comment.
6247 (inflow_inferior_data_cleanup): Free ttystate.
6248 (inflow_inferior_exit): Likewise.
6249 (copy_terminal_info): Copy ttystate.
6251 * serial.c (serial_copy_tty_state): New function.
6252 * serial.h (serial_copy_tty_state): Add prototype.
6253 (struct serial_ops): Add copy_tty_state callback.
6254 * ser-base.c (ser_base_copy_tty_state): New function.
6255 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6256 * ser-go32.c (dos_copy_tty_state): New function.
6257 (dos_ops): Install copy_tty_state callback.
6258 * ser-mingw.c (_initialize_ser_windows): Likewise.
6259 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6260 * ser-unix.c (hardwire_copy_tty_state): New function.
6261 (_initialize_ser_hardwire): Install it.
6263 2011-03-04 Michael Snyder <msnyder@vmware.com>
6265 * breakpoint.c (create_breakpoint): Add missing break statement.
6267 Reverting this patch:
6268 * infcall.c (call_function_by_hand): Add break statements for lint.
6270 Reverting this patch:
6271 * cli/cli-script.c (script_from_file): Add break for lint.
6273 2011-03-04 Michael Snyder <msnyder@vmware.com>
6275 * solib.c (reload_shared_libraries_1): Close memory leak.
6277 2011-03-03 Tom Tromey <tromey@redhat.com>
6280 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6283 2011-03-03 Michael Snyder <msnyder@vmware.com>
6285 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6286 fields of struct 'st' to zero.
6288 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6289 sal.pspace before calling set_current_source_symtab_and_line.
6291 2011-03-03 Yao Qi <yao@codesourcery.com>
6293 * Makefile.in (configure-common): Remove. Let Makefile
6294 in dir common to rebuild itself.
6295 (common/Makefile): Likewise.
6297 2011-03-03 Joel Brobecker <brobecker@adacore.com>
6299 * utils.c (parse_escape): Add i18n markup in error message.
6301 2011-03-03 Yao Qi <yao@codesourcery.com>
6303 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6305 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6306 (displaced_write_reg, displaced_read_reg): Likewise.
6307 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6308 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6309 (cleanup_branch): Replace magic number 14 and 15 with
6310 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6312 2011-03-02 Michael Snyder <msnyder@vmware.com>
6314 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6316 * cli/cli-script.c (script_from_file): Add break for lint.
6318 * mdebugread.c (parse_partial_symbols): Fix indent.
6320 * target-descriptions.c (tdesc_gdb_type): No need to call
6321 xstrdup, callee saves a copy.
6323 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6325 * infcall.c (call_function_by_hand): Add break statements for lint.
6327 * utils.c (parse_escape): Escape the escape char.
6329 * python/py-inferior.c (build_inferior_list): Error out if
6330 PyList_Append fails.
6331 (gdbpy_inferiors): Error out if build_inferior_list fails.
6333 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6336 * record.c (record_restore): Move printf to before error return.
6338 2011-03-02 Yao Qi <yao@codesourcery.com>
6340 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6341 is_thumb and insn_size.
6342 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6343 on both ARM and Thumb mode.
6344 (arm_process_displaced_insn): Set is_thumb and insn_size.
6345 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6346 (arm_displaced_step_fixup): Likewise.
6348 2011-03-01 Michael Snyder <msnyder@vmware.com>
6350 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6352 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6354 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6356 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6358 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6361 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6362 which shadows function parameter.
6364 * tracepoint.c (create_tsv_from_upload): Superfluous call
6365 to xstrdup. Callee already calls xstrdup.
6367 * linespec.c (decode_line_1): Remove unnecessary null check.
6369 * tracepoint.c (scope_info): Fix mem leak, remove underused
6372 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6373 superfluous null check.
6375 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6376 (value_of_builtin_frame_fp_reg): Ditto.
6378 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6380 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6383 * linespec.c (decode_line_1): Check for null before dereference.
6385 * reverse.c (record_restore): Move null-check to before pointer
6388 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6390 * objc-lang.c (selectors_info): Add explanitory comment.
6391 (classes_info): Ditto.
6393 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6395 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6396 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6397 versions of the trampoline. Handle Thumb vs. ARM addresses.
6398 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6399 (arm_linux_init_abi): Install it.
6400 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6401 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6403 2011-02-28 Michael Snyder <msnyder@vmware.com>
6405 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6406 a little bigger, to avoid possibility of an overflow.
6408 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6409 buffers a little bigger, to avoid possibility of an overflow.
6411 * coffread.c (coff_getfilename): Add check to avoid overflow.
6413 * objc-lang.c (selectors_info): Add a small safety margin to
6415 (classes_info): Error out on too long REGEXP.
6417 * infrun.c (handle_inferior_event): Remove unused function call.
6419 * fork-child.c (fork_inferior): Remove ifdef'd code and
6422 * linux-thread-db.c (attach_thread): Discard unused value.
6424 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6426 * remote.c (remote_get_noisy_reply): Discard unused value.
6427 (remote_vcont_resume): Ditto.
6428 (remote_stop_ns): Ditto.
6430 * linespec.c (decode_objc): Delete unused variable.
6432 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6434 * dwarf2read.c (add_partial_symbol): Discard unused values.
6435 (read_base_type): Delete unused variable.
6437 * dbxread.c (read_dbx_symtab): Discard unused value.
6439 * eval.c (evaluate_subexp_standard): Delete unused variable,
6440 and discard unused values.
6442 * infcmd.c (_initialize_infcmd): Discard unused values.
6444 * stabsread.c (rs6000_builtin_type): Missing break statement.
6446 * dbxread.c (process_one_symbol): Discard unused value.
6448 * coffread.c (coff_end_symtab): Delete unused variable.
6450 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6451 (dwarf2_add_typedef): Delete unused variable.
6452 (read_namespace): Ditto.
6453 (dwarf_decode_macros): Ditto.
6455 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6457 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6459 * p-valprint.c (pascal_val_print): Discard unused value.
6461 * utils.c (nquery): Call va_end before return;
6465 * proc-service.c (ps_plog): Call va_end before return.
6467 2011-02-28 Tom Tromey <tromey@redhat.com>
6469 * python/python.c (gdbpy_value_cst): New global.
6470 (_initialize_python): Initialize it.
6471 * python/python-internal.h (gdbpy_value_cst): Declare.
6472 * python/py-value.c (convert_value_from_python): Use
6475 2011-02-28 Michael Snyder <msnyder@vmware.com>
6477 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6479 * breakpoint.c (catch_syscall_completer): Free malloced list.
6481 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6483 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6484 (lval_func_check_synthetic_pointer): Ditto.
6485 (lval_func_free_closure): Fix use-after-free.
6487 2011-02-28 Tom Tromey <tromey@redhat.com>
6489 * psymtab.c (expand_partial_symbol_tables): Use
6490 ALL_OBJFILE_PSYMTABS.
6492 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6494 * objc-lang.c (selectors_info): Error on too long REGEXP.
6496 2011-02-28 Michael Snyder <msnyder@vmware.com>
6498 * python/py-param.c (set_parameter_value): Add missing
6501 * linux-record.c (record_linux_system_call): Add missing
6504 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6506 * breakpoint.c (print_one_breakpoint_location): Remove unused
6507 argument PRINT_ADDRESS_BITS. Update callers.
6508 (print_one_breakpoint): Likewise.
6510 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6512 * breakpoint.c (wrap_indent_at_field): New function.
6513 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6514 Allocate ui_stream locally instead of using STB argument.
6515 (print_one_breakpoint_location): Update call.
6516 * ui-out.c (ui_out_query_field): New function.
6517 * ui-out.h (ui_out_query_field): Add prototype.
6519 2011-02-28 Joel Brobecker <brobecker@adacore.com>
6521 From Michael Snyder <msnyder@vmware.com>
6522 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6524 2011-02-27 Michael Snyder <msnyder@vmware.com>
6526 * objc-lang.c (selectors_info): Prevent string overrun.
6528 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6531 * symtab.c (rbreak_command): Move variable 'file_name' to
6534 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6535 param with a local variable of the same name.
6537 2011-02-27 Michael Snyder <msnyder@vmware.com>
6539 * value.c (value_from_history_ref): New function.
6540 * value.h (value_from_history_ref): Export.
6541 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6542 to parse value history references.
6543 * cli/cli-utils.h (get_number_trailer): Update comment.
6545 2011-02-27 Michael Snyder <msnyder@vmware.com>
6547 * inferior.c (detach_inferior_command): Use get_number_or_range.
6548 (kill_inferior_command): Ditto.
6549 (remove_inferior_command): Ditto.
6550 (initialize_inferiors): Make command names plural.
6551 Update help strings.
6553 2011-02-27 Michael Snyder <msnyder@vmware.com>
6555 * darwin-nat-info.c: Fix comment typo.
6556 * dwarf2expr.h: Ditto.
6557 * fbsd-nat.c: Ditto.
6558 * fbsd-nat.h: Ditto.
6559 * frame-unwind.h: Ditto.
6561 * hppa-hpux-tdep.c: Ditto.
6562 * i386-linux-nat.c: Ditto.
6563 * linux-nat.c: Ditto.
6564 * nbsd-nat.c: Ditto.
6565 * nbsd-nat.h: Ditto.
6566 * ppc-linux-tdep.c: Ditto.
6569 * tui/tui-winsource.c: Ditto.
6571 2011-02-26 Michael Snyder <msnyder@vmware.com>
6573 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6575 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6577 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6578 with a local variable of the same name.
6580 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6581 param with a local variable of the same name.
6582 (i387_supply_xsave): Ditto.
6584 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6585 that it does not shadow a function parameter.
6587 * i386-nat.c (i386_length_and_rw_bits): Document that case
6588 statement is meant to fall through.
6590 * expprint.c (dump_subexp_body_standard): Document that case
6591 statement is meant to fall through.
6593 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6594 dead if statement. Condition can't be false.
6596 2011-02-25 Michael Snyder <msnyder@vmware.com>
6598 * arm-tdep.c: Fix typos in comments.
6599 * bsd-uthread.c: Ditto.
6600 * completer.c: Ditto.
6602 * cp-namespace.c: Ditto.
6603 * cp-support.c: Ditto.
6604 * cris-tdep.c: Ditto.
6606 * dwarf2read.c: Ditto.
6608 * gdbtypes.h: Ditto.
6609 * inferior.h: Ditto.
6610 * mdebugread.c: Ditto.
6611 * mips-tdep.c: Ditto.
6612 * ppc-linux-nat.c: Ditto.
6613 * ppc-linux-tdep.c: Ditto.
6614 * printcmd.c: Ditto.
6615 * sol-thread.c: Ditto.
6616 * solib-frv.c: Ditto.
6618 * sparc64-tdep.c: Ditto.
6619 * spu-tdep.c: Ditto.
6620 * stabsread.c: Ditto.
6625 * python/py-block.c: Ditto.
6626 * python/py-symbol.c: Ditto.
6627 * python/py-symtab.c: Ditto.
6628 * python/py-value.c: Ditto.
6629 * tui/tui-win.c: Ditto.
6631 2011-02-25 Michael Snyder <msnyder@vmware.com>
6633 * inferior.c (print_inferior): Accept a string instead of an int
6634 for requested_inferiors, and use get_number_or_range to parse it.
6635 (info_inferiors_command): Pass args string to print_inferior.
6636 (initialize_inferiors): Change help string for info inferiors.
6637 * inferior.h (print_inferior): Export prototype change.
6639 2011-02-25 Tom Tromey <tromey@redhat.com>
6641 * common/ax.def (invalid2): Set to 0x31.
6643 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6645 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6647 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6649 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6651 2011-02-24 Michael Snyder <msnyder@vmware.com>
6653 * Makefile.in (clean): Make clean should remove generated files
6654 observer.h and observer.inc.
6656 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6658 Revert the following patch (not approved yet):
6659 2011-02-21 Hui Zhu <teawater@gmail.com>
6660 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6661 * ax-gdb.c (gen_printf_expr_callback): New function.
6662 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6663 * ax-general.c (ax_memcpy): New function.
6664 (ax_print): Handle "printf".
6666 * ax.h (ax_memcpy): Forward declare.
6667 * common/ax.def (invalid2): Removed.
6668 (printf): New entry.
6669 * printcmd.c (printcmd.h): New include.
6670 (string_printf): New function.
6671 (ui_printf): Removed.
6672 (printf_command): Remove static. Call string_printf.
6673 (eval_command): Call string_printf.
6674 * printcmd.h: New file.
6675 * tracepoint.c (validate_actionline,
6676 encode_actions_1): handle printf_command.
6678 2011-02-23 Tom Tromey <tromey@redhat.com>
6680 * ax-general.c (ax_pick): Add missing newline.
6682 2011-02-23 Michael Snyder <msnyder@vmware.com>
6684 * breakpoint.c (breakpoint_1): Change first argument from an int
6685 to a char pointer, so that the function now accepts a list of
6686 breakpoints rather than just one. Use new function
6687 'number_is_in_list' to implement.
6688 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6689 (watchpoints_info): Ditto.
6690 (tracepoints_info): Ditto.
6691 (maintenance_info_breakpoints): Ditto.
6692 (_initialize_breakpoint): Update help strings to reflect the fact
6693 that these functions can now take more than one argument.
6694 * cli/cli-utils.c (number_is_in_list): New function.
6695 * cli/cli-utils.h (number_is_in_list): Export.
6697 2011-02-23 Michael Snyder <msnyder@vmware.com>
6699 * memattr.c (mem_enable_command): Use get_number_or_range.
6700 (mem_disable_command): Ditto.
6701 (mem_delete_command): Ditto.
6702 (_initialize_mem): Tweak usage message to reflect multiple
6705 2011-02-22 Doug Evans <dje@google.com>
6707 Add gdb.lookup_global_symbol python function.
6709 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6710 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6711 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6713 2011-02-22 Tom Tromey <tromey@redhat.com>
6715 * language.c (language_class_name_from_physname): Rename
6716 'curr_language' argument to 'lang'; use in body.
6718 2011-02-22 Michael Snyder <msnyder@vmware.com>
6720 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6722 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6724 * frame-unwind.h: Fix comment to mention the this frame, not the
6727 2011-02-22 Tom Tromey <tromey@redhat.com>
6729 * symfile.c (auto_solib_limit): Remove.
6730 * symfile.h (auto_solib_limit): Remove.
6732 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6734 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6736 2011-02-21 Michael Snyder <msnyder@vmware.com>
6738 * gdbthread.h (print_thread_info): Change prototype.
6739 * thread.c (print_thread_info): Accept char* instead of int for
6740 requested_threads argument. Use new function number_is_in_list
6741 to determine which threads to list.
6742 (info_threads_command): Pass char* to print_thread_info.
6743 * cli/cli-utils.c (number_is_in_list): New function.
6744 * cli/cli-utils.h (number_is_in_list): Export.
6745 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6747 (print_one_inferior): Ditto.
6748 (mi_cmd_list_thread_groups): Ditto.
6750 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * common/Makefile.in (CFLAGS): New.
6753 (COMPILE): Add $(CFLAGS).
6755 2011-02-21 Tom Tromey <tromey@redhat.com>
6757 * breakpoint.c (catch_syscall_command_1): Fix typo.
6759 2011-02-21 Tom Tromey <tromey@redhat.com>
6761 * reverse.c: Include cli-utils.h.
6762 * printcmd.c: Include cli-utils.h.
6763 (string_printf): Use skip_spaces.
6764 * cli/cli-utils.h: New file.
6765 * cli/cli-utils.c: New file.
6766 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6767 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6768 * breakpoint.h (get_number, get_number_or_range): Move to
6770 * breakpoint.c: Include cli-utils.h.
6771 (get_number_trailer, get_number, get_number_or_range)
6772 (ep_skip_leading_whitespace): Move to cli-utils.c.
6773 (create_breakpoint_sal, find_condition_and_thread)
6774 (decode_static_tracepoint_spec, watch_command_1)
6775 (watch_maybe_just_location, ep_parse_optional_if_clause)
6776 (catch_fork_command_1, catch_exec_command_1)
6777 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6778 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6779 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6780 (HFILES_NO_SRCDIR): Add cli-utils.h.
6781 (cli-utils.o): New target.
6783 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6785 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6786 before calling discard_all_inferiors.
6788 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6790 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6791 (struct builtin_opencl_type): Remove.
6792 (builtin_opencl_type): Change return type to "struct type **".
6793 (lookup_opencl_vector_type): Update caller.
6794 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6795 (build_opencl_types): Install plain array of "struct type *"
6796 instead of "struct builtin_opencl_type".
6798 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6799 Ulrich Weigand <uweigand@de.ibm.com>
6801 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6802 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6803 (struct arm_linux_hwbp_cap): New type.
6804 (arm_linux_get_hwbp_cap): New function.
6805 (arm_linux_get_hw_breakpoint_count): Likewise.
6806 (arm_linux_get_hw_watchpoint_count): Likewise.
6807 (arm_linux_can_use_hw_breakpoint): Likewise.
6808 (arm_hwbp_type): New type.
6809 (arm_hwbp_control_t): Likewise.
6810 (struct arm_linux_hw_breakpoint): Likewise.
6811 (struct arm_linux_thread_points): Likewise.
6812 (arm_threads): New global variable.
6813 (arm_linux_find_breakpoints_by_tid): New function.
6814 (arm_hwbp_control_initialize): Likewise.
6815 (arm_hwbp_control_is_enabled): Likewise.
6816 (arm_hwbp_control_disable): Likewise.
6817 (arm_linux_hw_breakpoint_initialize): Likewise.
6818 (arm_linux_get_hwbp_type): Likewise.
6819 (arm_linux_hw_watchpoint_initialize): Likewise.
6820 (arm_linux_hw_breakpoint_equal): Likewise.
6821 (arm_linux_insert_hw_breakpoint1): Likewise.
6822 (arm_linux_remove_hw_breakpoint1): Likewise.
6823 (arm_linux_insert_hw_breakpoint): Likewise.
6824 (arm_linux_remove_hw_breakpoint): Likewise.
6825 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6826 (arm_linux_insert_watchpoint): Likewise.
6827 (arm_linux_remove_watchpoint): Likewise.
6828 (arm_linux_stopped_data_address): Likewise.
6829 (arm_linux_stopped_by_watchpoint): Likewise.
6830 (arm_linux_watchpoint_addr_within_range): Likewise.
6831 (arm_linux_new_thread): Likewise.
6832 (arm_linux_thread_exit): Likewise.
6833 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6834 related target callbacks. Register arm_linux_new_thread and
6835 arm_linux_thread_exit.
6836 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6837 * arm-tdep.c (arm_pc_is_thumb): Make global.
6838 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6840 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6842 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6843 per-frame locations while within a function epilogue.
6845 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6847 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6848 to GNU coding standards.
6850 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6852 Allow use of mingw native on Windows 95 OS.
6853 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6854 (ser_windows_close): Only call CancelIo if function exists.
6855 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6856 to check for existence of CancelIo function in kernel32 DLL.
6858 2011-02-21 Hui Zhu <teawater@gmail.com>
6860 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6861 * ax-gdb.c (gen_printf_expr_callback): New function.
6862 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6863 * ax-general.c (ax_memcpy): New function.
6864 (ax_print): Handle "printf".
6866 * ax.h (ax_memcpy): Forward declare.
6867 * common/ax.def (invalid2): Removed.
6868 (printf): New entry.
6869 * printcmd.c (printcmd.h): New include.
6870 (string_printf): New function.
6871 (ui_printf): Removed.
6872 (printf_command): Remove static. Call string_printf.
6873 (eval_command): Call string_printf.
6874 * printcmd.h: New file.
6875 * tracepoint.c (validate_actionline,
6876 encode_actions_1): handle printf_command.
6878 2011-02-19 Michael Snyder <msnyder@vmware.com>
6880 * reverse.c (delete_one_bookmark): Argument is now bookmark
6881 id rather than pointer to bookmark struct.
6882 (delete_bookmark_command): Use get_number_or_range.
6883 (goto_bookmark_command): Parse with get_number instead of strtoul.
6884 (bookmark_1): New function. Print info for one bookmark.
6885 (bookmarks_info): Use get_number_or_range and bookmark_1.
6887 2011-02-18 Michael Snyder <msnyder@vmware.com>
6889 * thread.c (info_threads_command): Re-implement using
6890 get_number_or_range.
6891 (thread_apply_command): Ditto.
6893 2011-02-18 Tom Tromey <tromey@redhat.com>
6895 * common/ax.def: New file.
6896 * ax.h (enum agent_op): Use ax.def.
6897 * ax-general.c (aop_map): Use ax.def.
6899 2011-02-18 Tom Tromey <tromey@redhat.com>
6901 * ax-general.c (aop_map): Add pick and rot.
6902 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6903 <DW_OP_rot>: Implement.
6904 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6906 * ax-general.c (ax_pick): New function.
6908 2011-02-18 Tom Tromey <tromey@redhat.com>
6910 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6912 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6913 Tom Tromey <tromey@redhat.com>
6915 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6916 make_symbol_overload_list_block with NULL BLOCK.
6917 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6919 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6921 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6922 * breakpoint.h (get_number_or_range): Declare.
6923 * printcmd.c (ALL_DISPLAYS): Declare.
6924 (delete_display): Reimplement taking a display pointer.
6925 (undisplay_command): Accept a range of displays to delete, using
6926 get_number_or_range.
6928 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6930 * c-valprint.c (c_val_print): Add embedded_offset to address
6931 for arrays of unspecified length.
6932 * p-valprint.c (pascal_val_print): Likewise.
6934 2011-02-18 Yao Qi <yao@codesourcery.com>
6936 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6937 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6938 (thumb_process_displaced_insn): New.
6939 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6940 call to arm_process_displaced_insn.
6941 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6943 2011-02-17 Tom Tromey <tromey@redhat.com>
6945 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6946 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6947 compile_dwarf_to_ax. No longer static. Call
6948 dwarf2_compile_cfa_to_ax.
6949 (locexpr_tracepoint_var_ref): Update.
6950 (loclist_tracepoint_var_ref): Update.
6951 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6952 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6953 argument; add 'gdbarch' and 'pc'.
6954 (dwarf2_compile_cfa_to_ax): New function.
6955 (dwarf2_frame_cache): Update.
6957 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6959 * ada-lang.c (ada_type_of_array): Fix the size of the array
6960 in the case of an unconstrained packed array.
6962 2011-02-17 Yao Qi <yao@codesourcery.com>
6964 * common/Makefile.in: Add more targets for make.
6966 2011-02-16 Tom Tromey <tromey@redhat.com>
6968 * dwarf2loc.c (unimplemented): Fix typo.
6970 2011-02-16 Tom Tromey <tromey@redhat.com>
6972 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6973 (compile_dwarf_to_ax) <default>: Use unimplemented.
6974 <DW_OP_deref>: Update.
6975 (disassemble_dwarf_expression): Update.
6976 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6977 (decode_locdesc): Update.
6978 * dwarf2expr.h (dwarf_stack_op_name): Update.
6980 2011-02-16 Tom Tromey <tromey@redhat.com>
6982 * ax.h (struct aop_map) <name>: Now const.
6984 2011-02-16 Tom Tromey <tromey@redhat.com>
6986 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6989 2011-02-16 Yao Qi <yao@codesourcery.com>
6991 * infrun.c (get_displaced_step_closure_by_addr): New.
6992 * inferior.h: Declare it.
6993 * arm-tdep.c: (arm_pc_is_thumb): Call
6994 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6997 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6998 Jan Kratochvil <jan.kratochvil@redhat.com>
7001 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7003 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7004 Jan Kratochvil <jan.kratochvil@redhat.com>
7006 * value.c (value_contents_copy_raw): Extend describing comment.
7007 Assert that the destination contents we're overwriting are wholly
7009 (value_contents_copy): Extend describing comment.
7011 2011-02-16 Pedro Alves <pedro@codesourcery.com>
7012 Jan Kratochvil <jan.kratochvil@redhat.com>
7014 * value.c (value_available_contents_eq): Remove redundant local
7015 variables. Fix available contents comparision.
7016 * value.h (value_available_contents_eq): Extend describing
7019 2011-02-16 Yao Qi <yao@codesourcery.com>
7021 * thread.c (info_threads_command): Add missing i18n markup and remove
7024 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7026 * breakpoint.c (longjmp_names): New variable.
7027 (struct breakpoint_objfile_data): New type.
7028 (breakpoint_objfile_key): New variable.
7029 (msym_not_found): New variable.
7030 (msym_not_found_p): New predicate.
7031 (get_breakpoint_objfile_data): New function.
7032 (create_overlay_event_breakpoint): Check per-objfile cache for
7034 (create_longjmp_master_breakpoint): Likewise.
7035 (create_std_terminate_master_breakpoint): Likewise.
7036 (create_exception_master_breakpoint): Likewise.
7037 (_initialize_breakpoint): Register per-objfile data key.
7039 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7041 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7043 (create_longjmp_master_breakpoint): Loop over longjmp names.
7044 (create_std_terminate_master_breakpoint): Const-propagate parameter
7046 (update_breakpoints_after_exec): Adjust.
7047 (breakpoint_re_set): Adjust.
7049 2011-02-15 Michael Snyder <msnyder@vmware.com>
7051 * thread.c (info_threads_command): Process arg as thread id,
7052 or list of thread ids.
7053 (thread_find_command): New command.
7054 (_initialize_thread): Document argument for info threads.
7055 Document 'thread find' command.
7056 * NEWS: Document new command "thread find".
7058 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7060 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7061 * aclocal.m4: Regenerated with aclocal-1.11.1.
7062 * common/configure: Regenerate with autoconf-2.64.
7064 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
7066 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7067 bool data type to a size of one byte.
7069 2011-02-15 Pedro Alves <pedro@codesourcery.com>
7070 Jan Kratochvil <jan.kratochvil@redhat.com>
7072 * target.c (memory_xfer_live_readonly_partial): Document where to
7073 look for interface description.
7075 2011-02-15 Yao Qi <yao@codesourcery.com>
7078 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7079 order to store PC value on stack instead of text section.
7081 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7083 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7084 the EFP register set size.
7085 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7086 data from the VMX register.
7087 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7088 and write data from/to the VMX register.
7090 2011-02-14 Michael Snyder <msnyder@vmware.com>
7092 * command.h (enum command_class): New class 'no_set_class', for
7093 "show" commands without a corresponding "set" command.
7094 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7095 * copying.c (_initialize_copying): Ditto for "show copying" and
7097 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7099 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7100 which there is no corresponding "set" command (eg. "show copying").
7102 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7103 Jan Kratochvil <jan.kratochvil@redhat.com>
7105 * exec.c (section_table_available_memory): Change `len' parameter
7107 * exec.h (section_table_available_memory): Ditto.
7108 * value.h (read_value_memory): Rename the `offset' parameter to
7111 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7112 Jan Kratochvil <jan.kratochvil@redhat.com>
7114 * memrange.c (compare_mem_ranges): Mention sort order in
7116 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7117 * tracepoint.c (traceframe_available_memory): Extend comment to
7118 mention what happens to RESULT when the target does not support
7121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7122 Jan Kratochvil <jan.kratochvil@redhat.com>
7124 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7127 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7129 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7130 No longer handle NULL values.
7132 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7134 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7135 * value.c: Include "exceptions.h".
7136 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7138 * cp-abi.c: Include gdb_assert.h.
7139 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7140 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7142 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7143 parameters. No longer returns -1 on error.
7144 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7146 * cp-valprint.c: Include exceptions.h.
7147 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7148 the baseclass_offset. Handle unavailable base classes. Use
7149 val_print_invalid_address.
7150 * p-valprint.c: Include exceptions.h.
7151 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7152 when fetching the baseclass_offset. No longer expect
7153 baseclass_offset returning -1. Handle unavailable base classes.
7154 Use val_print_invalid_address.
7155 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7156 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7157 `embedded_offset' and `val' parameters. Adjust.
7158 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7159 parameter, and change its type to gdb_byte pointer. Add
7160 `embedded_offset' and `val' parameters. Adjust. No longer expect
7161 baseclass_offset returning -1.
7162 (value_dynamic_cast): Use value_contents_for_printing rather than
7163 value_contents. Adjust.
7164 (search_struct_field): No longer expect baseclass_offset returning
7166 (search_struct_method): If reading memory from the target is
7167 necessary, wrap it in a new value to pass to baseclass_offset. No
7168 longer expect baseclass_offset returning -1.
7169 (find_method_list): No longer expect baseclass_offset returning
7170 -1. Use value_contents_for_printing rather than value_contents.
7171 * valprint.c (val_print_invalid_address): New function.
7172 * valprint.h (val_print_invalid_address): Declare.
7173 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7174 and `val' parameters. No longer expect baseclass_offset returning
7176 * gnu-v2-abi.c: Include "exceptions.h".
7177 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7178 parameters. Handle unavailable memory. Recurse through
7179 gnuv2_baseclass_offset directly, rather than through
7180 baseclass_offset. No longer returns -1 on not found, instead
7182 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7183 `val' parameters. Adjust.
7185 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7187 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7188 almost but not quite adjacent.
7190 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7192 * value.h (value_entirely_available): Declare.
7193 * value.c (value_entirely_available): New function.
7194 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7195 real type if the pointer is unavailable.
7197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7199 * valops.c (value_repeat): Use read_value_memory instead of
7202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7204 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7205 * value.c (value_contents_copy_raw, value_contents_copy): New
7207 (value_primitive_field): Use value_contents_copy_raw instead of
7209 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7211 (value_array, value_slice): Ditto.
7212 * valarith.c (value_subscripted_rvalue): Use
7213 value_contents_copy_raw instead of memcpy.
7215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7217 <unavailable> references.
7219 * valops.c (get_value_at): Use value_from_contents_and_address,
7220 avoiding read_memory.
7222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7224 * c-valprint.c (c_val_print): Print a string with unavailable
7225 contents as an array.
7227 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7229 * value.h (unpack_bits_as_long): Delete declaration.
7230 (unpack_value_bits_as_long): Declare.
7231 (unpack_value_field_as_long): Declare.
7232 (value_field_bitfield): Declare.
7233 * value.c (unpack_bits_as_long): Rename to...
7234 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7235 value parameters. Return the extracted result in a new output
7236 parameter. If the value contents are unavailable, return false,
7237 otherwise return true.
7238 (unpack_value_bits_as_long): New.
7239 (unpack_field_as_long): Rename to...
7240 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7241 Add embedded_offset and value parameters. Return the extracted
7242 result in a new output parameter. If the value contents are
7243 unavailable, return false, otherwise return true.
7244 (unpack_value_field_as_long): New.
7245 (unpack_field_as_long_1): New.
7246 (unpack_field_as_long): Reimplement as wrapper around
7247 unpack_value_field_as_long_1.
7248 (value_field_bitfield): New function.
7249 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7250 unpack_value_bits_as_long. Mark the value as unavailable, if it
7252 * jv-valprint.c (java_print_value_fields): Use
7253 value_field_bitfield.
7254 * p-valprint.c (pascal_object_print_value_fields): Use
7255 value_field_bitfield.
7256 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7258 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7260 * value.c (get_internalvar_integer): Also return the int value of
7261 TYPE_CODE_INT INTERNALVAR_VALUE values.
7262 (set_internalvar): Don't special case TYPE_CODE_INT.
7264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7266 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7267 INTERNALVAR_POINTER.
7269 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7270 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7271 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7273 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7275 * value.h (value_available_contents_eq): Declare.
7276 * value.c (find_first_range_overlap): New function.
7277 (value_available_contents_eq): New function.
7278 * valprint.c (val_print_array_elements): Use
7279 value_available_contents_eq.
7280 * ada-valprint.c (val_print_packed_array_elements): Use
7281 value_available_contents_eq.
7282 * jv-valprint.c (java_value_print): Use
7283 value_available_contents_eq.
7285 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7287 * target.c (target_read_live_memory): New function.
7288 (memory_xfer_live_readonly_partial): New.
7289 (memory_xfer_partial): If reading from a traceframe, fallback to
7290 reading unavailable read-only memory from read-only regions of
7292 * tracepoint.c (disconnect_tracing): Adjust.
7293 (set_current_traceframe): New, factored out from
7294 set_traceframe_number.
7295 (set_traceframe_number): Reimplement to only change the traceframe
7296 number on the GDB side.
7297 (do_restore_current_traceframe_cleanup): Adjust.
7298 (make_cleanup_restore_traceframe_number): New.
7299 (cur_traceframe_number): New global.
7300 (tfile_open): Set cur_traceframe_number to no traceframe.
7301 (set_tfile_traceframe): New function.
7302 (tfile_trace_find): If looking up a traceframe using any method
7303 other than by number, make sure the current tfile traceframe
7304 matches gdb's current traceframe. Update the current tfile
7305 traceframe if the lookup succeeded.
7306 (tfile_fetch_registers, tfile_xfer_partial)
7307 (tfile_get_trace_state_variable_value): Make sure the remote
7308 traceframe matches gdb's current traceframe.
7309 * remote.c (remote_traceframe_number): New global.
7310 (remote_open_1): Set it to -1.
7311 (set_remote_traceframe): New function.
7312 (remote_fetch_registers, remote_store_registers)
7313 (remote_xfer_memory, remote_xfer_partial)
7314 (remote_get_trace_state_variable_value): Make sure the remote
7315 traceframe matches gdb's current traceframe.
7316 (remote_trace_find): If looking up a traceframe using any method
7317 other than by number, make sure the current remote traceframe
7318 matches gdb's current traceframe. Update the current remote
7319 traceframe if the lookup succeeded.
7320 * infrun.c (fetch_inferior_event): Adjust.
7321 * tracepoint.h (set_current_traceframe): Declare.
7322 (get_traceframe_number, set_traceframe_number): Add describing
7325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7327 Mark pieces of values as unavailable if the corresponding memory
7330 * valops.c: Include tracepoint.h.
7331 (value_fetch_lazy): Use read_value_memory.
7332 (read_value_memory): New.
7333 * value.h (read_value_memory): Declare.
7334 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7335 * exec.c (section_table_available_memory): New function.
7336 * exec.h (section_table_available_memory): Declare.
7338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7340 * Makefile.in (SFILES): Add memrange.c.
7341 (HFILES_NO_SRCDIR): Add memrange.h.
7342 (COMMON_OBS): Add memrange.o.
7343 * memrange.c: New file.
7344 * memrange.h: New file.
7345 * tracepoint.c: Include memrange.h.
7346 (struct mem_range): Delete.
7347 (mem_range_s): Delete.
7348 (traceframe_available_memory): New function.
7349 * tracepoint.h (traceframe_available_memory): Declare.
7351 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7353 * target.h (struct traceframe_info): Forward declare.
7354 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7355 (struct target_ops) <to_traceframe_info>: New field.
7356 (target_traceframe_info): New.
7357 * target.c (update_current_target): Inherit and default
7359 * remote.c (PACKET_qXfer_traceframe_info): New.
7360 (remote_protocol_features): Register qXfer:traceframe-info:read.
7361 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7362 (remote_traceframe_info): New.
7363 (init_remote_ops): Install it.
7364 (_initialize_remote): Install "set/show remote traceframe-info"
7366 * tracepoint.h (parse_traceframe_info): Declare.
7367 * tracepoint.c (struct mem_range): New.
7368 (mem_range_s): New typedef.
7369 (struct traceframe_info): New.
7370 (traceframe_info): New global.
7371 (free_traceframe_info): New function.
7372 (clear_traceframe_info): New function.
7373 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7375 (build_traceframe_info): New function.
7376 (tfile_traceframe_info): New function.
7377 (init_tfile_ops): Install tfile_traceframe_info.
7378 (traceframe_info_start_memory, free_result): New functions.
7379 (memory_attributes, traceframe_info_elements): New globals.
7380 (parse_traceframe_info, get_traceframe_info): New functions.
7381 * features/traceframe-info.dtd: New file.
7382 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7384 2011-02-14 Pedro Alves <pedro@codesourcery.com>
7386 Base support for <unavailable> value contents.
7388 * value.h (value_bytes_available): Declare.
7389 (mark_value_bytes_unavailable): Declare.
7390 * value.c (struct range): New struct.
7391 (range_s): New typedef.
7392 (ranges_overlap): New function.
7393 (range_lessthan): New function.
7394 (ranges_contain_p): New function.
7395 (struct value) <unavailable>: New field.
7396 (value_bytes_available): New function.
7397 (mark_value_bytes_unavailable): New function.
7398 (require_not_optimized_out): Constify parameter.
7399 (require_available): New function.
7400 (value_contents_all, value_contents): Require all bytes be
7402 (value_free): Free `unavailable'.
7403 (value_copy): Copy `unavailable'.
7404 * valprint.h (val_print_unavailable): Declare.
7405 * valprint.c (valprint_check_validity): Rename `offset' parameter
7406 to `embedded_offset'. If printing a scalar, check whether the
7407 value chunk is available.
7408 (val_print_unavailable): New.
7409 (val_print_scalar_formatted): Check whether the value is
7411 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7412 pretty-printing unavailable values.
7414 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7416 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7417 * c-typeprint.c (c_type_print_args): Update the function comment. New
7418 variable param_type, initialize it. Remove const/volatile qualifiers
7419 for language_cplus and !show_artificial. Use param_type.
7421 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7423 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7424 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7425 * symtab.h (struct symtab) <next>: Comment extension.
7427 2011-02-12 Yao Qi <yao@codesourcery.com>
7429 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7431 2011-02-11 Yao Qi <yao@codesourcery.com>
7433 * common/Makefile.in: Add copyright header.
7435 2011-02-11 Pedro Alves <pedro@codesourcery.com>
7437 * infrun.c (proceed): Move switching out and in of tfind mode from
7439 (fetch_inferior_event): ... to here.
7441 2011-02-11 Yao Qi <yao@codesourcery.com>
7443 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7445 * configure.ac: Add common to sub dir.
7446 * configure: Regenerate.
7448 2011-02-11 Yao Qi <yao@codesourcery.com>
7452 * common/Makefile.in: New.
7453 * common/configure.ac: New.
7454 * common/aclocal.m4: New.
7455 * common/configure: Generate.
7457 2011-02-10 Pedro Alves <pedro@codesourcery.com>
7459 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7460 side of the parenthesis.
7463 2010-07-13 Jakub Jelinek <jakub@redhat.com>
7464 * vec.h (VEC_block_remove): Fix comment.
7466 2011-02-08 Michael Snyder <msnyder@vmware.com>
7468 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7470 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7473 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7476 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7479 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7481 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7482 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7484 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7486 * dwarf2read.c (read_subroutine_type): Set special calling
7487 convention flag for functions compiled by IBM XL C for OpenCL.
7488 * ppc-sysv-tdep.c: Include "dwarf2.h"
7489 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7491 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7492 IBM OpenCL vector types calling convention.
7493 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7494 (ppc_sysv_abi_broken_return_value): Likewise.
7495 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7496 types calling convention.
7497 (ppc64_sysv_abi_return_value): Likewise.
7498 * spu-tdep.c: Include "dwarf2.h"
7499 (spu_return_value): Implement IBM OpenCL vector types calling
7502 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7504 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7505 correct ABI for AltiVec vector arguments.
7507 2011-02-07 Pedro Alves <pedro@codesourcery.com>
7509 * valprint.c (val_print): Extend comment.
7510 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7511 interface explanation to val_print.
7512 (ada_val_print_array): Adjust comment to current interface.
7513 (print_field_values): Adjust comment to current interface.
7514 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7515 explanation to val_print.
7516 * f-valprint.c (f_val_print): Ditto.
7517 * jv-valprint.c (java_val_print): Ditto.
7518 * m2-valprint.c (m2_val_print): Ditto.
7519 * p-valprint.c (pascal_val_print): Ditto.
7521 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7523 * breakpoint.c (parse_breakpoint_sals): Fix description.
7525 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
7526 Oguz Kayral <oguzkayral@gmail.com>
7528 * python/py-inferior.c (python_on_normal_stop): New function.
7529 (python_on_resume): New function.
7530 (python_inferior_exit): New function.
7531 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7532 inferior_exit observers.
7533 * python/py-evtregistry.c: New file.
7534 * python/py-threadevent.c : New file.
7535 * python/py-event.c: New file.
7536 * python/py-evts.c: New file.
7537 * python/py-continueevent.c: New file.
7538 * python/py-bpevent.c: New file.
7539 * python/py-signalevent.c: New file.
7540 * python/py-exetiedevent.c: New file.
7541 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7542 Move struct breakpoint_object from here...
7543 * python/python-internal.h: ... to here.
7544 * python/py-event.h: New file.
7545 * python/py-events.h: New file.
7546 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7547 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7548 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7549 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7550 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7551 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7552 Add build rules for all the above.
7554 2011-02-04 Tom Tromey <tromey@redhat.com>
7556 * dwarf2read.c (dwarf2_section_empty_p): New function.
7557 (dwarf2_read_section): Use dwarf2_section_empty_p.
7558 (dwarf2_section_size): New function.
7559 (dwarf2_get_section_info): Unconditionally read section.
7560 (dwarf2_read_index): Use dwarf2_section_empty_p.
7561 (partial_read_comp_unit_head): Use dwarf2_section_size.
7562 (dwarf2_symbol_mark_computed): Likewise.
7564 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7566 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7568 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7570 * mips-linux-tdep.c: Include xml-syscall.h.
7571 (mips_linux_get_syscall_number): New function.
7572 (mips_linux_init_abi): Add calls to
7573 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7574 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7575 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7576 * syscalls/mips-n32-linux.xml: New file.
7577 * syscalls/mips-n64-linux.xml: New file.
7578 * syscalls/mips-o32-linux.xml: New file.
7580 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7582 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7583 Complain about inverted range entries.
7584 (dwarf2_record_block_ranges): Likewise.
7586 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7589 * breakpoint.c (update_watchpoint): Fix name of the
7590 update_global_location_list function.
7591 (print_one_breakpoint): Fix typo.
7592 (_initialize_breakpoint): Remove extra space in hbreak help
7594 * breakpoint.h (struct bp_location) <length>: Fix field
7597 2011-02-04 Pedro Alves <pedro@codesourcery.com>
7599 * regcache.c (registers_changed_ptid): Don't explictly always
7600 clear `current_regcache'. Only clear current_thread_ptid and
7601 current_thread_arch when PTID matches. Only reinit the frame
7602 cache if PTID matches the current inferior_ptid. Move alloca(0)
7604 (registers_changed): ... here.
7606 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7608 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7609 starts with __stack_chk_guard as stack guard symbol.
7611 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7613 * disasm.c (compare_lines): Handle the end of sequence markers
7614 within the line table to better support disassembling over
7615 compilation unit boundaries.
7617 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7619 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7620 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7621 implementation even if no symbols are available.
7622 (thumb_analyze_prologue): Update call to skip_prologue_function.
7623 (arm_analyze_prologue): Likewise.
7625 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7627 * arm-tdep.c: Include "observer.h".
7628 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7629 (arm_exidx_data_key): New static variable.
7630 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7631 (struct arm_exidx_data): Likewise.
7632 (arm_exidx_data_free): New function.
7633 (arm_compare_exidx_entries): Likewise.
7634 (arm_obj_section_from_vma): Likewise.
7635 (arm_exidx_new_objfile): Likewise.
7636 (arm_find_exidx_entry): Likewise.
7637 (arm_exidx_fill_cache): Likewise.
7638 (arm_exidx_unwind_sniffer): Likewise.
7639 (arm_exidx_unwind): New global variable.
7640 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7641 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7642 observer. Register arm_exidx_data_key as objfile data.
7644 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7646 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7647 due to accessing uninitialized variable. Fix indentation.
7649 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7651 * c-valprint.c (c_value_print): When doing virtual base pointer
7652 adjustment, create a new value with adjusted contents rather than
7653 changing the contents of the value being printed (and getting it
7656 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7658 * xml-support.c (xml_find_attribute): New.
7659 (xinclude_start_include): Use it.
7660 * xml-support.h (xml_find_attribute): Declare.
7661 * memory-map.c (memory_map_start_memory)
7662 (memory_map_start_property): Use xml_find_attribute.
7663 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7665 * remote.c (start_thread): Use xml_find_attribute.
7666 * solib-target.c (library_list_start_segment)
7667 (library_list_start_section, library_list_start_library)
7668 (library_list_start_list): Use xml_find_attribute.
7669 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7670 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7671 (tdesc_start_field): Use xml_find_attribute.
7673 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7675 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7676 (BUILD_OCL_VTYPES): Update.
7678 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7680 * configure.ac: Work around non-GNU sed limitation when computing
7681 python version number.
7682 * configure: Regenerate.
7684 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7686 Fix debug printing of TYPE_INSTANCE.
7687 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7688 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7690 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7692 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7693 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7694 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7695 * ada-operator.inc: Rename the file to ...
7696 * ada-operator.def: ... here, wrap all the entries by macro OP.
7697 * expprint.c (op_name_standard): Remove all the entries. Include
7698 "std-operator.def" instead.
7699 * expression.h (enum exp_opcode): Include "std-operator.def" and
7700 "ada-operator.def". Move all the entries ...
7701 * std-operator.def: ... here, wrap all the entries by macro OP.
7703 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7705 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7706 * breakpoint.c (remove_jit_event_breakpoints): New function.
7707 * jit.c (jit_descriptor_addr): Delete.
7708 (registering_code): Delete.
7709 (clear_int): Delete.
7710 (jit_inferior_data): New variable.
7711 (struct jit_inferior_data): New type.
7712 (get_jit_inferior_data): New function.
7713 (jit_inferior_data_cleanup): New function.
7714 (jit_read_descriptor): Adjust.
7715 (jit_register_code): Adjust.
7716 (jit_breakpoint_re_set_internal): New function; move code here ...
7717 (jit_inferior_init): ... from here.
7718 (jit_breakpoint_re_set): Adjust.
7719 (jit_reset_inferior_data_and_breakpoints): New function.
7720 (jit_inferior_created_observer): Adjust.
7721 (jit_inferior_exit_hook): Adjust.
7722 (jit_executable_changed_observer): New function.
7723 (jit_event_handler): Adjust.
7724 (_initialize_jit): Adjust.
7726 2011-01-31 Michael Snyder <msnyder@vmware.com>
7728 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7731 2011-01-31 Tom Tromey <tromey@redhat.com>
7734 * python/python.c (execute_gdb_command): Call
7735 prevent_dont_repeat.
7736 * top.c (suppress_dont_repeat): New global.
7737 (dont_repeat): Use it.
7738 (prevent_dont_repeat): New function.
7739 * command.h (prevent_dont_repeat): Declare.
7741 2011-01-31 Tom Tromey <tromey@redhat.com>
7743 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7744 * python/py-breakpoint.c (bppy_set_silent): Use
7745 breakpoint_set_silent.
7746 (bppy_set_thread): Use breakpoint_set_thread.
7747 (bppy_set_task): Use breakpoint_set_task.
7748 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7749 (breakpoint_set_task): Declare.
7750 (make_breakpoint_silent): Remove.
7751 * breakpoint.c (breakpoint_set_silent): New function.
7752 (breakpoint_set_thread): Likewise.
7753 (breakpoint_set_task): Likewise.
7754 (make_breakpoint_silent): Remove.
7756 2011-01-31 Tom Tromey <tromey@redhat.com>
7758 * breakpoint.h (user_breakpoint_p): Declare.
7759 * breakpoint.c (user_breakpoint_p): New function.
7760 (breakpoint_1): Use it.
7761 (save_breakpoints): Likewise.
7763 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7765 * configure.ac: Add handling of Python distribution on Windows.
7766 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7767 sysconfig variables are not defined, then do not use them.
7768 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7769 instead. On Windows, return all paths using forward-slashes
7770 rather than backslashes.
7772 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7774 * configure.ac: Remove fallback behavior for building
7775 against Python. Remove tweaking of Python include path.
7776 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7777 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7778 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7779 Always restore CPPFLAGS and LIBS after linking test.
7780 * configure: Regenerated.
7781 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7782 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7783 * python/python-internal.h: Adjust includes of Python .h files.
7785 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7787 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7790 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7792 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7795 2011-01-31 Yao Qi <yao@codesourcery.com>
7797 * arm-linux-nat.c: Update calls to regcache_register_status
7798 instead of regcache_valid_p.
7799 * aix-thread.c: Likewise.
7800 * i386gnu-nat.c: Likewise.
7802 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7806 touching TYPE_FIELD_ARTIFICIAL.
7808 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7810 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7813 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7815 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7816 selected, don't try iterating over the traceframe's blocks.
7817 (tfile_has_stack): If there's no traceframe selected, then there's
7819 (tfile_has_registers): If there's no traceframe selected, then
7820 there's no registers.
7822 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7824 * target.c (memory_xfer_partial): No need to restore shadows if we
7825 haven't read anything.
7827 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7829 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7830 and val_print_scalar_formatted.
7832 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7834 * tracepoint.c (tfile_read): New.
7835 (tfile_open): Use it.
7836 (tfile_get_traceframe_address): Use it.
7837 (tfile_trace_find): Use it.
7838 (walk_blocks_callback_func): New typedef.
7839 (match_blocktype): New function.
7840 (traceframe_walk_blocks): New function.
7841 (traceframe_find_block_type): New function.
7842 (tfile_fetch_registers, tfile_xfer_partial)
7843 (tfile_get_trace_state_variable_value): Use
7844 traceframe_find_block_type and tfile_read.
7846 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7848 * remote-mips.c: Add internationalization mark ups. Remove
7849 trailing \n from already marked up strings.
7851 2011-01-26 Tom Tromey <tromey@redhat.com>
7853 * python/py-prettyprint.c (print_string_repr): Clear
7854 'addressprint' option when calling val_print_string.
7855 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7856 option when calling val_print_string.
7858 2011-01-26 Tom Tromey <tromey@redhat.com>
7860 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7862 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7864 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7865 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7866 (gdb_py_long_as_ulongest): New defines.
7867 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7868 (gdb_py_int_as_long): Declare.
7869 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7870 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7871 (valpy_long): Add comment.
7872 * python/py-utils.c (get_addr_from_python): Use
7873 gdb_py_long_as_ulongest. Handle overflow properly.
7874 (gdb_py_object_from_longest): New function.
7875 (gdb_py_object_from_ulongest): Likewise.
7876 (gdb_py_int_as_long): Likewise.
7877 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7878 * python/py-symtab.c (salpy_get_pc): Use
7879 gdb_py_long_from_ulongest.
7880 (salpy_get_line): Use PyInt_FromLong.
7881 * python/py-param.c (set_parameter_value): Use
7883 * python/py-lazy-string.c (stpy_get_address): Use
7884 gdb_py_long_from_ulongest.
7885 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7886 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7887 * python/py-breakpoint.c (bppy_set_thread): Use
7889 (bppy_set_task): Likewise.
7890 (bppy_set_ignore_count): Likewise.
7891 (bppy_set_hit_count): Likewise.
7892 * python/py-block.c (blpy_get_start): Use
7893 gdb_py_object_from_ulongest.
7894 (blpy_get_end): Likewise.
7895 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7897 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7900 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7901 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7902 equality test for objfile, initialize addr_low if needed.
7904 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7906 * tui/tui-regs.c (tui_register_format): Remove dead code.
7908 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7910 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7911 instead of print_scalar_formatted.
7912 (print_scalar_formatted): Don't handle 's' format strings here,
7913 and add an assertion that we never see such format here.
7914 * valprint.h (val_print_scalar_formatted): Declare.
7915 * valprint.c (val_print_scalar_formatted): New.
7916 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7917 instead of print_scalar_formatted.
7918 * jv-valprint.c (java_val_print): Ditto.
7919 * p-valprint.c (pascal_val_print): Ditto.
7920 * ada-valprint.c (ada_val_print_1): Ditto.
7921 * f-valprint.c (f_val_print): Ditto.
7922 * infcmd.c (registers_info): Ditto.
7923 * m2-valprint.c (m2_val_print): Ditto.
7925 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7927 * m2-valprint.c (print_unbounded_array): Pass
7928 value_contents_for_printing rather than value_contents, to
7929 m2_print_array_contents. Also pass in the value.
7931 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7933 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7934 (save_gdb_index_command): Switch to .gdb_index version 4.
7936 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7938 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7939 than frame_register, and always pass a valid value to val_print.
7941 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7943 Centralize printing "<optimized out>".
7945 * valprint.h (val_print_optimized_out): Declare.
7946 * cp-valprint.c (cp_print_value_fields): Use
7947 val_print_optimized_out.
7948 * jv-valprint.c (java_print_value_fields): Ditto.
7949 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7950 * printcmd.c (print_formatted): Ditto.
7951 * valprint.c (valprint_check_validity): Ditto.
7952 (value_check_printable): Ditto.
7953 (val_print_optimized_out): New.
7955 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7957 * infcmd.c (default_print_registers_info): Allocate values so to
7958 never pass a NULL value to val_print.
7960 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7962 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7963 boolean. Make sure to always pass a value that matches the
7964 contents buffer to callees. Preserve `address' for following
7966 * value.c (value_contents_for_printing_const): New.
7967 (value_address): Constify value argument.
7968 * value.h (value_contents_for_printing_const): Declare.
7969 (value_address): Constify value argument.
7971 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7973 * regcache.c (struct regcache_descr): Rename
7974 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7975 and sizeof_cooked_register_valid_p to
7976 sizeof_cooked_register_status.
7977 (init_regcache_descr): Adjust.
7978 (struct regcache): Rename register_valid_p field to
7980 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7981 (do_cooked_read): Adjust.
7982 (regcache_valid_p): Rename to ...
7983 (regcache_register_status): ... this. Adjust.
7984 (regcache_invalidate): Adjust.
7985 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7987 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7988 as unavailable, not valid.
7989 (regcache_dump): Adjust.
7990 * regcache.h (enum register_status): New.
7991 (regcache_register_status): Declare.
7992 (regcache_invalidate): Delete declaration.
7993 * corelow.c (get_core_registers): Adjust.
7994 * tracepoint.c (tfile_fetch_registers): Adjust.
7995 * trad-frame.c (REG_VALUE): Rename to ...
7996 (TF_REG_VALUE): ... this.
7997 (REG_UNKNOWN): Rename to ...
7998 (TF_REG_UNKNOWN): ... this.
7999 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8000 * mi/mi-main.c (register_changed_p): Adjust.
8002 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8004 * regcache.c (struct regcache_descr): Remove outdated comment.
8005 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8007 (regcache_xmalloc): Rename to ...
8008 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8009 Allocate the regcache type accordingly.
8010 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8011 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8012 cooked registers, not raw.
8013 (regcache_dup_no_passthrough): Delete.
8014 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8015 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8016 mention obsolete write_register_bytes.
8017 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8019 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8021 Stop remote_read_bytes from handling partial reads itself.
8023 * remote-fileio.c: Include target.h.
8024 (remote_fileio_write_bytes): Delete.
8025 (remote_fileio_func_open, remote_fileio_func_write)
8026 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8028 (remote_fileio_func_stat): Use target_read_memory and
8029 target_write_memory.
8030 (remote_fileio_func_gettimeofday): Use target_write_memory.
8031 (remote_fileio_func_system): Use target_read_memory.
8032 * remote.c (remote_write_bytes): Make it static.
8033 (remote_read_bytes): Don't handle partial reads here.
8034 * remote.h (remote_read_bytes): Delete declaration.
8036 2011-01-25 Pedro Alves <pedro@codesourcery.com>
8038 Simplify XML parsing a bit.
8040 * xml-support.h (gdb_xml_parse_quick): Declare.
8041 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8042 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8044 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8045 gdb_xml_create_parser_and_cleanup_1.
8046 (gdb_xml_parse_quick): New.
8047 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8048 * osdata.c (osdata_parse): Ditto.
8049 * remote.c (remote_threads_info): Ditto.
8050 * solib-target.c (solib_target_parse_libraries): Ditto.
8051 * xml-syscall.c (syscall_parse_xml): Ditto.
8052 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8054 2011-01-24 Kevin Buettner <kevinb@redhat.com>
8056 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8057 with remote-mips.o added to gdb_target_obs.
8058 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8060 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8062 * ada-valprint.c (val_print_packed_array_elements): Pass the
8063 correct struct value to val_print.
8064 (ada_val_print_1): Ditto.
8066 2011-01-24 Pedro Alves <pedro@codesourcery.com>
8068 Don't lose embedded_offset in printing routines throughout.
8070 * valprint.h (val_print_array_elements): Change prototype.
8071 * valprint.c (val_print_array_elements): Add `embedded_offset'
8072 parameter, and adjust to pass it down to val_print, while passing
8073 `valaddr' or `address' unmodified. Take embedded_offset into
8074 account when checking repetitions.
8075 * c-valprint.c (c_val_print): Pass embedded_offset to
8076 val_print_array_elements instead of adjusting `valaddr' and
8078 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8079 embedded_offset to val_print_array_elements instead of adjusting
8081 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8082 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8083 val_print_array_elements and pascal_object_print_value_fields
8084 instead of adjusting `valaddr'.
8085 (pascal_object_print_value_fields): Add `offset' parameter, and
8087 (pascal_object_print_value): Add `offset' parameter, and adjust to
8089 (pascal_object_print_static_field): Use
8090 value_contents_for_printing/value_embedded_offset, rather than
8092 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8093 parameter, and adjust to use it. Use
8094 value_contents_for_printing/value_embedded_offset, rather than
8096 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8097 (ada_val_print_array): Add `offset' parameter, and adjust to use
8099 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8100 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8101 Instead work with offsets. Use
8102 value_contents_for_printing/value_embedded_offset, rather than
8103 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8104 and use value_from_pointer to extract a target pointer, rather
8105 than value_from_longest.
8106 (print_variant_part): Add `offset' parameter. Replace
8107 `outer_valaddr' parameter by a new `outer_offset' parameter.
8108 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8109 (ada_value_print): Use
8110 value_contents_for_printing/value_embedded_offset, rather than
8112 (print_record): Add `offset' parameter, and adjust to pass it
8114 (print_field_values): Add `offset' parameter. Replace
8115 `outer_valaddr' parameter by a new `outer_offset' parameter.
8116 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8117 Use value_contents_for_printing/value_embedded_offset, rather than
8119 * d-valprint.c (dynamic_array_type): Use
8120 value_contents_for_printing/value_embedded_offset, rather than
8122 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8123 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8124 (java_print_value_fields): Take `offset' into account. Don't
8125 re-adjust `valaddr'. Instead pass down adjusted offsets.
8126 (java_val_print): Take `embedded_offset' into account. Pass it to
8127 java_print_value_fields.
8128 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8129 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8130 down adjusted offsets.
8131 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8132 (f_val_print): Take `embedded_offset' into account.
8134 2011-01-21 Joel Brobecker <brobecker@adacore.com>
8136 * inflow.c: Include "gdbcmd.h".
8137 (interactive_mode): New static global, moved here from top.c.
8138 (show_interactive_mode): New function, moved here from top.c.
8139 use gdb_has_a_terminal instead of input_from_terminal_p to
8140 determine the current mode.
8141 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8143 (_initialize_inflow): Add the "set/show interactive-mode"
8144 commands. Moved here from top.c, after having adjusted slightly
8146 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8148 (input_from_terminal_p): Remove handling of "interactive-mode"
8149 setting, moved to infow.c.
8150 (init_main): Remove creation of the "set/show interactive-mode"
8151 commands, moved to inflow.c.
8153 2011-01-19 Joel Brobecker <brobecker@adacore.com>
8155 * NEWS: Add entry for native ia64-hpux support.
8157 2011-01-19 Tom Tromey <tromey@redhat.com>
8160 * thread.c (free_thread): Free 'name'.
8161 (print_thread_info): Emit thread name. Change CLI output.
8162 (thread_name_command): New function.
8163 (do_captured_thread_select): Emit newline.
8164 (_initialize_thread): Register 'thread name' command.
8165 * target.h (struct target_ops) <to_thread_name>: New field.
8166 (target_thread_name): New macro.
8167 * target.c (update_current_target): Handle to_thread_name.
8168 * python/py-infthread.c (thpy_get_name): New function.
8169 (thpy_set_name): Likewise.
8170 (thread_object_getset): Add "name".
8171 * linux-nat.c (linux_nat_thread_name): New function.
8172 (linux_nat_add_target): Set to_thread_name.
8173 * gdbthread.h (struct thread_info) <name>: New field.
8175 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8177 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8178 (ada_val_print_1): Likewise.
8180 2011-01-18 Joel Brobecker <brobecker@adacore.com>
8182 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8183 upper limit address is not greater than the function end address
8184 when the upper limit could not be computed using the debugging
8187 2011-01-17 Tom Tromey <tromey@redhat.com>
8189 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8191 * utils.c: Include gdb_regex.h.
8192 (do_regfree_cleanup): New function.
8193 (make_regfree_cleanup): Likewise.
8194 (get_regcomp_error): Likewise.
8195 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8197 2011-01-17 Tom Tromey <tromey@redhat.com>
8199 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8202 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8204 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8205 for internal variables.
8206 (last_was_structop): New static variable.
8207 (COMPLETE): New token.
8208 (field_exp): New rule to group all '.' suffix handling.
8209 Add mark_struct_expression calls when approriate to be able
8210 to correctly find fields for completion.
8211 (yylex): Adapt to handle field completion and set INTVAR when
8214 2011-01-14 Yao Qi <yao@codesourcery.com>
8216 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8217 save_reggroup, restore_reggroup and all_reggroup.
8219 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8221 * ada-valprint. (ada_printchar): Use the correct type length
8222 in call to ada_emit_char.
8223 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8225 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8227 * solib-som.h (hpux_major_release): Declare variable here.
8228 * solib-som.c: Remove <sys/utsname.h> header.
8229 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8230 (hpux_major_release): Make global, change default value to
8231 DEFAULT_HPUX_MAJOR_RELEASE.
8232 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8233 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8234 Add "solib-som.h" header.
8235 (set_hpux_major_release): New function.
8236 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8238 2011-01-14 Mike Frysinger <vapier@gentoo.org>
8240 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8242 2011-01-14 Joel Brobecker <brobecker@adacore.com>
8244 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8245 new-line at end of warning message.
8246 (ia64_hpux_store_register): Remove trailing new-line at end of
8248 * ia64-hpux-tdep.c: Rephrase comment.
8249 * solib-ia64-hpux.c (struct dld_info): Change type of field
8250 dld_flags from "long long" to ULONGEST.
8252 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8254 * target.h (deprecated_child_ops): Delete declaration.
8255 * target.c (deprecated_child_ops): Delete definition.
8257 2011-01-14 Pedro Alves <pedro@codesourcery.com>
8259 * Makefile.in (hpux-thread.o): Delete rule.
8260 * configure.ac: Don't check for HPUX DCE threads support.
8261 * configure, config.in: Regenerate.
8262 * hppa-hpux-nat.c (child_suppress_run): Delete.
8263 (hppa_hpux_child_can_run): Delete.
8264 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8265 * hpux-thread.c: Delete.
8267 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8269 * hpux-thread.c (hpux_pid_to_str): Delete.
8271 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8273 * ada-valprint.c (ada_emit_char): Remove strange code.
8274 Check that c is <= UCHAR_MAX before passing it to isascii.
8275 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8277 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8279 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8280 to the case where instream is stdin.
8282 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8284 * ia64-tdep.h (struct regcache): Forward declare.
8285 (struct ia64_infcall_ops): New struct type.
8286 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8288 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8289 Renames ia64_find_global_pointer.
8290 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8291 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8292 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8294 (ia64_infcall_ops): New static global constant.
8295 (ia64_gdbarch_init): Set tdep->infcall_ops.
8296 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8297 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8298 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8299 (ia64_hpux_dummy_code): New static global constant.
8300 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8301 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8302 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8304 (ia64_hpux_infcall_ops): New static global constant.
8305 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8306 for inferior function calls to work properly on ia64-hpux.
8308 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8310 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8311 * ia64-tdep.h (struct frame_info): forward declaration.
8312 (struct gdbarch_tdep): Add field size_of_register_frame.
8313 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8314 to determine the size of the register frame.
8315 (ia64_size_of_register_frame): New function.
8316 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8317 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8318 (IA64_HPUX_UREG_REASON): New macro.
8319 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8321 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8322 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8323 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8326 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8328 Add support for ia64-hpux.
8329 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8330 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8332 * configure.host: Add handling for ia64-hpux hosts. Add associated
8334 * configure.tgt: Add handling for ia64-hpux targets.
8335 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8336 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8337 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8339 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8341 [ttrace] Compute thread list immediately after attach.
8342 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8344 (inf_ttrace_attach): Use it.
8346 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8348 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8349 if we could not determine the frame's function address. Instead,
8350 use the frame's PC, and then continue.
8352 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8354 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8355 not already defined.
8357 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8359 * ia64-tdep.c (ia64_struct_type_p): New function.
8360 (ia64_extract_return_value): Handle integral values that are
8361 less than 8 bytes long.
8362 (ia64_push_dummy_call): Likewise.
8364 2011-01-13 Joel Brobecker <brobecker@adacore.com>
8366 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8367 floatformat_ia64_ext.
8368 (floatformat_ia64_ext_big): New static const.
8369 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8371 2011-01-12 Tom Tromey <tromey@redhat.com>
8373 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8375 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8376 (mi_cmd_thread_list_ids): Likewise.
8377 (mi_cmd_data_list_changed_registers): Likewise.
8378 (mi_cmd_data_list_register_values): Likewise.
8379 (mi_cmd_data_write_register_values): Likewise.
8380 (mi_cmd_data_evaluate_expression): Likewise.
8381 (mi_cmd_data_read_memory): Likewise.
8382 (mi_cmd_data_read_memory_bytes): Likewise.
8383 (mi_cmd_data_write_memory): Likewise.
8384 (mi_cmd_enable_timings): Likewise.
8385 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8386 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8387 (mi_cmd_var_delete): Likewise.
8388 (mi_cmd_var_set_format): Likewise.
8389 (mi_cmd_var_show_format): Likewise.
8390 (mi_cmd_var_info_num_children): Likewise.
8391 (mi_cmd_var_list_children): Likewise.
8392 (mi_cmd_var_info_type): Likewise.
8393 (mi_cmd_var_info_expression): Likewise.
8394 (mi_cmd_var_show_attributes): Likewise.
8395 (mi_cmd_var_assign): Likewise.
8396 (mi_cmd_var_update): Likewise.
8397 (mi_cmd_enable_pretty_printing): Likewise.
8398 (mi_cmd_var_set_update_range): Likewise.
8399 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8401 (mi_cmd_target_file_put): Likewise.
8402 (mi_cmd_target_file_delete): Likewise.
8403 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8405 (mi_cmd_stack_info_depth): Likewise.
8406 (mi_cmd_stack_list_locals): Likewise.
8407 (mi_cmd_stack_list_args): Likewise.
8408 (mi_cmd_stack_select_frame): Likewise.
8409 (mi_cmd_stack_select_frame): Likewise.
8410 (mi_cmd_stack_info_frame): Likewise.
8411 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8413 (mi_cmd_file_list_exec_source_files): Likewise.
8414 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8415 (mi_cmd_env_cd): Likewise.
8416 (mi_cmd_env_path): Likewise.
8417 (mi_cmd_env_dir): Likewise.
8418 (mi_cmd_inferior_tty_show): Likewise.
8419 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8420 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8421 (mi_cmd_break_watch): Likewise.
8423 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8425 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8426 (ppc_linux_insert_hw_breakpoint): Likewise.
8427 (ppc_linux_remove_hw_breakpoint): Likewise.
8428 (ppc_linux_insert_watchpoint): Likewise.
8430 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8431 Jan Kratochvil <jan.kratochvil@redhat.com>
8433 PR fortran/11104 and DWARF unbound arrays detection.
8434 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8435 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8436 unspecified upper bound.
8437 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8438 variables array_size_array, tmp_type and offset_item. New variable
8439 array. Remove call to f77_get_upperbound. New variables array_type
8440 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8441 the final call to deprecated_set_value_type.
8443 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8445 Make value allocations more lazy.
8446 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8447 instead of allocate_value and set_value_lazy when possible.
8448 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8449 instead of allocate_value and set_value_lazy.
8450 * findvar.c (value_of_register_lazy): Likewise.
8451 (read_var_value): Remove V preallocation, call just check_typedef in
8452 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
8453 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8454 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8455 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8456 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8457 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8458 the end, remove set_value_lazy there.
8459 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8460 instead of allocate_value and set_value_lazy when possible.
8461 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8462 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8463 of allocate_value and set_value_lazy.
8464 (value_from_contents_and_address): Use allocate_value_lazy instead of
8465 allocate_value and set_value_lazy when possible.
8467 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
8469 * disasm.c (dump_insns): Support dumping opcodes for MI.
8470 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8471 dumping of instruction opcodes.
8473 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8475 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8478 2011-01-11 Tom Tromey <tromey@redhat.com>
8480 * thread.c (do_captured_thread_select): Emit newline before
8483 2011-01-11 Michael Snyder <msnyder@vmware.com>
8485 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8486 * score-tdep.c: Ditto.
8487 * score-tdep.h: Ditto.
8488 * ser-base.c: Ditto.
8489 * ser-go32.c: Ditto.
8492 * ser-mingw.c: Ditto.
8493 * ser-pipe.c: Ditto.
8495 * ser-unix.c: Ditto.
8496 * sh64-tdep.c: Ditto.
8497 * shnbsd-nat.c: Ditto.
8501 * solib-darwin.c: Ditto.
8502 * solib-frv.c: Ditto.
8504 * solib-irix.c: Ditto.
8505 * solib-osf.c: Ditto.
8506 * solib-pa64.c: Ditto.
8507 * solib-som.c: Ditto.
8508 * solib-spu.c: Ditto.
8509 * solib-sunos.c: Ditto.
8510 * solib-svr4.c: Ditto.
8512 * sol-thread.c: Ditto.
8516 * sparc64-linux-tdep.c: Ditto.
8517 * sparc64-tdep.c: Ditto.
8518 * sparc-linux-nat.c: Ditto.
8519 * sparc-linux-tdep.c: Ditto.
8520 * sparc-sol2-nat.c: Ditto.
8521 * sparc-sol2-tdep.c: Ditto.
8522 * sparc-tdep.c: Ditto.
8523 * sparc-tdep.h: Ditto.
8524 * spu-tdep.c: Ditto.
8525 * stabsread.c: Ditto.
8526 * stabsread.h: Ditto.
8534 * target-descriptions.c: Ditto.
8535 * target-descriptions.h: Ditto.
8537 * target-memory.c: Ditto.
8538 * terminal.h: Ditto.
8541 * tracepoint.c: Ditto.
8542 * tracepoint.h: Ditto.
8543 * trad-frame.h: Ditto.
8544 * typeprint.c: Ditto.
8546 2011-01-11 Michael Snyder <msnyder@vmware.com>
8548 * ui-file.c: Comment cleanup, mostly periods and spaces.
8553 * v850-tdep.c: Ditto.
8554 * valarith.c: Ditto.
8556 * valprint.c: Ditto.
8557 * valprint.h: Ditto.
8562 * vax-tdep.c: Ditto.
8566 * windows-nat.c: Ditto.
8567 * windows-tdep.c: Ditto.
8568 * xcoffread.c: Ditto.
8569 * xcoffsolib.c: Ditto.
8570 * xml-support.c: Ditto.
8571 * xstormy16-tdep.c: Ditto.
8572 * xtensa-tdep.c: Ditto.
8573 * xtensa-tdep.h: Ditto.
8575 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8577 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8578 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8580 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8581 Thiago Jung Bauermann <bauerman@br.ibm.com>
8583 Implement support for PowerPC BookE ranged watchpoints.
8585 (struct breakpoint_ops) <resources_needed>: New method.
8586 Initialize to NULL in all existing breakpoint_ops instances.
8587 (struct breakpoint) <exact>: New field.
8588 (target_exact_watchpoints): Declare external global.
8589 * breakpoint.c (target_exact_watchpoints): New global flag.
8590 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8591 b->enable_state to bp_enabled before calling
8592 hw_watchpoint_used_count.
8593 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8594 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8596 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8597 if the watchpoint is exact.
8598 (resources_needed_watchpoint): New function.
8599 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8600 (watch_command_1): Set b->exact if the user asked for an exact
8601 watchpoint and one can be set.
8602 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8603 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8604 the user asks for an exact watchpoint and one can be set. Return
8605 number of needed debug registers to watch the expression.
8606 * gdbtypes.c (is_scalar_type): New function, based on
8607 valprint.c:scalar_type_p.
8608 (is_scalar_type_recursive): New function.
8609 * gdbtypes.h (is_scalar_type_recursive): Declare.
8610 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8611 handle regions when ranged watchpoints are available.
8612 (create_watchpoint_request): New function.
8613 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8614 create_watchpoint_request.
8615 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8616 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8617 `set powerpc' and `show powerpc' commands.
8618 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8619 Mention documentation comment in the target macro.
8620 (target_region_ok_for_hw_watchpoint): Document return value.
8622 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8624 * breakpoint.c (update_watchpoint): Decide on using a software or
8625 hardware watchpoint after the bp_locations are created.
8627 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8629 Convert hardware watchpoints to use breakpoint_ops.
8630 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8631 <insert_location>: ... this. Return int instead of void.
8632 Accept pointer to struct bp_location instead of pointer to
8633 struct breakpoint. Adapt all implementations.
8634 (breakpoint_ops) <remove>: Rename to...
8635 <remove_location>: ... this. Accept pointer to struct bp_location
8636 instead of pointer to struct breakpoint. Adapt all implementations.
8637 * breakpoint.c (insert_catchpoint): Delete function.
8638 (insert_bp_location): Call the watchpoint or catchpoint's
8639 breakpoint_ops.insert method.
8640 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8641 breakpoint_ops.remove method.
8642 (insert_watchpoint, remove_watchpoint): New functions.
8643 (watchpoint_breakpoint_ops): New structure.
8644 (watch_command_1): Initialize the OPS field.
8645 * inf-child.c (inf_child_insert_fork_catchpoint)
8646 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8647 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8648 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8650 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8651 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8652 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8653 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8654 * target.c (update_current_target): Change default implementation of
8655 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8656 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8657 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8658 to_set_syscall_catchpoint to return_one.
8659 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8660 (debug_to_insert_exec_catchpoint): Report return value.
8661 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8662 (to_insert_exec_catchpoint): Change declaration to return int instead
8665 2011-01-11 Michael Snyder <msnyder@vmware.com>
8667 * arm-tdep.c: Internationalization.
8670 * fork-child.c: Ditto.
8671 * nto-procfs.c: Ditto.
8672 * ppc-sysv-tdep.c: Ditto.
8674 * remote-mips.c: Ditto.
8676 * rs6000-nat.c: Ditto.
8677 * rs6000-tdep.c: Ditto.
8681 * xml-support.c: Ditto.
8682 * mi/mi-cmd-break.c: Ditto.
8683 * mi/mi-cmd-var.c: Ditto.
8684 * mi/mi-interp.c: Ditto.
8685 * mi/mi-main.c: Ditto.
8687 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8689 * remote-sim.c (gdbsim_store_register): Update API to
8690 sim_store_register to check more error conditions.
8692 2011-01-10 Michael Snyder <msnyder@vmware.com>
8694 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8695 * nto-tdep.c: Ditto.
8696 * nto-tdep.h: Ditto.
8697 * objc-exp.y: Ditto.
8698 * objc-lang.c: Ditto.
8699 * objfiles.c: Ditto.
8700 * objfiles.h: Ditto.
8701 * observer.c: Ditto.
8702 * opencl-lang.c: Ditto.
8705 * parser-defs.h: Ditto.
8708 * posix-hdep.c: Ditto.
8709 * ppcbug-rom.c: Ditto.
8710 * ppc-linux-nat.c: Ditto.
8711 * ppc-linux-tdep.c: Ditto.
8712 * ppc-linux-tdep.h: Ditto.
8713 * ppcnbsd-tdep.c: Ditto.
8714 * ppcobsd-tdep.c: Ditto.
8715 * ppcobsd-tdep.h: Ditto.
8716 * ppc-sysv-tdep.c: Ditto.
8717 * ppc-tdep.h: Ditto.
8718 * printcmd.c: Ditto.
8719 * proc-abi.c: Ditto.
8720 * proc-flags.c: Ditto.
8722 * proc-utils.h: Ditto.
8723 * progspace.h: Ditto.
8724 * prologue-value.c: Ditto.
8725 * prologue-value.h: Ditto.
8726 * psympriv.h: Ditto.
8728 * p-typeprint.c: Ditto.
8729 * p-valprint.c: Ditto.
8730 * ravenscar-sparc-thread.c: Ditto.
8731 * ravenscar-thread.c: Ditto.
8732 * ravenscar-thread.h: Ditto.
8734 * regcache.c: Ditto.
8735 * regcache.h: Ditto.
8737 * remote-fileio.c: Ditto.
8738 * remote-fileio.h: Ditto.
8740 * remote-m32r-sdi.c: Ditto.
8741 * remote-mips.c: Ditto.
8742 * remote-sim.c: Ditto.
8743 * rs6000-aix-tdep.c: Ditto.
8744 * rs6000-nat.c: Ditto.
8745 * rs6000-tdep.c: Ditto.
8747 2011-01-10 Michael Snyder <msnyder@vmware.com>
8749 * charset.c (validate): Internationalization.
8750 * coffread.c (read_one_sym): Ditto.
8751 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8752 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8753 * inflow.c (new_tty): Ditto.
8754 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8755 * m32c-tdep.c (m32c_return_value): Ditto.
8756 * mep-tdep.c (mep_store_return_value): Ditto.
8757 * score-tdep.c (score7_fetch_insn): Ditto.
8758 * ser-mingw.c (pipe_windows_open): Ditto.
8759 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8760 * spu-tdep.c (spu_register_type): Ditto.
8761 * tracepoint.c (trace_find_command): Ditto.
8762 * valarith.c (value_pos): Ditto.
8764 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8766 * ada-valprint.c (printstr): Minor comment reformatting.
8768 2011-01-08 Michael Snyder <msnyder@vmware.com>
8770 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8773 2011-01-08 Michael Snyder <msnyder@vmware.com>
8775 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8776 * hppa-hpux-tdep.c: Ditto.
8777 * hppa-linux-nat.c: Ditto.
8778 * hppa-linux-tdep.c: Ditto.
8779 * hppanbsd-tdep.c: Ditto.
8780 * hppa-tdep.c: Ditto.
8781 * hppa-tdep.h: Ditto.
8782 * hpux-thread.c: Ditto.
8783 * i386-cygwin-tdep.c: Ditto.
8784 * i386-darwin-nat.c: Ditto.
8785 * i386gnu-nat.c: Ditto.
8786 * i386-linux-nat.c: Ditto.
8787 * i386-linux-tdep.c: Ditto.
8788 * i386-nat.c: Ditto.
8789 * i386-nat.h: Ditto.
8790 * i386nbsd-tdep.c: Ditto.
8791 * i386-sol2-nat.c: Ditto.
8792 * i386-stub.c: Ditto.
8793 * i386-tdep.c: Ditto.
8794 * i386-tdep.h: Ditto.
8795 * i387-tdep.c: Ditto.
8796 * ia64-linux-nat.c: Ditto.
8797 * ia64-linux-tdep.c: Ditto.
8798 * ia64-tdep.c: Ditto.
8802 * inferior.c: Ditto.
8803 * inferior.h: Ditto.
8809 * iq2000-tdep.c: Ditto.
8810 * irix5-nat.c: Ditto.
8816 * jv-typeprint.c: Ditto.
8817 * jv-valprint.c: Ditto.
8818 * language.c: Ditto.
8819 * language.h: Ditto.
8820 * linespec.c: Ditto.
8821 * linux-fork.c: Ditto.
8822 * linux-nat.c: Ditto.
8823 * linux-thread-db.c: Ditto.
8824 * lm32-tdep.c: Ditto.
8826 2011-01-08 Michael Snyder <msnyder@vmware.com>
8828 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8830 * m2-typeprint.c: Ditto.
8831 * m2-valprint.c: Ditto.
8832 * m32c-tdep.c: Ditto.
8833 * m32r-linux-nat.c: Ditto.
8834 * m32r-rom.c: Ditto.
8835 * m32r-tdep.c: Ditto.
8836 * m32r-tdep.h: Ditto.
8837 * m68hc11-tdep.c: Ditto.
8838 * m58klinux-nat.c: Ditto.
8839 * m68k-tdep.c: Ditto.
8840 * m88k-tdep.c: Ditto.
8841 * m88k-tdep.h: Ditto.
8842 * machoread.c: Ditto.
8843 * macrocmd.c: Ditto.
8844 * macroexp.c: Ditto.
8845 * macrotab.c: Ditto.
8848 * mdebugread.c: Ditto.
8849 * mdebugread.h: Ditto.
8852 * memory-map.h: Ditto.
8853 * mep-tdep.c: Ditto.
8854 * microblaze-rom.c: Ditto.
8855 * microblaze-tdep.c: Ditto.
8857 * mips-irix-tdep.c: Ditto.
8858 * mips-linux-nat.c: Ditto.
8859 * mips-linux-tdep.c: Ditto.
8860 * mips-linux-tdep.h: Ditto.
8861 * mipsnbsd-nat.c: Ditto.
8862 * mipsnbsd-tdep.c: Ditto.
8863 * mipsread.c: Ditto.
8864 * mips-tdep.c: Ditto.
8865 * mips-tdep.h: Ditto.
8866 * mn10300-linux-tdep.c: Ditto.
8867 * mn10300-tdep.c: Ditto.
8868 * mn10300-tdep.h: Ditto.
8871 * moxie-tdep.c: Ditto.
8872 * moxie-tdep.h: Ditto.
8875 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8877 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8879 2011-01-08 Robert Millan <rmh@gnu.org>
8881 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8883 2011-01-07 Michael Snyder <msnyder@vmware.com>
8885 * charset.c (_initialize_charset): Fix typo in string.
8887 2011-01-07 Michael Snyder <msnyder@vmware.com>
8889 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8891 * tui/tui-layout.c (tui_set_layout_for_display_command):
8892 Split line so that operator goes to beginning of line.
8893 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8894 assignment out of if statement.
8896 2011-01-07 Michael Snyder <msnyder@vmware.com>
8898 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8899 * ada-lang.h: Ditto.
8900 * ada-tasks.c: Ditto.
8901 * ada-valprint.c: Ditto.
8902 * aix-threads.c: Ditto.
8903 * alpha-linux-nat.c: Ditto.
8904 * alpha-linux-tdep.c: Ditto.
8905 * alpha-mdebug-tdep.c: Ditto.
8906 * alpha-nat.c: Ditto.
8907 * alpha-osf1-tdep.c: Ditto.
8908 * alpha-tdep.c: Ditto.
8909 * alphabsd-nat.c: Ditto.
8910 * alphabsd-tdep.c: Ditto.
8911 * amd64-darwin-tdep.c: Ditto.
8912 * amd64-linux-nat.c: Ditto.
8913 * amd64-linux-tdep.c: Ditto.
8914 * amd64-sol2-tdep.c: Ditto.
8915 * amd64-tdep.c: Ditto.
8916 * amd64-fbsd-tdep.c: Ditto.
8917 * amd64-nbsd-tdep.c: Ditto.
8918 * amd64-obsd-tdep.c: Ditto.
8919 * amd64-linux-nat.c: Ditto.
8920 * amd64-linux-tdep.c: Ditto.
8921 * arm-tdep.c: Ditto.
8922 * arm-tdep.h: Ditto.
8923 * armnbsd-nat.c: Ditto.
8924 * avr-tdep.c: Ditto.
8925 * bfin-tdep.c: Ditto.
8927 * c-typeprintc: Ditto.
8928 * c-valprint.c: Ditto.
8929 * coff-pe-read.h: Ditto.
8930 * coffreead.c: Ditto.
8931 * cris-tdep.c: Ditto.
8933 * darwin-nat-info.c: Ditto.
8934 * darwin-nat.c: Ditto.
8935 * dbug-rom.c: Ditto.
8939 * dec-thread.c: Ditto.
8941 * demangle.c: Ditto.
8942 * dicos-tdep.c: Ditto.
8943 * dictionary.c: Ditto.
8944 * dictionary.h: Ditto.
8945 * dink32-rom.c: Ditto.
8947 * doublest.c: Ditto.
8949 * dummy-frame.c: Ditto.
8950 * dwarf2-frame.c: Ditto.
8951 * dwarf2expr.c: Ditto.
8952 * dwarf2loc.c: Ditto.
8953 * dwarf2read.c: Ditto.
8957 * event-top.h: Ditto.
8958 * exceptions.c: Ditto.
8959 * exceptions.h: Ditto.
8961 * expprint.c: Ditto.
8962 * expression.h: Ditto.
8966 * f-typeprint.c: Ditto.
8967 * f-valprint.c: Ditto.
8968 * fbsd-nat.c: Ditto.
8970 * fork-child.c: Ditto.
8973 * frv-linux-tdep.c: Ditto.
8974 * frv-tdep.c: Ditto.
8976 * gdb-stabs.h: Ditto.
8977 * gdb_assert.h: Ditto.
8978 * gdb_string.h: Ditto.
8979 * gdb_thread_db.h: Ditto.
8980 * gdb_wait.h: Ditto.
8981 * gdbarch.sh: Ditto.
8983 * gdbthread.h: Ditto.
8984 * gdbtypes.c: Ditto.
8985 * gdbtypes.h: Ditto.
8988 * gnu-v2-abi.c: Ditto.
8989 * gnu-v3-abi.c: Ditto.
8990 * go32-nat.c: Ditto.
8991 * gdbarch.c: Regenerate.
8992 * gdbarch.h: Regenerate.
8994 2011-01-07 Michael Snyder <msnyder@vmware.com>
8996 * ax-gdb.c: Adjust some long output strings.
8997 * breakpoint.c: Ditto.
9002 * linux-nat.c: Ditto.
9003 * solib-pa64.c: Ditto.
9004 * solib-som.c: Ditto.
9006 2011-01-06 Tom Tromey <tromey@redhat.com>
9010 * python/python.c (GdbMethods): Add "newest_frame" method.
9011 * python/python-internal.h (gdbpy_newest_frame): Declare.
9012 * python/py-frame.c (gdbpy_newest_frame): New function.
9014 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9016 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9017 * jit.c (jit_debug): New variable.
9018 (show_jit_debug): New function.
9019 (struct target_buffer): Use ULONGEST.
9020 (bfd_open_from_target_memory): Likewise.
9021 (jit_register_code, jit_inferior_init): Add debug output.
9022 (_initialize_jit): Register "debug jit" command.
9024 2011-01-06 Tom Tromey <tromey@redhat.com>
9026 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9027 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9030 2011-01-06 Tom Tromey <tromey@redhat.com>
9032 * python/py-frame.c (frapy_block): Use get_frame_block.
9034 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9036 Do not stop on SIGPRIO signals by default
9037 * infrun.c (_initialize_infrun): Unset signal_stop and
9038 signal_print for TARGET_SIGNAL_PRIO.
9040 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9042 * ada-tasks.c: Fix style violation in comment.
9044 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9046 * linespec.c (decode_compound, find_method): Remove trailing \n
9047 at end of error string.
9048 * solib-irix.c (irix_current_sos): Likewise.
9049 * varobj.c (uninstall_variable): Likewise.
9051 2011-01-06 Joel Brobecker <brobecker@adacore.com>
9053 * copyright.py: New script.
9054 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9055 Launch emacs without exec'ing. Call copyright.py afterwards.
9057 2011-01-05 Michael Snyder <msnyder@vmware.com>
9059 * addrmap.c: Shorten lines of >= 80 columns.
9060 * arch-utils.c: Ditto.
9061 * arch-utils.h: Ditto.
9063 * ax-general.c: Ditto.
9065 * blockframe.c: Ditto.
9066 * breakpoint.c: Ditto.
9067 * buildsym.c: Ditto.
9069 * c-typeprint.c: Ditto.
9071 * coffread.c: Ditto.
9075 * cp-namespace.c: Ditto.
9076 * cp-support.c: Ditto.
9077 * dbug-rom.c: Ditto.
9082 * dictionary.c: Ditto.
9084 * doublest.c: Ditto.
9085 * dwarf2-frame.c: Ditto.
9086 * dwarf2expr.c: Ditto.
9087 * dwarf2loc.c: Ditto.
9088 * dwarf2read.c: Ditto.
9091 * event-loop.c: Ditto.
9092 * event-loop.h: Ditto.
9093 * exceptions.h: Ditto.
9095 * expprint.c: Ditto.
9096 * expression.h: Ditto.
9098 * f-valprint.c: Ditto.
9100 * frame-base.c: Ditto.
9101 * frame-unwind.c: Ditto.
9102 * frame-unwind.h: Ditto.
9106 * gdb-stabs.h: Ditto.
9107 * gdb_assert.h: Ditto.
9108 * gdb_dirent.h: Ditto.
9109 * gdb_obstack.h: Ditto.
9111 * gdbtypes.c: Ditto.
9112 * gdbtypes.h: Ditto.
9113 * inf-ttrace.c: Ditto.
9118 * inline-frame.h: Ditto.
9119 * language.c: Ditto.
9120 * language.h: Ditto.
9121 * libunwind-frame.c: Ditto.
9122 * libunwind-frame.h: Ditto.
9123 * linespec.c: Ditto.
9124 * linux-nat.c: Ditto.
9125 * linux-nat.h: Ditto.
9126 * linux-thread-db.c: Ditto.
9127 * machoread.c: Ditto.
9128 * macroexp.c: Ditto.
9129 * macrotab.c: Ditto.
9132 * mdebugread.c: Ditto.
9137 * objfiles.c: Ditto.
9138 * objfiles.h: Ditto.
9140 * p-typeprint.c: Ditto.
9141 * p-valprint.c: Ditto.
9143 * printcmd.c: Ditto.
9144 * proc-events.c: Ditto.
9146 * progspace.c: Ditto.
9147 * progspace.h: Ditto.
9148 * psympriv.h: Ditto.
9151 * regcache.c: Ditto.
9152 * regcache.h: Ditto.
9153 * remote-fileio.c: Ditto.
9155 * ser-mingw.c: Ditto.
9157 * ser-unix.c: Ditto.
9160 * solib-frv.c: Ditto.
9161 * solib-irix.c: Ditto.
9162 * solib-osf.c: Ditto.
9163 * solib-pa64.c: Ditto.
9164 * solib-som.c: Ditto.
9165 * solib-sunos.c: Ditto.
9166 * solib-svr4.c: Ditto.
9167 * solib-target.c: Ditto.
9171 * stabsread.c: Ditto.
9172 * stabsread.c: Ditto.
9175 * symfile-mem.c: Ditto.
9181 * target-descriptions.c: Ditto.
9182 * target-memory.c: Ditto.
9185 * terminal.h: Ditto.
9188 * tracepoint.c: Ditto.
9189 * tracepoint.h: Ditto.
9193 * user-regs.c: Ditto.
9194 * user-regs.h: Ditto.
9196 * valarith.c: Ditto.
9198 * valprint.c: Ditto.
9199 * valprint.h: Ditto.
9204 * xcoffread.c: Ditto.
9205 * xcoffsolib.c: Ditto.
9206 * xcoffsolib.h: Ditto.
9207 * xml-syscall.c: Ditto.
9208 * xml-tdesc.c: Ditto.
9210 2011-01-05 Michael Snyder <msnyder@vmware.com>
9212 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9213 * cli/cli-decode.c: Ditto.
9214 * cli/cli-dump.c: Ditto.
9215 * cli/cli-logging.c: Ditto.
9216 * cli/cli-script.c: Ditto.
9217 * cli/cli-setshow.c: Ditto.
9218 * common/signals.c: Ditto.
9219 * mi/mi-cmd-break.c: Ditto.
9220 * mi/mi-cmd-disas.c: Ditto.
9221 * mi/mi-cmd-stack.c: Ditto.
9222 * mi/mi-cmd-var.c: Ditto.
9223 * mi/mi-cmds.c: Ditto.
9224 * mi/mi-common.h: Ditto.
9225 * mi/mi-console.c: Ditto.
9226 * mi/mi-interp.c: Ditto.
9227 * mi/mi-main.c: Ditto.
9228 * osf-share/cma_attr.c: Ditto.
9229 * osf-share/cma_deb_core.h: Ditto.
9230 * osf-share/cma_debug_client.h: Ditto.
9231 * osf-share/cma_handle.h: Ditto.
9232 * osf-share/cma_mutex.h: Ditto.
9233 * osf-share/cma_stack_int.h: Ditto.
9234 * osf-share/cma_tcb_defs.h: Ditto.
9235 * python/py-auto-load.c: Ditto.
9236 * python/py-breakpoint.c: Ditto.
9237 * python/py-cmd.c: Ditto.
9238 * python/py-frame.c: Ditto.
9239 * python/py-objfile.c: Ditto.
9240 * python/py-param.c: Ditto.
9241 * python/py-progspace.c: Ditto.
9242 * python/py-symbol.c: Ditto.
9243 * python/py-value.c: Ditto.
9244 * python/python-internal.h: Ditto.
9245 * python/python.c: Ditto.
9246 * tui/tui-data.c: Ditto.
9247 * tui/tui-disasm.c: Ditto.
9248 * tui/tui-hooks.c: Ditto.
9249 * tui/tui-io.c: Ditto.
9250 * tui/tui-layout.c: Ditto.
9251 * tui/tui-regs.c: Ditto.
9252 * tui/tui-source.c: Ditto.
9253 * tui/tui-stack.c: Ditto.
9254 * tui/tui-win.c: Ditto.
9255 * tui/tui-windata.c: Ditto.
9256 * tui/tui-winsource.c: Ditto.
9258 2011-01-05 Joel Brobecker <brobecker@adacore.com>
9260 * configure.ac, gdb.1: Copyright year update.
9262 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9264 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9265 this_pc_in_block, morestack_msym and morestack_name. Check for
9266 "__morestack" minimal symbol there.
9268 2011-01-03 Joel Brobecker <brobecker@adacore.com>
9270 * symfile.c (find_sym_fns): Add call to dont_repeat.
9272 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9274 Copyright year update in most files (performed by copyright.sh).
9276 2011-01-01 Joel Brobecker <brobecker@adacore.com>
9278 * top.c (print_gdb_version): Update copyright year in version output.
9280 For older changes see ChangeLog-2010.
9286 version-control: never