1 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5 * breakpoint.c (init_raw_breakpoint_without_location): Remove
6 reference to forked_inferior_pid.
7 (struct fork_catchpoint): New type.
8 (breakpoint_hit_catch_fork, print_it_catch_fork)
9 (print_one_catch_fork, breakpoint_hit_catch_vfork)
10 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
11 (create_fork_vfork_event_catchpoint): Adjust to use
14 2011-06-22 Pedro Alves <pedro@codesourcery.com>
16 * breakpoint.c (add_to_breakpoint_chain)
17 (init_raw_breakpoint_without_location): New functions, factored
19 (set_raw_breakpoint_without_location): ... this one.
20 (init_raw_breakpoint): New function, factored out from
21 set_raw_breakpoint and adjusted to use
22 init_raw_breakpoint_without_location.
23 (set_raw_breakpoint): Adjust.
24 (init_catchpoint): New function, factored out from
25 create_catchpoint_without_mention and adjusted to use
27 (create_catchpoint_without_mention): Adjust.
29 2011-06-22 Tom Tromey <tromey@redhat.com>
31 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
32 argument of 0 specially.
34 2011-06-22 Yao Qi <yao@codesourcery.com>
36 * infrun.c (handle_inferior_event): Remove write-only local variable
37 `sw_single_step_trap_p'.
39 2011-06-20 Tom Tromey <tromey@redhat.com>
41 * symtab.c (lookup_language_this): End loop if block is NULL.
43 2011-06-17 Tom Tromey <tromey@redhat.com>
45 * valops.c (value_of_this): Use lookup_language_this.
46 * symtab.h (lookup_language_this): Declare.
47 * symtab.c (lookup_language_this): New function.
48 (lookup_symbol_aux): Use lookup_language_this.
49 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
51 2011-06-17 Tom Tromey <tromey@redhat.com>
53 * value.h (value_of_this): Update.
54 (value_of_local): Remove.
55 * valops.c (value_of_this): Rename from value_of_local. Change
57 * p-exp.y (exp): Update.
59 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
61 2011-06-17 Tom Tromey <tromey@redhat.com>
63 * valops.c (value_of_local): Complain if NAME is NULL.
64 * std-operator.def (OP_OBJC_SELF): Remove.
65 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
66 * objc-exp.y (name_not_typename): Use OP_THIS.
67 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
69 <OP_OBJC_SELF>: Remove.
70 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
72 2011-06-16 Tristan Gingold <gingold@adacore.com>
74 * python/py-events.h (gdb_py_events): Make it extern.
75 * python/py-evtregistry.c (gdb_py_events): Declare.
77 2011-06-16 Hui Zhu <teawater@gmail.com>
79 * remote.c (remote_trace_set_readonly_regions): Add check for
80 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
83 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
85 * arm-linux-tdep.c: Include "auxv.h".
87 (ARM_LINUX_SIZEOF_VFP): Define.
88 (arm_linux_supply_vfp): New function.
89 (arm_linux_collect_vfp): Likewise.
90 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
91 (arm_linux_fpa_regset_sections): New variable.
92 (arm_linux_vfp_regset_sections): Likewise.
93 (arm_linux_core_read_description): New function.
94 (arm_linux_init_abi): Install arm_linux_core_read_description and
95 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
96 appropriate for the architecture.
97 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
98 (tdesc_arm_with_m): Declare.
99 (tdesc_arm_with_iwmmxt): Likewise.
100 (tdesc_arm_with_vfpv2): Likewise.
101 (tdesc_arm_with_vfpv3): Likewise.
102 (tdesc_arm_with_neon): Likewise.
103 * arm-linux-nat.c: Move features/*.c includes ...
104 * arm-tdep.c: ... here.
105 * arm-linux-nat.c (arm_linux_read_description): Move initializing
106 target description data structures ...
107 * arm-tdep.c (_initialize_arm_tdep): ... here.
108 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
109 HWCAP_VFPv3D16): Move definitions ...
110 * arm-linux-tdep.h: ... here.
112 2011-06-15 Hui Zhu <teawater@gmail.com>
114 * remote.c (remote_trace_set_readonly_regions): Add a check for
117 2011-06-14 Tom Tromey <tromey@redhat.com>
119 * coffread.c (coffread_objfile): Rename from current_objfile.
120 * dbxread.c (dbxread_objfile): Rename from current_objfile.
121 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
123 2011-06-14 Tom Tromey <tromey@redhat.com>
125 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
126 (class_symtab): Remove.
127 (jv_dynamics_progspace_key): New global.
128 (jv_per_objfile_free): Reset program space data. Update assert.
130 (get_dynamics_objfile): Use and set program space data.
131 (get_java_class_symtab): Use get_dynamics_objfile.
132 (add_class_symbol): Likewise.
133 (java_link_class_type): Likewise.
134 (java_object_type, jv_clear_object_type, set_java_object_type):
136 (get_java_object_type): Update. Don't cache result.
137 (is_object_type): Don't call set_java_object_type.
138 (_initialize_java_language): Don't set jv_type_objfile_data_key;
139 initialize jv_dynamics_progspace_key.
141 2011-06-14 Tom Tromey <tromey@redhat.com>
143 * symtab.h (current_objfile): Don't declare.
144 * objfiles.h (current_objfile): Don't declare.
145 * objfiles.c (current_objfile): Remove.
146 * mdebugread.c (current_objfile): New file-scope global.
147 * dbxread.c (current_objfile): New file-scope global.
148 * coffread.c (current_objfile): New file-scope global.
150 2011-06-13 Pedro Alves <pedro@codesourcery.com>
152 * top.h (line): Rename to ...
153 (saved_command_line): ... this.
154 (linesize): Rename to ...
155 (saved_command_line_size): ... this.
156 * top.c (line): Rename to ...
157 (saved_command_line): ... this.
158 (linesize): Rename to ...
159 (saved_command_line_size): ... this.
160 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
161 * event-top.c (command_line_handler): Adjust.
162 * main.c (captured_main): Adjust.
164 2011-06-12 Mark Kettenis <kettenis@gnu.org>
166 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
167 get_frame_func instead of get_frame_pc to determine the code
168 address used to construct the frame ID.
169 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
170 (i386_epilogue_frame_this_id): Likewise.
171 (i386_epilogue_frame_prev_register): New function.
172 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
173 (i386_stack_tramp_frame_sniffer): Fix coding style.
174 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
175 (i386_gdbarch_init): Fix comments.
177 2011-06-12 Mark Kettenis <kettenis@gnu.org>
179 * i386-tdep.c (i386_match_insn_block): Use length of the proper
180 instruction when walking back through the instruction stream.
182 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
184 * symtab.c (output_partial_symbol_filename): Exchange the filename and
185 fullname parameters order.
187 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
190 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
192 * psymtab.c (map_symbol_filenames_psymtab)
193 (map_partial_symbol_filenames): Likewise.
194 * psymtab.h: Include symfile.h.
195 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
196 * symfile.h (symbol_filename_ftype): New.
197 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
198 map_symbol_filenames, clarify more the naming in comment.
200 2011-06-07 Doug Evans <dje@google.com>
202 * cc-with-index.sh: Fix typos in comment.
203 Look for ../../gdb, for fullname.exp.
205 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
206 Pedro Alves <pedro@codesourcery.com>
208 * cli/cli-cmds.c (shell_escape): Use waitpid.
209 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
211 2011-06-07 Tristan Gingold <gingold@adacore.com>
213 * xcoffread.c (dwarf2_xcoff_names): New variable.
214 (aix_process_linenos): Add a guard.
215 (xcoff_symfile_finish): Free dwarf2.
216 (xcoff_initial_scan): Add dwarf2 support.
218 2011-06-06 Pedro Alves <pedro@codesourcery.com>
220 * infcall.c (run_inferior_call): Don't mask async. Instead force
221 a synchronous wait, if the target can async.
223 * target.h (struct target_ops): Delete to_async_mask.
224 (target_async_mask): Delete.
225 * target.c (update_current_target): Delete references to to_async_mask.
226 * linux-nat.c (linux_nat_async_mask_value): Delete.
227 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
228 to linux_nat_async_mask_value.
229 (linux_nat_async_mask): Delete.
230 (linux_nat_async, linux_nat_close): Remove references to
231 linux_nat_async_mask_value.
232 * record.c (record_async_mask_value): Delete.
233 (record_async): Remove references to record_async_mask_value.
234 (record_async_mask): Delete.
235 (record_can_async_p, record_is_async_p): Remove references to
236 record_async_mask_value.
237 (init_record_ops, init_record_core_ops): Remove references to
239 * remote.c (remote_async_mask_value): Delete.
240 (init_remote_ops): Remove reference to remote_async_mask.
241 (remote_can_async_p, remote_is_async_p): Remove references to
242 remote_async_mask_value.
243 (remote_async): Remove references to remote_async_mask_value.
244 (remote_async_mask): Delete.
246 * infrun.c (fetch_inferior_event): Don't claim registers changed
247 if the current thread is already not executing.
249 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
251 From Stephen Kitt <steve@sk2.org>
252 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
253 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
255 2011-06-03 Joel Brobecker <brobecker@adacore.com>
257 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
258 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
260 2011-06-03 Tom Tromey <tromey@redhat.com>
262 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
264 * python/py-exitedevent.c (create_exited_event_object): Change
265 type of 'exit_code'. Optionally add exit_code attribute.
266 (emit_exited_event): Change type of 'exit_code'.
267 * python/py-event.h (emit_exited_event): Update.
268 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
269 * infrun.c (handle_inferior_event): Set exit code fields on
271 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
273 * inferior.c (exit_inferior_1): Initialize new fields.
275 2011-06-03 Tom Tromey <tromey@redhat.com>
277 * dwarf2expr.c (get_signed_type): New function.
278 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
280 2011-06-02 Keith Seitz <keiths@redhat.com>
282 * objc-lang.c (find_methods): Increment objfile_csym earlier.
284 2011-06-02 Pedro Alves <pedro@codesourcery.com>
286 * top.h (simplified_command_loop): Delete declaration.
288 2011-06-01 Mike Frysinger <vapier@gentoo.org>
290 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
291 gdb_sysroot to the "len" variable. Append both to "arg_buf".
293 2011-06-01 Yao Qi <yao@codesourcery.com>
295 * objfiles.h (obj_section_addr): Update reference to objfile from
297 (obj_section_endaddr): Likewise.
299 2011-06-01 Daniel Jacobowitz <drow@false.org>
301 * MAINTAINERS: Update my email address and affiliation. Also
302 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
304 2010-05-31 Keith Seitz <keiths@redhat.com>
307 * linespec.c (get_search_block): New function.
308 (find_methods): Add FILE_SYMTATB parameter and use it and
309 get_search_block to pass an appropriate block to
310 lookup_symbol_in_namespace.
311 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
312 Check if *ARGPTR starts with a filename first.
313 If it does, call locate_first_half again to locate the next
314 "first half" of the linespec.
315 Pass FILE_SYMTATB to decode_objc and decode_compound.
316 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
317 (locate_first_half): Stop on the first colon seen.
318 (decode_compound): Add FILE_SYMTAB parameter.
319 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
320 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
321 get_search_block with lookup_symbol.
322 (find_method): Add FILE_SYMTAB parameter and pass it to
324 (decode_objc): Use get_search_block.
326 2010-05-31 Keith Seitz <keiths@redhat.com>
329 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
330 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
331 and CP_ANONYMOUS_NAMESPACE_LEN.
332 (cp_is_anonymous): Likewise.
333 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
334 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
335 * dwarf2read.c (namespace_name): Likewise.
336 (fixup_partial_die): Likewise.
337 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
338 seen in the input, keep it.
340 2011-05-30 Pedro Alves <pedro@codesourcery.com>
342 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
343 * inf-loop.h (inferior_event_handler_wrapper): Delete.
344 * inf-loop.c (inferior_event_handler_wrapper): Delete.
345 (inferior_event_handler): Don't handle INF_QUIT_REQ.
346 * remote.c (_initialize_remote): Register
347 async_remote_interrupt_twice directly as
348 sigint_remote_twice_token event.
350 2011-05-30 Pedro Alves <pedro@codesourcery.com>
352 * target.h (enum inferior_event_type): Delete INF_ERROR.
353 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
355 2011-05-30 Pedro Alves <pedro@codesourcery.com>
357 * interps.c (interp_set): Don't cancel continuations.
359 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
361 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
363 2011-05-30 Pedro Alves <pedro@codesourcery.com>
365 * continuations.h (continuation_ftype): Add `err' parameter.
367 (do_all_continuations, do_all_continuations_thread)
368 (do_all_intermediate_continuations)
369 (do_all_intermediate_continuations_thread)
370 (do_all_inferior_continuations): Add `err' parameter.
371 * continuations.c (do_my_continuations_1, do_my_continuations)
372 (do_all_inferior_continuations, do_all_continuations_ptid)
373 (do_all_continuations_thread_callback)
374 (do_all_continuations_thread, do_all_continuations)
375 (do_all_intermediate_continuations_thread_callback)
376 (do_all_intermediate_continuations_thread)
377 (do_all_intermediate_continuations): Add `err' parameter, and pass
378 it down all the way to the continuations proper.
379 * inf-loop.c (inferior_event_handler): If fetching an inferior
380 event throws an error, don't pop the target, and still call the
381 continuations, but with `err' set. Adjust all other continuation
383 * breakpoint.c (until_break_command_continuation): Add `err'
385 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
386 issue another step if `err' is set.
387 (struct until_next_continuation_args): New.
388 (until_next_continuation): Add `err' parameter. Adjust.
389 (until_next_command): Adjust.
390 (struct finish_command_continuation_args): Add `thread' field.
391 (finish_command_continuation): Add `err' parameter. Handle it.
392 (finish_forward): Adjust.
393 (attach_command_continuation): Add `err' parameter. Handle it.
394 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
395 cancel the continuations.
396 * interps.c (interp_set): Adjust to cancel the continuations.
397 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
398 continuations rather than discarding.
399 (free_thread): Don't clear thread inferior resources here.
400 (delete_thread_1): Do it here instead. And do it before removing
401 the thread from the threads list. Tag the thread as exited before
402 clearing thread inferior resources.
404 2011-05-30 Joel Brobecker <brobecker@adacore.com>
406 * infcall.c (call_function_by_hand): Rephrase error message.
408 2011-05-27 Pedro Alves <pedro@codesourcery.com>
410 * defs.h (struct thread_info, struct inferior): Delete forward
412 * breakpoint.h (struct thread_info): New forward declaration.
413 * observer.sh (struct inferior): New forward declaration.
414 * python/python-internal.h (struct inferior): New forward
417 2011-05-27 Pedro Alves <pedro@codesourcery.com>
419 * defs.h (struct continuation, continuation_ftype)
420 (continuation_free_arg_ftype, add_continuation)
421 (do_all_continuations, do_all_continuations_thread)
422 (discard_all_continuations, discard_all_continuations_thread)
423 (add_intermediate_continuation, do_all_intermediate_continuations)
424 (do_all_intermediate_continuations_thread)
425 (discard_all_intermediate_continuations)
426 (discard_all_intermediate_continuations_thread)
427 (add_inferior_continuation, do_all_inferior_continuations)
428 (discard_all_inferior_continuations): Move to ...
429 * continuations.h: ... this new file.
430 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
431 infcmd.c, inferior.c, infrun.c, interps.c: Include
434 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Doug Evans <dje@google.com>
437 Fix PR 10970, PR 12702.
438 * linux-nat.c (linux_lwp_is_zombie): New function.
439 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
440 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
442 2011-05-27 Pedro Alves <pedro@codesourcery.com>
444 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
446 (add_continuation, add_intermediate_continuation)
447 (add_inferior_continuation): Use them.
448 * continuations.c (struct continuation): Use them.
449 (make_continuation_ftype): Delete.
450 (make_continuation, add_inferior_continuation, add_continuation)
451 (add_intermediate_continuation): Use continuation_ftype and
452 continuation_free_arg_ftype. Rename parameters to shorter names.
454 2011-05-27 Pedro Alves <pedro@codesourcery.com>
456 * continuations.c (make_continuation): Make it return void.
457 (do_my_continuations): Rename to ...
458 (do_my_continuations_1): ... this. Remove old_chain parameter and
460 (do_my_continuations): New.
461 (discard_my_continuations): Rename to ...
462 (discard_my_continuations_1): ... this. Remove old_chain
463 parameter and adjust.
464 (discard_my_continuations): New.
465 (add_inferior_continuation): Simplify.
466 (do_all_inferior_continuations): Reimplement on top
468 (discard_all_inferior_continuations): Simplify.
469 (add_continuation): Simplify.
470 (do_all_continuations_ptid): Simplify.
471 (discard_all_continuations_thread_callback): Simplify.
472 (add_intermediate_continuation): Simplify.
473 (discard_all_intermediate_continuations_thread_callback):
476 2011-05-27 Pedro Alves <pedro@codesourcery.com>
478 * utils.c (struct continuation, add_continuation)
479 (add_inferior_continuation)
480 (do_all_inferior_continuations, discard_all_inferior_continuations)
481 (restore_thread_cleanup, do_all_continuations_ptid)
482 (do_all_continuations_thread_callback)
483 (do_all_continuations_thread, do_all_continuations)
484 (discard_all_continuations_thread_callback)
485 (discard_all_continuations_thread, discard_all_continuations)
486 (add_intermediate_continuation)
487 (do_all_intermediate_continuations_thread_callback)
488 (do_all_intermediate_continuations_thread)
489 (do_all_intermediate_continuations)
490 (discard_all_intermediate_continuations_thread_callback)
491 (discard_all_intermediate_continuations_thread)
492 (discard_all_intermediate_continuations): Move to ...
493 * continuations.c: ... this new file, and adjust to no longer
494 implement continuations on top of cleanups.
495 * Makefile.in (SFILES): Add continuations.c.
496 (COMMON_OBS): Add continuations.o.
498 2011-05-26 Pedro Alves <pedro@codesourcery.com>
500 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
501 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
502 Internal error on invalid values.
503 * reverse.c: Don't handle EXEC_ERROR.
504 * mi/mi-main.c: Don't handle EXEC_ERROR.
506 2011-05-26 Pedro Alves <pedro@codesourcery.com>
508 * record.c: Include event-loop.h, inf-loop.h.
509 (record_beneath_to_async): New global.
510 (tmp_to_async): New global.
511 (record_async_inferior_event_token): New global.
512 (record_open_1): Don't error out if async is enabled.
513 (record_open): Handle to_async. Create an async event source in
515 (record_close): Delete the async event source.
516 (record_resumed): New global.
517 (record_execution_dir): New global.
518 (record_resume, record_core_resume): Set them. Register the
519 target on the event loop.
520 (record_wait): Rename to ...
521 (record_wait_1): ... this. Add more debug output. Handle
522 TARGET_WNOHANG, and the target beneath returning
523 TARGET_WAITKIND_IGNORE.
524 (record_wait): Reimplement on top of record_wait_1.
525 (record_async_mask_value): New global.
526 (record_async, record_async_mask, record_can_async_p)
527 (record_is_async_p, record_execution_direction): New functions.
528 (init_record_ops, init_record_core_ops): Install new methods.
529 * infrun.c (fetch_inferior_event): Temporarily switch the global
530 execution direction to the direction the target was going.
531 (execution_direction): Change type to int.
532 * target.c (default_execution_direction): New function.
533 (update_current_target): Inherit and de_fault
534 to_execution_direction.
535 * target.h (struct target_ops) <to_execution_direction>: New
537 (target_execution_direction): New macro.
538 * inferior.h (execution_direction): Change type to int.
540 2011-05-26 Pedro Alves <pedro@codesourcery.com>
542 * infcall.c (call_function_by_hand): Don't allow calling functions
543 in reverse execution mode.
545 2011-05-26 Pedro Alves <pedro@codesourcery.com>
547 * infcmd.c (finish_command): Allow async finish in reverse.
549 2011-05-26 Yao Qi <yao@codesourcery.com>
551 * gdb_thread_db.h: Delete. Move to ...
552 * common/gdb_thread_db.h: ... here.
554 2011-05-26 Pedro Alves <pedro@codesourcery.com>
556 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
557 function's entry point instead of a manually managed momentary
558 breakpoint, and only ever issue one proceed call.
559 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
560 doing a reverse-finish, switch to stepi mode, to do another step.
561 (insert_step_resume_breakpoint_at_sal): Make public.
562 (normal_stop): No need to save function value return registers if
564 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
566 2011-05-26 Pedro Alves <pedro@codesourcery.com>
568 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
569 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
570 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
572 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
573 step-resume breakpoints.
574 (print_it_typical): Handle bp_hp_step_resume.
575 (bpstat_what): Ditto.
576 (bptype_string): Ditto.
577 (print_one_breakpoint_location): Ditto.
578 (allocate_bp_location): Ditto.
580 (breakpoint_re_set_one): Ditto.
581 * infrun.c (handle_inferior_event): Adjust. Split
582 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
583 BPSTAT_WHAT_HP_STEP_RESUME.
584 (insert_step_resume_breakpoint_at_sal): Rename to ...
585 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
586 parameter. Handle it.
587 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
588 insert_step_resume_breakpoint_at_sal_1.
589 (insert_step_resume_breakpoint_at_frame): Rename to ...
590 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
591 set a high-priority step-resume breakpoint.
592 (insert_step_resume_breakpoint_at_frame): Adjust comment.
593 (insert_step_resume_breakpoint_at_caller): Ditto.
595 2011-05-26 Pedro Alves <pedro@codesourcery.com>
597 * breakpoint.c (iterate_over_related_breakpoints): New.
598 (do_map_delete_breakpoint): New.
599 (delete_command): Pass do_map_delete_breakpoint to
600 map_breakpoint_numbers.
601 (do_disable_breakpoint): New.
602 (do_map_disable_breakpoint): Iterate over the breakpoint's related
604 (do_enable_breakpoint): Rename to ...
605 (enable_breakpoint_disp): ... this.
606 (enable_breakpoint): Adjust.
607 (do_enable_breakpoint): New.
608 (enable_once_breakpoint): Delete.
609 (do_map_enable_breakpoint): New.
610 (do_map_enable_once_breakpoint): New.
611 (enable_once_command, enable_delete_command)
612 (delete_trace_command): Iterate over the breakpoint's related
615 2011-05-26 Pedro Alves <pedro@codesourcery.com>
617 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
618 for ALPHA_ZERO_REGNUM.
619 (alpha_supply_int_regs): Explicitly supply zero as the value for
620 ALPHA_ZERO_REGNUM in the register cache.
621 * alpha-nat.c (fetch_osf_core_registers): Ditto.
623 2011-05-26 Yao Qi <yao@codesourcery.com>
625 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
627 2011-05-26 Tristan Gingold <gingold@adacore.com>
629 * symfile.h (struct dwarf2_section_names): New type.
630 (struct dwarf2_debug_sections): New type.
631 (dwarf2_has_info): Add parameter.
632 * dwarf2read.c (dwarf2_elf_names): New variable.
633 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
634 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
635 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
636 (dwarf2_has_info): Add names parameter. Pass names
637 to dwarf2_locate_sections.
638 (section_is_p): Rewrite using the names parameter.
639 (dwarf2_locate_sections): Use section names from the names parameter.
640 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
641 * elfread.c (read_psyms): Ditto.
642 * machoread.c (macho_symfile_read): Ditto.
644 2011-05-25 Andreas Schwab <schwab@redhat.com>
647 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
649 2011-05-24 Keith Seitz <keiths@redhat.com>
652 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
653 (decode_compound): Unconditionally call keep_name_info.
655 2011-05-24 Pedro Alves <pedro@codesourcery.com>
657 * breakpoint.c (watchpoint_check): If the watchpoint went out of
658 scope, clear its command list.
659 (map_breakpoint_numbers): Don't walk the related breakpoints list
662 2011-05-24 Tom Tromey <tromey@redhat.com>
664 * MAINTAINERS: Move Jim Blandy to past maintainers.
666 2011-05-24 Tristan Gingold <gingold@adacore.com>
668 * symfile.h (enum dwarf2_section_enum): New type.
669 (dwarf2_get_section_info): New prototype.
670 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
671 section_name by sect. Use a switch to select the info.
672 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
673 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
675 2011-05-24 Pedro Alves <pedro@codesourcery.com>
677 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
678 shared library event breakpoint if there's no execution.
680 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
682 * breakpont.c (remove_hw_watchpoints): Remove unused function.
683 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
685 2011-05-23 Tom Tromey <tromey@redhat.com>
687 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
690 2011-05-23 Doug Evans <dje@google.com>
692 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
693 entry for RuntimeError to doc string.
695 2011-05-23 Jerome Guitton <guitton@adacore.com>
697 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
698 sequence for probing loops.
700 2011-05-23 Pedro Alves <pedro@codesourcery.com>
702 * infrun.c (user_visible_resume_ptid): Fix typos in describing
705 2011-05-21 Mark Kettenis <kettenis@gnu.org>
707 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
708 zero as the value for %g0 in the register cache.
709 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
710 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
712 2011-05-20 Pedro Alves <pedro@codesourcery.com>
714 * infrun.c (proceed): Set previous_inferior_ptid here.
715 (init_wait_for_inferior): Initialize previous_inferior_ptid from
716 inferior_ptid, not null_ptid.
717 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
718 (fetch_inferior_event): Nor here.
720 2011-05-20 Pedro Alves <pedro@codesourcery.com>
722 * inf-loop.c (inferior_event_handler): Only output a message if
725 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
727 * MAINTAINERS: Update my e-mail address.
729 2011-05-20 Pedro Alves <pedro@codesourcery.com>
731 * infrun.c (proceed): Switch the inferior event loop to
732 INF_EXEC_COMPLETE if the target refused to resume from a
735 2011-05-20 Pedro Alves <pedro@codesourcery.com>
737 * infcmd.c: Include "inf-loop.h".
738 (step_once): When stepping into an inline subroutine, pretend the
739 target has run. If the target can async, switch the inferior
740 event loop to INF_EXEC_COMPLETE.
741 * inferior.h (user_visible_resume_ptid): Declare.
742 * infrun.c (user_visible_resume_ptid): New function, factored out
745 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
746 that the current thread is running. Merge async and sync
749 2011-05-20 Pedro Alves <pedro@codesourcery.com>
751 * infcmd.c (step_1): Simplify synchronous case.
753 2011-05-20 Pedro Alves <pedro@codesourcery.com>
755 * tracepoint.c: Include exceptions.h.
756 (TFILE_PID): Move higher in file.
757 (tfile_open): Delay pushing the tfile target until we're assured
758 the tfile header is present in the file. Wrap reading the initial
759 newline-terminated lines in TRY_CATCH. Pop the target if the
760 initial setup failed. Add the tfile's thread immediately
761 aftwards, before any non-essential setup. Don't skip
762 post_create_inferior if there are no traceframes present in the
764 (tfile_close): Remove redundant check for null before xfree call.
765 (tfile_thread_alive): New function.
766 (init_tfile_ops): Register it as to_thread_alive callback.
768 2011-05-20 Pedro Alves <pedro@codesourcery.com>
770 * tracepoint.c (tfile_open): Delete #if 0'd code.
772 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
774 Fix -readnow for -gdwarf-4 unused type units.
775 * dwarf2read.c (struct signatured_type): Remove the field offset.
776 (create_signatured_type_table_from_index): Remove its initialization.
777 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
778 instead. Add a complaint call.
779 (process_psymtab_comp_unit): Change assignment to gdb_assert.
780 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
781 (lookup_signatured_type_at_offset, read_signatured_type)
782 (write_one_signatured_type): Update the field for per_cu.
784 2011-05-19 Tom Tromey <tromey@redhat.com>
786 * python/py-inferior.c (python_inferior_exit): Use
788 (python_on_resume): Likewise.
790 2011-05-19 Matt Rice <ratmice@gmail.com>
792 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
794 2011-05-19 Hui Zhu <teawater@gmail.com>
796 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
798 2011-05-19 Hui Zhu <teawater@gmail.com>
800 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
802 2011-05-18 Tom Tromey <tromey@redhat.com>
804 * dwarf2read.c (dwarf2_add_field): Constify.
805 * value.c (value_static_field): Constify.
806 * gdbtypes.h (struct main_type) <field.field_location.physname>:
808 * ax-gdb.c (gen_static_field): Constify
810 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
812 * linux-nat.c (kill_callback): Use SIGKILL first.
814 2011-05-18 Joel Brobecker <brobecker@adacore.com>
816 * ada-lang.c (print_it_exception): Avoid use of sprintf.
818 2011-05-18 Tom Tromey <tromey@redhat.com>
820 * value.c (value_fn_field): Constify.
821 * symtab.c (gdb_mangle_name): Constify.
822 * stabsread.c (update_method_name_from_physname): Make 'physname'
824 * p-typeprint.c (pascal_type_print_method_args): Make arguments
825 const. Use explicit fputc_filtered loop.
826 (pascal_type_print_base): Constify.
827 * p-lang.h (pascal_type_print_method_args): Update.
828 * linespec.c (add_matching_methods): Constify.
829 (add_constructors): Likewise.
830 * jv-typeprint.c (java_type_print_base): Constify.
831 * gdbtypes.h (struct cplus_struct_type)
832 <fn_fieldlist.fn_field.physname>: Now const.
833 * dwarf2read.c (compute_delayed_physnames): Constify.
834 (dwarf2_add_member_fn): Likewise.
835 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
837 2011-05-18 Pedro Alves <pedro@codesourcery.com>
839 * infrun.c (resume): Mention which is the current thread, and its
840 current PC in debug output.
841 (prepare_to_proceed): Mention the thread switching in debug
844 2011-05-18 Tom Tromey <tromey@redhat.com>
846 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
847 path check. Use xmalloc and cleanups.
848 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
850 2011-05-17 Tom Tromey <tromey@redhat.com>
852 * cp-valprint.c (cp_print_value_fields): Catch errors from
855 2011-05-17 Tom Tromey <tromey@redhat.com>
857 * dwarf2read.c (dwarf2_get_die_type): Call
858 get_die_type_at_offset.
859 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
860 get_base_type function.
862 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
864 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
867 2011-05-16 Doug Evans <dje@google.com>
869 * python/py-auto-load.c (source_section_scripts): Mention objfile
872 2011-05-15 Doug Evans <dje@google.com>
874 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
875 (try_thread_db_load_from_pdir): Call it. If unable to find
876 libthread_db in directory of libpthread, see if we're looking at
877 the separate-debug-info copy.
879 * python/py-autoload.c (print_script): Print "Missing" instead of
880 "No" for missing scripts.
881 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
883 2011-05-13 Doug Evans <dje@google.com>
885 * ui-file.c (stdio_file_write_async_safe): Add comment.
887 2011-05-14 Hui Zhu <teawater@gmail.com>
889 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
891 2011-05-13 Doug Evans <dje@google.com>
893 Support $pdir and $sdir in libthread-db-search-path.
894 * NEWS: Mention $sdir,$pdir.
895 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
896 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
897 (try_thread_db_load_from_sdir): New function.
898 (try_thread_db_load_from_dir): New function.
899 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
900 system directories if search of libthread-db-search-path fails,
901 that is now done via $sdir.
902 (has_libpthread): New function.
903 (thread_db_load): Remove search for libthread_db in directory of
904 libpthread, that is now done via $pdir.
906 * NEWS: Mention "info auto-load-scripts".
907 * python/py-auto-load.c (struct auto_load_pspace_info): New member
908 script_not_found_warning_printed.
909 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
910 all callers updated. Initialize script_not_found_warning_printed.
911 (get_auto_load_pspace_data_for_loading): New function.
912 (maybe_add_script): New function.
913 (source_section_scripts): Simplify. Only print one warning regardless
914 of the number of auto-load scripts not found.
915 (clear_section_scripts): Clear script_not_found_warning_printed.
916 (auto_load_objfile_script): Record script in hash table.
917 (count_matching_scripts): New function.
918 (maybe_print_script): Renamed from maybe_print_section_script, all
919 callers updated. Rewrite to use ui_out_*.
920 (info_auto_load_scripts): Renamed from
921 maintenance_print_section_scripts, all callers updated.
922 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
923 renamed as "info auto-load-scripts".
925 2011-05-13 Tom Tromey <tromey@redhat.com>
927 * dwarf2expr.c (read_uleb128): Cast intermediate result.
928 (read_sleb128): Likewise.
930 2011-05-13 Tom Tromey <tromey@redhat.com>
932 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
935 2011-05-13 Doug Evans <dje@google.com>
937 * linux-nat.c (debug_linux_nat_async): Delete.
938 Replace all references to use debug_linux_nat instead.
939 (show_debug_linux_nat_async): Delete.
940 (sigchld_handler): Call ui_file_write_async_safe instead of
942 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
943 * ui-file.c (struct ui_file): New member to_write_async_safe.
944 (null_file_write_async_safe): New function.
945 (ui_file_write_async_safe): New function.
946 (set_ui_file_write_async_safe): New function.
947 (ui_file_new): Initialize to_write_async_safe.
948 (stdio_file_write_async_safe): New function.
949 (struct stdio_file): New member fd.
950 (stdio_file_new): Initialize to_write_async_safe, fd.
951 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
953 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
954 (set_ui_file_write_async_safe): Declare.
955 (ui_file_write_async_safe): Declare.
957 2011-05-13 Tom Tromey <tromey@redhat.com>
959 * utils.c (do_value_free): New function.
960 (make_cleanup_value_free): Likewise.
961 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
963 (dwarf2_loc_desc_needs_frame): Call
964 make_cleanup_value_free_to_mark.
965 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
966 * dwarf2expr.c (free_dwarf_expr_context): Don't call
968 (new_dwarf_expr_context): Don't call value_mark.
969 * dwarf2-frame.c (execute_stack_op): Call
970 make_cleanup_value_free_to_mark.
971 * defs.h (make_cleanup_value_free): Declare.
973 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
975 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
976 prepare_execute_command.
977 * top.c (prepare_execute_command): Return cleanup.
978 (execute_command): Use cleanup from prepare_execute_command.
979 * top.h (prepare_execute_command): Change prototype to return
981 * defs.h (struct value): Add opaque declaration.
982 (make_cleanup_value_free_to_mark): Add prototype.
983 * utils.c (do_value_free_to_mark): New function.
984 (make_cleanup_value_free_to_mark): Likewise.
986 2011-05-12 Tom Tromey <tromey@redhat.com>
988 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
989 cast left-hand-side to unsigned.
991 2011-05-12 Tom Tromey <tromey@redhat.com>
994 * value.h (value_from_contents): Declare.
995 * value.c (value_from_contents): New function.
996 * dwarf2read.c (dwarf_stack_op_name): Add new values.
997 (dwarf2_get_die_type): New function.
998 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
999 (allocate_piece_closure): Acquire reference to values.
1000 (read_pieced_value): Update for value-based expressions.
1001 (write_pieced_value): Likewise.
1002 (free_pieced_value_closure): Call value_free as needed.
1003 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1004 Update for value-based expressions.
1005 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1006 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1007 <get_base_type>: New field.
1008 (struct dwarf_expr_piece) <v.value>: Change type.
1009 <v.regno>: New field.
1010 (struct dwarf_expr_context) <mark>: New field.
1011 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1012 (dwarf_expr_pop, dwarf_expr_push): Remove.
1013 (dwarf_expr_push_address): Declare.
1014 * dwarf2expr.c (dwarf_arch_cookie): New global.
1015 (struct dwarf_gdbarch_types): New.
1016 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1018 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1020 (dwarf_expr_push_address): New function.
1021 (dwarf_expr_pop): Now static.
1022 (dwarf_expr_fetch): Change return type.
1023 (dwarf_require_integral): New function.
1024 (dwarf_expr_fetch): Simplify.
1025 (add_piece): Update.
1026 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1028 (execute_stack_op) <sign_ext>: Remove.
1029 Use values for DWARF stack.
1030 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1031 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1033 (_initialize_dwarf2expr): New function.
1034 (add_piece): Update.
1035 (new_dwarf_expr_context): Set new field.
1036 (free_dwarf_expr_context): Call value_free_to_mark.
1037 * dwarf2-frame.c (no_base_type): New function.
1038 (execute_stack_op): Set get_base_type field. Update.
1040 2011-05-12 Tom Tromey <tromey@redhat.com>
1042 * dwarf2read.c (read_common_block): Fix formatting.
1044 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1046 * breakpoint.c (disable_breakpoint): Disable all locations
1047 associated with a tracepoint on target if a trace experiment is
1049 (disable_command): Disable a specific tracepoint location on target if
1050 a trace experiment is running.
1051 (do_enable_breakpoint): Enable all locations associated with a
1052 tracepoint on target if a trace experiment is running.
1053 (enable_command) Enable a specific tracepoint location on target if a
1054 trace experiment is running.
1055 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1056 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1057 to_disable_tracepoint.
1058 * target.h: Add declaration of struct bp_location.
1059 (struct target_ops): Add new functions
1060 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1061 to_disable_tracepoint to target operations.
1062 (target_supports_enable_disable_tracepoint): New macro.
1063 (target_enable_tracepoint): New macro.
1064 (target_disable_tracepoint): New macro.
1065 * remote.c (struct remote_state): Add new field.
1066 (remote_enable_disable_tracepoint_feature): New.
1067 (remote_protocol_features): Add new entry.
1068 (remote_supports_enable_disable_tracepoint): New.
1069 (remote_enable_tracepoint): New.
1070 (remote_disable_tracepoint): New.
1071 (init_remote_ops): Add remote_enable_tracepoint,
1072 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1073 to remote operations.
1074 * tracepoint.c (start_tracing): Allow tracing to start without any
1075 tracepoints enabled with just a warning if they can be re-enabled
1077 * NEWS: Add news item for the new behaviour of the enable and disable
1078 GDB commands when applied to tracepoints.
1079 Add news items for the new remote packets QTEnable and QTDisable.
1081 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1083 * config.in: Regenerate.
1084 * configure: Regenerate.
1085 * configure.ac <--with-system-readline> (for readline_echoing_p):
1087 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1088 (tui_old_rl_echoing_p): ... here.
1089 (tui_setup_io): Rename extern declaration readline_echoing_p to
1090 _rl_echoing_p. Adjust assignments for the both renames.
1092 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1094 * symtab.c (lookup_symtab): Run cleanup before returning.
1096 2011-05-11 Tom Tromey <tromey@redhat.com>
1098 * dwarf2read.c (handle_data_member_location): New function.
1099 (dwarf2_add_field): Use it.
1100 (read_common_block): Likewise.
1102 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1104 Make addrs->SECTINDEX always defined.
1105 * symfile.c (relative_addr_info_to_section_offsets): Check for
1106 SECTINDEX -1, not for zero ADDR.
1107 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1108 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1109 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1112 2011-05-10 Doug Evans <dje@google.com>
1114 * linux-thread-db.c: Whitespace cleanup.
1115 (try_thread_db_load_1): Fix comment.
1117 * linux-thread-db.c (set_libthread_db_search_path): New function.
1118 (_initialize_thread_db): Add setter for libthread-db-search-path.
1120 2011-05-09 Doug Evans <dje@google.com>
1122 * NEWS: Mention --with-iconv-bin.
1123 * configure.ac: New option --with-iconv-bin.
1124 * configure: Regenerate.
1125 * config.in: Regenerate.
1126 * defs.h (relocate_gdb_directory): Declare.
1127 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1128 removed progname parameter, and exported. All callers updated.
1129 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1131 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1132 adding missing call to restore_child_signals_mask.
1134 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1136 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1138 * infrun.c (proceed, start_remote): Adjust.
1139 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1140 and adjust to not handle it.
1141 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1142 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1143 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1144 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1145 * windows-nat.c (do_initial_windows_stuff): Adjust.
1146 * infcmd.c (attach_command): Adjust.
1147 (notice_new_inferior): Adjust.
1149 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1151 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1152 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1153 * spu-tdep.c (op_selb): Use correct value.
1155 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1157 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1158 "parent" parameter to symbol_file_add_from_bfd call.
1160 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1161 Thiago Jung Bauermann <bauerman@br.ibm.com>
1163 Implement support for PowerPC BookE masked watchpoints.
1164 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1166 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1167 method. Initialize to NULL in all existing breakpoint_ops instances.
1168 (struct breakpoint) <hw_wp_mask>: New field.
1169 * breakpoint.c (is_masked_watchpoint): Add prototype.
1170 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1171 breakpoint's breakpoint_ops.works_in_software_mode if available.
1172 (watchpoints_triggered): Handle the case of a hardware masked
1174 (watchpoint_check): Likewise.
1175 (works_in_software_mode_watchpoint): New function.
1176 (insert_masked_watchpoint, remove_masked_watchpoint)
1177 (resources_needed_masked_watchpoint)
1178 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1179 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1180 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1182 (masked_watchpoint_breakpoint_ops): New structure.
1183 (watch_command_1): Check for the existence of the `mask' parameter.
1184 Set b->ops according to the type of hardware watchpoint being created.
1185 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1186 (ppc_linux_remove_mask_watchpoint)
1187 (ppc_linux_masked_watch_num_registers): New functions.
1188 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1189 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1190 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1191 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1192 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1193 (target_masked_watch_num_registers): New functions.
1194 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1195 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1197 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1198 (target_masked_watch_num_registers): Add prototypes.
1200 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1203 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1204 (producer_is_gcc_ge_4_0): New function.
1205 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1206 symtab->language code.
1207 (var_decode_location): Set cu->has_loclist.
1208 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1209 skip. Intialize force_skip from locations_valid. Move the prologue
1210 skipping code into two passes.
1211 * symtab.h (struct symtab): Make the primary field a bitfield. New
1212 field locations_valid.
1214 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1216 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1217 (classify_inner_name): Call cp_lookup_nested_type with
1219 * cp-namespace.c (cp_lookup_nested_type): New variable
1220 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1221 type_name_no_tag_or_error with saved_parent_type.
1222 * dwarf2read.c (load_partial_dies): Read in any children of
1223 DW_TAG_typedef with complaint in such case.
1224 * gdbtypes.c (type_name_no_tag_or_error): New function.
1225 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1226 * valops.c (destructor_name_p): New comment for parameter type. Remove
1227 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1228 * value.h (destructor_name_p): Remove type const.
1230 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 * symtab.c (compare_symbol_name): New function.
1233 (completion_list_add_name, expand_partial_symbol_name): Call it,
1234 remove the variable ncmp.
1235 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1238 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1240 Demote to sw watchpoint only in update_watchpoint.
1241 * breakpoint.c (update_watchpoint): Change between software and
1242 hardware watchpoint for all kinds of watchpoints, not just
1243 read/write ones. Determine b->exact value here instead of
1244 in watch_command_1. Error out if there are not enough resources
1245 for a read or access hardware watchpoint.
1246 (watch_command_1): Remove logic of checking whether there are
1247 enough resources available, since update_watchpoint will do that
1248 work now. Don't set b->exact here. Catch exceptions thrown by
1249 update_watchpoint and delete the watchpoint.
1250 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1251 Use target_exact_watchpoints instead.
1252 (delete_breakpoint): Notify observers only if deleted watchpoint
1253 has a breakpoint number assigned to it.
1255 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1257 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1259 2011-05-05 Jerome Guitton <guitton@adacore.com>
1261 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1263 (i386_stack_tramp_frame_unwind): New static global.
1264 (i386_match_pattern): New function, extracted from i386_match_insn.
1265 (i386_match_insn): Use i386_match_pattern.
1266 (i386_match_insn_block): New function.
1267 (i386_tramp_chain_in_reg_insns)
1268 (i386_tramp_chain_on_stack_insns): New static variables.
1269 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1272 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1274 * configure.host (xscale*): Don't handle target.
1275 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1278 2011-05-04 Yao Qi <yao@codesourcery.com>
1280 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1282 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1285 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1286 | * elfread.c (elf_symtab_read): Stop memory leak.
1288 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1290 * nto-tdep.c (nto_target): Replace deprecated call to
1291 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1293 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1295 Fix false GCC warning.
1296 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1298 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1300 * breakpoint.c (update_watchpoint): Move code to change
1301 the enable state of breakpoint from here ...
1302 (do_enable_breakpoint): ... to here.
1304 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1306 * valprint.c (val_print_array_elements): Fixed poor performance
1307 of printing very large arrays with repeat_count_threshold set
1308 to unlimited. New comment.
1310 2011-04-29 Tom Tromey <tromey@redhat.com>
1312 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1313 (mi_parse): Likewise.
1314 * breakpoint.c (break_range_command): Use sizeof char*, not
1316 (create_breakpoint): Likewise.
1317 (parse_breakpoint_sals): Likewise.
1319 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1321 * linux-nat.c (linux_child_remove_fork_catchpoint)
1322 (linux_child_remove_vfork_catchpoint)
1323 (linux_child_remove_exec_catchpoint): New functions.
1324 (linux_target_install_ops): Install them.
1326 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1330 * varobj.c (install_default_visualizer): Do not install a
1331 visualizer if the varobj is CPLUS_FAKE_CHILD.
1332 (construct_visualizer): Likewise.
1334 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1336 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1337 case insensitive comparison.
1339 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1341 * infrun.c (proceed): Revert previous change.
1342 (resume): Instead, handle the case of signal delivery while stepping
1343 off a breakpoint location here, and only if software single-stepping
1344 is used. Handle nested signals.
1346 2011-04-28 Yao Qi <yao@codesourcery.com>
1348 * arm-tdep.c (copy_unmodified): Rename to ...
1349 (arm_copy_unmodified): .. this. New.
1350 (copy_preload): Move common part to ...
1351 (install_preload): .. this. New.
1352 (arm_copy_preload): New.
1353 (copy_preload_reg): Move common part to ...
1354 (install_preload_reg): ... this. New.
1355 (arm_copy_preload_reg): New.
1356 (copy_b_bl_blx): Move common part to ...
1357 (install_b_bl_blx): .. this. New.
1358 (arm_copy_b_bl_blx): New.
1359 (copy_bx_blx_reg): Move common part to ...
1360 (install_bx_blx_reg): ... this. New.
1361 (arm_copy_bx_blx_reg): New.
1362 (copy_alu_reg): Move common part to ...
1363 (install_alu_reg): ... this. New.
1364 (arm_copy_alu_reg): New.
1365 (copy_alu_shifted_reg): Move common part to ...
1366 (install_alu_shifted_reg): ... this. New.
1367 (copy_ldr_str_ldrb_strb): Move common part to ...
1368 (install_ldr_str_ldrb_strb): ... this. New.
1369 (arm_copy_ldr_str_ldrb_strb): New.
1370 (copy_copro_load_store): Move some common part to ...
1371 (install_copy_copro_load_store): ... this. New.
1372 (arm_copy_copro_load_store): New.
1374 (arm_copy_svc): Renamed from copy_svc.
1375 (copy_undef): Delete.
1376 (arm_copy_undef): Renamed from copy_undef.
1377 (decode_ext_reg_ld_st): Delete.
1378 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1379 (decode_svc_copro): Delete.
1380 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1381 (copy_copro_load_store, copy_alu_imm): update callers.
1382 (copy_extra_ld_st, copy_block_xfer): Likewise.
1383 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1384 (decode_miscellaneous, decode_dp_misc): Likewise.
1385 (decode_ld_st_word_ubyte, decode_media): Likewise.
1386 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1387 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1388 (decode_unconditional, decode_miscellaneous): Likewise.
1389 (decode_media, decode_b_bl_ldmstm): Likewise.
1390 (arm_process_displaced_insn): Likewise..
1391 (decode_misc_memhint_neon): Delete.
1392 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1393 (decode_miscellaneous): Delete.
1394 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1395 (decode_dp_misc): Delete.
1396 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1397 (decode_ld_st_word_ubyte): Delete.
1398 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1399 (decode_media): Delete.
1400 (arm_decode_media): Renamed from decode_media.
1401 (decode_b_bl_ldmstm): Delete.
1402 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1403 (decode_ext_reg_ld_st): Delete.
1404 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1405 (decode_unconditional): Delete.
1406 (arm_decode_unconditional): Renamed from decode_unconditional.
1408 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1410 Case insensitive lookups implementation.
1411 * dwarf2read.c: Include ctype.h.
1412 (struct mapped_index): New field version.
1413 (mapped_index_string_hash): New parameter index_version. New comment
1414 for it. Call tolower appropriately.
1415 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1416 Choose the right index version for mapped_index_string_hash.
1417 (dwarf2_read_index): Support also the index version 5. Initialize the
1418 new struct mapped_index field version.
1419 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1420 (find_slot): Explain the version needs. Pass INT_MAX for the new
1422 (write_psymtabs_to_index): Produce version 5.
1423 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1424 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1425 * psymtab.c (lookup_partial_symbol): Find the
1426 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1428 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1430 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1431 (completion_list_add_name): New variable ncmp, initialize it, use it.
1432 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1433 * utils.c (strcmp_iw): Support case_sensitive_off.
1434 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1435 New function comment part. New variables saved_string1,
1436 saved_string2 and case_pass. Add a proper second pass.
1438 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 Replace re_comp/re_exec by regcomp/regexec.
1441 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1442 (search_symbols_name_matches): Use them, use regexec.
1443 (search_symbols): New variable retval_chain, adjust the use of
1444 old_chain against it. Replace re_comp by regcomp. Use the new struct
1445 search_symbols_data fields, use regexec instead of re_exec.
1447 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1449 Format the code for the next patch.
1450 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1451 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1452 New variables c1 and c2.
1454 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1456 * infrun.c (proceed): Do not single-step into signal delivery
1457 when stepping off a breakpoint location.
1458 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1459 (insert_step_resume_breakpoint_at_caller): Likewise.
1460 (insert_step_resume_breakpoint_at_sal): Likewise.
1461 (insert_longjmp_resume_breakpoint): Likewise.
1463 2011-04-27 Yao Qi <yao@codesourcery.com>
1465 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1467 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1469 * procfs.c (procfs_pass_signals): Fix advance declaration.
1471 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1473 * target.h (struct target_ops): Remove to_notice_signals;
1474 add to_pass_signals.
1475 (target_notice_signals): Remove.
1476 (target_pass_signals): Add prototype.
1477 * target.c (update_current_target): Remove to_notice_signals;
1478 mention to_pass_signals.
1479 (target_pass_signals): New function.
1480 (debug_to_notice_signals): Remove.
1481 (setup_target_debug): Do not install debug_to_notice_signals.
1483 * infrun.c (signal_pass): New global.
1484 (resume): Call target_pass_signals.
1485 (handle_inferior_event): Report all signals while stepping over
1486 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1487 are re-inserted when stepping over a signal handler.
1488 (signal_cache_update): New function.
1489 (signal_stop_update): Call it.
1490 (signal_print_update): Likewise.
1491 (signal_pass_update): Likewise.
1492 (handle_command): Call signal_cache_update and target_pass_signals
1493 instead of target_notice_signals.
1494 (_initialize_infrun): Initialize signal_pass.
1496 * linux-nat.c (pass_mask): New global.
1497 (linux_nat_pass_signals): New function.
1498 (linux_nat_create_inferior): Report all signals initially.
1499 (linux_nat_attach): Likewise.
1500 (linux_nat_resume): Use pass_mask to decide whether to directly
1501 handle an inferior signal.
1502 (linux_nat_wait_1): Likewise.
1503 (linux_nat_add_target): Install to_pass_signals callback.
1505 * nto-procfs.c (notice_signals): Remove.
1506 (procfs_resume): Do not call notice_signals.
1507 (procfs_notice_signals): Remove.
1508 (procfs_pass_signals): New function.
1509 (init_procfs_ops): Install to_pass_signals callback instead of
1510 to_notice_signals callback.
1511 (_initialize_procfs): Report all signals initially.
1513 * procfs.c (procfs_notice_signals): Remove.
1514 (procfs_pass_signals): New function.
1515 (procfs_target): Install to_pass_signals callback instead of
1516 to_notice_signals callback.
1517 (register_gdb_signals): Remove.
1518 (procfs_debug_inferior): Report all signals initially.
1519 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1521 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1522 parameters; use them instead of calling signal_..._state routines.
1523 (remote_notice_signals): Remove.
1524 (remote_start_remote): Report all signals initially.
1525 (remote_resume): Do not call remote_pass_signals.
1526 (_initialize_remote): Install to_pass_signals callback instead of
1527 to_notice_signals callback.
1529 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1531 * breakpoint.c (user_settable_breakpoint): Delete.
1532 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1533 (delete_command): Check user_breakpoint_p instead of looking at
1534 the breakpoint's type.
1535 (disable_command): Ditto.
1536 (enable_command): Ditto.
1537 (delete_trace_command): Use user_breakpoint_p instead of looking
1538 at the breakpoint number directly. When checking if there are
1539 user visible tracepoints, in order to know whether to ask the user
1540 for confirmation, check whether the breakpoint is actually a
1543 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1545 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1548 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1550 MI breakpoint notifications.
1552 * annotate.c (breakpoint_changed): Adjust parameter type.
1553 * breakpoint.c (set_breakpoint_condition): Adjust to change
1554 in breakpoint_modified type.
1555 (breakpoint_set_commands): Likewise.
1556 (do_map_commands_command): Likewise.
1557 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1558 changed after bumping hit count.
1559 (bpstat_stop_status): Likewise.
1560 (print_one_breakpoint_location): Don't wrap in tuple here.
1561 (print_one_breakpoint): Always print individual locations.
1562 For locations, use unnamed tuple.
1563 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1565 (create_catchpoint, create_syscall_event_catchpoint): Call
1566 breakpoint_created obsever.
1567 (mention): Don't call breakpoint_created observer.
1568 (create_breakpoint_sal): Call breakpoint_created observer.
1569 (create_breakpoint, watch_command_1): Likewise.
1570 (create_ada_exception_breakpoint): Likewise.
1571 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1572 (locations_are_equal): New.
1573 (update_breakpoint_locations): If locations were changed, notify.
1574 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1575 Call breakpoint_modified observer.
1577 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1578 (mi_cmd_break_insert): Don't set observers for modify and delete.
1579 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1580 (mi_breakpoint_created, mi_breakpoint_deleted)
1581 (mi_breakpoint_modified): New.
1582 (mi_interpreter_init): Hook the above.
1583 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1584 while -break-* commands are executing.
1585 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1586 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1588 (mi_ui_out_impl): Hook in mi_redirect.
1589 (mi_field_skip): True to the name, skip the field, don't output
1590 a field with an empty value.
1592 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1593 (gdbpy_breakpoint_deleted): Adjust.
1594 * tui/tui-hooks.c (tui_event_create_breakpoint)
1595 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1597 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1599 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1600 (procfs_remove_hw_watchpoint): Likewise.
1602 2011-04-26 Michael Walle <michael@walle.cc>
1604 * remote.c (remote_start_remote): Ack packet after sending the
1607 2011-04-26 Yao Qi <yao@codesourcery.com>
1609 * linux-nat.c: Move common macros to ...
1610 Include linux-ptrace.h.
1611 * common/linux-ptrace.h: ... here. New.
1613 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1616 !objfile_has_partial_symbols. New comment.
1617 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1618 SYM_READ_PSYMBOLS is not present. Extend the comment.
1619 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1621 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * defs.h (ENUM_BITFIELD): Remove.
1625 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1626 Eli Zaretskii <eliz@gnu.org>
1628 * NEWS: Document the new gdbserver --once option.
1630 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1632 * MAINTAINERS: Update my email address.
1634 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1636 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1637 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1638 function call if __STDC_ISO_10646__ macro is defined.
1639 (intermediate_encoding): New prototype.
1640 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1641 to generate compile time error for unsupported gdb_wchar_t size.
1642 (ENDIAN_SUFFIX): New macro.
1643 (intermediate_encoding): New function.
1645 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1647 * ada-lang.c (struct add_partial_datum): Update the comment for
1648 expand_partial_symbol_name.
1649 (ada_add_partial_symbol_completions): Rename to ...
1650 (ada_expand_partial_symbol_name): ... here, change return type, update
1651 function comment, call symbol_completion_match instead of
1652 symbol_completion_add.
1653 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1654 and ada_expand_partial_symbol_name.
1655 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1657 (dw2_map_symbol_names): Remove.
1658 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1659 * psymtab.c (map_symbol_names_psymtab): Remove.
1660 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1661 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1663 (psym_functions): Unlist map_symbol_names_psymtab.
1664 (map_partial_symbol_names): Rename to ...
1665 (expand_partial_symbol_names): ... here, change the FUN type, call
1666 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1667 * psymtab.h (map_partial_symbol_names): Rename to ...
1668 (expand_partial_symbol_names): ... here, change the FUN type.
1669 * symfile.h (struct quick_symbol_functions): Update the description of
1670 expand_symtabs_matching. Remove map_symbol_names.
1671 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1672 (struct add_name_data): Update the comment for
1673 expand_partial_symbol_name.
1674 (add_partial_symbol_name): Rename to ...
1675 (expand_partial_symbol_name): ... here. Replace
1676 completion_list_add_name call by strncmp.
1677 (default_make_symbol_completion_list_break_on): Use now
1678 expand_partial_symbol_names and expand_partial_symbol_name.
1679 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1681 2011-04-20 Tom Tromey <tromey@redhat.com>
1683 * dwarf2read.c (save_gdb_index_command): Replace format
1684 documentation with a pointer to the manual.
1686 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1688 * regcache.c: Include remote.h.
1689 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1690 (regcache_dump): Handle regcache_dump_remote.
1691 (maintenance_print_remote_registers): New function.
1692 (_initialize_regcache): Install "maint print remote-registers"
1694 * remote.c (map_regcache_remote_table): New function, factored out
1696 (init_remote_state): ... here.
1697 (remote_register_number_and_offset): New.
1698 * remote.h (remote_register_number_and_offset): Declare.
1700 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1702 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1703 null_ptid, assume and allow a NULL address space, instead of
1704 asking the target for the ptid's address space.
1705 * infrun.c (ptid_is_pid): Remove assertion.
1707 2011-04-19 Tom Tromey <tromey@redhat.com>
1709 * windows-tdep.c (windows_xfer_shared_library):
1710 * windows-nat.c (get_module_name, windows_make_so):
1711 * v850-tdep.c (v850_handle_pushm):
1712 * utils.c (null_cleanup, gdb_realpath):
1713 * ui-out.c (get_next_header):
1714 * tracepoint.c (clear_traceframe_info):
1715 * symtab.c (lookup_symtab):
1716 * serial.h (struct serial_ops):
1717 * mipsread.c (read_alphacoff_dynamic_symtab):
1718 * infcmd.c (print_return_value):
1719 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1720 * f-exp.y (parse_number):
1721 * exceptions.c (catch_exceptions):
1722 * dummy-frame.c (dummy_frame_this_id):
1723 * defs.h (struct cleanup):
1724 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1725 * arm-tdep.c (arm_push_dummy_call):
1726 * amd64-tdep.h (amd64_collect_xsave):
1727 * amd64-tdep.c (amd64_collect_xsave):
1728 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1729 * README (typing): Remove duplicate words.
1730 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1731 * infrun.c (siginfo_value_read): Fix typo.
1732 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1733 * top.c (source_line_number): Add comma.
1735 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1737 * thread.c (any_live_thread_of_process): Prioritize threads
1738 that are not executing.
1739 * gdbthread.h (any_live_thread_of_process): Update comment
1740 as per above change.
1742 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1744 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1745 (scan_xcoff_symtab): Likewise.
1747 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1749 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1752 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1753 Pedro Alves <pedro@codesourcery.com>
1755 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1756 variables to simplify code and avoid == operator at end of
1757 line as this is against GNU coding standards.
1759 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1761 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1762 lm_name to name_lm to avoid conflict with lm_name function.
1764 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1766 ARI fixes: Use only lowercase function name for static functions.
1767 * nto-tdep.c (LM_ADDR): Rename to...
1768 (lm_addr): New function name.
1769 (nto_relocate_section_addresses): Adapt to change above.
1770 * solib-sunos.c (LM_ADDR): Rename to...
1771 (lm_addr): New function name.
1772 (LM_NEXT): Rename to...
1773 (lm_next): New function name.
1774 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1775 function name changes above.
1776 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1777 (lm_addr_from_link_map): New function name.
1778 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1779 (has_lm_dynamic_from_link_map): New function name.
1780 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1781 (lm_dynamic_from_link_map): New function name.
1782 (LM_ADDR_CHECK): Rename to...
1783 (lm_addr_check): New function name.
1784 (LM_NEXT): Rename to...
1785 (lm_next): New function name.
1786 (LM_PREV): Rename to...
1787 (lm_prev): New function name.
1788 (LM_NAME): Rename to...
1789 (lm_name): New function name.
1790 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1791 (ignore_first_link_map_entry): New function name.
1792 (svr4_keep_data_in_core): Adapt to function name changes above.
1793 (svr4_current_sos): Likewise.
1794 (enable_break): Likewise.
1795 (svr4_relocate_section_addresses): Likewise.
1797 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1800 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1801 sprintf. Simplify code and avoid loosing memory.
1802 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1803 (call0_frame_cache): Remove && operator from end of line.
1805 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1807 Fix libraries displacement if they change whether they were prelinked.
1808 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1809 does not match. Comment why.
1811 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1813 * corelow.c: Include wrapper.h.
1814 (core_open): Call now gdb_target_find_new_threads.
1815 * wrapper.c: Include target.h.
1816 (gdb_target_find_new_threads): New.
1817 * wrapper.h (gdb_target_find_new_threads): New declaration.
1819 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1821 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1822 even if !TARGET_HAS_EXECUTION.
1824 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1827 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1828 bfd_get_synthetic_symtab.
1829 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1830 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1831 parameter parent, remove the call to add_separate_debug_objfile.
1832 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1833 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1834 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1835 parent, new comment for it, call add_separate_debug_objfile for it.
1836 (symbol_file_add_separate): Pass objfile as the parameter parent,
1837 remove the call to add_separate_debug_objfile.
1838 (symbol_file_add_from_bfd): New parameter parent, pass it.
1839 (symbol_file_add): Pass NULL to the new parameter parent.
1840 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1842 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1844 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1847 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 Fix Python access to inlined frames.
1850 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1851 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1853 2011-04-15 Tom Tromey <tromey@redhat.com>
1855 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1857 2011-04-15 Gary Benson <gbenson@redhat.com>
1859 * MAINTAINERS: Add myself to write-after-approval section.
1861 2011-04-14 Mike Frysinger <vapier@gentoo.org>
1863 * remote-sim.c (sim_command_completer): New function.
1864 (_initialize_remote_sim): Set completer to sim_command_completer.
1866 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1868 * breakpoint.c (print_exception_catchpoint): Rename to ...
1869 (print_it_exception_catchpoint): ... this.
1870 (gnu_v3_exception_catchpoint_ops): Update with new name
1871 for print_it_exception_catchpoint.
1873 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1875 * MAINTAINERS: Add myself for write after approval privileges.
1877 2011-04-13 Marek Polacek <mpolacek@redhat.com>
1879 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1881 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1883 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1885 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1887 * breakpoint.c (save_breakpoints): Verify whether
1888 breakpoint_ops.print_recreate is defined before calling it.
1890 2011-04-11 Gary Benson <gbenson@redhat.com>
1892 Fix failure with --enable-maintainer-mode.
1893 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1895 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1898 * symtab.c (search_symbols): Reorder the KIND description in the
1899 function comment. Remove the unused 4th element of types, types2,
1900 types3 and types4. New gdb_assert on KIND.
1901 (symtab_symbol_info): Remove the unused 4th element of classnames.
1902 New gdb_assert on KIND.
1903 * symtab.h (enum search_domain): New warning in the enum comment.
1904 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1907 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1909 Fix crash of gdb save-index on a STABS file.
1910 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1913 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1915 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1916 * dwarf2read.c: Include ctype.h.
1917 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1919 (dwarf2_add_field): Fix new_field->accessibility by calling
1920 dwarf2_default_access_attribute. Restructure setting accessibility
1922 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1923 is_private and is_protected by calling
1924 dwarf2_default_access_attribute.
1926 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1928 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1929 to the initialization.
1931 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1933 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1936 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1938 Remove support for old Cygwin 1.5 versions.
1939 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1940 function on old Cygwin version.
1941 * windows-nat.c: Remove cygwin version check and always define
1942 __USEWIDE for Cygwin compilation.
1944 2011-04-07 Yao Qi <yao@codesourcery.com>
1946 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1948 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1949 (arm_copy_svc): Remove parameters INSN and TO.
1950 (decode_svc_copro): Update caller.
1951 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1952 from function pointer `copy_svc_os'.
1954 2011-04-07 Yao Qi <yao@codesourcery.com>
1956 * arm-tdep.c (cleanup_branch): Set a correct return address in
1957 LR for ARM and Thumb.
1959 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1963 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1964 in the function comment, a new note on values compatibility.
1965 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1966 * symtab.h (SYMBOL_HASH_NEXT): New.
1968 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1970 * ppc-linux-nat.c (check_condition): Add len output parameter.
1971 Set it based on the memory region referenced in the condition
1972 expression. Update all callers.
1974 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 Fix crash regression on systems featuring .gdb_index.
1977 * objfiles.c (free_objfile): Move the
1978 forget_cached_source_info_for_objfile call earlier. Comment it.
1979 Extend the comment for objfile_free_data.
1981 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 Fix regression of displaying the debug format.
1984 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1987 2011-04-04 Tom Tromey <tromey@redhat.com>
1989 * cli/cli-interp.c (struct captured_execute_command_args):
1991 (do_captured_execute_command): Remove.
1992 (safe_execute_command): Use TRY_CATCH.
1993 * cli/cli-script.c (struct wrapped_read_command_file_args):
1995 (wrapped_read_command_file): Remove.
1996 (script_from_file): Use TRY_CATCH.
1997 * exceptions.c (catch_exception): Remove.
1998 * exceptions.h (catch_exception): Remove.
1999 (deprecated_throw_reason): Update comment.
2000 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2001 argument to 'context'.
2002 (mi_execute_command): Use TRY_CATCH.
2003 * remote.c (struct start_remote_args): Remove.
2004 (remote_start_remote): Update; change arguments.
2005 (remote_open_1): Use TRY_CATCH.
2007 2011-04-04 Tom Tromey <tromey@redhat.com>
2009 * tracepoint.c (scope_info): Update.
2010 * symtab.c (decode_line_spec): Update.
2011 * python/python.c (gdbpy_decode_line): Update.
2012 * linespec.h (decode_line_1): Update.
2013 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2014 (decode_compound, find_method, symtab_from_filename)
2015 (decode_variable): Likewise.
2016 * cli/cli-cmds.c (edit_command): Update.
2017 (list_command): Update.
2018 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2020 (create_breakpoint): Update.
2021 (until_break_command): Update.
2022 (addr_string_to_sals): Update.
2023 (decode_line_spec_1): Update.
2025 2011-04-04 Tom Tromey <tromey@redhat.com>
2027 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2028 (do_captured_parse_breakpoint): Remove.
2029 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2030 Use TRY_CATCH directly.
2032 2011-04-04 Tom Tromey <tromey@redhat.com>
2034 * symtab.h (free_symtab): Remove.
2035 (forget_cached_source_info_for_objfile): Declare.
2036 * symmisc.c (free_symtab): Remove.
2037 * source.c (forget_cached_source_info_for_objfile): New function.
2038 (forget_cached_source_info): Use it.
2039 * objfiles.c (free_objfile): Simplify check before calling
2040 clear_current_source_symtab_and_line. Call
2041 forget_cached_source_info_for_objfile.
2043 2011-04-04 Tom Tromey <tromey@redhat.com>
2045 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2046 (new_symtab): Don't set `free_code' on symtab.
2047 (new_linetable): Properly handle size==0.
2048 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2049 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2051 * jv-lang.c (struct jv_per_objfile_data): New.
2052 (jv_per_objfile_free): Free the data.
2053 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2054 (get_java_class_symtab): Set the `dict' field on the
2055 jv_per_objfile_data.
2056 (free_class_block): Remove.
2057 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2060 2011-04-04 Tom Tromey <tromey@redhat.com>
2062 * symfile.c (reread_symbols): Update.
2063 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2065 * objfiles.c (allocate_objfile): Update.
2066 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2068 * cp-namespace.c (lookup_symbol_file): Don't call
2069 lookup_possible_namespace_symbol.
2070 (initialize_namespace_symtab, get_possible_namespace_block)
2071 (free_namespace_block, cp_check_possible_namespace_symbols)
2072 (check_possible_namespace_symbols_loop)
2073 (check_one_possible_namespace_symbol)
2074 (lookup_possible_namespace_symbol): Remove.
2075 (maintenance_cplus_namespace): Replace with notice.
2076 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2078 2011-04-04 Tom Tromey <tromey@redhat.com>
2080 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2081 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2082 * symmisc.c (free_symtab): Don't free debugformat.
2083 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2084 (record_debugformat, record_producer): Document.
2085 * buildsym.c (end_symtab): Don't save debugformat and producer
2087 (end_symtab): Don't free debugformat and producer fields.
2088 (record_debugformat): Don't call xstrdup.
2089 (record_producer): Likewise.
2091 2011-04-04 Tom Tromey <tromey@redhat.com>
2093 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2094 (source_line_charpos, source_charpos_line): Remove.
2096 2011-04-04 Tom Tromey <tromey@redhat.com>
2098 * symtab.h (domain_enum): Split in two...
2099 (enum search_domain): New.
2100 (search_symbols): Update.
2101 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2102 redundant declarations.
2103 (search_symbols): Change 'kind' argument to search_domain.
2105 (print_symbol_info): Likewise.
2106 (symtab_symbol_info): Likewise.
2107 * symfile.h (struct quick_symbol_functions)
2108 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2109 <expand_symtabs_matching>: Likewise.
2110 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2111 (expand_symtabs_matching_via_partial): Update.
2112 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2113 (dw2_expand_symtabs_for_function): Update.
2114 * block.h: Moved anonymous enum...
2115 * defs.h (enum block_enum): ... here. Now named.
2117 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2119 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2120 * version.in: Bump version to 7.3.50.20110403-cvs.
2122 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2124 * NEWS: Create a new section for the next release branch.
2125 Rename the section of the current branch, now that it has
2128 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2130 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2131 for "fpscr" in target description.
2133 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2135 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2136 initialize it. Delay HASH initialization. Strip the part after open
2137 parenthesis for languages with qualifiers. Call do_cleanups.
2139 2011-04-01 Tom Tromey <tromey@redhat.com>
2141 * utils.c (report_command_stats): Don't print `-' for negative
2144 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2146 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2147 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2150 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2152 * breakpoint.h (bpdisp_text): Add declaration.
2153 * breakpoint.c (bpdisp_text): Make non-static.
2154 * ada-lang.c: #include "mi/mi-common.h".
2155 (print_it_exception): Rewrite to improve GDB/MI output.
2157 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2159 * arm-tdep.h (struct address_space): Add forward declaration.
2161 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2163 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2164 * arm-tdep.c (arm_override_mode): New global.
2165 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2166 execution mode heuristics.
2167 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2168 second single-step breakpoint if needed, using
2169 arm_insert_single_step_breakpoint.
2170 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2171 ARM execution mode, do not call thumb_get_next_pc_raw.
2172 (arm_get_next_pc): Encode execution mode in return value. Call
2173 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2174 (arm_insert_single_step_breakpoint): New function.
2175 (arm_software_single_step): Call it.
2176 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2177 argument to return execution mode of sigreturn target.
2178 (arm_linux_syscall_next_pc): Use it.
2179 (arm_linux_copy_svc): Update call.
2180 (arm_linux_software_single_step): Call
2181 arm_insert_single_step_breakpoint.
2183 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2188 2011-03-31 Tom Tromey <tromey@redhat.com>
2190 * varobj.c (update_dynamic_varobj_children): Properly handle
2191 errors from iterator.
2193 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2196 struct linkage name twice.
2198 2011-03-31 Tom Tromey <tromey@redhat.com>
2200 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2201 missing ">" to message.
2203 2011-03-31 Tom Tromey <tromey@redhat.com>
2205 * varobj.c (instantiate_pretty_printer): Remove duplicate
2208 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2210 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2211 if neither saved value nor register available (e.g. signal frame).
2213 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2215 * macroexp.c (expand): Avoid uninitialized variable
2218 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2220 * breakpoint.c (break_range_command): Fix typo in comment.
2222 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2223 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2225 Implement support for PowerPC BookE ranged breakpoints.
2226 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2227 * breakpoint.h (struct bp_target_info) <length>: New member
2229 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2230 instead of struct breakpoint as argument, and also add ASPACE
2231 and BP_ADDR arguments. Update all callers.
2232 (struct breakpoint_ops) <print_one_detail>: New method.
2233 (struct breakpoint) <addr_string_range_end>: New member variable.
2234 * breakpoint.c (breakpoint_location_address_match): Add function
2236 (insert_bp_location): Set bl->target_info.length.
2237 (breakpoint_here_p): Call breakpoint_location_address_match.
2238 (moribund_breakpoint_here_p): Likewise.
2239 (regular_breakpoint_inserted_here_p): Likewise.
2240 (breakpoint_thread_match): Likewise.
2241 (bpstat_stop_status): Likewise.
2242 (bpstat_check_location): Move call to
2243 breakpoint_ops.breakpoint_hit to the top.
2244 (print_one_breakpoint_location): Call
2245 breakpoint_ops.print_one_detail if available.
2246 (breakpoint_address_match_range): New function.
2247 (breakpoint_location_address_match): Likewise.
2248 (breakpoint_locations_match): Compare the length field of the
2250 (hw_breakpoint_used_count): Count resources used by all locations
2251 in a breakpoint, and use breakpoint_ops.resources_needed if
2253 (breakpoint_hit_ranged_breakpoint): New function.
2254 (resources_needed_ranged_breakpoint): Likewise.
2255 (print_it_ranged_breakpoint): Likewise.
2256 (print_one_ranged_breakpoint): Likewise.
2257 (print_one_detail_ranged_breakpoint): Likewise.
2258 (print_mention_ranged_breakpoint): Likewise.
2259 (print_recreate_ranged_breakpoint): Likewise.
2260 (ranged_breakpoint_ops): New structure.
2261 (find_breakpoint_range_end): New function.
2262 (break_range_command): Likewise.
2263 (delete_breakpoint): Free addr_string_range_end.
2264 (update_breakpoint_locations): Add SALS_END argument. Update
2265 all callers. Calculate breakpoint length if a non-zero SALS_END
2266 is given. Call breakpoint_locations_match instead of
2267 breakpoint_address_match.
2268 (reset_breakpoint): Find SaL of the end of the range if B is a
2270 (_initialize_breakpoint): Register break-range command.
2271 * defs.h (print_core_address): Add function prototype.
2272 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2274 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2275 (ppc_linux_remove_hw_breakpoint): Likewise.
2276 (_initialize_ppc_linux_nat): Initialize
2277 to_ranged_break_num_registers.
2278 * target.c (update_current_target): Add comment about
2279 to_ranged_break_num_registers.
2280 (target_ranged_break_num_registers): New function.
2281 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2283 (target_ranged_break_num_registers): Add function prototype.
2284 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2285 * utils.c (print_core_address): ... here.
2287 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2289 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2290 variable compiler warning.
2292 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2294 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2296 (re_set_breakpoint): ... to here ...
2297 (addr_string_to_sals): ... and here.
2299 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2301 * Makefile.in (SFILES): Add missing C sources.
2302 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2303 Add missing headers.
2305 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2307 * .gitignore: New file.
2309 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2311 * NEWS: Mention new cfi device simulation.
2313 2011-03-29 Tom Tromey <tromey@redhat.com>
2315 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2316 otherwise anonymous types.
2317 (dwarf2_name): Likewise.
2318 * valops.c (value_struct_elt_for_reference): Refine artificial
2319 type logic. Call error if j==-1.
2321 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2323 Fix false GCC warning.
2324 * infcall.c (find_function_addr): Initialize funaddr.
2326 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2328 Fix mingw compilation with --enable-targets=all.
2329 * remote-mips.c (gdb_usleep.h): Include header.
2330 (mips_enter_debug): Use gdb_usleep instead of sleep.
2332 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2334 Support resolution of STT_GNU_IFUNC via breakpoints.
2335 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2336 bp_gnu_ifunc_resolver_return.
2337 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2338 the loop. Support bp_gnu_ifunc_resolver and
2339 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2340 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2342 (bptype_string, print_one_breakpoint_location): Support
2343 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2344 (user_settable_breakpoint): Return true also for
2345 bp_gnu_ifunc_resolver.
2346 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2347 bp_gnu_ifunc_resolver_return.
2348 (set_breakpoint_location_function): New parameter explicit_loc,
2349 describe it. Call find_pc_partial_function_gnu_ifunc with new
2350 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2351 EXPLICIT_LOC is not set.
2352 (set_raw_breakpoint): Set EXPLICIT_LOC for
2353 set_breakpoint_location_function.
2354 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2355 set_breakpoint_location_function.
2356 (mention): Support bp_gnu_ifunc_resolver and
2357 bp_gnu_ifunc_resolver_return.
2358 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2359 set_breakpoint_location_function.
2360 (update_breakpoint_locations): Remove static.
2361 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2362 bp_gnu_ifunc_resolver_return.
2363 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2364 bp_gnu_ifunc_resolver_return.
2365 (update_breakpoint_locations): New declaration.
2366 * elfread.c: Include gdbthread.h and regcache.h.
2367 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2369 (elf_gnu_ifunc_fns): Install them.
2370 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2371 (stub_gnu_ifunc_resolver_return_stop): New functions.
2372 (stub_gnu_ifunc_fns): Install them.
2373 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2374 and gnu_ifunc_resolver_return_stop.
2375 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2377 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 STT_GNU_IFUNC reader implementation.
2380 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2381 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2382 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2383 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2384 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2385 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2386 (elf_gnu_ifunc_resolve_addr): New.
2387 (elf_symfile_read): Call elf_rel_plt_read.
2388 (elf_gnu_ifunc_fns): New.
2389 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2390 Install elf_gnu_ifunc_fns.
2391 * infcall.c (find_function_return_type): New function.
2392 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2393 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2394 (stub_gnu_ifunc_resolve_name): New functions.
2395 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2396 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2397 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2399 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2401 Code cleanup for later STT_GNU_IFUNC support.
2402 * infcall.c (find_function_addr): Remove variable code, use explicit
2403 dereferences for it. Move VALUE_TYPE initialization later.
2405 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2407 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2408 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2409 (clear_pc_function_cache): Clear it.
2410 (find_pc_partial_function): Rename to ...
2411 (find_pc_partial_function_gnu_ifunc): ... this function. New
2412 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2413 (find_pc_partial_function): New wrapper for this function.
2414 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2416 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2418 GDB internal type support for STT_GNU_IFUNC.
2419 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2420 (elf_symtab_read): Set mst_text_gnu_ifunc for
2421 BSF_GNU_INDIRECT_FUNCTION.
2422 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2423 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2424 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2425 nodebug_got_plt_symbol.
2426 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2427 (TYPE_GNU_IFUNC): New.
2428 (struct main_type): New field flag_gnu_ifunc.
2429 (struct builtin_type): New field builtin_func_func.
2430 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2431 nodebug_got_plt_symbol.
2432 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2433 (in_gnu_ifunc_stub): New.
2434 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2436 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2437 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2438 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2440 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2441 * symtab.c (search_symbols): Likewise.
2442 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2443 and mst_slot_got_plt.
2444 (in_gnu_ifunc_stub): New declaration.
2446 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2448 Support a ring of related breakpoints.
2449 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2450 other functions, add gdb_assert.
2451 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2452 watchpoint_del_at_next_stop.
2453 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2454 (bpstat_stop_status): Handle ring in related_breakpoint.
2455 (set_raw_breakpoint_without_location): Initialize ring in
2457 (delete_breakpoint): Handle ring in related_breakpoint, use
2458 watchpoint_del_at_next_stop.
2459 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2461 2011-03-28 Tom Tromey <tromey@redhat.com>
2464 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2465 with `language_minimal'.
2467 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2469 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2470 instead of checking for STT_ARM_TFUNC symbol type.
2472 2011-03-25 Tom Tromey <tromey@redhat.com>
2474 * linespec.c (symbol_found): Restore line-based result for
2475 non-LOC_LABEL symbols.
2477 2011-03-25 Kai Tietz <ktietz@redhat.com>
2479 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2480 instead of strcmp for comparison.
2481 (tui_source_is_displayed): Likewise.
2482 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2484 2011-03-24 Mark Wielaard <mjw@redhat.com>
2486 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2488 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2489 (find_partial_die_in_comp_unit): Likewise in comment.
2490 (read_attribute_value): Likewise.
2491 (lookup_die_type): Likewise.
2492 (dwarf_form_name): Likewise.
2493 (dump_die_shallow): Likewise.
2494 (follow_die_ref_or_sig): Likewise.
2496 2011-03-24 Tom Tromey <tromey@redhat.com>
2498 PR breakpoints/11816:
2499 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2500 (decode_compound): Update.
2501 (find_function_symbol): New function.
2502 (decode_dollar): Update.
2503 (decode_label): Add 'function_symbol' parameter. Handle
2504 function-relative labels.
2505 (decode_variable): Update.
2506 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2507 not its line. Set `special_display' and canonical name for
2510 2011-03-24 Tom Tromey <tromey@redhat.com>
2512 * linespec.h (struct linespec_result) <special_display>: New
2514 * breakpoint.h (struct breakpoint) <display_canonical>: New
2516 * breakpoint.c (print_breakpoint_location): Respect
2518 (create_breakpoint_sal): Add 'display_canonical' parameter.
2519 (create_breakpoints_sal): Update.
2520 (create_breakpoint): Update.
2522 2011-03-24 Tom Tromey <tromey@redhat.com>
2524 * symtab.c (decode_line_spec): Update.
2525 * linespec.c (build_canonical_line_spec): Change type of
2527 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2528 (find_method, decode_all_digits, decode_dollar, decode_label)
2529 (symbol_found): Likewise.
2530 (init_linespec_result): New function.
2531 * breakpoint.c (struct captured_parse_breakpoint_args)
2532 <canonical_p>: New field, replaces addr_string_p.
2533 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2535 (parse_breakpoint_sals): Likewise.
2536 (do_captured_parse_breakpoint): Update.
2537 (create_breakpoint): Use struct linespec_result.
2538 (until_break_command): Update.
2539 (breakpoint_re_set_one): Update.
2540 (decode_line_spec_1): Update.
2541 * linespec.h (struct linespec_result): New.
2542 (init_linespec_result): Declare.
2544 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2546 * regcache.c (regcache_raw_read): If the target didn't supply a
2547 given raw register, mark it as unavailable.
2549 2011-03-23 Kai Tietz <ktietz@redhat.com>
2551 * breakpoint.c (clear_command): Use filename_cmp
2552 instead of strcmp for comparison.
2553 * buildsym.c (watch_main_source_file_lossage): Likewise.
2554 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2555 checking just for slash.
2556 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2557 strrchr and filename_cmp instead of strcmp for filenames.
2558 (add_old_header_file): Use filename_cmp
2559 instead of strcmp for comparison.
2560 * exec.c (exec_set_section_address): Likewise.
2561 * macrotab.c (macro_lookup_inclusion): Likewise.
2562 (macro_lookup_inclusion): Likewise.
2563 * elfread.c (_initialize_elfread): Likewise.
2564 (elfstab_offset_sections): Likewise.
2565 (elfstab_offset_sections): Use lbasename instead of
2567 * mdebugread.c (parse_partial_symbols): Likewise.
2568 (arse_partial_symbols): Use filename_(n)cmp instead of
2569 str(n)cmp for comparison.
2570 * minsyms.c (lookup_minimal_symbol): Likewise.
2571 * psymtab.c (read_psymtabs_with_filename): Likewise.
2572 * solib.c (solib_read_symbols): Likewise.
2573 (reload_shared_libraries_1): Likewise.
2574 * symmisc.c (maintenance_print_symbols): Likewise.
2575 * symfile.c (separate_debug_file_exists): Likewise.
2576 (reread_symbols): Likewise.
2577 (find_separate_debug_file_by_debuglink): Likewise.
2578 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2579 * source.c (add_path): Likewise.
2580 * symtab.c (filename_seen): Likewise.
2581 (file_matches): Likewise.
2582 (print_symbol_info): Likewise.
2583 (maybe_add_partial_symtab_filename): Likewise.
2584 (make_source_files_completion_list): Likewise.
2585 * xml-syscall.c (init_sysinfo): Likewise.
2586 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2587 IS_DIR_SEPARATOR for checking for trailing path separator.
2589 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2592 label abort_expression.
2593 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2594 DWARF_VALUE_OPTIMIZED_OUT.
2596 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2599 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2600 to linkage_name. Invert its value. Update the function comment.
2601 (c_type_print_varspec_suffix): Invert it at the caller.
2602 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2604 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2606 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2607 errors when reading the `stop_pc'.
2608 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2611 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2613 * NEWS: Document gdb.Write stream keyword.
2615 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2619 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2620 (dwarf2_add_field): Fix new_field->accessibility for
2621 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2623 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2627 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2628 other error classes. Do not print stack trace.
2630 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2632 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2633 (dwarf2_add_field): Fix new_field->accessibility for
2634 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2636 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2638 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2639 encountering a load via a non-SP register.
2641 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2643 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2644 field in returned unwinder.
2646 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2650 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2652 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2655 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2657 * frame.c (frame_unwind_register): Throw an error if unwinding the
2659 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2660 an unwind stop reason.
2661 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2662 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2663 UNWIND_UNAVAILABLE>: New.
2664 * inline-frame.c (inline_frame_unwind): Install
2665 default_frame_unwind_stop_reason.
2666 * frame-unwind.c: Include "exceptions.h".
2667 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2668 (default_frame_unwind_stop_reason): New.
2669 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2670 (default_frame_unwind_stop_reason): Declare.
2671 (struct frame_unwind) <stop_reason>: New function pointer.
2673 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2674 * dwarf2-frame.c: Include exceptions.h.
2675 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2676 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2677 computing the CFA. If such an error was thrown, set
2678 unavailable_retaddr.
2679 (dwarf2_frame_unwind_stop_reason): New.
2680 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2682 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2683 (dwarf2_signal_frame_unwind): Ditto.
2685 * amd64-tdep.c: Include "exceptions.h".
2686 (struct amd64_frame_cache): New field "base_p".
2687 (amd64_init_frame_cache): Clear it.
2688 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2689 Avoid reading registers with functions that throw if the register
2690 is not necessary to compute the frame base.
2691 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2692 swallowing NOT_AVAILABLE_ERROR.
2693 (amd64_frame_unwind_stop_reason): New.
2694 (amd64_frame_this_id): Don't build a frame id if the frame base
2696 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2697 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2698 base_p if the frame base was computable.
2699 (amd64_sigtramp_frame_unwind_stop_reason): New.
2700 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2701 frame base was unavailable.
2702 (amd64_sigtramp_frame_unwind): Install
2703 amd64_sigtramp_frame_unwind_stop_reason.
2704 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2705 base_p if the frame base was computable.
2706 (amd64_epilogue_frame_unwind_stop_reason): New.
2707 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2708 frame base was unavailable.
2709 (amd64_epilogue_frame_unwind): Install
2710 amd64_epilogue_frame_unwind_stop_reason.
2711 * i386-tdep.c: Include "exceptions.h".
2712 (struct i386_frame_cache): New field "base_p".
2713 (i386_init_frame_cache): Clear it.
2714 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2715 Avoid reading registers with functions that throw if the register
2716 is not necessary to compute the frame base.
2717 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2718 swallowing NOT_AVAILABLE_ERROR.
2719 (i386_frame_unwind_stop_reason): New.
2720 (i386_frame_this_id): Don't build a frame id if the frame base was
2722 (i386_frame_prev_register): Handle unavailable SP.
2723 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2724 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2725 base_p if the frame base was computable.
2726 (i386_epilogue_frame_unwind_stop_reason): New.
2727 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2728 base was unavailable.
2729 (i386_epilogue_frame_unwind): Install
2730 i386_epilogue_frame_unwind_stop_reason.
2731 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2732 base_p if the frame base was computable.
2733 (i386_sigtramp_frame_unwind_stop_reason): New.
2734 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2735 base was unavailable.
2736 (i386_sigtramp_frame_unwind): Install
2737 i386_sigtramp_frame_unwind_stop_reason.
2738 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2739 type's size, not the register's.
2740 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2742 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2743 default_frame_unwind_stop_reason.
2744 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2745 (alpha_heuristic_frame_unwind): Ditto.
2746 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2747 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2748 * avr-tdep.c (avr_frame_unwind): Ditto.
2749 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2751 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2752 * frv-tdep.c (frv_frame_unwind): Ditto.
2753 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2754 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2755 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2756 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2757 (hppa_stub_frame_unwind): Ditto.
2758 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2759 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2760 (ia64_libunwind_frame_unwind)
2761 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2762 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2763 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2764 * m32c-tdep.c (m32c_unwind): Ditto.
2765 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2766 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2767 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2768 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2769 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2770 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2771 * mep-tdep.c (mep_frame_unwind): Ditto.
2772 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2773 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2774 (mips_stub_frame_unwind): Ditto.
2775 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2776 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2777 * mt-tdep.c (mt_frame_unwind): Ditto.
2778 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2779 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2780 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2781 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2782 (s390_sigtramp_frame_unwind): Ditto.
2783 * score-tdep.c (score_prologue_unwind): Ditto.
2784 * sh-tdep.c (sh_frame_unwind): Ditto.
2785 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2786 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2787 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2788 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2789 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2790 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2791 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2792 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2793 (sparc64obsd_trapframe_unwind): Ditto.
2794 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2795 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2796 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2797 * v850-tdep.c (v850_frame_unwind): Ditto.
2798 * vax-tdep.c (vax_frame_unwind): Ditto.
2799 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2800 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2801 * xtensa-tdep.c (xtensa_unwind): Ditto.
2803 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2805 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2806 there's always a frame. Use get_frame_pc_if_available instead of
2807 get_frame_pc, and if there's no PC available, don't look up a
2810 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2812 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2815 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2817 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2820 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2822 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2823 * frame.c (frame_unwind_caller_pc_if_available): New.
2824 * stack.c (frame_info): Handle unavailable PC.
2826 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2828 * frame.c (frame_unwind_pc): Rename to ...
2829 (frame_unwind_pc_if_available): ... this. New `pc' output
2830 parameter. Change return type to int. Gracefully handle
2831 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2832 happened, or 1 otherwise.
2833 (frame_unwind_pc): Reimplement on top of
2834 frame_unwind_pc_if_available.
2835 (get_frame_func): Rename to ...
2836 (get_frame_func_if_available): New `pc' output parameter. Change
2837 return type to int. Gracefully handle the PC not being available.
2838 (get_frame_func): Reimplement on top of
2839 get_frame_func_if_available.
2840 (select_frame): Handle the PC being unavailable.
2841 (get_prev_frame): Handle the PC being unavailable.
2842 (get_frame_pc_if_available): New.
2843 (get_frame_address_in_block_if_available): New.
2844 (find_frame_sal): Handle the frame PC not being available.
2845 * frame.h (get_frame_pc_if_available): Declare.
2846 (get_frame_address_in_block_if_available): Declare.
2847 (get_frame_func_if_available): Declare.
2848 * stack.c (print_frame_info): Handle the PC being unavailable.
2849 (find_frame_funname): Ditto.
2850 (print_frame): Handle the PC being unavailable.
2851 (get_frame_language): Ditto.
2852 * blockframe.c (get_frame_block): Ditto.
2853 * macroscope.c (default_macro_scope): Ditto.
2854 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2856 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2858 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2859 NOT_AVAILABLE_ERROR when evaluating the location expression.
2861 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2863 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2864 returning that the register piece is unavailable/optimized out.
2865 (write_pieced_value): Handle get_frame_register_bytes returning
2866 that the register piece is unavailable/optimized out when doing a
2867 read-modify write of a bitfield.
2868 * findvar.c (value_from_register): Handle get_frame_register_bytes
2869 returning that the register piece is unavailable/optimized out.
2870 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2871 and `unavailablep'. Throw error on bad debug info. Use
2872 frame_register instead of frame_register_read, to fill in the new
2874 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2876 * valops.c: (value_assign): Adjust, and handle
2877 get_frame_register_bytes failing.
2878 * spu-tdep.c: Include exceptions.h.
2879 (spu_software_single_step): Adjust, and handle
2880 get_frame_register_bytes failing.
2881 (spu_get_longjmp_target): Ditto.
2882 * gdbarch.sh (register_to_value): Change to return int. New
2883 parameters `optimizedp' and `unavailablep'.
2884 * gdbarch.h, gdbarch.c: Regenerate.
2885 * i386-tdep.c (i386_register_to_value): Adjust to new
2886 gdbarch_register_to_value interface.
2887 * i387-tdep.c (i387_register_to_value): Ditto.
2888 * i387-tdep.h (i387_register_to_value): Ditto.
2889 * alpha-tdep.c (alpha_register_to_value): Ditto.
2890 * ia64-tdep.c (ia64_register_to_value): Ditto.
2891 * m68k-tdep.c (m68k_register_to_value): Ditto.
2892 * mips-tdep.c (mips_register_to_value): Ditto.
2893 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2895 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2897 * findvar.c (value_of_register): Mark the value as unavailable, if
2898 the register is unavailable.
2899 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2900 (frame_register): New `unavailablep' parameter.
2901 (frame_register_read): Update comment.
2902 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2903 Set it if the register is unavailable. If the register is
2904 unavailable, clear the output buffer.
2905 (frame_register): New `unavailablep' parameter. Pass it down.
2906 (frame_unwind_register): Adjust.
2907 (put_frame_register): Adjust.
2908 (frame_register_read): Adjust. Also return false if the register
2910 (frame_register_unwind_location): Adjust.
2911 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2912 is unavailable, mark the value accordingly.
2913 * stack.c (frame_info): Handle unavailable registers.
2915 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2917 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2918 simplify, using regcache_cooked_read.
2920 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2922 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2923 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2924 (regcache_raw_read_unsigned, regcache_raw_read_part)
2925 (regcache_cooked_read, regcache_cooked_read_signed)
2926 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2927 (regcache_cooked_read_ftype): Change return to enum
2929 * regcache.c: Include exceptions.h
2930 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2931 (do_cooked_read): Change return to enum register_status. Always
2932 forward to regcache_cooked_read.
2933 (regcache_raw_read): Change return to enum register_status. If
2934 the register is not REG_VALID, memset the buffer. Return the
2936 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2937 return the register's status.
2938 (regcache_raw_read_unsigned): Ditto.
2939 (regcache_cooked_read): Change return to enum register_status.
2940 Assert that with read-only regcaches, the register's status must
2941 be known. If the regcache is read-only, and the register is not
2942 REG_VALID, memset the buffer. Return the register's status.
2943 (regcache_cooked_read_signed): Change return to enum
2944 register_status. Handle non-REG_VALID registers and return the
2946 (regcache_cooked_read_unsigned): Change return to enum
2947 register_status. Handle non-REG_VALID registers and return the
2949 (regcache_xfer_part, regcache_raw_read_part)
2950 (regcache_cooked_read_part): Change return to enum
2951 register_status. Return the register's status.
2952 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2954 (regcache_dump): Handle unavailable cooked registers.
2955 * frame.c (do_frame_register_read): Adjust interface to match
2956 regcache_cooked_read_ftype.
2957 * gdbarch.sh (pseudo_register_read): Change return to enum
2959 * gdbarch.h, gdbarch.c: Regenerate.
2961 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2963 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2964 register_status. If reading a raw register indicates the raw
2965 register is not valid, return the raw register's status,
2966 otherwise, return REG_VALID.
2967 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2968 register_status. Handle non-REG_VALID raw registers and return
2969 the register's status.
2970 * arm-tdep.c (arm_neon_quad_read)
2971 (arm_pseudo_read): Change return to enum register_status. Handle
2972 non-REG_VALID raw registers and return the register's status.
2973 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2974 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2975 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2976 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2977 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2979 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2980 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2981 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2982 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2983 (m32c_pseudo_register_read): Change return to enum
2984 register_status. Adjust.
2985 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2986 enum register_status. Return the register's status.
2987 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2988 register_status. Return the register's status.
2989 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2990 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2991 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2992 * rs6000-tdep.c (move_ev_register_func): New typedef.
2993 (e500_move_ev_register): Use it. Change return to enum
2994 register_status. Return the register's status.
2995 (do_regcache_raw_read): New function.
2996 (do_regcache_raw_write): New function.
2997 (e500_pseudo_register_read): Change return to enum
2998 register_status. Return the register's status. Use
2999 do_regcache_raw_read.
3000 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3001 (dfp_pseudo_register_read): Change return to enum register_status.
3002 Return the register's status.
3003 (vsx_pseudo_register_read): Ditto.
3004 (efpr_pseudo_register_read): Ditto.
3005 (rs6000_pseudo_register_read): Ditto.
3006 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3007 register_status. Return the register's status.
3008 * sh64-tdep.c (pseudo_register_read_portions): New function.
3009 (sh64_pseudo_register_read): Change return to enum
3010 register_status. Use pseudo_register_read_portions. Return the
3012 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3013 register_status. Return the register's status.
3014 * sh-tdep.c (pseudo_register_read_portions): New function.
3015 (sh_pseudo_register_read): Change return to enum register_status.
3016 Use pseudo_register_read_portions. Return the register's status.
3017 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3018 enum register_status. Return the register's status.
3019 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3020 * spu-tdep.c (spu_pseudo_register_read_spu)
3021 (spu_pseudo_register_read): Ditto.
3022 * xtensa-tdep.c (xtensa_register_read_masked)
3023 (xtensa_pseudo_register_read): Ditto.
3024 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3026 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3028 * python/py-value.c (valpy_getitem): Fix formatting of error function
3031 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3033 ARI fixes: Add missing internationalization markups throughout
3035 * darwin-nat-info.c: Ditto.
3038 * mi/mi-main.c: Ditto.
3040 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3042 ARI fixes: Add missing internationalization markups throughout
3045 * cp-name-parser.y: Ditto.
3048 * objc-exp.y: Ditto.
3051 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3053 ARI fixes: Messages should have no trailing new lines.
3054 * darwin-nat.c (mach_check_error): Remove trailing new line from
3055 warning function call message.
3056 * record.c (bfdcore_read): Idem for error call.
3058 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3060 * common/signals.c (target_signal_from_host): Add _ markup to error
3061 function call message.
3062 (target_signal_to_host): Add _ markup and remove trailing new line
3063 from warning call message.
3064 (target_signal_from_command): Add _ markup to error function call
3067 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3071 * python/python.c (gdbpy_write): Accept a stream argument and
3072 operate to the appropriate stream.
3073 (gdbpy_flush): Likewise.
3074 (_initialize_python): Add stream constants.
3075 (finish_python_initialization): Add GdbOutputErrorFile class.
3077 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3079 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3081 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3083 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3084 to store_signed_integer. Add debug message when relocating CALL
3085 instructions. Fix formatting of debug message.
3086 * i386-tdep.c (i386_relocate_instruction): Ditto.
3088 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3090 * target.h (struct target_ops): Remove to_lookup_symbol field.
3091 (target_lookup_symbol): Delete macro.
3092 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3093 (update_current_target, setup_target_debug): Remove handling
3094 of to_lookup_symbol target_ops field.
3095 * ada-tasks.c (get_known_tasks_addr): Remove use of
3096 target_lookup_symbol.
3097 * coffread.c (coff_symtab_read): Likewise.
3098 * dbxread.c (read_dbx_symtab): Ditto.
3100 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3103 * configure.ac: Add getthrds declaration check.
3104 * configure, config.in: Regenerate.
3105 * aix-thread.c (getthrds): Declare only if not already declared
3106 in procinfo.h. More declaration out of get_signaled_thread to
3109 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3111 * python/py-symtab.c: Populate symtab_object_methods,
3113 (stpy_is_valid): New function.
3114 (salpy_is_valid): Ditto.
3115 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3116 (sympy_is_valid): New function.
3117 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3118 (objfpy_is_valid): New function.
3119 * python/py-inferior.c: Populate inferior_object_methods.
3120 (infpy_is_valid): New function.
3121 * python/py-infthread.c: Populate thread_object_methods.
3122 (thpy_is_valid): New function.
3123 * python/py-block.c: Declare block_object_methods. Populate. Declare
3124 block_iterator_object_methods. Populate.
3125 (blpy_is_valid): New function.
3126 (blpy_iter_is_valid): Ditto.
3128 2011-03-16 Keith Seitz <keiths@redhat.com>
3130 * linespec.c (find_methods): Canonicalize NAME before looking
3132 (name_end): New function.
3133 (keep_name_info): New function.
3134 (decode_line_1): Use keep_name_info.
3135 (decode_compound): Likewise.
3136 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3137 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3140 * linespec.c (locate_first_half): Keep overload information, too.
3141 (decode_compound): Use a string to represent break characters
3143 If P points to a break character, do not increment it.
3144 For C++ and Java, keep overload information and relevant keywords.
3145 If we cannot find a symbol, search the minimal symbols.
3148 * linespec.c (decode_compound): Rename SAVED_ARG to
3150 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3152 Pass a valid block to lookup_symbol.
3153 (lookup_prefix_sym): Likewise.
3154 (find_method): Construct search name based on SYM_CLASS instead
3156 * psymtab.c (lookup_partial_symbol): Add language parameter.
3157 (lookup_symbol_aux_psymtabs): Likewise.
3158 Don't assume that the psymtab we found was the right one. Search
3159 for the desired symbol in the symtab to be certain.
3160 (psymtab_search_name): New function.
3161 (lookup_partial_symbol): Use psymtab_search_name.
3162 Add language parameter.
3163 (read_symtabs_for_function): Add language parameter and pass to
3164 lookup_partial_symbol.
3165 (find_symbol_file_from_partial): Likewise.
3167 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3170 * dwarf2read.c (noop_record_line): New function.
3171 (dwarf_decode_lines): Ignore line tables for GCd functions.
3173 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3175 Fix ARI warnings about new lines at the end of messages, which
3176 are unneeded as there is a new line added at the end of the message
3178 * darwin-nat.c (darwin_stop_inferior): Ditto.
3179 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3180 * dfp.c (decimal_to_number): Ditto.
3181 * exec.c (print_section_info): Ditto.
3182 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3183 * osdata.c (get_osdata): Ditto.
3184 * record.c (bfdcore_write): Ditto.
3185 * remote-mips.c (mips_readchar): Ditto.
3186 * remote.c (read_ptid): Ditto.
3187 * ser-mingw.c (ser_windows_raw): Ditto.
3188 * tracepoint.c (add_local_symbols): Ditto.
3189 * windows-nat.c (fake_create_process): Ditto.
3191 2011-03-16 Tom Tromey <tromey@redhat.com>
3193 * tracepoint.c (stop_tracing): Don't declare.
3194 * event-top.c (after_char_processing_hook): Add `(void)'.
3196 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3198 * NEWS: Add Parameter sub-classing description.
3200 2011-03-16 Kai Tietz <ktietz@redhat.com>
3202 * MAINTAINERS: Update my e-mail address.
3204 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3206 * MAINTAINERS: Add myself for write after approval privileges.
3208 2011-03-15 Michael Snyder <msnyder@vmware.com>
3210 * frame.c (find_frame_sal): Assert sym is not null.
3212 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3214 * objc-lang.c (selectors_info): Check strchr for null result.
3216 * stabsread.c (define_symbol): Guard against bad stabstring input.
3218 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3220 Remove trailing spaces and tabulations from pascal language
3225 p-valprint.c: Ditto.
3227 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3229 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3230 than LOW. Comment it.
3231 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3232 HIGHPC not strictly higher than LOWPC.
3234 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3236 Fix formatting of function declarations returning a pointer in
3238 * varobj.c (varobj_add_child): Ditto.
3239 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3240 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3242 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3245 for the "generic" vector ABI used with GCC 4.3 and later.
3246 (ppc64_sysv_abi_return_value): Likewise.
3248 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3250 * infcall.c (call_function_by_hand): Function return value is
3251 always a non_lval, even when using struct_return.
3253 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3255 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3256 (map_display_numbers): New.
3257 (do_delete_display): New.
3258 (undisplay_command): Use map_display_numbers.
3259 (do_enable_disable_display): New.
3260 (enable_disable_display_command): New function.
3261 (enable_display): Delete.
3262 (enable_display_command): New.
3263 (disable_display_command): Reimplement.
3264 (_initialize_printcmd): Adjust "enable display" command to use
3265 `enable_display_command' as callback.
3267 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3269 * NEWS: Add Python breakpoint 'stop' operation.
3271 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3273 * NEWS: Delete duplicate entry. Fix typo.
3275 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3277 Fix ARI warning about function names in first column.
3278 Put prototype declaration on same line as return type.
3279 * objc-exp.y: Ditto.
3281 * python/py-stopevent.h: Ditto.
3282 For long function names, split parameters to
3283 allow function name on same line as return type.
3284 * solib-pa64.c: Ditto.
3287 For long function declaration, use single line.
3288 * hppa-tdep.h: Ditto.
3289 * inferior.h: Ditto.
3291 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3293 * python/python.h: Declare gdbpy_should_stop and
3294 gdbpy_breakpoint_has_py_cond.
3295 * python/python.c: Add python.h to includes. Remove python.h from
3296 HAVE_PYTHON definition
3297 (gdbpy_should_stop): New dummy function.
3298 (gdbpy_breakpoint_has_py_cond): New dummy function.
3299 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3300 sub-classing capabilities.
3301 (gdbpy_should_stop): New function.
3302 (gdbpy_breakpoint_has_py_cond): New function.
3303 (local_setattro): New function.
3304 * breakpoint.c (condition_command): Add check for Python 'stop'
3306 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3307 operation function as part of stop/continue tests.
3309 2011-03-14 Tom Tromey <tromey@redhat.com>
3312 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3313 (needs_frame_dwarf_call): Likewise.
3315 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3317 Fix ARI warning about functions without parameters that do not
3319 * breakpoint.c (all_tracepoints): Replace () by (void).
3320 * f-exp.y (match_string_literal): Ditto.
3322 * m2-exp.y (yylex): Ditto.
3323 * mep-tdep.c (current_me_module): Ditto.
3324 (current_options): Ditto.
3325 (current_cop_data_bus_width): Ditto.
3326 (current_cr_names): Ditto.
3327 (current_cr_is_float): Ditto.
3328 (current_ccr_names): Ditto.
3329 * objc-exp.y (yylex): Ditto.
3330 * p-exp.y (yylex): Ditto.
3331 * remote.c (send_interrupt_sequence): Ditto.
3332 * tracepoint.c (current_trace_status): Ditto.
3333 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3334 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3336 2011-03-11 Michael Snyder <msnyder@vmware.com>
3338 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3339 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3340 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3341 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3342 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3344 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3345 (delete_async_event_handler): Ditto.
3347 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3349 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3351 * top.c (set_verbose): Assert showcmd was found.
3353 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3355 * xtensa-tdep.c (warning_once): Correct style issues.
3357 2011-03-11 Yao Qi <yao@codesourcery.com>
3359 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3361 2011-03-11 Andreas Schwab <schwab@redhat.com>
3363 * common/aclocal.m4: Remove.
3365 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3367 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3368 (xtensa_write_register, xtensa_read_register): Likewise.
3369 (xtensa_hextochar): Removed.
3370 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3372 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3374 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3375 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3376 (xtensa_alloc_frame_cache): Add initialization for new fields.
3377 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3378 (warning_once): New function.
3379 (xtensa_insn_kind): New item c0opc_and.
3380 (call0_classify_opcode): Add the case for AND instruction.
3381 (call0_track_op): Change arguments. New local variable litbase.
3382 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3383 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3385 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3386 (call0_analyze_prologue): Update the comments. Change arguments.
3387 Add the variety of updates to handle extended prologues, which now can
3388 conduct dynamic stack adjustments.
3389 (call0_frame_cache): Likewise.
3390 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3391 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3393 2011-03-10 Michael Snyder <msnyder@vmware.com>
3395 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3396 (cmd_qtframe): Ditto.
3397 (cmd_qtbuffer): Ditto.
3398 (cmd_bigqtbuffer): Ditto.
3400 2011-03-10 Tom Tromey <tromey@redhat.com>
3402 * tracepoint.c (trace_actions_command): Update.
3403 * thread.c (thread_apply_command): Update.
3404 * reverse.c (delete_bookmark_command): Update.
3405 (bookmarks_info): Update.
3406 * printcmd.c (undisplay_command): Update.
3407 * memattr.c (mem_enable_command): Update.
3408 (mem_disable_command): Update.
3409 (mem_delete_command): Update.
3410 * inferior.c (detach_inferior_command): Update.
3411 (kill_inferior_command): Update.
3412 (remove_inferior_command): Update.
3413 * cli/cli-utils.h (struct get_number_or_range_state): New.
3414 (init_number_or_range): Declare.
3415 (get_number_or_range): Update.
3416 * cli/cli-utils.c (init_number_or_range): New function.
3417 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3419 (number_is_in_list): Update.
3420 * breakpoint.h (get_tracepoint_by_number): Update.
3421 * breakpoint.c (map_breakpoint_numbers): Update for change to
3422 get_number_or_range.
3423 (find_location_by_number): Use get_number, not
3424 get_number_or_range.
3425 (trace_pass_set_count): New function.
3426 (trace_pass_command): Update for change to get_number_or_range.
3428 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3431 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3433 * python/py-param.c (add_setshow_generic): Add set/show callback
3434 parameters. Register Python object context.
3435 (get_show_value): New function.
3436 (get_set_value): New function.
3437 (call_doc_function): New function.
3438 (get_doc_string): Move behind get_show_value/get_set_value.
3440 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3442 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3444 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3446 * xtensa-tdep.c (xtensa_read_register): Add comment.
3447 (xtensa_write_register): Likewise.
3448 (xtensa_hextochar): Add comment and update to match coding conventions.
3449 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3450 (execute_l32e, execute_s32e, execute_code): Update comments.
3451 (xtensa_exception_handler_t): Update to match coding conventions.
3452 (xtensa_insn_kind): Likewise.
3454 2011-03-09 Michael Snyder <msnyder@vmware.com>
3456 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3458 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3460 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3462 2011-03-09 Tom Tromey <tromey@redhat.com>
3464 * thread.c (restore_selected_frame): Handle frame_level == -1.
3465 (make_cleanup_restore_current_thread): Use
3466 get_selected_frame_if_set.
3467 * frame.h (get_selected_frame_if_set): Declare.
3468 * frame.c (get_selected_frame_if_set): New function.
3470 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3472 * cli/cli-cmds.c (shell_escape): Use lbasename.
3473 * coffread.c (coff_start_symtab): Constify parameter.
3474 (complete_symtab): Constify `name' parameter.
3475 (coff_symtab_read): Constify `filestring' local.
3476 (coff_getfilename): Constify return and `result' local.
3478 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3479 * linux-fork.c (info_checkpoints_command): Use lbasename.
3480 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3481 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3482 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3483 * procfs.c (procfs_make_note_section): Use lbasename.
3484 * tui/tui-io.c (printable_part): Constity return and parameter.
3486 (print_filename): Constify parameters, and local `s'.
3487 (tui_rl_display_match_list): Constify local `temp'.
3489 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3492 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 Fix DWARF-3+ DW_AT_accessibility default assumption.
3494 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3495 cu->header.version >= 3.
3497 2011-03-09 Yao Qi <yao@codesourcery.com>
3499 * common/Makefile.in: Remove.
3500 * common/configure: Remove.
3501 * common/configure.ac: Remove.
3503 2011-03-09 Yao Qi <yao@codesourcery.com>
3506 2011-02-11 Yao Qi <yao@codesourcery.com>
3508 * common/Makefile.in: Add copyright header.
3510 2011-02-11 Yao Qi <yao@codesourcery.com>
3512 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3514 * configure.ac: Add common to sub dir.
3515 * configure: Regenerate.
3517 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3519 * xtensa-tdep.c (call0_ret): New function.
3520 (xtensa_skip_prologue): Speed up analysis.
3522 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3524 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3525 while executing MI command -data-list-changed-registers.
3527 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3529 * xtensa-tdep.c (xtensa_read_register): New function.
3530 (xtensa_write_register): New function.
3531 (xtensa_find_register_by_name): New function.
3532 (xtensa_windowed_frame_cache): Update comments in type description.
3533 (xtensa_frame_cache): Likewise.
3534 (xtensa_window_interrupt_insn): New function.
3535 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3536 (xtensa_insn_kind): Add new instructions.
3537 (rwx_special_register): New function.
3538 (call0_classify_opcode): Add new instructions to the analysis.
3539 (a0_saved, a7_saved, a11_saved): New variables.
3540 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3541 (execute_l32e): New function.
3542 (execute_s32e): New function.
3543 (xtensa_exception_handler_t): New type.
3544 (execute_code): New function.
3545 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3546 analysis for Xtensa Window Exception handlers.
3548 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3550 * xtensa-tdep.c (TX_PS): New.
3551 (windowing_enabled): Update to count for Call0 ABI.
3552 (xtensa_hextochar): New.
3553 (xtensa_init_reggroups): Make algorithm generic.
3554 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3556 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3558 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3560 2011-03-08 Michael Snyder <msnyder@vmware.com>
3562 * i386-tdep.c (i386_follow_jump): Check return value of
3564 (i386_analyze_struct_return): Ditto.
3565 (i386_skip_probe): Ditto.
3566 (i386_match_insn): Ditto.
3567 (i386_skip_noop): Ditto.
3568 (i386_analyze_frame_setup): Ditto.
3569 (i386_analyze_register_saves): Ditto.
3570 (i386_skip_prologue): Ditto.
3571 (i386_skip_main_prologue): Ditto.
3573 * target.c (read_whatever_is_readable): Fix memory leak.
3575 * i386-tdep.c (i386_process_record): Document fall through.
3577 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3579 Fix DWARF-3+ DW_AT_accessibility default assumption.
3580 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3581 cu->header.version >= 3.
3583 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3585 * remote.c (remote_check_symbols): Skip if the target has no
3588 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3590 * target.c (read_whatever_is_readable): Reformat comment,
3591 with a minor typo fix. Minor reformatting of the code.
3593 2011-03-08 Yao Qi <yao@codesourcery.com>
3595 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3596 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3597 Use cached result instead of calling displaced_in_arm_mode again.
3598 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3599 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3600 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3601 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3602 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3603 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3604 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3605 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3606 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3607 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3608 (arm_catch_kernel_helper_return): Likewise.
3609 * gdb/arm-tdep.h : Update function declarations.
3611 2011-03-07 Michael Snyder <msnyder@vmware.com>
3613 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3615 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3617 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3619 * elfread.c (elf_symtab_read): Stop memory leak.
3621 * main.c (captured_main): Fix memory leak.
3623 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3625 * ada-lang.c (compare_names): Call is_name_suffix with string1
3628 2011-03-07 Tom Tromey <tromey@redhat.com>
3630 * xcoffread.c (xcoff_sym_fns): Update.
3631 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3632 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3633 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3634 (symbol_file_add_with_addrs_or_offsets): Likewise.
3635 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3636 * somread.c (som_sym_fns): Update.
3637 * psymtab.h (require_partial_symbols): Declare.
3638 * psymtab.c (require_partial_symbols): New function.
3639 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3640 (ALL_OBJFILE_PSYMTABS): Undef.
3641 (ALL_PSYMTABS): Move from psympriv.h.
3642 (lookup_partial_symtab, find_pc_sect_psymtab)
3643 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3644 (find_last_source_symtab_from_partial)
3645 (forget_cached_source_info_partial)
3646 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3647 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3648 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3649 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3650 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3651 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3652 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3653 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3654 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3656 * mipsread.c (ecoff_sym_fns): Update.
3657 * machoread.c (macho_sym_fns): Update.
3658 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3659 (read_psyms): New function.
3660 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3661 (elf_sym_fns_lazy_psyms): New global.
3662 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3663 dwarf2_build_psymtabs.
3664 * dbxread.c (aout_sym_fns): Update.
3665 * coffread.c (coff_sym_fns): Update.
3667 2011-03-07 Tom Tromey <tromey@redhat.com>
3669 * infrun.c (print_exited_reason): Include inferior id and pid in
3672 2011-03-07 Tom Tromey <tromey@redhat.com>
3674 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3676 (target_has_execution_1): Update.
3677 (target_has_execution_current): Declare.
3678 (target_has_execution): Call target_has_execution_current.
3679 (default_child_has_execution): Update.
3680 * target.c (default_child_has_execution): Add 'the_ptid'
3682 (target_has_execution_1): Likewise.
3683 (target_has_execution_current): New function.
3684 (add_target): Update.
3685 (init_dummy_target): Update.
3686 * remote-m32r-sdi.c (m32r_has_execution): New function.
3687 (init_m32r_ops): Use it.
3688 * record.c (record_core_has_execution): Now static. Add
3689 'the_ptid' parameter.
3690 * inferior.c (have_live_inferiors): Don't save current thread.
3691 Use target_has_execution_1.
3693 2011-03-07 Yao Qi <yao@codesourcery.com>
3695 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3697 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3699 * elfread.c (elf_symtab_read): Minor reformatting.
3701 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3703 * objc-lang.c (selectors_info): Minor reformatting.
3705 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3707 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3709 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3710 Michael Snyder <msnyder@vmware.com>
3712 * ada-valprint.c (ada_val_print_array): Move the declaration of
3713 "byte_order" and "elttype" inside the block where these variables
3714 are actually used. Remove some special handling for the case
3715 where "elttype" and "eltlen" are null. Replace by a comment
3716 and a couple of assertion checks.
3718 2011-03-05 Michael Snyder <msnyder@vmware.com>
3720 * source.c (add_path): Replace semicolon at end of block.
3721 * dwarf2expr.c (execute_stack_op): Ditto.
3723 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3725 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3726 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3727 (bfin-*-*): Likewise.
3729 2011-03-05 Michael Snyder <msnyder@vmware.com>
3731 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3732 * mdebugread.c (parse_symbol): Ditto.
3733 * parse.c (parse_exp_in_context): Ditto.
3734 * source.c (add_path): Ditto.
3735 * utils.c (gnu_debuglink_crc32): Ditto.
3736 * varobj.c (variable_language): Ditto.
3738 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3740 2011-03-04 Michael Snyder <msnyder@vmware.com>
3742 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3744 * symfile.c (simple_overlay_update): Check for null return value
3745 from lookup_minimal_symbol.
3747 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3749 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3751 * eval.c (parse_and_eval_address_1): Remove function.
3752 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3753 instead of parse_and_eval_address_1.
3754 * value.h (parse_and_eval_address_1): Remove prototype.
3756 2011-03-04 Michael Snyder <msnyder@vmware.com>
3758 * remote.c (putpkt_binary): Document that case stmt falls through.
3760 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3762 * breakpointc (print_it_typical): Move NULL check from here...
3763 (print_bp_stop_message): ... to here.
3765 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3767 * breakpoint.c (enable_command): Use break instead of continue,
3768 and fill in a missing break.
3769 (disable_command): Ditto.
3771 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3773 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3774 (terminal_save_ours): Remove misleading comment.
3775 (inflow_inferior_data_cleanup): Free ttystate.
3776 (inflow_inferior_exit): Likewise.
3777 (copy_terminal_info): Copy ttystate.
3779 * serial.c (serial_copy_tty_state): New function.
3780 * serial.h (serial_copy_tty_state): Add prototype.
3781 (struct serial_ops): Add copy_tty_state callback.
3782 * ser-base.c (ser_base_copy_tty_state): New function.
3783 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3784 * ser-go32.c (dos_copy_tty_state): New function.
3785 (dos_ops): Install copy_tty_state callback.
3786 * ser-mingw.c (_initialize_ser_windows): Likewise.
3787 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3788 * ser-unix.c (hardwire_copy_tty_state): New function.
3789 (_initialize_ser_hardwire): Install it.
3791 2011-03-04 Michael Snyder <msnyder@vmware.com>
3793 * breakpoint.c (create_breakpoint): Add missing break statement.
3795 Reverting this patch:
3796 * infcall.c (call_function_by_hand): Add break statements for lint.
3798 Reverting this patch:
3799 * cli/cli-script.c (script_from_file): Add break for lint.
3801 2011-03-04 Michael Snyder <msnyder@vmware.com>
3803 * solib.c (reload_shared_libraries_1): Close memory leak.
3805 2011-03-03 Tom Tromey <tromey@redhat.com>
3808 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3811 2011-03-03 Michael Snyder <msnyder@vmware.com>
3813 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3814 fields of struct 'st' to zero.
3816 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3817 sal.pspace before calling set_current_source_symtab_and_line.
3819 2011-03-03 Yao Qi <yao@codesourcery.com>
3821 * Makefile.in (configure-common): Remove. Let Makefile
3822 in dir common to rebuild itself.
3823 (common/Makefile): Likewise.
3825 2011-03-03 Joel Brobecker <brobecker@adacore.com>
3827 * utils.c (parse_escape): Add i18n markup in error message.
3829 2011-03-03 Yao Qi <yao@codesourcery.com>
3831 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3833 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3834 (displaced_write_reg, displaced_read_reg): Likewise.
3835 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3836 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3837 (cleanup_branch): Replace magic number 14 and 15 with
3838 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3840 2011-03-02 Michael Snyder <msnyder@vmware.com>
3842 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3844 * cli/cli-script.c (script_from_file): Add break for lint.
3846 * mdebugread.c (parse_partial_symbols): Fix indent.
3848 * target-descriptions.c (tdesc_gdb_type): No need to call
3849 xstrdup, callee saves a copy.
3851 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3853 * infcall.c (call_function_by_hand): Add break statements for lint.
3855 * utils.c (parse_escape): Escape the escape char.
3857 * python/py-inferior.c (build_inferior_list): Error out if
3858 PyList_Append fails.
3859 (gdbpy_inferiors): Error out if build_inferior_list fails.
3861 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3864 * record.c (record_restore): Move printf to before error return.
3866 2011-03-02 Yao Qi <yao@codesourcery.com>
3868 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3869 is_thumb and insn_size.
3870 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3871 on both ARM and Thumb mode.
3872 (arm_process_displaced_insn): Set is_thumb and insn_size.
3873 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3874 (arm_displaced_step_fixup): Likewise.
3876 2011-03-01 Michael Snyder <msnyder@vmware.com>
3878 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3880 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3882 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3884 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3886 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3889 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3890 which shadows function parameter.
3892 * tracepoint.c (create_tsv_from_upload): Superfluous call
3893 to xstrdup. Callee already calls xstrdup.
3895 * linespec.c (decode_line_1): Remove unnecessary null check.
3897 * tracepoint.c (scope_info): Fix mem leak, remove underused
3900 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3901 superfluous null check.
3903 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3904 (value_of_builtin_frame_fp_reg): Ditto.
3906 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3908 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3911 * linespec.c (decode_line_1): Check for null before dereference.
3913 * reverse.c (record_restore): Move null-check to before pointer
3916 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3918 * objc-lang.c (selectors_info): Add explanitory comment.
3919 (classes_info): Ditto.
3921 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3923 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3924 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3925 versions of the trampoline. Handle Thumb vs. ARM addresses.
3926 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3927 (arm_linux_init_abi): Install it.
3928 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3929 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3931 2011-02-28 Michael Snyder <msnyder@vmware.com>
3933 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3934 a little bigger, to avoid possibility of an overflow.
3936 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3937 buffers a little bigger, to avoid possibility of an overflow.
3939 * coffread.c (coff_getfilename): Add check to avoid overflow.
3941 * objc-lang.c (selectors_info): Add a small safety margin to
3943 (classes_info): Error out on too long REGEXP.
3945 * infrun.c (handle_inferior_event): Remove unused function call.
3947 * fork-child.c (fork_inferior): Remove ifdef'd code and
3950 * linux-thread-db.c (attach_thread): Discard unused value.
3952 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3954 * remote.c (remote_get_noisy_reply): Discard unused value.
3955 (remote_vcont_resume): Ditto.
3956 (remote_stop_ns): Ditto.
3958 * linespec.c (decode_objc): Delete unused variable.
3960 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3962 * dwarf2read.c (add_partial_symbol): Discard unused values.
3963 (read_base_type): Delete unused variable.
3965 * dbxread.c (read_dbx_symtab): Discard unused value.
3967 * eval.c (evaluate_subexp_standard): Delete unused variable,
3968 and discard unused values.
3970 * infcmd.c (_initialize_infcmd): Discard unused values.
3972 * stabsread.c (rs6000_builtin_type): Missing break statement.
3974 * dbxread.c (process_one_symbol): Discard unused value.
3976 * coffread.c (coff_end_symtab): Delete unused variable.
3978 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3979 (dwarf2_add_typedef): Delete unused variable.
3980 (read_namespace): Ditto.
3981 (dwarf_decode_macros): Ditto.
3983 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3985 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3987 * p-valprint.c (pascal_val_print): Discard unused value.
3989 * utils.c (nquery): Call va_end before return;
3993 * proc-service.c (ps_plog): Call va_end before return.
3995 2011-02-28 Tom Tromey <tromey@redhat.com>
3997 * python/python.c (gdbpy_value_cst): New global.
3998 (_initialize_python): Initialize it.
3999 * python/python-internal.h (gdbpy_value_cst): Declare.
4000 * python/py-value.c (convert_value_from_python): Use
4003 2011-02-28 Michael Snyder <msnyder@vmware.com>
4005 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4007 * breakpoint.c (catch_syscall_completer): Free malloced list.
4009 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4011 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4012 (lval_func_check_synthetic_pointer): Ditto.
4013 (lval_func_free_closure): Fix use-after-free.
4015 2011-02-28 Tom Tromey <tromey@redhat.com>
4017 * psymtab.c (expand_partial_symbol_tables): Use
4018 ALL_OBJFILE_PSYMTABS.
4020 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 * objc-lang.c (selectors_info): Error on too long REGEXP.
4024 2011-02-28 Michael Snyder <msnyder@vmware.com>
4026 * python/py-param.c (set_parameter_value): Add missing
4029 * linux-record.c (record_linux_system_call): Add missing
4032 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4034 * breakpoint.c (print_one_breakpoint_location): Remove unused
4035 argument PRINT_ADDRESS_BITS. Update callers.
4036 (print_one_breakpoint): Likewise.
4038 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4040 * breakpoint.c (wrap_indent_at_field): New function.
4041 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4042 Allocate ui_stream locally instead of using STB argument.
4043 (print_one_breakpoint_location): Update call.
4044 * ui-out.c (ui_out_query_field): New function.
4045 * ui-out.h (ui_out_query_field): Add prototype.
4047 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4049 From Michael Snyder <msnyder@vmware.com>
4050 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4052 2011-02-27 Michael Snyder <msnyder@vmware.com>
4054 * objc-lang.c (selectors_info): Prevent string overrun.
4056 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4059 * symtab.c (rbreak_command): Move variable 'file_name' to
4062 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4063 param with a local variable of the same name.
4065 2011-02-27 Michael Snyder <msnyder@vmware.com>
4067 * value.c (value_from_history_ref): New function.
4068 * value.h (value_from_history_ref): Export.
4069 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4070 to parse value history references.
4071 * cli/cli-utils.h (get_number_trailer): Update comment.
4073 2011-02-27 Michael Snyder <msnyder@vmware.com>
4075 * inferior.c (detach_inferior_command): Use get_number_or_range.
4076 (kill_inferior_command): Ditto.
4077 (remove_inferior_command): Ditto.
4078 (initialize_inferiors): Make command names plural.
4079 Update help strings.
4081 2011-02-27 Michael Snyder <msnyder@vmware.com>
4083 * darwin-nat-info.c: Fix comment typo.
4084 * dwarf2expr.h: Ditto.
4085 * fbsd-nat.c: Ditto.
4086 * fbsd-nat.h: Ditto.
4087 * frame-unwind.h: Ditto.
4089 * hppa-hpux-tdep.c: Ditto.
4090 * i386-linux-nat.c: Ditto.
4091 * linux-nat.c: Ditto.
4092 * nbsd-nat.c: Ditto.
4093 * nbsd-nat.h: Ditto.
4094 * ppc-linux-tdep.c: Ditto.
4097 * tui/tui-winsource.c: Ditto.
4099 2011-02-26 Michael Snyder <msnyder@vmware.com>
4101 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4103 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4105 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4106 with a local variable of the same name.
4108 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4109 param with a local variable of the same name.
4110 (i387_supply_xsave): Ditto.
4112 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4113 that it does not shadow a function parameter.
4115 * i386-nat.c (i386_length_and_rw_bits): Document that case
4116 statement is meant to fall through.
4118 * expprint.c (dump_subexp_body_standard): Document that case
4119 statement is meant to fall through.
4121 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4122 dead if statement. Condition can't be false.
4124 2011-02-25 Michael Snyder <msnyder@vmware.com>
4126 * arm-tdep.c: Fix typos in comments.
4127 * bsd-uthread.c: Ditto.
4128 * completer.c: Ditto.
4130 * cp-namespace.c: Ditto.
4131 * cp-support.c: Ditto.
4132 * cris-tdep.c: Ditto.
4134 * dwarf2read.c: Ditto.
4136 * gdbtypes.h: Ditto.
4137 * inferior.h: Ditto.
4138 * mdebugread.c: Ditto.
4139 * mips-tdep.c: Ditto.
4140 * ppc-linux-nat.c: Ditto.
4141 * ppc-linux-tdep.c: Ditto.
4142 * printcmd.c: Ditto.
4143 * sol-thread.c: Ditto.
4144 * solib-frv.c: Ditto.
4146 * sparc64-tdep.c: Ditto.
4147 * spu-tdep.c: Ditto.
4148 * stabsread.c: Ditto.
4153 * python/py-block.c: Ditto.
4154 * python/py-symbol.c: Ditto.
4155 * python/py-symtab.c: Ditto.
4156 * python/py-value.c: Ditto.
4157 * tui/tui-win.c: Ditto.
4159 2011-02-25 Michael Snyder <msnyder@vmware.com>
4161 * inferior.c (print_inferior): Accept a string instead of an int
4162 for requested_inferiors, and use get_number_or_range to parse it.
4163 (info_inferiors_command): Pass args string to print_inferior.
4164 (initialize_inferiors): Change help string for info inferiors.
4165 * inferior.h (print_inferior): Export prototype change.
4167 2011-02-25 Tom Tromey <tromey@redhat.com>
4169 * common/ax.def (invalid2): Set to 0x31.
4171 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4173 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4175 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4177 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4179 2011-02-24 Michael Snyder <msnyder@vmware.com>
4181 * Makefile.in (clean): Make clean should remove generated files
4182 observer.h and observer.inc.
4184 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4186 Revert the following patch (not approved yet):
4187 2011-02-21 Hui Zhu <teawater@gmail.com>
4188 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4189 * ax-gdb.c (gen_printf_expr_callback): New function.
4190 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4191 * ax-general.c (ax_memcpy): New function.
4192 (ax_print): Handle "printf".
4194 * ax.h (ax_memcpy): Forward declare.
4195 * common/ax.def (invalid2): Removed.
4196 (printf): New entry.
4197 * printcmd.c (printcmd.h): New include.
4198 (string_printf): New function.
4199 (ui_printf): Removed.
4200 (printf_command): Remove static. Call string_printf.
4201 (eval_command): Call string_printf.
4202 * printcmd.h: New file.
4203 * tracepoint.c (validate_actionline,
4204 encode_actions_1): handle printf_command.
4206 2011-02-23 Tom Tromey <tromey@redhat.com>
4208 * ax-general.c (ax_pick): Add missing newline.
4210 2011-02-23 Michael Snyder <msnyder@vmware.com>
4212 * breakpoint.c (breakpoint_1): Change first argument from an int
4213 to a char pointer, so that the function now accepts a list of
4214 breakpoints rather than just one. Use new function
4215 'number_is_in_list' to implement.
4216 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4217 (watchpoints_info): Ditto.
4218 (tracepoints_info): Ditto.
4219 (maintenance_info_breakpoints): Ditto.
4220 (_initialize_breakpoint): Update help strings to reflect the fact
4221 that these functions can now take more than one argument.
4222 * cli/cli-utils.c (number_is_in_list): New function.
4223 * cli/cli-utils.h (number_is_in_list): Export.
4225 2011-02-23 Michael Snyder <msnyder@vmware.com>
4227 * memattr.c (mem_enable_command): Use get_number_or_range.
4228 (mem_disable_command): Ditto.
4229 (mem_delete_command): Ditto.
4230 (_initialize_mem): Tweak usage message to reflect multiple
4233 2011-02-22 Doug Evans <dje@google.com>
4235 Add gdb.lookup_global_symbol python function.
4237 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4238 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4239 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4241 2011-02-22 Tom Tromey <tromey@redhat.com>
4243 * language.c (language_class_name_from_physname): Rename
4244 'curr_language' argument to 'lang'; use in body.
4246 2011-02-22 Michael Snyder <msnyder@vmware.com>
4248 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4250 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4252 * frame-unwind.h: Fix comment to mention the this frame, not the
4255 2011-02-22 Tom Tromey <tromey@redhat.com>
4257 * symfile.c (auto_solib_limit): Remove.
4258 * symfile.h (auto_solib_limit): Remove.
4260 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4262 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4264 2011-02-21 Michael Snyder <msnyder@vmware.com>
4266 * gdbthread.h (print_thread_info): Change prototype.
4267 * thread.c (print_thread_info): Accept char* instead of int for
4268 requested_threads argument. Use new function number_is_in_list
4269 to determine which threads to list.
4270 (info_threads_command): Pass char* to print_thread_info.
4271 * cli/cli-utils.c (number_is_in_list): New function.
4272 * cli/cli-utils.h (number_is_in_list): Export.
4273 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4275 (print_one_inferior): Ditto.
4276 (mi_cmd_list_thread_groups): Ditto.
4278 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 * common/Makefile.in (CFLAGS): New.
4281 (COMPILE): Add $(CFLAGS).
4283 2011-02-21 Tom Tromey <tromey@redhat.com>
4285 * breakpoint.c (catch_syscall_command_1): Fix typo.
4287 2011-02-21 Tom Tromey <tromey@redhat.com>
4289 * reverse.c: Include cli-utils.h.
4290 * printcmd.c: Include cli-utils.h.
4291 (string_printf): Use skip_spaces.
4292 * cli/cli-utils.h: New file.
4293 * cli/cli-utils.c: New file.
4294 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4295 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4296 * breakpoint.h (get_number, get_number_or_range): Move to
4298 * breakpoint.c: Include cli-utils.h.
4299 (get_number_trailer, get_number, get_number_or_range)
4300 (ep_skip_leading_whitespace): Move to cli-utils.c.
4301 (create_breakpoint_sal, find_condition_and_thread)
4302 (decode_static_tracepoint_spec, watch_command_1)
4303 (watch_maybe_just_location, ep_parse_optional_if_clause)
4304 (catch_fork_command_1, catch_exec_command_1)
4305 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4306 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4307 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4308 (HFILES_NO_SRCDIR): Add cli-utils.h.
4309 (cli-utils.o): New target.
4311 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4313 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4314 before calling discard_all_inferiors.
4316 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4318 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4319 (struct builtin_opencl_type): Remove.
4320 (builtin_opencl_type): Change return type to "struct type **".
4321 (lookup_opencl_vector_type): Update caller.
4322 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4323 (build_opencl_types): Install plain array of "struct type *"
4324 instead of "struct builtin_opencl_type".
4326 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4327 Ulrich Weigand <uweigand@de.ibm.com>
4329 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4330 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4331 (struct arm_linux_hwbp_cap): New type.
4332 (arm_linux_get_hwbp_cap): New function.
4333 (arm_linux_get_hw_breakpoint_count): Likewise.
4334 (arm_linux_get_hw_watchpoint_count): Likewise.
4335 (arm_linux_can_use_hw_breakpoint): Likewise.
4336 (arm_hwbp_type): New type.
4337 (arm_hwbp_control_t): Likewise.
4338 (struct arm_linux_hw_breakpoint): Likewise.
4339 (struct arm_linux_thread_points): Likewise.
4340 (arm_threads): New global variable.
4341 (arm_linux_find_breakpoints_by_tid): New function.
4342 (arm_hwbp_control_initialize): Likewise.
4343 (arm_hwbp_control_is_enabled): Likewise.
4344 (arm_hwbp_control_disable): Likewise.
4345 (arm_linux_hw_breakpoint_initialize): Likewise.
4346 (arm_linux_get_hwbp_type): Likewise.
4347 (arm_linux_hw_watchpoint_initialize): Likewise.
4348 (arm_linux_hw_breakpoint_equal): Likewise.
4349 (arm_linux_insert_hw_breakpoint1): Likewise.
4350 (arm_linux_remove_hw_breakpoint1): Likewise.
4351 (arm_linux_insert_hw_breakpoint): Likewise.
4352 (arm_linux_remove_hw_breakpoint): Likewise.
4353 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4354 (arm_linux_insert_watchpoint): Likewise.
4355 (arm_linux_remove_watchpoint): Likewise.
4356 (arm_linux_stopped_data_address): Likewise.
4357 (arm_linux_stopped_by_watchpoint): Likewise.
4358 (arm_linux_watchpoint_addr_within_range): Likewise.
4359 (arm_linux_new_thread): Likewise.
4360 (arm_linux_thread_exit): Likewise.
4361 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4362 related target callbacks. Register arm_linux_new_thread and
4363 arm_linux_thread_exit.
4364 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4365 * arm-tdep.c (arm_pc_is_thumb): Make global.
4366 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4368 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4370 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4371 per-frame locations while within a function epilogue.
4373 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4375 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4376 to GNU coding standards.
4378 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4380 Allow use of mingw native on Windows 95 OS.
4381 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4382 (ser_windows_close): Only call CancelIo if function exists.
4383 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4384 to check for existence of CancelIo function in kernel32 DLL.
4386 2011-02-21 Hui Zhu <teawater@gmail.com>
4388 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4389 * ax-gdb.c (gen_printf_expr_callback): New function.
4390 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4391 * ax-general.c (ax_memcpy): New function.
4392 (ax_print): Handle "printf".
4394 * ax.h (ax_memcpy): Forward declare.
4395 * common/ax.def (invalid2): Removed.
4396 (printf): New entry.
4397 * printcmd.c (printcmd.h): New include.
4398 (string_printf): New function.
4399 (ui_printf): Removed.
4400 (printf_command): Remove static. Call string_printf.
4401 (eval_command): Call string_printf.
4402 * printcmd.h: New file.
4403 * tracepoint.c (validate_actionline,
4404 encode_actions_1): handle printf_command.
4406 2011-02-19 Michael Snyder <msnyder@vmware.com>
4408 * reverse.c (delete_one_bookmark): Argument is now bookmark
4409 id rather than pointer to bookmark struct.
4410 (delete_bookmark_command): Use get_number_or_range.
4411 (goto_bookmark_command): Parse with get_number instead of strtoul.
4412 (bookmark_1): New function. Print info for one bookmark.
4413 (bookmarks_info): Use get_number_or_range and bookmark_1.
4415 2011-02-18 Michael Snyder <msnyder@vmware.com>
4417 * thread.c (info_threads_command): Re-implement using
4418 get_number_or_range.
4419 (thread_apply_command): Ditto.
4421 2011-02-18 Tom Tromey <tromey@redhat.com>
4423 * common/ax.def: New file.
4424 * ax.h (enum agent_op): Use ax.def.
4425 * ax-general.c (aop_map): Use ax.def.
4427 2011-02-18 Tom Tromey <tromey@redhat.com>
4429 * ax-general.c (aop_map): Add pick and rot.
4430 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4431 <DW_OP_rot>: Implement.
4432 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4434 * ax-general.c (ax_pick): New function.
4436 2011-02-18 Tom Tromey <tromey@redhat.com>
4438 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4440 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4441 Tom Tromey <tromey@redhat.com>
4443 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4444 make_symbol_overload_list_block with NULL BLOCK.
4445 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4447 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4449 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4450 * breakpoint.h (get_number_or_range): Declare.
4451 * printcmd.c (ALL_DISPLAYS): Declare.
4452 (delete_display): Reimplement taking a display pointer.
4453 (undisplay_command): Accept a range of displays to delete, using
4454 get_number_or_range.
4456 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4458 * c-valprint.c (c_val_print): Add embedded_offset to address
4459 for arrays of unspecified length.
4460 * p-valprint.c (pascal_val_print): Likewise.
4462 2011-02-18 Yao Qi <yao@codesourcery.com>
4464 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4465 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4466 (thumb_process_displaced_insn): New.
4467 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4468 call to arm_process_displaced_insn.
4469 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4471 2011-02-17 Tom Tromey <tromey@redhat.com>
4473 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4474 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4475 compile_dwarf_to_ax. No longer static. Call
4476 dwarf2_compile_cfa_to_ax.
4477 (locexpr_tracepoint_var_ref): Update.
4478 (loclist_tracepoint_var_ref): Update.
4479 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4480 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4481 argument; add 'gdbarch' and 'pc'.
4482 (dwarf2_compile_cfa_to_ax): New function.
4483 (dwarf2_frame_cache): Update.
4485 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4487 * ada-lang.c (ada_type_of_array): Fix the size of the array
4488 in the case of an unconstrained packed array.
4490 2011-02-17 Yao Qi <yao@codesourcery.com>
4492 * common/Makefile.in: Add more targets for make.
4494 2011-02-16 Tom Tromey <tromey@redhat.com>
4496 * dwarf2loc.c (unimplemented): Fix typo.
4498 2011-02-16 Tom Tromey <tromey@redhat.com>
4500 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4501 (compile_dwarf_to_ax) <default>: Use unimplemented.
4502 <DW_OP_deref>: Update.
4503 (disassemble_dwarf_expression): Update.
4504 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4505 (decode_locdesc): Update.
4506 * dwarf2expr.h (dwarf_stack_op_name): Update.
4508 2011-02-16 Tom Tromey <tromey@redhat.com>
4510 * ax.h (struct aop_map) <name>: Now const.
4512 2011-02-16 Tom Tromey <tromey@redhat.com>
4514 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4517 2011-02-16 Yao Qi <yao@codesourcery.com>
4519 * infrun.c (get_displaced_step_closure_by_addr): New.
4520 * inferior.h: Declare it.
4521 * arm-tdep.c: (arm_pc_is_thumb): Call
4522 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4525 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4526 Jan Kratochvil <jan.kratochvil@redhat.com>
4529 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4531 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4532 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 * value.c (value_contents_copy_raw): Extend describing comment.
4535 Assert that the destination contents we're overwriting are wholly
4537 (value_contents_copy): Extend describing comment.
4539 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4540 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 * value.c (value_available_contents_eq): Remove redundant local
4543 variables. Fix available contents comparision.
4544 * value.h (value_available_contents_eq): Extend describing
4547 2011-02-16 Yao Qi <yao@codesourcery.com>
4549 * thread.c (info_threads_command): Add missing i18n markup and remove
4552 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4554 * breakpoint.c (longjmp_names): New variable.
4555 (struct breakpoint_objfile_data): New type.
4556 (breakpoint_objfile_key): New variable.
4557 (msym_not_found): New variable.
4558 (msym_not_found_p): New predicate.
4559 (get_breakpoint_objfile_data): New function.
4560 (create_overlay_event_breakpoint): Check per-objfile cache for
4562 (create_longjmp_master_breakpoint): Likewise.
4563 (create_std_terminate_master_breakpoint): Likewise.
4564 (create_exception_master_breakpoint): Likewise.
4565 (_initialize_breakpoint): Register per-objfile data key.
4567 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4569 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4571 (create_longjmp_master_breakpoint): Loop over longjmp names.
4572 (create_std_terminate_master_breakpoint): Const-propagate parameter
4574 (update_breakpoints_after_exec): Adjust.
4575 (breakpoint_re_set): Adjust.
4577 2011-02-15 Michael Snyder <msnyder@vmware.com>
4579 * thread.c (info_threads_command): Process arg as thread id,
4580 or list of thread ids.
4581 (thread_find_command): New command.
4582 (_initialize_thread): Document argument for info threads.
4583 Document 'thread find' command.
4584 * NEWS: Document new command "thread find".
4586 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4588 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4589 * aclocal.m4: Regenerated with aclocal-1.11.1.
4590 * common/configure: Regenerate with autoconf-2.64.
4592 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4594 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4595 bool data type to a size of one byte.
4597 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4598 Jan Kratochvil <jan.kratochvil@redhat.com>
4600 * target.c (memory_xfer_live_readonly_partial): Document where to
4601 look for interface description.
4603 2011-02-15 Yao Qi <yao@codesourcery.com>
4606 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4607 order to store PC value on stack instead of text section.
4609 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4611 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4612 the EFP register set size.
4613 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4614 data from the VMX register.
4615 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4616 and write data from/to the VMX register.
4618 2011-02-14 Michael Snyder <msnyder@vmware.com>
4620 * command.h (enum command_class): New class 'no_set_class', for
4621 "show" commands without a corresponding "set" command.
4622 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4623 * copying.c (_initialize_copying): Ditto for "show copying" and
4625 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4627 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4628 which there is no corresponding "set" command (eg. "show copying").
4630 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4631 Jan Kratochvil <jan.kratochvil@redhat.com>
4633 * exec.c (section_table_available_memory): Change `len' parameter
4635 * exec.h (section_table_available_memory): Ditto.
4636 * value.h (read_value_memory): Rename the `offset' parameter to
4639 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4640 Jan Kratochvil <jan.kratochvil@redhat.com>
4642 * memrange.c (compare_mem_ranges): Mention sort order in
4644 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4645 * tracepoint.c (traceframe_available_memory): Extend comment to
4646 mention what happens to RESULT when the target does not support
4649 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4650 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4655 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4657 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4658 No longer handle NULL values.
4660 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4662 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4663 * value.c: Include "exceptions.h".
4664 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4666 * cp-abi.c: Include gdb_assert.h.
4667 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4668 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4670 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4671 parameters. No longer returns -1 on error.
4672 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4674 * cp-valprint.c: Include exceptions.h.
4675 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4676 the baseclass_offset. Handle unavailable base classes. Use
4677 val_print_invalid_address.
4678 * p-valprint.c: Include exceptions.h.
4679 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4680 when fetching the baseclass_offset. No longer expect
4681 baseclass_offset returning -1. Handle unavailable base classes.
4682 Use val_print_invalid_address.
4683 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4684 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4685 `embedded_offset' and `val' parameters. Adjust.
4686 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4687 parameter, and change its type to gdb_byte pointer. Add
4688 `embedded_offset' and `val' parameters. Adjust. No longer expect
4689 baseclass_offset returning -1.
4690 (value_dynamic_cast): Use value_contents_for_printing rather than
4691 value_contents. Adjust.
4692 (search_struct_field): No longer expect baseclass_offset returning
4694 (search_struct_method): If reading memory from the target is
4695 necessary, wrap it in a new value to pass to baseclass_offset. No
4696 longer expect baseclass_offset returning -1.
4697 (find_method_list): No longer expect baseclass_offset returning
4698 -1. Use value_contents_for_printing rather than value_contents.
4699 * valprint.c (val_print_invalid_address): New function.
4700 * valprint.h (val_print_invalid_address): Declare.
4701 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4702 and `val' parameters. No longer expect baseclass_offset returning
4704 * gnu-v2-abi.c: Include "exceptions.h".
4705 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4706 parameters. Handle unavailable memory. Recurse through
4707 gnuv2_baseclass_offset directly, rather than through
4708 baseclass_offset. No longer returns -1 on not found, instead
4710 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4711 `val' parameters. Adjust.
4713 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4715 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4716 almost but not quite adjacent.
4718 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4720 * value.h (value_entirely_available): Declare.
4721 * value.c (value_entirely_available): New function.
4722 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4723 real type if the pointer is unavailable.
4725 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4727 * valops.c (value_repeat): Use read_value_memory instead of
4730 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4732 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4733 * value.c (value_contents_copy_raw, value_contents_copy): New
4735 (value_primitive_field): Use value_contents_copy_raw instead of
4737 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4739 (value_array, value_slice): Ditto.
4740 * valarith.c (value_subscripted_rvalue): Use
4741 value_contents_copy_raw instead of memcpy.
4743 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4745 <unavailable> references.
4747 * valops.c (get_value_at): Use value_from_contents_and_address,
4748 avoiding read_memory.
4750 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4752 * c-valprint.c (c_val_print): Print a string with unavailable
4753 contents as an array.
4755 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4757 * value.h (unpack_bits_as_long): Delete declaration.
4758 (unpack_value_bits_as_long): Declare.
4759 (unpack_value_field_as_long): Declare.
4760 (value_field_bitfield): Declare.
4761 * value.c (unpack_bits_as_long): Rename to...
4762 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4763 value parameters. Return the extracted result in a new output
4764 parameter. If the value contents are unavailable, return false,
4765 otherwise return true.
4766 (unpack_value_bits_as_long): New.
4767 (unpack_field_as_long): Rename to...
4768 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4769 Add embedded_offset and value parameters. Return the extracted
4770 result in a new output parameter. If the value contents are
4771 unavailable, return false, otherwise return true.
4772 (unpack_value_field_as_long): New.
4773 (unpack_field_as_long_1): New.
4774 (unpack_field_as_long): Reimplement as wrapper around
4775 unpack_value_field_as_long_1.
4776 (value_field_bitfield): New function.
4777 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4778 unpack_value_bits_as_long. Mark the value as unavailable, if it
4780 * jv-valprint.c (java_print_value_fields): Use
4781 value_field_bitfield.
4782 * p-valprint.c (pascal_object_print_value_fields): Use
4783 value_field_bitfield.
4784 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4786 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4788 * value.c (get_internalvar_integer): Also return the int value of
4789 TYPE_CODE_INT INTERNALVAR_VALUE values.
4790 (set_internalvar): Don't special case TYPE_CODE_INT.
4792 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4794 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4795 INTERNALVAR_POINTER.
4797 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4798 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4799 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4801 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4803 * value.h (value_available_contents_eq): Declare.
4804 * value.c (find_first_range_overlap): New function.
4805 (value_available_contents_eq): New function.
4806 * valprint.c (val_print_array_elements): Use
4807 value_available_contents_eq.
4808 * ada-valprint.c (val_print_packed_array_elements): Use
4809 value_available_contents_eq.
4810 * jv-valprint.c (java_value_print): Use
4811 value_available_contents_eq.
4813 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4815 * target.c (target_read_live_memory): New function.
4816 (memory_xfer_live_readonly_partial): New.
4817 (memory_xfer_partial): If reading from a traceframe, fallback to
4818 reading unavailable read-only memory from read-only regions of
4820 * tracepoint.c (disconnect_tracing): Adjust.
4821 (set_current_traceframe): New, factored out from
4822 set_traceframe_number.
4823 (set_traceframe_number): Reimplement to only change the traceframe
4824 number on the GDB side.
4825 (do_restore_current_traceframe_cleanup): Adjust.
4826 (make_cleanup_restore_traceframe_number): New.
4827 (cur_traceframe_number): New global.
4828 (tfile_open): Set cur_traceframe_number to no traceframe.
4829 (set_tfile_traceframe): New function.
4830 (tfile_trace_find): If looking up a traceframe using any method
4831 other than by number, make sure the current tfile traceframe
4832 matches gdb's current traceframe. Update the current tfile
4833 traceframe if the lookup succeeded.
4834 (tfile_fetch_registers, tfile_xfer_partial)
4835 (tfile_get_trace_state_variable_value): Make sure the remote
4836 traceframe matches gdb's current traceframe.
4837 * remote.c (remote_traceframe_number): New global.
4838 (remote_open_1): Set it to -1.
4839 (set_remote_traceframe): New function.
4840 (remote_fetch_registers, remote_store_registers)
4841 (remote_xfer_memory, remote_xfer_partial)
4842 (remote_get_trace_state_variable_value): Make sure the remote
4843 traceframe matches gdb's current traceframe.
4844 (remote_trace_find): If looking up a traceframe using any method
4845 other than by number, make sure the current remote traceframe
4846 matches gdb's current traceframe. Update the current remote
4847 traceframe if the lookup succeeded.
4848 * infrun.c (fetch_inferior_event): Adjust.
4849 * tracepoint.h (set_current_traceframe): Declare.
4850 (get_traceframe_number, set_traceframe_number): Add describing
4853 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4855 Mark pieces of values as unavailable if the corresponding memory
4858 * valops.c: Include tracepoint.h.
4859 (value_fetch_lazy): Use read_value_memory.
4860 (read_value_memory): New.
4861 * value.h (read_value_memory): Declare.
4862 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4863 * exec.c (section_table_available_memory): New function.
4864 * exec.h (section_table_available_memory): Declare.
4866 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4868 * Makefile.in (SFILES): Add memrange.c.
4869 (HFILES_NO_SRCDIR): Add memrange.h.
4870 (COMMON_OBS): Add memrange.o.
4871 * memrange.c: New file.
4872 * memrange.h: New file.
4873 * tracepoint.c: Include memrange.h.
4874 (struct mem_range): Delete.
4875 (mem_range_s): Delete.
4876 (traceframe_available_memory): New function.
4877 * tracepoint.h (traceframe_available_memory): Declare.
4879 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4881 * target.h (struct traceframe_info): Forward declare.
4882 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4883 (struct target_ops) <to_traceframe_info>: New field.
4884 (target_traceframe_info): New.
4885 * target.c (update_current_target): Inherit and default
4887 * remote.c (PACKET_qXfer_traceframe_info): New.
4888 (remote_protocol_features): Register qXfer:traceframe-info:read.
4889 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4890 (remote_traceframe_info): New.
4891 (init_remote_ops): Install it.
4892 (_initialize_remote): Install "set/show remote traceframe-info"
4894 * tracepoint.h (parse_traceframe_info): Declare.
4895 * tracepoint.c (struct mem_range): New.
4896 (mem_range_s): New typedef.
4897 (struct traceframe_info): New.
4898 (traceframe_info): New global.
4899 (free_traceframe_info): New function.
4900 (clear_traceframe_info): New function.
4901 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4903 (build_traceframe_info): New function.
4904 (tfile_traceframe_info): New function.
4905 (init_tfile_ops): Install tfile_traceframe_info.
4906 (traceframe_info_start_memory, free_result): New functions.
4907 (memory_attributes, traceframe_info_elements): New globals.
4908 (parse_traceframe_info, get_traceframe_info): New functions.
4909 * features/traceframe-info.dtd: New file.
4910 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4912 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4914 Base support for <unavailable> value contents.
4916 * value.h (value_bytes_available): Declare.
4917 (mark_value_bytes_unavailable): Declare.
4918 * value.c (struct range): New struct.
4919 (range_s): New typedef.
4920 (ranges_overlap): New function.
4921 (range_lessthan): New function.
4922 (ranges_contain_p): New function.
4923 (struct value) <unavailable>: New field.
4924 (value_bytes_available): New function.
4925 (mark_value_bytes_unavailable): New function.
4926 (require_not_optimized_out): Constify parameter.
4927 (require_available): New function.
4928 (value_contents_all, value_contents): Require all bytes be
4930 (value_free): Free `unavailable'.
4931 (value_copy): Copy `unavailable'.
4932 * valprint.h (val_print_unavailable): Declare.
4933 * valprint.c (valprint_check_validity): Rename `offset' parameter
4934 to `embedded_offset'. If printing a scalar, check whether the
4935 value chunk is available.
4936 (val_print_unavailable): New.
4937 (val_print_scalar_formatted): Check whether the value is
4939 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4940 pretty-printing unavailable values.
4942 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4944 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4945 * c-typeprint.c (c_type_print_args): Update the function comment. New
4946 variable param_type, initialize it. Remove const/volatile qualifiers
4947 for language_cplus and !show_artificial. Use param_type.
4949 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4951 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4952 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4953 * symtab.h (struct symtab) <next>: Comment extension.
4955 2011-02-12 Yao Qi <yao@codesourcery.com>
4957 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4959 2011-02-11 Yao Qi <yao@codesourcery.com>
4961 * common/Makefile.in: Add copyright header.
4963 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4965 * infrun.c (proceed): Move switching out and in of tfind mode from
4967 (fetch_inferior_event): ... to here.
4969 2011-02-11 Yao Qi <yao@codesourcery.com>
4971 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4973 * configure.ac: Add common to sub dir.
4974 * configure: Regenerate.
4976 2011-02-11 Yao Qi <yao@codesourcery.com>
4980 * common/Makefile.in: New.
4981 * common/configure.ac: New.
4982 * common/aclocal.m4: New.
4983 * common/configure: Generate.
4985 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4987 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4988 side of the parenthesis.
4991 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4992 * vec.h (VEC_block_remove): Fix comment.
4994 2011-02-08 Michael Snyder <msnyder@vmware.com>
4996 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4998 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5000 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5001 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5004 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5007 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5009 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5010 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5012 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5014 * dwarf2read.c (read_subroutine_type): Set special calling
5015 convention flag for functions compiled by IBM XL C for OpenCL.
5016 * ppc-sysv-tdep.c: Include "dwarf2.h"
5017 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5019 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5020 IBM OpenCL vector types calling convention.
5021 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5022 (ppc_sysv_abi_broken_return_value): Likewise.
5023 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5024 types calling convention.
5025 (ppc64_sysv_abi_return_value): Likewise.
5026 * spu-tdep.c: Include "dwarf2.h"
5027 (spu_return_value): Implement IBM OpenCL vector types calling
5030 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5032 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5033 correct ABI for AltiVec vector arguments.
5035 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5037 * valprint.c (val_print): Extend comment.
5038 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5039 interface explanation to val_print.
5040 (ada_val_print_array): Adjust comment to current interface.
5041 (print_field_values): Adjust comment to current interface.
5042 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5043 explanation to val_print.
5044 * f-valprint.c (f_val_print): Ditto.
5045 * jv-valprint.c (java_val_print): Ditto.
5046 * m2-valprint.c (m2_val_print): Ditto.
5047 * p-valprint.c (pascal_val_print): Ditto.
5049 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5051 * breakpoint.c (parse_breakpoint_sals): Fix description.
5053 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5054 Oguz Kayral <oguzkayral@gmail.com>
5056 * python/py-inferior.c (python_on_normal_stop): New function.
5057 (python_on_resume): New function.
5058 (python_inferior_exit): New function.
5059 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5060 inferior_exit observers.
5061 * python/py-evtregistry.c: New file.
5062 * python/py-threadevent.c : New file.
5063 * python/py-event.c: New file.
5064 * python/py-evts.c: New file.
5065 * python/py-continueevent.c: New file.
5066 * python/py-bpevent.c: New file.
5067 * python/py-signalevent.c: New file.
5068 * python/py-exetiedevent.c: New file.
5069 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5070 Move struct breakpoint_object from here...
5071 * python/python-internal.h: ... to here.
5072 * python/py-event.h: New file.
5073 * python/py-events.h: New file.
5074 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5075 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5076 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5077 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5078 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5079 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5080 Add build rules for all the above.
5082 2011-02-04 Tom Tromey <tromey@redhat.com>
5084 * dwarf2read.c (dwarf2_section_empty_p): New function.
5085 (dwarf2_read_section): Use dwarf2_section_empty_p.
5086 (dwarf2_section_size): New function.
5087 (dwarf2_get_section_info): Unconditionally read section.
5088 (dwarf2_read_index): Use dwarf2_section_empty_p.
5089 (partial_read_comp_unit_head): Use dwarf2_section_size.
5090 (dwarf2_symbol_mark_computed): Likewise.
5092 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5094 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5096 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5098 * mips-linux-tdep.c: Include xml-syscall.h.
5099 (mips_linux_get_syscall_number): New function.
5100 (mips_linux_init_abi): Add calls to
5101 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5102 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5103 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5104 * syscalls/mips-n32-linux.xml: New file.
5105 * syscalls/mips-n64-linux.xml: New file.
5106 * syscalls/mips-o32-linux.xml: New file.
5108 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5110 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5111 Complain about inverted range entries.
5112 (dwarf2_record_block_ranges): Likewise.
5114 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5117 * breakpoint.c (update_watchpoint): Fix name of the
5118 update_global_location_list function.
5119 (print_one_breakpoint): Fix typo.
5120 (_initialize_breakpoint): Remove extra space in hbreak help
5122 * breakpoint.h (struct bp_location) <length>: Fix field
5125 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5127 * regcache.c (registers_changed_ptid): Don't explictly always
5128 clear `current_regcache'. Only clear current_thread_ptid and
5129 current_thread_arch when PTID matches. Only reinit the frame
5130 cache if PTID matches the current inferior_ptid. Move alloca(0)
5132 (registers_changed): ... here.
5134 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5136 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5137 starts with __stack_chk_guard as stack guard symbol.
5139 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5141 * disasm.c (compare_lines): Handle the end of sequence markers
5142 within the line table to better support disassembling over
5143 compilation unit boundaries.
5145 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5147 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5148 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5149 implementation even if no symbols are available.
5150 (thumb_analyze_prologue): Update call to skip_prologue_function.
5151 (arm_analyze_prologue): Likewise.
5153 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5155 * arm-tdep.c: Include "observer.h".
5156 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5157 (arm_exidx_data_key): New static variable.
5158 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5159 (struct arm_exidx_data): Likewise.
5160 (arm_exidx_data_free): New function.
5161 (arm_compare_exidx_entries): Likewise.
5162 (arm_obj_section_from_vma): Likewise.
5163 (arm_exidx_new_objfile): Likewise.
5164 (arm_find_exidx_entry): Likewise.
5165 (arm_exidx_fill_cache): Likewise.
5166 (arm_exidx_unwind_sniffer): Likewise.
5167 (arm_exidx_unwind): New global variable.
5168 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5169 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5170 observer. Register arm_exidx_data_key as objfile data.
5172 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5174 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5175 due to accessing uninitialized variable. Fix indentation.
5177 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5179 * c-valprint.c (c_value_print): When doing virtual base pointer
5180 adjustment, create a new value with adjusted contents rather than
5181 changing the contents of the value being printed (and getting it
5184 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5186 * xml-support.c (xml_find_attribute): New.
5187 (xinclude_start_include): Use it.
5188 * xml-support.h (xml_find_attribute): Declare.
5189 * memory-map.c (memory_map_start_memory)
5190 (memory_map_start_property): Use xml_find_attribute.
5191 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5193 * remote.c (start_thread): Use xml_find_attribute.
5194 * solib-target.c (library_list_start_segment)
5195 (library_list_start_section, library_list_start_library)
5196 (library_list_start_list): Use xml_find_attribute.
5197 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5198 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5199 (tdesc_start_field): Use xml_find_attribute.
5201 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5203 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5204 (BUILD_OCL_VTYPES): Update.
5206 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5208 * configure.ac: Work around non-GNU sed limitation when computing
5209 python version number.
5210 * configure: Regenerate.
5212 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5214 Fix debug printing of TYPE_INSTANCE.
5215 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5216 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5218 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5220 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5221 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5222 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5223 * ada-operator.inc: Rename the file to ...
5224 * ada-operator.def: ... here, wrap all the entries by macro OP.
5225 * expprint.c (op_name_standard): Remove all the entries. Include
5226 "std-operator.def" instead.
5227 * expression.h (enum exp_opcode): Include "std-operator.def" and
5228 "ada-operator.def". Move all the entries ...
5229 * std-operator.def: ... here, wrap all the entries by macro OP.
5231 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5233 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5234 * breakpoint.c (remove_jit_event_breakpoints): New function.
5235 * jit.c (jit_descriptor_addr): Delete.
5236 (registering_code): Delete.
5237 (clear_int): Delete.
5238 (jit_inferior_data): New variable.
5239 (struct jit_inferior_data): New type.
5240 (get_jit_inferior_data): New function.
5241 (jit_inferior_data_cleanup): New function.
5242 (jit_read_descriptor): Adjust.
5243 (jit_register_code): Adjust.
5244 (jit_breakpoint_re_set_internal): New function; move code here ...
5245 (jit_inferior_init): ... from here.
5246 (jit_breakpoint_re_set): Adjust.
5247 (jit_reset_inferior_data_and_breakpoints): New function.
5248 (jit_inferior_created_observer): Adjust.
5249 (jit_inferior_exit_hook): Adjust.
5250 (jit_executable_changed_observer): New function.
5251 (jit_event_handler): Adjust.
5252 (_initialize_jit): Adjust.
5254 2011-01-31 Michael Snyder <msnyder@vmware.com>
5256 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5259 2011-01-31 Tom Tromey <tromey@redhat.com>
5262 * python/python.c (execute_gdb_command): Call
5263 prevent_dont_repeat.
5264 * top.c (suppress_dont_repeat): New global.
5265 (dont_repeat): Use it.
5266 (prevent_dont_repeat): New function.
5267 * command.h (prevent_dont_repeat): Declare.
5269 2011-01-31 Tom Tromey <tromey@redhat.com>
5271 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5272 * python/py-breakpoint.c (bppy_set_silent): Use
5273 breakpoint_set_silent.
5274 (bppy_set_thread): Use breakpoint_set_thread.
5275 (bppy_set_task): Use breakpoint_set_task.
5276 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5277 (breakpoint_set_task): Declare.
5278 (make_breakpoint_silent): Remove.
5279 * breakpoint.c (breakpoint_set_silent): New function.
5280 (breakpoint_set_thread): Likewise.
5281 (breakpoint_set_task): Likewise.
5282 (make_breakpoint_silent): Remove.
5284 2011-01-31 Tom Tromey <tromey@redhat.com>
5286 * breakpoint.h (user_breakpoint_p): Declare.
5287 * breakpoint.c (user_breakpoint_p): New function.
5288 (breakpoint_1): Use it.
5289 (save_breakpoints): Likewise.
5291 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5293 * configure.ac: Add handling of Python distribution on Windows.
5294 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5295 sysconfig variables are not defined, then do not use them.
5296 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5297 instead. On Windows, return all paths using forward-slashes
5298 rather than backslashes.
5300 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5302 * configure.ac: Remove fallback behavior for building
5303 against Python. Remove tweaking of Python include path.
5304 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5305 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5306 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5307 Always restore CPPFLAGS and LIBS after linking test.
5308 * configure: Regenerated.
5309 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5310 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5311 * python/python-internal.h: Adjust includes of Python .h files.
5313 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5315 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5318 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5320 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5323 2011-01-31 Yao Qi <yao@codesourcery.com>
5325 * arm-linux-nat.c: Update calls to regcache_register_status
5326 instead of regcache_valid_p.
5327 * aix-thread.c: Likewise.
5328 * i386gnu-nat.c: Likewise.
5330 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5333 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5334 touching TYPE_FIELD_ARTIFICIAL.
5336 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5338 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5341 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5343 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5344 selected, don't try iterating over the traceframe's blocks.
5345 (tfile_has_stack): If there's no traceframe selected, then there's
5347 (tfile_has_registers): If there's no traceframe selected, then
5348 there's no registers.
5350 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5352 * target.c (memory_xfer_partial): No need to restore shadows if we
5353 haven't read anything.
5355 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5357 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5358 and val_print_scalar_formatted.
5360 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5362 * tracepoint.c (tfile_read): New.
5363 (tfile_open): Use it.
5364 (tfile_get_traceframe_address): Use it.
5365 (tfile_trace_find): Use it.
5366 (walk_blocks_callback_func): New typedef.
5367 (match_blocktype): New function.
5368 (traceframe_walk_blocks): New function.
5369 (traceframe_find_block_type): New function.
5370 (tfile_fetch_registers, tfile_xfer_partial)
5371 (tfile_get_trace_state_variable_value): Use
5372 traceframe_find_block_type and tfile_read.
5374 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5376 * remote-mips.c: Add internationalization mark ups. Remove
5377 trailing \n from already marked up strings.
5379 2011-01-26 Tom Tromey <tromey@redhat.com>
5381 * python/py-prettyprint.c (print_string_repr): Clear
5382 'addressprint' option when calling val_print_string.
5383 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5384 option when calling val_print_string.
5386 2011-01-26 Tom Tromey <tromey@redhat.com>
5388 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5390 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5392 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5393 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5394 (gdb_py_long_as_ulongest): New defines.
5395 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5396 (gdb_py_int_as_long): Declare.
5397 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5398 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5399 (valpy_long): Add comment.
5400 * python/py-utils.c (get_addr_from_python): Use
5401 gdb_py_long_as_ulongest. Handle overflow properly.
5402 (gdb_py_object_from_longest): New function.
5403 (gdb_py_object_from_ulongest): Likewise.
5404 (gdb_py_int_as_long): Likewise.
5405 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5406 * python/py-symtab.c (salpy_get_pc): Use
5407 gdb_py_long_from_ulongest.
5408 (salpy_get_line): Use PyInt_FromLong.
5409 * python/py-param.c (set_parameter_value): Use
5411 * python/py-lazy-string.c (stpy_get_address): Use
5412 gdb_py_long_from_ulongest.
5413 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5414 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5415 * python/py-breakpoint.c (bppy_set_thread): Use
5417 (bppy_set_task): Likewise.
5418 (bppy_set_ignore_count): Likewise.
5419 (bppy_set_hit_count): Likewise.
5420 * python/py-block.c (blpy_get_start): Use
5421 gdb_py_object_from_ulongest.
5422 (blpy_get_end): Likewise.
5423 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5425 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5428 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5429 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5430 equality test for objfile, initialize addr_low if needed.
5432 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5434 * tui/tui-regs.c (tui_register_format): Remove dead code.
5436 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5438 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5439 instead of print_scalar_formatted.
5440 (print_scalar_formatted): Don't handle 's' format strings here,
5441 and add an assertion that we never see such format here.
5442 * valprint.h (val_print_scalar_formatted): Declare.
5443 * valprint.c (val_print_scalar_formatted): New.
5444 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5445 instead of print_scalar_formatted.
5446 * jv-valprint.c (java_val_print): Ditto.
5447 * p-valprint.c (pascal_val_print): Ditto.
5448 * ada-valprint.c (ada_val_print_1): Ditto.
5449 * f-valprint.c (f_val_print): Ditto.
5450 * infcmd.c (registers_info): Ditto.
5451 * m2-valprint.c (m2_val_print): Ditto.
5453 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5455 * m2-valprint.c (print_unbounded_array): Pass
5456 value_contents_for_printing rather than value_contents, to
5457 m2_print_array_contents. Also pass in the value.
5459 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5461 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5462 (save_gdb_index_command): Switch to .gdb_index version 4.
5464 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5466 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5467 than frame_register, and always pass a valid value to val_print.
5469 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5471 Centralize printing "<optimized out>".
5473 * valprint.h (val_print_optimized_out): Declare.
5474 * cp-valprint.c (cp_print_value_fields): Use
5475 val_print_optimized_out.
5476 * jv-valprint.c (java_print_value_fields): Ditto.
5477 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5478 * printcmd.c (print_formatted): Ditto.
5479 * valprint.c (valprint_check_validity): Ditto.
5480 (value_check_printable): Ditto.
5481 (val_print_optimized_out): New.
5483 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5485 * infcmd.c (default_print_registers_info): Allocate values so to
5486 never pass a NULL value to val_print.
5488 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5490 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5491 boolean. Make sure to always pass a value that matches the
5492 contents buffer to callees. Preserve `address' for following
5494 * value.c (value_contents_for_printing_const): New.
5495 (value_address): Constify value argument.
5496 * value.h (value_contents_for_printing_const): Declare.
5497 (value_address): Constify value argument.
5499 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5501 * regcache.c (struct regcache_descr): Rename
5502 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5503 and sizeof_cooked_register_valid_p to
5504 sizeof_cooked_register_status.
5505 (init_regcache_descr): Adjust.
5506 (struct regcache): Rename register_valid_p field to
5508 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5509 (do_cooked_read): Adjust.
5510 (regcache_valid_p): Rename to ...
5511 (regcache_register_status): ... this. Adjust.
5512 (regcache_invalidate): Adjust.
5513 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5515 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5516 as unavailable, not valid.
5517 (regcache_dump): Adjust.
5518 * regcache.h (enum register_status): New.
5519 (regcache_register_status): Declare.
5520 (regcache_invalidate): Delete declaration.
5521 * corelow.c (get_core_registers): Adjust.
5522 * tracepoint.c (tfile_fetch_registers): Adjust.
5523 * trad-frame.c (REG_VALUE): Rename to ...
5524 (TF_REG_VALUE): ... this.
5525 (REG_UNKNOWN): Rename to ...
5526 (TF_REG_UNKNOWN): ... this.
5527 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5528 * mi/mi-main.c (register_changed_p): Adjust.
5530 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5532 * regcache.c (struct regcache_descr): Remove outdated comment.
5533 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5535 (regcache_xmalloc): Rename to ...
5536 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5537 Allocate the regcache type accordingly.
5538 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5539 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5540 cooked registers, not raw.
5541 (regcache_dup_no_passthrough): Delete.
5542 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5543 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5544 mention obsolete write_register_bytes.
5545 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5547 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5549 Stop remote_read_bytes from handling partial reads itself.
5551 * remote-fileio.c: Include target.h.
5552 (remote_fileio_write_bytes): Delete.
5553 (remote_fileio_func_open, remote_fileio_func_write)
5554 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5556 (remote_fileio_func_stat): Use target_read_memory and
5557 target_write_memory.
5558 (remote_fileio_func_gettimeofday): Use target_write_memory.
5559 (remote_fileio_func_system): Use target_read_memory.
5560 * remote.c (remote_write_bytes): Make it static.
5561 (remote_read_bytes): Don't handle partial reads here.
5562 * remote.h (remote_read_bytes): Delete declaration.
5564 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5566 Simplify XML parsing a bit.
5568 * xml-support.h (gdb_xml_parse_quick): Declare.
5569 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5570 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5572 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5573 gdb_xml_create_parser_and_cleanup_1.
5574 (gdb_xml_parse_quick): New.
5575 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5576 * osdata.c (osdata_parse): Ditto.
5577 * remote.c (remote_threads_info): Ditto.
5578 * solib-target.c (solib_target_parse_libraries): Ditto.
5579 * xml-syscall.c (syscall_parse_xml): Ditto.
5580 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5582 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5584 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5585 with remote-mips.o added to gdb_target_obs.
5586 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5588 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5590 * ada-valprint.c (val_print_packed_array_elements): Pass the
5591 correct struct value to val_print.
5592 (ada_val_print_1): Ditto.
5594 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5596 Don't lose embedded_offset in printing routines throughout.
5598 * valprint.h (val_print_array_elements): Change prototype.
5599 * valprint.c (val_print_array_elements): Add `embedded_offset'
5600 parameter, and adjust to pass it down to val_print, while passing
5601 `valaddr' or `address' unmodified. Take embedded_offset into
5602 account when checking repetitions.
5603 * c-valprint.c (c_val_print): Pass embedded_offset to
5604 val_print_array_elements instead of adjusting `valaddr' and
5606 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5607 embedded_offset to val_print_array_elements instead of adjusting
5609 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5610 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5611 val_print_array_elements and pascal_object_print_value_fields
5612 instead of adjusting `valaddr'.
5613 (pascal_object_print_value_fields): Add `offset' parameter, and
5615 (pascal_object_print_value): Add `offset' parameter, and adjust to
5617 (pascal_object_print_static_field): Use
5618 value_contents_for_printing/value_embedded_offset, rather than
5620 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5621 parameter, and adjust to use it. Use
5622 value_contents_for_printing/value_embedded_offset, rather than
5624 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5625 (ada_val_print_array): Add `offset' parameter, and adjust to use
5627 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5628 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5629 Instead work with offsets. Use
5630 value_contents_for_printing/value_embedded_offset, rather than
5631 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5632 and use value_from_pointer to extract a target pointer, rather
5633 than value_from_longest.
5634 (print_variant_part): Add `offset' parameter. Replace
5635 `outer_valaddr' parameter by a new `outer_offset' parameter.
5636 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5637 (ada_value_print): Use
5638 value_contents_for_printing/value_embedded_offset, rather than
5640 (print_record): Add `offset' parameter, and adjust to pass it
5642 (print_field_values): Add `offset' parameter. Replace
5643 `outer_valaddr' parameter by a new `outer_offset' parameter.
5644 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5645 Use value_contents_for_printing/value_embedded_offset, rather than
5647 * d-valprint.c (dynamic_array_type): Use
5648 value_contents_for_printing/value_embedded_offset, rather than
5650 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5651 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5652 (java_print_value_fields): Take `offset' into account. Don't
5653 re-adjust `valaddr'. Instead pass down adjusted offsets.
5654 (java_val_print): Take `embedded_offset' into account. Pass it to
5655 java_print_value_fields.
5656 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5657 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5658 down adjusted offsets.
5659 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5660 (f_val_print): Take `embedded_offset' into account.
5662 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5664 * inflow.c: Include "gdbcmd.h".
5665 (interactive_mode): New static global, moved here from top.c.
5666 (show_interactive_mode): New function, moved here from top.c.
5667 use gdb_has_a_terminal instead of input_from_terminal_p to
5668 determine the current mode.
5669 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5671 (_initialize_inflow): Add the "set/show interactive-mode"
5672 commands. Moved here from top.c, after having adjusted slightly
5674 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5676 (input_from_terminal_p): Remove handling of "interactive-mode"
5677 setting, moved to infow.c.
5678 (init_main): Remove creation of the "set/show interactive-mode"
5679 commands, moved to inflow.c.
5681 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5683 * NEWS: Add entry for native ia64-hpux support.
5685 2011-01-19 Tom Tromey <tromey@redhat.com>
5688 * thread.c (free_thread): Free 'name'.
5689 (print_thread_info): Emit thread name. Change CLI output.
5690 (thread_name_command): New function.
5691 (do_captured_thread_select): Emit newline.
5692 (_initialize_thread): Register 'thread name' command.
5693 * target.h (struct target_ops) <to_thread_name>: New field.
5694 (target_thread_name): New macro.
5695 * target.c (update_current_target): Handle to_thread_name.
5696 * python/py-infthread.c (thpy_get_name): New function.
5697 (thpy_set_name): Likewise.
5698 (thread_object_getset): Add "name".
5699 * linux-nat.c (linux_nat_thread_name): New function.
5700 (linux_nat_add_target): Set to_thread_name.
5701 * gdbthread.h (struct thread_info) <name>: New field.
5703 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5705 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5706 (ada_val_print_1): Likewise.
5708 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5710 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5711 upper limit address is not greater than the function end address
5712 when the upper limit could not be computed using the debugging
5715 2011-01-17 Tom Tromey <tromey@redhat.com>
5717 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5719 * utils.c: Include gdb_regex.h.
5720 (do_regfree_cleanup): New function.
5721 (make_regfree_cleanup): Likewise.
5722 (get_regcomp_error): Likewise.
5723 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5725 2011-01-17 Tom Tromey <tromey@redhat.com>
5727 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5730 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5732 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5733 for internal variables.
5734 (last_was_structop): New static variable.
5735 (COMPLETE): New token.
5736 (field_exp): New rule to group all '.' suffix handling.
5737 Add mark_struct_expression calls when approriate to be able
5738 to correctly find fields for completion.
5739 (yylex): Adapt to handle field completion and set INTVAR when
5742 2011-01-14 Yao Qi <yao@codesourcery.com>
5744 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5745 save_reggroup, restore_reggroup and all_reggroup.
5747 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5749 * ada-valprint. (ada_printchar): Use the correct type length
5750 in call to ada_emit_char.
5751 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5753 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5755 * solib-som.h (hpux_major_release): Declare variable here.
5756 * solib-som.c: Remove <sys/utsname.h> header.
5757 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5758 (hpux_major_release): Make global, change default value to
5759 DEFAULT_HPUX_MAJOR_RELEASE.
5760 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5761 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5762 Add "solib-som.h" header.
5763 (set_hpux_major_release): New function.
5764 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5766 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5768 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5770 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5772 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5773 new-line at end of warning message.
5774 (ia64_hpux_store_register): Remove trailing new-line at end of
5776 * ia64-hpux-tdep.c: Rephrase comment.
5777 * solib-ia64-hpux.c (struct dld_info): Change type of field
5778 dld_flags from "long long" to ULONGEST.
5780 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5782 * target.h (deprecated_child_ops): Delete declaration.
5783 * target.c (deprecated_child_ops): Delete definition.
5785 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5787 * Makefile.in (hpux-thread.o): Delete rule.
5788 * configure.ac: Don't check for HPUX DCE threads support.
5789 * configure, config.in: Regenerate.
5790 * hppa-hpux-nat.c (child_suppress_run): Delete.
5791 (hppa_hpux_child_can_run): Delete.
5792 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5793 * hpux-thread.c: Delete.
5795 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5797 * hpux-thread.c (hpux_pid_to_str): Delete.
5799 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5801 * ada-valprint.c (ada_emit_char): Remove strange code.
5802 Check that c is <= UCHAR_MAX before passing it to isascii.
5803 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5805 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5807 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5808 to the case where instream is stdin.
5810 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5812 * ia64-tdep.h (struct regcache): Forward declare.
5813 (struct ia64_infcall_ops): New struct type.
5814 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5816 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5817 Renames ia64_find_global_pointer.
5818 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5819 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5820 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5822 (ia64_infcall_ops): New static global constant.
5823 (ia64_gdbarch_init): Set tdep->infcall_ops.
5824 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5825 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5826 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5827 (ia64_hpux_dummy_code): New static global constant.
5828 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5829 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5830 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5832 (ia64_hpux_infcall_ops): New static global constant.
5833 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5834 for inferior function calls to work properly on ia64-hpux.
5836 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5838 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5839 * ia64-tdep.h (struct frame_info): forward declaration.
5840 (struct gdbarch_tdep): Add field size_of_register_frame.
5841 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5842 to determine the size of the register frame.
5843 (ia64_size_of_register_frame): New function.
5844 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5845 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5846 (IA64_HPUX_UREG_REASON): New macro.
5847 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5849 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5850 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5851 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5854 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5856 Add support for ia64-hpux.
5857 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5858 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5860 * configure.host: Add handling for ia64-hpux hosts. Add associated
5862 * configure.tgt: Add handling for ia64-hpux targets.
5863 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5864 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5865 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5867 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5869 [ttrace] Compute thread list immediately after attach.
5870 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5872 (inf_ttrace_attach): Use it.
5874 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5876 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5877 if we could not determine the frame's function address. Instead,
5878 use the frame's PC, and then continue.
5880 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5882 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5883 not already defined.
5885 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5887 * ia64-tdep.c (ia64_struct_type_p): New function.
5888 (ia64_extract_return_value): Handle integral values that are
5889 less than 8 bytes long.
5890 (ia64_push_dummy_call): Likewise.
5892 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5894 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5895 floatformat_ia64_ext.
5896 (floatformat_ia64_ext_big): New static const.
5897 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5899 2011-01-12 Tom Tromey <tromey@redhat.com>
5901 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5903 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5904 (mi_cmd_thread_list_ids): Likewise.
5905 (mi_cmd_data_list_changed_registers): Likewise.
5906 (mi_cmd_data_list_register_values): Likewise.
5907 (mi_cmd_data_write_register_values): Likewise.
5908 (mi_cmd_data_evaluate_expression): Likewise.
5909 (mi_cmd_data_read_memory): Likewise.
5910 (mi_cmd_data_read_memory_bytes): Likewise.
5911 (mi_cmd_data_write_memory): Likewise.
5912 (mi_cmd_enable_timings): Likewise.
5913 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5914 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5915 (mi_cmd_var_delete): Likewise.
5916 (mi_cmd_var_set_format): Likewise.
5917 (mi_cmd_var_show_format): Likewise.
5918 (mi_cmd_var_info_num_children): Likewise.
5919 (mi_cmd_var_list_children): Likewise.
5920 (mi_cmd_var_info_type): Likewise.
5921 (mi_cmd_var_info_expression): Likewise.
5922 (mi_cmd_var_show_attributes): Likewise.
5923 (mi_cmd_var_assign): Likewise.
5924 (mi_cmd_var_update): Likewise.
5925 (mi_cmd_enable_pretty_printing): Likewise.
5926 (mi_cmd_var_set_update_range): Likewise.
5927 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5929 (mi_cmd_target_file_put): Likewise.
5930 (mi_cmd_target_file_delete): Likewise.
5931 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5933 (mi_cmd_stack_info_depth): Likewise.
5934 (mi_cmd_stack_list_locals): Likewise.
5935 (mi_cmd_stack_list_args): Likewise.
5936 (mi_cmd_stack_select_frame): Likewise.
5937 (mi_cmd_stack_select_frame): Likewise.
5938 (mi_cmd_stack_info_frame): Likewise.
5939 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5941 (mi_cmd_file_list_exec_source_files): Likewise.
5942 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5943 (mi_cmd_env_cd): Likewise.
5944 (mi_cmd_env_path): Likewise.
5945 (mi_cmd_env_dir): Likewise.
5946 (mi_cmd_inferior_tty_show): Likewise.
5947 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5948 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5949 (mi_cmd_break_watch): Likewise.
5951 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5953 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5954 (ppc_linux_insert_hw_breakpoint): Likewise.
5955 (ppc_linux_remove_hw_breakpoint): Likewise.
5956 (ppc_linux_insert_watchpoint): Likewise.
5958 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5959 Jan Kratochvil <jan.kratochvil@redhat.com>
5961 PR fortran/11104 and DWARF unbound arrays detection.
5962 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5963 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5964 unspecified upper bound.
5965 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5966 variables array_size_array, tmp_type and offset_item. New variable
5967 array. Remove call to f77_get_upperbound. New variables array_type
5968 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5969 the final call to deprecated_set_value_type.
5971 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5973 Make value allocations more lazy.
5974 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5975 instead of allocate_value and set_value_lazy when possible.
5976 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5977 instead of allocate_value and set_value_lazy.
5978 * findvar.c (value_of_register_lazy): Likewise.
5979 (read_var_value): Remove V preallocation, call just check_typedef in
5980 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5981 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5982 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5983 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5984 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5985 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5986 the end, remove set_value_lazy there.
5987 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5988 instead of allocate_value and set_value_lazy when possible.
5989 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5990 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5991 of allocate_value and set_value_lazy.
5992 (value_from_contents_and_address): Use allocate_value_lazy instead of
5993 allocate_value and set_value_lazy when possible.
5995 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5997 * disasm.c (dump_insns): Support dumping opcodes for MI.
5998 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5999 dumping of instruction opcodes.
6001 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6003 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6006 2011-01-11 Tom Tromey <tromey@redhat.com>
6008 * thread.c (do_captured_thread_select): Emit newline before
6011 2011-01-11 Michael Snyder <msnyder@vmware.com>
6013 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6014 * score-tdep.c: Ditto.
6015 * score-tdep.h: Ditto.
6016 * ser-base.c: Ditto.
6017 * ser-go32.c: Ditto.
6020 * ser-mingw.c: Ditto.
6021 * ser-pipe.c: Ditto.
6023 * ser-unix.c: Ditto.
6024 * sh64-tdep.c: Ditto.
6025 * shnbsd-nat.c: Ditto.
6029 * solib-darwin.c: Ditto.
6030 * solib-frv.c: Ditto.
6032 * solib-irix.c: Ditto.
6033 * solib-osf.c: Ditto.
6034 * solib-pa64.c: Ditto.
6035 * solib-som.c: Ditto.
6036 * solib-spu.c: Ditto.
6037 * solib-sunos.c: Ditto.
6038 * solib-svr4.c: Ditto.
6040 * sol-thread.c: Ditto.
6044 * sparc64-linux-tdep.c: Ditto.
6045 * sparc64-tdep.c: Ditto.
6046 * sparc-linux-nat.c: Ditto.
6047 * sparc-linux-tdep.c: Ditto.
6048 * sparc-sol2-nat.c: Ditto.
6049 * sparc-sol2-tdep.c: Ditto.
6050 * sparc-tdep.c: Ditto.
6051 * sparc-tdep.h: Ditto.
6052 * spu-tdep.c: Ditto.
6053 * stabsread.c: Ditto.
6054 * stabsread.h: Ditto.
6062 * target-descriptions.c: Ditto.
6063 * target-descriptions.h: Ditto.
6065 * target-memory.c: Ditto.
6066 * terminal.h: Ditto.
6069 * tracepoint.c: Ditto.
6070 * tracepoint.h: Ditto.
6071 * trad-frame.h: Ditto.
6072 * typeprint.c: Ditto.
6074 2011-01-11 Michael Snyder <msnyder@vmware.com>
6076 * ui-file.c: Comment cleanup, mostly periods and spaces.
6081 * v850-tdep.c: Ditto.
6082 * valarith.c: Ditto.
6084 * valprint.c: Ditto.
6085 * valprint.h: Ditto.
6090 * vax-tdep.c: Ditto.
6094 * windows-nat.c: Ditto.
6095 * windows-tdep.c: Ditto.
6096 * xcoffread.c: Ditto.
6097 * xcoffsolib.c: Ditto.
6098 * xml-support.c: Ditto.
6099 * xstormy16-tdep.c: Ditto.
6100 * xtensa-tdep.c: Ditto.
6101 * xtensa-tdep.h: Ditto.
6103 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6105 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6106 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6108 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6109 Thiago Jung Bauermann <bauerman@br.ibm.com>
6111 Implement support for PowerPC BookE ranged watchpoints.
6113 (struct breakpoint_ops) <resources_needed>: New method.
6114 Initialize to NULL in all existing breakpoint_ops instances.
6115 (struct breakpoint) <exact>: New field.
6116 (target_exact_watchpoints): Declare external global.
6117 * breakpoint.c (target_exact_watchpoints): New global flag.
6118 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6119 b->enable_state to bp_enabled before calling
6120 hw_watchpoint_used_count.
6121 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6122 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6124 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6125 if the watchpoint is exact.
6126 (resources_needed_watchpoint): New function.
6127 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6128 (watch_command_1): Set b->exact if the user asked for an exact
6129 watchpoint and one can be set.
6130 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6131 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6132 the user asks for an exact watchpoint and one can be set. Return
6133 number of needed debug registers to watch the expression.
6134 * gdbtypes.c (is_scalar_type): New function, based on
6135 valprint.c:scalar_type_p.
6136 (is_scalar_type_recursive): New function.
6137 * gdbtypes.h (is_scalar_type_recursive): Declare.
6138 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6139 handle regions when ranged watchpoints are available.
6140 (create_watchpoint_request): New function.
6141 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6142 create_watchpoint_request.
6143 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6144 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6145 `set powerpc' and `show powerpc' commands.
6146 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6147 Mention documentation comment in the target macro.
6148 (target_region_ok_for_hw_watchpoint): Document return value.
6150 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6152 * breakpoint.c (update_watchpoint): Decide on using a software or
6153 hardware watchpoint after the bp_locations are created.
6155 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6157 Convert hardware watchpoints to use breakpoint_ops.
6158 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6159 <insert_location>: ... this. Return int instead of void.
6160 Accept pointer to struct bp_location instead of pointer to
6161 struct breakpoint. Adapt all implementations.
6162 (breakpoint_ops) <remove>: Rename to...
6163 <remove_location>: ... this. Accept pointer to struct bp_location
6164 instead of pointer to struct breakpoint. Adapt all implementations.
6165 * breakpoint.c (insert_catchpoint): Delete function.
6166 (insert_bp_location): Call the watchpoint or catchpoint's
6167 breakpoint_ops.insert method.
6168 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6169 breakpoint_ops.remove method.
6170 (insert_watchpoint, remove_watchpoint): New functions.
6171 (watchpoint_breakpoint_ops): New structure.
6172 (watch_command_1): Initialize the OPS field.
6173 * inf-child.c (inf_child_insert_fork_catchpoint)
6174 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6175 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6176 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6178 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6179 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6180 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6181 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6182 * target.c (update_current_target): Change default implementation of
6183 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6184 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6185 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6186 to_set_syscall_catchpoint to return_one.
6187 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6188 (debug_to_insert_exec_catchpoint): Report return value.
6189 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6190 (to_insert_exec_catchpoint): Change declaration to return int instead
6193 2011-01-11 Michael Snyder <msnyder@vmware.com>
6195 * arm-tdep.c: Internationalization.
6198 * fork-child.c: Ditto.
6199 * nto-procfs.c: Ditto.
6200 * ppc-sysv-tdep.c: Ditto.
6202 * remote-mips.c: Ditto.
6204 * rs6000-nat.c: Ditto.
6205 * rs6000-tdep.c: Ditto.
6209 * xml-support.c: Ditto.
6210 * mi/mi-cmd-break.c: Ditto.
6211 * mi/mi-cmd-var.c: Ditto.
6212 * mi/mi-interp.c: Ditto.
6213 * mi/mi-main.c: Ditto.
6215 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6217 * remote-sim.c (gdbsim_store_register): Update API to
6218 sim_store_register to check more error conditions.
6220 2011-01-10 Michael Snyder <msnyder@vmware.com>
6222 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6223 * nto-tdep.c: Ditto.
6224 * nto-tdep.h: Ditto.
6225 * objc-exp.y: Ditto.
6226 * objc-lang.c: Ditto.
6227 * objfiles.c: Ditto.
6228 * objfiles.h: Ditto.
6229 * observer.c: Ditto.
6230 * opencl-lang.c: Ditto.
6233 * parser-defs.h: Ditto.
6236 * posix-hdep.c: Ditto.
6237 * ppcbug-rom.c: Ditto.
6238 * ppc-linux-nat.c: Ditto.
6239 * ppc-linux-tdep.c: Ditto.
6240 * ppc-linux-tdep.h: Ditto.
6241 * ppcnbsd-tdep.c: Ditto.
6242 * ppcobsd-tdep.c: Ditto.
6243 * ppcobsd-tdep.h: Ditto.
6244 * ppc-sysv-tdep.c: Ditto.
6245 * ppc-tdep.h: Ditto.
6246 * printcmd.c: Ditto.
6247 * proc-abi.c: Ditto.
6248 * proc-flags.c: Ditto.
6250 * proc-utils.h: Ditto.
6251 * progspace.h: Ditto.
6252 * prologue-value.c: Ditto.
6253 * prologue-value.h: Ditto.
6254 * psympriv.h: Ditto.
6256 * p-typeprint.c: Ditto.
6257 * p-valprint.c: Ditto.
6258 * ravenscar-sparc-thread.c: Ditto.
6259 * ravenscar-thread.c: Ditto.
6260 * ravenscar-thread.h: Ditto.
6262 * regcache.c: Ditto.
6263 * regcache.h: Ditto.
6265 * remote-fileio.c: Ditto.
6266 * remote-fileio.h: Ditto.
6268 * remote-m32r-sdi.c: Ditto.
6269 * remote-mips.c: Ditto.
6270 * remote-sim.c: Ditto.
6271 * rs6000-aix-tdep.c: Ditto.
6272 * rs6000-nat.c: Ditto.
6273 * rs6000-tdep.c: Ditto.
6275 2011-01-10 Michael Snyder <msnyder@vmware.com>
6277 * charset.c (validate): Internationalization.
6278 * coffread.c (read_one_sym): Ditto.
6279 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6280 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6281 * inflow.c (new_tty): Ditto.
6282 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6283 * m32c-tdep.c (m32c_return_value): Ditto.
6284 * mep-tdep.c (mep_store_return_value): Ditto.
6285 * score-tdep.c (score7_fetch_insn): Ditto.
6286 * ser-mingw.c (pipe_windows_open): Ditto.
6287 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6288 * spu-tdep.c (spu_register_type): Ditto.
6289 * tracepoint.c (trace_find_command): Ditto.
6290 * valarith.c (value_pos): Ditto.
6292 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6294 * ada-valprint.c (printstr): Minor comment reformatting.
6296 2011-01-08 Michael Snyder <msnyder@vmware.com>
6298 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6301 2011-01-08 Michael Snyder <msnyder@vmware.com>
6303 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6304 * hppa-hpux-tdep.c: Ditto.
6305 * hppa-linux-nat.c: Ditto.
6306 * hppa-linux-tdep.c: Ditto.
6307 * hppanbsd-tdep.c: Ditto.
6308 * hppa-tdep.c: Ditto.
6309 * hppa-tdep.h: Ditto.
6310 * hpux-thread.c: Ditto.
6311 * i386-cygwin-tdep.c: Ditto.
6312 * i386-darwin-nat.c: Ditto.
6313 * i386gnu-nat.c: Ditto.
6314 * i386-linux-nat.c: Ditto.
6315 * i386-linux-tdep.c: Ditto.
6316 * i386-nat.c: Ditto.
6317 * i386-nat.h: Ditto.
6318 * i386nbsd-tdep.c: Ditto.
6319 * i386-sol2-nat.c: Ditto.
6320 * i386-stub.c: Ditto.
6321 * i386-tdep.c: Ditto.
6322 * i386-tdep.h: Ditto.
6323 * i387-tdep.c: Ditto.
6324 * ia64-linux-nat.c: Ditto.
6325 * ia64-linux-tdep.c: Ditto.
6326 * ia64-tdep.c: Ditto.
6330 * inferior.c: Ditto.
6331 * inferior.h: Ditto.
6337 * iq2000-tdep.c: Ditto.
6338 * irix5-nat.c: Ditto.
6344 * jv-typeprint.c: Ditto.
6345 * jv-valprint.c: Ditto.
6346 * language.c: Ditto.
6347 * language.h: Ditto.
6348 * linespec.c: Ditto.
6349 * linux-fork.c: Ditto.
6350 * linux-nat.c: Ditto.
6351 * linux-thread-db.c: Ditto.
6352 * lm32-tdep.c: Ditto.
6354 2011-01-08 Michael Snyder <msnyder@vmware.com>
6356 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6358 * m2-typeprint.c: Ditto.
6359 * m2-valprint.c: Ditto.
6360 * m32c-tdep.c: Ditto.
6361 * m32r-linux-nat.c: Ditto.
6362 * m32r-rom.c: Ditto.
6363 * m32r-tdep.c: Ditto.
6364 * m32r-tdep.h: Ditto.
6365 * m68hc11-tdep.c: Ditto.
6366 * m58klinux-nat.c: Ditto.
6367 * m68k-tdep.c: Ditto.
6368 * m88k-tdep.c: Ditto.
6369 * m88k-tdep.h: Ditto.
6370 * machoread.c: Ditto.
6371 * macrocmd.c: Ditto.
6372 * macroexp.c: Ditto.
6373 * macrotab.c: Ditto.
6376 * mdebugread.c: Ditto.
6377 * mdebugread.h: Ditto.
6380 * memory-map.h: Ditto.
6381 * mep-tdep.c: Ditto.
6382 * microblaze-rom.c: Ditto.
6383 * microblaze-tdep.c: Ditto.
6385 * mips-irix-tdep.c: Ditto.
6386 * mips-linux-nat.c: Ditto.
6387 * mips-linux-tdep.c: Ditto.
6388 * mips-linux-tdep.h: Ditto.
6389 * mipsnbsd-nat.c: Ditto.
6390 * mipsnbsd-tdep.c: Ditto.
6391 * mipsread.c: Ditto.
6392 * mips-tdep.c: Ditto.
6393 * mips-tdep.h: Ditto.
6394 * mn10300-linux-tdep.c: Ditto.
6395 * mn10300-tdep.c: Ditto.
6396 * mn10300-tdep.h: Ditto.
6399 * moxie-tdep.c: Ditto.
6400 * moxie-tdep.h: Ditto.
6403 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6405 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6407 2011-01-08 Robert Millan <rmh@gnu.org>
6409 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6411 2011-01-07 Michael Snyder <msnyder@vmware.com>
6413 * charset.c (_initialize_charset): Fix typo in string.
6415 2011-01-07 Michael Snyder <msnyder@vmware.com>
6417 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6419 * tui/tui-layout.c (tui_set_layout_for_display_command):
6420 Split line so that operator goes to beginning of line.
6421 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6422 assignment out of if statement.
6424 2011-01-07 Michael Snyder <msnyder@vmware.com>
6426 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6427 * ada-lang.h: Ditto.
6428 * ada-tasks.c: Ditto.
6429 * ada-valprint.c: Ditto.
6430 * aix-threads.c: Ditto.
6431 * alpha-linux-nat.c: Ditto.
6432 * alpha-linux-tdep.c: Ditto.
6433 * alpha-mdebug-tdep.c: Ditto.
6434 * alpha-nat.c: Ditto.
6435 * alpha-osf1-tdep.c: Ditto.
6436 * alpha-tdep.c: Ditto.
6437 * alphabsd-nat.c: Ditto.
6438 * alphabsd-tdep.c: Ditto.
6439 * amd64-darwin-tdep.c: Ditto.
6440 * amd64-linux-nat.c: Ditto.
6441 * amd64-linux-tdep.c: Ditto.
6442 * amd64-sol2-tdep.c: Ditto.
6443 * amd64-tdep.c: Ditto.
6444 * amd64-fbsd-tdep.c: Ditto.
6445 * amd64-nbsd-tdep.c: Ditto.
6446 * amd64-obsd-tdep.c: Ditto.
6447 * amd64-linux-nat.c: Ditto.
6448 * amd64-linux-tdep.c: Ditto.
6449 * arm-tdep.c: Ditto.
6450 * arm-tdep.h: Ditto.
6451 * armnbsd-nat.c: Ditto.
6452 * avr-tdep.c: Ditto.
6453 * bfin-tdep.c: Ditto.
6455 * c-typeprintc: Ditto.
6456 * c-valprint.c: Ditto.
6457 * coff-pe-read.h: Ditto.
6458 * coffreead.c: Ditto.
6459 * cris-tdep.c: Ditto.
6461 * darwin-nat-info.c: Ditto.
6462 * darwin-nat.c: Ditto.
6463 * dbug-rom.c: Ditto.
6467 * dec-thread.c: Ditto.
6469 * demangle.c: Ditto.
6470 * dicos-tdep.c: Ditto.
6471 * dictionary.c: Ditto.
6472 * dictionary.h: Ditto.
6473 * dink32-rom.c: Ditto.
6475 * doublest.c: Ditto.
6477 * dummy-frame.c: Ditto.
6478 * dwarf2-frame.c: Ditto.
6479 * dwarf2expr.c: Ditto.
6480 * dwarf2loc.c: Ditto.
6481 * dwarf2read.c: Ditto.
6485 * event-top.h: Ditto.
6486 * exceptions.c: Ditto.
6487 * exceptions.h: Ditto.
6489 * expprint.c: Ditto.
6490 * expression.h: Ditto.
6494 * f-typeprint.c: Ditto.
6495 * f-valprint.c: Ditto.
6496 * fbsd-nat.c: Ditto.
6498 * fork-child.c: Ditto.
6501 * frv-linux-tdep.c: Ditto.
6502 * frv-tdep.c: Ditto.
6504 * gdb-stabs.h: Ditto.
6505 * gdb_assert.h: Ditto.
6506 * gdb_string.h: Ditto.
6507 * gdb_thread_db.h: Ditto.
6508 * gdb_wait.h: Ditto.
6509 * gdbarch.sh: Ditto.
6511 * gdbthread.h: Ditto.
6512 * gdbtypes.c: Ditto.
6513 * gdbtypes.h: Ditto.
6516 * gnu-v2-abi.c: Ditto.
6517 * gnu-v3-abi.c: Ditto.
6518 * go32-nat.c: Ditto.
6519 * gdbarch.c: Regenerate.
6520 * gdbarch.h: Regenerate.
6522 2011-01-07 Michael Snyder <msnyder@vmware.com>
6524 * ax-gdb.c: Adjust some long output strings.
6525 * breakpoint.c: Ditto.
6530 * linux-nat.c: Ditto.
6531 * solib-pa64.c: Ditto.
6532 * solib-som.c: Ditto.
6534 2011-01-06 Tom Tromey <tromey@redhat.com>
6538 * python/python.c (GdbMethods): Add "newest_frame" method.
6539 * python/python-internal.h (gdbpy_newest_frame): Declare.
6540 * python/py-frame.c (gdbpy_newest_frame): New function.
6542 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6544 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6545 * jit.c (jit_debug): New variable.
6546 (show_jit_debug): New function.
6547 (struct target_buffer): Use ULONGEST.
6548 (bfd_open_from_target_memory): Likewise.
6549 (jit_register_code, jit_inferior_init): Add debug output.
6550 (_initialize_jit): Register "debug jit" command.
6552 2011-01-06 Tom Tromey <tromey@redhat.com>
6554 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6555 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6558 2011-01-06 Tom Tromey <tromey@redhat.com>
6560 * python/py-frame.c (frapy_block): Use get_frame_block.
6562 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6564 Do not stop on SIGPRIO signals by default
6565 * infrun.c (_initialize_infrun): Unset signal_stop and
6566 signal_print for TARGET_SIGNAL_PRIO.
6568 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6570 * ada-tasks.c: Fix style violation in comment.
6572 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6574 * linespec.c (decode_compound, find_method): Remove trailing \n
6575 at end of error string.
6576 * solib-irix.c (irix_current_sos): Likewise.
6577 * varobj.c (uninstall_variable): Likewise.
6579 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6581 * copyright.py: New script.
6582 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6583 Launch emacs without exec'ing. Call copyright.py afterwards.
6585 2011-01-05 Michael Snyder <msnyder@vmware.com>
6587 * addrmap.c: Shorten lines of >= 80 columns.
6588 * arch-utils.c: Ditto.
6589 * arch-utils.h: Ditto.
6591 * ax-general.c: Ditto.
6593 * blockframe.c: Ditto.
6594 * breakpoint.c: Ditto.
6595 * buildsym.c: Ditto.
6597 * c-typeprint.c: Ditto.
6599 * coffread.c: Ditto.
6603 * cp-namespace.c: Ditto.
6604 * cp-support.c: Ditto.
6605 * dbug-rom.c: Ditto.
6610 * dictionary.c: Ditto.
6612 * doublest.c: Ditto.
6613 * dwarf2-frame.c: Ditto.
6614 * dwarf2expr.c: Ditto.
6615 * dwarf2loc.c: Ditto.
6616 * dwarf2read.c: Ditto.
6619 * event-loop.c: Ditto.
6620 * event-loop.h: Ditto.
6621 * exceptions.h: Ditto.
6623 * expprint.c: Ditto.
6624 * expression.h: Ditto.
6626 * f-valprint.c: Ditto.
6628 * frame-base.c: Ditto.
6629 * frame-unwind.c: Ditto.
6630 * frame-unwind.h: Ditto.
6634 * gdb-stabs.h: Ditto.
6635 * gdb_assert.h: Ditto.
6636 * gdb_dirent.h: Ditto.
6637 * gdb_obstack.h: Ditto.
6639 * gdbtypes.c: Ditto.
6640 * gdbtypes.h: Ditto.
6641 * inf-ttrace.c: Ditto.
6646 * inline-frame.h: Ditto.
6647 * language.c: Ditto.
6648 * language.h: Ditto.
6649 * libunwind-frame.c: Ditto.
6650 * libunwind-frame.h: Ditto.
6651 * linespec.c: Ditto.
6652 * linux-nat.c: Ditto.
6653 * linux-nat.h: Ditto.
6654 * linux-thread-db.c: Ditto.
6655 * machoread.c: Ditto.
6656 * macroexp.c: Ditto.
6657 * macrotab.c: Ditto.
6660 * mdebugread.c: Ditto.
6665 * objfiles.c: Ditto.
6666 * objfiles.h: Ditto.
6668 * p-typeprint.c: Ditto.
6669 * p-valprint.c: Ditto.
6671 * printcmd.c: Ditto.
6672 * proc-events.c: Ditto.
6674 * progspace.c: Ditto.
6675 * progspace.h: Ditto.
6676 * psympriv.h: Ditto.
6679 * regcache.c: Ditto.
6680 * regcache.h: Ditto.
6681 * remote-fileio.c: Ditto.
6683 * ser-mingw.c: Ditto.
6685 * ser-unix.c: Ditto.
6688 * solib-frv.c: Ditto.
6689 * solib-irix.c: Ditto.
6690 * solib-osf.c: Ditto.
6691 * solib-pa64.c: Ditto.
6692 * solib-som.c: Ditto.
6693 * solib-sunos.c: Ditto.
6694 * solib-svr4.c: Ditto.
6695 * solib-target.c: Ditto.
6699 * stabsread.c: Ditto.
6700 * stabsread.c: Ditto.
6703 * symfile-mem.c: Ditto.
6709 * target-descriptions.c: Ditto.
6710 * target-memory.c: Ditto.
6713 * terminal.h: Ditto.
6716 * tracepoint.c: Ditto.
6717 * tracepoint.h: Ditto.
6721 * user-regs.c: Ditto.
6722 * user-regs.h: Ditto.
6724 * valarith.c: Ditto.
6726 * valprint.c: Ditto.
6727 * valprint.h: Ditto.
6732 * xcoffread.c: Ditto.
6733 * xcoffsolib.c: Ditto.
6734 * xcoffsolib.h: Ditto.
6735 * xml-syscall.c: Ditto.
6736 * xml-tdesc.c: Ditto.
6738 2011-01-05 Michael Snyder <msnyder@vmware.com>
6740 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6741 * cli/cli-decode.c: Ditto.
6742 * cli/cli-dump.c: Ditto.
6743 * cli/cli-logging.c: Ditto.
6744 * cli/cli-script.c: Ditto.
6745 * cli/cli-setshow.c: Ditto.
6746 * common/signals.c: Ditto.
6747 * mi/mi-cmd-break.c: Ditto.
6748 * mi/mi-cmd-disas.c: Ditto.
6749 * mi/mi-cmd-stack.c: Ditto.
6750 * mi/mi-cmd-var.c: Ditto.
6751 * mi/mi-cmds.c: Ditto.
6752 * mi/mi-common.h: Ditto.
6753 * mi/mi-console.c: Ditto.
6754 * mi/mi-interp.c: Ditto.
6755 * mi/mi-main.c: Ditto.
6756 * osf-share/cma_attr.c: Ditto.
6757 * osf-share/cma_deb_core.h: Ditto.
6758 * osf-share/cma_debug_client.h: Ditto.
6759 * osf-share/cma_handle.h: Ditto.
6760 * osf-share/cma_mutex.h: Ditto.
6761 * osf-share/cma_stack_int.h: Ditto.
6762 * osf-share/cma_tcb_defs.h: Ditto.
6763 * python/py-auto-load.c: Ditto.
6764 * python/py-breakpoint.c: Ditto.
6765 * python/py-cmd.c: Ditto.
6766 * python/py-frame.c: Ditto.
6767 * python/py-objfile.c: Ditto.
6768 * python/py-param.c: Ditto.
6769 * python/py-progspace.c: Ditto.
6770 * python/py-symbol.c: Ditto.
6771 * python/py-value.c: Ditto.
6772 * python/python-internal.h: Ditto.
6773 * python/python.c: Ditto.
6774 * tui/tui-data.c: Ditto.
6775 * tui/tui-disasm.c: Ditto.
6776 * tui/tui-hooks.c: Ditto.
6777 * tui/tui-io.c: Ditto.
6778 * tui/tui-layout.c: Ditto.
6779 * tui/tui-regs.c: Ditto.
6780 * tui/tui-source.c: Ditto.
6781 * tui/tui-stack.c: Ditto.
6782 * tui/tui-win.c: Ditto.
6783 * tui/tui-windata.c: Ditto.
6784 * tui/tui-winsource.c: Ditto.
6786 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6788 * configure.ac, gdb.1: Copyright year update.
6790 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6793 this_pc_in_block, morestack_msym and morestack_name. Check for
6794 "__morestack" minimal symbol there.
6796 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6798 * symfile.c (find_sym_fns): Add call to dont_repeat.
6800 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6802 Copyright year update in most files (performed by copyright.sh).
6804 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6806 * top.c (print_gdb_version): Update copyright year in version output.
6808 For older changes see ChangeLog-2010.
6814 version-control: never