1 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5 reference to exec_pathname.
6 (struct exec_catchpoint): New type.
7 (dtor_catch_exec): New function.
8 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
9 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
10 (catch_exec_command_1): Adjust to use init_catchpoint.
11 (delete_breakpoint): Remove reference to exec_pathname.
13 2011-06-22 Pedro Alves <pedro@codesourcery.com>
15 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
16 (struct breakpoint): Delete field `syscalls_to_be_caught'.
17 * breakpoint.c (init_raw_breakpoint_without_location): Remove
18 reference to syscalls_to_be_caught.
19 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
21 (struct syscall_catchpoint): New type.
22 (dtor_catch_syscall): New function.
23 (insert_catch_syscall, remove_catch_syscall)
24 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
25 (print_recreate_catch_syscall): Adjust.
26 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
27 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
28 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
29 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
30 (masked_watchpoint_breakpoint_ops)
31 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
32 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
33 there is one. Remove references to syscalls_to_be_caught.
34 (catching_syscall_number): Adjust.
35 * ada-lang.c (catch_exception_breakpoint_ops)
36 (catch_exception_unhandled_breakpoint_ops)
37 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
39 2011-06-22 Pedro Alves <pedro@codesourcery.com>
41 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
43 * breakpoint.c (init_raw_breakpoint_without_location): Remove
44 reference to forked_inferior_pid.
45 (struct fork_catchpoint): New type.
46 (breakpoint_hit_catch_fork, print_it_catch_fork)
47 (print_one_catch_fork, breakpoint_hit_catch_vfork)
48 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
49 (create_fork_vfork_event_catchpoint): Adjust to use
52 2011-06-22 Pedro Alves <pedro@codesourcery.com>
54 * breakpoint.c (add_to_breakpoint_chain)
55 (init_raw_breakpoint_without_location): New functions, factored
57 (set_raw_breakpoint_without_location): ... this one.
58 (init_raw_breakpoint): New function, factored out from
59 set_raw_breakpoint and adjusted to use
60 init_raw_breakpoint_without_location.
61 (set_raw_breakpoint): Adjust.
62 (init_catchpoint): New function, factored out from
63 create_catchpoint_without_mention and adjusted to use
65 (create_catchpoint_without_mention): Adjust.
67 2011-06-22 Tom Tromey <tromey@redhat.com>
69 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
70 argument of 0 specially.
72 2011-06-22 Yao Qi <yao@codesourcery.com>
74 * infrun.c (handle_inferior_event): Remove write-only local variable
75 `sw_single_step_trap_p'.
77 2011-06-20 Tom Tromey <tromey@redhat.com>
79 * symtab.c (lookup_language_this): End loop if block is NULL.
81 2011-06-17 Tom Tromey <tromey@redhat.com>
83 * valops.c (value_of_this): Use lookup_language_this.
84 * symtab.h (lookup_language_this): Declare.
85 * symtab.c (lookup_language_this): New function.
86 (lookup_symbol_aux): Use lookup_language_this.
87 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
89 2011-06-17 Tom Tromey <tromey@redhat.com>
91 * value.h (value_of_this): Update.
92 (value_of_local): Remove.
93 * valops.c (value_of_this): Rename from value_of_local. Change
95 * p-exp.y (exp): Update.
97 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
99 2011-06-17 Tom Tromey <tromey@redhat.com>
101 * valops.c (value_of_local): Complain if NAME is NULL.
102 * std-operator.def (OP_OBJC_SELF): Remove.
103 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
104 * objc-exp.y (name_not_typename): Use OP_THIS.
105 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
107 <OP_OBJC_SELF>: Remove.
108 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
110 2011-06-16 Tristan Gingold <gingold@adacore.com>
112 * python/py-events.h (gdb_py_events): Make it extern.
113 * python/py-evtregistry.c (gdb_py_events): Declare.
115 2011-06-16 Hui Zhu <teawater@gmail.com>
117 * remote.c (remote_trace_set_readonly_regions): Add check for
118 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
121 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
123 * arm-linux-tdep.c: Include "auxv.h".
125 (ARM_LINUX_SIZEOF_VFP): Define.
126 (arm_linux_supply_vfp): New function.
127 (arm_linux_collect_vfp): Likewise.
128 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
129 (arm_linux_fpa_regset_sections): New variable.
130 (arm_linux_vfp_regset_sections): Likewise.
131 (arm_linux_core_read_description): New function.
132 (arm_linux_init_abi): Install arm_linux_core_read_description and
133 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
134 appropriate for the architecture.
135 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
136 (tdesc_arm_with_m): Declare.
137 (tdesc_arm_with_iwmmxt): Likewise.
138 (tdesc_arm_with_vfpv2): Likewise.
139 (tdesc_arm_with_vfpv3): Likewise.
140 (tdesc_arm_with_neon): Likewise.
141 * arm-linux-nat.c: Move features/*.c includes ...
142 * arm-tdep.c: ... here.
143 * arm-linux-nat.c (arm_linux_read_description): Move initializing
144 target description data structures ...
145 * arm-tdep.c (_initialize_arm_tdep): ... here.
146 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
147 HWCAP_VFPv3D16): Move definitions ...
148 * arm-linux-tdep.h: ... here.
150 2011-06-15 Hui Zhu <teawater@gmail.com>
152 * remote.c (remote_trace_set_readonly_regions): Add a check for
155 2011-06-14 Tom Tromey <tromey@redhat.com>
157 * coffread.c (coffread_objfile): Rename from current_objfile.
158 * dbxread.c (dbxread_objfile): Rename from current_objfile.
159 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
161 2011-06-14 Tom Tromey <tromey@redhat.com>
163 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
164 (class_symtab): Remove.
165 (jv_dynamics_progspace_key): New global.
166 (jv_per_objfile_free): Reset program space data. Update assert.
168 (get_dynamics_objfile): Use and set program space data.
169 (get_java_class_symtab): Use get_dynamics_objfile.
170 (add_class_symbol): Likewise.
171 (java_link_class_type): Likewise.
172 (java_object_type, jv_clear_object_type, set_java_object_type):
174 (get_java_object_type): Update. Don't cache result.
175 (is_object_type): Don't call set_java_object_type.
176 (_initialize_java_language): Don't set jv_type_objfile_data_key;
177 initialize jv_dynamics_progspace_key.
179 2011-06-14 Tom Tromey <tromey@redhat.com>
181 * symtab.h (current_objfile): Don't declare.
182 * objfiles.h (current_objfile): Don't declare.
183 * objfiles.c (current_objfile): Remove.
184 * mdebugread.c (current_objfile): New file-scope global.
185 * dbxread.c (current_objfile): New file-scope global.
186 * coffread.c (current_objfile): New file-scope global.
188 2011-06-13 Pedro Alves <pedro@codesourcery.com>
190 * top.h (line): Rename to ...
191 (saved_command_line): ... this.
192 (linesize): Rename to ...
193 (saved_command_line_size): ... this.
194 * top.c (line): Rename to ...
195 (saved_command_line): ... this.
196 (linesize): Rename to ...
197 (saved_command_line_size): ... this.
198 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
199 * event-top.c (command_line_handler): Adjust.
200 * main.c (captured_main): Adjust.
202 2011-06-12 Mark Kettenis <kettenis@gnu.org>
204 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
205 get_frame_func instead of get_frame_pc to determine the code
206 address used to construct the frame ID.
207 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
208 (i386_epilogue_frame_this_id): Likewise.
209 (i386_epilogue_frame_prev_register): New function.
210 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
211 (i386_stack_tramp_frame_sniffer): Fix coding style.
212 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
213 (i386_gdbarch_init): Fix comments.
215 2011-06-12 Mark Kettenis <kettenis@gnu.org>
217 * i386-tdep.c (i386_match_insn_block): Use length of the proper
218 instruction when walking back through the instruction stream.
220 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
222 * symtab.c (output_partial_symbol_filename): Exchange the filename and
223 fullname parameters order.
225 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
228 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
230 * psymtab.c (map_symbol_filenames_psymtab)
231 (map_partial_symbol_filenames): Likewise.
232 * psymtab.h: Include symfile.h.
233 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
234 * symfile.h (symbol_filename_ftype): New.
235 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
236 map_symbol_filenames, clarify more the naming in comment.
238 2011-06-07 Doug Evans <dje@google.com>
240 * cc-with-index.sh: Fix typos in comment.
241 Look for ../../gdb, for fullname.exp.
243 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
244 Pedro Alves <pedro@codesourcery.com>
246 * cli/cli-cmds.c (shell_escape): Use waitpid.
247 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
249 2011-06-07 Tristan Gingold <gingold@adacore.com>
251 * xcoffread.c (dwarf2_xcoff_names): New variable.
252 (aix_process_linenos): Add a guard.
253 (xcoff_symfile_finish): Free dwarf2.
254 (xcoff_initial_scan): Add dwarf2 support.
256 2011-06-06 Pedro Alves <pedro@codesourcery.com>
258 * infcall.c (run_inferior_call): Don't mask async. Instead force
259 a synchronous wait, if the target can async.
261 * target.h (struct target_ops): Delete to_async_mask.
262 (target_async_mask): Delete.
263 * target.c (update_current_target): Delete references to to_async_mask.
264 * linux-nat.c (linux_nat_async_mask_value): Delete.
265 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
266 to linux_nat_async_mask_value.
267 (linux_nat_async_mask): Delete.
268 (linux_nat_async, linux_nat_close): Remove references to
269 linux_nat_async_mask_value.
270 * record.c (record_async_mask_value): Delete.
271 (record_async): Remove references to record_async_mask_value.
272 (record_async_mask): Delete.
273 (record_can_async_p, record_is_async_p): Remove references to
274 record_async_mask_value.
275 (init_record_ops, init_record_core_ops): Remove references to
277 * remote.c (remote_async_mask_value): Delete.
278 (init_remote_ops): Remove reference to remote_async_mask.
279 (remote_can_async_p, remote_is_async_p): Remove references to
280 remote_async_mask_value.
281 (remote_async): Remove references to remote_async_mask_value.
282 (remote_async_mask): Delete.
284 * infrun.c (fetch_inferior_event): Don't claim registers changed
285 if the current thread is already not executing.
287 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
289 From Stephen Kitt <steve@sk2.org>
290 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
291 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
293 2011-06-03 Joel Brobecker <brobecker@adacore.com>
295 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
296 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
298 2011-06-03 Tom Tromey <tromey@redhat.com>
300 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
302 * python/py-exitedevent.c (create_exited_event_object): Change
303 type of 'exit_code'. Optionally add exit_code attribute.
304 (emit_exited_event): Change type of 'exit_code'.
305 * python/py-event.h (emit_exited_event): Update.
306 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
307 * infrun.c (handle_inferior_event): Set exit code fields on
309 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
311 * inferior.c (exit_inferior_1): Initialize new fields.
313 2011-06-03 Tom Tromey <tromey@redhat.com>
315 * dwarf2expr.c (get_signed_type): New function.
316 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
318 2011-06-02 Keith Seitz <keiths@redhat.com>
320 * objc-lang.c (find_methods): Increment objfile_csym earlier.
322 2011-06-02 Pedro Alves <pedro@codesourcery.com>
324 * top.h (simplified_command_loop): Delete declaration.
326 2011-06-01 Mike Frysinger <vapier@gentoo.org>
328 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
329 gdb_sysroot to the "len" variable. Append both to "arg_buf".
331 2011-06-01 Yao Qi <yao@codesourcery.com>
333 * objfiles.h (obj_section_addr): Update reference to objfile from
335 (obj_section_endaddr): Likewise.
337 2011-06-01 Daniel Jacobowitz <drow@false.org>
339 * MAINTAINERS: Update my email address and affiliation. Also
340 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
342 2010-05-31 Keith Seitz <keiths@redhat.com>
345 * linespec.c (get_search_block): New function.
346 (find_methods): Add FILE_SYMTATB parameter and use it and
347 get_search_block to pass an appropriate block to
348 lookup_symbol_in_namespace.
349 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
350 Check if *ARGPTR starts with a filename first.
351 If it does, call locate_first_half again to locate the next
352 "first half" of the linespec.
353 Pass FILE_SYMTATB to decode_objc and decode_compound.
354 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
355 (locate_first_half): Stop on the first colon seen.
356 (decode_compound): Add FILE_SYMTAB parameter.
357 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
358 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
359 get_search_block with lookup_symbol.
360 (find_method): Add FILE_SYMTAB parameter and pass it to
362 (decode_objc): Use get_search_block.
364 2010-05-31 Keith Seitz <keiths@redhat.com>
367 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
368 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
369 and CP_ANONYMOUS_NAMESPACE_LEN.
370 (cp_is_anonymous): Likewise.
371 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
372 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
373 * dwarf2read.c (namespace_name): Likewise.
374 (fixup_partial_die): Likewise.
375 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
376 seen in the input, keep it.
378 2011-05-30 Pedro Alves <pedro@codesourcery.com>
380 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
381 * inf-loop.h (inferior_event_handler_wrapper): Delete.
382 * inf-loop.c (inferior_event_handler_wrapper): Delete.
383 (inferior_event_handler): Don't handle INF_QUIT_REQ.
384 * remote.c (_initialize_remote): Register
385 async_remote_interrupt_twice directly as
386 sigint_remote_twice_token event.
388 2011-05-30 Pedro Alves <pedro@codesourcery.com>
390 * target.h (enum inferior_event_type): Delete INF_ERROR.
391 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
393 2011-05-30 Pedro Alves <pedro@codesourcery.com>
395 * interps.c (interp_set): Don't cancel continuations.
397 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
399 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
401 2011-05-30 Pedro Alves <pedro@codesourcery.com>
403 * continuations.h (continuation_ftype): Add `err' parameter.
405 (do_all_continuations, do_all_continuations_thread)
406 (do_all_intermediate_continuations)
407 (do_all_intermediate_continuations_thread)
408 (do_all_inferior_continuations): Add `err' parameter.
409 * continuations.c (do_my_continuations_1, do_my_continuations)
410 (do_all_inferior_continuations, do_all_continuations_ptid)
411 (do_all_continuations_thread_callback)
412 (do_all_continuations_thread, do_all_continuations)
413 (do_all_intermediate_continuations_thread_callback)
414 (do_all_intermediate_continuations_thread)
415 (do_all_intermediate_continuations): Add `err' parameter, and pass
416 it down all the way to the continuations proper.
417 * inf-loop.c (inferior_event_handler): If fetching an inferior
418 event throws an error, don't pop the target, and still call the
419 continuations, but with `err' set. Adjust all other continuation
421 * breakpoint.c (until_break_command_continuation): Add `err'
423 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
424 issue another step if `err' is set.
425 (struct until_next_continuation_args): New.
426 (until_next_continuation): Add `err' parameter. Adjust.
427 (until_next_command): Adjust.
428 (struct finish_command_continuation_args): Add `thread' field.
429 (finish_command_continuation): Add `err' parameter. Handle it.
430 (finish_forward): Adjust.
431 (attach_command_continuation): Add `err' parameter. Handle it.
432 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
433 cancel the continuations.
434 * interps.c (interp_set): Adjust to cancel the continuations.
435 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
436 continuations rather than discarding.
437 (free_thread): Don't clear thread inferior resources here.
438 (delete_thread_1): Do it here instead. And do it before removing
439 the thread from the threads list. Tag the thread as exited before
440 clearing thread inferior resources.
442 2011-05-30 Joel Brobecker <brobecker@adacore.com>
444 * infcall.c (call_function_by_hand): Rephrase error message.
446 2011-05-27 Pedro Alves <pedro@codesourcery.com>
448 * defs.h (struct thread_info, struct inferior): Delete forward
450 * breakpoint.h (struct thread_info): New forward declaration.
451 * observer.sh (struct inferior): New forward declaration.
452 * python/python-internal.h (struct inferior): New forward
455 2011-05-27 Pedro Alves <pedro@codesourcery.com>
457 * defs.h (struct continuation, continuation_ftype)
458 (continuation_free_arg_ftype, add_continuation)
459 (do_all_continuations, do_all_continuations_thread)
460 (discard_all_continuations, discard_all_continuations_thread)
461 (add_intermediate_continuation, do_all_intermediate_continuations)
462 (do_all_intermediate_continuations_thread)
463 (discard_all_intermediate_continuations)
464 (discard_all_intermediate_continuations_thread)
465 (add_inferior_continuation, do_all_inferior_continuations)
466 (discard_all_inferior_continuations): Move to ...
467 * continuations.h: ... this new file.
468 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
469 infcmd.c, inferior.c, infrun.c, interps.c: Include
472 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
473 Doug Evans <dje@google.com>
475 Fix PR 10970, PR 12702.
476 * linux-nat.c (linux_lwp_is_zombie): New function.
477 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
478 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
480 2011-05-27 Pedro Alves <pedro@codesourcery.com>
482 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
484 (add_continuation, add_intermediate_continuation)
485 (add_inferior_continuation): Use them.
486 * continuations.c (struct continuation): Use them.
487 (make_continuation_ftype): Delete.
488 (make_continuation, add_inferior_continuation, add_continuation)
489 (add_intermediate_continuation): Use continuation_ftype and
490 continuation_free_arg_ftype. Rename parameters to shorter names.
492 2011-05-27 Pedro Alves <pedro@codesourcery.com>
494 * continuations.c (make_continuation): Make it return void.
495 (do_my_continuations): Rename to ...
496 (do_my_continuations_1): ... this. Remove old_chain parameter and
498 (do_my_continuations): New.
499 (discard_my_continuations): Rename to ...
500 (discard_my_continuations_1): ... this. Remove old_chain
501 parameter and adjust.
502 (discard_my_continuations): New.
503 (add_inferior_continuation): Simplify.
504 (do_all_inferior_continuations): Reimplement on top
506 (discard_all_inferior_continuations): Simplify.
507 (add_continuation): Simplify.
508 (do_all_continuations_ptid): Simplify.
509 (discard_all_continuations_thread_callback): Simplify.
510 (add_intermediate_continuation): Simplify.
511 (discard_all_intermediate_continuations_thread_callback):
514 2011-05-27 Pedro Alves <pedro@codesourcery.com>
516 * utils.c (struct continuation, add_continuation)
517 (add_inferior_continuation)
518 (do_all_inferior_continuations, discard_all_inferior_continuations)
519 (restore_thread_cleanup, do_all_continuations_ptid)
520 (do_all_continuations_thread_callback)
521 (do_all_continuations_thread, do_all_continuations)
522 (discard_all_continuations_thread_callback)
523 (discard_all_continuations_thread, discard_all_continuations)
524 (add_intermediate_continuation)
525 (do_all_intermediate_continuations_thread_callback)
526 (do_all_intermediate_continuations_thread)
527 (do_all_intermediate_continuations)
528 (discard_all_intermediate_continuations_thread_callback)
529 (discard_all_intermediate_continuations_thread)
530 (discard_all_intermediate_continuations): Move to ...
531 * continuations.c: ... this new file, and adjust to no longer
532 implement continuations on top of cleanups.
533 * Makefile.in (SFILES): Add continuations.c.
534 (COMMON_OBS): Add continuations.o.
536 2011-05-26 Pedro Alves <pedro@codesourcery.com>
538 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
539 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
540 Internal error on invalid values.
541 * reverse.c: Don't handle EXEC_ERROR.
542 * mi/mi-main.c: Don't handle EXEC_ERROR.
544 2011-05-26 Pedro Alves <pedro@codesourcery.com>
546 * record.c: Include event-loop.h, inf-loop.h.
547 (record_beneath_to_async): New global.
548 (tmp_to_async): New global.
549 (record_async_inferior_event_token): New global.
550 (record_open_1): Don't error out if async is enabled.
551 (record_open): Handle to_async. Create an async event source in
553 (record_close): Delete the async event source.
554 (record_resumed): New global.
555 (record_execution_dir): New global.
556 (record_resume, record_core_resume): Set them. Register the
557 target on the event loop.
558 (record_wait): Rename to ...
559 (record_wait_1): ... this. Add more debug output. Handle
560 TARGET_WNOHANG, and the target beneath returning
561 TARGET_WAITKIND_IGNORE.
562 (record_wait): Reimplement on top of record_wait_1.
563 (record_async_mask_value): New global.
564 (record_async, record_async_mask, record_can_async_p)
565 (record_is_async_p, record_execution_direction): New functions.
566 (init_record_ops, init_record_core_ops): Install new methods.
567 * infrun.c (fetch_inferior_event): Temporarily switch the global
568 execution direction to the direction the target was going.
569 (execution_direction): Change type to int.
570 * target.c (default_execution_direction): New function.
571 (update_current_target): Inherit and de_fault
572 to_execution_direction.
573 * target.h (struct target_ops) <to_execution_direction>: New
575 (target_execution_direction): New macro.
576 * inferior.h (execution_direction): Change type to int.
578 2011-05-26 Pedro Alves <pedro@codesourcery.com>
580 * infcall.c (call_function_by_hand): Don't allow calling functions
581 in reverse execution mode.
583 2011-05-26 Pedro Alves <pedro@codesourcery.com>
585 * infcmd.c (finish_command): Allow async finish in reverse.
587 2011-05-26 Yao Qi <yao@codesourcery.com>
589 * gdb_thread_db.h: Delete. Move to ...
590 * common/gdb_thread_db.h: ... here.
592 2011-05-26 Pedro Alves <pedro@codesourcery.com>
594 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
595 function's entry point instead of a manually managed momentary
596 breakpoint, and only ever issue one proceed call.
597 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
598 doing a reverse-finish, switch to stepi mode, to do another step.
599 (insert_step_resume_breakpoint_at_sal): Make public.
600 (normal_stop): No need to save function value return registers if
602 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
604 2011-05-26 Pedro Alves <pedro@codesourcery.com>
606 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
607 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
608 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
610 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
611 step-resume breakpoints.
612 (print_it_typical): Handle bp_hp_step_resume.
613 (bpstat_what): Ditto.
614 (bptype_string): Ditto.
615 (print_one_breakpoint_location): Ditto.
616 (allocate_bp_location): Ditto.
618 (breakpoint_re_set_one): Ditto.
619 * infrun.c (handle_inferior_event): Adjust. Split
620 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
621 BPSTAT_WHAT_HP_STEP_RESUME.
622 (insert_step_resume_breakpoint_at_sal): Rename to ...
623 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
624 parameter. Handle it.
625 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
626 insert_step_resume_breakpoint_at_sal_1.
627 (insert_step_resume_breakpoint_at_frame): Rename to ...
628 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
629 set a high-priority step-resume breakpoint.
630 (insert_step_resume_breakpoint_at_frame): Adjust comment.
631 (insert_step_resume_breakpoint_at_caller): Ditto.
633 2011-05-26 Pedro Alves <pedro@codesourcery.com>
635 * breakpoint.c (iterate_over_related_breakpoints): New.
636 (do_map_delete_breakpoint): New.
637 (delete_command): Pass do_map_delete_breakpoint to
638 map_breakpoint_numbers.
639 (do_disable_breakpoint): New.
640 (do_map_disable_breakpoint): Iterate over the breakpoint's related
642 (do_enable_breakpoint): Rename to ...
643 (enable_breakpoint_disp): ... this.
644 (enable_breakpoint): Adjust.
645 (do_enable_breakpoint): New.
646 (enable_once_breakpoint): Delete.
647 (do_map_enable_breakpoint): New.
648 (do_map_enable_once_breakpoint): New.
649 (enable_once_command, enable_delete_command)
650 (delete_trace_command): Iterate over the breakpoint's related
653 2011-05-26 Pedro Alves <pedro@codesourcery.com>
655 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
656 for ALPHA_ZERO_REGNUM.
657 (alpha_supply_int_regs): Explicitly supply zero as the value for
658 ALPHA_ZERO_REGNUM in the register cache.
659 * alpha-nat.c (fetch_osf_core_registers): Ditto.
661 2011-05-26 Yao Qi <yao@codesourcery.com>
663 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
665 2011-05-26 Tristan Gingold <gingold@adacore.com>
667 * symfile.h (struct dwarf2_section_names): New type.
668 (struct dwarf2_debug_sections): New type.
669 (dwarf2_has_info): Add parameter.
670 * dwarf2read.c (dwarf2_elf_names): New variable.
671 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
672 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
673 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
674 (dwarf2_has_info): Add names parameter. Pass names
675 to dwarf2_locate_sections.
676 (section_is_p): Rewrite using the names parameter.
677 (dwarf2_locate_sections): Use section names from the names parameter.
678 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
679 * elfread.c (read_psyms): Ditto.
680 * machoread.c (macho_symfile_read): Ditto.
682 2011-05-25 Andreas Schwab <schwab@redhat.com>
685 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
687 2011-05-24 Keith Seitz <keiths@redhat.com>
690 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
691 (decode_compound): Unconditionally call keep_name_info.
693 2011-05-24 Pedro Alves <pedro@codesourcery.com>
695 * breakpoint.c (watchpoint_check): If the watchpoint went out of
696 scope, clear its command list.
697 (map_breakpoint_numbers): Don't walk the related breakpoints list
700 2011-05-24 Tom Tromey <tromey@redhat.com>
702 * MAINTAINERS: Move Jim Blandy to past maintainers.
704 2011-05-24 Tristan Gingold <gingold@adacore.com>
706 * symfile.h (enum dwarf2_section_enum): New type.
707 (dwarf2_get_section_info): New prototype.
708 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
709 section_name by sect. Use a switch to select the info.
710 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
711 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
713 2011-05-24 Pedro Alves <pedro@codesourcery.com>
715 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
716 shared library event breakpoint if there's no execution.
718 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
720 * breakpont.c (remove_hw_watchpoints): Remove unused function.
721 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
723 2011-05-23 Tom Tromey <tromey@redhat.com>
725 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
728 2011-05-23 Doug Evans <dje@google.com>
730 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
731 entry for RuntimeError to doc string.
733 2011-05-23 Jerome Guitton <guitton@adacore.com>
735 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
736 sequence for probing loops.
738 2011-05-23 Pedro Alves <pedro@codesourcery.com>
740 * infrun.c (user_visible_resume_ptid): Fix typos in describing
743 2011-05-21 Mark Kettenis <kettenis@gnu.org>
745 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
746 zero as the value for %g0 in the register cache.
747 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
748 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
750 2011-05-20 Pedro Alves <pedro@codesourcery.com>
752 * infrun.c (proceed): Set previous_inferior_ptid here.
753 (init_wait_for_inferior): Initialize previous_inferior_ptid from
754 inferior_ptid, not null_ptid.
755 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
756 (fetch_inferior_event): Nor here.
758 2011-05-20 Pedro Alves <pedro@codesourcery.com>
760 * inf-loop.c (inferior_event_handler): Only output a message if
763 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
765 * MAINTAINERS: Update my e-mail address.
767 2011-05-20 Pedro Alves <pedro@codesourcery.com>
769 * infrun.c (proceed): Switch the inferior event loop to
770 INF_EXEC_COMPLETE if the target refused to resume from a
773 2011-05-20 Pedro Alves <pedro@codesourcery.com>
775 * infcmd.c: Include "inf-loop.h".
776 (step_once): When stepping into an inline subroutine, pretend the
777 target has run. If the target can async, switch the inferior
778 event loop to INF_EXEC_COMPLETE.
779 * inferior.h (user_visible_resume_ptid): Declare.
780 * infrun.c (user_visible_resume_ptid): New function, factored out
783 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
784 that the current thread is running. Merge async and sync
787 2011-05-20 Pedro Alves <pedro@codesourcery.com>
789 * infcmd.c (step_1): Simplify synchronous case.
791 2011-05-20 Pedro Alves <pedro@codesourcery.com>
793 * tracepoint.c: Include exceptions.h.
794 (TFILE_PID): Move higher in file.
795 (tfile_open): Delay pushing the tfile target until we're assured
796 the tfile header is present in the file. Wrap reading the initial
797 newline-terminated lines in TRY_CATCH. Pop the target if the
798 initial setup failed. Add the tfile's thread immediately
799 aftwards, before any non-essential setup. Don't skip
800 post_create_inferior if there are no traceframes present in the
802 (tfile_close): Remove redundant check for null before xfree call.
803 (tfile_thread_alive): New function.
804 (init_tfile_ops): Register it as to_thread_alive callback.
806 2011-05-20 Pedro Alves <pedro@codesourcery.com>
808 * tracepoint.c (tfile_open): Delete #if 0'd code.
810 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
812 Fix -readnow for -gdwarf-4 unused type units.
813 * dwarf2read.c (struct signatured_type): Remove the field offset.
814 (create_signatured_type_table_from_index): Remove its initialization.
815 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
816 instead. Add a complaint call.
817 (process_psymtab_comp_unit): Change assignment to gdb_assert.
818 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
819 (lookup_signatured_type_at_offset, read_signatured_type)
820 (write_one_signatured_type): Update the field for per_cu.
822 2011-05-19 Tom Tromey <tromey@redhat.com>
824 * python/py-inferior.c (python_inferior_exit): Use
826 (python_on_resume): Likewise.
828 2011-05-19 Matt Rice <ratmice@gmail.com>
830 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
832 2011-05-19 Hui Zhu <teawater@gmail.com>
834 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
836 2011-05-19 Hui Zhu <teawater@gmail.com>
838 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
840 2011-05-18 Tom Tromey <tromey@redhat.com>
842 * dwarf2read.c (dwarf2_add_field): Constify.
843 * value.c (value_static_field): Constify.
844 * gdbtypes.h (struct main_type) <field.field_location.physname>:
846 * ax-gdb.c (gen_static_field): Constify
848 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
850 * linux-nat.c (kill_callback): Use SIGKILL first.
852 2011-05-18 Joel Brobecker <brobecker@adacore.com>
854 * ada-lang.c (print_it_exception): Avoid use of sprintf.
856 2011-05-18 Tom Tromey <tromey@redhat.com>
858 * value.c (value_fn_field): Constify.
859 * symtab.c (gdb_mangle_name): Constify.
860 * stabsread.c (update_method_name_from_physname): Make 'physname'
862 * p-typeprint.c (pascal_type_print_method_args): Make arguments
863 const. Use explicit fputc_filtered loop.
864 (pascal_type_print_base): Constify.
865 * p-lang.h (pascal_type_print_method_args): Update.
866 * linespec.c (add_matching_methods): Constify.
867 (add_constructors): Likewise.
868 * jv-typeprint.c (java_type_print_base): Constify.
869 * gdbtypes.h (struct cplus_struct_type)
870 <fn_fieldlist.fn_field.physname>: Now const.
871 * dwarf2read.c (compute_delayed_physnames): Constify.
872 (dwarf2_add_member_fn): Likewise.
873 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
875 2011-05-18 Pedro Alves <pedro@codesourcery.com>
877 * infrun.c (resume): Mention which is the current thread, and its
878 current PC in debug output.
879 (prepare_to_proceed): Mention the thread switching in debug
882 2011-05-18 Tom Tromey <tromey@redhat.com>
884 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
885 path check. Use xmalloc and cleanups.
886 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
888 2011-05-17 Tom Tromey <tromey@redhat.com>
890 * cp-valprint.c (cp_print_value_fields): Catch errors from
893 2011-05-17 Tom Tromey <tromey@redhat.com>
895 * dwarf2read.c (dwarf2_get_die_type): Call
896 get_die_type_at_offset.
897 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
898 get_base_type function.
900 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
902 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
905 2011-05-16 Doug Evans <dje@google.com>
907 * python/py-auto-load.c (source_section_scripts): Mention objfile
910 2011-05-15 Doug Evans <dje@google.com>
912 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
913 (try_thread_db_load_from_pdir): Call it. If unable to find
914 libthread_db in directory of libpthread, see if we're looking at
915 the separate-debug-info copy.
917 * python/py-autoload.c (print_script): Print "Missing" instead of
918 "No" for missing scripts.
919 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
921 2011-05-13 Doug Evans <dje@google.com>
923 * ui-file.c (stdio_file_write_async_safe): Add comment.
925 2011-05-14 Hui Zhu <teawater@gmail.com>
927 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
929 2011-05-13 Doug Evans <dje@google.com>
931 Support $pdir and $sdir in libthread-db-search-path.
932 * NEWS: Mention $sdir,$pdir.
933 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
934 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
935 (try_thread_db_load_from_sdir): New function.
936 (try_thread_db_load_from_dir): New function.
937 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
938 system directories if search of libthread-db-search-path fails,
939 that is now done via $sdir.
940 (has_libpthread): New function.
941 (thread_db_load): Remove search for libthread_db in directory of
942 libpthread, that is now done via $pdir.
944 * NEWS: Mention "info auto-load-scripts".
945 * python/py-auto-load.c (struct auto_load_pspace_info): New member
946 script_not_found_warning_printed.
947 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
948 all callers updated. Initialize script_not_found_warning_printed.
949 (get_auto_load_pspace_data_for_loading): New function.
950 (maybe_add_script): New function.
951 (source_section_scripts): Simplify. Only print one warning regardless
952 of the number of auto-load scripts not found.
953 (clear_section_scripts): Clear script_not_found_warning_printed.
954 (auto_load_objfile_script): Record script in hash table.
955 (count_matching_scripts): New function.
956 (maybe_print_script): Renamed from maybe_print_section_script, all
957 callers updated. Rewrite to use ui_out_*.
958 (info_auto_load_scripts): Renamed from
959 maintenance_print_section_scripts, all callers updated.
960 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
961 renamed as "info auto-load-scripts".
963 2011-05-13 Tom Tromey <tromey@redhat.com>
965 * dwarf2expr.c (read_uleb128): Cast intermediate result.
966 (read_sleb128): Likewise.
968 2011-05-13 Tom Tromey <tromey@redhat.com>
970 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
973 2011-05-13 Doug Evans <dje@google.com>
975 * linux-nat.c (debug_linux_nat_async): Delete.
976 Replace all references to use debug_linux_nat instead.
977 (show_debug_linux_nat_async): Delete.
978 (sigchld_handler): Call ui_file_write_async_safe instead of
980 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
981 * ui-file.c (struct ui_file): New member to_write_async_safe.
982 (null_file_write_async_safe): New function.
983 (ui_file_write_async_safe): New function.
984 (set_ui_file_write_async_safe): New function.
985 (ui_file_new): Initialize to_write_async_safe.
986 (stdio_file_write_async_safe): New function.
987 (struct stdio_file): New member fd.
988 (stdio_file_new): Initialize to_write_async_safe, fd.
989 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
991 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
992 (set_ui_file_write_async_safe): Declare.
993 (ui_file_write_async_safe): Declare.
995 2011-05-13 Tom Tromey <tromey@redhat.com>
997 * utils.c (do_value_free): New function.
998 (make_cleanup_value_free): Likewise.
999 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1001 (dwarf2_loc_desc_needs_frame): Call
1002 make_cleanup_value_free_to_mark.
1003 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1004 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1006 (new_dwarf_expr_context): Don't call value_mark.
1007 * dwarf2-frame.c (execute_stack_op): Call
1008 make_cleanup_value_free_to_mark.
1009 * defs.h (make_cleanup_value_free): Declare.
1011 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1013 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1014 prepare_execute_command.
1015 * top.c (prepare_execute_command): Return cleanup.
1016 (execute_command): Use cleanup from prepare_execute_command.
1017 * top.h (prepare_execute_command): Change prototype to return
1019 * defs.h (struct value): Add opaque declaration.
1020 (make_cleanup_value_free_to_mark): Add prototype.
1021 * utils.c (do_value_free_to_mark): New function.
1022 (make_cleanup_value_free_to_mark): Likewise.
1024 2011-05-12 Tom Tromey <tromey@redhat.com>
1026 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1027 cast left-hand-side to unsigned.
1029 2011-05-12 Tom Tromey <tromey@redhat.com>
1032 * value.h (value_from_contents): Declare.
1033 * value.c (value_from_contents): New function.
1034 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1035 (dwarf2_get_die_type): New function.
1036 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1037 (allocate_piece_closure): Acquire reference to values.
1038 (read_pieced_value): Update for value-based expressions.
1039 (write_pieced_value): Likewise.
1040 (free_pieced_value_closure): Call value_free as needed.
1041 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1042 Update for value-based expressions.
1043 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1044 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1045 <get_base_type>: New field.
1046 (struct dwarf_expr_piece) <v.value>: Change type.
1047 <v.regno>: New field.
1048 (struct dwarf_expr_context) <mark>: New field.
1049 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1050 (dwarf_expr_pop, dwarf_expr_push): Remove.
1051 (dwarf_expr_push_address): Declare.
1052 * dwarf2expr.c (dwarf_arch_cookie): New global.
1053 (struct dwarf_gdbarch_types): New.
1054 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1056 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1058 (dwarf_expr_push_address): New function.
1059 (dwarf_expr_pop): Now static.
1060 (dwarf_expr_fetch): Change return type.
1061 (dwarf_require_integral): New function.
1062 (dwarf_expr_fetch): Simplify.
1063 (add_piece): Update.
1064 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1066 (execute_stack_op) <sign_ext>: Remove.
1067 Use values for DWARF stack.
1068 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1069 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1071 (_initialize_dwarf2expr): New function.
1072 (add_piece): Update.
1073 (new_dwarf_expr_context): Set new field.
1074 (free_dwarf_expr_context): Call value_free_to_mark.
1075 * dwarf2-frame.c (no_base_type): New function.
1076 (execute_stack_op): Set get_base_type field. Update.
1078 2011-05-12 Tom Tromey <tromey@redhat.com>
1080 * dwarf2read.c (read_common_block): Fix formatting.
1082 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1084 * breakpoint.c (disable_breakpoint): Disable all locations
1085 associated with a tracepoint on target if a trace experiment is
1087 (disable_command): Disable a specific tracepoint location on target if
1088 a trace experiment is running.
1089 (do_enable_breakpoint): Enable all locations associated with a
1090 tracepoint on target if a trace experiment is running.
1091 (enable_command) Enable a specific tracepoint location on target if a
1092 trace experiment is running.
1093 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1094 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1095 to_disable_tracepoint.
1096 * target.h: Add declaration of struct bp_location.
1097 (struct target_ops): Add new functions
1098 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1099 to_disable_tracepoint to target operations.
1100 (target_supports_enable_disable_tracepoint): New macro.
1101 (target_enable_tracepoint): New macro.
1102 (target_disable_tracepoint): New macro.
1103 * remote.c (struct remote_state): Add new field.
1104 (remote_enable_disable_tracepoint_feature): New.
1105 (remote_protocol_features): Add new entry.
1106 (remote_supports_enable_disable_tracepoint): New.
1107 (remote_enable_tracepoint): New.
1108 (remote_disable_tracepoint): New.
1109 (init_remote_ops): Add remote_enable_tracepoint,
1110 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1111 to remote operations.
1112 * tracepoint.c (start_tracing): Allow tracing to start without any
1113 tracepoints enabled with just a warning if they can be re-enabled
1115 * NEWS: Add news item for the new behaviour of the enable and disable
1116 GDB commands when applied to tracepoints.
1117 Add news items for the new remote packets QTEnable and QTDisable.
1119 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1121 * config.in: Regenerate.
1122 * configure: Regenerate.
1123 * configure.ac <--with-system-readline> (for readline_echoing_p):
1125 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1126 (tui_old_rl_echoing_p): ... here.
1127 (tui_setup_io): Rename extern declaration readline_echoing_p to
1128 _rl_echoing_p. Adjust assignments for the both renames.
1130 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1132 * symtab.c (lookup_symtab): Run cleanup before returning.
1134 2011-05-11 Tom Tromey <tromey@redhat.com>
1136 * dwarf2read.c (handle_data_member_location): New function.
1137 (dwarf2_add_field): Use it.
1138 (read_common_block): Likewise.
1140 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1142 Make addrs->SECTINDEX always defined.
1143 * symfile.c (relative_addr_info_to_section_offsets): Check for
1144 SECTINDEX -1, not for zero ADDR.
1145 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1146 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1147 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1150 2011-05-10 Doug Evans <dje@google.com>
1152 * linux-thread-db.c: Whitespace cleanup.
1153 (try_thread_db_load_1): Fix comment.
1155 * linux-thread-db.c (set_libthread_db_search_path): New function.
1156 (_initialize_thread_db): Add setter for libthread-db-search-path.
1158 2011-05-09 Doug Evans <dje@google.com>
1160 * NEWS: Mention --with-iconv-bin.
1161 * configure.ac: New option --with-iconv-bin.
1162 * configure: Regenerate.
1163 * config.in: Regenerate.
1164 * defs.h (relocate_gdb_directory): Declare.
1165 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1166 removed progname parameter, and exported. All callers updated.
1167 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1169 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1170 adding missing call to restore_child_signals_mask.
1172 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1174 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1176 * infrun.c (proceed, start_remote): Adjust.
1177 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1178 and adjust to not handle it.
1179 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1180 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1181 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1182 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1183 * windows-nat.c (do_initial_windows_stuff): Adjust.
1184 * infcmd.c (attach_command): Adjust.
1185 (notice_new_inferior): Adjust.
1187 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1189 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1190 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1191 * spu-tdep.c (op_selb): Use correct value.
1193 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1195 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1196 "parent" parameter to symbol_file_add_from_bfd call.
1198 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1199 Thiago Jung Bauermann <bauerman@br.ibm.com>
1201 Implement support for PowerPC BookE masked watchpoints.
1202 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1204 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1205 method. Initialize to NULL in all existing breakpoint_ops instances.
1206 (struct breakpoint) <hw_wp_mask>: New field.
1207 * breakpoint.c (is_masked_watchpoint): Add prototype.
1208 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1209 breakpoint's breakpoint_ops.works_in_software_mode if available.
1210 (watchpoints_triggered): Handle the case of a hardware masked
1212 (watchpoint_check): Likewise.
1213 (works_in_software_mode_watchpoint): New function.
1214 (insert_masked_watchpoint, remove_masked_watchpoint)
1215 (resources_needed_masked_watchpoint)
1216 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1217 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1218 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1220 (masked_watchpoint_breakpoint_ops): New structure.
1221 (watch_command_1): Check for the existence of the `mask' parameter.
1222 Set b->ops according to the type of hardware watchpoint being created.
1223 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1224 (ppc_linux_remove_mask_watchpoint)
1225 (ppc_linux_masked_watch_num_registers): New functions.
1226 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1227 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1228 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1229 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1230 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1231 (target_masked_watch_num_registers): New functions.
1232 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1233 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1235 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1236 (target_masked_watch_num_registers): Add prototypes.
1238 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1242 (producer_is_gcc_ge_4_0): New function.
1243 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1244 symtab->language code.
1245 (var_decode_location): Set cu->has_loclist.
1246 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1247 skip. Intialize force_skip from locations_valid. Move the prologue
1248 skipping code into two passes.
1249 * symtab.h (struct symtab): Make the primary field a bitfield. New
1250 field locations_valid.
1252 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1255 (classify_inner_name): Call cp_lookup_nested_type with
1257 * cp-namespace.c (cp_lookup_nested_type): New variable
1258 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1259 type_name_no_tag_or_error with saved_parent_type.
1260 * dwarf2read.c (load_partial_dies): Read in any children of
1261 DW_TAG_typedef with complaint in such case.
1262 * gdbtypes.c (type_name_no_tag_or_error): New function.
1263 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1264 * valops.c (destructor_name_p): New comment for parameter type. Remove
1265 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1266 * value.h (destructor_name_p): Remove type const.
1268 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1270 * symtab.c (compare_symbol_name): New function.
1271 (completion_list_add_name, expand_partial_symbol_name): Call it,
1272 remove the variable ncmp.
1273 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1276 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1278 Demote to sw watchpoint only in update_watchpoint.
1279 * breakpoint.c (update_watchpoint): Change between software and
1280 hardware watchpoint for all kinds of watchpoints, not just
1281 read/write ones. Determine b->exact value here instead of
1282 in watch_command_1. Error out if there are not enough resources
1283 for a read or access hardware watchpoint.
1284 (watch_command_1): Remove logic of checking whether there are
1285 enough resources available, since update_watchpoint will do that
1286 work now. Don't set b->exact here. Catch exceptions thrown by
1287 update_watchpoint and delete the watchpoint.
1288 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1289 Use target_exact_watchpoints instead.
1290 (delete_breakpoint): Notify observers only if deleted watchpoint
1291 has a breakpoint number assigned to it.
1293 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1295 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1297 2011-05-05 Jerome Guitton <guitton@adacore.com>
1299 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1301 (i386_stack_tramp_frame_unwind): New static global.
1302 (i386_match_pattern): New function, extracted from i386_match_insn.
1303 (i386_match_insn): Use i386_match_pattern.
1304 (i386_match_insn_block): New function.
1305 (i386_tramp_chain_in_reg_insns)
1306 (i386_tramp_chain_on_stack_insns): New static variables.
1307 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1310 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1312 * configure.host (xscale*): Don't handle target.
1313 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1316 2011-05-04 Yao Qi <yao@codesourcery.com>
1318 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1320 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1323 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1324 | * elfread.c (elf_symtab_read): Stop memory leak.
1326 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1328 * nto-tdep.c (nto_target): Replace deprecated call to
1329 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1331 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1333 Fix false GCC warning.
1334 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1336 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1338 * breakpoint.c (update_watchpoint): Move code to change
1339 the enable state of breakpoint from here ...
1340 (do_enable_breakpoint): ... to here.
1342 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1344 * valprint.c (val_print_array_elements): Fixed poor performance
1345 of printing very large arrays with repeat_count_threshold set
1346 to unlimited. New comment.
1348 2011-04-29 Tom Tromey <tromey@redhat.com>
1350 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1351 (mi_parse): Likewise.
1352 * breakpoint.c (break_range_command): Use sizeof char*, not
1354 (create_breakpoint): Likewise.
1355 (parse_breakpoint_sals): Likewise.
1357 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1359 * linux-nat.c (linux_child_remove_fork_catchpoint)
1360 (linux_child_remove_vfork_catchpoint)
1361 (linux_child_remove_exec_catchpoint): New functions.
1362 (linux_target_install_ops): Install them.
1364 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1368 * varobj.c (install_default_visualizer): Do not install a
1369 visualizer if the varobj is CPLUS_FAKE_CHILD.
1370 (construct_visualizer): Likewise.
1372 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1374 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1375 case insensitive comparison.
1377 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1379 * infrun.c (proceed): Revert previous change.
1380 (resume): Instead, handle the case of signal delivery while stepping
1381 off a breakpoint location here, and only if software single-stepping
1382 is used. Handle nested signals.
1384 2011-04-28 Yao Qi <yao@codesourcery.com>
1386 * arm-tdep.c (copy_unmodified): Rename to ...
1387 (arm_copy_unmodified): .. this. New.
1388 (copy_preload): Move common part to ...
1389 (install_preload): .. this. New.
1390 (arm_copy_preload): New.
1391 (copy_preload_reg): Move common part to ...
1392 (install_preload_reg): ... this. New.
1393 (arm_copy_preload_reg): New.
1394 (copy_b_bl_blx): Move common part to ...
1395 (install_b_bl_blx): .. this. New.
1396 (arm_copy_b_bl_blx): New.
1397 (copy_bx_blx_reg): Move common part to ...
1398 (install_bx_blx_reg): ... this. New.
1399 (arm_copy_bx_blx_reg): New.
1400 (copy_alu_reg): Move common part to ...
1401 (install_alu_reg): ... this. New.
1402 (arm_copy_alu_reg): New.
1403 (copy_alu_shifted_reg): Move common part to ...
1404 (install_alu_shifted_reg): ... this. New.
1405 (copy_ldr_str_ldrb_strb): Move common part to ...
1406 (install_ldr_str_ldrb_strb): ... this. New.
1407 (arm_copy_ldr_str_ldrb_strb): New.
1408 (copy_copro_load_store): Move some common part to ...
1409 (install_copy_copro_load_store): ... this. New.
1410 (arm_copy_copro_load_store): New.
1412 (arm_copy_svc): Renamed from copy_svc.
1413 (copy_undef): Delete.
1414 (arm_copy_undef): Renamed from copy_undef.
1415 (decode_ext_reg_ld_st): Delete.
1416 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1417 (decode_svc_copro): Delete.
1418 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1419 (copy_copro_load_store, copy_alu_imm): update callers.
1420 (copy_extra_ld_st, copy_block_xfer): Likewise.
1421 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1422 (decode_miscellaneous, decode_dp_misc): Likewise.
1423 (decode_ld_st_word_ubyte, decode_media): Likewise.
1424 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1425 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1426 (decode_unconditional, decode_miscellaneous): Likewise.
1427 (decode_media, decode_b_bl_ldmstm): Likewise.
1428 (arm_process_displaced_insn): Likewise..
1429 (decode_misc_memhint_neon): Delete.
1430 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1431 (decode_miscellaneous): Delete.
1432 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1433 (decode_dp_misc): Delete.
1434 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1435 (decode_ld_st_word_ubyte): Delete.
1436 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1437 (decode_media): Delete.
1438 (arm_decode_media): Renamed from decode_media.
1439 (decode_b_bl_ldmstm): Delete.
1440 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1441 (decode_ext_reg_ld_st): Delete.
1442 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1443 (decode_unconditional): Delete.
1444 (arm_decode_unconditional): Renamed from decode_unconditional.
1446 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1448 Case insensitive lookups implementation.
1449 * dwarf2read.c: Include ctype.h.
1450 (struct mapped_index): New field version.
1451 (mapped_index_string_hash): New parameter index_version. New comment
1452 for it. Call tolower appropriately.
1453 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1454 Choose the right index version for mapped_index_string_hash.
1455 (dwarf2_read_index): Support also the index version 5. Initialize the
1456 new struct mapped_index field version.
1457 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1458 (find_slot): Explain the version needs. Pass INT_MAX for the new
1460 (write_psymtabs_to_index): Produce version 5.
1461 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1462 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1463 * psymtab.c (lookup_partial_symbol): Find the
1464 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1466 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1468 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1469 (completion_list_add_name): New variable ncmp, initialize it, use it.
1470 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1471 * utils.c (strcmp_iw): Support case_sensitive_off.
1472 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1473 New function comment part. New variables saved_string1,
1474 saved_string2 and case_pass. Add a proper second pass.
1476 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1478 Replace re_comp/re_exec by regcomp/regexec.
1479 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1480 (search_symbols_name_matches): Use them, use regexec.
1481 (search_symbols): New variable retval_chain, adjust the use of
1482 old_chain against it. Replace re_comp by regcomp. Use the new struct
1483 search_symbols_data fields, use regexec instead of re_exec.
1485 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1487 Format the code for the next patch.
1488 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1489 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1490 New variables c1 and c2.
1492 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1494 * infrun.c (proceed): Do not single-step into signal delivery
1495 when stepping off a breakpoint location.
1496 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1497 (insert_step_resume_breakpoint_at_caller): Likewise.
1498 (insert_step_resume_breakpoint_at_sal): Likewise.
1499 (insert_longjmp_resume_breakpoint): Likewise.
1501 2011-04-27 Yao Qi <yao@codesourcery.com>
1503 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1505 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1507 * procfs.c (procfs_pass_signals): Fix advance declaration.
1509 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1511 * target.h (struct target_ops): Remove to_notice_signals;
1512 add to_pass_signals.
1513 (target_notice_signals): Remove.
1514 (target_pass_signals): Add prototype.
1515 * target.c (update_current_target): Remove to_notice_signals;
1516 mention to_pass_signals.
1517 (target_pass_signals): New function.
1518 (debug_to_notice_signals): Remove.
1519 (setup_target_debug): Do not install debug_to_notice_signals.
1521 * infrun.c (signal_pass): New global.
1522 (resume): Call target_pass_signals.
1523 (handle_inferior_event): Report all signals while stepping over
1524 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1525 are re-inserted when stepping over a signal handler.
1526 (signal_cache_update): New function.
1527 (signal_stop_update): Call it.
1528 (signal_print_update): Likewise.
1529 (signal_pass_update): Likewise.
1530 (handle_command): Call signal_cache_update and target_pass_signals
1531 instead of target_notice_signals.
1532 (_initialize_infrun): Initialize signal_pass.
1534 * linux-nat.c (pass_mask): New global.
1535 (linux_nat_pass_signals): New function.
1536 (linux_nat_create_inferior): Report all signals initially.
1537 (linux_nat_attach): Likewise.
1538 (linux_nat_resume): Use pass_mask to decide whether to directly
1539 handle an inferior signal.
1540 (linux_nat_wait_1): Likewise.
1541 (linux_nat_add_target): Install to_pass_signals callback.
1543 * nto-procfs.c (notice_signals): Remove.
1544 (procfs_resume): Do not call notice_signals.
1545 (procfs_notice_signals): Remove.
1546 (procfs_pass_signals): New function.
1547 (init_procfs_ops): Install to_pass_signals callback instead of
1548 to_notice_signals callback.
1549 (_initialize_procfs): Report all signals initially.
1551 * procfs.c (procfs_notice_signals): Remove.
1552 (procfs_pass_signals): New function.
1553 (procfs_target): Install to_pass_signals callback instead of
1554 to_notice_signals callback.
1555 (register_gdb_signals): Remove.
1556 (procfs_debug_inferior): Report all signals initially.
1557 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1559 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1560 parameters; use them instead of calling signal_..._state routines.
1561 (remote_notice_signals): Remove.
1562 (remote_start_remote): Report all signals initially.
1563 (remote_resume): Do not call remote_pass_signals.
1564 (_initialize_remote): Install to_pass_signals callback instead of
1565 to_notice_signals callback.
1567 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1569 * breakpoint.c (user_settable_breakpoint): Delete.
1570 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1571 (delete_command): Check user_breakpoint_p instead of looking at
1572 the breakpoint's type.
1573 (disable_command): Ditto.
1574 (enable_command): Ditto.
1575 (delete_trace_command): Use user_breakpoint_p instead of looking
1576 at the breakpoint number directly. When checking if there are
1577 user visible tracepoints, in order to know whether to ask the user
1578 for confirmation, check whether the breakpoint is actually a
1581 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1583 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1586 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1588 MI breakpoint notifications.
1590 * annotate.c (breakpoint_changed): Adjust parameter type.
1591 * breakpoint.c (set_breakpoint_condition): Adjust to change
1592 in breakpoint_modified type.
1593 (breakpoint_set_commands): Likewise.
1594 (do_map_commands_command): Likewise.
1595 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1596 changed after bumping hit count.
1597 (bpstat_stop_status): Likewise.
1598 (print_one_breakpoint_location): Don't wrap in tuple here.
1599 (print_one_breakpoint): Always print individual locations.
1600 For locations, use unnamed tuple.
1601 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1603 (create_catchpoint, create_syscall_event_catchpoint): Call
1604 breakpoint_created obsever.
1605 (mention): Don't call breakpoint_created observer.
1606 (create_breakpoint_sal): Call breakpoint_created observer.
1607 (create_breakpoint, watch_command_1): Likewise.
1608 (create_ada_exception_breakpoint): Likewise.
1609 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1610 (locations_are_equal): New.
1611 (update_breakpoint_locations): If locations were changed, notify.
1612 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1613 Call breakpoint_modified observer.
1615 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1616 (mi_cmd_break_insert): Don't set observers for modify and delete.
1617 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1618 (mi_breakpoint_created, mi_breakpoint_deleted)
1619 (mi_breakpoint_modified): New.
1620 (mi_interpreter_init): Hook the above.
1621 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1622 while -break-* commands are executing.
1623 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1624 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1626 (mi_ui_out_impl): Hook in mi_redirect.
1627 (mi_field_skip): True to the name, skip the field, don't output
1628 a field with an empty value.
1630 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1631 (gdbpy_breakpoint_deleted): Adjust.
1632 * tui/tui-hooks.c (tui_event_create_breakpoint)
1633 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1635 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1637 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1638 (procfs_remove_hw_watchpoint): Likewise.
1640 2011-04-26 Michael Walle <michael@walle.cc>
1642 * remote.c (remote_start_remote): Ack packet after sending the
1645 2011-04-26 Yao Qi <yao@codesourcery.com>
1647 * linux-nat.c: Move common macros to ...
1648 Include linux-ptrace.h.
1649 * common/linux-ptrace.h: ... here. New.
1651 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1653 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1654 !objfile_has_partial_symbols. New comment.
1655 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1656 SYM_READ_PSYMBOLS is not present. Extend the comment.
1657 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1659 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1661 * defs.h (ENUM_BITFIELD): Remove.
1663 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 Eli Zaretskii <eliz@gnu.org>
1666 * NEWS: Document the new gdbserver --once option.
1668 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1670 * MAINTAINERS: Update my email address.
1672 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1674 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1675 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1676 function call if __STDC_ISO_10646__ macro is defined.
1677 (intermediate_encoding): New prototype.
1678 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1679 to generate compile time error for unsupported gdb_wchar_t size.
1680 (ENDIAN_SUFFIX): New macro.
1681 (intermediate_encoding): New function.
1683 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 * ada-lang.c (struct add_partial_datum): Update the comment for
1686 expand_partial_symbol_name.
1687 (ada_add_partial_symbol_completions): Rename to ...
1688 (ada_expand_partial_symbol_name): ... here, change return type, update
1689 function comment, call symbol_completion_match instead of
1690 symbol_completion_add.
1691 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1692 and ada_expand_partial_symbol_name.
1693 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1695 (dw2_map_symbol_names): Remove.
1696 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1697 * psymtab.c (map_symbol_names_psymtab): Remove.
1698 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1699 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1701 (psym_functions): Unlist map_symbol_names_psymtab.
1702 (map_partial_symbol_names): Rename to ...
1703 (expand_partial_symbol_names): ... here, change the FUN type, call
1704 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1705 * psymtab.h (map_partial_symbol_names): Rename to ...
1706 (expand_partial_symbol_names): ... here, change the FUN type.
1707 * symfile.h (struct quick_symbol_functions): Update the description of
1708 expand_symtabs_matching. Remove map_symbol_names.
1709 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1710 (struct add_name_data): Update the comment for
1711 expand_partial_symbol_name.
1712 (add_partial_symbol_name): Rename to ...
1713 (expand_partial_symbol_name): ... here. Replace
1714 completion_list_add_name call by strncmp.
1715 (default_make_symbol_completion_list_break_on): Use now
1716 expand_partial_symbol_names and expand_partial_symbol_name.
1717 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1719 2011-04-20 Tom Tromey <tromey@redhat.com>
1721 * dwarf2read.c (save_gdb_index_command): Replace format
1722 documentation with a pointer to the manual.
1724 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1726 * regcache.c: Include remote.h.
1727 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1728 (regcache_dump): Handle regcache_dump_remote.
1729 (maintenance_print_remote_registers): New function.
1730 (_initialize_regcache): Install "maint print remote-registers"
1732 * remote.c (map_regcache_remote_table): New function, factored out
1734 (init_remote_state): ... here.
1735 (remote_register_number_and_offset): New.
1736 * remote.h (remote_register_number_and_offset): Declare.
1738 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1740 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1741 null_ptid, assume and allow a NULL address space, instead of
1742 asking the target for the ptid's address space.
1743 * infrun.c (ptid_is_pid): Remove assertion.
1745 2011-04-19 Tom Tromey <tromey@redhat.com>
1747 * windows-tdep.c (windows_xfer_shared_library):
1748 * windows-nat.c (get_module_name, windows_make_so):
1749 * v850-tdep.c (v850_handle_pushm):
1750 * utils.c (null_cleanup, gdb_realpath):
1751 * ui-out.c (get_next_header):
1752 * tracepoint.c (clear_traceframe_info):
1753 * symtab.c (lookup_symtab):
1754 * serial.h (struct serial_ops):
1755 * mipsread.c (read_alphacoff_dynamic_symtab):
1756 * infcmd.c (print_return_value):
1757 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1758 * f-exp.y (parse_number):
1759 * exceptions.c (catch_exceptions):
1760 * dummy-frame.c (dummy_frame_this_id):
1761 * defs.h (struct cleanup):
1762 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1763 * arm-tdep.c (arm_push_dummy_call):
1764 * amd64-tdep.h (amd64_collect_xsave):
1765 * amd64-tdep.c (amd64_collect_xsave):
1766 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1767 * README (typing): Remove duplicate words.
1768 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1769 * infrun.c (siginfo_value_read): Fix typo.
1770 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1771 * top.c (source_line_number): Add comma.
1773 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1775 * thread.c (any_live_thread_of_process): Prioritize threads
1776 that are not executing.
1777 * gdbthread.h (any_live_thread_of_process): Update comment
1778 as per above change.
1780 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1782 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1783 (scan_xcoff_symtab): Likewise.
1785 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1787 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1790 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1791 Pedro Alves <pedro@codesourcery.com>
1793 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1794 variables to simplify code and avoid == operator at end of
1795 line as this is against GNU coding standards.
1797 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1799 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1800 lm_name to name_lm to avoid conflict with lm_name function.
1802 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1804 ARI fixes: Use only lowercase function name for static functions.
1805 * nto-tdep.c (LM_ADDR): Rename to...
1806 (lm_addr): New function name.
1807 (nto_relocate_section_addresses): Adapt to change above.
1808 * solib-sunos.c (LM_ADDR): Rename to...
1809 (lm_addr): New function name.
1810 (LM_NEXT): Rename to...
1811 (lm_next): New function name.
1812 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1813 function name changes above.
1814 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1815 (lm_addr_from_link_map): New function name.
1816 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1817 (has_lm_dynamic_from_link_map): New function name.
1818 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1819 (lm_dynamic_from_link_map): New function name.
1820 (LM_ADDR_CHECK): Rename to...
1821 (lm_addr_check): New function name.
1822 (LM_NEXT): Rename to...
1823 (lm_next): New function name.
1824 (LM_PREV): Rename to...
1825 (lm_prev): New function name.
1826 (LM_NAME): Rename to...
1827 (lm_name): New function name.
1828 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1829 (ignore_first_link_map_entry): New function name.
1830 (svr4_keep_data_in_core): Adapt to function name changes above.
1831 (svr4_current_sos): Likewise.
1832 (enable_break): Likewise.
1833 (svr4_relocate_section_addresses): Likewise.
1835 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1838 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1839 sprintf. Simplify code and avoid loosing memory.
1840 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1841 (call0_frame_cache): Remove && operator from end of line.
1843 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 Fix libraries displacement if they change whether they were prelinked.
1846 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1847 does not match. Comment why.
1849 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1851 * corelow.c: Include wrapper.h.
1852 (core_open): Call now gdb_target_find_new_threads.
1853 * wrapper.c: Include target.h.
1854 (gdb_target_find_new_threads): New.
1855 * wrapper.h (gdb_target_find_new_threads): New declaration.
1857 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1859 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1860 even if !TARGET_HAS_EXECUTION.
1862 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1864 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1865 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1866 bfd_get_synthetic_symtab.
1867 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1868 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1869 parameter parent, remove the call to add_separate_debug_objfile.
1870 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1871 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1872 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1873 parent, new comment for it, call add_separate_debug_objfile for it.
1874 (symbol_file_add_separate): Pass objfile as the parameter parent,
1875 remove the call to add_separate_debug_objfile.
1876 (symbol_file_add_from_bfd): New parameter parent, pass it.
1877 (symbol_file_add): Pass NULL to the new parameter parent.
1878 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1880 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1885 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 Fix Python access to inlined frames.
1888 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1889 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1891 2011-04-15 Tom Tromey <tromey@redhat.com>
1893 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1895 2011-04-15 Gary Benson <gbenson@redhat.com>
1897 * MAINTAINERS: Add myself to write-after-approval section.
1899 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1901 * remote-sim.c (sim_command_completer): New function.
1902 (_initialize_remote_sim): Set completer to sim_command_completer.
1904 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1906 * breakpoint.c (print_exception_catchpoint): Rename to ...
1907 (print_it_exception_catchpoint): ... this.
1908 (gnu_v3_exception_catchpoint_ops): Update with new name
1909 for print_it_exception_catchpoint.
1911 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1913 * MAINTAINERS: Add myself for write after approval privileges.
1915 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1917 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1919 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1921 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1923 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1925 * breakpoint.c (save_breakpoints): Verify whether
1926 breakpoint_ops.print_recreate is defined before calling it.
1928 2011-04-11 Gary Benson <gbenson@redhat.com>
1930 Fix failure with --enable-maintainer-mode.
1931 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1933 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * symtab.c (search_symbols): Reorder the KIND description in the
1937 function comment. Remove the unused 4th element of types, types2,
1938 types3 and types4. New gdb_assert on KIND.
1939 (symtab_symbol_info): Remove the unused 4th element of classnames.
1940 New gdb_assert on KIND.
1941 * symtab.h (enum search_domain): New warning in the enum comment.
1942 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1945 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1947 Fix crash of gdb save-index on a STABS file.
1948 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1951 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1954 * dwarf2read.c: Include ctype.h.
1955 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1957 (dwarf2_add_field): Fix new_field->accessibility by calling
1958 dwarf2_default_access_attribute. Restructure setting accessibility
1960 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1961 is_private and is_protected by calling
1962 dwarf2_default_access_attribute.
1964 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1966 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1967 to the initialization.
1969 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1971 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1974 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1976 Remove support for old Cygwin 1.5 versions.
1977 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1978 function on old Cygwin version.
1979 * windows-nat.c: Remove cygwin version check and always define
1980 __USEWIDE for Cygwin compilation.
1982 2011-04-07 Yao Qi <yao@codesourcery.com>
1984 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1986 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1987 (arm_copy_svc): Remove parameters INSN and TO.
1988 (decode_svc_copro): Update caller.
1989 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1990 from function pointer `copy_svc_os'.
1992 2011-04-07 Yao Qi <yao@codesourcery.com>
1994 * arm-tdep.c (cleanup_branch): Set a correct return address in
1995 LR for ARM and Thumb.
1997 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2001 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2002 in the function comment, a new note on values compatibility.
2003 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2004 * symtab.h (SYMBOL_HASH_NEXT): New.
2006 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2008 * ppc-linux-nat.c (check_condition): Add len output parameter.
2009 Set it based on the memory region referenced in the condition
2010 expression. Update all callers.
2012 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2014 Fix crash regression on systems featuring .gdb_index.
2015 * objfiles.c (free_objfile): Move the
2016 forget_cached_source_info_for_objfile call earlier. Comment it.
2017 Extend the comment for objfile_free_data.
2019 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2021 Fix regression of displaying the debug format.
2022 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2025 2011-04-04 Tom Tromey <tromey@redhat.com>
2027 * cli/cli-interp.c (struct captured_execute_command_args):
2029 (do_captured_execute_command): Remove.
2030 (safe_execute_command): Use TRY_CATCH.
2031 * cli/cli-script.c (struct wrapped_read_command_file_args):
2033 (wrapped_read_command_file): Remove.
2034 (script_from_file): Use TRY_CATCH.
2035 * exceptions.c (catch_exception): Remove.
2036 * exceptions.h (catch_exception): Remove.
2037 (deprecated_throw_reason): Update comment.
2038 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2039 argument to 'context'.
2040 (mi_execute_command): Use TRY_CATCH.
2041 * remote.c (struct start_remote_args): Remove.
2042 (remote_start_remote): Update; change arguments.
2043 (remote_open_1): Use TRY_CATCH.
2045 2011-04-04 Tom Tromey <tromey@redhat.com>
2047 * tracepoint.c (scope_info): Update.
2048 * symtab.c (decode_line_spec): Update.
2049 * python/python.c (gdbpy_decode_line): Update.
2050 * linespec.h (decode_line_1): Update.
2051 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2052 (decode_compound, find_method, symtab_from_filename)
2053 (decode_variable): Likewise.
2054 * cli/cli-cmds.c (edit_command): Update.
2055 (list_command): Update.
2056 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2058 (create_breakpoint): Update.
2059 (until_break_command): Update.
2060 (addr_string_to_sals): Update.
2061 (decode_line_spec_1): Update.
2063 2011-04-04 Tom Tromey <tromey@redhat.com>
2065 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2066 (do_captured_parse_breakpoint): Remove.
2067 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2068 Use TRY_CATCH directly.
2070 2011-04-04 Tom Tromey <tromey@redhat.com>
2072 * symtab.h (free_symtab): Remove.
2073 (forget_cached_source_info_for_objfile): Declare.
2074 * symmisc.c (free_symtab): Remove.
2075 * source.c (forget_cached_source_info_for_objfile): New function.
2076 (forget_cached_source_info): Use it.
2077 * objfiles.c (free_objfile): Simplify check before calling
2078 clear_current_source_symtab_and_line. Call
2079 forget_cached_source_info_for_objfile.
2081 2011-04-04 Tom Tromey <tromey@redhat.com>
2083 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2084 (new_symtab): Don't set `free_code' on symtab.
2085 (new_linetable): Properly handle size==0.
2086 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2087 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2089 * jv-lang.c (struct jv_per_objfile_data): New.
2090 (jv_per_objfile_free): Free the data.
2091 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2092 (get_java_class_symtab): Set the `dict' field on the
2093 jv_per_objfile_data.
2094 (free_class_block): Remove.
2095 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2098 2011-04-04 Tom Tromey <tromey@redhat.com>
2100 * symfile.c (reread_symbols): Update.
2101 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2103 * objfiles.c (allocate_objfile): Update.
2104 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2106 * cp-namespace.c (lookup_symbol_file): Don't call
2107 lookup_possible_namespace_symbol.
2108 (initialize_namespace_symtab, get_possible_namespace_block)
2109 (free_namespace_block, cp_check_possible_namespace_symbols)
2110 (check_possible_namespace_symbols_loop)
2111 (check_one_possible_namespace_symbol)
2112 (lookup_possible_namespace_symbol): Remove.
2113 (maintenance_cplus_namespace): Replace with notice.
2114 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2116 2011-04-04 Tom Tromey <tromey@redhat.com>
2118 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2119 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2120 * symmisc.c (free_symtab): Don't free debugformat.
2121 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2122 (record_debugformat, record_producer): Document.
2123 * buildsym.c (end_symtab): Don't save debugformat and producer
2125 (end_symtab): Don't free debugformat and producer fields.
2126 (record_debugformat): Don't call xstrdup.
2127 (record_producer): Likewise.
2129 2011-04-04 Tom Tromey <tromey@redhat.com>
2131 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2132 (source_line_charpos, source_charpos_line): Remove.
2134 2011-04-04 Tom Tromey <tromey@redhat.com>
2136 * symtab.h (domain_enum): Split in two...
2137 (enum search_domain): New.
2138 (search_symbols): Update.
2139 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2140 redundant declarations.
2141 (search_symbols): Change 'kind' argument to search_domain.
2143 (print_symbol_info): Likewise.
2144 (symtab_symbol_info): Likewise.
2145 * symfile.h (struct quick_symbol_functions)
2146 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2147 <expand_symtabs_matching>: Likewise.
2148 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2149 (expand_symtabs_matching_via_partial): Update.
2150 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2151 (dw2_expand_symtabs_for_function): Update.
2152 * block.h: Moved anonymous enum...
2153 * defs.h (enum block_enum): ... here. Now named.
2155 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2157 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2158 * version.in: Bump version to 7.3.50.20110403-cvs.
2160 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2162 * NEWS: Create a new section for the next release branch.
2163 Rename the section of the current branch, now that it has
2166 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2168 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2169 for "fpscr" in target description.
2171 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2173 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2174 initialize it. Delay HASH initialization. Strip the part after open
2175 parenthesis for languages with qualifiers. Call do_cleanups.
2177 2011-04-01 Tom Tromey <tromey@redhat.com>
2179 * utils.c (report_command_stats): Don't print `-' for negative
2182 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2184 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2185 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2188 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2190 * breakpoint.h (bpdisp_text): Add declaration.
2191 * breakpoint.c (bpdisp_text): Make non-static.
2192 * ada-lang.c: #include "mi/mi-common.h".
2193 (print_it_exception): Rewrite to improve GDB/MI output.
2195 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2197 * arm-tdep.h (struct address_space): Add forward declaration.
2199 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2201 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2202 * arm-tdep.c (arm_override_mode): New global.
2203 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2204 execution mode heuristics.
2205 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2206 second single-step breakpoint if needed, using
2207 arm_insert_single_step_breakpoint.
2208 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2209 ARM execution mode, do not call thumb_get_next_pc_raw.
2210 (arm_get_next_pc): Encode execution mode in return value. Call
2211 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2212 (arm_insert_single_step_breakpoint): New function.
2213 (arm_software_single_step): Call it.
2214 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2215 argument to return execution mode of sigreturn target.
2216 (arm_linux_syscall_next_pc): Use it.
2217 (arm_linux_copy_svc): Update call.
2218 (arm_linux_software_single_step): Call
2219 arm_insert_single_step_breakpoint.
2221 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2223 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2226 2011-03-31 Tom Tromey <tromey@redhat.com>
2228 * varobj.c (update_dynamic_varobj_children): Properly handle
2229 errors from iterator.
2231 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2234 struct linkage name twice.
2236 2011-03-31 Tom Tromey <tromey@redhat.com>
2238 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2239 missing ">" to message.
2241 2011-03-31 Tom Tromey <tromey@redhat.com>
2243 * varobj.c (instantiate_pretty_printer): Remove duplicate
2246 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2248 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2249 if neither saved value nor register available (e.g. signal frame).
2251 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2253 * macroexp.c (expand): Avoid uninitialized variable
2256 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2258 * breakpoint.c (break_range_command): Fix typo in comment.
2260 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2261 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2263 Implement support for PowerPC BookE ranged breakpoints.
2264 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2265 * breakpoint.h (struct bp_target_info) <length>: New member
2267 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2268 instead of struct breakpoint as argument, and also add ASPACE
2269 and BP_ADDR arguments. Update all callers.
2270 (struct breakpoint_ops) <print_one_detail>: New method.
2271 (struct breakpoint) <addr_string_range_end>: New member variable.
2272 * breakpoint.c (breakpoint_location_address_match): Add function
2274 (insert_bp_location): Set bl->target_info.length.
2275 (breakpoint_here_p): Call breakpoint_location_address_match.
2276 (moribund_breakpoint_here_p): Likewise.
2277 (regular_breakpoint_inserted_here_p): Likewise.
2278 (breakpoint_thread_match): Likewise.
2279 (bpstat_stop_status): Likewise.
2280 (bpstat_check_location): Move call to
2281 breakpoint_ops.breakpoint_hit to the top.
2282 (print_one_breakpoint_location): Call
2283 breakpoint_ops.print_one_detail if available.
2284 (breakpoint_address_match_range): New function.
2285 (breakpoint_location_address_match): Likewise.
2286 (breakpoint_locations_match): Compare the length field of the
2288 (hw_breakpoint_used_count): Count resources used by all locations
2289 in a breakpoint, and use breakpoint_ops.resources_needed if
2291 (breakpoint_hit_ranged_breakpoint): New function.
2292 (resources_needed_ranged_breakpoint): Likewise.
2293 (print_it_ranged_breakpoint): Likewise.
2294 (print_one_ranged_breakpoint): Likewise.
2295 (print_one_detail_ranged_breakpoint): Likewise.
2296 (print_mention_ranged_breakpoint): Likewise.
2297 (print_recreate_ranged_breakpoint): Likewise.
2298 (ranged_breakpoint_ops): New structure.
2299 (find_breakpoint_range_end): New function.
2300 (break_range_command): Likewise.
2301 (delete_breakpoint): Free addr_string_range_end.
2302 (update_breakpoint_locations): Add SALS_END argument. Update
2303 all callers. Calculate breakpoint length if a non-zero SALS_END
2304 is given. Call breakpoint_locations_match instead of
2305 breakpoint_address_match.
2306 (reset_breakpoint): Find SaL of the end of the range if B is a
2308 (_initialize_breakpoint): Register break-range command.
2309 * defs.h (print_core_address): Add function prototype.
2310 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2312 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2313 (ppc_linux_remove_hw_breakpoint): Likewise.
2314 (_initialize_ppc_linux_nat): Initialize
2315 to_ranged_break_num_registers.
2316 * target.c (update_current_target): Add comment about
2317 to_ranged_break_num_registers.
2318 (target_ranged_break_num_registers): New function.
2319 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2321 (target_ranged_break_num_registers): Add function prototype.
2322 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2323 * utils.c (print_core_address): ... here.
2325 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2327 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2328 variable compiler warning.
2330 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2332 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2334 (re_set_breakpoint): ... to here ...
2335 (addr_string_to_sals): ... and here.
2337 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2339 * Makefile.in (SFILES): Add missing C sources.
2340 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2341 Add missing headers.
2343 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2345 * .gitignore: New file.
2347 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2349 * NEWS: Mention new cfi device simulation.
2351 2011-03-29 Tom Tromey <tromey@redhat.com>
2353 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2354 otherwise anonymous types.
2355 (dwarf2_name): Likewise.
2356 * valops.c (value_struct_elt_for_reference): Refine artificial
2357 type logic. Call error if j==-1.
2359 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2361 Fix false GCC warning.
2362 * infcall.c (find_function_addr): Initialize funaddr.
2364 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2366 Fix mingw compilation with --enable-targets=all.
2367 * remote-mips.c (gdb_usleep.h): Include header.
2368 (mips_enter_debug): Use gdb_usleep instead of sleep.
2370 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Support resolution of STT_GNU_IFUNC via breakpoints.
2373 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2374 bp_gnu_ifunc_resolver_return.
2375 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2376 the loop. Support bp_gnu_ifunc_resolver and
2377 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2378 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2380 (bptype_string, print_one_breakpoint_location): Support
2381 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2382 (user_settable_breakpoint): Return true also for
2383 bp_gnu_ifunc_resolver.
2384 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2385 bp_gnu_ifunc_resolver_return.
2386 (set_breakpoint_location_function): New parameter explicit_loc,
2387 describe it. Call find_pc_partial_function_gnu_ifunc with new
2388 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2389 EXPLICIT_LOC is not set.
2390 (set_raw_breakpoint): Set EXPLICIT_LOC for
2391 set_breakpoint_location_function.
2392 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2393 set_breakpoint_location_function.
2394 (mention): Support bp_gnu_ifunc_resolver and
2395 bp_gnu_ifunc_resolver_return.
2396 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2397 set_breakpoint_location_function.
2398 (update_breakpoint_locations): Remove static.
2399 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2400 bp_gnu_ifunc_resolver_return.
2401 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2402 bp_gnu_ifunc_resolver_return.
2403 (update_breakpoint_locations): New declaration.
2404 * elfread.c: Include gdbthread.h and regcache.h.
2405 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2407 (elf_gnu_ifunc_fns): Install them.
2408 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2409 (stub_gnu_ifunc_resolver_return_stop): New functions.
2410 (stub_gnu_ifunc_fns): Install them.
2411 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2412 and gnu_ifunc_resolver_return_stop.
2413 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2415 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2417 STT_GNU_IFUNC reader implementation.
2418 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2419 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2420 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2421 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2422 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2423 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2424 (elf_gnu_ifunc_resolve_addr): New.
2425 (elf_symfile_read): Call elf_rel_plt_read.
2426 (elf_gnu_ifunc_fns): New.
2427 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2428 Install elf_gnu_ifunc_fns.
2429 * infcall.c (find_function_return_type): New function.
2430 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2431 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2432 (stub_gnu_ifunc_resolve_name): New functions.
2433 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2434 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2435 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2437 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2439 Code cleanup for later STT_GNU_IFUNC support.
2440 * infcall.c (find_function_addr): Remove variable code, use explicit
2441 dereferences for it. Move VALUE_TYPE initialization later.
2443 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2445 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2446 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2447 (clear_pc_function_cache): Clear it.
2448 (find_pc_partial_function): Rename to ...
2449 (find_pc_partial_function_gnu_ifunc): ... this function. New
2450 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2451 (find_pc_partial_function): New wrapper for this function.
2452 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2454 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2456 GDB internal type support for STT_GNU_IFUNC.
2457 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2458 (elf_symtab_read): Set mst_text_gnu_ifunc for
2459 BSF_GNU_INDIRECT_FUNCTION.
2460 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2461 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2462 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2463 nodebug_got_plt_symbol.
2464 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2465 (TYPE_GNU_IFUNC): New.
2466 (struct main_type): New field flag_gnu_ifunc.
2467 (struct builtin_type): New field builtin_func_func.
2468 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2469 nodebug_got_plt_symbol.
2470 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2471 (in_gnu_ifunc_stub): New.
2472 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2474 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2475 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2476 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2478 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2479 * symtab.c (search_symbols): Likewise.
2480 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2481 and mst_slot_got_plt.
2482 (in_gnu_ifunc_stub): New declaration.
2484 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2486 Support a ring of related breakpoints.
2487 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2488 other functions, add gdb_assert.
2489 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2490 watchpoint_del_at_next_stop.
2491 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2492 (bpstat_stop_status): Handle ring in related_breakpoint.
2493 (set_raw_breakpoint_without_location): Initialize ring in
2495 (delete_breakpoint): Handle ring in related_breakpoint, use
2496 watchpoint_del_at_next_stop.
2497 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2499 2011-03-28 Tom Tromey <tromey@redhat.com>
2502 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2503 with `language_minimal'.
2505 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2507 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2508 instead of checking for STT_ARM_TFUNC symbol type.
2510 2011-03-25 Tom Tromey <tromey@redhat.com>
2512 * linespec.c (symbol_found): Restore line-based result for
2513 non-LOC_LABEL symbols.
2515 2011-03-25 Kai Tietz <ktietz@redhat.com>
2517 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2518 instead of strcmp for comparison.
2519 (tui_source_is_displayed): Likewise.
2520 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2522 2011-03-24 Mark Wielaard <mjw@redhat.com>
2524 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2526 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2527 (find_partial_die_in_comp_unit): Likewise in comment.
2528 (read_attribute_value): Likewise.
2529 (lookup_die_type): Likewise.
2530 (dwarf_form_name): Likewise.
2531 (dump_die_shallow): Likewise.
2532 (follow_die_ref_or_sig): Likewise.
2534 2011-03-24 Tom Tromey <tromey@redhat.com>
2536 PR breakpoints/11816:
2537 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2538 (decode_compound): Update.
2539 (find_function_symbol): New function.
2540 (decode_dollar): Update.
2541 (decode_label): Add 'function_symbol' parameter. Handle
2542 function-relative labels.
2543 (decode_variable): Update.
2544 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2545 not its line. Set `special_display' and canonical name for
2548 2011-03-24 Tom Tromey <tromey@redhat.com>
2550 * linespec.h (struct linespec_result) <special_display>: New
2552 * breakpoint.h (struct breakpoint) <display_canonical>: New
2554 * breakpoint.c (print_breakpoint_location): Respect
2556 (create_breakpoint_sal): Add 'display_canonical' parameter.
2557 (create_breakpoints_sal): Update.
2558 (create_breakpoint): Update.
2560 2011-03-24 Tom Tromey <tromey@redhat.com>
2562 * symtab.c (decode_line_spec): Update.
2563 * linespec.c (build_canonical_line_spec): Change type of
2565 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2566 (find_method, decode_all_digits, decode_dollar, decode_label)
2567 (symbol_found): Likewise.
2568 (init_linespec_result): New function.
2569 * breakpoint.c (struct captured_parse_breakpoint_args)
2570 <canonical_p>: New field, replaces addr_string_p.
2571 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2573 (parse_breakpoint_sals): Likewise.
2574 (do_captured_parse_breakpoint): Update.
2575 (create_breakpoint): Use struct linespec_result.
2576 (until_break_command): Update.
2577 (breakpoint_re_set_one): Update.
2578 (decode_line_spec_1): Update.
2579 * linespec.h (struct linespec_result): New.
2580 (init_linespec_result): Declare.
2582 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2584 * regcache.c (regcache_raw_read): If the target didn't supply a
2585 given raw register, mark it as unavailable.
2587 2011-03-23 Kai Tietz <ktietz@redhat.com>
2589 * breakpoint.c (clear_command): Use filename_cmp
2590 instead of strcmp for comparison.
2591 * buildsym.c (watch_main_source_file_lossage): Likewise.
2592 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2593 checking just for slash.
2594 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2595 strrchr and filename_cmp instead of strcmp for filenames.
2596 (add_old_header_file): Use filename_cmp
2597 instead of strcmp for comparison.
2598 * exec.c (exec_set_section_address): Likewise.
2599 * macrotab.c (macro_lookup_inclusion): Likewise.
2600 (macro_lookup_inclusion): Likewise.
2601 * elfread.c (_initialize_elfread): Likewise.
2602 (elfstab_offset_sections): Likewise.
2603 (elfstab_offset_sections): Use lbasename instead of
2605 * mdebugread.c (parse_partial_symbols): Likewise.
2606 (arse_partial_symbols): Use filename_(n)cmp instead of
2607 str(n)cmp for comparison.
2608 * minsyms.c (lookup_minimal_symbol): Likewise.
2609 * psymtab.c (read_psymtabs_with_filename): Likewise.
2610 * solib.c (solib_read_symbols): Likewise.
2611 (reload_shared_libraries_1): Likewise.
2612 * symmisc.c (maintenance_print_symbols): Likewise.
2613 * symfile.c (separate_debug_file_exists): Likewise.
2614 (reread_symbols): Likewise.
2615 (find_separate_debug_file_by_debuglink): Likewise.
2616 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2617 * source.c (add_path): Likewise.
2618 * symtab.c (filename_seen): Likewise.
2619 (file_matches): Likewise.
2620 (print_symbol_info): Likewise.
2621 (maybe_add_partial_symtab_filename): Likewise.
2622 (make_source_files_completion_list): Likewise.
2623 * xml-syscall.c (init_sysinfo): Likewise.
2624 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2625 IS_DIR_SEPARATOR for checking for trailing path separator.
2627 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2629 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2630 label abort_expression.
2631 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2632 DWARF_VALUE_OPTIMIZED_OUT.
2634 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2637 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2638 to linkage_name. Invert its value. Update the function comment.
2639 (c_type_print_varspec_suffix): Invert it at the caller.
2640 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2642 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2644 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2645 errors when reading the `stop_pc'.
2646 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2649 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2651 * NEWS: Document gdb.Write stream keyword.
2653 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2656 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2658 (dwarf2_add_field): Fix new_field->accessibility for
2659 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2661 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2665 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2666 other error classes. Do not print stack trace.
2668 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2670 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2671 (dwarf2_add_field): Fix new_field->accessibility for
2672 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2674 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2676 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2677 encountering a load via a non-SP register.
2679 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2681 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2682 field in returned unwinder.
2684 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2688 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2690 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2693 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2695 * frame.c (frame_unwind_register): Throw an error if unwinding the
2697 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2698 an unwind stop reason.
2699 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2700 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2701 UNWIND_UNAVAILABLE>: New.
2702 * inline-frame.c (inline_frame_unwind): Install
2703 default_frame_unwind_stop_reason.
2704 * frame-unwind.c: Include "exceptions.h".
2705 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2706 (default_frame_unwind_stop_reason): New.
2707 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2708 (default_frame_unwind_stop_reason): Declare.
2709 (struct frame_unwind) <stop_reason>: New function pointer.
2711 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2712 * dwarf2-frame.c: Include exceptions.h.
2713 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2714 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2715 computing the CFA. If such an error was thrown, set
2716 unavailable_retaddr.
2717 (dwarf2_frame_unwind_stop_reason): New.
2718 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2720 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2721 (dwarf2_signal_frame_unwind): Ditto.
2723 * amd64-tdep.c: Include "exceptions.h".
2724 (struct amd64_frame_cache): New field "base_p".
2725 (amd64_init_frame_cache): Clear it.
2726 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2727 Avoid reading registers with functions that throw if the register
2728 is not necessary to compute the frame base.
2729 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2730 swallowing NOT_AVAILABLE_ERROR.
2731 (amd64_frame_unwind_stop_reason): New.
2732 (amd64_frame_this_id): Don't build a frame id if the frame base
2734 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2735 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2736 base_p if the frame base was computable.
2737 (amd64_sigtramp_frame_unwind_stop_reason): New.
2738 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2739 frame base was unavailable.
2740 (amd64_sigtramp_frame_unwind): Install
2741 amd64_sigtramp_frame_unwind_stop_reason.
2742 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2743 base_p if the frame base was computable.
2744 (amd64_epilogue_frame_unwind_stop_reason): New.
2745 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2746 frame base was unavailable.
2747 (amd64_epilogue_frame_unwind): Install
2748 amd64_epilogue_frame_unwind_stop_reason.
2749 * i386-tdep.c: Include "exceptions.h".
2750 (struct i386_frame_cache): New field "base_p".
2751 (i386_init_frame_cache): Clear it.
2752 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2753 Avoid reading registers with functions that throw if the register
2754 is not necessary to compute the frame base.
2755 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2756 swallowing NOT_AVAILABLE_ERROR.
2757 (i386_frame_unwind_stop_reason): New.
2758 (i386_frame_this_id): Don't build a frame id if the frame base was
2760 (i386_frame_prev_register): Handle unavailable SP.
2761 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2762 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2763 base_p if the frame base was computable.
2764 (i386_epilogue_frame_unwind_stop_reason): New.
2765 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2766 base was unavailable.
2767 (i386_epilogue_frame_unwind): Install
2768 i386_epilogue_frame_unwind_stop_reason.
2769 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2770 base_p if the frame base was computable.
2771 (i386_sigtramp_frame_unwind_stop_reason): New.
2772 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2773 base was unavailable.
2774 (i386_sigtramp_frame_unwind): Install
2775 i386_sigtramp_frame_unwind_stop_reason.
2776 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2777 type's size, not the register's.
2778 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2780 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2781 default_frame_unwind_stop_reason.
2782 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2783 (alpha_heuristic_frame_unwind): Ditto.
2784 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2785 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2786 * avr-tdep.c (avr_frame_unwind): Ditto.
2787 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2789 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2790 * frv-tdep.c (frv_frame_unwind): Ditto.
2791 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2792 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2793 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2794 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2795 (hppa_stub_frame_unwind): Ditto.
2796 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2797 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2798 (ia64_libunwind_frame_unwind)
2799 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2800 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2801 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2802 * m32c-tdep.c (m32c_unwind): Ditto.
2803 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2804 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2805 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2806 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2807 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2808 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2809 * mep-tdep.c (mep_frame_unwind): Ditto.
2810 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2811 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2812 (mips_stub_frame_unwind): Ditto.
2813 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2814 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2815 * mt-tdep.c (mt_frame_unwind): Ditto.
2816 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2817 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2818 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2819 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2820 (s390_sigtramp_frame_unwind): Ditto.
2821 * score-tdep.c (score_prologue_unwind): Ditto.
2822 * sh-tdep.c (sh_frame_unwind): Ditto.
2823 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2824 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2825 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2826 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2827 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2828 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2829 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2830 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2831 (sparc64obsd_trapframe_unwind): Ditto.
2832 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2833 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2834 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2835 * v850-tdep.c (v850_frame_unwind): Ditto.
2836 * vax-tdep.c (vax_frame_unwind): Ditto.
2837 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2838 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2839 * xtensa-tdep.c (xtensa_unwind): Ditto.
2841 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2843 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2844 there's always a frame. Use get_frame_pc_if_available instead of
2845 get_frame_pc, and if there's no PC available, don't look up a
2848 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2850 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2853 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2855 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2858 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2860 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2861 * frame.c (frame_unwind_caller_pc_if_available): New.
2862 * stack.c (frame_info): Handle unavailable PC.
2864 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2866 * frame.c (frame_unwind_pc): Rename to ...
2867 (frame_unwind_pc_if_available): ... this. New `pc' output
2868 parameter. Change return type to int. Gracefully handle
2869 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2870 happened, or 1 otherwise.
2871 (frame_unwind_pc): Reimplement on top of
2872 frame_unwind_pc_if_available.
2873 (get_frame_func): Rename to ...
2874 (get_frame_func_if_available): New `pc' output parameter. Change
2875 return type to int. Gracefully handle the PC not being available.
2876 (get_frame_func): Reimplement on top of
2877 get_frame_func_if_available.
2878 (select_frame): Handle the PC being unavailable.
2879 (get_prev_frame): Handle the PC being unavailable.
2880 (get_frame_pc_if_available): New.
2881 (get_frame_address_in_block_if_available): New.
2882 (find_frame_sal): Handle the frame PC not being available.
2883 * frame.h (get_frame_pc_if_available): Declare.
2884 (get_frame_address_in_block_if_available): Declare.
2885 (get_frame_func_if_available): Declare.
2886 * stack.c (print_frame_info): Handle the PC being unavailable.
2887 (find_frame_funname): Ditto.
2888 (print_frame): Handle the PC being unavailable.
2889 (get_frame_language): Ditto.
2890 * blockframe.c (get_frame_block): Ditto.
2891 * macroscope.c (default_macro_scope): Ditto.
2892 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2894 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2896 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2897 NOT_AVAILABLE_ERROR when evaluating the location expression.
2899 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2901 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2902 returning that the register piece is unavailable/optimized out.
2903 (write_pieced_value): Handle get_frame_register_bytes returning
2904 that the register piece is unavailable/optimized out when doing a
2905 read-modify write of a bitfield.
2906 * findvar.c (value_from_register): Handle get_frame_register_bytes
2907 returning that the register piece is unavailable/optimized out.
2908 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2909 and `unavailablep'. Throw error on bad debug info. Use
2910 frame_register instead of frame_register_read, to fill in the new
2912 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2914 * valops.c: (value_assign): Adjust, and handle
2915 get_frame_register_bytes failing.
2916 * spu-tdep.c: Include exceptions.h.
2917 (spu_software_single_step): Adjust, and handle
2918 get_frame_register_bytes failing.
2919 (spu_get_longjmp_target): Ditto.
2920 * gdbarch.sh (register_to_value): Change to return int. New
2921 parameters `optimizedp' and `unavailablep'.
2922 * gdbarch.h, gdbarch.c: Regenerate.
2923 * i386-tdep.c (i386_register_to_value): Adjust to new
2924 gdbarch_register_to_value interface.
2925 * i387-tdep.c (i387_register_to_value): Ditto.
2926 * i387-tdep.h (i387_register_to_value): Ditto.
2927 * alpha-tdep.c (alpha_register_to_value): Ditto.
2928 * ia64-tdep.c (ia64_register_to_value): Ditto.
2929 * m68k-tdep.c (m68k_register_to_value): Ditto.
2930 * mips-tdep.c (mips_register_to_value): Ditto.
2931 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2933 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2935 * findvar.c (value_of_register): Mark the value as unavailable, if
2936 the register is unavailable.
2937 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2938 (frame_register): New `unavailablep' parameter.
2939 (frame_register_read): Update comment.
2940 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2941 Set it if the register is unavailable. If the register is
2942 unavailable, clear the output buffer.
2943 (frame_register): New `unavailablep' parameter. Pass it down.
2944 (frame_unwind_register): Adjust.
2945 (put_frame_register): Adjust.
2946 (frame_register_read): Adjust. Also return false if the register
2948 (frame_register_unwind_location): Adjust.
2949 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2950 is unavailable, mark the value accordingly.
2951 * stack.c (frame_info): Handle unavailable registers.
2953 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2955 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2956 simplify, using regcache_cooked_read.
2958 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2960 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2961 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2962 (regcache_raw_read_unsigned, regcache_raw_read_part)
2963 (regcache_cooked_read, regcache_cooked_read_signed)
2964 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2965 (regcache_cooked_read_ftype): Change return to enum
2967 * regcache.c: Include exceptions.h
2968 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2969 (do_cooked_read): Change return to enum register_status. Always
2970 forward to regcache_cooked_read.
2971 (regcache_raw_read): Change return to enum register_status. If
2972 the register is not REG_VALID, memset the buffer. Return the
2974 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2975 return the register's status.
2976 (regcache_raw_read_unsigned): Ditto.
2977 (regcache_cooked_read): Change return to enum register_status.
2978 Assert that with read-only regcaches, the register's status must
2979 be known. If the regcache is read-only, and the register is not
2980 REG_VALID, memset the buffer. Return the register's status.
2981 (regcache_cooked_read_signed): Change return to enum
2982 register_status. Handle non-REG_VALID registers and return the
2984 (regcache_cooked_read_unsigned): Change return to enum
2985 register_status. Handle non-REG_VALID registers and return the
2987 (regcache_xfer_part, regcache_raw_read_part)
2988 (regcache_cooked_read_part): Change return to enum
2989 register_status. Return the register's status.
2990 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2992 (regcache_dump): Handle unavailable cooked registers.
2993 * frame.c (do_frame_register_read): Adjust interface to match
2994 regcache_cooked_read_ftype.
2995 * gdbarch.sh (pseudo_register_read): Change return to enum
2997 * gdbarch.h, gdbarch.c: Regenerate.
2999 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3001 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3002 register_status. If reading a raw register indicates the raw
3003 register is not valid, return the raw register's status,
3004 otherwise, return REG_VALID.
3005 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3006 register_status. Handle non-REG_VALID raw registers and return
3007 the register's status.
3008 * arm-tdep.c (arm_neon_quad_read)
3009 (arm_pseudo_read): Change return to enum register_status. Handle
3010 non-REG_VALID raw registers and return the register's status.
3011 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3012 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3013 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3014 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3015 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3017 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3018 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3019 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3020 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3021 (m32c_pseudo_register_read): Change return to enum
3022 register_status. Adjust.
3023 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3024 enum register_status. Return the register's status.
3025 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3026 register_status. Return the register's status.
3027 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3028 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3029 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3030 * rs6000-tdep.c (move_ev_register_func): New typedef.
3031 (e500_move_ev_register): Use it. Change return to enum
3032 register_status. Return the register's status.
3033 (do_regcache_raw_read): New function.
3034 (do_regcache_raw_write): New function.
3035 (e500_pseudo_register_read): Change return to enum
3036 register_status. Return the register's status. Use
3037 do_regcache_raw_read.
3038 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3039 (dfp_pseudo_register_read): Change return to enum register_status.
3040 Return the register's status.
3041 (vsx_pseudo_register_read): Ditto.
3042 (efpr_pseudo_register_read): Ditto.
3043 (rs6000_pseudo_register_read): Ditto.
3044 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3045 register_status. Return the register's status.
3046 * sh64-tdep.c (pseudo_register_read_portions): New function.
3047 (sh64_pseudo_register_read): Change return to enum
3048 register_status. Use pseudo_register_read_portions. Return the
3050 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3051 register_status. Return the register's status.
3052 * sh-tdep.c (pseudo_register_read_portions): New function.
3053 (sh_pseudo_register_read): Change return to enum register_status.
3054 Use pseudo_register_read_portions. Return the register's status.
3055 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3056 enum register_status. Return the register's status.
3057 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3058 * spu-tdep.c (spu_pseudo_register_read_spu)
3059 (spu_pseudo_register_read): Ditto.
3060 * xtensa-tdep.c (xtensa_register_read_masked)
3061 (xtensa_pseudo_register_read): Ditto.
3062 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3064 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3066 * python/py-value.c (valpy_getitem): Fix formatting of error function
3069 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3071 ARI fixes: Add missing internationalization markups throughout
3073 * darwin-nat-info.c: Ditto.
3076 * mi/mi-main.c: Ditto.
3078 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3080 ARI fixes: Add missing internationalization markups throughout
3083 * cp-name-parser.y: Ditto.
3086 * objc-exp.y: Ditto.
3089 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3091 ARI fixes: Messages should have no trailing new lines.
3092 * darwin-nat.c (mach_check_error): Remove trailing new line from
3093 warning function call message.
3094 * record.c (bfdcore_read): Idem for error call.
3096 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * common/signals.c (target_signal_from_host): Add _ markup to error
3099 function call message.
3100 (target_signal_to_host): Add _ markup and remove trailing new line
3101 from warning call message.
3102 (target_signal_from_command): Add _ markup to error function call
3105 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3109 * python/python.c (gdbpy_write): Accept a stream argument and
3110 operate to the appropriate stream.
3111 (gdbpy_flush): Likewise.
3112 (_initialize_python): Add stream constants.
3113 (finish_python_initialization): Add GdbOutputErrorFile class.
3115 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3117 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3119 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3121 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3122 to store_signed_integer. Add debug message when relocating CALL
3123 instructions. Fix formatting of debug message.
3124 * i386-tdep.c (i386_relocate_instruction): Ditto.
3126 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3128 * target.h (struct target_ops): Remove to_lookup_symbol field.
3129 (target_lookup_symbol): Delete macro.
3130 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3131 (update_current_target, setup_target_debug): Remove handling
3132 of to_lookup_symbol target_ops field.
3133 * ada-tasks.c (get_known_tasks_addr): Remove use of
3134 target_lookup_symbol.
3135 * coffread.c (coff_symtab_read): Likewise.
3136 * dbxread.c (read_dbx_symtab): Ditto.
3138 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3141 * configure.ac: Add getthrds declaration check.
3142 * configure, config.in: Regenerate.
3143 * aix-thread.c (getthrds): Declare only if not already declared
3144 in procinfo.h. More declaration out of get_signaled_thread to
3147 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3149 * python/py-symtab.c: Populate symtab_object_methods,
3151 (stpy_is_valid): New function.
3152 (salpy_is_valid): Ditto.
3153 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3154 (sympy_is_valid): New function.
3155 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3156 (objfpy_is_valid): New function.
3157 * python/py-inferior.c: Populate inferior_object_methods.
3158 (infpy_is_valid): New function.
3159 * python/py-infthread.c: Populate thread_object_methods.
3160 (thpy_is_valid): New function.
3161 * python/py-block.c: Declare block_object_methods. Populate. Declare
3162 block_iterator_object_methods. Populate.
3163 (blpy_is_valid): New function.
3164 (blpy_iter_is_valid): Ditto.
3166 2011-03-16 Keith Seitz <keiths@redhat.com>
3168 * linespec.c (find_methods): Canonicalize NAME before looking
3170 (name_end): New function.
3171 (keep_name_info): New function.
3172 (decode_line_1): Use keep_name_info.
3173 (decode_compound): Likewise.
3174 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3175 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3178 * linespec.c (locate_first_half): Keep overload information, too.
3179 (decode_compound): Use a string to represent break characters
3181 If P points to a break character, do not increment it.
3182 For C++ and Java, keep overload information and relevant keywords.
3183 If we cannot find a symbol, search the minimal symbols.
3186 * linespec.c (decode_compound): Rename SAVED_ARG to
3188 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3190 Pass a valid block to lookup_symbol.
3191 (lookup_prefix_sym): Likewise.
3192 (find_method): Construct search name based on SYM_CLASS instead
3194 * psymtab.c (lookup_partial_symbol): Add language parameter.
3195 (lookup_symbol_aux_psymtabs): Likewise.
3196 Don't assume that the psymtab we found was the right one. Search
3197 for the desired symbol in the symtab to be certain.
3198 (psymtab_search_name): New function.
3199 (lookup_partial_symbol): Use psymtab_search_name.
3200 Add language parameter.
3201 (read_symtabs_for_function): Add language parameter and pass to
3202 lookup_partial_symbol.
3203 (find_symbol_file_from_partial): Likewise.
3205 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3208 * dwarf2read.c (noop_record_line): New function.
3209 (dwarf_decode_lines): Ignore line tables for GCd functions.
3211 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3213 Fix ARI warnings about new lines at the end of messages, which
3214 are unneeded as there is a new line added at the end of the message
3216 * darwin-nat.c (darwin_stop_inferior): Ditto.
3217 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3218 * dfp.c (decimal_to_number): Ditto.
3219 * exec.c (print_section_info): Ditto.
3220 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3221 * osdata.c (get_osdata): Ditto.
3222 * record.c (bfdcore_write): Ditto.
3223 * remote-mips.c (mips_readchar): Ditto.
3224 * remote.c (read_ptid): Ditto.
3225 * ser-mingw.c (ser_windows_raw): Ditto.
3226 * tracepoint.c (add_local_symbols): Ditto.
3227 * windows-nat.c (fake_create_process): Ditto.
3229 2011-03-16 Tom Tromey <tromey@redhat.com>
3231 * tracepoint.c (stop_tracing): Don't declare.
3232 * event-top.c (after_char_processing_hook): Add `(void)'.
3234 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3236 * NEWS: Add Parameter sub-classing description.
3238 2011-03-16 Kai Tietz <ktietz@redhat.com>
3240 * MAINTAINERS: Update my e-mail address.
3242 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3244 * MAINTAINERS: Add myself for write after approval privileges.
3246 2011-03-15 Michael Snyder <msnyder@vmware.com>
3248 * frame.c (find_frame_sal): Assert sym is not null.
3250 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3252 * objc-lang.c (selectors_info): Check strchr for null result.
3254 * stabsread.c (define_symbol): Guard against bad stabstring input.
3256 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3258 Remove trailing spaces and tabulations from pascal language
3263 p-valprint.c: Ditto.
3265 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3268 than LOW. Comment it.
3269 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3270 HIGHPC not strictly higher than LOWPC.
3272 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3274 Fix formatting of function declarations returning a pointer in
3276 * varobj.c (varobj_add_child): Ditto.
3277 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3278 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3280 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3282 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3283 for the "generic" vector ABI used with GCC 4.3 and later.
3284 (ppc64_sysv_abi_return_value): Likewise.
3286 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3288 * infcall.c (call_function_by_hand): Function return value is
3289 always a non_lval, even when using struct_return.
3291 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3293 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3294 (map_display_numbers): New.
3295 (do_delete_display): New.
3296 (undisplay_command): Use map_display_numbers.
3297 (do_enable_disable_display): New.
3298 (enable_disable_display_command): New function.
3299 (enable_display): Delete.
3300 (enable_display_command): New.
3301 (disable_display_command): Reimplement.
3302 (_initialize_printcmd): Adjust "enable display" command to use
3303 `enable_display_command' as callback.
3305 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3307 * NEWS: Add Python breakpoint 'stop' operation.
3309 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3311 * NEWS: Delete duplicate entry. Fix typo.
3313 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3315 Fix ARI warning about function names in first column.
3316 Put prototype declaration on same line as return type.
3317 * objc-exp.y: Ditto.
3319 * python/py-stopevent.h: Ditto.
3320 For long function names, split parameters to
3321 allow function name on same line as return type.
3322 * solib-pa64.c: Ditto.
3325 For long function declaration, use single line.
3326 * hppa-tdep.h: Ditto.
3327 * inferior.h: Ditto.
3329 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3331 * python/python.h: Declare gdbpy_should_stop and
3332 gdbpy_breakpoint_has_py_cond.
3333 * python/python.c: Add python.h to includes. Remove python.h from
3334 HAVE_PYTHON definition
3335 (gdbpy_should_stop): New dummy function.
3336 (gdbpy_breakpoint_has_py_cond): New dummy function.
3337 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3338 sub-classing capabilities.
3339 (gdbpy_should_stop): New function.
3340 (gdbpy_breakpoint_has_py_cond): New function.
3341 (local_setattro): New function.
3342 * breakpoint.c (condition_command): Add check for Python 'stop'
3344 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3345 operation function as part of stop/continue tests.
3347 2011-03-14 Tom Tromey <tromey@redhat.com>
3350 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3351 (needs_frame_dwarf_call): Likewise.
3353 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3355 Fix ARI warning about functions without parameters that do not
3357 * breakpoint.c (all_tracepoints): Replace () by (void).
3358 * f-exp.y (match_string_literal): Ditto.
3360 * m2-exp.y (yylex): Ditto.
3361 * mep-tdep.c (current_me_module): Ditto.
3362 (current_options): Ditto.
3363 (current_cop_data_bus_width): Ditto.
3364 (current_cr_names): Ditto.
3365 (current_cr_is_float): Ditto.
3366 (current_ccr_names): Ditto.
3367 * objc-exp.y (yylex): Ditto.
3368 * p-exp.y (yylex): Ditto.
3369 * remote.c (send_interrupt_sequence): Ditto.
3370 * tracepoint.c (current_trace_status): Ditto.
3371 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3372 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3374 2011-03-11 Michael Snyder <msnyder@vmware.com>
3376 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3377 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3378 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3379 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3380 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3382 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3383 (delete_async_event_handler): Ditto.
3385 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3387 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3389 * top.c (set_verbose): Assert showcmd was found.
3391 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3393 * xtensa-tdep.c (warning_once): Correct style issues.
3395 2011-03-11 Yao Qi <yao@codesourcery.com>
3397 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3399 2011-03-11 Andreas Schwab <schwab@redhat.com>
3401 * common/aclocal.m4: Remove.
3403 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3405 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3406 (xtensa_write_register, xtensa_read_register): Likewise.
3407 (xtensa_hextochar): Removed.
3408 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3410 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3412 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3413 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3414 (xtensa_alloc_frame_cache): Add initialization for new fields.
3415 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3416 (warning_once): New function.
3417 (xtensa_insn_kind): New item c0opc_and.
3418 (call0_classify_opcode): Add the case for AND instruction.
3419 (call0_track_op): Change arguments. New local variable litbase.
3420 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3421 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3423 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3424 (call0_analyze_prologue): Update the comments. Change arguments.
3425 Add the variety of updates to handle extended prologues, which now can
3426 conduct dynamic stack adjustments.
3427 (call0_frame_cache): Likewise.
3428 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3429 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3431 2011-03-10 Michael Snyder <msnyder@vmware.com>
3433 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3434 (cmd_qtframe): Ditto.
3435 (cmd_qtbuffer): Ditto.
3436 (cmd_bigqtbuffer): Ditto.
3438 2011-03-10 Tom Tromey <tromey@redhat.com>
3440 * tracepoint.c (trace_actions_command): Update.
3441 * thread.c (thread_apply_command): Update.
3442 * reverse.c (delete_bookmark_command): Update.
3443 (bookmarks_info): Update.
3444 * printcmd.c (undisplay_command): Update.
3445 * memattr.c (mem_enable_command): Update.
3446 (mem_disable_command): Update.
3447 (mem_delete_command): Update.
3448 * inferior.c (detach_inferior_command): Update.
3449 (kill_inferior_command): Update.
3450 (remove_inferior_command): Update.
3451 * cli/cli-utils.h (struct get_number_or_range_state): New.
3452 (init_number_or_range): Declare.
3453 (get_number_or_range): Update.
3454 * cli/cli-utils.c (init_number_or_range): New function.
3455 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3457 (number_is_in_list): Update.
3458 * breakpoint.h (get_tracepoint_by_number): Update.
3459 * breakpoint.c (map_breakpoint_numbers): Update for change to
3460 get_number_or_range.
3461 (find_location_by_number): Use get_number, not
3462 get_number_or_range.
3463 (trace_pass_set_count): New function.
3464 (trace_pass_command): Update for change to get_number_or_range.
3466 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3469 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3471 * python/py-param.c (add_setshow_generic): Add set/show callback
3472 parameters. Register Python object context.
3473 (get_show_value): New function.
3474 (get_set_value): New function.
3475 (call_doc_function): New function.
3476 (get_doc_string): Move behind get_show_value/get_set_value.
3478 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3480 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3482 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3484 * xtensa-tdep.c (xtensa_read_register): Add comment.
3485 (xtensa_write_register): Likewise.
3486 (xtensa_hextochar): Add comment and update to match coding conventions.
3487 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3488 (execute_l32e, execute_s32e, execute_code): Update comments.
3489 (xtensa_exception_handler_t): Update to match coding conventions.
3490 (xtensa_insn_kind): Likewise.
3492 2011-03-09 Michael Snyder <msnyder@vmware.com>
3494 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3496 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3498 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3500 2011-03-09 Tom Tromey <tromey@redhat.com>
3502 * thread.c (restore_selected_frame): Handle frame_level == -1.
3503 (make_cleanup_restore_current_thread): Use
3504 get_selected_frame_if_set.
3505 * frame.h (get_selected_frame_if_set): Declare.
3506 * frame.c (get_selected_frame_if_set): New function.
3508 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3510 * cli/cli-cmds.c (shell_escape): Use lbasename.
3511 * coffread.c (coff_start_symtab): Constify parameter.
3512 (complete_symtab): Constify `name' parameter.
3513 (coff_symtab_read): Constify `filestring' local.
3514 (coff_getfilename): Constify return and `result' local.
3516 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3517 * linux-fork.c (info_checkpoints_command): Use lbasename.
3518 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3519 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3520 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3521 * procfs.c (procfs_make_note_section): Use lbasename.
3522 * tui/tui-io.c (printable_part): Constity return and parameter.
3524 (print_filename): Constify parameters, and local `s'.
3525 (tui_rl_display_match_list): Constify local `temp'.
3527 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3530 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3531 Fix DWARF-3+ DW_AT_accessibility default assumption.
3532 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3533 cu->header.version >= 3.
3535 2011-03-09 Yao Qi <yao@codesourcery.com>
3537 * common/Makefile.in: Remove.
3538 * common/configure: Remove.
3539 * common/configure.ac: Remove.
3541 2011-03-09 Yao Qi <yao@codesourcery.com>
3544 2011-02-11 Yao Qi <yao@codesourcery.com>
3546 * common/Makefile.in: Add copyright header.
3548 2011-02-11 Yao Qi <yao@codesourcery.com>
3550 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3552 * configure.ac: Add common to sub dir.
3553 * configure: Regenerate.
3555 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3557 * xtensa-tdep.c (call0_ret): New function.
3558 (xtensa_skip_prologue): Speed up analysis.
3560 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3562 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3563 while executing MI command -data-list-changed-registers.
3565 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3567 * xtensa-tdep.c (xtensa_read_register): New function.
3568 (xtensa_write_register): New function.
3569 (xtensa_find_register_by_name): New function.
3570 (xtensa_windowed_frame_cache): Update comments in type description.
3571 (xtensa_frame_cache): Likewise.
3572 (xtensa_window_interrupt_insn): New function.
3573 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3574 (xtensa_insn_kind): Add new instructions.
3575 (rwx_special_register): New function.
3576 (call0_classify_opcode): Add new instructions to the analysis.
3577 (a0_saved, a7_saved, a11_saved): New variables.
3578 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3579 (execute_l32e): New function.
3580 (execute_s32e): New function.
3581 (xtensa_exception_handler_t): New type.
3582 (execute_code): New function.
3583 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3584 analysis for Xtensa Window Exception handlers.
3586 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3588 * xtensa-tdep.c (TX_PS): New.
3589 (windowing_enabled): Update to count for Call0 ABI.
3590 (xtensa_hextochar): New.
3591 (xtensa_init_reggroups): Make algorithm generic.
3592 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3594 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3596 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3598 2011-03-08 Michael Snyder <msnyder@vmware.com>
3600 * i386-tdep.c (i386_follow_jump): Check return value of
3602 (i386_analyze_struct_return): Ditto.
3603 (i386_skip_probe): Ditto.
3604 (i386_match_insn): Ditto.
3605 (i386_skip_noop): Ditto.
3606 (i386_analyze_frame_setup): Ditto.
3607 (i386_analyze_register_saves): Ditto.
3608 (i386_skip_prologue): Ditto.
3609 (i386_skip_main_prologue): Ditto.
3611 * target.c (read_whatever_is_readable): Fix memory leak.
3613 * i386-tdep.c (i386_process_record): Document fall through.
3615 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 Fix DWARF-3+ DW_AT_accessibility default assumption.
3618 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3619 cu->header.version >= 3.
3621 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3623 * remote.c (remote_check_symbols): Skip if the target has no
3626 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3628 * target.c (read_whatever_is_readable): Reformat comment,
3629 with a minor typo fix. Minor reformatting of the code.
3631 2011-03-08 Yao Qi <yao@codesourcery.com>
3633 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3634 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3635 Use cached result instead of calling displaced_in_arm_mode again.
3636 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3637 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3638 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3639 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3640 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3641 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3642 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3643 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3644 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3645 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3646 (arm_catch_kernel_helper_return): Likewise.
3647 * gdb/arm-tdep.h : Update function declarations.
3649 2011-03-07 Michael Snyder <msnyder@vmware.com>
3651 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3653 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3655 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3657 * elfread.c (elf_symtab_read): Stop memory leak.
3659 * main.c (captured_main): Fix memory leak.
3661 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3663 * ada-lang.c (compare_names): Call is_name_suffix with string1
3666 2011-03-07 Tom Tromey <tromey@redhat.com>
3668 * xcoffread.c (xcoff_sym_fns): Update.
3669 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3670 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3671 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3672 (symbol_file_add_with_addrs_or_offsets): Likewise.
3673 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3674 * somread.c (som_sym_fns): Update.
3675 * psymtab.h (require_partial_symbols): Declare.
3676 * psymtab.c (require_partial_symbols): New function.
3677 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3678 (ALL_OBJFILE_PSYMTABS): Undef.
3679 (ALL_PSYMTABS): Move from psympriv.h.
3680 (lookup_partial_symtab, find_pc_sect_psymtab)
3681 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3682 (find_last_source_symtab_from_partial)
3683 (forget_cached_source_info_partial)
3684 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3685 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3686 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3687 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3688 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3689 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3690 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3691 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3692 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3694 * mipsread.c (ecoff_sym_fns): Update.
3695 * machoread.c (macho_sym_fns): Update.
3696 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3697 (read_psyms): New function.
3698 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3699 (elf_sym_fns_lazy_psyms): New global.
3700 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3701 dwarf2_build_psymtabs.
3702 * dbxread.c (aout_sym_fns): Update.
3703 * coffread.c (coff_sym_fns): Update.
3705 2011-03-07 Tom Tromey <tromey@redhat.com>
3707 * infrun.c (print_exited_reason): Include inferior id and pid in
3710 2011-03-07 Tom Tromey <tromey@redhat.com>
3712 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3714 (target_has_execution_1): Update.
3715 (target_has_execution_current): Declare.
3716 (target_has_execution): Call target_has_execution_current.
3717 (default_child_has_execution): Update.
3718 * target.c (default_child_has_execution): Add 'the_ptid'
3720 (target_has_execution_1): Likewise.
3721 (target_has_execution_current): New function.
3722 (add_target): Update.
3723 (init_dummy_target): Update.
3724 * remote-m32r-sdi.c (m32r_has_execution): New function.
3725 (init_m32r_ops): Use it.
3726 * record.c (record_core_has_execution): Now static. Add
3727 'the_ptid' parameter.
3728 * inferior.c (have_live_inferiors): Don't save current thread.
3729 Use target_has_execution_1.
3731 2011-03-07 Yao Qi <yao@codesourcery.com>
3733 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3735 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3737 * elfread.c (elf_symtab_read): Minor reformatting.
3739 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3741 * objc-lang.c (selectors_info): Minor reformatting.
3743 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3745 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3747 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3748 Michael Snyder <msnyder@vmware.com>
3750 * ada-valprint.c (ada_val_print_array): Move the declaration of
3751 "byte_order" and "elttype" inside the block where these variables
3752 are actually used. Remove some special handling for the case
3753 where "elttype" and "eltlen" are null. Replace by a comment
3754 and a couple of assertion checks.
3756 2011-03-05 Michael Snyder <msnyder@vmware.com>
3758 * source.c (add_path): Replace semicolon at end of block.
3759 * dwarf2expr.c (execute_stack_op): Ditto.
3761 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3763 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3764 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3765 (bfin-*-*): Likewise.
3767 2011-03-05 Michael Snyder <msnyder@vmware.com>
3769 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3770 * mdebugread.c (parse_symbol): Ditto.
3771 * parse.c (parse_exp_in_context): Ditto.
3772 * source.c (add_path): Ditto.
3773 * utils.c (gnu_debuglink_crc32): Ditto.
3774 * varobj.c (variable_language): Ditto.
3776 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3778 2011-03-04 Michael Snyder <msnyder@vmware.com>
3780 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3782 * symfile.c (simple_overlay_update): Check for null return value
3783 from lookup_minimal_symbol.
3785 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3787 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3789 * eval.c (parse_and_eval_address_1): Remove function.
3790 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3791 instead of parse_and_eval_address_1.
3792 * value.h (parse_and_eval_address_1): Remove prototype.
3794 2011-03-04 Michael Snyder <msnyder@vmware.com>
3796 * remote.c (putpkt_binary): Document that case stmt falls through.
3798 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3800 * breakpointc (print_it_typical): Move NULL check from here...
3801 (print_bp_stop_message): ... to here.
3803 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3805 * breakpoint.c (enable_command): Use break instead of continue,
3806 and fill in a missing break.
3807 (disable_command): Ditto.
3809 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3811 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3812 (terminal_save_ours): Remove misleading comment.
3813 (inflow_inferior_data_cleanup): Free ttystate.
3814 (inflow_inferior_exit): Likewise.
3815 (copy_terminal_info): Copy ttystate.
3817 * serial.c (serial_copy_tty_state): New function.
3818 * serial.h (serial_copy_tty_state): Add prototype.
3819 (struct serial_ops): Add copy_tty_state callback.
3820 * ser-base.c (ser_base_copy_tty_state): New function.
3821 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3822 * ser-go32.c (dos_copy_tty_state): New function.
3823 (dos_ops): Install copy_tty_state callback.
3824 * ser-mingw.c (_initialize_ser_windows): Likewise.
3825 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3826 * ser-unix.c (hardwire_copy_tty_state): New function.
3827 (_initialize_ser_hardwire): Install it.
3829 2011-03-04 Michael Snyder <msnyder@vmware.com>
3831 * breakpoint.c (create_breakpoint): Add missing break statement.
3833 Reverting this patch:
3834 * infcall.c (call_function_by_hand): Add break statements for lint.
3836 Reverting this patch:
3837 * cli/cli-script.c (script_from_file): Add break for lint.
3839 2011-03-04 Michael Snyder <msnyder@vmware.com>
3841 * solib.c (reload_shared_libraries_1): Close memory leak.
3843 2011-03-03 Tom Tromey <tromey@redhat.com>
3846 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3849 2011-03-03 Michael Snyder <msnyder@vmware.com>
3851 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3852 fields of struct 'st' to zero.
3854 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3855 sal.pspace before calling set_current_source_symtab_and_line.
3857 2011-03-03 Yao Qi <yao@codesourcery.com>
3859 * Makefile.in (configure-common): Remove. Let Makefile
3860 in dir common to rebuild itself.
3861 (common/Makefile): Likewise.
3863 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3865 * utils.c (parse_escape): Add i18n markup in error message.
3867 2011-03-03 Yao Qi <yao@codesourcery.com>
3869 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3871 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3872 (displaced_write_reg, displaced_read_reg): Likewise.
3873 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3874 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3875 (cleanup_branch): Replace magic number 14 and 15 with
3876 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3878 2011-03-02 Michael Snyder <msnyder@vmware.com>
3880 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3882 * cli/cli-script.c (script_from_file): Add break for lint.
3884 * mdebugread.c (parse_partial_symbols): Fix indent.
3886 * target-descriptions.c (tdesc_gdb_type): No need to call
3887 xstrdup, callee saves a copy.
3889 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3891 * infcall.c (call_function_by_hand): Add break statements for lint.
3893 * utils.c (parse_escape): Escape the escape char.
3895 * python/py-inferior.c (build_inferior_list): Error out if
3896 PyList_Append fails.
3897 (gdbpy_inferiors): Error out if build_inferior_list fails.
3899 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3902 * record.c (record_restore): Move printf to before error return.
3904 2011-03-02 Yao Qi <yao@codesourcery.com>
3906 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3907 is_thumb and insn_size.
3908 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3909 on both ARM and Thumb mode.
3910 (arm_process_displaced_insn): Set is_thumb and insn_size.
3911 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3912 (arm_displaced_step_fixup): Likewise.
3914 2011-03-01 Michael Snyder <msnyder@vmware.com>
3916 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3918 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3920 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3922 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3924 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3927 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3928 which shadows function parameter.
3930 * tracepoint.c (create_tsv_from_upload): Superfluous call
3931 to xstrdup. Callee already calls xstrdup.
3933 * linespec.c (decode_line_1): Remove unnecessary null check.
3935 * tracepoint.c (scope_info): Fix mem leak, remove underused
3938 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3939 superfluous null check.
3941 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3942 (value_of_builtin_frame_fp_reg): Ditto.
3944 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3946 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3949 * linespec.c (decode_line_1): Check for null before dereference.
3951 * reverse.c (record_restore): Move null-check to before pointer
3954 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3956 * objc-lang.c (selectors_info): Add explanitory comment.
3957 (classes_info): Ditto.
3959 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3961 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3962 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3963 versions of the trampoline. Handle Thumb vs. ARM addresses.
3964 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3965 (arm_linux_init_abi): Install it.
3966 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3967 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3969 2011-02-28 Michael Snyder <msnyder@vmware.com>
3971 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3972 a little bigger, to avoid possibility of an overflow.
3974 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3975 buffers a little bigger, to avoid possibility of an overflow.
3977 * coffread.c (coff_getfilename): Add check to avoid overflow.
3979 * objc-lang.c (selectors_info): Add a small safety margin to
3981 (classes_info): Error out on too long REGEXP.
3983 * infrun.c (handle_inferior_event): Remove unused function call.
3985 * fork-child.c (fork_inferior): Remove ifdef'd code and
3988 * linux-thread-db.c (attach_thread): Discard unused value.
3990 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3992 * remote.c (remote_get_noisy_reply): Discard unused value.
3993 (remote_vcont_resume): Ditto.
3994 (remote_stop_ns): Ditto.
3996 * linespec.c (decode_objc): Delete unused variable.
3998 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4000 * dwarf2read.c (add_partial_symbol): Discard unused values.
4001 (read_base_type): Delete unused variable.
4003 * dbxread.c (read_dbx_symtab): Discard unused value.
4005 * eval.c (evaluate_subexp_standard): Delete unused variable,
4006 and discard unused values.
4008 * infcmd.c (_initialize_infcmd): Discard unused values.
4010 * stabsread.c (rs6000_builtin_type): Missing break statement.
4012 * dbxread.c (process_one_symbol): Discard unused value.
4014 * coffread.c (coff_end_symtab): Delete unused variable.
4016 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4017 (dwarf2_add_typedef): Delete unused variable.
4018 (read_namespace): Ditto.
4019 (dwarf_decode_macros): Ditto.
4021 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4023 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4025 * p-valprint.c (pascal_val_print): Discard unused value.
4027 * utils.c (nquery): Call va_end before return;
4031 * proc-service.c (ps_plog): Call va_end before return.
4033 2011-02-28 Tom Tromey <tromey@redhat.com>
4035 * python/python.c (gdbpy_value_cst): New global.
4036 (_initialize_python): Initialize it.
4037 * python/python-internal.h (gdbpy_value_cst): Declare.
4038 * python/py-value.c (convert_value_from_python): Use
4041 2011-02-28 Michael Snyder <msnyder@vmware.com>
4043 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4045 * breakpoint.c (catch_syscall_completer): Free malloced list.
4047 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4049 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4050 (lval_func_check_synthetic_pointer): Ditto.
4051 (lval_func_free_closure): Fix use-after-free.
4053 2011-02-28 Tom Tromey <tromey@redhat.com>
4055 * psymtab.c (expand_partial_symbol_tables): Use
4056 ALL_OBJFILE_PSYMTABS.
4058 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4060 * objc-lang.c (selectors_info): Error on too long REGEXP.
4062 2011-02-28 Michael Snyder <msnyder@vmware.com>
4064 * python/py-param.c (set_parameter_value): Add missing
4067 * linux-record.c (record_linux_system_call): Add missing
4070 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4072 * breakpoint.c (print_one_breakpoint_location): Remove unused
4073 argument PRINT_ADDRESS_BITS. Update callers.
4074 (print_one_breakpoint): Likewise.
4076 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4078 * breakpoint.c (wrap_indent_at_field): New function.
4079 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4080 Allocate ui_stream locally instead of using STB argument.
4081 (print_one_breakpoint_location): Update call.
4082 * ui-out.c (ui_out_query_field): New function.
4083 * ui-out.h (ui_out_query_field): Add prototype.
4085 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4087 From Michael Snyder <msnyder@vmware.com>
4088 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4090 2011-02-27 Michael Snyder <msnyder@vmware.com>
4092 * objc-lang.c (selectors_info): Prevent string overrun.
4094 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4097 * symtab.c (rbreak_command): Move variable 'file_name' to
4100 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4101 param with a local variable of the same name.
4103 2011-02-27 Michael Snyder <msnyder@vmware.com>
4105 * value.c (value_from_history_ref): New function.
4106 * value.h (value_from_history_ref): Export.
4107 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4108 to parse value history references.
4109 * cli/cli-utils.h (get_number_trailer): Update comment.
4111 2011-02-27 Michael Snyder <msnyder@vmware.com>
4113 * inferior.c (detach_inferior_command): Use get_number_or_range.
4114 (kill_inferior_command): Ditto.
4115 (remove_inferior_command): Ditto.
4116 (initialize_inferiors): Make command names plural.
4117 Update help strings.
4119 2011-02-27 Michael Snyder <msnyder@vmware.com>
4121 * darwin-nat-info.c: Fix comment typo.
4122 * dwarf2expr.h: Ditto.
4123 * fbsd-nat.c: Ditto.
4124 * fbsd-nat.h: Ditto.
4125 * frame-unwind.h: Ditto.
4127 * hppa-hpux-tdep.c: Ditto.
4128 * i386-linux-nat.c: Ditto.
4129 * linux-nat.c: Ditto.
4130 * nbsd-nat.c: Ditto.
4131 * nbsd-nat.h: Ditto.
4132 * ppc-linux-tdep.c: Ditto.
4135 * tui/tui-winsource.c: Ditto.
4137 2011-02-26 Michael Snyder <msnyder@vmware.com>
4139 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4141 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4143 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4144 with a local variable of the same name.
4146 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4147 param with a local variable of the same name.
4148 (i387_supply_xsave): Ditto.
4150 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4151 that it does not shadow a function parameter.
4153 * i386-nat.c (i386_length_and_rw_bits): Document that case
4154 statement is meant to fall through.
4156 * expprint.c (dump_subexp_body_standard): Document that case
4157 statement is meant to fall through.
4159 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4160 dead if statement. Condition can't be false.
4162 2011-02-25 Michael Snyder <msnyder@vmware.com>
4164 * arm-tdep.c: Fix typos in comments.
4165 * bsd-uthread.c: Ditto.
4166 * completer.c: Ditto.
4168 * cp-namespace.c: Ditto.
4169 * cp-support.c: Ditto.
4170 * cris-tdep.c: Ditto.
4172 * dwarf2read.c: Ditto.
4174 * gdbtypes.h: Ditto.
4175 * inferior.h: Ditto.
4176 * mdebugread.c: Ditto.
4177 * mips-tdep.c: Ditto.
4178 * ppc-linux-nat.c: Ditto.
4179 * ppc-linux-tdep.c: Ditto.
4180 * printcmd.c: Ditto.
4181 * sol-thread.c: Ditto.
4182 * solib-frv.c: Ditto.
4184 * sparc64-tdep.c: Ditto.
4185 * spu-tdep.c: Ditto.
4186 * stabsread.c: Ditto.
4191 * python/py-block.c: Ditto.
4192 * python/py-symbol.c: Ditto.
4193 * python/py-symtab.c: Ditto.
4194 * python/py-value.c: Ditto.
4195 * tui/tui-win.c: Ditto.
4197 2011-02-25 Michael Snyder <msnyder@vmware.com>
4199 * inferior.c (print_inferior): Accept a string instead of an int
4200 for requested_inferiors, and use get_number_or_range to parse it.
4201 (info_inferiors_command): Pass args string to print_inferior.
4202 (initialize_inferiors): Change help string for info inferiors.
4203 * inferior.h (print_inferior): Export prototype change.
4205 2011-02-25 Tom Tromey <tromey@redhat.com>
4207 * common/ax.def (invalid2): Set to 0x31.
4209 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4211 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4213 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4215 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4217 2011-02-24 Michael Snyder <msnyder@vmware.com>
4219 * Makefile.in (clean): Make clean should remove generated files
4220 observer.h and observer.inc.
4222 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4224 Revert the following patch (not approved yet):
4225 2011-02-21 Hui Zhu <teawater@gmail.com>
4226 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4227 * ax-gdb.c (gen_printf_expr_callback): New function.
4228 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4229 * ax-general.c (ax_memcpy): New function.
4230 (ax_print): Handle "printf".
4232 * ax.h (ax_memcpy): Forward declare.
4233 * common/ax.def (invalid2): Removed.
4234 (printf): New entry.
4235 * printcmd.c (printcmd.h): New include.
4236 (string_printf): New function.
4237 (ui_printf): Removed.
4238 (printf_command): Remove static. Call string_printf.
4239 (eval_command): Call string_printf.
4240 * printcmd.h: New file.
4241 * tracepoint.c (validate_actionline,
4242 encode_actions_1): handle printf_command.
4244 2011-02-23 Tom Tromey <tromey@redhat.com>
4246 * ax-general.c (ax_pick): Add missing newline.
4248 2011-02-23 Michael Snyder <msnyder@vmware.com>
4250 * breakpoint.c (breakpoint_1): Change first argument from an int
4251 to a char pointer, so that the function now accepts a list of
4252 breakpoints rather than just one. Use new function
4253 'number_is_in_list' to implement.
4254 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4255 (watchpoints_info): Ditto.
4256 (tracepoints_info): Ditto.
4257 (maintenance_info_breakpoints): Ditto.
4258 (_initialize_breakpoint): Update help strings to reflect the fact
4259 that these functions can now take more than one argument.
4260 * cli/cli-utils.c (number_is_in_list): New function.
4261 * cli/cli-utils.h (number_is_in_list): Export.
4263 2011-02-23 Michael Snyder <msnyder@vmware.com>
4265 * memattr.c (mem_enable_command): Use get_number_or_range.
4266 (mem_disable_command): Ditto.
4267 (mem_delete_command): Ditto.
4268 (_initialize_mem): Tweak usage message to reflect multiple
4271 2011-02-22 Doug Evans <dje@google.com>
4273 Add gdb.lookup_global_symbol python function.
4275 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4276 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4277 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4279 2011-02-22 Tom Tromey <tromey@redhat.com>
4281 * language.c (language_class_name_from_physname): Rename
4282 'curr_language' argument to 'lang'; use in body.
4284 2011-02-22 Michael Snyder <msnyder@vmware.com>
4286 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4288 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4290 * frame-unwind.h: Fix comment to mention the this frame, not the
4293 2011-02-22 Tom Tromey <tromey@redhat.com>
4295 * symfile.c (auto_solib_limit): Remove.
4296 * symfile.h (auto_solib_limit): Remove.
4298 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4300 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4302 2011-02-21 Michael Snyder <msnyder@vmware.com>
4304 * gdbthread.h (print_thread_info): Change prototype.
4305 * thread.c (print_thread_info): Accept char* instead of int for
4306 requested_threads argument. Use new function number_is_in_list
4307 to determine which threads to list.
4308 (info_threads_command): Pass char* to print_thread_info.
4309 * cli/cli-utils.c (number_is_in_list): New function.
4310 * cli/cli-utils.h (number_is_in_list): Export.
4311 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4313 (print_one_inferior): Ditto.
4314 (mi_cmd_list_thread_groups): Ditto.
4316 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 * common/Makefile.in (CFLAGS): New.
4319 (COMPILE): Add $(CFLAGS).
4321 2011-02-21 Tom Tromey <tromey@redhat.com>
4323 * breakpoint.c (catch_syscall_command_1): Fix typo.
4325 2011-02-21 Tom Tromey <tromey@redhat.com>
4327 * reverse.c: Include cli-utils.h.
4328 * printcmd.c: Include cli-utils.h.
4329 (string_printf): Use skip_spaces.
4330 * cli/cli-utils.h: New file.
4331 * cli/cli-utils.c: New file.
4332 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4333 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4334 * breakpoint.h (get_number, get_number_or_range): Move to
4336 * breakpoint.c: Include cli-utils.h.
4337 (get_number_trailer, get_number, get_number_or_range)
4338 (ep_skip_leading_whitespace): Move to cli-utils.c.
4339 (create_breakpoint_sal, find_condition_and_thread)
4340 (decode_static_tracepoint_spec, watch_command_1)
4341 (watch_maybe_just_location, ep_parse_optional_if_clause)
4342 (catch_fork_command_1, catch_exec_command_1)
4343 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4344 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4345 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4346 (HFILES_NO_SRCDIR): Add cli-utils.h.
4347 (cli-utils.o): New target.
4349 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4351 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4352 before calling discard_all_inferiors.
4354 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4356 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4357 (struct builtin_opencl_type): Remove.
4358 (builtin_opencl_type): Change return type to "struct type **".
4359 (lookup_opencl_vector_type): Update caller.
4360 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4361 (build_opencl_types): Install plain array of "struct type *"
4362 instead of "struct builtin_opencl_type".
4364 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4365 Ulrich Weigand <uweigand@de.ibm.com>
4367 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4368 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4369 (struct arm_linux_hwbp_cap): New type.
4370 (arm_linux_get_hwbp_cap): New function.
4371 (arm_linux_get_hw_breakpoint_count): Likewise.
4372 (arm_linux_get_hw_watchpoint_count): Likewise.
4373 (arm_linux_can_use_hw_breakpoint): Likewise.
4374 (arm_hwbp_type): New type.
4375 (arm_hwbp_control_t): Likewise.
4376 (struct arm_linux_hw_breakpoint): Likewise.
4377 (struct arm_linux_thread_points): Likewise.
4378 (arm_threads): New global variable.
4379 (arm_linux_find_breakpoints_by_tid): New function.
4380 (arm_hwbp_control_initialize): Likewise.
4381 (arm_hwbp_control_is_enabled): Likewise.
4382 (arm_hwbp_control_disable): Likewise.
4383 (arm_linux_hw_breakpoint_initialize): Likewise.
4384 (arm_linux_get_hwbp_type): Likewise.
4385 (arm_linux_hw_watchpoint_initialize): Likewise.
4386 (arm_linux_hw_breakpoint_equal): Likewise.
4387 (arm_linux_insert_hw_breakpoint1): Likewise.
4388 (arm_linux_remove_hw_breakpoint1): Likewise.
4389 (arm_linux_insert_hw_breakpoint): Likewise.
4390 (arm_linux_remove_hw_breakpoint): Likewise.
4391 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4392 (arm_linux_insert_watchpoint): Likewise.
4393 (arm_linux_remove_watchpoint): Likewise.
4394 (arm_linux_stopped_data_address): Likewise.
4395 (arm_linux_stopped_by_watchpoint): Likewise.
4396 (arm_linux_watchpoint_addr_within_range): Likewise.
4397 (arm_linux_new_thread): Likewise.
4398 (arm_linux_thread_exit): Likewise.
4399 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4400 related target callbacks. Register arm_linux_new_thread and
4401 arm_linux_thread_exit.
4402 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4403 * arm-tdep.c (arm_pc_is_thumb): Make global.
4404 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4406 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4408 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4409 per-frame locations while within a function epilogue.
4411 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4413 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4414 to GNU coding standards.
4416 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4418 Allow use of mingw native on Windows 95 OS.
4419 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4420 (ser_windows_close): Only call CancelIo if function exists.
4421 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4422 to check for existence of CancelIo function in kernel32 DLL.
4424 2011-02-21 Hui Zhu <teawater@gmail.com>
4426 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4427 * ax-gdb.c (gen_printf_expr_callback): New function.
4428 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4429 * ax-general.c (ax_memcpy): New function.
4430 (ax_print): Handle "printf".
4432 * ax.h (ax_memcpy): Forward declare.
4433 * common/ax.def (invalid2): Removed.
4434 (printf): New entry.
4435 * printcmd.c (printcmd.h): New include.
4436 (string_printf): New function.
4437 (ui_printf): Removed.
4438 (printf_command): Remove static. Call string_printf.
4439 (eval_command): Call string_printf.
4440 * printcmd.h: New file.
4441 * tracepoint.c (validate_actionline,
4442 encode_actions_1): handle printf_command.
4444 2011-02-19 Michael Snyder <msnyder@vmware.com>
4446 * reverse.c (delete_one_bookmark): Argument is now bookmark
4447 id rather than pointer to bookmark struct.
4448 (delete_bookmark_command): Use get_number_or_range.
4449 (goto_bookmark_command): Parse with get_number instead of strtoul.
4450 (bookmark_1): New function. Print info for one bookmark.
4451 (bookmarks_info): Use get_number_or_range and bookmark_1.
4453 2011-02-18 Michael Snyder <msnyder@vmware.com>
4455 * thread.c (info_threads_command): Re-implement using
4456 get_number_or_range.
4457 (thread_apply_command): Ditto.
4459 2011-02-18 Tom Tromey <tromey@redhat.com>
4461 * common/ax.def: New file.
4462 * ax.h (enum agent_op): Use ax.def.
4463 * ax-general.c (aop_map): Use ax.def.
4465 2011-02-18 Tom Tromey <tromey@redhat.com>
4467 * ax-general.c (aop_map): Add pick and rot.
4468 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4469 <DW_OP_rot>: Implement.
4470 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4472 * ax-general.c (ax_pick): New function.
4474 2011-02-18 Tom Tromey <tromey@redhat.com>
4476 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4478 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4479 Tom Tromey <tromey@redhat.com>
4481 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4482 make_symbol_overload_list_block with NULL BLOCK.
4483 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4485 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4487 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4488 * breakpoint.h (get_number_or_range): Declare.
4489 * printcmd.c (ALL_DISPLAYS): Declare.
4490 (delete_display): Reimplement taking a display pointer.
4491 (undisplay_command): Accept a range of displays to delete, using
4492 get_number_or_range.
4494 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4496 * c-valprint.c (c_val_print): Add embedded_offset to address
4497 for arrays of unspecified length.
4498 * p-valprint.c (pascal_val_print): Likewise.
4500 2011-02-18 Yao Qi <yao@codesourcery.com>
4502 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4503 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4504 (thumb_process_displaced_insn): New.
4505 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4506 call to arm_process_displaced_insn.
4507 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4509 2011-02-17 Tom Tromey <tromey@redhat.com>
4511 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4512 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4513 compile_dwarf_to_ax. No longer static. Call
4514 dwarf2_compile_cfa_to_ax.
4515 (locexpr_tracepoint_var_ref): Update.
4516 (loclist_tracepoint_var_ref): Update.
4517 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4518 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4519 argument; add 'gdbarch' and 'pc'.
4520 (dwarf2_compile_cfa_to_ax): New function.
4521 (dwarf2_frame_cache): Update.
4523 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4525 * ada-lang.c (ada_type_of_array): Fix the size of the array
4526 in the case of an unconstrained packed array.
4528 2011-02-17 Yao Qi <yao@codesourcery.com>
4530 * common/Makefile.in: Add more targets for make.
4532 2011-02-16 Tom Tromey <tromey@redhat.com>
4534 * dwarf2loc.c (unimplemented): Fix typo.
4536 2011-02-16 Tom Tromey <tromey@redhat.com>
4538 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4539 (compile_dwarf_to_ax) <default>: Use unimplemented.
4540 <DW_OP_deref>: Update.
4541 (disassemble_dwarf_expression): Update.
4542 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4543 (decode_locdesc): Update.
4544 * dwarf2expr.h (dwarf_stack_op_name): Update.
4546 2011-02-16 Tom Tromey <tromey@redhat.com>
4548 * ax.h (struct aop_map) <name>: Now const.
4550 2011-02-16 Tom Tromey <tromey@redhat.com>
4552 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4555 2011-02-16 Yao Qi <yao@codesourcery.com>
4557 * infrun.c (get_displaced_step_closure_by_addr): New.
4558 * inferior.h: Declare it.
4559 * arm-tdep.c: (arm_pc_is_thumb): Call
4560 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4563 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4564 Jan Kratochvil <jan.kratochvil@redhat.com>
4567 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4569 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4570 Jan Kratochvil <jan.kratochvil@redhat.com>
4572 * value.c (value_contents_copy_raw): Extend describing comment.
4573 Assert that the destination contents we're overwriting are wholly
4575 (value_contents_copy): Extend describing comment.
4577 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4578 Jan Kratochvil <jan.kratochvil@redhat.com>
4580 * value.c (value_available_contents_eq): Remove redundant local
4581 variables. Fix available contents comparision.
4582 * value.h (value_available_contents_eq): Extend describing
4585 2011-02-16 Yao Qi <yao@codesourcery.com>
4587 * thread.c (info_threads_command): Add missing i18n markup and remove
4590 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4592 * breakpoint.c (longjmp_names): New variable.
4593 (struct breakpoint_objfile_data): New type.
4594 (breakpoint_objfile_key): New variable.
4595 (msym_not_found): New variable.
4596 (msym_not_found_p): New predicate.
4597 (get_breakpoint_objfile_data): New function.
4598 (create_overlay_event_breakpoint): Check per-objfile cache for
4600 (create_longjmp_master_breakpoint): Likewise.
4601 (create_std_terminate_master_breakpoint): Likewise.
4602 (create_exception_master_breakpoint): Likewise.
4603 (_initialize_breakpoint): Register per-objfile data key.
4605 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4607 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4609 (create_longjmp_master_breakpoint): Loop over longjmp names.
4610 (create_std_terminate_master_breakpoint): Const-propagate parameter
4612 (update_breakpoints_after_exec): Adjust.
4613 (breakpoint_re_set): Adjust.
4615 2011-02-15 Michael Snyder <msnyder@vmware.com>
4617 * thread.c (info_threads_command): Process arg as thread id,
4618 or list of thread ids.
4619 (thread_find_command): New command.
4620 (_initialize_thread): Document argument for info threads.
4621 Document 'thread find' command.
4622 * NEWS: Document new command "thread find".
4624 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4626 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4627 * aclocal.m4: Regenerated with aclocal-1.11.1.
4628 * common/configure: Regenerate with autoconf-2.64.
4630 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4632 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4633 bool data type to a size of one byte.
4635 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4636 Jan Kratochvil <jan.kratochvil@redhat.com>
4638 * target.c (memory_xfer_live_readonly_partial): Document where to
4639 look for interface description.
4641 2011-02-15 Yao Qi <yao@codesourcery.com>
4644 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4645 order to store PC value on stack instead of text section.
4647 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4649 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4650 the EFP register set size.
4651 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4652 data from the VMX register.
4653 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4654 and write data from/to the VMX register.
4656 2011-02-14 Michael Snyder <msnyder@vmware.com>
4658 * command.h (enum command_class): New class 'no_set_class', for
4659 "show" commands without a corresponding "set" command.
4660 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4661 * copying.c (_initialize_copying): Ditto for "show copying" and
4663 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4665 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4666 which there is no corresponding "set" command (eg. "show copying").
4668 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4669 Jan Kratochvil <jan.kratochvil@redhat.com>
4671 * exec.c (section_table_available_memory): Change `len' parameter
4673 * exec.h (section_table_available_memory): Ditto.
4674 * value.h (read_value_memory): Rename the `offset' parameter to
4677 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4678 Jan Kratochvil <jan.kratochvil@redhat.com>
4680 * memrange.c (compare_mem_ranges): Mention sort order in
4682 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4683 * tracepoint.c (traceframe_available_memory): Extend comment to
4684 mention what happens to RESULT when the target does not support
4687 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4688 Jan Kratochvil <jan.kratochvil@redhat.com>
4690 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4693 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4695 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4696 No longer handle NULL values.
4698 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4700 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4701 * value.c: Include "exceptions.h".
4702 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4704 * cp-abi.c: Include gdb_assert.h.
4705 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4706 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4708 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4709 parameters. No longer returns -1 on error.
4710 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4712 * cp-valprint.c: Include exceptions.h.
4713 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4714 the baseclass_offset. Handle unavailable base classes. Use
4715 val_print_invalid_address.
4716 * p-valprint.c: Include exceptions.h.
4717 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4718 when fetching the baseclass_offset. No longer expect
4719 baseclass_offset returning -1. Handle unavailable base classes.
4720 Use val_print_invalid_address.
4721 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4722 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4723 `embedded_offset' and `val' parameters. Adjust.
4724 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4725 parameter, and change its type to gdb_byte pointer. Add
4726 `embedded_offset' and `val' parameters. Adjust. No longer expect
4727 baseclass_offset returning -1.
4728 (value_dynamic_cast): Use value_contents_for_printing rather than
4729 value_contents. Adjust.
4730 (search_struct_field): No longer expect baseclass_offset returning
4732 (search_struct_method): If reading memory from the target is
4733 necessary, wrap it in a new value to pass to baseclass_offset. No
4734 longer expect baseclass_offset returning -1.
4735 (find_method_list): No longer expect baseclass_offset returning
4736 -1. Use value_contents_for_printing rather than value_contents.
4737 * valprint.c (val_print_invalid_address): New function.
4738 * valprint.h (val_print_invalid_address): Declare.
4739 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4740 and `val' parameters. No longer expect baseclass_offset returning
4742 * gnu-v2-abi.c: Include "exceptions.h".
4743 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4744 parameters. Handle unavailable memory. Recurse through
4745 gnuv2_baseclass_offset directly, rather than through
4746 baseclass_offset. No longer returns -1 on not found, instead
4748 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4749 `val' parameters. Adjust.
4751 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4753 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4754 almost but not quite adjacent.
4756 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4758 * value.h (value_entirely_available): Declare.
4759 * value.c (value_entirely_available): New function.
4760 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4761 real type if the pointer is unavailable.
4763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4765 * valops.c (value_repeat): Use read_value_memory instead of
4768 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4770 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4771 * value.c (value_contents_copy_raw, value_contents_copy): New
4773 (value_primitive_field): Use value_contents_copy_raw instead of
4775 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4777 (value_array, value_slice): Ditto.
4778 * valarith.c (value_subscripted_rvalue): Use
4779 value_contents_copy_raw instead of memcpy.
4781 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4783 <unavailable> references.
4785 * valops.c (get_value_at): Use value_from_contents_and_address,
4786 avoiding read_memory.
4788 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4790 * c-valprint.c (c_val_print): Print a string with unavailable
4791 contents as an array.
4793 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4795 * value.h (unpack_bits_as_long): Delete declaration.
4796 (unpack_value_bits_as_long): Declare.
4797 (unpack_value_field_as_long): Declare.
4798 (value_field_bitfield): Declare.
4799 * value.c (unpack_bits_as_long): Rename to...
4800 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4801 value parameters. Return the extracted result in a new output
4802 parameter. If the value contents are unavailable, return false,
4803 otherwise return true.
4804 (unpack_value_bits_as_long): New.
4805 (unpack_field_as_long): Rename to...
4806 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4807 Add embedded_offset and value parameters. Return the extracted
4808 result in a new output parameter. If the value contents are
4809 unavailable, return false, otherwise return true.
4810 (unpack_value_field_as_long): New.
4811 (unpack_field_as_long_1): New.
4812 (unpack_field_as_long): Reimplement as wrapper around
4813 unpack_value_field_as_long_1.
4814 (value_field_bitfield): New function.
4815 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4816 unpack_value_bits_as_long. Mark the value as unavailable, if it
4818 * jv-valprint.c (java_print_value_fields): Use
4819 value_field_bitfield.
4820 * p-valprint.c (pascal_object_print_value_fields): Use
4821 value_field_bitfield.
4822 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4824 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4826 * value.c (get_internalvar_integer): Also return the int value of
4827 TYPE_CODE_INT INTERNALVAR_VALUE values.
4828 (set_internalvar): Don't special case TYPE_CODE_INT.
4830 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4832 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4833 INTERNALVAR_POINTER.
4835 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4836 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4837 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4839 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4841 * value.h (value_available_contents_eq): Declare.
4842 * value.c (find_first_range_overlap): New function.
4843 (value_available_contents_eq): New function.
4844 * valprint.c (val_print_array_elements): Use
4845 value_available_contents_eq.
4846 * ada-valprint.c (val_print_packed_array_elements): Use
4847 value_available_contents_eq.
4848 * jv-valprint.c (java_value_print): Use
4849 value_available_contents_eq.
4851 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4853 * target.c (target_read_live_memory): New function.
4854 (memory_xfer_live_readonly_partial): New.
4855 (memory_xfer_partial): If reading from a traceframe, fallback to
4856 reading unavailable read-only memory from read-only regions of
4858 * tracepoint.c (disconnect_tracing): Adjust.
4859 (set_current_traceframe): New, factored out from
4860 set_traceframe_number.
4861 (set_traceframe_number): Reimplement to only change the traceframe
4862 number on the GDB side.
4863 (do_restore_current_traceframe_cleanup): Adjust.
4864 (make_cleanup_restore_traceframe_number): New.
4865 (cur_traceframe_number): New global.
4866 (tfile_open): Set cur_traceframe_number to no traceframe.
4867 (set_tfile_traceframe): New function.
4868 (tfile_trace_find): If looking up a traceframe using any method
4869 other than by number, make sure the current tfile traceframe
4870 matches gdb's current traceframe. Update the current tfile
4871 traceframe if the lookup succeeded.
4872 (tfile_fetch_registers, tfile_xfer_partial)
4873 (tfile_get_trace_state_variable_value): Make sure the remote
4874 traceframe matches gdb's current traceframe.
4875 * remote.c (remote_traceframe_number): New global.
4876 (remote_open_1): Set it to -1.
4877 (set_remote_traceframe): New function.
4878 (remote_fetch_registers, remote_store_registers)
4879 (remote_xfer_memory, remote_xfer_partial)
4880 (remote_get_trace_state_variable_value): Make sure the remote
4881 traceframe matches gdb's current traceframe.
4882 (remote_trace_find): If looking up a traceframe using any method
4883 other than by number, make sure the current remote traceframe
4884 matches gdb's current traceframe. Update the current remote
4885 traceframe if the lookup succeeded.
4886 * infrun.c (fetch_inferior_event): Adjust.
4887 * tracepoint.h (set_current_traceframe): Declare.
4888 (get_traceframe_number, set_traceframe_number): Add describing
4891 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4893 Mark pieces of values as unavailable if the corresponding memory
4896 * valops.c: Include tracepoint.h.
4897 (value_fetch_lazy): Use read_value_memory.
4898 (read_value_memory): New.
4899 * value.h (read_value_memory): Declare.
4900 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4901 * exec.c (section_table_available_memory): New function.
4902 * exec.h (section_table_available_memory): Declare.
4904 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4906 * Makefile.in (SFILES): Add memrange.c.
4907 (HFILES_NO_SRCDIR): Add memrange.h.
4908 (COMMON_OBS): Add memrange.o.
4909 * memrange.c: New file.
4910 * memrange.h: New file.
4911 * tracepoint.c: Include memrange.h.
4912 (struct mem_range): Delete.
4913 (mem_range_s): Delete.
4914 (traceframe_available_memory): New function.
4915 * tracepoint.h (traceframe_available_memory): Declare.
4917 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4919 * target.h (struct traceframe_info): Forward declare.
4920 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4921 (struct target_ops) <to_traceframe_info>: New field.
4922 (target_traceframe_info): New.
4923 * target.c (update_current_target): Inherit and default
4925 * remote.c (PACKET_qXfer_traceframe_info): New.
4926 (remote_protocol_features): Register qXfer:traceframe-info:read.
4927 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4928 (remote_traceframe_info): New.
4929 (init_remote_ops): Install it.
4930 (_initialize_remote): Install "set/show remote traceframe-info"
4932 * tracepoint.h (parse_traceframe_info): Declare.
4933 * tracepoint.c (struct mem_range): New.
4934 (mem_range_s): New typedef.
4935 (struct traceframe_info): New.
4936 (traceframe_info): New global.
4937 (free_traceframe_info): New function.
4938 (clear_traceframe_info): New function.
4939 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4941 (build_traceframe_info): New function.
4942 (tfile_traceframe_info): New function.
4943 (init_tfile_ops): Install tfile_traceframe_info.
4944 (traceframe_info_start_memory, free_result): New functions.
4945 (memory_attributes, traceframe_info_elements): New globals.
4946 (parse_traceframe_info, get_traceframe_info): New functions.
4947 * features/traceframe-info.dtd: New file.
4948 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4952 Base support for <unavailable> value contents.
4954 * value.h (value_bytes_available): Declare.
4955 (mark_value_bytes_unavailable): Declare.
4956 * value.c (struct range): New struct.
4957 (range_s): New typedef.
4958 (ranges_overlap): New function.
4959 (range_lessthan): New function.
4960 (ranges_contain_p): New function.
4961 (struct value) <unavailable>: New field.
4962 (value_bytes_available): New function.
4963 (mark_value_bytes_unavailable): New function.
4964 (require_not_optimized_out): Constify parameter.
4965 (require_available): New function.
4966 (value_contents_all, value_contents): Require all bytes be
4968 (value_free): Free `unavailable'.
4969 (value_copy): Copy `unavailable'.
4970 * valprint.h (val_print_unavailable): Declare.
4971 * valprint.c (valprint_check_validity): Rename `offset' parameter
4972 to `embedded_offset'. If printing a scalar, check whether the
4973 value chunk is available.
4974 (val_print_unavailable): New.
4975 (val_print_scalar_formatted): Check whether the value is
4977 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4978 pretty-printing unavailable values.
4980 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4982 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4983 * c-typeprint.c (c_type_print_args): Update the function comment. New
4984 variable param_type, initialize it. Remove const/volatile qualifiers
4985 for language_cplus and !show_artificial. Use param_type.
4987 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4990 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4991 * symtab.h (struct symtab) <next>: Comment extension.
4993 2011-02-12 Yao Qi <yao@codesourcery.com>
4995 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4997 2011-02-11 Yao Qi <yao@codesourcery.com>
4999 * common/Makefile.in: Add copyright header.
5001 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5003 * infrun.c (proceed): Move switching out and in of tfind mode from
5005 (fetch_inferior_event): ... to here.
5007 2011-02-11 Yao Qi <yao@codesourcery.com>
5009 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5011 * configure.ac: Add common to sub dir.
5012 * configure: Regenerate.
5014 2011-02-11 Yao Qi <yao@codesourcery.com>
5018 * common/Makefile.in: New.
5019 * common/configure.ac: New.
5020 * common/aclocal.m4: New.
5021 * common/configure: Generate.
5023 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5025 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5026 side of the parenthesis.
5029 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5030 * vec.h (VEC_block_remove): Fix comment.
5032 2011-02-08 Michael Snyder <msnyder@vmware.com>
5034 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5036 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5038 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5039 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5042 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5045 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5047 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5048 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5050 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5052 * dwarf2read.c (read_subroutine_type): Set special calling
5053 convention flag for functions compiled by IBM XL C for OpenCL.
5054 * ppc-sysv-tdep.c: Include "dwarf2.h"
5055 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5057 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5058 IBM OpenCL vector types calling convention.
5059 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5060 (ppc_sysv_abi_broken_return_value): Likewise.
5061 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5062 types calling convention.
5063 (ppc64_sysv_abi_return_value): Likewise.
5064 * spu-tdep.c: Include "dwarf2.h"
5065 (spu_return_value): Implement IBM OpenCL vector types calling
5068 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5070 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5071 correct ABI for AltiVec vector arguments.
5073 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5075 * valprint.c (val_print): Extend comment.
5076 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5077 interface explanation to val_print.
5078 (ada_val_print_array): Adjust comment to current interface.
5079 (print_field_values): Adjust comment to current interface.
5080 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5081 explanation to val_print.
5082 * f-valprint.c (f_val_print): Ditto.
5083 * jv-valprint.c (java_val_print): Ditto.
5084 * m2-valprint.c (m2_val_print): Ditto.
5085 * p-valprint.c (pascal_val_print): Ditto.
5087 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5089 * breakpoint.c (parse_breakpoint_sals): Fix description.
5091 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5092 Oguz Kayral <oguzkayral@gmail.com>
5094 * python/py-inferior.c (python_on_normal_stop): New function.
5095 (python_on_resume): New function.
5096 (python_inferior_exit): New function.
5097 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5098 inferior_exit observers.
5099 * python/py-evtregistry.c: New file.
5100 * python/py-threadevent.c : New file.
5101 * python/py-event.c: New file.
5102 * python/py-evts.c: New file.
5103 * python/py-continueevent.c: New file.
5104 * python/py-bpevent.c: New file.
5105 * python/py-signalevent.c: New file.
5106 * python/py-exetiedevent.c: New file.
5107 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5108 Move struct breakpoint_object from here...
5109 * python/python-internal.h: ... to here.
5110 * python/py-event.h: New file.
5111 * python/py-events.h: New file.
5112 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5113 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5114 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5115 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5116 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5117 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5118 Add build rules for all the above.
5120 2011-02-04 Tom Tromey <tromey@redhat.com>
5122 * dwarf2read.c (dwarf2_section_empty_p): New function.
5123 (dwarf2_read_section): Use dwarf2_section_empty_p.
5124 (dwarf2_section_size): New function.
5125 (dwarf2_get_section_info): Unconditionally read section.
5126 (dwarf2_read_index): Use dwarf2_section_empty_p.
5127 (partial_read_comp_unit_head): Use dwarf2_section_size.
5128 (dwarf2_symbol_mark_computed): Likewise.
5130 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5132 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5134 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5136 * mips-linux-tdep.c: Include xml-syscall.h.
5137 (mips_linux_get_syscall_number): New function.
5138 (mips_linux_init_abi): Add calls to
5139 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5140 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5141 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5142 * syscalls/mips-n32-linux.xml: New file.
5143 * syscalls/mips-n64-linux.xml: New file.
5144 * syscalls/mips-o32-linux.xml: New file.
5146 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5148 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5149 Complain about inverted range entries.
5150 (dwarf2_record_block_ranges): Likewise.
5152 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5155 * breakpoint.c (update_watchpoint): Fix name of the
5156 update_global_location_list function.
5157 (print_one_breakpoint): Fix typo.
5158 (_initialize_breakpoint): Remove extra space in hbreak help
5160 * breakpoint.h (struct bp_location) <length>: Fix field
5163 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5165 * regcache.c (registers_changed_ptid): Don't explictly always
5166 clear `current_regcache'. Only clear current_thread_ptid and
5167 current_thread_arch when PTID matches. Only reinit the frame
5168 cache if PTID matches the current inferior_ptid. Move alloca(0)
5170 (registers_changed): ... here.
5172 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5174 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5175 starts with __stack_chk_guard as stack guard symbol.
5177 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5179 * disasm.c (compare_lines): Handle the end of sequence markers
5180 within the line table to better support disassembling over
5181 compilation unit boundaries.
5183 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5185 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5186 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5187 implementation even if no symbols are available.
5188 (thumb_analyze_prologue): Update call to skip_prologue_function.
5189 (arm_analyze_prologue): Likewise.
5191 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5193 * arm-tdep.c: Include "observer.h".
5194 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5195 (arm_exidx_data_key): New static variable.
5196 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5197 (struct arm_exidx_data): Likewise.
5198 (arm_exidx_data_free): New function.
5199 (arm_compare_exidx_entries): Likewise.
5200 (arm_obj_section_from_vma): Likewise.
5201 (arm_exidx_new_objfile): Likewise.
5202 (arm_find_exidx_entry): Likewise.
5203 (arm_exidx_fill_cache): Likewise.
5204 (arm_exidx_unwind_sniffer): Likewise.
5205 (arm_exidx_unwind): New global variable.
5206 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5207 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5208 observer. Register arm_exidx_data_key as objfile data.
5210 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5212 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5213 due to accessing uninitialized variable. Fix indentation.
5215 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5217 * c-valprint.c (c_value_print): When doing virtual base pointer
5218 adjustment, create a new value with adjusted contents rather than
5219 changing the contents of the value being printed (and getting it
5222 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5224 * xml-support.c (xml_find_attribute): New.
5225 (xinclude_start_include): Use it.
5226 * xml-support.h (xml_find_attribute): Declare.
5227 * memory-map.c (memory_map_start_memory)
5228 (memory_map_start_property): Use xml_find_attribute.
5229 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5231 * remote.c (start_thread): Use xml_find_attribute.
5232 * solib-target.c (library_list_start_segment)
5233 (library_list_start_section, library_list_start_library)
5234 (library_list_start_list): Use xml_find_attribute.
5235 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5236 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5237 (tdesc_start_field): Use xml_find_attribute.
5239 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5241 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5242 (BUILD_OCL_VTYPES): Update.
5244 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5246 * configure.ac: Work around non-GNU sed limitation when computing
5247 python version number.
5248 * configure: Regenerate.
5250 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5252 Fix debug printing of TYPE_INSTANCE.
5253 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5254 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5256 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5259 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5260 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5261 * ada-operator.inc: Rename the file to ...
5262 * ada-operator.def: ... here, wrap all the entries by macro OP.
5263 * expprint.c (op_name_standard): Remove all the entries. Include
5264 "std-operator.def" instead.
5265 * expression.h (enum exp_opcode): Include "std-operator.def" and
5266 "ada-operator.def". Move all the entries ...
5267 * std-operator.def: ... here, wrap all the entries by macro OP.
5269 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5271 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5272 * breakpoint.c (remove_jit_event_breakpoints): New function.
5273 * jit.c (jit_descriptor_addr): Delete.
5274 (registering_code): Delete.
5275 (clear_int): Delete.
5276 (jit_inferior_data): New variable.
5277 (struct jit_inferior_data): New type.
5278 (get_jit_inferior_data): New function.
5279 (jit_inferior_data_cleanup): New function.
5280 (jit_read_descriptor): Adjust.
5281 (jit_register_code): Adjust.
5282 (jit_breakpoint_re_set_internal): New function; move code here ...
5283 (jit_inferior_init): ... from here.
5284 (jit_breakpoint_re_set): Adjust.
5285 (jit_reset_inferior_data_and_breakpoints): New function.
5286 (jit_inferior_created_observer): Adjust.
5287 (jit_inferior_exit_hook): Adjust.
5288 (jit_executable_changed_observer): New function.
5289 (jit_event_handler): Adjust.
5290 (_initialize_jit): Adjust.
5292 2011-01-31 Michael Snyder <msnyder@vmware.com>
5294 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5297 2011-01-31 Tom Tromey <tromey@redhat.com>
5300 * python/python.c (execute_gdb_command): Call
5301 prevent_dont_repeat.
5302 * top.c (suppress_dont_repeat): New global.
5303 (dont_repeat): Use it.
5304 (prevent_dont_repeat): New function.
5305 * command.h (prevent_dont_repeat): Declare.
5307 2011-01-31 Tom Tromey <tromey@redhat.com>
5309 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5310 * python/py-breakpoint.c (bppy_set_silent): Use
5311 breakpoint_set_silent.
5312 (bppy_set_thread): Use breakpoint_set_thread.
5313 (bppy_set_task): Use breakpoint_set_task.
5314 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5315 (breakpoint_set_task): Declare.
5316 (make_breakpoint_silent): Remove.
5317 * breakpoint.c (breakpoint_set_silent): New function.
5318 (breakpoint_set_thread): Likewise.
5319 (breakpoint_set_task): Likewise.
5320 (make_breakpoint_silent): Remove.
5322 2011-01-31 Tom Tromey <tromey@redhat.com>
5324 * breakpoint.h (user_breakpoint_p): Declare.
5325 * breakpoint.c (user_breakpoint_p): New function.
5326 (breakpoint_1): Use it.
5327 (save_breakpoints): Likewise.
5329 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5331 * configure.ac: Add handling of Python distribution on Windows.
5332 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5333 sysconfig variables are not defined, then do not use them.
5334 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5335 instead. On Windows, return all paths using forward-slashes
5336 rather than backslashes.
5338 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5340 * configure.ac: Remove fallback behavior for building
5341 against Python. Remove tweaking of Python include path.
5342 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5343 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5344 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5345 Always restore CPPFLAGS and LIBS after linking test.
5346 * configure: Regenerated.
5347 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5348 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5349 * python/python-internal.h: Adjust includes of Python .h files.
5351 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5353 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5356 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5358 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5361 2011-01-31 Yao Qi <yao@codesourcery.com>
5363 * arm-linux-nat.c: Update calls to regcache_register_status
5364 instead of regcache_valid_p.
5365 * aix-thread.c: Likewise.
5366 * i386gnu-nat.c: Likewise.
5368 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5371 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5372 touching TYPE_FIELD_ARTIFICIAL.
5374 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5376 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5379 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5381 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5382 selected, don't try iterating over the traceframe's blocks.
5383 (tfile_has_stack): If there's no traceframe selected, then there's
5385 (tfile_has_registers): If there's no traceframe selected, then
5386 there's no registers.
5388 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5390 * target.c (memory_xfer_partial): No need to restore shadows if we
5391 haven't read anything.
5393 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5395 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5396 and val_print_scalar_formatted.
5398 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5400 * tracepoint.c (tfile_read): New.
5401 (tfile_open): Use it.
5402 (tfile_get_traceframe_address): Use it.
5403 (tfile_trace_find): Use it.
5404 (walk_blocks_callback_func): New typedef.
5405 (match_blocktype): New function.
5406 (traceframe_walk_blocks): New function.
5407 (traceframe_find_block_type): New function.
5408 (tfile_fetch_registers, tfile_xfer_partial)
5409 (tfile_get_trace_state_variable_value): Use
5410 traceframe_find_block_type and tfile_read.
5412 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5414 * remote-mips.c: Add internationalization mark ups. Remove
5415 trailing \n from already marked up strings.
5417 2011-01-26 Tom Tromey <tromey@redhat.com>
5419 * python/py-prettyprint.c (print_string_repr): Clear
5420 'addressprint' option when calling val_print_string.
5421 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5422 option when calling val_print_string.
5424 2011-01-26 Tom Tromey <tromey@redhat.com>
5426 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5428 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5430 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5431 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5432 (gdb_py_long_as_ulongest): New defines.
5433 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5434 (gdb_py_int_as_long): Declare.
5435 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5436 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5437 (valpy_long): Add comment.
5438 * python/py-utils.c (get_addr_from_python): Use
5439 gdb_py_long_as_ulongest. Handle overflow properly.
5440 (gdb_py_object_from_longest): New function.
5441 (gdb_py_object_from_ulongest): Likewise.
5442 (gdb_py_int_as_long): Likewise.
5443 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5444 * python/py-symtab.c (salpy_get_pc): Use
5445 gdb_py_long_from_ulongest.
5446 (salpy_get_line): Use PyInt_FromLong.
5447 * python/py-param.c (set_parameter_value): Use
5449 * python/py-lazy-string.c (stpy_get_address): Use
5450 gdb_py_long_from_ulongest.
5451 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5452 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5453 * python/py-breakpoint.c (bppy_set_thread): Use
5455 (bppy_set_task): Likewise.
5456 (bppy_set_ignore_count): Likewise.
5457 (bppy_set_hit_count): Likewise.
5458 * python/py-block.c (blpy_get_start): Use
5459 gdb_py_object_from_ulongest.
5460 (blpy_get_end): Likewise.
5461 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5463 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5466 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5467 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5468 equality test for objfile, initialize addr_low if needed.
5470 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5472 * tui/tui-regs.c (tui_register_format): Remove dead code.
5474 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5476 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5477 instead of print_scalar_formatted.
5478 (print_scalar_formatted): Don't handle 's' format strings here,
5479 and add an assertion that we never see such format here.
5480 * valprint.h (val_print_scalar_formatted): Declare.
5481 * valprint.c (val_print_scalar_formatted): New.
5482 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5483 instead of print_scalar_formatted.
5484 * jv-valprint.c (java_val_print): Ditto.
5485 * p-valprint.c (pascal_val_print): Ditto.
5486 * ada-valprint.c (ada_val_print_1): Ditto.
5487 * f-valprint.c (f_val_print): Ditto.
5488 * infcmd.c (registers_info): Ditto.
5489 * m2-valprint.c (m2_val_print): Ditto.
5491 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5493 * m2-valprint.c (print_unbounded_array): Pass
5494 value_contents_for_printing rather than value_contents, to
5495 m2_print_array_contents. Also pass in the value.
5497 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5499 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5500 (save_gdb_index_command): Switch to .gdb_index version 4.
5502 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5504 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5505 than frame_register, and always pass a valid value to val_print.
5507 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5509 Centralize printing "<optimized out>".
5511 * valprint.h (val_print_optimized_out): Declare.
5512 * cp-valprint.c (cp_print_value_fields): Use
5513 val_print_optimized_out.
5514 * jv-valprint.c (java_print_value_fields): Ditto.
5515 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5516 * printcmd.c (print_formatted): Ditto.
5517 * valprint.c (valprint_check_validity): Ditto.
5518 (value_check_printable): Ditto.
5519 (val_print_optimized_out): New.
5521 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5523 * infcmd.c (default_print_registers_info): Allocate values so to
5524 never pass a NULL value to val_print.
5526 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5528 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5529 boolean. Make sure to always pass a value that matches the
5530 contents buffer to callees. Preserve `address' for following
5532 * value.c (value_contents_for_printing_const): New.
5533 (value_address): Constify value argument.
5534 * value.h (value_contents_for_printing_const): Declare.
5535 (value_address): Constify value argument.
5537 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5539 * regcache.c (struct regcache_descr): Rename
5540 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5541 and sizeof_cooked_register_valid_p to
5542 sizeof_cooked_register_status.
5543 (init_regcache_descr): Adjust.
5544 (struct regcache): Rename register_valid_p field to
5546 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5547 (do_cooked_read): Adjust.
5548 (regcache_valid_p): Rename to ...
5549 (regcache_register_status): ... this. Adjust.
5550 (regcache_invalidate): Adjust.
5551 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5553 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5554 as unavailable, not valid.
5555 (regcache_dump): Adjust.
5556 * regcache.h (enum register_status): New.
5557 (regcache_register_status): Declare.
5558 (regcache_invalidate): Delete declaration.
5559 * corelow.c (get_core_registers): Adjust.
5560 * tracepoint.c (tfile_fetch_registers): Adjust.
5561 * trad-frame.c (REG_VALUE): Rename to ...
5562 (TF_REG_VALUE): ... this.
5563 (REG_UNKNOWN): Rename to ...
5564 (TF_REG_UNKNOWN): ... this.
5565 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5566 * mi/mi-main.c (register_changed_p): Adjust.
5568 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5570 * regcache.c (struct regcache_descr): Remove outdated comment.
5571 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5573 (regcache_xmalloc): Rename to ...
5574 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5575 Allocate the regcache type accordingly.
5576 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5577 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5578 cooked registers, not raw.
5579 (regcache_dup_no_passthrough): Delete.
5580 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5581 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5582 mention obsolete write_register_bytes.
5583 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5585 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5587 Stop remote_read_bytes from handling partial reads itself.
5589 * remote-fileio.c: Include target.h.
5590 (remote_fileio_write_bytes): Delete.
5591 (remote_fileio_func_open, remote_fileio_func_write)
5592 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5594 (remote_fileio_func_stat): Use target_read_memory and
5595 target_write_memory.
5596 (remote_fileio_func_gettimeofday): Use target_write_memory.
5597 (remote_fileio_func_system): Use target_read_memory.
5598 * remote.c (remote_write_bytes): Make it static.
5599 (remote_read_bytes): Don't handle partial reads here.
5600 * remote.h (remote_read_bytes): Delete declaration.
5602 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5604 Simplify XML parsing a bit.
5606 * xml-support.h (gdb_xml_parse_quick): Declare.
5607 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5608 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5610 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5611 gdb_xml_create_parser_and_cleanup_1.
5612 (gdb_xml_parse_quick): New.
5613 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5614 * osdata.c (osdata_parse): Ditto.
5615 * remote.c (remote_threads_info): Ditto.
5616 * solib-target.c (solib_target_parse_libraries): Ditto.
5617 * xml-syscall.c (syscall_parse_xml): Ditto.
5618 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5620 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5622 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5623 with remote-mips.o added to gdb_target_obs.
5624 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5626 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5628 * ada-valprint.c (val_print_packed_array_elements): Pass the
5629 correct struct value to val_print.
5630 (ada_val_print_1): Ditto.
5632 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5634 Don't lose embedded_offset in printing routines throughout.
5636 * valprint.h (val_print_array_elements): Change prototype.
5637 * valprint.c (val_print_array_elements): Add `embedded_offset'
5638 parameter, and adjust to pass it down to val_print, while passing
5639 `valaddr' or `address' unmodified. Take embedded_offset into
5640 account when checking repetitions.
5641 * c-valprint.c (c_val_print): Pass embedded_offset to
5642 val_print_array_elements instead of adjusting `valaddr' and
5644 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5645 embedded_offset to val_print_array_elements instead of adjusting
5647 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5648 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5649 val_print_array_elements and pascal_object_print_value_fields
5650 instead of adjusting `valaddr'.
5651 (pascal_object_print_value_fields): Add `offset' parameter, and
5653 (pascal_object_print_value): Add `offset' parameter, and adjust to
5655 (pascal_object_print_static_field): Use
5656 value_contents_for_printing/value_embedded_offset, rather than
5658 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5659 parameter, and adjust to use it. Use
5660 value_contents_for_printing/value_embedded_offset, rather than
5662 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5663 (ada_val_print_array): Add `offset' parameter, and adjust to use
5665 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5666 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5667 Instead work with offsets. Use
5668 value_contents_for_printing/value_embedded_offset, rather than
5669 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5670 and use value_from_pointer to extract a target pointer, rather
5671 than value_from_longest.
5672 (print_variant_part): Add `offset' parameter. Replace
5673 `outer_valaddr' parameter by a new `outer_offset' parameter.
5674 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5675 (ada_value_print): Use
5676 value_contents_for_printing/value_embedded_offset, rather than
5678 (print_record): Add `offset' parameter, and adjust to pass it
5680 (print_field_values): Add `offset' parameter. Replace
5681 `outer_valaddr' parameter by a new `outer_offset' parameter.
5682 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5683 Use value_contents_for_printing/value_embedded_offset, rather than
5685 * d-valprint.c (dynamic_array_type): Use
5686 value_contents_for_printing/value_embedded_offset, rather than
5688 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5689 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5690 (java_print_value_fields): Take `offset' into account. Don't
5691 re-adjust `valaddr'. Instead pass down adjusted offsets.
5692 (java_val_print): Take `embedded_offset' into account. Pass it to
5693 java_print_value_fields.
5694 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5695 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5696 down adjusted offsets.
5697 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5698 (f_val_print): Take `embedded_offset' into account.
5700 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5702 * inflow.c: Include "gdbcmd.h".
5703 (interactive_mode): New static global, moved here from top.c.
5704 (show_interactive_mode): New function, moved here from top.c.
5705 use gdb_has_a_terminal instead of input_from_terminal_p to
5706 determine the current mode.
5707 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5709 (_initialize_inflow): Add the "set/show interactive-mode"
5710 commands. Moved here from top.c, after having adjusted slightly
5712 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5714 (input_from_terminal_p): Remove handling of "interactive-mode"
5715 setting, moved to infow.c.
5716 (init_main): Remove creation of the "set/show interactive-mode"
5717 commands, moved to inflow.c.
5719 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5721 * NEWS: Add entry for native ia64-hpux support.
5723 2011-01-19 Tom Tromey <tromey@redhat.com>
5726 * thread.c (free_thread): Free 'name'.
5727 (print_thread_info): Emit thread name. Change CLI output.
5728 (thread_name_command): New function.
5729 (do_captured_thread_select): Emit newline.
5730 (_initialize_thread): Register 'thread name' command.
5731 * target.h (struct target_ops) <to_thread_name>: New field.
5732 (target_thread_name): New macro.
5733 * target.c (update_current_target): Handle to_thread_name.
5734 * python/py-infthread.c (thpy_get_name): New function.
5735 (thpy_set_name): Likewise.
5736 (thread_object_getset): Add "name".
5737 * linux-nat.c (linux_nat_thread_name): New function.
5738 (linux_nat_add_target): Set to_thread_name.
5739 * gdbthread.h (struct thread_info) <name>: New field.
5741 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5743 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5744 (ada_val_print_1): Likewise.
5746 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5748 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5749 upper limit address is not greater than the function end address
5750 when the upper limit could not be computed using the debugging
5753 2011-01-17 Tom Tromey <tromey@redhat.com>
5755 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5757 * utils.c: Include gdb_regex.h.
5758 (do_regfree_cleanup): New function.
5759 (make_regfree_cleanup): Likewise.
5760 (get_regcomp_error): Likewise.
5761 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5763 2011-01-17 Tom Tromey <tromey@redhat.com>
5765 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5768 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5770 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5771 for internal variables.
5772 (last_was_structop): New static variable.
5773 (COMPLETE): New token.
5774 (field_exp): New rule to group all '.' suffix handling.
5775 Add mark_struct_expression calls when approriate to be able
5776 to correctly find fields for completion.
5777 (yylex): Adapt to handle field completion and set INTVAR when
5780 2011-01-14 Yao Qi <yao@codesourcery.com>
5782 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5783 save_reggroup, restore_reggroup and all_reggroup.
5785 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5787 * ada-valprint. (ada_printchar): Use the correct type length
5788 in call to ada_emit_char.
5789 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5791 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5793 * solib-som.h (hpux_major_release): Declare variable here.
5794 * solib-som.c: Remove <sys/utsname.h> header.
5795 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5796 (hpux_major_release): Make global, change default value to
5797 DEFAULT_HPUX_MAJOR_RELEASE.
5798 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5799 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5800 Add "solib-som.h" header.
5801 (set_hpux_major_release): New function.
5802 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5804 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5806 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5808 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5810 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5811 new-line at end of warning message.
5812 (ia64_hpux_store_register): Remove trailing new-line at end of
5814 * ia64-hpux-tdep.c: Rephrase comment.
5815 * solib-ia64-hpux.c (struct dld_info): Change type of field
5816 dld_flags from "long long" to ULONGEST.
5818 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5820 * target.h (deprecated_child_ops): Delete declaration.
5821 * target.c (deprecated_child_ops): Delete definition.
5823 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5825 * Makefile.in (hpux-thread.o): Delete rule.
5826 * configure.ac: Don't check for HPUX DCE threads support.
5827 * configure, config.in: Regenerate.
5828 * hppa-hpux-nat.c (child_suppress_run): Delete.
5829 (hppa_hpux_child_can_run): Delete.
5830 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5831 * hpux-thread.c: Delete.
5833 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5835 * hpux-thread.c (hpux_pid_to_str): Delete.
5837 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5839 * ada-valprint.c (ada_emit_char): Remove strange code.
5840 Check that c is <= UCHAR_MAX before passing it to isascii.
5841 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5843 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5845 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5846 to the case where instream is stdin.
5848 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5850 * ia64-tdep.h (struct regcache): Forward declare.
5851 (struct ia64_infcall_ops): New struct type.
5852 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5854 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5855 Renames ia64_find_global_pointer.
5856 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5857 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5858 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5860 (ia64_infcall_ops): New static global constant.
5861 (ia64_gdbarch_init): Set tdep->infcall_ops.
5862 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5863 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5864 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5865 (ia64_hpux_dummy_code): New static global constant.
5866 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5867 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5868 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5870 (ia64_hpux_infcall_ops): New static global constant.
5871 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5872 for inferior function calls to work properly on ia64-hpux.
5874 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5876 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5877 * ia64-tdep.h (struct frame_info): forward declaration.
5878 (struct gdbarch_tdep): Add field size_of_register_frame.
5879 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5880 to determine the size of the register frame.
5881 (ia64_size_of_register_frame): New function.
5882 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5883 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5884 (IA64_HPUX_UREG_REASON): New macro.
5885 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5887 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5888 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5889 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5892 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5894 Add support for ia64-hpux.
5895 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5896 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5898 * configure.host: Add handling for ia64-hpux hosts. Add associated
5900 * configure.tgt: Add handling for ia64-hpux targets.
5901 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5902 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5903 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5905 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5907 [ttrace] Compute thread list immediately after attach.
5908 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5910 (inf_ttrace_attach): Use it.
5912 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5914 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5915 if we could not determine the frame's function address. Instead,
5916 use the frame's PC, and then continue.
5918 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5920 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5921 not already defined.
5923 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5925 * ia64-tdep.c (ia64_struct_type_p): New function.
5926 (ia64_extract_return_value): Handle integral values that are
5927 less than 8 bytes long.
5928 (ia64_push_dummy_call): Likewise.
5930 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5932 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5933 floatformat_ia64_ext.
5934 (floatformat_ia64_ext_big): New static const.
5935 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5937 2011-01-12 Tom Tromey <tromey@redhat.com>
5939 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5941 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5942 (mi_cmd_thread_list_ids): Likewise.
5943 (mi_cmd_data_list_changed_registers): Likewise.
5944 (mi_cmd_data_list_register_values): Likewise.
5945 (mi_cmd_data_write_register_values): Likewise.
5946 (mi_cmd_data_evaluate_expression): Likewise.
5947 (mi_cmd_data_read_memory): Likewise.
5948 (mi_cmd_data_read_memory_bytes): Likewise.
5949 (mi_cmd_data_write_memory): Likewise.
5950 (mi_cmd_enable_timings): Likewise.
5951 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5952 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5953 (mi_cmd_var_delete): Likewise.
5954 (mi_cmd_var_set_format): Likewise.
5955 (mi_cmd_var_show_format): Likewise.
5956 (mi_cmd_var_info_num_children): Likewise.
5957 (mi_cmd_var_list_children): Likewise.
5958 (mi_cmd_var_info_type): Likewise.
5959 (mi_cmd_var_info_expression): Likewise.
5960 (mi_cmd_var_show_attributes): Likewise.
5961 (mi_cmd_var_assign): Likewise.
5962 (mi_cmd_var_update): Likewise.
5963 (mi_cmd_enable_pretty_printing): Likewise.
5964 (mi_cmd_var_set_update_range): Likewise.
5965 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5967 (mi_cmd_target_file_put): Likewise.
5968 (mi_cmd_target_file_delete): Likewise.
5969 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5971 (mi_cmd_stack_info_depth): Likewise.
5972 (mi_cmd_stack_list_locals): Likewise.
5973 (mi_cmd_stack_list_args): Likewise.
5974 (mi_cmd_stack_select_frame): Likewise.
5975 (mi_cmd_stack_select_frame): Likewise.
5976 (mi_cmd_stack_info_frame): Likewise.
5977 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5979 (mi_cmd_file_list_exec_source_files): Likewise.
5980 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5981 (mi_cmd_env_cd): Likewise.
5982 (mi_cmd_env_path): Likewise.
5983 (mi_cmd_env_dir): Likewise.
5984 (mi_cmd_inferior_tty_show): Likewise.
5985 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5986 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5987 (mi_cmd_break_watch): Likewise.
5989 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5991 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5992 (ppc_linux_insert_hw_breakpoint): Likewise.
5993 (ppc_linux_remove_hw_breakpoint): Likewise.
5994 (ppc_linux_insert_watchpoint): Likewise.
5996 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5997 Jan Kratochvil <jan.kratochvil@redhat.com>
5999 PR fortran/11104 and DWARF unbound arrays detection.
6000 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6001 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6002 unspecified upper bound.
6003 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6004 variables array_size_array, tmp_type and offset_item. New variable
6005 array. Remove call to f77_get_upperbound. New variables array_type
6006 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6007 the final call to deprecated_set_value_type.
6009 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6011 Make value allocations more lazy.
6012 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6013 instead of allocate_value and set_value_lazy when possible.
6014 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6015 instead of allocate_value and set_value_lazy.
6016 * findvar.c (value_of_register_lazy): Likewise.
6017 (read_var_value): Remove V preallocation, call just check_typedef in
6018 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6019 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6020 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6021 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6022 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6023 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6024 the end, remove set_value_lazy there.
6025 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6026 instead of allocate_value and set_value_lazy when possible.
6027 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6028 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6029 of allocate_value and set_value_lazy.
6030 (value_from_contents_and_address): Use allocate_value_lazy instead of
6031 allocate_value and set_value_lazy when possible.
6033 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6035 * disasm.c (dump_insns): Support dumping opcodes for MI.
6036 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6037 dumping of instruction opcodes.
6039 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6041 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6044 2011-01-11 Tom Tromey <tromey@redhat.com>
6046 * thread.c (do_captured_thread_select): Emit newline before
6049 2011-01-11 Michael Snyder <msnyder@vmware.com>
6051 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6052 * score-tdep.c: Ditto.
6053 * score-tdep.h: Ditto.
6054 * ser-base.c: Ditto.
6055 * ser-go32.c: Ditto.
6058 * ser-mingw.c: Ditto.
6059 * ser-pipe.c: Ditto.
6061 * ser-unix.c: Ditto.
6062 * sh64-tdep.c: Ditto.
6063 * shnbsd-nat.c: Ditto.
6067 * solib-darwin.c: Ditto.
6068 * solib-frv.c: Ditto.
6070 * solib-irix.c: Ditto.
6071 * solib-osf.c: Ditto.
6072 * solib-pa64.c: Ditto.
6073 * solib-som.c: Ditto.
6074 * solib-spu.c: Ditto.
6075 * solib-sunos.c: Ditto.
6076 * solib-svr4.c: Ditto.
6078 * sol-thread.c: Ditto.
6082 * sparc64-linux-tdep.c: Ditto.
6083 * sparc64-tdep.c: Ditto.
6084 * sparc-linux-nat.c: Ditto.
6085 * sparc-linux-tdep.c: Ditto.
6086 * sparc-sol2-nat.c: Ditto.
6087 * sparc-sol2-tdep.c: Ditto.
6088 * sparc-tdep.c: Ditto.
6089 * sparc-tdep.h: Ditto.
6090 * spu-tdep.c: Ditto.
6091 * stabsread.c: Ditto.
6092 * stabsread.h: Ditto.
6100 * target-descriptions.c: Ditto.
6101 * target-descriptions.h: Ditto.
6103 * target-memory.c: Ditto.
6104 * terminal.h: Ditto.
6107 * tracepoint.c: Ditto.
6108 * tracepoint.h: Ditto.
6109 * trad-frame.h: Ditto.
6110 * typeprint.c: Ditto.
6112 2011-01-11 Michael Snyder <msnyder@vmware.com>
6114 * ui-file.c: Comment cleanup, mostly periods and spaces.
6119 * v850-tdep.c: Ditto.
6120 * valarith.c: Ditto.
6122 * valprint.c: Ditto.
6123 * valprint.h: Ditto.
6128 * vax-tdep.c: Ditto.
6132 * windows-nat.c: Ditto.
6133 * windows-tdep.c: Ditto.
6134 * xcoffread.c: Ditto.
6135 * xcoffsolib.c: Ditto.
6136 * xml-support.c: Ditto.
6137 * xstormy16-tdep.c: Ditto.
6138 * xtensa-tdep.c: Ditto.
6139 * xtensa-tdep.h: Ditto.
6141 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6143 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6144 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6146 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6147 Thiago Jung Bauermann <bauerman@br.ibm.com>
6149 Implement support for PowerPC BookE ranged watchpoints.
6151 (struct breakpoint_ops) <resources_needed>: New method.
6152 Initialize to NULL in all existing breakpoint_ops instances.
6153 (struct breakpoint) <exact>: New field.
6154 (target_exact_watchpoints): Declare external global.
6155 * breakpoint.c (target_exact_watchpoints): New global flag.
6156 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6157 b->enable_state to bp_enabled before calling
6158 hw_watchpoint_used_count.
6159 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6160 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6162 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6163 if the watchpoint is exact.
6164 (resources_needed_watchpoint): New function.
6165 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6166 (watch_command_1): Set b->exact if the user asked for an exact
6167 watchpoint and one can be set.
6168 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6169 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6170 the user asks for an exact watchpoint and one can be set. Return
6171 number of needed debug registers to watch the expression.
6172 * gdbtypes.c (is_scalar_type): New function, based on
6173 valprint.c:scalar_type_p.
6174 (is_scalar_type_recursive): New function.
6175 * gdbtypes.h (is_scalar_type_recursive): Declare.
6176 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6177 handle regions when ranged watchpoints are available.
6178 (create_watchpoint_request): New function.
6179 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6180 create_watchpoint_request.
6181 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6182 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6183 `set powerpc' and `show powerpc' commands.
6184 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6185 Mention documentation comment in the target macro.
6186 (target_region_ok_for_hw_watchpoint): Document return value.
6188 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6190 * breakpoint.c (update_watchpoint): Decide on using a software or
6191 hardware watchpoint after the bp_locations are created.
6193 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6195 Convert hardware watchpoints to use breakpoint_ops.
6196 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6197 <insert_location>: ... this. Return int instead of void.
6198 Accept pointer to struct bp_location instead of pointer to
6199 struct breakpoint. Adapt all implementations.
6200 (breakpoint_ops) <remove>: Rename to...
6201 <remove_location>: ... this. Accept pointer to struct bp_location
6202 instead of pointer to struct breakpoint. Adapt all implementations.
6203 * breakpoint.c (insert_catchpoint): Delete function.
6204 (insert_bp_location): Call the watchpoint or catchpoint's
6205 breakpoint_ops.insert method.
6206 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6207 breakpoint_ops.remove method.
6208 (insert_watchpoint, remove_watchpoint): New functions.
6209 (watchpoint_breakpoint_ops): New structure.
6210 (watch_command_1): Initialize the OPS field.
6211 * inf-child.c (inf_child_insert_fork_catchpoint)
6212 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6213 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6214 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6216 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6217 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6218 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6219 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6220 * target.c (update_current_target): Change default implementation of
6221 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6222 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6223 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6224 to_set_syscall_catchpoint to return_one.
6225 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6226 (debug_to_insert_exec_catchpoint): Report return value.
6227 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6228 (to_insert_exec_catchpoint): Change declaration to return int instead
6231 2011-01-11 Michael Snyder <msnyder@vmware.com>
6233 * arm-tdep.c: Internationalization.
6236 * fork-child.c: Ditto.
6237 * nto-procfs.c: Ditto.
6238 * ppc-sysv-tdep.c: Ditto.
6240 * remote-mips.c: Ditto.
6242 * rs6000-nat.c: Ditto.
6243 * rs6000-tdep.c: Ditto.
6247 * xml-support.c: Ditto.
6248 * mi/mi-cmd-break.c: Ditto.
6249 * mi/mi-cmd-var.c: Ditto.
6250 * mi/mi-interp.c: Ditto.
6251 * mi/mi-main.c: Ditto.
6253 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6255 * remote-sim.c (gdbsim_store_register): Update API to
6256 sim_store_register to check more error conditions.
6258 2011-01-10 Michael Snyder <msnyder@vmware.com>
6260 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6261 * nto-tdep.c: Ditto.
6262 * nto-tdep.h: Ditto.
6263 * objc-exp.y: Ditto.
6264 * objc-lang.c: Ditto.
6265 * objfiles.c: Ditto.
6266 * objfiles.h: Ditto.
6267 * observer.c: Ditto.
6268 * opencl-lang.c: Ditto.
6271 * parser-defs.h: Ditto.
6274 * posix-hdep.c: Ditto.
6275 * ppcbug-rom.c: Ditto.
6276 * ppc-linux-nat.c: Ditto.
6277 * ppc-linux-tdep.c: Ditto.
6278 * ppc-linux-tdep.h: Ditto.
6279 * ppcnbsd-tdep.c: Ditto.
6280 * ppcobsd-tdep.c: Ditto.
6281 * ppcobsd-tdep.h: Ditto.
6282 * ppc-sysv-tdep.c: Ditto.
6283 * ppc-tdep.h: Ditto.
6284 * printcmd.c: Ditto.
6285 * proc-abi.c: Ditto.
6286 * proc-flags.c: Ditto.
6288 * proc-utils.h: Ditto.
6289 * progspace.h: Ditto.
6290 * prologue-value.c: Ditto.
6291 * prologue-value.h: Ditto.
6292 * psympriv.h: Ditto.
6294 * p-typeprint.c: Ditto.
6295 * p-valprint.c: Ditto.
6296 * ravenscar-sparc-thread.c: Ditto.
6297 * ravenscar-thread.c: Ditto.
6298 * ravenscar-thread.h: Ditto.
6300 * regcache.c: Ditto.
6301 * regcache.h: Ditto.
6303 * remote-fileio.c: Ditto.
6304 * remote-fileio.h: Ditto.
6306 * remote-m32r-sdi.c: Ditto.
6307 * remote-mips.c: Ditto.
6308 * remote-sim.c: Ditto.
6309 * rs6000-aix-tdep.c: Ditto.
6310 * rs6000-nat.c: Ditto.
6311 * rs6000-tdep.c: Ditto.
6313 2011-01-10 Michael Snyder <msnyder@vmware.com>
6315 * charset.c (validate): Internationalization.
6316 * coffread.c (read_one_sym): Ditto.
6317 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6318 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6319 * inflow.c (new_tty): Ditto.
6320 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6321 * m32c-tdep.c (m32c_return_value): Ditto.
6322 * mep-tdep.c (mep_store_return_value): Ditto.
6323 * score-tdep.c (score7_fetch_insn): Ditto.
6324 * ser-mingw.c (pipe_windows_open): Ditto.
6325 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6326 * spu-tdep.c (spu_register_type): Ditto.
6327 * tracepoint.c (trace_find_command): Ditto.
6328 * valarith.c (value_pos): Ditto.
6330 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6332 * ada-valprint.c (printstr): Minor comment reformatting.
6334 2011-01-08 Michael Snyder <msnyder@vmware.com>
6336 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6339 2011-01-08 Michael Snyder <msnyder@vmware.com>
6341 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6342 * hppa-hpux-tdep.c: Ditto.
6343 * hppa-linux-nat.c: Ditto.
6344 * hppa-linux-tdep.c: Ditto.
6345 * hppanbsd-tdep.c: Ditto.
6346 * hppa-tdep.c: Ditto.
6347 * hppa-tdep.h: Ditto.
6348 * hpux-thread.c: Ditto.
6349 * i386-cygwin-tdep.c: Ditto.
6350 * i386-darwin-nat.c: Ditto.
6351 * i386gnu-nat.c: Ditto.
6352 * i386-linux-nat.c: Ditto.
6353 * i386-linux-tdep.c: Ditto.
6354 * i386-nat.c: Ditto.
6355 * i386-nat.h: Ditto.
6356 * i386nbsd-tdep.c: Ditto.
6357 * i386-sol2-nat.c: Ditto.
6358 * i386-stub.c: Ditto.
6359 * i386-tdep.c: Ditto.
6360 * i386-tdep.h: Ditto.
6361 * i387-tdep.c: Ditto.
6362 * ia64-linux-nat.c: Ditto.
6363 * ia64-linux-tdep.c: Ditto.
6364 * ia64-tdep.c: Ditto.
6368 * inferior.c: Ditto.
6369 * inferior.h: Ditto.
6375 * iq2000-tdep.c: Ditto.
6376 * irix5-nat.c: Ditto.
6382 * jv-typeprint.c: Ditto.
6383 * jv-valprint.c: Ditto.
6384 * language.c: Ditto.
6385 * language.h: Ditto.
6386 * linespec.c: Ditto.
6387 * linux-fork.c: Ditto.
6388 * linux-nat.c: Ditto.
6389 * linux-thread-db.c: Ditto.
6390 * lm32-tdep.c: Ditto.
6392 2011-01-08 Michael Snyder <msnyder@vmware.com>
6394 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6396 * m2-typeprint.c: Ditto.
6397 * m2-valprint.c: Ditto.
6398 * m32c-tdep.c: Ditto.
6399 * m32r-linux-nat.c: Ditto.
6400 * m32r-rom.c: Ditto.
6401 * m32r-tdep.c: Ditto.
6402 * m32r-tdep.h: Ditto.
6403 * m68hc11-tdep.c: Ditto.
6404 * m58klinux-nat.c: Ditto.
6405 * m68k-tdep.c: Ditto.
6406 * m88k-tdep.c: Ditto.
6407 * m88k-tdep.h: Ditto.
6408 * machoread.c: Ditto.
6409 * macrocmd.c: Ditto.
6410 * macroexp.c: Ditto.
6411 * macrotab.c: Ditto.
6414 * mdebugread.c: Ditto.
6415 * mdebugread.h: Ditto.
6418 * memory-map.h: Ditto.
6419 * mep-tdep.c: Ditto.
6420 * microblaze-rom.c: Ditto.
6421 * microblaze-tdep.c: Ditto.
6423 * mips-irix-tdep.c: Ditto.
6424 * mips-linux-nat.c: Ditto.
6425 * mips-linux-tdep.c: Ditto.
6426 * mips-linux-tdep.h: Ditto.
6427 * mipsnbsd-nat.c: Ditto.
6428 * mipsnbsd-tdep.c: Ditto.
6429 * mipsread.c: Ditto.
6430 * mips-tdep.c: Ditto.
6431 * mips-tdep.h: Ditto.
6432 * mn10300-linux-tdep.c: Ditto.
6433 * mn10300-tdep.c: Ditto.
6434 * mn10300-tdep.h: Ditto.
6437 * moxie-tdep.c: Ditto.
6438 * moxie-tdep.h: Ditto.
6441 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6443 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6445 2011-01-08 Robert Millan <rmh@gnu.org>
6447 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6449 2011-01-07 Michael Snyder <msnyder@vmware.com>
6451 * charset.c (_initialize_charset): Fix typo in string.
6453 2011-01-07 Michael Snyder <msnyder@vmware.com>
6455 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6457 * tui/tui-layout.c (tui_set_layout_for_display_command):
6458 Split line so that operator goes to beginning of line.
6459 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6460 assignment out of if statement.
6462 2011-01-07 Michael Snyder <msnyder@vmware.com>
6464 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6465 * ada-lang.h: Ditto.
6466 * ada-tasks.c: Ditto.
6467 * ada-valprint.c: Ditto.
6468 * aix-threads.c: Ditto.
6469 * alpha-linux-nat.c: Ditto.
6470 * alpha-linux-tdep.c: Ditto.
6471 * alpha-mdebug-tdep.c: Ditto.
6472 * alpha-nat.c: Ditto.
6473 * alpha-osf1-tdep.c: Ditto.
6474 * alpha-tdep.c: Ditto.
6475 * alphabsd-nat.c: Ditto.
6476 * alphabsd-tdep.c: Ditto.
6477 * amd64-darwin-tdep.c: Ditto.
6478 * amd64-linux-nat.c: Ditto.
6479 * amd64-linux-tdep.c: Ditto.
6480 * amd64-sol2-tdep.c: Ditto.
6481 * amd64-tdep.c: Ditto.
6482 * amd64-fbsd-tdep.c: Ditto.
6483 * amd64-nbsd-tdep.c: Ditto.
6484 * amd64-obsd-tdep.c: Ditto.
6485 * amd64-linux-nat.c: Ditto.
6486 * amd64-linux-tdep.c: Ditto.
6487 * arm-tdep.c: Ditto.
6488 * arm-tdep.h: Ditto.
6489 * armnbsd-nat.c: Ditto.
6490 * avr-tdep.c: Ditto.
6491 * bfin-tdep.c: Ditto.
6493 * c-typeprintc: Ditto.
6494 * c-valprint.c: Ditto.
6495 * coff-pe-read.h: Ditto.
6496 * coffreead.c: Ditto.
6497 * cris-tdep.c: Ditto.
6499 * darwin-nat-info.c: Ditto.
6500 * darwin-nat.c: Ditto.
6501 * dbug-rom.c: Ditto.
6505 * dec-thread.c: Ditto.
6507 * demangle.c: Ditto.
6508 * dicos-tdep.c: Ditto.
6509 * dictionary.c: Ditto.
6510 * dictionary.h: Ditto.
6511 * dink32-rom.c: Ditto.
6513 * doublest.c: Ditto.
6515 * dummy-frame.c: Ditto.
6516 * dwarf2-frame.c: Ditto.
6517 * dwarf2expr.c: Ditto.
6518 * dwarf2loc.c: Ditto.
6519 * dwarf2read.c: Ditto.
6523 * event-top.h: Ditto.
6524 * exceptions.c: Ditto.
6525 * exceptions.h: Ditto.
6527 * expprint.c: Ditto.
6528 * expression.h: Ditto.
6532 * f-typeprint.c: Ditto.
6533 * f-valprint.c: Ditto.
6534 * fbsd-nat.c: Ditto.
6536 * fork-child.c: Ditto.
6539 * frv-linux-tdep.c: Ditto.
6540 * frv-tdep.c: Ditto.
6542 * gdb-stabs.h: Ditto.
6543 * gdb_assert.h: Ditto.
6544 * gdb_string.h: Ditto.
6545 * gdb_thread_db.h: Ditto.
6546 * gdb_wait.h: Ditto.
6547 * gdbarch.sh: Ditto.
6549 * gdbthread.h: Ditto.
6550 * gdbtypes.c: Ditto.
6551 * gdbtypes.h: Ditto.
6554 * gnu-v2-abi.c: Ditto.
6555 * gnu-v3-abi.c: Ditto.
6556 * go32-nat.c: Ditto.
6557 * gdbarch.c: Regenerate.
6558 * gdbarch.h: Regenerate.
6560 2011-01-07 Michael Snyder <msnyder@vmware.com>
6562 * ax-gdb.c: Adjust some long output strings.
6563 * breakpoint.c: Ditto.
6568 * linux-nat.c: Ditto.
6569 * solib-pa64.c: Ditto.
6570 * solib-som.c: Ditto.
6572 2011-01-06 Tom Tromey <tromey@redhat.com>
6576 * python/python.c (GdbMethods): Add "newest_frame" method.
6577 * python/python-internal.h (gdbpy_newest_frame): Declare.
6578 * python/py-frame.c (gdbpy_newest_frame): New function.
6580 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6582 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6583 * jit.c (jit_debug): New variable.
6584 (show_jit_debug): New function.
6585 (struct target_buffer): Use ULONGEST.
6586 (bfd_open_from_target_memory): Likewise.
6587 (jit_register_code, jit_inferior_init): Add debug output.
6588 (_initialize_jit): Register "debug jit" command.
6590 2011-01-06 Tom Tromey <tromey@redhat.com>
6592 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6593 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6596 2011-01-06 Tom Tromey <tromey@redhat.com>
6598 * python/py-frame.c (frapy_block): Use get_frame_block.
6600 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6602 Do not stop on SIGPRIO signals by default
6603 * infrun.c (_initialize_infrun): Unset signal_stop and
6604 signal_print for TARGET_SIGNAL_PRIO.
6606 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6608 * ada-tasks.c: Fix style violation in comment.
6610 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6612 * linespec.c (decode_compound, find_method): Remove trailing \n
6613 at end of error string.
6614 * solib-irix.c (irix_current_sos): Likewise.
6615 * varobj.c (uninstall_variable): Likewise.
6617 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6619 * copyright.py: New script.
6620 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6621 Launch emacs without exec'ing. Call copyright.py afterwards.
6623 2011-01-05 Michael Snyder <msnyder@vmware.com>
6625 * addrmap.c: Shorten lines of >= 80 columns.
6626 * arch-utils.c: Ditto.
6627 * arch-utils.h: Ditto.
6629 * ax-general.c: Ditto.
6631 * blockframe.c: Ditto.
6632 * breakpoint.c: Ditto.
6633 * buildsym.c: Ditto.
6635 * c-typeprint.c: Ditto.
6637 * coffread.c: Ditto.
6641 * cp-namespace.c: Ditto.
6642 * cp-support.c: Ditto.
6643 * dbug-rom.c: Ditto.
6648 * dictionary.c: Ditto.
6650 * doublest.c: Ditto.
6651 * dwarf2-frame.c: Ditto.
6652 * dwarf2expr.c: Ditto.
6653 * dwarf2loc.c: Ditto.
6654 * dwarf2read.c: Ditto.
6657 * event-loop.c: Ditto.
6658 * event-loop.h: Ditto.
6659 * exceptions.h: Ditto.
6661 * expprint.c: Ditto.
6662 * expression.h: Ditto.
6664 * f-valprint.c: Ditto.
6666 * frame-base.c: Ditto.
6667 * frame-unwind.c: Ditto.
6668 * frame-unwind.h: Ditto.
6672 * gdb-stabs.h: Ditto.
6673 * gdb_assert.h: Ditto.
6674 * gdb_dirent.h: Ditto.
6675 * gdb_obstack.h: Ditto.
6677 * gdbtypes.c: Ditto.
6678 * gdbtypes.h: Ditto.
6679 * inf-ttrace.c: Ditto.
6684 * inline-frame.h: Ditto.
6685 * language.c: Ditto.
6686 * language.h: Ditto.
6687 * libunwind-frame.c: Ditto.
6688 * libunwind-frame.h: Ditto.
6689 * linespec.c: Ditto.
6690 * linux-nat.c: Ditto.
6691 * linux-nat.h: Ditto.
6692 * linux-thread-db.c: Ditto.
6693 * machoread.c: Ditto.
6694 * macroexp.c: Ditto.
6695 * macrotab.c: Ditto.
6698 * mdebugread.c: Ditto.
6703 * objfiles.c: Ditto.
6704 * objfiles.h: Ditto.
6706 * p-typeprint.c: Ditto.
6707 * p-valprint.c: Ditto.
6709 * printcmd.c: Ditto.
6710 * proc-events.c: Ditto.
6712 * progspace.c: Ditto.
6713 * progspace.h: Ditto.
6714 * psympriv.h: Ditto.
6717 * regcache.c: Ditto.
6718 * regcache.h: Ditto.
6719 * remote-fileio.c: Ditto.
6721 * ser-mingw.c: Ditto.
6723 * ser-unix.c: Ditto.
6726 * solib-frv.c: Ditto.
6727 * solib-irix.c: Ditto.
6728 * solib-osf.c: Ditto.
6729 * solib-pa64.c: Ditto.
6730 * solib-som.c: Ditto.
6731 * solib-sunos.c: Ditto.
6732 * solib-svr4.c: Ditto.
6733 * solib-target.c: Ditto.
6737 * stabsread.c: Ditto.
6738 * stabsread.c: Ditto.
6741 * symfile-mem.c: Ditto.
6747 * target-descriptions.c: Ditto.
6748 * target-memory.c: Ditto.
6751 * terminal.h: Ditto.
6754 * tracepoint.c: Ditto.
6755 * tracepoint.h: Ditto.
6759 * user-regs.c: Ditto.
6760 * user-regs.h: Ditto.
6762 * valarith.c: Ditto.
6764 * valprint.c: Ditto.
6765 * valprint.h: Ditto.
6770 * xcoffread.c: Ditto.
6771 * xcoffsolib.c: Ditto.
6772 * xcoffsolib.h: Ditto.
6773 * xml-syscall.c: Ditto.
6774 * xml-tdesc.c: Ditto.
6776 2011-01-05 Michael Snyder <msnyder@vmware.com>
6778 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6779 * cli/cli-decode.c: Ditto.
6780 * cli/cli-dump.c: Ditto.
6781 * cli/cli-logging.c: Ditto.
6782 * cli/cli-script.c: Ditto.
6783 * cli/cli-setshow.c: Ditto.
6784 * common/signals.c: Ditto.
6785 * mi/mi-cmd-break.c: Ditto.
6786 * mi/mi-cmd-disas.c: Ditto.
6787 * mi/mi-cmd-stack.c: Ditto.
6788 * mi/mi-cmd-var.c: Ditto.
6789 * mi/mi-cmds.c: Ditto.
6790 * mi/mi-common.h: Ditto.
6791 * mi/mi-console.c: Ditto.
6792 * mi/mi-interp.c: Ditto.
6793 * mi/mi-main.c: Ditto.
6794 * osf-share/cma_attr.c: Ditto.
6795 * osf-share/cma_deb_core.h: Ditto.
6796 * osf-share/cma_debug_client.h: Ditto.
6797 * osf-share/cma_handle.h: Ditto.
6798 * osf-share/cma_mutex.h: Ditto.
6799 * osf-share/cma_stack_int.h: Ditto.
6800 * osf-share/cma_tcb_defs.h: Ditto.
6801 * python/py-auto-load.c: Ditto.
6802 * python/py-breakpoint.c: Ditto.
6803 * python/py-cmd.c: Ditto.
6804 * python/py-frame.c: Ditto.
6805 * python/py-objfile.c: Ditto.
6806 * python/py-param.c: Ditto.
6807 * python/py-progspace.c: Ditto.
6808 * python/py-symbol.c: Ditto.
6809 * python/py-value.c: Ditto.
6810 * python/python-internal.h: Ditto.
6811 * python/python.c: Ditto.
6812 * tui/tui-data.c: Ditto.
6813 * tui/tui-disasm.c: Ditto.
6814 * tui/tui-hooks.c: Ditto.
6815 * tui/tui-io.c: Ditto.
6816 * tui/tui-layout.c: Ditto.
6817 * tui/tui-regs.c: Ditto.
6818 * tui/tui-source.c: Ditto.
6819 * tui/tui-stack.c: Ditto.
6820 * tui/tui-win.c: Ditto.
6821 * tui/tui-windata.c: Ditto.
6822 * tui/tui-winsource.c: Ditto.
6824 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6826 * configure.ac, gdb.1: Copyright year update.
6828 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6830 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6831 this_pc_in_block, morestack_msym and morestack_name. Check for
6832 "__morestack" minimal symbol there.
6834 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6836 * symfile.c (find_sym_fns): Add call to dont_repeat.
6838 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6840 Copyright year update in most files (performed by copyright.sh).
6842 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6844 * top.c (print_gdb_version): Update copyright year in version output.
6846 For older changes see ChangeLog-2010.
6852 version-control: never