1 2011-06-22 Pedro Alves <pedro@codesourcery.com>
3 * breakpoint.c (bpstat_stop_status): Call the check_status
5 (print_one_breakpoint_location): Also print the condition for Ada
7 (allocate_bp_location): New, factored out from
9 (allocate_bp_location): Adjust. Call the owner breakpoint's
10 allocate_location method, if there is one.
11 (free_bp_location): Call the locations's dtor method, if there is
13 (init_raw_breakpoint_without_location): New breakpoint_ops
15 (set_raw_breakpoint_without_location): Adjust.
16 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
17 (set_raw_breakpoint): Adjust.
18 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
19 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
20 re_set and check_status methods.
21 (init_catchpoint): Don't memset, initialize thread, addr_string
22 and enable_state. Pass the ops down to init_raw_breakpoint.
23 (install_catchpoint): Rename to ...
24 (install_breakpoint): ... this, and make extern.
25 (create_fork_vfork_event_catchpoint): Adjust.
26 (catch_exec_breakpoint_ops): Install NULL allocate_location,
27 re_set and check_status methods.
28 (create_syscall_event_catchpoint): Adjust.
29 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
30 (masked_watchpoint_breakpoint_ops): Install NULL
31 allocate_location, re_set and check_status methods.
32 (catch_exec_command_1): Adjust.
33 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
34 re_set and check_status methods.
35 (create_ada_exception_breakpoint): Rename to ...
36 (init_ada_exception_breakpoint): ... this. Add a struct
37 breakpoint parameter, and delete the exp_string, cond_string and
38 cond parameters. Use init_raw_breakpoint, and don't install or
39 mention the breakpoint yet. Don't clear breakpoint fields that
40 init_raw_breakpoint already clears.
41 (re_set_breakpoint): Delete, split into ...
42 (breakpoint_re_set_default, prepare_re_set_context): ... these new
44 (breakpoint_re_set_one): Call the breakpoint's
45 breakpoint_ops->re_set implementation, if there's one. Adjust.
46 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
47 (struct bp_location_ops): New type.
48 (struct bp_location): New field `ops'.
49 (struct breakpoint_ops): New `allocate_location', `re_set' and
50 `check_status' fields. Make `breakpoint_hit''s description match
52 (init_bp_location): Declare.
53 (breakpoint_re_set_default): Declare.
54 (create_ada_exception_breakpoint): Rename to ...
55 (init_ada_exception_breakpoint): ... this. Add a struct
56 breakpoint parameter, and delete the exp_string, cond_string and
58 (install_breakpoint): Declare.
59 * ada-lang.c: Include exceptions.h.
60 <Ada exceptions description>: Update.
61 (struct ada_catchpoint_location): New type.
62 (ada_catchpoint_location_dtor): New function.
63 (ada_catchpoint_location_ops): New global.
64 (ada_catchpoint): New type.
65 (create_excep_cond_exprs): New function.
66 (dtor_exception, allocate_location_exception, re_set_exception)
67 (should_stop_exception, check_status_exception): New functions.
68 (print_one_exception, print_mention_exception)
69 (print_recreate_exception): Adjust.
70 (dtor_catch_exception, allocate_location_catch_exception)
71 (re_set_catch_exception, check_status_catch_exception): New
73 (catch_exception_breakpoint_ops): Install them.
74 (dtor_catch_exception_unhandled)
75 (allocate_location_catch_exception_unhandled)
76 (re_set_catch_exception_unhandled)
77 (check_status_catch_exception_unhandled): New functions.
78 (catch_exception_unhandled_breakpoint_ops): Install them.
79 (dtor_catch_assert, allocate_location_catch_assert)
80 (re_set_catch_assert, check_status_catch_assert): New functions.
81 (catch_assert_breakpoint_ops): Install them.
82 (ada_exception_catchpoint_p): Delete.
83 (catch_ada_exception_command_split)
84 (ada_exception_catchpoint_cond_string): Rename exp_string
85 parameter to excep_string. Adjust.
86 (ada_parse_catchpoint_condition): Delete.
87 (ada_exception_sal): Rename the exp_string parameter to
88 excep_string. Delete the cond_string and cond parameters.
90 (ada_decode_exception_location): Rename the exp_string parameter
91 to excep_string. Delete the cond_string and cond parameters.
93 (create_ada_exception_catchpoint): New function.
94 (catch_ada_exception_command, ada_decode_assert_location)
95 (catch_assert_command): Adjust.
96 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
98 2011-06-22 Pedro Alves <pedro@codesourcery.com>
100 * ada-lang.c: Include arch-utils.h.
101 (ada_decode_exception_location): Make static.
102 (catch_ada_exception_command): Moved here from breakpoint.c.
103 (ada_decode_assert_location): Make static.
104 (catch_assert_command): Moved here from breakpoint.c.
105 (_initialize_ada_lang): Install the exception and assert
106 catchpoint commands here.
107 * ada-lang.h (ada_decode_exception_location)
108 (ada_decode_assert_location): Delete declarations.
109 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
111 (create_ada_exception_breakpoint): Make extern.
112 (catch_ada_exception_command, catch_assert_command): Moved to
114 (add_catch_command): Make extern.
115 (_initilize_breakpoint): Don't install the exception and assert
116 catchpoint commands here.
117 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
119 (add_catch_command, create_ada_exception_breakpoint): Declare.
121 2011-06-22 Pedro Alves <pedro@codesourcery.com>
123 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
124 the breakpoint to the breakpoint chain here.
125 (set_raw_breakpoint_without_location): Add the breakpoint to the
126 breakpoint chain here.
127 (init_raw_breakpoint): Adjust comments.
128 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
130 (init_catchpoint): Don't set the catchpoint's breakpoint number
132 (install_catchpoint): New function.
133 (create_fork_vfork_event_catchpoint)
134 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
135 use install_catchpoint.
137 2011-06-22 Pedro Alves <pedro@codesourcery.com>
139 * breakpoint.c (create_catchpoint_without_mention)
140 (create_catchpoint): Delete.
142 2011-06-22 Pedro Alves <pedro@codesourcery.com>
144 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
145 * breakpoint.c (init_raw_breakpoint_without_location): Remove
146 reference to exec_pathname.
147 (struct exec_catchpoint): New type.
148 (dtor_catch_exec): New function.
149 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
150 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
151 (catch_exec_command_1): Adjust to use init_catchpoint.
152 (delete_breakpoint): Remove reference to exec_pathname.
154 2011-06-22 Pedro Alves <pedro@codesourcery.com>
156 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
157 (struct breakpoint): Delete field `syscalls_to_be_caught'.
158 * breakpoint.c (init_raw_breakpoint_without_location): Remove
159 reference to syscalls_to_be_caught.
160 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
162 (struct syscall_catchpoint): New type.
163 (dtor_catch_syscall): New function.
164 (insert_catch_syscall, remove_catch_syscall)
165 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
166 (print_recreate_catch_syscall): Adjust.
167 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
168 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
169 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
170 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
171 (masked_watchpoint_breakpoint_ops)
172 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
173 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
174 there is one. Remove references to syscalls_to_be_caught.
175 (catching_syscall_number): Adjust.
176 * ada-lang.c (catch_exception_breakpoint_ops)
177 (catch_exception_unhandled_breakpoint_ops)
178 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
180 2011-06-22 Pedro Alves <pedro@codesourcery.com>
182 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
184 * breakpoint.c (init_raw_breakpoint_without_location): Remove
185 reference to forked_inferior_pid.
186 (struct fork_catchpoint): New type.
187 (breakpoint_hit_catch_fork, print_it_catch_fork)
188 (print_one_catch_fork, breakpoint_hit_catch_vfork)
189 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
190 (create_fork_vfork_event_catchpoint): Adjust to use
193 2011-06-22 Pedro Alves <pedro@codesourcery.com>
195 * breakpoint.c (add_to_breakpoint_chain)
196 (init_raw_breakpoint_without_location): New functions, factored
198 (set_raw_breakpoint_without_location): ... this one.
199 (init_raw_breakpoint): New function, factored out from
200 set_raw_breakpoint and adjusted to use
201 init_raw_breakpoint_without_location.
202 (set_raw_breakpoint): Adjust.
203 (init_catchpoint): New function, factored out from
204 create_catchpoint_without_mention and adjusted to use
206 (create_catchpoint_without_mention): Adjust.
208 2011-06-22 Tom Tromey <tromey@redhat.com>
210 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
211 argument of 0 specially.
213 2011-06-22 Yao Qi <yao@codesourcery.com>
215 * infrun.c (handle_inferior_event): Remove write-only local variable
216 `sw_single_step_trap_p'.
218 2011-06-20 Tom Tromey <tromey@redhat.com>
220 * symtab.c (lookup_language_this): End loop if block is NULL.
222 2011-06-17 Tom Tromey <tromey@redhat.com>
224 * valops.c (value_of_this): Use lookup_language_this.
225 * symtab.h (lookup_language_this): Declare.
226 * symtab.c (lookup_language_this): New function.
227 (lookup_symbol_aux): Use lookup_language_this.
228 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
230 2011-06-17 Tom Tromey <tromey@redhat.com>
232 * value.h (value_of_this): Update.
233 (value_of_local): Remove.
234 * valops.c (value_of_this): Rename from value_of_local. Change
236 * p-exp.y (exp): Update.
237 (variable): Likewise.
238 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
240 2011-06-17 Tom Tromey <tromey@redhat.com>
242 * valops.c (value_of_local): Complain if NAME is NULL.
243 * std-operator.def (OP_OBJC_SELF): Remove.
244 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
245 * objc-exp.y (name_not_typename): Use OP_THIS.
246 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
248 <OP_OBJC_SELF>: Remove.
249 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
251 2011-06-16 Tristan Gingold <gingold@adacore.com>
253 * python/py-events.h (gdb_py_events): Make it extern.
254 * python/py-evtregistry.c (gdb_py_events): Declare.
256 2011-06-16 Hui Zhu <teawater@gmail.com>
258 * remote.c (remote_trace_set_readonly_regions): Add check for
259 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
262 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
264 * arm-linux-tdep.c: Include "auxv.h".
266 (ARM_LINUX_SIZEOF_VFP): Define.
267 (arm_linux_supply_vfp): New function.
268 (arm_linux_collect_vfp): Likewise.
269 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
270 (arm_linux_fpa_regset_sections): New variable.
271 (arm_linux_vfp_regset_sections): Likewise.
272 (arm_linux_core_read_description): New function.
273 (arm_linux_init_abi): Install arm_linux_core_read_description and
274 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
275 appropriate for the architecture.
276 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
277 (tdesc_arm_with_m): Declare.
278 (tdesc_arm_with_iwmmxt): Likewise.
279 (tdesc_arm_with_vfpv2): Likewise.
280 (tdesc_arm_with_vfpv3): Likewise.
281 (tdesc_arm_with_neon): Likewise.
282 * arm-linux-nat.c: Move features/*.c includes ...
283 * arm-tdep.c: ... here.
284 * arm-linux-nat.c (arm_linux_read_description): Move initializing
285 target description data structures ...
286 * arm-tdep.c (_initialize_arm_tdep): ... here.
287 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
288 HWCAP_VFPv3D16): Move definitions ...
289 * arm-linux-tdep.h: ... here.
291 2011-06-15 Hui Zhu <teawater@gmail.com>
293 * remote.c (remote_trace_set_readonly_regions): Add a check for
296 2011-06-14 Tom Tromey <tromey@redhat.com>
298 * coffread.c (coffread_objfile): Rename from current_objfile.
299 * dbxread.c (dbxread_objfile): Rename from current_objfile.
300 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
302 2011-06-14 Tom Tromey <tromey@redhat.com>
304 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
305 (class_symtab): Remove.
306 (jv_dynamics_progspace_key): New global.
307 (jv_per_objfile_free): Reset program space data. Update assert.
309 (get_dynamics_objfile): Use and set program space data.
310 (get_java_class_symtab): Use get_dynamics_objfile.
311 (add_class_symbol): Likewise.
312 (java_link_class_type): Likewise.
313 (java_object_type, jv_clear_object_type, set_java_object_type):
315 (get_java_object_type): Update. Don't cache result.
316 (is_object_type): Don't call set_java_object_type.
317 (_initialize_java_language): Don't set jv_type_objfile_data_key;
318 initialize jv_dynamics_progspace_key.
320 2011-06-14 Tom Tromey <tromey@redhat.com>
322 * symtab.h (current_objfile): Don't declare.
323 * objfiles.h (current_objfile): Don't declare.
324 * objfiles.c (current_objfile): Remove.
325 * mdebugread.c (current_objfile): New file-scope global.
326 * dbxread.c (current_objfile): New file-scope global.
327 * coffread.c (current_objfile): New file-scope global.
329 2011-06-13 Pedro Alves <pedro@codesourcery.com>
331 * top.h (line): Rename to ...
332 (saved_command_line): ... this.
333 (linesize): Rename to ...
334 (saved_command_line_size): ... this.
335 * top.c (line): Rename to ...
336 (saved_command_line): ... this.
337 (linesize): Rename to ...
338 (saved_command_line_size): ... this.
339 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
340 * event-top.c (command_line_handler): Adjust.
341 * main.c (captured_main): Adjust.
343 2011-06-12 Mark Kettenis <kettenis@gnu.org>
345 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
346 get_frame_func instead of get_frame_pc to determine the code
347 address used to construct the frame ID.
348 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
349 (i386_epilogue_frame_this_id): Likewise.
350 (i386_epilogue_frame_prev_register): New function.
351 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
352 (i386_stack_tramp_frame_sniffer): Fix coding style.
353 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
354 (i386_gdbarch_init): Fix comments.
356 2011-06-12 Mark Kettenis <kettenis@gnu.org>
358 * i386-tdep.c (i386_match_insn_block): Use length of the proper
359 instruction when walking back through the instruction stream.
361 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
363 * symtab.c (output_partial_symbol_filename): Exchange the filename and
364 fullname parameters order.
366 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
369 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
371 * psymtab.c (map_symbol_filenames_psymtab)
372 (map_partial_symbol_filenames): Likewise.
373 * psymtab.h: Include symfile.h.
374 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
375 * symfile.h (symbol_filename_ftype): New.
376 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
377 map_symbol_filenames, clarify more the naming in comment.
379 2011-06-07 Doug Evans <dje@google.com>
381 * cc-with-index.sh: Fix typos in comment.
382 Look for ../../gdb, for fullname.exp.
384 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
385 Pedro Alves <pedro@codesourcery.com>
387 * cli/cli-cmds.c (shell_escape): Use waitpid.
388 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
390 2011-06-07 Tristan Gingold <gingold@adacore.com>
392 * xcoffread.c (dwarf2_xcoff_names): New variable.
393 (aix_process_linenos): Add a guard.
394 (xcoff_symfile_finish): Free dwarf2.
395 (xcoff_initial_scan): Add dwarf2 support.
397 2011-06-06 Pedro Alves <pedro@codesourcery.com>
399 * infcall.c (run_inferior_call): Don't mask async. Instead force
400 a synchronous wait, if the target can async.
402 * target.h (struct target_ops): Delete to_async_mask.
403 (target_async_mask): Delete.
404 * target.c (update_current_target): Delete references to to_async_mask.
405 * linux-nat.c (linux_nat_async_mask_value): Delete.
406 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
407 to linux_nat_async_mask_value.
408 (linux_nat_async_mask): Delete.
409 (linux_nat_async, linux_nat_close): Remove references to
410 linux_nat_async_mask_value.
411 * record.c (record_async_mask_value): Delete.
412 (record_async): Remove references to record_async_mask_value.
413 (record_async_mask): Delete.
414 (record_can_async_p, record_is_async_p): Remove references to
415 record_async_mask_value.
416 (init_record_ops, init_record_core_ops): Remove references to
418 * remote.c (remote_async_mask_value): Delete.
419 (init_remote_ops): Remove reference to remote_async_mask.
420 (remote_can_async_p, remote_is_async_p): Remove references to
421 remote_async_mask_value.
422 (remote_async): Remove references to remote_async_mask_value.
423 (remote_async_mask): Delete.
425 * infrun.c (fetch_inferior_event): Don't claim registers changed
426 if the current thread is already not executing.
428 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
430 From Stephen Kitt <steve@sk2.org>
431 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
432 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
434 2011-06-03 Joel Brobecker <brobecker@adacore.com>
436 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
437 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
439 2011-06-03 Tom Tromey <tromey@redhat.com>
441 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
443 * python/py-exitedevent.c (create_exited_event_object): Change
444 type of 'exit_code'. Optionally add exit_code attribute.
445 (emit_exited_event): Change type of 'exit_code'.
446 * python/py-event.h (emit_exited_event): Update.
447 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
448 * infrun.c (handle_inferior_event): Set exit code fields on
450 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
452 * inferior.c (exit_inferior_1): Initialize new fields.
454 2011-06-03 Tom Tromey <tromey@redhat.com>
456 * dwarf2expr.c (get_signed_type): New function.
457 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
459 2011-06-02 Keith Seitz <keiths@redhat.com>
461 * objc-lang.c (find_methods): Increment objfile_csym earlier.
463 2011-06-02 Pedro Alves <pedro@codesourcery.com>
465 * top.h (simplified_command_loop): Delete declaration.
467 2011-06-01 Mike Frysinger <vapier@gentoo.org>
469 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
470 gdb_sysroot to the "len" variable. Append both to "arg_buf".
472 2011-06-01 Yao Qi <yao@codesourcery.com>
474 * objfiles.h (obj_section_addr): Update reference to objfile from
476 (obj_section_endaddr): Likewise.
478 2011-06-01 Daniel Jacobowitz <drow@false.org>
480 * MAINTAINERS: Update my email address and affiliation. Also
481 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
483 2010-05-31 Keith Seitz <keiths@redhat.com>
486 * linespec.c (get_search_block): New function.
487 (find_methods): Add FILE_SYMTATB parameter and use it and
488 get_search_block to pass an appropriate block to
489 lookup_symbol_in_namespace.
490 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
491 Check if *ARGPTR starts with a filename first.
492 If it does, call locate_first_half again to locate the next
493 "first half" of the linespec.
494 Pass FILE_SYMTATB to decode_objc and decode_compound.
495 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
496 (locate_first_half): Stop on the first colon seen.
497 (decode_compound): Add FILE_SYMTAB parameter.
498 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
499 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
500 get_search_block with lookup_symbol.
501 (find_method): Add FILE_SYMTAB parameter and pass it to
503 (decode_objc): Use get_search_block.
505 2010-05-31 Keith Seitz <keiths@redhat.com>
508 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
509 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
510 and CP_ANONYMOUS_NAMESPACE_LEN.
511 (cp_is_anonymous): Likewise.
512 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
513 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
514 * dwarf2read.c (namespace_name): Likewise.
515 (fixup_partial_die): Likewise.
516 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
517 seen in the input, keep it.
519 2011-05-30 Pedro Alves <pedro@codesourcery.com>
521 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
522 * inf-loop.h (inferior_event_handler_wrapper): Delete.
523 * inf-loop.c (inferior_event_handler_wrapper): Delete.
524 (inferior_event_handler): Don't handle INF_QUIT_REQ.
525 * remote.c (_initialize_remote): Register
526 async_remote_interrupt_twice directly as
527 sigint_remote_twice_token event.
529 2011-05-30 Pedro Alves <pedro@codesourcery.com>
531 * target.h (enum inferior_event_type): Delete INF_ERROR.
532 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
534 2011-05-30 Pedro Alves <pedro@codesourcery.com>
536 * interps.c (interp_set): Don't cancel continuations.
538 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
540 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
542 2011-05-30 Pedro Alves <pedro@codesourcery.com>
544 * continuations.h (continuation_ftype): Add `err' parameter.
546 (do_all_continuations, do_all_continuations_thread)
547 (do_all_intermediate_continuations)
548 (do_all_intermediate_continuations_thread)
549 (do_all_inferior_continuations): Add `err' parameter.
550 * continuations.c (do_my_continuations_1, do_my_continuations)
551 (do_all_inferior_continuations, do_all_continuations_ptid)
552 (do_all_continuations_thread_callback)
553 (do_all_continuations_thread, do_all_continuations)
554 (do_all_intermediate_continuations_thread_callback)
555 (do_all_intermediate_continuations_thread)
556 (do_all_intermediate_continuations): Add `err' parameter, and pass
557 it down all the way to the continuations proper.
558 * inf-loop.c (inferior_event_handler): If fetching an inferior
559 event throws an error, don't pop the target, and still call the
560 continuations, but with `err' set. Adjust all other continuation
562 * breakpoint.c (until_break_command_continuation): Add `err'
564 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
565 issue another step if `err' is set.
566 (struct until_next_continuation_args): New.
567 (until_next_continuation): Add `err' parameter. Adjust.
568 (until_next_command): Adjust.
569 (struct finish_command_continuation_args): Add `thread' field.
570 (finish_command_continuation): Add `err' parameter. Handle it.
571 (finish_forward): Adjust.
572 (attach_command_continuation): Add `err' parameter. Handle it.
573 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
574 cancel the continuations.
575 * interps.c (interp_set): Adjust to cancel the continuations.
576 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
577 continuations rather than discarding.
578 (free_thread): Don't clear thread inferior resources here.
579 (delete_thread_1): Do it here instead. And do it before removing
580 the thread from the threads list. Tag the thread as exited before
581 clearing thread inferior resources.
583 2011-05-30 Joel Brobecker <brobecker@adacore.com>
585 * infcall.c (call_function_by_hand): Rephrase error message.
587 2011-05-27 Pedro Alves <pedro@codesourcery.com>
589 * defs.h (struct thread_info, struct inferior): Delete forward
591 * breakpoint.h (struct thread_info): New forward declaration.
592 * observer.sh (struct inferior): New forward declaration.
593 * python/python-internal.h (struct inferior): New forward
596 2011-05-27 Pedro Alves <pedro@codesourcery.com>
598 * defs.h (struct continuation, continuation_ftype)
599 (continuation_free_arg_ftype, add_continuation)
600 (do_all_continuations, do_all_continuations_thread)
601 (discard_all_continuations, discard_all_continuations_thread)
602 (add_intermediate_continuation, do_all_intermediate_continuations)
603 (do_all_intermediate_continuations_thread)
604 (discard_all_intermediate_continuations)
605 (discard_all_intermediate_continuations_thread)
606 (add_inferior_continuation, do_all_inferior_continuations)
607 (discard_all_inferior_continuations): Move to ...
608 * continuations.h: ... this new file.
609 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
610 infcmd.c, inferior.c, infrun.c, interps.c: Include
613 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
614 Doug Evans <dje@google.com>
616 Fix PR 10970, PR 12702.
617 * linux-nat.c (linux_lwp_is_zombie): New function.
618 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
619 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
621 2011-05-27 Pedro Alves <pedro@codesourcery.com>
623 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
625 (add_continuation, add_intermediate_continuation)
626 (add_inferior_continuation): Use them.
627 * continuations.c (struct continuation): Use them.
628 (make_continuation_ftype): Delete.
629 (make_continuation, add_inferior_continuation, add_continuation)
630 (add_intermediate_continuation): Use continuation_ftype and
631 continuation_free_arg_ftype. Rename parameters to shorter names.
633 2011-05-27 Pedro Alves <pedro@codesourcery.com>
635 * continuations.c (make_continuation): Make it return void.
636 (do_my_continuations): Rename to ...
637 (do_my_continuations_1): ... this. Remove old_chain parameter and
639 (do_my_continuations): New.
640 (discard_my_continuations): Rename to ...
641 (discard_my_continuations_1): ... this. Remove old_chain
642 parameter and adjust.
643 (discard_my_continuations): New.
644 (add_inferior_continuation): Simplify.
645 (do_all_inferior_continuations): Reimplement on top
647 (discard_all_inferior_continuations): Simplify.
648 (add_continuation): Simplify.
649 (do_all_continuations_ptid): Simplify.
650 (discard_all_continuations_thread_callback): Simplify.
651 (add_intermediate_continuation): Simplify.
652 (discard_all_intermediate_continuations_thread_callback):
655 2011-05-27 Pedro Alves <pedro@codesourcery.com>
657 * utils.c (struct continuation, add_continuation)
658 (add_inferior_continuation)
659 (do_all_inferior_continuations, discard_all_inferior_continuations)
660 (restore_thread_cleanup, do_all_continuations_ptid)
661 (do_all_continuations_thread_callback)
662 (do_all_continuations_thread, do_all_continuations)
663 (discard_all_continuations_thread_callback)
664 (discard_all_continuations_thread, discard_all_continuations)
665 (add_intermediate_continuation)
666 (do_all_intermediate_continuations_thread_callback)
667 (do_all_intermediate_continuations_thread)
668 (do_all_intermediate_continuations)
669 (discard_all_intermediate_continuations_thread_callback)
670 (discard_all_intermediate_continuations_thread)
671 (discard_all_intermediate_continuations): Move to ...
672 * continuations.c: ... this new file, and adjust to no longer
673 implement continuations on top of cleanups.
674 * Makefile.in (SFILES): Add continuations.c.
675 (COMMON_OBS): Add continuations.o.
677 2011-05-26 Pedro Alves <pedro@codesourcery.com>
679 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
680 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
681 Internal error on invalid values.
682 * reverse.c: Don't handle EXEC_ERROR.
683 * mi/mi-main.c: Don't handle EXEC_ERROR.
685 2011-05-26 Pedro Alves <pedro@codesourcery.com>
687 * record.c: Include event-loop.h, inf-loop.h.
688 (record_beneath_to_async): New global.
689 (tmp_to_async): New global.
690 (record_async_inferior_event_token): New global.
691 (record_open_1): Don't error out if async is enabled.
692 (record_open): Handle to_async. Create an async event source in
694 (record_close): Delete the async event source.
695 (record_resumed): New global.
696 (record_execution_dir): New global.
697 (record_resume, record_core_resume): Set them. Register the
698 target on the event loop.
699 (record_wait): Rename to ...
700 (record_wait_1): ... this. Add more debug output. Handle
701 TARGET_WNOHANG, and the target beneath returning
702 TARGET_WAITKIND_IGNORE.
703 (record_wait): Reimplement on top of record_wait_1.
704 (record_async_mask_value): New global.
705 (record_async, record_async_mask, record_can_async_p)
706 (record_is_async_p, record_execution_direction): New functions.
707 (init_record_ops, init_record_core_ops): Install new methods.
708 * infrun.c (fetch_inferior_event): Temporarily switch the global
709 execution direction to the direction the target was going.
710 (execution_direction): Change type to int.
711 * target.c (default_execution_direction): New function.
712 (update_current_target): Inherit and de_fault
713 to_execution_direction.
714 * target.h (struct target_ops) <to_execution_direction>: New
716 (target_execution_direction): New macro.
717 * inferior.h (execution_direction): Change type to int.
719 2011-05-26 Pedro Alves <pedro@codesourcery.com>
721 * infcall.c (call_function_by_hand): Don't allow calling functions
722 in reverse execution mode.
724 2011-05-26 Pedro Alves <pedro@codesourcery.com>
726 * infcmd.c (finish_command): Allow async finish in reverse.
728 2011-05-26 Yao Qi <yao@codesourcery.com>
730 * gdb_thread_db.h: Delete. Move to ...
731 * common/gdb_thread_db.h: ... here.
733 2011-05-26 Pedro Alves <pedro@codesourcery.com>
735 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
736 function's entry point instead of a manually managed momentary
737 breakpoint, and only ever issue one proceed call.
738 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
739 doing a reverse-finish, switch to stepi mode, to do another step.
740 (insert_step_resume_breakpoint_at_sal): Make public.
741 (normal_stop): No need to save function value return registers if
743 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
745 2011-05-26 Pedro Alves <pedro@codesourcery.com>
747 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
748 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
749 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
751 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
752 step-resume breakpoints.
753 (print_it_typical): Handle bp_hp_step_resume.
754 (bpstat_what): Ditto.
755 (bptype_string): Ditto.
756 (print_one_breakpoint_location): Ditto.
757 (allocate_bp_location): Ditto.
759 (breakpoint_re_set_one): Ditto.
760 * infrun.c (handle_inferior_event): Adjust. Split
761 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
762 BPSTAT_WHAT_HP_STEP_RESUME.
763 (insert_step_resume_breakpoint_at_sal): Rename to ...
764 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
765 parameter. Handle it.
766 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
767 insert_step_resume_breakpoint_at_sal_1.
768 (insert_step_resume_breakpoint_at_frame): Rename to ...
769 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
770 set a high-priority step-resume breakpoint.
771 (insert_step_resume_breakpoint_at_frame): Adjust comment.
772 (insert_step_resume_breakpoint_at_caller): Ditto.
774 2011-05-26 Pedro Alves <pedro@codesourcery.com>
776 * breakpoint.c (iterate_over_related_breakpoints): New.
777 (do_map_delete_breakpoint): New.
778 (delete_command): Pass do_map_delete_breakpoint to
779 map_breakpoint_numbers.
780 (do_disable_breakpoint): New.
781 (do_map_disable_breakpoint): Iterate over the breakpoint's related
783 (do_enable_breakpoint): Rename to ...
784 (enable_breakpoint_disp): ... this.
785 (enable_breakpoint): Adjust.
786 (do_enable_breakpoint): New.
787 (enable_once_breakpoint): Delete.
788 (do_map_enable_breakpoint): New.
789 (do_map_enable_once_breakpoint): New.
790 (enable_once_command, enable_delete_command)
791 (delete_trace_command): Iterate over the breakpoint's related
794 2011-05-26 Pedro Alves <pedro@codesourcery.com>
796 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
797 for ALPHA_ZERO_REGNUM.
798 (alpha_supply_int_regs): Explicitly supply zero as the value for
799 ALPHA_ZERO_REGNUM in the register cache.
800 * alpha-nat.c (fetch_osf_core_registers): Ditto.
802 2011-05-26 Yao Qi <yao@codesourcery.com>
804 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
806 2011-05-26 Tristan Gingold <gingold@adacore.com>
808 * symfile.h (struct dwarf2_section_names): New type.
809 (struct dwarf2_debug_sections): New type.
810 (dwarf2_has_info): Add parameter.
811 * dwarf2read.c (dwarf2_elf_names): New variable.
812 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
813 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
814 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
815 (dwarf2_has_info): Add names parameter. Pass names
816 to dwarf2_locate_sections.
817 (section_is_p): Rewrite using the names parameter.
818 (dwarf2_locate_sections): Use section names from the names parameter.
819 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
820 * elfread.c (read_psyms): Ditto.
821 * machoread.c (macho_symfile_read): Ditto.
823 2011-05-25 Andreas Schwab <schwab@redhat.com>
826 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
828 2011-05-24 Keith Seitz <keiths@redhat.com>
831 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
832 (decode_compound): Unconditionally call keep_name_info.
834 2011-05-24 Pedro Alves <pedro@codesourcery.com>
836 * breakpoint.c (watchpoint_check): If the watchpoint went out of
837 scope, clear its command list.
838 (map_breakpoint_numbers): Don't walk the related breakpoints list
841 2011-05-24 Tom Tromey <tromey@redhat.com>
843 * MAINTAINERS: Move Jim Blandy to past maintainers.
845 2011-05-24 Tristan Gingold <gingold@adacore.com>
847 * symfile.h (enum dwarf2_section_enum): New type.
848 (dwarf2_get_section_info): New prototype.
849 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
850 section_name by sect. Use a switch to select the info.
851 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
852 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
854 2011-05-24 Pedro Alves <pedro@codesourcery.com>
856 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
857 shared library event breakpoint if there's no execution.
859 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
861 * breakpont.c (remove_hw_watchpoints): Remove unused function.
862 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
864 2011-05-23 Tom Tromey <tromey@redhat.com>
866 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
869 2011-05-23 Doug Evans <dje@google.com>
871 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
872 entry for RuntimeError to doc string.
874 2011-05-23 Jerome Guitton <guitton@adacore.com>
876 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
877 sequence for probing loops.
879 2011-05-23 Pedro Alves <pedro@codesourcery.com>
881 * infrun.c (user_visible_resume_ptid): Fix typos in describing
884 2011-05-21 Mark Kettenis <kettenis@gnu.org>
886 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
887 zero as the value for %g0 in the register cache.
888 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
889 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
891 2011-05-20 Pedro Alves <pedro@codesourcery.com>
893 * infrun.c (proceed): Set previous_inferior_ptid here.
894 (init_wait_for_inferior): Initialize previous_inferior_ptid from
895 inferior_ptid, not null_ptid.
896 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
897 (fetch_inferior_event): Nor here.
899 2011-05-20 Pedro Alves <pedro@codesourcery.com>
901 * inf-loop.c (inferior_event_handler): Only output a message if
904 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
906 * MAINTAINERS: Update my e-mail address.
908 2011-05-20 Pedro Alves <pedro@codesourcery.com>
910 * infrun.c (proceed): Switch the inferior event loop to
911 INF_EXEC_COMPLETE if the target refused to resume from a
914 2011-05-20 Pedro Alves <pedro@codesourcery.com>
916 * infcmd.c: Include "inf-loop.h".
917 (step_once): When stepping into an inline subroutine, pretend the
918 target has run. If the target can async, switch the inferior
919 event loop to INF_EXEC_COMPLETE.
920 * inferior.h (user_visible_resume_ptid): Declare.
921 * infrun.c (user_visible_resume_ptid): New function, factored out
924 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
925 that the current thread is running. Merge async and sync
928 2011-05-20 Pedro Alves <pedro@codesourcery.com>
930 * infcmd.c (step_1): Simplify synchronous case.
932 2011-05-20 Pedro Alves <pedro@codesourcery.com>
934 * tracepoint.c: Include exceptions.h.
935 (TFILE_PID): Move higher in file.
936 (tfile_open): Delay pushing the tfile target until we're assured
937 the tfile header is present in the file. Wrap reading the initial
938 newline-terminated lines in TRY_CATCH. Pop the target if the
939 initial setup failed. Add the tfile's thread immediately
940 aftwards, before any non-essential setup. Don't skip
941 post_create_inferior if there are no traceframes present in the
943 (tfile_close): Remove redundant check for null before xfree call.
944 (tfile_thread_alive): New function.
945 (init_tfile_ops): Register it as to_thread_alive callback.
947 2011-05-20 Pedro Alves <pedro@codesourcery.com>
949 * tracepoint.c (tfile_open): Delete #if 0'd code.
951 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
953 Fix -readnow for -gdwarf-4 unused type units.
954 * dwarf2read.c (struct signatured_type): Remove the field offset.
955 (create_signatured_type_table_from_index): Remove its initialization.
956 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
957 instead. Add a complaint call.
958 (process_psymtab_comp_unit): Change assignment to gdb_assert.
959 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
960 (lookup_signatured_type_at_offset, read_signatured_type)
961 (write_one_signatured_type): Update the field for per_cu.
963 2011-05-19 Tom Tromey <tromey@redhat.com>
965 * python/py-inferior.c (python_inferior_exit): Use
967 (python_on_resume): Likewise.
969 2011-05-19 Matt Rice <ratmice@gmail.com>
971 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
973 2011-05-19 Hui Zhu <teawater@gmail.com>
975 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
977 2011-05-19 Hui Zhu <teawater@gmail.com>
979 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
981 2011-05-18 Tom Tromey <tromey@redhat.com>
983 * dwarf2read.c (dwarf2_add_field): Constify.
984 * value.c (value_static_field): Constify.
985 * gdbtypes.h (struct main_type) <field.field_location.physname>:
987 * ax-gdb.c (gen_static_field): Constify
989 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
991 * linux-nat.c (kill_callback): Use SIGKILL first.
993 2011-05-18 Joel Brobecker <brobecker@adacore.com>
995 * ada-lang.c (print_it_exception): Avoid use of sprintf.
997 2011-05-18 Tom Tromey <tromey@redhat.com>
999 * value.c (value_fn_field): Constify.
1000 * symtab.c (gdb_mangle_name): Constify.
1001 * stabsread.c (update_method_name_from_physname): Make 'physname'
1003 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1004 const. Use explicit fputc_filtered loop.
1005 (pascal_type_print_base): Constify.
1006 * p-lang.h (pascal_type_print_method_args): Update.
1007 * linespec.c (add_matching_methods): Constify.
1008 (add_constructors): Likewise.
1009 * jv-typeprint.c (java_type_print_base): Constify.
1010 * gdbtypes.h (struct cplus_struct_type)
1011 <fn_fieldlist.fn_field.physname>: Now const.
1012 * dwarf2read.c (compute_delayed_physnames): Constify.
1013 (dwarf2_add_member_fn): Likewise.
1014 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1016 2011-05-18 Pedro Alves <pedro@codesourcery.com>
1018 * infrun.c (resume): Mention which is the current thread, and its
1019 current PC in debug output.
1020 (prepare_to_proceed): Mention the thread switching in debug
1023 2011-05-18 Tom Tromey <tromey@redhat.com>
1025 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1026 path check. Use xmalloc and cleanups.
1027 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1029 2011-05-17 Tom Tromey <tromey@redhat.com>
1031 * cp-valprint.c (cp_print_value_fields): Catch errors from
1034 2011-05-17 Tom Tromey <tromey@redhat.com>
1036 * dwarf2read.c (dwarf2_get_die_type): Call
1037 get_die_type_at_offset.
1038 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1039 get_base_type function.
1041 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
1043 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1046 2011-05-16 Doug Evans <dje@google.com>
1048 * python/py-auto-load.c (source_section_scripts): Mention objfile
1051 2011-05-15 Doug Evans <dje@google.com>
1053 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1054 (try_thread_db_load_from_pdir): Call it. If unable to find
1055 libthread_db in directory of libpthread, see if we're looking at
1056 the separate-debug-info copy.
1058 * python/py-autoload.c (print_script): Print "Missing" instead of
1059 "No" for missing scripts.
1060 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1062 2011-05-13 Doug Evans <dje@google.com>
1064 * ui-file.c (stdio_file_write_async_safe): Add comment.
1066 2011-05-14 Hui Zhu <teawater@gmail.com>
1068 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1070 2011-05-13 Doug Evans <dje@google.com>
1072 Support $pdir and $sdir in libthread-db-search-path.
1073 * NEWS: Mention $sdir,$pdir.
1074 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1075 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1076 (try_thread_db_load_from_sdir): New function.
1077 (try_thread_db_load_from_dir): New function.
1078 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1079 system directories if search of libthread-db-search-path fails,
1080 that is now done via $sdir.
1081 (has_libpthread): New function.
1082 (thread_db_load): Remove search for libthread_db in directory of
1083 libpthread, that is now done via $pdir.
1085 * NEWS: Mention "info auto-load-scripts".
1086 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1087 script_not_found_warning_printed.
1088 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1089 all callers updated. Initialize script_not_found_warning_printed.
1090 (get_auto_load_pspace_data_for_loading): New function.
1091 (maybe_add_script): New function.
1092 (source_section_scripts): Simplify. Only print one warning regardless
1093 of the number of auto-load scripts not found.
1094 (clear_section_scripts): Clear script_not_found_warning_printed.
1095 (auto_load_objfile_script): Record script in hash table.
1096 (count_matching_scripts): New function.
1097 (maybe_print_script): Renamed from maybe_print_section_script, all
1098 callers updated. Rewrite to use ui_out_*.
1099 (info_auto_load_scripts): Renamed from
1100 maintenance_print_section_scripts, all callers updated.
1101 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1102 renamed as "info auto-load-scripts".
1104 2011-05-13 Tom Tromey <tromey@redhat.com>
1106 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1107 (read_sleb128): Likewise.
1109 2011-05-13 Tom Tromey <tromey@redhat.com>
1111 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1114 2011-05-13 Doug Evans <dje@google.com>
1116 * linux-nat.c (debug_linux_nat_async): Delete.
1117 Replace all references to use debug_linux_nat instead.
1118 (show_debug_linux_nat_async): Delete.
1119 (sigchld_handler): Call ui_file_write_async_safe instead of
1121 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1122 * ui-file.c (struct ui_file): New member to_write_async_safe.
1123 (null_file_write_async_safe): New function.
1124 (ui_file_write_async_safe): New function.
1125 (set_ui_file_write_async_safe): New function.
1126 (ui_file_new): Initialize to_write_async_safe.
1127 (stdio_file_write_async_safe): New function.
1128 (struct stdio_file): New member fd.
1129 (stdio_file_new): Initialize to_write_async_safe, fd.
1130 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1132 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1133 (set_ui_file_write_async_safe): Declare.
1134 (ui_file_write_async_safe): Declare.
1136 2011-05-13 Tom Tromey <tromey@redhat.com>
1138 * utils.c (do_value_free): New function.
1139 (make_cleanup_value_free): Likewise.
1140 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1142 (dwarf2_loc_desc_needs_frame): Call
1143 make_cleanup_value_free_to_mark.
1144 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1145 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1147 (new_dwarf_expr_context): Don't call value_mark.
1148 * dwarf2-frame.c (execute_stack_op): Call
1149 make_cleanup_value_free_to_mark.
1150 * defs.h (make_cleanup_value_free): Declare.
1152 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1154 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1155 prepare_execute_command.
1156 * top.c (prepare_execute_command): Return cleanup.
1157 (execute_command): Use cleanup from prepare_execute_command.
1158 * top.h (prepare_execute_command): Change prototype to return
1160 * defs.h (struct value): Add opaque declaration.
1161 (make_cleanup_value_free_to_mark): Add prototype.
1162 * utils.c (do_value_free_to_mark): New function.
1163 (make_cleanup_value_free_to_mark): Likewise.
1165 2011-05-12 Tom Tromey <tromey@redhat.com>
1167 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1168 cast left-hand-side to unsigned.
1170 2011-05-12 Tom Tromey <tromey@redhat.com>
1173 * value.h (value_from_contents): Declare.
1174 * value.c (value_from_contents): New function.
1175 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1176 (dwarf2_get_die_type): New function.
1177 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1178 (allocate_piece_closure): Acquire reference to values.
1179 (read_pieced_value): Update for value-based expressions.
1180 (write_pieced_value): Likewise.
1181 (free_pieced_value_closure): Call value_free as needed.
1182 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1183 Update for value-based expressions.
1184 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1185 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1186 <get_base_type>: New field.
1187 (struct dwarf_expr_piece) <v.value>: Change type.
1188 <v.regno>: New field.
1189 (struct dwarf_expr_context) <mark>: New field.
1190 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1191 (dwarf_expr_pop, dwarf_expr_push): Remove.
1192 (dwarf_expr_push_address): Declare.
1193 * dwarf2expr.c (dwarf_arch_cookie): New global.
1194 (struct dwarf_gdbarch_types): New.
1195 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1197 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1199 (dwarf_expr_push_address): New function.
1200 (dwarf_expr_pop): Now static.
1201 (dwarf_expr_fetch): Change return type.
1202 (dwarf_require_integral): New function.
1203 (dwarf_expr_fetch): Simplify.
1204 (add_piece): Update.
1205 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1207 (execute_stack_op) <sign_ext>: Remove.
1208 Use values for DWARF stack.
1209 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1210 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1212 (_initialize_dwarf2expr): New function.
1213 (add_piece): Update.
1214 (new_dwarf_expr_context): Set new field.
1215 (free_dwarf_expr_context): Call value_free_to_mark.
1216 * dwarf2-frame.c (no_base_type): New function.
1217 (execute_stack_op): Set get_base_type field. Update.
1219 2011-05-12 Tom Tromey <tromey@redhat.com>
1221 * dwarf2read.c (read_common_block): Fix formatting.
1223 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1225 * breakpoint.c (disable_breakpoint): Disable all locations
1226 associated with a tracepoint on target if a trace experiment is
1228 (disable_command): Disable a specific tracepoint location on target if
1229 a trace experiment is running.
1230 (do_enable_breakpoint): Enable all locations associated with a
1231 tracepoint on target if a trace experiment is running.
1232 (enable_command) Enable a specific tracepoint location on target if a
1233 trace experiment is running.
1234 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1235 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1236 to_disable_tracepoint.
1237 * target.h: Add declaration of struct bp_location.
1238 (struct target_ops): Add new functions
1239 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1240 to_disable_tracepoint to target operations.
1241 (target_supports_enable_disable_tracepoint): New macro.
1242 (target_enable_tracepoint): New macro.
1243 (target_disable_tracepoint): New macro.
1244 * remote.c (struct remote_state): Add new field.
1245 (remote_enable_disable_tracepoint_feature): New.
1246 (remote_protocol_features): Add new entry.
1247 (remote_supports_enable_disable_tracepoint): New.
1248 (remote_enable_tracepoint): New.
1249 (remote_disable_tracepoint): New.
1250 (init_remote_ops): Add remote_enable_tracepoint,
1251 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1252 to remote operations.
1253 * tracepoint.c (start_tracing): Allow tracing to start without any
1254 tracepoints enabled with just a warning if they can be re-enabled
1256 * NEWS: Add news item for the new behaviour of the enable and disable
1257 GDB commands when applied to tracepoints.
1258 Add news items for the new remote packets QTEnable and QTDisable.
1260 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1262 * config.in: Regenerate.
1263 * configure: Regenerate.
1264 * configure.ac <--with-system-readline> (for readline_echoing_p):
1266 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1267 (tui_old_rl_echoing_p): ... here.
1268 (tui_setup_io): Rename extern declaration readline_echoing_p to
1269 _rl_echoing_p. Adjust assignments for the both renames.
1271 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1273 * symtab.c (lookup_symtab): Run cleanup before returning.
1275 2011-05-11 Tom Tromey <tromey@redhat.com>
1277 * dwarf2read.c (handle_data_member_location): New function.
1278 (dwarf2_add_field): Use it.
1279 (read_common_block): Likewise.
1281 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1283 Make addrs->SECTINDEX always defined.
1284 * symfile.c (relative_addr_info_to_section_offsets): Check for
1285 SECTINDEX -1, not for zero ADDR.
1286 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1287 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1288 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1291 2011-05-10 Doug Evans <dje@google.com>
1293 * linux-thread-db.c: Whitespace cleanup.
1294 (try_thread_db_load_1): Fix comment.
1296 * linux-thread-db.c (set_libthread_db_search_path): New function.
1297 (_initialize_thread_db): Add setter for libthread-db-search-path.
1299 2011-05-09 Doug Evans <dje@google.com>
1301 * NEWS: Mention --with-iconv-bin.
1302 * configure.ac: New option --with-iconv-bin.
1303 * configure: Regenerate.
1304 * config.in: Regenerate.
1305 * defs.h (relocate_gdb_directory): Declare.
1306 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1307 removed progname parameter, and exported. All callers updated.
1308 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1310 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1311 adding missing call to restore_child_signals_mask.
1313 2011-05-09 Pedro Alves <pedro@codesourcery.com>
1315 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1317 * infrun.c (proceed, start_remote): Adjust.
1318 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1319 and adjust to not handle it.
1320 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1321 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1322 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1323 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1324 * windows-nat.c (do_initial_windows_stuff): Adjust.
1325 * infcmd.c (attach_command): Adjust.
1326 (notice_new_inferior): Adjust.
1328 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1330 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1331 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1332 * spu-tdep.c (op_selb): Use correct value.
1334 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1336 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1337 "parent" parameter to symbol_file_add_from_bfd call.
1339 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1340 Thiago Jung Bauermann <bauerman@br.ibm.com>
1342 Implement support for PowerPC BookE masked watchpoints.
1343 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1345 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1346 method. Initialize to NULL in all existing breakpoint_ops instances.
1347 (struct breakpoint) <hw_wp_mask>: New field.
1348 * breakpoint.c (is_masked_watchpoint): Add prototype.
1349 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1350 breakpoint's breakpoint_ops.works_in_software_mode if available.
1351 (watchpoints_triggered): Handle the case of a hardware masked
1353 (watchpoint_check): Likewise.
1354 (works_in_software_mode_watchpoint): New function.
1355 (insert_masked_watchpoint, remove_masked_watchpoint)
1356 (resources_needed_masked_watchpoint)
1357 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1358 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1359 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1361 (masked_watchpoint_breakpoint_ops): New structure.
1362 (watch_command_1): Check for the existence of the `mask' parameter.
1363 Set b->ops according to the type of hardware watchpoint being created.
1364 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1365 (ppc_linux_remove_mask_watchpoint)
1366 (ppc_linux_masked_watch_num_registers): New functions.
1367 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1368 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1369 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1370 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1371 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1372 (target_masked_watch_num_registers): New functions.
1373 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1374 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1376 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1377 (target_masked_watch_num_registers): Add prototypes.
1379 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1382 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1383 (producer_is_gcc_ge_4_0): New function.
1384 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1385 symtab->language code.
1386 (var_decode_location): Set cu->has_loclist.
1387 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1388 skip. Intialize force_skip from locations_valid. Move the prologue
1389 skipping code into two passes.
1390 * symtab.h (struct symtab): Make the primary field a bitfield. New
1391 field locations_valid.
1393 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1395 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1396 (classify_inner_name): Call cp_lookup_nested_type with
1398 * cp-namespace.c (cp_lookup_nested_type): New variable
1399 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1400 type_name_no_tag_or_error with saved_parent_type.
1401 * dwarf2read.c (load_partial_dies): Read in any children of
1402 DW_TAG_typedef with complaint in such case.
1403 * gdbtypes.c (type_name_no_tag_or_error): New function.
1404 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1405 * valops.c (destructor_name_p): New comment for parameter type. Remove
1406 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1407 * value.h (destructor_name_p): Remove type const.
1409 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1411 * symtab.c (compare_symbol_name): New function.
1412 (completion_list_add_name, expand_partial_symbol_name): Call it,
1413 remove the variable ncmp.
1414 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1417 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1419 Demote to sw watchpoint only in update_watchpoint.
1420 * breakpoint.c (update_watchpoint): Change between software and
1421 hardware watchpoint for all kinds of watchpoints, not just
1422 read/write ones. Determine b->exact value here instead of
1423 in watch_command_1. Error out if there are not enough resources
1424 for a read or access hardware watchpoint.
1425 (watch_command_1): Remove logic of checking whether there are
1426 enough resources available, since update_watchpoint will do that
1427 work now. Don't set b->exact here. Catch exceptions thrown by
1428 update_watchpoint and delete the watchpoint.
1429 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1430 Use target_exact_watchpoints instead.
1431 (delete_breakpoint): Notify observers only if deleted watchpoint
1432 has a breakpoint number assigned to it.
1434 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
1436 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1438 2011-05-05 Jerome Guitton <guitton@adacore.com>
1440 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1442 (i386_stack_tramp_frame_unwind): New static global.
1443 (i386_match_pattern): New function, extracted from i386_match_insn.
1444 (i386_match_insn): Use i386_match_pattern.
1445 (i386_match_insn_block): New function.
1446 (i386_tramp_chain_in_reg_insns)
1447 (i386_tramp_chain_on_stack_insns): New static variables.
1448 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1451 2011-05-04 Joseph Myers <joseph@codesourcery.com>
1453 * configure.host (xscale*): Don't handle target.
1454 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1457 2011-05-04 Yao Qi <yao@codesourcery.com>
1459 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1461 2011-05-03 Joel Brobecker <brobecker@adacore.com>
1464 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1465 | * elfread.c (elf_symtab_read): Stop memory leak.
1467 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1469 * nto-tdep.c (nto_target): Replace deprecated call to
1470 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1472 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Fix false GCC warning.
1475 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1477 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1479 * breakpoint.c (update_watchpoint): Move code to change
1480 the enable state of breakpoint from here ...
1481 (do_enable_breakpoint): ... to here.
1483 2011-04-26 Andrew Gontarek <andrewg@cray.com>
1485 * valprint.c (val_print_array_elements): Fixed poor performance
1486 of printing very large arrays with repeat_count_threshold set
1487 to unlimited. New comment.
1489 2011-04-29 Tom Tromey <tromey@redhat.com>
1491 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1492 (mi_parse): Likewise.
1493 * breakpoint.c (break_range_command): Use sizeof char*, not
1495 (create_breakpoint): Likewise.
1496 (parse_breakpoint_sals): Likewise.
1498 2011-04-29 Pedro Alves <pedro@codesourcery.com>
1500 * linux-nat.c (linux_child_remove_fork_catchpoint)
1501 (linux_child_remove_vfork_catchpoint)
1502 (linux_child_remove_exec_catchpoint): New functions.
1503 (linux_target_install_ops): Install them.
1505 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1509 * varobj.c (install_default_visualizer): Do not install a
1510 visualizer if the varobj is CPLUS_FAKE_CHILD.
1511 (construct_visualizer): Likewise.
1513 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1515 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1516 case insensitive comparison.
1518 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1520 * infrun.c (proceed): Revert previous change.
1521 (resume): Instead, handle the case of signal delivery while stepping
1522 off a breakpoint location here, and only if software single-stepping
1523 is used. Handle nested signals.
1525 2011-04-28 Yao Qi <yao@codesourcery.com>
1527 * arm-tdep.c (copy_unmodified): Rename to ...
1528 (arm_copy_unmodified): .. this. New.
1529 (copy_preload): Move common part to ...
1530 (install_preload): .. this. New.
1531 (arm_copy_preload): New.
1532 (copy_preload_reg): Move common part to ...
1533 (install_preload_reg): ... this. New.
1534 (arm_copy_preload_reg): New.
1535 (copy_b_bl_blx): Move common part to ...
1536 (install_b_bl_blx): .. this. New.
1537 (arm_copy_b_bl_blx): New.
1538 (copy_bx_blx_reg): Move common part to ...
1539 (install_bx_blx_reg): ... this. New.
1540 (arm_copy_bx_blx_reg): New.
1541 (copy_alu_reg): Move common part to ...
1542 (install_alu_reg): ... this. New.
1543 (arm_copy_alu_reg): New.
1544 (copy_alu_shifted_reg): Move common part to ...
1545 (install_alu_shifted_reg): ... this. New.
1546 (copy_ldr_str_ldrb_strb): Move common part to ...
1547 (install_ldr_str_ldrb_strb): ... this. New.
1548 (arm_copy_ldr_str_ldrb_strb): New.
1549 (copy_copro_load_store): Move some common part to ...
1550 (install_copy_copro_load_store): ... this. New.
1551 (arm_copy_copro_load_store): New.
1553 (arm_copy_svc): Renamed from copy_svc.
1554 (copy_undef): Delete.
1555 (arm_copy_undef): Renamed from copy_undef.
1556 (decode_ext_reg_ld_st): Delete.
1557 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1558 (decode_svc_copro): Delete.
1559 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1560 (copy_copro_load_store, copy_alu_imm): update callers.
1561 (copy_extra_ld_st, copy_block_xfer): Likewise.
1562 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1563 (decode_miscellaneous, decode_dp_misc): Likewise.
1564 (decode_ld_st_word_ubyte, decode_media): Likewise.
1565 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1566 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1567 (decode_unconditional, decode_miscellaneous): Likewise.
1568 (decode_media, decode_b_bl_ldmstm): Likewise.
1569 (arm_process_displaced_insn): Likewise..
1570 (decode_misc_memhint_neon): Delete.
1571 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1572 (decode_miscellaneous): Delete.
1573 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1574 (decode_dp_misc): Delete.
1575 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1576 (decode_ld_st_word_ubyte): Delete.
1577 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1578 (decode_media): Delete.
1579 (arm_decode_media): Renamed from decode_media.
1580 (decode_b_bl_ldmstm): Delete.
1581 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1582 (decode_ext_reg_ld_st): Delete.
1583 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1584 (decode_unconditional): Delete.
1585 (arm_decode_unconditional): Renamed from decode_unconditional.
1587 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1589 Case insensitive lookups implementation.
1590 * dwarf2read.c: Include ctype.h.
1591 (struct mapped_index): New field version.
1592 (mapped_index_string_hash): New parameter index_version. New comment
1593 for it. Call tolower appropriately.
1594 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1595 Choose the right index version for mapped_index_string_hash.
1596 (dwarf2_read_index): Support also the index version 5. Initialize the
1597 new struct mapped_index field version.
1598 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1599 (find_slot): Explain the version needs. Pass INT_MAX for the new
1601 (write_psymtabs_to_index): Produce version 5.
1602 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1603 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1604 * psymtab.c (lookup_partial_symbol): Find the
1605 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1607 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1609 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1610 (completion_list_add_name): New variable ncmp, initialize it, use it.
1611 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1612 * utils.c (strcmp_iw): Support case_sensitive_off.
1613 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1614 New function comment part. New variables saved_string1,
1615 saved_string2 and case_pass. Add a proper second pass.
1617 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1619 Replace re_comp/re_exec by regcomp/regexec.
1620 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1621 (search_symbols_name_matches): Use them, use regexec.
1622 (search_symbols): New variable retval_chain, adjust the use of
1623 old_chain against it. Replace re_comp by regcomp. Use the new struct
1624 search_symbols_data fields, use regexec instead of re_exec.
1626 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1628 Format the code for the next patch.
1629 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1630 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1631 New variables c1 and c2.
1633 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1635 * infrun.c (proceed): Do not single-step into signal delivery
1636 when stepping off a breakpoint location.
1637 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1638 (insert_step_resume_breakpoint_at_caller): Likewise.
1639 (insert_step_resume_breakpoint_at_sal): Likewise.
1640 (insert_longjmp_resume_breakpoint): Likewise.
1642 2011-04-27 Yao Qi <yao@codesourcery.com>
1644 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1646 2011-04-27 Joel Brobecker <brobecker@adacore.com>
1648 * procfs.c (procfs_pass_signals): Fix advance declaration.
1650 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1652 * target.h (struct target_ops): Remove to_notice_signals;
1653 add to_pass_signals.
1654 (target_notice_signals): Remove.
1655 (target_pass_signals): Add prototype.
1656 * target.c (update_current_target): Remove to_notice_signals;
1657 mention to_pass_signals.
1658 (target_pass_signals): New function.
1659 (debug_to_notice_signals): Remove.
1660 (setup_target_debug): Do not install debug_to_notice_signals.
1662 * infrun.c (signal_pass): New global.
1663 (resume): Call target_pass_signals.
1664 (handle_inferior_event): Report all signals while stepping over
1665 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1666 are re-inserted when stepping over a signal handler.
1667 (signal_cache_update): New function.
1668 (signal_stop_update): Call it.
1669 (signal_print_update): Likewise.
1670 (signal_pass_update): Likewise.
1671 (handle_command): Call signal_cache_update and target_pass_signals
1672 instead of target_notice_signals.
1673 (_initialize_infrun): Initialize signal_pass.
1675 * linux-nat.c (pass_mask): New global.
1676 (linux_nat_pass_signals): New function.
1677 (linux_nat_create_inferior): Report all signals initially.
1678 (linux_nat_attach): Likewise.
1679 (linux_nat_resume): Use pass_mask to decide whether to directly
1680 handle an inferior signal.
1681 (linux_nat_wait_1): Likewise.
1682 (linux_nat_add_target): Install to_pass_signals callback.
1684 * nto-procfs.c (notice_signals): Remove.
1685 (procfs_resume): Do not call notice_signals.
1686 (procfs_notice_signals): Remove.
1687 (procfs_pass_signals): New function.
1688 (init_procfs_ops): Install to_pass_signals callback instead of
1689 to_notice_signals callback.
1690 (_initialize_procfs): Report all signals initially.
1692 * procfs.c (procfs_notice_signals): Remove.
1693 (procfs_pass_signals): New function.
1694 (procfs_target): Install to_pass_signals callback instead of
1695 to_notice_signals callback.
1696 (register_gdb_signals): Remove.
1697 (procfs_debug_inferior): Report all signals initially.
1698 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1700 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1701 parameters; use them instead of calling signal_..._state routines.
1702 (remote_notice_signals): Remove.
1703 (remote_start_remote): Report all signals initially.
1704 (remote_resume): Do not call remote_pass_signals.
1705 (_initialize_remote): Install to_pass_signals callback instead of
1706 to_notice_signals callback.
1708 2011-04-27 Pedro Alves <pedro@codesourcery.com>
1710 * breakpoint.c (user_settable_breakpoint): Delete.
1711 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1712 (delete_command): Check user_breakpoint_p instead of looking at
1713 the breakpoint's type.
1714 (disable_command): Ditto.
1715 (enable_command): Ditto.
1716 (delete_trace_command): Use user_breakpoint_p instead of looking
1717 at the breakpoint number directly. When checking if there are
1718 user visible tracepoints, in order to know whether to ask the user
1719 for confirmation, check whether the breakpoint is actually a
1722 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1724 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1727 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1729 MI breakpoint notifications.
1731 * annotate.c (breakpoint_changed): Adjust parameter type.
1732 * breakpoint.c (set_breakpoint_condition): Adjust to change
1733 in breakpoint_modified type.
1734 (breakpoint_set_commands): Likewise.
1735 (do_map_commands_command): Likewise.
1736 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1737 changed after bumping hit count.
1738 (bpstat_stop_status): Likewise.
1739 (print_one_breakpoint_location): Don't wrap in tuple here.
1740 (print_one_breakpoint): Always print individual locations.
1741 For locations, use unnamed tuple.
1742 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1744 (create_catchpoint, create_syscall_event_catchpoint): Call
1745 breakpoint_created obsever.
1746 (mention): Don't call breakpoint_created observer.
1747 (create_breakpoint_sal): Call breakpoint_created observer.
1748 (create_breakpoint, watch_command_1): Likewise.
1749 (create_ada_exception_breakpoint): Likewise.
1750 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1751 (locations_are_equal): New.
1752 (update_breakpoint_locations): If locations were changed, notify.
1753 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1754 Call breakpoint_modified observer.
1756 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1757 (mi_cmd_break_insert): Don't set observers for modify and delete.
1758 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1759 (mi_breakpoint_created, mi_breakpoint_deleted)
1760 (mi_breakpoint_modified): New.
1761 (mi_interpreter_init): Hook the above.
1762 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1763 while -break-* commands are executing.
1764 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1765 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1767 (mi_ui_out_impl): Hook in mi_redirect.
1768 (mi_field_skip): True to the name, skip the field, don't output
1769 a field with an empty value.
1771 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1772 (gdbpy_breakpoint_deleted): Adjust.
1773 * tui/tui-hooks.c (tui_event_create_breakpoint)
1774 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1776 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1778 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1779 (procfs_remove_hw_watchpoint): Likewise.
1781 2011-04-26 Michael Walle <michael@walle.cc>
1783 * remote.c (remote_start_remote): Ack packet after sending the
1786 2011-04-26 Yao Qi <yao@codesourcery.com>
1788 * linux-nat.c: Move common macros to ...
1789 Include linux-ptrace.h.
1790 * common/linux-ptrace.h: ... here. New.
1792 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1794 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1795 !objfile_has_partial_symbols. New comment.
1796 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1797 SYM_READ_PSYMBOLS is not present. Extend the comment.
1798 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1800 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1802 * defs.h (ENUM_BITFIELD): Remove.
1804 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1805 Eli Zaretskii <eliz@gnu.org>
1807 * NEWS: Document the new gdbserver --once option.
1809 2011-04-21 Jie Zhang <jzhang918@gmail.com>
1811 * MAINTAINERS: Update my email address.
1813 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1815 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1816 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1817 function call if __STDC_ISO_10646__ macro is defined.
1818 (intermediate_encoding): New prototype.
1819 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1820 to generate compile time error for unsupported gdb_wchar_t size.
1821 (ENDIAN_SUFFIX): New macro.
1822 (intermediate_encoding): New function.
1824 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 * ada-lang.c (struct add_partial_datum): Update the comment for
1827 expand_partial_symbol_name.
1828 (ada_add_partial_symbol_completions): Rename to ...
1829 (ada_expand_partial_symbol_name): ... here, change return type, update
1830 function comment, call symbol_completion_match instead of
1831 symbol_completion_add.
1832 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1833 and ada_expand_partial_symbol_name.
1834 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1836 (dw2_map_symbol_names): Remove.
1837 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1838 * psymtab.c (map_symbol_names_psymtab): Remove.
1839 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1840 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1842 (psym_functions): Unlist map_symbol_names_psymtab.
1843 (map_partial_symbol_names): Rename to ...
1844 (expand_partial_symbol_names): ... here, change the FUN type, call
1845 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1846 * psymtab.h (map_partial_symbol_names): Rename to ...
1847 (expand_partial_symbol_names): ... here, change the FUN type.
1848 * symfile.h (struct quick_symbol_functions): Update the description of
1849 expand_symtabs_matching. Remove map_symbol_names.
1850 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1851 (struct add_name_data): Update the comment for
1852 expand_partial_symbol_name.
1853 (add_partial_symbol_name): Rename to ...
1854 (expand_partial_symbol_name): ... here. Replace
1855 completion_list_add_name call by strncmp.
1856 (default_make_symbol_completion_list_break_on): Use now
1857 expand_partial_symbol_names and expand_partial_symbol_name.
1858 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1860 2011-04-20 Tom Tromey <tromey@redhat.com>
1862 * dwarf2read.c (save_gdb_index_command): Replace format
1863 documentation with a pointer to the manual.
1865 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1867 * regcache.c: Include remote.h.
1868 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1869 (regcache_dump): Handle regcache_dump_remote.
1870 (maintenance_print_remote_registers): New function.
1871 (_initialize_regcache): Install "maint print remote-registers"
1873 * remote.c (map_regcache_remote_table): New function, factored out
1875 (init_remote_state): ... here.
1876 (remote_register_number_and_offset): New.
1877 * remote.h (remote_register_number_and_offset): Declare.
1879 2011-04-20 Pedro Alves <pedro@codesourcery.com>
1881 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1882 null_ptid, assume and allow a NULL address space, instead of
1883 asking the target for the ptid's address space.
1884 * infrun.c (ptid_is_pid): Remove assertion.
1886 2011-04-19 Tom Tromey <tromey@redhat.com>
1888 * windows-tdep.c (windows_xfer_shared_library):
1889 * windows-nat.c (get_module_name, windows_make_so):
1890 * v850-tdep.c (v850_handle_pushm):
1891 * utils.c (null_cleanup, gdb_realpath):
1892 * ui-out.c (get_next_header):
1893 * tracepoint.c (clear_traceframe_info):
1894 * symtab.c (lookup_symtab):
1895 * serial.h (struct serial_ops):
1896 * mipsread.c (read_alphacoff_dynamic_symtab):
1897 * infcmd.c (print_return_value):
1898 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1899 * f-exp.y (parse_number):
1900 * exceptions.c (catch_exceptions):
1901 * dummy-frame.c (dummy_frame_this_id):
1902 * defs.h (struct cleanup):
1903 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1904 * arm-tdep.c (arm_push_dummy_call):
1905 * amd64-tdep.h (amd64_collect_xsave):
1906 * amd64-tdep.c (amd64_collect_xsave):
1907 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1908 * README (typing): Remove duplicate words.
1909 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1910 * infrun.c (siginfo_value_read): Fix typo.
1911 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1912 * top.c (source_line_number): Add comma.
1914 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1916 * thread.c (any_live_thread_of_process): Prioritize threads
1917 that are not executing.
1918 * gdbthread.h (any_live_thread_of_process): Update comment
1919 as per above change.
1921 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1923 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1924 (scan_xcoff_symtab): Likewise.
1926 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1928 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1931 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1932 Pedro Alves <pedro@codesourcery.com>
1934 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1935 variables to simplify code and avoid == operator at end of
1936 line as this is against GNU coding standards.
1938 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1940 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1941 lm_name to name_lm to avoid conflict with lm_name function.
1943 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1945 ARI fixes: Use only lowercase function name for static functions.
1946 * nto-tdep.c (LM_ADDR): Rename to...
1947 (lm_addr): New function name.
1948 (nto_relocate_section_addresses): Adapt to change above.
1949 * solib-sunos.c (LM_ADDR): Rename to...
1950 (lm_addr): New function name.
1951 (LM_NEXT): Rename to...
1952 (lm_next): New function name.
1953 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1954 function name changes above.
1955 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1956 (lm_addr_from_link_map): New function name.
1957 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1958 (has_lm_dynamic_from_link_map): New function name.
1959 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1960 (lm_dynamic_from_link_map): New function name.
1961 (LM_ADDR_CHECK): Rename to...
1962 (lm_addr_check): New function name.
1963 (LM_NEXT): Rename to...
1964 (lm_next): New function name.
1965 (LM_PREV): Rename to...
1966 (lm_prev): New function name.
1967 (LM_NAME): Rename to...
1968 (lm_name): New function name.
1969 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1970 (ignore_first_link_map_entry): New function name.
1971 (svr4_keep_data_in_core): Adapt to function name changes above.
1972 (svr4_current_sos): Likewise.
1973 (enable_break): Likewise.
1974 (svr4_relocate_section_addresses): Likewise.
1976 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1979 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1980 sprintf. Simplify code and avoid loosing memory.
1981 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1982 (call0_frame_cache): Remove && operator from end of line.
1984 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 Fix libraries displacement if they change whether they were prelinked.
1987 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1988 does not match. Comment why.
1990 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1992 * corelow.c: Include wrapper.h.
1993 (core_open): Call now gdb_target_find_new_threads.
1994 * wrapper.c: Include target.h.
1995 (gdb_target_find_new_threads): New.
1996 * wrapper.h (gdb_target_find_new_threads): New declaration.
1998 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2001 even if !TARGET_HAS_EXECUTION.
2003 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2005 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2006 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2007 bfd_get_synthetic_symtab.
2008 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2009 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2010 parameter parent, remove the call to add_separate_debug_objfile.
2011 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2012 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2013 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2014 parent, new comment for it, call add_separate_debug_objfile for it.
2015 (symbol_file_add_separate): Pass objfile as the parameter parent,
2016 remove the call to add_separate_debug_objfile.
2017 (symbol_file_add_from_bfd): New parameter parent, pass it.
2018 (symbol_file_add): Pass NULL to the new parameter parent.
2019 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2021 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2023 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2026 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2028 Fix Python access to inlined frames.
2029 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2030 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2032 2011-04-15 Tom Tromey <tromey@redhat.com>
2034 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2036 2011-04-15 Gary Benson <gbenson@redhat.com>
2038 * MAINTAINERS: Add myself to write-after-approval section.
2040 2011-04-14 Mike Frysinger <vapier@gentoo.org>
2042 * remote-sim.c (sim_command_completer): New function.
2043 (_initialize_remote_sim): Set completer to sim_command_completer.
2045 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2047 * breakpoint.c (print_exception_catchpoint): Rename to ...
2048 (print_it_exception_catchpoint): ... this.
2049 (gnu_v3_exception_catchpoint_ops): Update with new name
2050 for print_it_exception_catchpoint.
2052 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2054 * MAINTAINERS: Add myself for write after approval privileges.
2056 2011-04-13 Marek Polacek <mpolacek@redhat.com>
2058 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2060 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2062 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2064 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2066 * breakpoint.c (save_breakpoints): Verify whether
2067 breakpoint_ops.print_recreate is defined before calling it.
2069 2011-04-11 Gary Benson <gbenson@redhat.com>
2071 Fix failure with --enable-maintainer-mode.
2072 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2074 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2077 * symtab.c (search_symbols): Reorder the KIND description in the
2078 function comment. Remove the unused 4th element of types, types2,
2079 types3 and types4. New gdb_assert on KIND.
2080 (symtab_symbol_info): Remove the unused 4th element of classnames.
2081 New gdb_assert on KIND.
2082 * symtab.h (enum search_domain): New warning in the enum comment.
2083 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2086 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 Fix crash of gdb save-index on a STABS file.
2089 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2092 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2094 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2095 * dwarf2read.c: Include ctype.h.
2096 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2098 (dwarf2_add_field): Fix new_field->accessibility by calling
2099 dwarf2_default_access_attribute. Restructure setting accessibility
2101 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2102 is_private and is_protected by calling
2103 dwarf2_default_access_attribute.
2105 2011-04-08 Kevin Buettner <kevinb@redhat.com>
2107 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2108 to the initialization.
2110 2011-04-08 Steve Ellcey <sje@cup.hp.com>
2112 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2115 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2117 Remove support for old Cygwin 1.5 versions.
2118 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2119 function on old Cygwin version.
2120 * windows-nat.c: Remove cygwin version check and always define
2121 __USEWIDE for Cygwin compilation.
2123 2011-04-07 Yao Qi <yao@codesourcery.com>
2125 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2127 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2128 (arm_copy_svc): Remove parameters INSN and TO.
2129 (decode_svc_copro): Update caller.
2130 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2131 from function pointer `copy_svc_os'.
2133 2011-04-07 Yao Qi <yao@codesourcery.com>
2135 * arm-tdep.c (cleanup_branch): Set a correct return address in
2136 LR for ARM and Thumb.
2138 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2142 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2143 in the function comment, a new note on values compatibility.
2144 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2145 * symtab.h (SYMBOL_HASH_NEXT): New.
2147 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2149 * ppc-linux-nat.c (check_condition): Add len output parameter.
2150 Set it based on the memory region referenced in the condition
2151 expression. Update all callers.
2153 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2155 Fix crash regression on systems featuring .gdb_index.
2156 * objfiles.c (free_objfile): Move the
2157 forget_cached_source_info_for_objfile call earlier. Comment it.
2158 Extend the comment for objfile_free_data.
2160 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 Fix regression of displaying the debug format.
2163 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2166 2011-04-04 Tom Tromey <tromey@redhat.com>
2168 * cli/cli-interp.c (struct captured_execute_command_args):
2170 (do_captured_execute_command): Remove.
2171 (safe_execute_command): Use TRY_CATCH.
2172 * cli/cli-script.c (struct wrapped_read_command_file_args):
2174 (wrapped_read_command_file): Remove.
2175 (script_from_file): Use TRY_CATCH.
2176 * exceptions.c (catch_exception): Remove.
2177 * exceptions.h (catch_exception): Remove.
2178 (deprecated_throw_reason): Update comment.
2179 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2180 argument to 'context'.
2181 (mi_execute_command): Use TRY_CATCH.
2182 * remote.c (struct start_remote_args): Remove.
2183 (remote_start_remote): Update; change arguments.
2184 (remote_open_1): Use TRY_CATCH.
2186 2011-04-04 Tom Tromey <tromey@redhat.com>
2188 * tracepoint.c (scope_info): Update.
2189 * symtab.c (decode_line_spec): Update.
2190 * python/python.c (gdbpy_decode_line): Update.
2191 * linespec.h (decode_line_1): Update.
2192 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2193 (decode_compound, find_method, symtab_from_filename)
2194 (decode_variable): Likewise.
2195 * cli/cli-cmds.c (edit_command): Update.
2196 (list_command): Update.
2197 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2199 (create_breakpoint): Update.
2200 (until_break_command): Update.
2201 (addr_string_to_sals): Update.
2202 (decode_line_spec_1): Update.
2204 2011-04-04 Tom Tromey <tromey@redhat.com>
2206 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2207 (do_captured_parse_breakpoint): Remove.
2208 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2209 Use TRY_CATCH directly.
2211 2011-04-04 Tom Tromey <tromey@redhat.com>
2213 * symtab.h (free_symtab): Remove.
2214 (forget_cached_source_info_for_objfile): Declare.
2215 * symmisc.c (free_symtab): Remove.
2216 * source.c (forget_cached_source_info_for_objfile): New function.
2217 (forget_cached_source_info): Use it.
2218 * objfiles.c (free_objfile): Simplify check before calling
2219 clear_current_source_symtab_and_line. Call
2220 forget_cached_source_info_for_objfile.
2222 2011-04-04 Tom Tromey <tromey@redhat.com>
2224 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2225 (new_symtab): Don't set `free_code' on symtab.
2226 (new_linetable): Properly handle size==0.
2227 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2228 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2230 * jv-lang.c (struct jv_per_objfile_data): New.
2231 (jv_per_objfile_free): Free the data.
2232 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2233 (get_java_class_symtab): Set the `dict' field on the
2234 jv_per_objfile_data.
2235 (free_class_block): Remove.
2236 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2239 2011-04-04 Tom Tromey <tromey@redhat.com>
2241 * symfile.c (reread_symbols): Update.
2242 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2244 * objfiles.c (allocate_objfile): Update.
2245 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2247 * cp-namespace.c (lookup_symbol_file): Don't call
2248 lookup_possible_namespace_symbol.
2249 (initialize_namespace_symtab, get_possible_namespace_block)
2250 (free_namespace_block, cp_check_possible_namespace_symbols)
2251 (check_possible_namespace_symbols_loop)
2252 (check_one_possible_namespace_symbol)
2253 (lookup_possible_namespace_symbol): Remove.
2254 (maintenance_cplus_namespace): Replace with notice.
2255 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2257 2011-04-04 Tom Tromey <tromey@redhat.com>
2259 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2260 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2261 * symmisc.c (free_symtab): Don't free debugformat.
2262 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2263 (record_debugformat, record_producer): Document.
2264 * buildsym.c (end_symtab): Don't save debugformat and producer
2266 (end_symtab): Don't free debugformat and producer fields.
2267 (record_debugformat): Don't call xstrdup.
2268 (record_producer): Likewise.
2270 2011-04-04 Tom Tromey <tromey@redhat.com>
2272 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2273 (source_line_charpos, source_charpos_line): Remove.
2275 2011-04-04 Tom Tromey <tromey@redhat.com>
2277 * symtab.h (domain_enum): Split in two...
2278 (enum search_domain): New.
2279 (search_symbols): Update.
2280 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2281 redundant declarations.
2282 (search_symbols): Change 'kind' argument to search_domain.
2284 (print_symbol_info): Likewise.
2285 (symtab_symbol_info): Likewise.
2286 * symfile.h (struct quick_symbol_functions)
2287 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2288 <expand_symtabs_matching>: Likewise.
2289 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2290 (expand_symtabs_matching_via_partial): Update.
2291 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2292 (dw2_expand_symtabs_for_function): Update.
2293 * block.h: Moved anonymous enum...
2294 * defs.h (enum block_enum): ... here. Now named.
2296 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2298 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2299 * version.in: Bump version to 7.3.50.20110403-cvs.
2301 2011-04-03 Joel Brobecker <brobecker@adacore.com>
2303 * NEWS: Create a new section for the next release branch.
2304 Rename the section of the current branch, now that it has
2307 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2309 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2310 for "fpscr" in target description.
2312 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2314 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2315 initialize it. Delay HASH initialization. Strip the part after open
2316 parenthesis for languages with qualifiers. Call do_cleanups.
2318 2011-04-01 Tom Tromey <tromey@redhat.com>
2320 * utils.c (report_command_stats): Don't print `-' for negative
2323 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2325 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2326 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2329 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2331 * breakpoint.h (bpdisp_text): Add declaration.
2332 * breakpoint.c (bpdisp_text): Make non-static.
2333 * ada-lang.c: #include "mi/mi-common.h".
2334 (print_it_exception): Rewrite to improve GDB/MI output.
2336 2011-04-01 Pedro Alves <pedro@codesourcery.com>
2338 * arm-tdep.h (struct address_space): Add forward declaration.
2340 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2342 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2343 * arm-tdep.c (arm_override_mode): New global.
2344 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2345 execution mode heuristics.
2346 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2347 second single-step breakpoint if needed, using
2348 arm_insert_single_step_breakpoint.
2349 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2350 ARM execution mode, do not call thumb_get_next_pc_raw.
2351 (arm_get_next_pc): Encode execution mode in return value. Call
2352 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2353 (arm_insert_single_step_breakpoint): New function.
2354 (arm_software_single_step): Call it.
2355 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2356 argument to return execution mode of sigreturn target.
2357 (arm_linux_syscall_next_pc): Use it.
2358 (arm_linux_copy_svc): Update call.
2359 (arm_linux_software_single_step): Call
2360 arm_insert_single_step_breakpoint.
2362 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2364 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2367 2011-03-31 Tom Tromey <tromey@redhat.com>
2369 * varobj.c (update_dynamic_varobj_children): Properly handle
2370 errors from iterator.
2372 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2374 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2375 struct linkage name twice.
2377 2011-03-31 Tom Tromey <tromey@redhat.com>
2379 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2380 missing ">" to message.
2382 2011-03-31 Tom Tromey <tromey@redhat.com>
2384 * varobj.c (instantiate_pretty_printer): Remove duplicate
2387 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2389 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2390 if neither saved value nor register available (e.g. signal frame).
2392 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2394 * macroexp.c (expand): Avoid uninitialized variable
2397 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2399 * breakpoint.c (break_range_command): Fix typo in comment.
2401 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2402 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2404 Implement support for PowerPC BookE ranged breakpoints.
2405 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2406 * breakpoint.h (struct bp_target_info) <length>: New member
2408 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2409 instead of struct breakpoint as argument, and also add ASPACE
2410 and BP_ADDR arguments. Update all callers.
2411 (struct breakpoint_ops) <print_one_detail>: New method.
2412 (struct breakpoint) <addr_string_range_end>: New member variable.
2413 * breakpoint.c (breakpoint_location_address_match): Add function
2415 (insert_bp_location): Set bl->target_info.length.
2416 (breakpoint_here_p): Call breakpoint_location_address_match.
2417 (moribund_breakpoint_here_p): Likewise.
2418 (regular_breakpoint_inserted_here_p): Likewise.
2419 (breakpoint_thread_match): Likewise.
2420 (bpstat_stop_status): Likewise.
2421 (bpstat_check_location): Move call to
2422 breakpoint_ops.breakpoint_hit to the top.
2423 (print_one_breakpoint_location): Call
2424 breakpoint_ops.print_one_detail if available.
2425 (breakpoint_address_match_range): New function.
2426 (breakpoint_location_address_match): Likewise.
2427 (breakpoint_locations_match): Compare the length field of the
2429 (hw_breakpoint_used_count): Count resources used by all locations
2430 in a breakpoint, and use breakpoint_ops.resources_needed if
2432 (breakpoint_hit_ranged_breakpoint): New function.
2433 (resources_needed_ranged_breakpoint): Likewise.
2434 (print_it_ranged_breakpoint): Likewise.
2435 (print_one_ranged_breakpoint): Likewise.
2436 (print_one_detail_ranged_breakpoint): Likewise.
2437 (print_mention_ranged_breakpoint): Likewise.
2438 (print_recreate_ranged_breakpoint): Likewise.
2439 (ranged_breakpoint_ops): New structure.
2440 (find_breakpoint_range_end): New function.
2441 (break_range_command): Likewise.
2442 (delete_breakpoint): Free addr_string_range_end.
2443 (update_breakpoint_locations): Add SALS_END argument. Update
2444 all callers. Calculate breakpoint length if a non-zero SALS_END
2445 is given. Call breakpoint_locations_match instead of
2446 breakpoint_address_match.
2447 (reset_breakpoint): Find SaL of the end of the range if B is a
2449 (_initialize_breakpoint): Register break-range command.
2450 * defs.h (print_core_address): Add function prototype.
2451 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2453 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2454 (ppc_linux_remove_hw_breakpoint): Likewise.
2455 (_initialize_ppc_linux_nat): Initialize
2456 to_ranged_break_num_registers.
2457 * target.c (update_current_target): Add comment about
2458 to_ranged_break_num_registers.
2459 (target_ranged_break_num_registers): New function.
2460 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2462 (target_ranged_break_num_registers): Add function prototype.
2463 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2464 * utils.c (print_core_address): ... here.
2466 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2468 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2469 variable compiler warning.
2471 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2473 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2475 (re_set_breakpoint): ... to here ...
2476 (addr_string_to_sals): ... and here.
2478 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2480 * Makefile.in (SFILES): Add missing C sources.
2481 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2482 Add missing headers.
2484 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2486 * .gitignore: New file.
2488 2011-03-29 Mike Frysinger <vapier@gentoo.org>
2490 * NEWS: Mention new cfi device simulation.
2492 2011-03-29 Tom Tromey <tromey@redhat.com>
2494 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2495 otherwise anonymous types.
2496 (dwarf2_name): Likewise.
2497 * valops.c (value_struct_elt_for_reference): Refine artificial
2498 type logic. Call error if j==-1.
2500 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2502 Fix false GCC warning.
2503 * infcall.c (find_function_addr): Initialize funaddr.
2505 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2507 Fix mingw compilation with --enable-targets=all.
2508 * remote-mips.c (gdb_usleep.h): Include header.
2509 (mips_enter_debug): Use gdb_usleep instead of sleep.
2511 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2513 Support resolution of STT_GNU_IFUNC via breakpoints.
2514 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2515 bp_gnu_ifunc_resolver_return.
2516 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2517 the loop. Support bp_gnu_ifunc_resolver and
2518 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2519 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2521 (bptype_string, print_one_breakpoint_location): Support
2522 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2523 (user_settable_breakpoint): Return true also for
2524 bp_gnu_ifunc_resolver.
2525 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2526 bp_gnu_ifunc_resolver_return.
2527 (set_breakpoint_location_function): New parameter explicit_loc,
2528 describe it. Call find_pc_partial_function_gnu_ifunc with new
2529 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2530 EXPLICIT_LOC is not set.
2531 (set_raw_breakpoint): Set EXPLICIT_LOC for
2532 set_breakpoint_location_function.
2533 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2534 set_breakpoint_location_function.
2535 (mention): Support bp_gnu_ifunc_resolver and
2536 bp_gnu_ifunc_resolver_return.
2537 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2538 set_breakpoint_location_function.
2539 (update_breakpoint_locations): Remove static.
2540 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2541 bp_gnu_ifunc_resolver_return.
2542 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2543 bp_gnu_ifunc_resolver_return.
2544 (update_breakpoint_locations): New declaration.
2545 * elfread.c: Include gdbthread.h and regcache.h.
2546 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2548 (elf_gnu_ifunc_fns): Install them.
2549 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2550 (stub_gnu_ifunc_resolver_return_stop): New functions.
2551 (stub_gnu_ifunc_fns): Install them.
2552 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2553 and gnu_ifunc_resolver_return_stop.
2554 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2556 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 STT_GNU_IFUNC reader implementation.
2559 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2560 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2561 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2562 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2563 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2564 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2565 (elf_gnu_ifunc_resolve_addr): New.
2566 (elf_symfile_read): Call elf_rel_plt_read.
2567 (elf_gnu_ifunc_fns): New.
2568 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2569 Install elf_gnu_ifunc_fns.
2570 * infcall.c (find_function_return_type): New function.
2571 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2572 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2573 (stub_gnu_ifunc_resolve_name): New functions.
2574 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2575 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2576 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2578 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 Code cleanup for later STT_GNU_IFUNC support.
2581 * infcall.c (find_function_addr): Remove variable code, use explicit
2582 dereferences for it. Move VALUE_TYPE initialization later.
2584 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2587 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2588 (clear_pc_function_cache): Clear it.
2589 (find_pc_partial_function): Rename to ...
2590 (find_pc_partial_function_gnu_ifunc): ... this function. New
2591 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2592 (find_pc_partial_function): New wrapper for this function.
2593 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2595 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2597 GDB internal type support for STT_GNU_IFUNC.
2598 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2599 (elf_symtab_read): Set mst_text_gnu_ifunc for
2600 BSF_GNU_INDIRECT_FUNCTION.
2601 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2602 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2603 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2604 nodebug_got_plt_symbol.
2605 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2606 (TYPE_GNU_IFUNC): New.
2607 (struct main_type): New field flag_gnu_ifunc.
2608 (struct builtin_type): New field builtin_func_func.
2609 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2610 nodebug_got_plt_symbol.
2611 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2612 (in_gnu_ifunc_stub): New.
2613 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2615 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2616 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2617 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2619 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2620 * symtab.c (search_symbols): Likewise.
2621 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2622 and mst_slot_got_plt.
2623 (in_gnu_ifunc_stub): New declaration.
2625 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 Support a ring of related breakpoints.
2628 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2629 other functions, add gdb_assert.
2630 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2631 watchpoint_del_at_next_stop.
2632 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2633 (bpstat_stop_status): Handle ring in related_breakpoint.
2634 (set_raw_breakpoint_without_location): Initialize ring in
2636 (delete_breakpoint): Handle ring in related_breakpoint, use
2637 watchpoint_del_at_next_stop.
2638 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2640 2011-03-28 Tom Tromey <tromey@redhat.com>
2643 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2644 with `language_minimal'.
2646 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2648 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2649 instead of checking for STT_ARM_TFUNC symbol type.
2651 2011-03-25 Tom Tromey <tromey@redhat.com>
2653 * linespec.c (symbol_found): Restore line-based result for
2654 non-LOC_LABEL symbols.
2656 2011-03-25 Kai Tietz <ktietz@redhat.com>
2658 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2659 instead of strcmp for comparison.
2660 (tui_source_is_displayed): Likewise.
2661 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2663 2011-03-24 Mark Wielaard <mjw@redhat.com>
2665 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2667 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2668 (find_partial_die_in_comp_unit): Likewise in comment.
2669 (read_attribute_value): Likewise.
2670 (lookup_die_type): Likewise.
2671 (dwarf_form_name): Likewise.
2672 (dump_die_shallow): Likewise.
2673 (follow_die_ref_or_sig): Likewise.
2675 2011-03-24 Tom Tromey <tromey@redhat.com>
2677 PR breakpoints/11816:
2678 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2679 (decode_compound): Update.
2680 (find_function_symbol): New function.
2681 (decode_dollar): Update.
2682 (decode_label): Add 'function_symbol' parameter. Handle
2683 function-relative labels.
2684 (decode_variable): Update.
2685 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2686 not its line. Set `special_display' and canonical name for
2689 2011-03-24 Tom Tromey <tromey@redhat.com>
2691 * linespec.h (struct linespec_result) <special_display>: New
2693 * breakpoint.h (struct breakpoint) <display_canonical>: New
2695 * breakpoint.c (print_breakpoint_location): Respect
2697 (create_breakpoint_sal): Add 'display_canonical' parameter.
2698 (create_breakpoints_sal): Update.
2699 (create_breakpoint): Update.
2701 2011-03-24 Tom Tromey <tromey@redhat.com>
2703 * symtab.c (decode_line_spec): Update.
2704 * linespec.c (build_canonical_line_spec): Change type of
2706 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2707 (find_method, decode_all_digits, decode_dollar, decode_label)
2708 (symbol_found): Likewise.
2709 (init_linespec_result): New function.
2710 * breakpoint.c (struct captured_parse_breakpoint_args)
2711 <canonical_p>: New field, replaces addr_string_p.
2712 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2714 (parse_breakpoint_sals): Likewise.
2715 (do_captured_parse_breakpoint): Update.
2716 (create_breakpoint): Use struct linespec_result.
2717 (until_break_command): Update.
2718 (breakpoint_re_set_one): Update.
2719 (decode_line_spec_1): Update.
2720 * linespec.h (struct linespec_result): New.
2721 (init_linespec_result): Declare.
2723 2011-03-23 Pedro Alves <pedro@codesourcery.com>
2725 * regcache.c (regcache_raw_read): If the target didn't supply a
2726 given raw register, mark it as unavailable.
2728 2011-03-23 Kai Tietz <ktietz@redhat.com>
2730 * breakpoint.c (clear_command): Use filename_cmp
2731 instead of strcmp for comparison.
2732 * buildsym.c (watch_main_source_file_lossage): Likewise.
2733 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2734 checking just for slash.
2735 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2736 strrchr and filename_cmp instead of strcmp for filenames.
2737 (add_old_header_file): Use filename_cmp
2738 instead of strcmp for comparison.
2739 * exec.c (exec_set_section_address): Likewise.
2740 * macrotab.c (macro_lookup_inclusion): Likewise.
2741 (macro_lookup_inclusion): Likewise.
2742 * elfread.c (_initialize_elfread): Likewise.
2743 (elfstab_offset_sections): Likewise.
2744 (elfstab_offset_sections): Use lbasename instead of
2746 * mdebugread.c (parse_partial_symbols): Likewise.
2747 (arse_partial_symbols): Use filename_(n)cmp instead of
2748 str(n)cmp for comparison.
2749 * minsyms.c (lookup_minimal_symbol): Likewise.
2750 * psymtab.c (read_psymtabs_with_filename): Likewise.
2751 * solib.c (solib_read_symbols): Likewise.
2752 (reload_shared_libraries_1): Likewise.
2753 * symmisc.c (maintenance_print_symbols): Likewise.
2754 * symfile.c (separate_debug_file_exists): Likewise.
2755 (reread_symbols): Likewise.
2756 (find_separate_debug_file_by_debuglink): Likewise.
2757 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2758 * source.c (add_path): Likewise.
2759 * symtab.c (filename_seen): Likewise.
2760 (file_matches): Likewise.
2761 (print_symbol_info): Likewise.
2762 (maybe_add_partial_symtab_filename): Likewise.
2763 (make_source_files_completion_list): Likewise.
2764 * xml-syscall.c (init_sysinfo): Likewise.
2765 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2766 IS_DIR_SEPARATOR for checking for trailing path separator.
2768 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2770 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2771 label abort_expression.
2772 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2773 DWARF_VALUE_OPTIMIZED_OUT.
2775 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2778 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2779 to linkage_name. Invert its value. Update the function comment.
2780 (c_type_print_varspec_suffix): Invert it at the caller.
2781 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2783 2011-03-22 Pedro Alves <pedro@codesourcery.com>
2785 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2786 errors when reading the `stop_pc'.
2787 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2790 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2792 * NEWS: Document gdb.Write stream keyword.
2794 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2797 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2798 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2799 (dwarf2_add_field): Fix new_field->accessibility for
2800 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2802 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2806 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2807 other error classes. Do not print stack trace.
2809 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2811 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2812 (dwarf2_add_field): Fix new_field->accessibility for
2813 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2815 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2817 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2818 encountering a load via a non-SP register.
2820 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2822 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2823 field in returned unwinder.
2825 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2829 2012-03-21 Joel Brobecker <brobecker@adacore.com>
2831 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2834 2012-03-18 Pedro Alves <pedro@codesourcery.com>
2836 * frame.c (frame_unwind_register): Throw an error if unwinding the
2838 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2839 an unwind stop reason.
2840 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2841 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2842 UNWIND_UNAVAILABLE>: New.
2843 * inline-frame.c (inline_frame_unwind): Install
2844 default_frame_unwind_stop_reason.
2845 * frame-unwind.c: Include "exceptions.h".
2846 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2847 (default_frame_unwind_stop_reason): New.
2848 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2849 (default_frame_unwind_stop_reason): Declare.
2850 (struct frame_unwind) <stop_reason>: New function pointer.
2852 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2853 * dwarf2-frame.c: Include exceptions.h.
2854 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2855 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2856 computing the CFA. If such an error was thrown, set
2857 unavailable_retaddr.
2858 (dwarf2_frame_unwind_stop_reason): New.
2859 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2861 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2862 (dwarf2_signal_frame_unwind): Ditto.
2864 * amd64-tdep.c: Include "exceptions.h".
2865 (struct amd64_frame_cache): New field "base_p".
2866 (amd64_init_frame_cache): Clear it.
2867 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2868 Avoid reading registers with functions that throw if the register
2869 is not necessary to compute the frame base.
2870 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2871 swallowing NOT_AVAILABLE_ERROR.
2872 (amd64_frame_unwind_stop_reason): New.
2873 (amd64_frame_this_id): Don't build a frame id if the frame base
2875 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2876 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2877 base_p if the frame base was computable.
2878 (amd64_sigtramp_frame_unwind_stop_reason): New.
2879 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2880 frame base was unavailable.
2881 (amd64_sigtramp_frame_unwind): Install
2882 amd64_sigtramp_frame_unwind_stop_reason.
2883 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2884 base_p if the frame base was computable.
2885 (amd64_epilogue_frame_unwind_stop_reason): New.
2886 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2887 frame base was unavailable.
2888 (amd64_epilogue_frame_unwind): Install
2889 amd64_epilogue_frame_unwind_stop_reason.
2890 * i386-tdep.c: Include "exceptions.h".
2891 (struct i386_frame_cache): New field "base_p".
2892 (i386_init_frame_cache): Clear it.
2893 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2894 Avoid reading registers with functions that throw if the register
2895 is not necessary to compute the frame base.
2896 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2897 swallowing NOT_AVAILABLE_ERROR.
2898 (i386_frame_unwind_stop_reason): New.
2899 (i386_frame_this_id): Don't build a frame id if the frame base was
2901 (i386_frame_prev_register): Handle unavailable SP.
2902 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2903 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2904 base_p if the frame base was computable.
2905 (i386_epilogue_frame_unwind_stop_reason): New.
2906 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2907 base was unavailable.
2908 (i386_epilogue_frame_unwind): Install
2909 i386_epilogue_frame_unwind_stop_reason.
2910 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2911 base_p if the frame base was computable.
2912 (i386_sigtramp_frame_unwind_stop_reason): New.
2913 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2914 base was unavailable.
2915 (i386_sigtramp_frame_unwind): Install
2916 i386_sigtramp_frame_unwind_stop_reason.
2917 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2918 type's size, not the register's.
2919 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2921 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2922 default_frame_unwind_stop_reason.
2923 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2924 (alpha_heuristic_frame_unwind): Ditto.
2925 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2926 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2927 * avr-tdep.c (avr_frame_unwind): Ditto.
2928 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2930 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2931 * frv-tdep.c (frv_frame_unwind): Ditto.
2932 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2933 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2934 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2935 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2936 (hppa_stub_frame_unwind): Ditto.
2937 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2938 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2939 (ia64_libunwind_frame_unwind)
2940 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2941 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2942 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2943 * m32c-tdep.c (m32c_unwind): Ditto.
2944 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2945 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2946 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2947 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2948 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2949 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2950 * mep-tdep.c (mep_frame_unwind): Ditto.
2951 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2952 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2953 (mips_stub_frame_unwind): Ditto.
2954 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2955 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2956 * mt-tdep.c (mt_frame_unwind): Ditto.
2957 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2958 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2959 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2960 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2961 (s390_sigtramp_frame_unwind): Ditto.
2962 * score-tdep.c (score_prologue_unwind): Ditto.
2963 * sh-tdep.c (sh_frame_unwind): Ditto.
2964 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2965 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2966 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2967 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2968 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2969 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2970 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2971 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2972 (sparc64obsd_trapframe_unwind): Ditto.
2973 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2974 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2975 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2976 * v850-tdep.c (v850_frame_unwind): Ditto.
2977 * vax-tdep.c (vax_frame_unwind): Ditto.
2978 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2979 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2980 * xtensa-tdep.c (xtensa_unwind): Ditto.
2982 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2984 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2985 there's always a frame. Use get_frame_pc_if_available instead of
2986 get_frame_pc, and if there's no PC available, don't look up a
2989 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2991 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2994 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2996 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2999 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3001 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3002 * frame.c (frame_unwind_caller_pc_if_available): New.
3003 * stack.c (frame_info): Handle unavailable PC.
3005 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3007 * frame.c (frame_unwind_pc): Rename to ...
3008 (frame_unwind_pc_if_available): ... this. New `pc' output
3009 parameter. Change return type to int. Gracefully handle
3010 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3011 happened, or 1 otherwise.
3012 (frame_unwind_pc): Reimplement on top of
3013 frame_unwind_pc_if_available.
3014 (get_frame_func): Rename to ...
3015 (get_frame_func_if_available): New `pc' output parameter. Change
3016 return type to int. Gracefully handle the PC not being available.
3017 (get_frame_func): Reimplement on top of
3018 get_frame_func_if_available.
3019 (select_frame): Handle the PC being unavailable.
3020 (get_prev_frame): Handle the PC being unavailable.
3021 (get_frame_pc_if_available): New.
3022 (get_frame_address_in_block_if_available): New.
3023 (find_frame_sal): Handle the frame PC not being available.
3024 * frame.h (get_frame_pc_if_available): Declare.
3025 (get_frame_address_in_block_if_available): Declare.
3026 (get_frame_func_if_available): Declare.
3027 * stack.c (print_frame_info): Handle the PC being unavailable.
3028 (find_frame_funname): Ditto.
3029 (print_frame): Handle the PC being unavailable.
3030 (get_frame_language): Ditto.
3031 * blockframe.c (get_frame_block): Ditto.
3032 * macroscope.c (default_macro_scope): Ditto.
3033 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3035 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3037 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3038 NOT_AVAILABLE_ERROR when evaluating the location expression.
3040 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3042 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3043 returning that the register piece is unavailable/optimized out.
3044 (write_pieced_value): Handle get_frame_register_bytes returning
3045 that the register piece is unavailable/optimized out when doing a
3046 read-modify write of a bitfield.
3047 * findvar.c (value_from_register): Handle get_frame_register_bytes
3048 returning that the register piece is unavailable/optimized out.
3049 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3050 and `unavailablep'. Throw error on bad debug info. Use
3051 frame_register instead of frame_register_read, to fill in the new
3053 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3055 * valops.c: (value_assign): Adjust, and handle
3056 get_frame_register_bytes failing.
3057 * spu-tdep.c: Include exceptions.h.
3058 (spu_software_single_step): Adjust, and handle
3059 get_frame_register_bytes failing.
3060 (spu_get_longjmp_target): Ditto.
3061 * gdbarch.sh (register_to_value): Change to return int. New
3062 parameters `optimizedp' and `unavailablep'.
3063 * gdbarch.h, gdbarch.c: Regenerate.
3064 * i386-tdep.c (i386_register_to_value): Adjust to new
3065 gdbarch_register_to_value interface.
3066 * i387-tdep.c (i387_register_to_value): Ditto.
3067 * i387-tdep.h (i387_register_to_value): Ditto.
3068 * alpha-tdep.c (alpha_register_to_value): Ditto.
3069 * ia64-tdep.c (ia64_register_to_value): Ditto.
3070 * m68k-tdep.c (m68k_register_to_value): Ditto.
3071 * mips-tdep.c (mips_register_to_value): Ditto.
3072 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3074 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3076 * findvar.c (value_of_register): Mark the value as unavailable, if
3077 the register is unavailable.
3078 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3079 (frame_register): New `unavailablep' parameter.
3080 (frame_register_read): Update comment.
3081 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3082 Set it if the register is unavailable. If the register is
3083 unavailable, clear the output buffer.
3084 (frame_register): New `unavailablep' parameter. Pass it down.
3085 (frame_unwind_register): Adjust.
3086 (put_frame_register): Adjust.
3087 (frame_register_read): Adjust. Also return false if the register
3089 (frame_register_unwind_location): Adjust.
3090 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3091 is unavailable, mark the value accordingly.
3092 * stack.c (frame_info): Handle unavailable registers.
3094 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3096 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3097 simplify, using regcache_cooked_read.
3099 2011-03-18 Pedro Alves <pedro@codesourcery.com>
3101 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3102 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3103 (regcache_raw_read_unsigned, regcache_raw_read_part)
3104 (regcache_cooked_read, regcache_cooked_read_signed)
3105 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3106 (regcache_cooked_read_ftype): Change return to enum
3108 * regcache.c: Include exceptions.h
3109 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3110 (do_cooked_read): Change return to enum register_status. Always
3111 forward to regcache_cooked_read.
3112 (regcache_raw_read): Change return to enum register_status. If
3113 the register is not REG_VALID, memset the buffer. Return the
3115 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3116 return the register's status.
3117 (regcache_raw_read_unsigned): Ditto.
3118 (regcache_cooked_read): Change return to enum register_status.
3119 Assert that with read-only regcaches, the register's status must
3120 be known. If the regcache is read-only, and the register is not
3121 REG_VALID, memset the buffer. Return the register's status.
3122 (regcache_cooked_read_signed): Change return to enum
3123 register_status. Handle non-REG_VALID registers and return the
3125 (regcache_cooked_read_unsigned): Change return to enum
3126 register_status. Handle non-REG_VALID registers and return the
3128 (regcache_xfer_part, regcache_raw_read_part)
3129 (regcache_cooked_read_part): Change return to enum
3130 register_status. Return the register's status.
3131 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3133 (regcache_dump): Handle unavailable cooked registers.
3134 * frame.c (do_frame_register_read): Adjust interface to match
3135 regcache_cooked_read_ftype.
3136 * gdbarch.sh (pseudo_register_read): Change return to enum
3138 * gdbarch.h, gdbarch.c: Regenerate.
3140 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3142 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3143 register_status. If reading a raw register indicates the raw
3144 register is not valid, return the raw register's status,
3145 otherwise, return REG_VALID.
3146 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3147 register_status. Handle non-REG_VALID raw registers and return
3148 the register's status.
3149 * arm-tdep.c (arm_neon_quad_read)
3150 (arm_pseudo_read): Change return to enum register_status. Handle
3151 non-REG_VALID raw registers and return the register's status.
3152 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3153 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3154 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3155 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3156 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3158 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3159 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3160 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3161 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3162 (m32c_pseudo_register_read): Change return to enum
3163 register_status. Adjust.
3164 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3165 enum register_status. Return the register's status.
3166 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3167 register_status. Return the register's status.
3168 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3169 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3170 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3171 * rs6000-tdep.c (move_ev_register_func): New typedef.
3172 (e500_move_ev_register): Use it. Change return to enum
3173 register_status. Return the register's status.
3174 (do_regcache_raw_read): New function.
3175 (do_regcache_raw_write): New function.
3176 (e500_pseudo_register_read): Change return to enum
3177 register_status. Return the register's status. Use
3178 do_regcache_raw_read.
3179 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3180 (dfp_pseudo_register_read): Change return to enum register_status.
3181 Return the register's status.
3182 (vsx_pseudo_register_read): Ditto.
3183 (efpr_pseudo_register_read): Ditto.
3184 (rs6000_pseudo_register_read): Ditto.
3185 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3186 register_status. Return the register's status.
3187 * sh64-tdep.c (pseudo_register_read_portions): New function.
3188 (sh64_pseudo_register_read): Change return to enum
3189 register_status. Use pseudo_register_read_portions. Return the
3191 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3192 register_status. Return the register's status.
3193 * sh-tdep.c (pseudo_register_read_portions): New function.
3194 (sh_pseudo_register_read): Change return to enum register_status.
3195 Use pseudo_register_read_portions. Return the register's status.
3196 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3197 enum register_status. Return the register's status.
3198 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3199 * spu-tdep.c (spu_pseudo_register_read_spu)
3200 (spu_pseudo_register_read): Ditto.
3201 * xtensa-tdep.c (xtensa_register_read_masked)
3202 (xtensa_pseudo_register_read): Ditto.
3203 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3205 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3207 * python/py-value.c (valpy_getitem): Fix formatting of error function
3210 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3212 ARI fixes: Add missing internationalization markups throughout
3214 * darwin-nat-info.c: Ditto.
3217 * mi/mi-main.c: Ditto.
3219 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3221 ARI fixes: Add missing internationalization markups throughout
3224 * cp-name-parser.y: Ditto.
3227 * objc-exp.y: Ditto.
3230 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3232 ARI fixes: Messages should have no trailing new lines.
3233 * darwin-nat.c (mach_check_error): Remove trailing new line from
3234 warning function call message.
3235 * record.c (bfdcore_read): Idem for error call.
3237 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3239 * common/signals.c (target_signal_from_host): Add _ markup to error
3240 function call message.
3241 (target_signal_to_host): Add _ markup and remove trailing new line
3242 from warning call message.
3243 (target_signal_from_command): Add _ markup to error function call
3246 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3250 * python/python.c (gdbpy_write): Accept a stream argument and
3251 operate to the appropriate stream.
3252 (gdbpy_flush): Likewise.
3253 (_initialize_python): Add stream constants.
3254 (finish_python_initialization): Add GdbOutputErrorFile class.
3256 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3258 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3260 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3262 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3263 to store_signed_integer. Add debug message when relocating CALL
3264 instructions. Fix formatting of debug message.
3265 * i386-tdep.c (i386_relocate_instruction): Ditto.
3267 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3269 * target.h (struct target_ops): Remove to_lookup_symbol field.
3270 (target_lookup_symbol): Delete macro.
3271 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3272 (update_current_target, setup_target_debug): Remove handling
3273 of to_lookup_symbol target_ops field.
3274 * ada-tasks.c (get_known_tasks_addr): Remove use of
3275 target_lookup_symbol.
3276 * coffread.c (coff_symtab_read): Likewise.
3277 * dbxread.c (read_dbx_symtab): Ditto.
3279 2011-03-17 Joel Brobecker <brobecker@gnat.com>
3282 * configure.ac: Add getthrds declaration check.
3283 * configure, config.in: Regenerate.
3284 * aix-thread.c (getthrds): Declare only if not already declared
3285 in procinfo.h. More declaration out of get_signaled_thread to
3288 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3290 * python/py-symtab.c: Populate symtab_object_methods,
3292 (stpy_is_valid): New function.
3293 (salpy_is_valid): Ditto.
3294 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3295 (sympy_is_valid): New function.
3296 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3297 (objfpy_is_valid): New function.
3298 * python/py-inferior.c: Populate inferior_object_methods.
3299 (infpy_is_valid): New function.
3300 * python/py-infthread.c: Populate thread_object_methods.
3301 (thpy_is_valid): New function.
3302 * python/py-block.c: Declare block_object_methods. Populate. Declare
3303 block_iterator_object_methods. Populate.
3304 (blpy_is_valid): New function.
3305 (blpy_iter_is_valid): Ditto.
3307 2011-03-16 Keith Seitz <keiths@redhat.com>
3309 * linespec.c (find_methods): Canonicalize NAME before looking
3311 (name_end): New function.
3312 (keep_name_info): New function.
3313 (decode_line_1): Use keep_name_info.
3314 (decode_compound): Likewise.
3315 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3316 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3319 * linespec.c (locate_first_half): Keep overload information, too.
3320 (decode_compound): Use a string to represent break characters
3322 If P points to a break character, do not increment it.
3323 For C++ and Java, keep overload information and relevant keywords.
3324 If we cannot find a symbol, search the minimal symbols.
3327 * linespec.c (decode_compound): Rename SAVED_ARG to
3329 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3331 Pass a valid block to lookup_symbol.
3332 (lookup_prefix_sym): Likewise.
3333 (find_method): Construct search name based on SYM_CLASS instead
3335 * psymtab.c (lookup_partial_symbol): Add language parameter.
3336 (lookup_symbol_aux_psymtabs): Likewise.
3337 Don't assume that the psymtab we found was the right one. Search
3338 for the desired symbol in the symtab to be certain.
3339 (psymtab_search_name): New function.
3340 (lookup_partial_symbol): Use psymtab_search_name.
3341 Add language parameter.
3342 (read_symtabs_for_function): Add language parameter and pass to
3343 lookup_partial_symbol.
3344 (find_symbol_file_from_partial): Likewise.
3346 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3349 * dwarf2read.c (noop_record_line): New function.
3350 (dwarf_decode_lines): Ignore line tables for GCd functions.
3352 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3354 Fix ARI warnings about new lines at the end of messages, which
3355 are unneeded as there is a new line added at the end of the message
3357 * darwin-nat.c (darwin_stop_inferior): Ditto.
3358 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3359 * dfp.c (decimal_to_number): Ditto.
3360 * exec.c (print_section_info): Ditto.
3361 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3362 * osdata.c (get_osdata): Ditto.
3363 * record.c (bfdcore_write): Ditto.
3364 * remote-mips.c (mips_readchar): Ditto.
3365 * remote.c (read_ptid): Ditto.
3366 * ser-mingw.c (ser_windows_raw): Ditto.
3367 * tracepoint.c (add_local_symbols): Ditto.
3368 * windows-nat.c (fake_create_process): Ditto.
3370 2011-03-16 Tom Tromey <tromey@redhat.com>
3372 * tracepoint.c (stop_tracing): Don't declare.
3373 * event-top.c (after_char_processing_hook): Add `(void)'.
3375 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3377 * NEWS: Add Parameter sub-classing description.
3379 2011-03-16 Kai Tietz <ktietz@redhat.com>
3381 * MAINTAINERS: Update my e-mail address.
3383 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
3385 * MAINTAINERS: Add myself for write after approval privileges.
3387 2011-03-15 Michael Snyder <msnyder@vmware.com>
3389 * frame.c (find_frame_sal): Assert sym is not null.
3391 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3393 * objc-lang.c (selectors_info): Check strchr for null result.
3395 * stabsread.c (define_symbol): Guard against bad stabstring input.
3397 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3399 Remove trailing spaces and tabulations from pascal language
3404 p-valprint.c: Ditto.
3406 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3409 than LOW. Comment it.
3410 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3411 HIGHPC not strictly higher than LOWPC.
3413 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3415 Fix formatting of function declarations returning a pointer in
3417 * varobj.c (varobj_add_child): Ditto.
3418 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3419 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3421 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3423 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3424 for the "generic" vector ABI used with GCC 4.3 and later.
3425 (ppc64_sysv_abi_return_value): Likewise.
3427 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3429 * infcall.c (call_function_by_hand): Function return value is
3430 always a non_lval, even when using struct_return.
3432 2011-03-15 Pedro Alves <pedro@codesourcery.com>
3434 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3435 (map_display_numbers): New.
3436 (do_delete_display): New.
3437 (undisplay_command): Use map_display_numbers.
3438 (do_enable_disable_display): New.
3439 (enable_disable_display_command): New function.
3440 (enable_display): Delete.
3441 (enable_display_command): New.
3442 (disable_display_command): Reimplement.
3443 (_initialize_printcmd): Adjust "enable display" command to use
3444 `enable_display_command' as callback.
3446 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3448 * NEWS: Add Python breakpoint 'stop' operation.
3450 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3452 * NEWS: Delete duplicate entry. Fix typo.
3454 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3456 Fix ARI warning about function names in first column.
3457 Put prototype declaration on same line as return type.
3458 * objc-exp.y: Ditto.
3460 * python/py-stopevent.h: Ditto.
3461 For long function names, split parameters to
3462 allow function name on same line as return type.
3463 * solib-pa64.c: Ditto.
3466 For long function declaration, use single line.
3467 * hppa-tdep.h: Ditto.
3468 * inferior.h: Ditto.
3470 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3472 * python/python.h: Declare gdbpy_should_stop and
3473 gdbpy_breakpoint_has_py_cond.
3474 * python/python.c: Add python.h to includes. Remove python.h from
3475 HAVE_PYTHON definition
3476 (gdbpy_should_stop): New dummy function.
3477 (gdbpy_breakpoint_has_py_cond): New dummy function.
3478 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3479 sub-classing capabilities.
3480 (gdbpy_should_stop): New function.
3481 (gdbpy_breakpoint_has_py_cond): New function.
3482 (local_setattro): New function.
3483 * breakpoint.c (condition_command): Add check for Python 'stop'
3485 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3486 operation function as part of stop/continue tests.
3488 2011-03-14 Tom Tromey <tromey@redhat.com>
3491 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3492 (needs_frame_dwarf_call): Likewise.
3494 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3496 Fix ARI warning about functions without parameters that do not
3498 * breakpoint.c (all_tracepoints): Replace () by (void).
3499 * f-exp.y (match_string_literal): Ditto.
3501 * m2-exp.y (yylex): Ditto.
3502 * mep-tdep.c (current_me_module): Ditto.
3503 (current_options): Ditto.
3504 (current_cop_data_bus_width): Ditto.
3505 (current_cr_names): Ditto.
3506 (current_cr_is_float): Ditto.
3507 (current_ccr_names): Ditto.
3508 * objc-exp.y (yylex): Ditto.
3509 * p-exp.y (yylex): Ditto.
3510 * remote.c (send_interrupt_sequence): Ditto.
3511 * tracepoint.c (current_trace_status): Ditto.
3512 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3513 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3515 2011-03-11 Michael Snyder <msnyder@vmware.com>
3517 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3518 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3519 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3520 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3521 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3523 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3524 (delete_async_event_handler): Ditto.
3526 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3528 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3530 * top.c (set_verbose): Assert showcmd was found.
3532 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3534 * xtensa-tdep.c (warning_once): Correct style issues.
3536 2011-03-11 Yao Qi <yao@codesourcery.com>
3538 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3540 2011-03-11 Andreas Schwab <schwab@redhat.com>
3542 * common/aclocal.m4: Remove.
3544 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3546 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3547 (xtensa_write_register, xtensa_read_register): Likewise.
3548 (xtensa_hextochar): Removed.
3549 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3551 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3553 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3554 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3555 (xtensa_alloc_frame_cache): Add initialization for new fields.
3556 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3557 (warning_once): New function.
3558 (xtensa_insn_kind): New item c0opc_and.
3559 (call0_classify_opcode): Add the case for AND instruction.
3560 (call0_track_op): Change arguments. New local variable litbase.
3561 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3562 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3564 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3565 (call0_analyze_prologue): Update the comments. Change arguments.
3566 Add the variety of updates to handle extended prologues, which now can
3567 conduct dynamic stack adjustments.
3568 (call0_frame_cache): Likewise.
3569 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3570 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3572 2011-03-10 Michael Snyder <msnyder@vmware.com>
3574 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3575 (cmd_qtframe): Ditto.
3576 (cmd_qtbuffer): Ditto.
3577 (cmd_bigqtbuffer): Ditto.
3579 2011-03-10 Tom Tromey <tromey@redhat.com>
3581 * tracepoint.c (trace_actions_command): Update.
3582 * thread.c (thread_apply_command): Update.
3583 * reverse.c (delete_bookmark_command): Update.
3584 (bookmarks_info): Update.
3585 * printcmd.c (undisplay_command): Update.
3586 * memattr.c (mem_enable_command): Update.
3587 (mem_disable_command): Update.
3588 (mem_delete_command): Update.
3589 * inferior.c (detach_inferior_command): Update.
3590 (kill_inferior_command): Update.
3591 (remove_inferior_command): Update.
3592 * cli/cli-utils.h (struct get_number_or_range_state): New.
3593 (init_number_or_range): Declare.
3594 (get_number_or_range): Update.
3595 * cli/cli-utils.c (init_number_or_range): New function.
3596 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3598 (number_is_in_list): Update.
3599 * breakpoint.h (get_tracepoint_by_number): Update.
3600 * breakpoint.c (map_breakpoint_numbers): Update for change to
3601 get_number_or_range.
3602 (find_location_by_number): Use get_number, not
3603 get_number_or_range.
3604 (trace_pass_set_count): New function.
3605 (trace_pass_command): Update for change to get_number_or_range.
3607 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3610 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3612 * python/py-param.c (add_setshow_generic): Add set/show callback
3613 parameters. Register Python object context.
3614 (get_show_value): New function.
3615 (get_set_value): New function.
3616 (call_doc_function): New function.
3617 (get_doc_string): Move behind get_show_value/get_set_value.
3619 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3621 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3623 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3625 * xtensa-tdep.c (xtensa_read_register): Add comment.
3626 (xtensa_write_register): Likewise.
3627 (xtensa_hextochar): Add comment and update to match coding conventions.
3628 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3629 (execute_l32e, execute_s32e, execute_code): Update comments.
3630 (xtensa_exception_handler_t): Update to match coding conventions.
3631 (xtensa_insn_kind): Likewise.
3633 2011-03-09 Michael Snyder <msnyder@vmware.com>
3635 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3637 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3639 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3641 2011-03-09 Tom Tromey <tromey@redhat.com>
3643 * thread.c (restore_selected_frame): Handle frame_level == -1.
3644 (make_cleanup_restore_current_thread): Use
3645 get_selected_frame_if_set.
3646 * frame.h (get_selected_frame_if_set): Declare.
3647 * frame.c (get_selected_frame_if_set): New function.
3649 2011-03-09 Pedro Alves <pedro@codesourcery.com>
3651 * cli/cli-cmds.c (shell_escape): Use lbasename.
3652 * coffread.c (coff_start_symtab): Constify parameter.
3653 (complete_symtab): Constify `name' parameter.
3654 (coff_symtab_read): Constify `filestring' local.
3655 (coff_getfilename): Constify return and `result' local.
3657 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3658 * linux-fork.c (info_checkpoints_command): Use lbasename.
3659 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3660 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3661 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3662 * procfs.c (procfs_make_note_section): Use lbasename.
3663 * tui/tui-io.c (printable_part): Constity return and parameter.
3665 (print_filename): Constify parameters, and local `s'.
3666 (tui_rl_display_match_list): Constify local `temp'.
3668 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3671 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3672 Fix DWARF-3+ DW_AT_accessibility default assumption.
3673 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3674 cu->header.version >= 3.
3676 2011-03-09 Yao Qi <yao@codesourcery.com>
3678 * common/Makefile.in: Remove.
3679 * common/configure: Remove.
3680 * common/configure.ac: Remove.
3682 2011-03-09 Yao Qi <yao@codesourcery.com>
3685 2011-02-11 Yao Qi <yao@codesourcery.com>
3687 * common/Makefile.in: Add copyright header.
3689 2011-02-11 Yao Qi <yao@codesourcery.com>
3691 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3693 * configure.ac: Add common to sub dir.
3694 * configure: Regenerate.
3696 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3698 * xtensa-tdep.c (call0_ret): New function.
3699 (xtensa_skip_prologue): Speed up analysis.
3701 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3703 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3704 while executing MI command -data-list-changed-registers.
3706 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3708 * xtensa-tdep.c (xtensa_read_register): New function.
3709 (xtensa_write_register): New function.
3710 (xtensa_find_register_by_name): New function.
3711 (xtensa_windowed_frame_cache): Update comments in type description.
3712 (xtensa_frame_cache): Likewise.
3713 (xtensa_window_interrupt_insn): New function.
3714 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3715 (xtensa_insn_kind): Add new instructions.
3716 (rwx_special_register): New function.
3717 (call0_classify_opcode): Add new instructions to the analysis.
3718 (a0_saved, a7_saved, a11_saved): New variables.
3719 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3720 (execute_l32e): New function.
3721 (execute_s32e): New function.
3722 (xtensa_exception_handler_t): New type.
3723 (execute_code): New function.
3724 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3725 analysis for Xtensa Window Exception handlers.
3727 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3729 * xtensa-tdep.c (TX_PS): New.
3730 (windowing_enabled): Update to count for Call0 ABI.
3731 (xtensa_hextochar): New.
3732 (xtensa_init_reggroups): Make algorithm generic.
3733 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3735 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3737 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3739 2011-03-08 Michael Snyder <msnyder@vmware.com>
3741 * i386-tdep.c (i386_follow_jump): Check return value of
3743 (i386_analyze_struct_return): Ditto.
3744 (i386_skip_probe): Ditto.
3745 (i386_match_insn): Ditto.
3746 (i386_skip_noop): Ditto.
3747 (i386_analyze_frame_setup): Ditto.
3748 (i386_analyze_register_saves): Ditto.
3749 (i386_skip_prologue): Ditto.
3750 (i386_skip_main_prologue): Ditto.
3752 * target.c (read_whatever_is_readable): Fix memory leak.
3754 * i386-tdep.c (i386_process_record): Document fall through.
3756 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 Fix DWARF-3+ DW_AT_accessibility default assumption.
3759 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3760 cu->header.version >= 3.
3762 2011-03-08 Pedro Alves <pedro@codesourcery.com>
3764 * remote.c (remote_check_symbols): Skip if the target has no
3767 2011-03-08 Joel Brobecker <brobecker@adacore.com>
3769 * target.c (read_whatever_is_readable): Reformat comment,
3770 with a minor typo fix. Minor reformatting of the code.
3772 2011-03-08 Yao Qi <yao@codesourcery.com>
3774 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3775 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3776 Use cached result instead of calling displaced_in_arm_mode again.
3777 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3778 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3779 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3780 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3781 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3782 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3783 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3784 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3785 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3786 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3787 (arm_catch_kernel_helper_return): Likewise.
3788 * gdb/arm-tdep.h : Update function declarations.
3790 2011-03-07 Michael Snyder <msnyder@vmware.com>
3792 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3794 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3796 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3798 * elfread.c (elf_symtab_read): Stop memory leak.
3800 * main.c (captured_main): Fix memory leak.
3802 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3804 * ada-lang.c (compare_names): Call is_name_suffix with string1
3807 2011-03-07 Tom Tromey <tromey@redhat.com>
3809 * xcoffread.c (xcoff_sym_fns): Update.
3810 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3811 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3812 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3813 (symbol_file_add_with_addrs_or_offsets): Likewise.
3814 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3815 * somread.c (som_sym_fns): Update.
3816 * psymtab.h (require_partial_symbols): Declare.
3817 * psymtab.c (require_partial_symbols): New function.
3818 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3819 (ALL_OBJFILE_PSYMTABS): Undef.
3820 (ALL_PSYMTABS): Move from psympriv.h.
3821 (lookup_partial_symtab, find_pc_sect_psymtab)
3822 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3823 (find_last_source_symtab_from_partial)
3824 (forget_cached_source_info_partial)
3825 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3826 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3827 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3828 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3829 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3830 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3831 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3832 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3833 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3835 * mipsread.c (ecoff_sym_fns): Update.
3836 * machoread.c (macho_sym_fns): Update.
3837 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3838 (read_psyms): New function.
3839 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3840 (elf_sym_fns_lazy_psyms): New global.
3841 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3842 dwarf2_build_psymtabs.
3843 * dbxread.c (aout_sym_fns): Update.
3844 * coffread.c (coff_sym_fns): Update.
3846 2011-03-07 Tom Tromey <tromey@redhat.com>
3848 * infrun.c (print_exited_reason): Include inferior id and pid in
3851 2011-03-07 Tom Tromey <tromey@redhat.com>
3853 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3855 (target_has_execution_1): Update.
3856 (target_has_execution_current): Declare.
3857 (target_has_execution): Call target_has_execution_current.
3858 (default_child_has_execution): Update.
3859 * target.c (default_child_has_execution): Add 'the_ptid'
3861 (target_has_execution_1): Likewise.
3862 (target_has_execution_current): New function.
3863 (add_target): Update.
3864 (init_dummy_target): Update.
3865 * remote-m32r-sdi.c (m32r_has_execution): New function.
3866 (init_m32r_ops): Use it.
3867 * record.c (record_core_has_execution): Now static. Add
3868 'the_ptid' parameter.
3869 * inferior.c (have_live_inferiors): Don't save current thread.
3870 Use target_has_execution_1.
3872 2011-03-07 Yao Qi <yao@codesourcery.com>
3874 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3876 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3878 * elfread.c (elf_symtab_read): Minor reformatting.
3880 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3882 * objc-lang.c (selectors_info): Minor reformatting.
3884 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3886 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3888 2011-03-07 Joel Brobecker <brobecker@adacore.com>
3889 Michael Snyder <msnyder@vmware.com>
3891 * ada-valprint.c (ada_val_print_array): Move the declaration of
3892 "byte_order" and "elttype" inside the block where these variables
3893 are actually used. Remove some special handling for the case
3894 where "elttype" and "eltlen" are null. Replace by a comment
3895 and a couple of assertion checks.
3897 2011-03-05 Michael Snyder <msnyder@vmware.com>
3899 * source.c (add_path): Replace semicolon at end of block.
3900 * dwarf2expr.c (execute_stack_op): Ditto.
3902 2011-03-05 Mike Frysinger <vapier@gentoo.org>
3904 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3905 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3906 (bfin-*-*): Likewise.
3908 2011-03-05 Michael Snyder <msnyder@vmware.com>
3910 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3911 * mdebugread.c (parse_symbol): Ditto.
3912 * parse.c (parse_exp_in_context): Ditto.
3913 * source.c (add_path): Ditto.
3914 * utils.c (gnu_debuglink_crc32): Ditto.
3915 * varobj.c (variable_language): Ditto.
3917 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3919 2011-03-04 Michael Snyder <msnyder@vmware.com>
3921 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3923 * symfile.c (simple_overlay_update): Check for null return value
3924 from lookup_minimal_symbol.
3926 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3928 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3930 * eval.c (parse_and_eval_address_1): Remove function.
3931 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3932 instead of parse_and_eval_address_1.
3933 * value.h (parse_and_eval_address_1): Remove prototype.
3935 2011-03-04 Michael Snyder <msnyder@vmware.com>
3937 * remote.c (putpkt_binary): Document that case stmt falls through.
3939 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3941 * breakpointc (print_it_typical): Move NULL check from here...
3942 (print_bp_stop_message): ... to here.
3944 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3946 * breakpoint.c (enable_command): Use break instead of continue,
3947 and fill in a missing break.
3948 (disable_command): Ditto.
3950 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3952 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3953 (terminal_save_ours): Remove misleading comment.
3954 (inflow_inferior_data_cleanup): Free ttystate.
3955 (inflow_inferior_exit): Likewise.
3956 (copy_terminal_info): Copy ttystate.
3958 * serial.c (serial_copy_tty_state): New function.
3959 * serial.h (serial_copy_tty_state): Add prototype.
3960 (struct serial_ops): Add copy_tty_state callback.
3961 * ser-base.c (ser_base_copy_tty_state): New function.
3962 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3963 * ser-go32.c (dos_copy_tty_state): New function.
3964 (dos_ops): Install copy_tty_state callback.
3965 * ser-mingw.c (_initialize_ser_windows): Likewise.
3966 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3967 * ser-unix.c (hardwire_copy_tty_state): New function.
3968 (_initialize_ser_hardwire): Install it.
3970 2011-03-04 Michael Snyder <msnyder@vmware.com>
3972 * breakpoint.c (create_breakpoint): Add missing break statement.
3974 Reverting this patch:
3975 * infcall.c (call_function_by_hand): Add break statements for lint.
3977 Reverting this patch:
3978 * cli/cli-script.c (script_from_file): Add break for lint.
3980 2011-03-04 Michael Snyder <msnyder@vmware.com>
3982 * solib.c (reload_shared_libraries_1): Close memory leak.
3984 2011-03-03 Tom Tromey <tromey@redhat.com>
3987 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3990 2011-03-03 Michael Snyder <msnyder@vmware.com>
3992 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3993 fields of struct 'st' to zero.
3995 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3996 sal.pspace before calling set_current_source_symtab_and_line.
3998 2011-03-03 Yao Qi <yao@codesourcery.com>
4000 * Makefile.in (configure-common): Remove. Let Makefile
4001 in dir common to rebuild itself.
4002 (common/Makefile): Likewise.
4004 2011-03-03 Joel Brobecker <brobecker@adacore.com>
4006 * utils.c (parse_escape): Add i18n markup in error message.
4008 2011-03-03 Yao Qi <yao@codesourcery.com>
4010 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4012 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4013 (displaced_write_reg, displaced_read_reg): Likewise.
4014 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4015 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4016 (cleanup_branch): Replace magic number 14 and 15 with
4017 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4019 2011-03-02 Michael Snyder <msnyder@vmware.com>
4021 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4023 * cli/cli-script.c (script_from_file): Add break for lint.
4025 * mdebugread.c (parse_partial_symbols): Fix indent.
4027 * target-descriptions.c (tdesc_gdb_type): No need to call
4028 xstrdup, callee saves a copy.
4030 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4032 * infcall.c (call_function_by_hand): Add break statements for lint.
4034 * utils.c (parse_escape): Escape the escape char.
4036 * python/py-inferior.c (build_inferior_list): Error out if
4037 PyList_Append fails.
4038 (gdbpy_inferiors): Error out if build_inferior_list fails.
4040 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4043 * record.c (record_restore): Move printf to before error return.
4045 2011-03-02 Yao Qi <yao@codesourcery.com>
4047 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4048 is_thumb and insn_size.
4049 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4050 on both ARM and Thumb mode.
4051 (arm_process_displaced_insn): Set is_thumb and insn_size.
4052 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4053 (arm_displaced_step_fixup): Likewise.
4055 2011-03-01 Michael Snyder <msnyder@vmware.com>
4057 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4059 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4061 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4063 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4065 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4068 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4069 which shadows function parameter.
4071 * tracepoint.c (create_tsv_from_upload): Superfluous call
4072 to xstrdup. Callee already calls xstrdup.
4074 * linespec.c (decode_line_1): Remove unnecessary null check.
4076 * tracepoint.c (scope_info): Fix mem leak, remove underused
4079 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4080 superfluous null check.
4082 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4083 (value_of_builtin_frame_fp_reg): Ditto.
4085 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4087 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4090 * linespec.c (decode_line_1): Check for null before dereference.
4092 * reverse.c (record_restore): Move null-check to before pointer
4095 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4097 * objc-lang.c (selectors_info): Add explanitory comment.
4098 (classes_info): Ditto.
4100 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4102 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4103 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4104 versions of the trampoline. Handle Thumb vs. ARM addresses.
4105 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4106 (arm_linux_init_abi): Install it.
4107 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4108 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4110 2011-02-28 Michael Snyder <msnyder@vmware.com>
4112 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4113 a little bigger, to avoid possibility of an overflow.
4115 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4116 buffers a little bigger, to avoid possibility of an overflow.
4118 * coffread.c (coff_getfilename): Add check to avoid overflow.
4120 * objc-lang.c (selectors_info): Add a small safety margin to
4122 (classes_info): Error out on too long REGEXP.
4124 * infrun.c (handle_inferior_event): Remove unused function call.
4126 * fork-child.c (fork_inferior): Remove ifdef'd code and
4129 * linux-thread-db.c (attach_thread): Discard unused value.
4131 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4133 * remote.c (remote_get_noisy_reply): Discard unused value.
4134 (remote_vcont_resume): Ditto.
4135 (remote_stop_ns): Ditto.
4137 * linespec.c (decode_objc): Delete unused variable.
4139 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4141 * dwarf2read.c (add_partial_symbol): Discard unused values.
4142 (read_base_type): Delete unused variable.
4144 * dbxread.c (read_dbx_symtab): Discard unused value.
4146 * eval.c (evaluate_subexp_standard): Delete unused variable,
4147 and discard unused values.
4149 * infcmd.c (_initialize_infcmd): Discard unused values.
4151 * stabsread.c (rs6000_builtin_type): Missing break statement.
4153 * dbxread.c (process_one_symbol): Discard unused value.
4155 * coffread.c (coff_end_symtab): Delete unused variable.
4157 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4158 (dwarf2_add_typedef): Delete unused variable.
4159 (read_namespace): Ditto.
4160 (dwarf_decode_macros): Ditto.
4162 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4164 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4166 * p-valprint.c (pascal_val_print): Discard unused value.
4168 * utils.c (nquery): Call va_end before return;
4172 * proc-service.c (ps_plog): Call va_end before return.
4174 2011-02-28 Tom Tromey <tromey@redhat.com>
4176 * python/python.c (gdbpy_value_cst): New global.
4177 (_initialize_python): Initialize it.
4178 * python/python-internal.h (gdbpy_value_cst): Declare.
4179 * python/py-value.c (convert_value_from_python): Use
4182 2011-02-28 Michael Snyder <msnyder@vmware.com>
4184 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4186 * breakpoint.c (catch_syscall_completer): Free malloced list.
4188 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4190 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4191 (lval_func_check_synthetic_pointer): Ditto.
4192 (lval_func_free_closure): Fix use-after-free.
4194 2011-02-28 Tom Tromey <tromey@redhat.com>
4196 * psymtab.c (expand_partial_symbol_tables): Use
4197 ALL_OBJFILE_PSYMTABS.
4199 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4201 * objc-lang.c (selectors_info): Error on too long REGEXP.
4203 2011-02-28 Michael Snyder <msnyder@vmware.com>
4205 * python/py-param.c (set_parameter_value): Add missing
4208 * linux-record.c (record_linux_system_call): Add missing
4211 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4213 * breakpoint.c (print_one_breakpoint_location): Remove unused
4214 argument PRINT_ADDRESS_BITS. Update callers.
4215 (print_one_breakpoint): Likewise.
4217 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4219 * breakpoint.c (wrap_indent_at_field): New function.
4220 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4221 Allocate ui_stream locally instead of using STB argument.
4222 (print_one_breakpoint_location): Update call.
4223 * ui-out.c (ui_out_query_field): New function.
4224 * ui-out.h (ui_out_query_field): Add prototype.
4226 2011-02-28 Joel Brobecker <brobecker@adacore.com>
4228 From Michael Snyder <msnyder@vmware.com>
4229 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4231 2011-02-27 Michael Snyder <msnyder@vmware.com>
4233 * objc-lang.c (selectors_info): Prevent string overrun.
4235 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4238 * symtab.c (rbreak_command): Move variable 'file_name' to
4241 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4242 param with a local variable of the same name.
4244 2011-02-27 Michael Snyder <msnyder@vmware.com>
4246 * value.c (value_from_history_ref): New function.
4247 * value.h (value_from_history_ref): Export.
4248 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4249 to parse value history references.
4250 * cli/cli-utils.h (get_number_trailer): Update comment.
4252 2011-02-27 Michael Snyder <msnyder@vmware.com>
4254 * inferior.c (detach_inferior_command): Use get_number_or_range.
4255 (kill_inferior_command): Ditto.
4256 (remove_inferior_command): Ditto.
4257 (initialize_inferiors): Make command names plural.
4258 Update help strings.
4260 2011-02-27 Michael Snyder <msnyder@vmware.com>
4262 * darwin-nat-info.c: Fix comment typo.
4263 * dwarf2expr.h: Ditto.
4264 * fbsd-nat.c: Ditto.
4265 * fbsd-nat.h: Ditto.
4266 * frame-unwind.h: Ditto.
4268 * hppa-hpux-tdep.c: Ditto.
4269 * i386-linux-nat.c: Ditto.
4270 * linux-nat.c: Ditto.
4271 * nbsd-nat.c: Ditto.
4272 * nbsd-nat.h: Ditto.
4273 * ppc-linux-tdep.c: Ditto.
4276 * tui/tui-winsource.c: Ditto.
4278 2011-02-26 Michael Snyder <msnyder@vmware.com>
4280 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4282 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4284 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4285 with a local variable of the same name.
4287 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4288 param with a local variable of the same name.
4289 (i387_supply_xsave): Ditto.
4291 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4292 that it does not shadow a function parameter.
4294 * i386-nat.c (i386_length_and_rw_bits): Document that case
4295 statement is meant to fall through.
4297 * expprint.c (dump_subexp_body_standard): Document that case
4298 statement is meant to fall through.
4300 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4301 dead if statement. Condition can't be false.
4303 2011-02-25 Michael Snyder <msnyder@vmware.com>
4305 * arm-tdep.c: Fix typos in comments.
4306 * bsd-uthread.c: Ditto.
4307 * completer.c: Ditto.
4309 * cp-namespace.c: Ditto.
4310 * cp-support.c: Ditto.
4311 * cris-tdep.c: Ditto.
4313 * dwarf2read.c: Ditto.
4315 * gdbtypes.h: Ditto.
4316 * inferior.h: Ditto.
4317 * mdebugread.c: Ditto.
4318 * mips-tdep.c: Ditto.
4319 * ppc-linux-nat.c: Ditto.
4320 * ppc-linux-tdep.c: Ditto.
4321 * printcmd.c: Ditto.
4322 * sol-thread.c: Ditto.
4323 * solib-frv.c: Ditto.
4325 * sparc64-tdep.c: Ditto.
4326 * spu-tdep.c: Ditto.
4327 * stabsread.c: Ditto.
4332 * python/py-block.c: Ditto.
4333 * python/py-symbol.c: Ditto.
4334 * python/py-symtab.c: Ditto.
4335 * python/py-value.c: Ditto.
4336 * tui/tui-win.c: Ditto.
4338 2011-02-25 Michael Snyder <msnyder@vmware.com>
4340 * inferior.c (print_inferior): Accept a string instead of an int
4341 for requested_inferiors, and use get_number_or_range to parse it.
4342 (info_inferiors_command): Pass args string to print_inferior.
4343 (initialize_inferiors): Change help string for info inferiors.
4344 * inferior.h (print_inferior): Export prototype change.
4346 2011-02-25 Tom Tromey <tromey@redhat.com>
4348 * common/ax.def (invalid2): Set to 0x31.
4350 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4352 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4354 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4356 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4358 2011-02-24 Michael Snyder <msnyder@vmware.com>
4360 * Makefile.in (clean): Make clean should remove generated files
4361 observer.h and observer.inc.
4363 2011-02-24 Joel Brobecker <brobecker@adacore.com>
4365 Revert the following patch (not approved yet):
4366 2011-02-21 Hui Zhu <teawater@gmail.com>
4367 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4368 * ax-gdb.c (gen_printf_expr_callback): New function.
4369 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4370 * ax-general.c (ax_memcpy): New function.
4371 (ax_print): Handle "printf".
4373 * ax.h (ax_memcpy): Forward declare.
4374 * common/ax.def (invalid2): Removed.
4375 (printf): New entry.
4376 * printcmd.c (printcmd.h): New include.
4377 (string_printf): New function.
4378 (ui_printf): Removed.
4379 (printf_command): Remove static. Call string_printf.
4380 (eval_command): Call string_printf.
4381 * printcmd.h: New file.
4382 * tracepoint.c (validate_actionline,
4383 encode_actions_1): handle printf_command.
4385 2011-02-23 Tom Tromey <tromey@redhat.com>
4387 * ax-general.c (ax_pick): Add missing newline.
4389 2011-02-23 Michael Snyder <msnyder@vmware.com>
4391 * breakpoint.c (breakpoint_1): Change first argument from an int
4392 to a char pointer, so that the function now accepts a list of
4393 breakpoints rather than just one. Use new function
4394 'number_is_in_list' to implement.
4395 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4396 (watchpoints_info): Ditto.
4397 (tracepoints_info): Ditto.
4398 (maintenance_info_breakpoints): Ditto.
4399 (_initialize_breakpoint): Update help strings to reflect the fact
4400 that these functions can now take more than one argument.
4401 * cli/cli-utils.c (number_is_in_list): New function.
4402 * cli/cli-utils.h (number_is_in_list): Export.
4404 2011-02-23 Michael Snyder <msnyder@vmware.com>
4406 * memattr.c (mem_enable_command): Use get_number_or_range.
4407 (mem_disable_command): Ditto.
4408 (mem_delete_command): Ditto.
4409 (_initialize_mem): Tweak usage message to reflect multiple
4412 2011-02-22 Doug Evans <dje@google.com>
4414 Add gdb.lookup_global_symbol python function.
4416 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4417 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4418 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4420 2011-02-22 Tom Tromey <tromey@redhat.com>
4422 * language.c (language_class_name_from_physname): Rename
4423 'curr_language' argument to 'lang'; use in body.
4425 2011-02-22 Michael Snyder <msnyder@vmware.com>
4427 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4429 2011-02-22 Pedro Alves <pedro@codesourcery.com>
4431 * frame-unwind.h: Fix comment to mention the this frame, not the
4434 2011-02-22 Tom Tromey <tromey@redhat.com>
4436 * symfile.c (auto_solib_limit): Remove.
4437 * symfile.h (auto_solib_limit): Remove.
4439 2011-02-22 Joel Brobecker <brobecker@adacore.com>
4441 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4443 2011-02-21 Michael Snyder <msnyder@vmware.com>
4445 * gdbthread.h (print_thread_info): Change prototype.
4446 * thread.c (print_thread_info): Accept char* instead of int for
4447 requested_threads argument. Use new function number_is_in_list
4448 to determine which threads to list.
4449 (info_threads_command): Pass char* to print_thread_info.
4450 * cli/cli-utils.c (number_is_in_list): New function.
4451 * cli/cli-utils.h (number_is_in_list): Export.
4452 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4454 (print_one_inferior): Ditto.
4455 (mi_cmd_list_thread_groups): Ditto.
4457 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4459 * common/Makefile.in (CFLAGS): New.
4460 (COMPILE): Add $(CFLAGS).
4462 2011-02-21 Tom Tromey <tromey@redhat.com>
4464 * breakpoint.c (catch_syscall_command_1): Fix typo.
4466 2011-02-21 Tom Tromey <tromey@redhat.com>
4468 * reverse.c: Include cli-utils.h.
4469 * printcmd.c: Include cli-utils.h.
4470 (string_printf): Use skip_spaces.
4471 * cli/cli-utils.h: New file.
4472 * cli/cli-utils.c: New file.
4473 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4474 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4475 * breakpoint.h (get_number, get_number_or_range): Move to
4477 * breakpoint.c: Include cli-utils.h.
4478 (get_number_trailer, get_number, get_number_or_range)
4479 (ep_skip_leading_whitespace): Move to cli-utils.c.
4480 (create_breakpoint_sal, find_condition_and_thread)
4481 (decode_static_tracepoint_spec, watch_command_1)
4482 (watch_maybe_just_location, ep_parse_optional_if_clause)
4483 (catch_fork_command_1, catch_exec_command_1)
4484 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4485 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4486 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4487 (HFILES_NO_SRCDIR): Add cli-utils.h.
4488 (cli-utils.o): New target.
4490 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4492 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4493 before calling discard_all_inferiors.
4495 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4497 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4498 (struct builtin_opencl_type): Remove.
4499 (builtin_opencl_type): Change return type to "struct type **".
4500 (lookup_opencl_vector_type): Update caller.
4501 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4502 (build_opencl_types): Install plain array of "struct type *"
4503 instead of "struct builtin_opencl_type".
4505 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4506 Ulrich Weigand <uweigand@de.ibm.com>
4508 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4509 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4510 (struct arm_linux_hwbp_cap): New type.
4511 (arm_linux_get_hwbp_cap): New function.
4512 (arm_linux_get_hw_breakpoint_count): Likewise.
4513 (arm_linux_get_hw_watchpoint_count): Likewise.
4514 (arm_linux_can_use_hw_breakpoint): Likewise.
4515 (arm_hwbp_type): New type.
4516 (arm_hwbp_control_t): Likewise.
4517 (struct arm_linux_hw_breakpoint): Likewise.
4518 (struct arm_linux_thread_points): Likewise.
4519 (arm_threads): New global variable.
4520 (arm_linux_find_breakpoints_by_tid): New function.
4521 (arm_hwbp_control_initialize): Likewise.
4522 (arm_hwbp_control_is_enabled): Likewise.
4523 (arm_hwbp_control_disable): Likewise.
4524 (arm_linux_hw_breakpoint_initialize): Likewise.
4525 (arm_linux_get_hwbp_type): Likewise.
4526 (arm_linux_hw_watchpoint_initialize): Likewise.
4527 (arm_linux_hw_breakpoint_equal): Likewise.
4528 (arm_linux_insert_hw_breakpoint1): Likewise.
4529 (arm_linux_remove_hw_breakpoint1): Likewise.
4530 (arm_linux_insert_hw_breakpoint): Likewise.
4531 (arm_linux_remove_hw_breakpoint): Likewise.
4532 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4533 (arm_linux_insert_watchpoint): Likewise.
4534 (arm_linux_remove_watchpoint): Likewise.
4535 (arm_linux_stopped_data_address): Likewise.
4536 (arm_linux_stopped_by_watchpoint): Likewise.
4537 (arm_linux_watchpoint_addr_within_range): Likewise.
4538 (arm_linux_new_thread): Likewise.
4539 (arm_linux_thread_exit): Likewise.
4540 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4541 related target callbacks. Register arm_linux_new_thread and
4542 arm_linux_thread_exit.
4543 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4544 * arm-tdep.c (arm_pc_is_thumb): Make global.
4545 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4547 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4549 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4550 per-frame locations while within a function epilogue.
4552 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4554 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4555 to GNU coding standards.
4557 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4559 Allow use of mingw native on Windows 95 OS.
4560 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4561 (ser_windows_close): Only call CancelIo if function exists.
4562 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4563 to check for existence of CancelIo function in kernel32 DLL.
4565 2011-02-21 Hui Zhu <teawater@gmail.com>
4567 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4568 * ax-gdb.c (gen_printf_expr_callback): New function.
4569 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4570 * ax-general.c (ax_memcpy): New function.
4571 (ax_print): Handle "printf".
4573 * ax.h (ax_memcpy): Forward declare.
4574 * common/ax.def (invalid2): Removed.
4575 (printf): New entry.
4576 * printcmd.c (printcmd.h): New include.
4577 (string_printf): New function.
4578 (ui_printf): Removed.
4579 (printf_command): Remove static. Call string_printf.
4580 (eval_command): Call string_printf.
4581 * printcmd.h: New file.
4582 * tracepoint.c (validate_actionline,
4583 encode_actions_1): handle printf_command.
4585 2011-02-19 Michael Snyder <msnyder@vmware.com>
4587 * reverse.c (delete_one_bookmark): Argument is now bookmark
4588 id rather than pointer to bookmark struct.
4589 (delete_bookmark_command): Use get_number_or_range.
4590 (goto_bookmark_command): Parse with get_number instead of strtoul.
4591 (bookmark_1): New function. Print info for one bookmark.
4592 (bookmarks_info): Use get_number_or_range and bookmark_1.
4594 2011-02-18 Michael Snyder <msnyder@vmware.com>
4596 * thread.c (info_threads_command): Re-implement using
4597 get_number_or_range.
4598 (thread_apply_command): Ditto.
4600 2011-02-18 Tom Tromey <tromey@redhat.com>
4602 * common/ax.def: New file.
4603 * ax.h (enum agent_op): Use ax.def.
4604 * ax-general.c (aop_map): Use ax.def.
4606 2011-02-18 Tom Tromey <tromey@redhat.com>
4608 * ax-general.c (aop_map): Add pick and rot.
4609 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4610 <DW_OP_rot>: Implement.
4611 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4613 * ax-general.c (ax_pick): New function.
4615 2011-02-18 Tom Tromey <tromey@redhat.com>
4617 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4619 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4620 Tom Tromey <tromey@redhat.com>
4622 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4623 make_symbol_overload_list_block with NULL BLOCK.
4624 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4626 2011-02-18 Pedro Alves <pedro@codesourcery.com>
4628 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4629 * breakpoint.h (get_number_or_range): Declare.
4630 * printcmd.c (ALL_DISPLAYS): Declare.
4631 (delete_display): Reimplement taking a display pointer.
4632 (undisplay_command): Accept a range of displays to delete, using
4633 get_number_or_range.
4635 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4637 * c-valprint.c (c_val_print): Add embedded_offset to address
4638 for arrays of unspecified length.
4639 * p-valprint.c (pascal_val_print): Likewise.
4641 2011-02-18 Yao Qi <yao@codesourcery.com>
4643 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4644 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4645 (thumb_process_displaced_insn): New.
4646 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4647 call to arm_process_displaced_insn.
4648 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4650 2011-02-17 Tom Tromey <tromey@redhat.com>
4652 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4653 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4654 compile_dwarf_to_ax. No longer static. Call
4655 dwarf2_compile_cfa_to_ax.
4656 (locexpr_tracepoint_var_ref): Update.
4657 (loclist_tracepoint_var_ref): Update.
4658 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4659 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4660 argument; add 'gdbarch' and 'pc'.
4661 (dwarf2_compile_cfa_to_ax): New function.
4662 (dwarf2_frame_cache): Update.
4664 2011-02-17 Joel Brobecker <brobecker@adacore.com>
4666 * ada-lang.c (ada_type_of_array): Fix the size of the array
4667 in the case of an unconstrained packed array.
4669 2011-02-17 Yao Qi <yao@codesourcery.com>
4671 * common/Makefile.in: Add more targets for make.
4673 2011-02-16 Tom Tromey <tromey@redhat.com>
4675 * dwarf2loc.c (unimplemented): Fix typo.
4677 2011-02-16 Tom Tromey <tromey@redhat.com>
4679 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4680 (compile_dwarf_to_ax) <default>: Use unimplemented.
4681 <DW_OP_deref>: Update.
4682 (disassemble_dwarf_expression): Update.
4683 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4684 (decode_locdesc): Update.
4685 * dwarf2expr.h (dwarf_stack_op_name): Update.
4687 2011-02-16 Tom Tromey <tromey@redhat.com>
4689 * ax.h (struct aop_map) <name>: Now const.
4691 2011-02-16 Tom Tromey <tromey@redhat.com>
4693 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4696 2011-02-16 Yao Qi <yao@codesourcery.com>
4698 * infrun.c (get_displaced_step_closure_by_addr): New.
4699 * inferior.h: Declare it.
4700 * arm-tdep.c: (arm_pc_is_thumb): Call
4701 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4704 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4705 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4710 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4711 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 * value.c (value_contents_copy_raw): Extend describing comment.
4714 Assert that the destination contents we're overwriting are wholly
4716 (value_contents_copy): Extend describing comment.
4718 2011-02-16 Pedro Alves <pedro@codesourcery.com>
4719 Jan Kratochvil <jan.kratochvil@redhat.com>
4721 * value.c (value_available_contents_eq): Remove redundant local
4722 variables. Fix available contents comparision.
4723 * value.h (value_available_contents_eq): Extend describing
4726 2011-02-16 Yao Qi <yao@codesourcery.com>
4728 * thread.c (info_threads_command): Add missing i18n markup and remove
4731 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4733 * breakpoint.c (longjmp_names): New variable.
4734 (struct breakpoint_objfile_data): New type.
4735 (breakpoint_objfile_key): New variable.
4736 (msym_not_found): New variable.
4737 (msym_not_found_p): New predicate.
4738 (get_breakpoint_objfile_data): New function.
4739 (create_overlay_event_breakpoint): Check per-objfile cache for
4741 (create_longjmp_master_breakpoint): Likewise.
4742 (create_std_terminate_master_breakpoint): Likewise.
4743 (create_exception_master_breakpoint): Likewise.
4744 (_initialize_breakpoint): Register per-objfile data key.
4746 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4748 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4750 (create_longjmp_master_breakpoint): Loop over longjmp names.
4751 (create_std_terminate_master_breakpoint): Const-propagate parameter
4753 (update_breakpoints_after_exec): Adjust.
4754 (breakpoint_re_set): Adjust.
4756 2011-02-15 Michael Snyder <msnyder@vmware.com>
4758 * thread.c (info_threads_command): Process arg as thread id,
4759 or list of thread ids.
4760 (thread_find_command): New command.
4761 (_initialize_thread): Document argument for info threads.
4762 Document 'thread find' command.
4763 * NEWS: Document new command "thread find".
4765 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4767 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4768 * aclocal.m4: Regenerated with aclocal-1.11.1.
4769 * common/configure: Regenerate with autoconf-2.64.
4771 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
4773 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4774 bool data type to a size of one byte.
4776 2011-02-15 Pedro Alves <pedro@codesourcery.com>
4777 Jan Kratochvil <jan.kratochvil@redhat.com>
4779 * target.c (memory_xfer_live_readonly_partial): Document where to
4780 look for interface description.
4782 2011-02-15 Yao Qi <yao@codesourcery.com>
4785 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4786 order to store PC value on stack instead of text section.
4788 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4790 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4791 the EFP register set size.
4792 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4793 data from the VMX register.
4794 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4795 and write data from/to the VMX register.
4797 2011-02-14 Michael Snyder <msnyder@vmware.com>
4799 * command.h (enum command_class): New class 'no_set_class', for
4800 "show" commands without a corresponding "set" command.
4801 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4802 * copying.c (_initialize_copying): Ditto for "show copying" and
4804 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4806 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4807 which there is no corresponding "set" command (eg. "show copying").
4809 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4810 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 * exec.c (section_table_available_memory): Change `len' parameter
4814 * exec.h (section_table_available_memory): Ditto.
4815 * value.h (read_value_memory): Rename the `offset' parameter to
4818 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4819 Jan Kratochvil <jan.kratochvil@redhat.com>
4821 * memrange.c (compare_mem_ranges): Mention sort order in
4823 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4824 * tracepoint.c (traceframe_available_memory): Extend comment to
4825 mention what happens to RESULT when the target does not support
4828 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4829 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4834 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4836 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4837 No longer handle NULL values.
4839 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4841 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4842 * value.c: Include "exceptions.h".
4843 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4845 * cp-abi.c: Include gdb_assert.h.
4846 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4847 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4849 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4850 parameters. No longer returns -1 on error.
4851 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4853 * cp-valprint.c: Include exceptions.h.
4854 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4855 the baseclass_offset. Handle unavailable base classes. Use
4856 val_print_invalid_address.
4857 * p-valprint.c: Include exceptions.h.
4858 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4859 when fetching the baseclass_offset. No longer expect
4860 baseclass_offset returning -1. Handle unavailable base classes.
4861 Use val_print_invalid_address.
4862 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4863 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4864 `embedded_offset' and `val' parameters. Adjust.
4865 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4866 parameter, and change its type to gdb_byte pointer. Add
4867 `embedded_offset' and `val' parameters. Adjust. No longer expect
4868 baseclass_offset returning -1.
4869 (value_dynamic_cast): Use value_contents_for_printing rather than
4870 value_contents. Adjust.
4871 (search_struct_field): No longer expect baseclass_offset returning
4873 (search_struct_method): If reading memory from the target is
4874 necessary, wrap it in a new value to pass to baseclass_offset. No
4875 longer expect baseclass_offset returning -1.
4876 (find_method_list): No longer expect baseclass_offset returning
4877 -1. Use value_contents_for_printing rather than value_contents.
4878 * valprint.c (val_print_invalid_address): New function.
4879 * valprint.h (val_print_invalid_address): Declare.
4880 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4881 and `val' parameters. No longer expect baseclass_offset returning
4883 * gnu-v2-abi.c: Include "exceptions.h".
4884 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4885 parameters. Handle unavailable memory. Recurse through
4886 gnuv2_baseclass_offset directly, rather than through
4887 baseclass_offset. No longer returns -1 on not found, instead
4889 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4890 `val' parameters. Adjust.
4892 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4894 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4895 almost but not quite adjacent.
4897 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4899 * value.h (value_entirely_available): Declare.
4900 * value.c (value_entirely_available): New function.
4901 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4902 real type if the pointer is unavailable.
4904 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4906 * valops.c (value_repeat): Use read_value_memory instead of
4909 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4911 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4912 * value.c (value_contents_copy_raw, value_contents_copy): New
4914 (value_primitive_field): Use value_contents_copy_raw instead of
4916 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4918 (value_array, value_slice): Ditto.
4919 * valarith.c (value_subscripted_rvalue): Use
4920 value_contents_copy_raw instead of memcpy.
4922 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4924 <unavailable> references.
4926 * valops.c (get_value_at): Use value_from_contents_and_address,
4927 avoiding read_memory.
4929 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4931 * c-valprint.c (c_val_print): Print a string with unavailable
4932 contents as an array.
4934 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4936 * value.h (unpack_bits_as_long): Delete declaration.
4937 (unpack_value_bits_as_long): Declare.
4938 (unpack_value_field_as_long): Declare.
4939 (value_field_bitfield): Declare.
4940 * value.c (unpack_bits_as_long): Rename to...
4941 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4942 value parameters. Return the extracted result in a new output
4943 parameter. If the value contents are unavailable, return false,
4944 otherwise return true.
4945 (unpack_value_bits_as_long): New.
4946 (unpack_field_as_long): Rename to...
4947 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4948 Add embedded_offset and value parameters. Return the extracted
4949 result in a new output parameter. If the value contents are
4950 unavailable, return false, otherwise return true.
4951 (unpack_value_field_as_long): New.
4952 (unpack_field_as_long_1): New.
4953 (unpack_field_as_long): Reimplement as wrapper around
4954 unpack_value_field_as_long_1.
4955 (value_field_bitfield): New function.
4956 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4957 unpack_value_bits_as_long. Mark the value as unavailable, if it
4959 * jv-valprint.c (java_print_value_fields): Use
4960 value_field_bitfield.
4961 * p-valprint.c (pascal_object_print_value_fields): Use
4962 value_field_bitfield.
4963 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4965 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4967 * value.c (get_internalvar_integer): Also return the int value of
4968 TYPE_CODE_INT INTERNALVAR_VALUE values.
4969 (set_internalvar): Don't special case TYPE_CODE_INT.
4971 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4973 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4974 INTERNALVAR_POINTER.
4976 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4977 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4978 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4980 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4982 * value.h (value_available_contents_eq): Declare.
4983 * value.c (find_first_range_overlap): New function.
4984 (value_available_contents_eq): New function.
4985 * valprint.c (val_print_array_elements): Use
4986 value_available_contents_eq.
4987 * ada-valprint.c (val_print_packed_array_elements): Use
4988 value_available_contents_eq.
4989 * jv-valprint.c (java_value_print): Use
4990 value_available_contents_eq.
4992 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4994 * target.c (target_read_live_memory): New function.
4995 (memory_xfer_live_readonly_partial): New.
4996 (memory_xfer_partial): If reading from a traceframe, fallback to
4997 reading unavailable read-only memory from read-only regions of
4999 * tracepoint.c (disconnect_tracing): Adjust.
5000 (set_current_traceframe): New, factored out from
5001 set_traceframe_number.
5002 (set_traceframe_number): Reimplement to only change the traceframe
5003 number on the GDB side.
5004 (do_restore_current_traceframe_cleanup): Adjust.
5005 (make_cleanup_restore_traceframe_number): New.
5006 (cur_traceframe_number): New global.
5007 (tfile_open): Set cur_traceframe_number to no traceframe.
5008 (set_tfile_traceframe): New function.
5009 (tfile_trace_find): If looking up a traceframe using any method
5010 other than by number, make sure the current tfile traceframe
5011 matches gdb's current traceframe. Update the current tfile
5012 traceframe if the lookup succeeded.
5013 (tfile_fetch_registers, tfile_xfer_partial)
5014 (tfile_get_trace_state_variable_value): Make sure the remote
5015 traceframe matches gdb's current traceframe.
5016 * remote.c (remote_traceframe_number): New global.
5017 (remote_open_1): Set it to -1.
5018 (set_remote_traceframe): New function.
5019 (remote_fetch_registers, remote_store_registers)
5020 (remote_xfer_memory, remote_xfer_partial)
5021 (remote_get_trace_state_variable_value): Make sure the remote
5022 traceframe matches gdb's current traceframe.
5023 (remote_trace_find): If looking up a traceframe using any method
5024 other than by number, make sure the current remote traceframe
5025 matches gdb's current traceframe. Update the current remote
5026 traceframe if the lookup succeeded.
5027 * infrun.c (fetch_inferior_event): Adjust.
5028 * tracepoint.h (set_current_traceframe): Declare.
5029 (get_traceframe_number, set_traceframe_number): Add describing
5032 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5034 Mark pieces of values as unavailable if the corresponding memory
5037 * valops.c: Include tracepoint.h.
5038 (value_fetch_lazy): Use read_value_memory.
5039 (read_value_memory): New.
5040 * value.h (read_value_memory): Declare.
5041 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5042 * exec.c (section_table_available_memory): New function.
5043 * exec.h (section_table_available_memory): Declare.
5045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5047 * Makefile.in (SFILES): Add memrange.c.
5048 (HFILES_NO_SRCDIR): Add memrange.h.
5049 (COMMON_OBS): Add memrange.o.
5050 * memrange.c: New file.
5051 * memrange.h: New file.
5052 * tracepoint.c: Include memrange.h.
5053 (struct mem_range): Delete.
5054 (mem_range_s): Delete.
5055 (traceframe_available_memory): New function.
5056 * tracepoint.h (traceframe_available_memory): Declare.
5058 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5060 * target.h (struct traceframe_info): Forward declare.
5061 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5062 (struct target_ops) <to_traceframe_info>: New field.
5063 (target_traceframe_info): New.
5064 * target.c (update_current_target): Inherit and default
5066 * remote.c (PACKET_qXfer_traceframe_info): New.
5067 (remote_protocol_features): Register qXfer:traceframe-info:read.
5068 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5069 (remote_traceframe_info): New.
5070 (init_remote_ops): Install it.
5071 (_initialize_remote): Install "set/show remote traceframe-info"
5073 * tracepoint.h (parse_traceframe_info): Declare.
5074 * tracepoint.c (struct mem_range): New.
5075 (mem_range_s): New typedef.
5076 (struct traceframe_info): New.
5077 (traceframe_info): New global.
5078 (free_traceframe_info): New function.
5079 (clear_traceframe_info): New function.
5080 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5082 (build_traceframe_info): New function.
5083 (tfile_traceframe_info): New function.
5084 (init_tfile_ops): Install tfile_traceframe_info.
5085 (traceframe_info_start_memory, free_result): New functions.
5086 (memory_attributes, traceframe_info_elements): New globals.
5087 (parse_traceframe_info, get_traceframe_info): New functions.
5088 * features/traceframe-info.dtd: New file.
5089 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5091 2011-02-14 Pedro Alves <pedro@codesourcery.com>
5093 Base support for <unavailable> value contents.
5095 * value.h (value_bytes_available): Declare.
5096 (mark_value_bytes_unavailable): Declare.
5097 * value.c (struct range): New struct.
5098 (range_s): New typedef.
5099 (ranges_overlap): New function.
5100 (range_lessthan): New function.
5101 (ranges_contain_p): New function.
5102 (struct value) <unavailable>: New field.
5103 (value_bytes_available): New function.
5104 (mark_value_bytes_unavailable): New function.
5105 (require_not_optimized_out): Constify parameter.
5106 (require_available): New function.
5107 (value_contents_all, value_contents): Require all bytes be
5109 (value_free): Free `unavailable'.
5110 (value_copy): Copy `unavailable'.
5111 * valprint.h (val_print_unavailable): Declare.
5112 * valprint.c (valprint_check_validity): Rename `offset' parameter
5113 to `embedded_offset'. If printing a scalar, check whether the
5114 value chunk is available.
5115 (val_print_unavailable): New.
5116 (val_print_scalar_formatted): Check whether the value is
5118 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5119 pretty-printing unavailable values.
5121 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5123 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5124 * c-typeprint.c (c_type_print_args): Update the function comment. New
5125 variable param_type, initialize it. Remove const/volatile qualifiers
5126 for language_cplus and !show_artificial. Use param_type.
5128 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5130 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5131 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5132 * symtab.h (struct symtab) <next>: Comment extension.
5134 2011-02-12 Yao Qi <yao@codesourcery.com>
5136 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5138 2011-02-11 Yao Qi <yao@codesourcery.com>
5140 * common/Makefile.in: Add copyright header.
5142 2011-02-11 Pedro Alves <pedro@codesourcery.com>
5144 * infrun.c (proceed): Move switching out and in of tfind mode from
5146 (fetch_inferior_event): ... to here.
5148 2011-02-11 Yao Qi <yao@codesourcery.com>
5150 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5152 * configure.ac: Add common to sub dir.
5153 * configure: Regenerate.
5155 2011-02-11 Yao Qi <yao@codesourcery.com>
5159 * common/Makefile.in: New.
5160 * common/configure.ac: New.
5161 * common/aclocal.m4: New.
5162 * common/configure: Generate.
5164 2011-02-10 Pedro Alves <pedro@codesourcery.com>
5166 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5167 side of the parenthesis.
5170 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5171 * vec.h (VEC_block_remove): Fix comment.
5173 2011-02-08 Michael Snyder <msnyder@vmware.com>
5175 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5177 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5179 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5180 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5183 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5186 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5188 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5189 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5191 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5193 * dwarf2read.c (read_subroutine_type): Set special calling
5194 convention flag for functions compiled by IBM XL C for OpenCL.
5195 * ppc-sysv-tdep.c: Include "dwarf2.h"
5196 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5198 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5199 IBM OpenCL vector types calling convention.
5200 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5201 (ppc_sysv_abi_broken_return_value): Likewise.
5202 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5203 types calling convention.
5204 (ppc64_sysv_abi_return_value): Likewise.
5205 * spu-tdep.c: Include "dwarf2.h"
5206 (spu_return_value): Implement IBM OpenCL vector types calling
5209 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5211 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5212 correct ABI for AltiVec vector arguments.
5214 2011-02-07 Pedro Alves <pedro@codesourcery.com>
5216 * valprint.c (val_print): Extend comment.
5217 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5218 interface explanation to val_print.
5219 (ada_val_print_array): Adjust comment to current interface.
5220 (print_field_values): Adjust comment to current interface.
5221 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5222 explanation to val_print.
5223 * f-valprint.c (f_val_print): Ditto.
5224 * jv-valprint.c (java_val_print): Ditto.
5225 * m2-valprint.c (m2_val_print): Ditto.
5226 * p-valprint.c (pascal_val_print): Ditto.
5228 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5230 * breakpoint.c (parse_breakpoint_sals): Fix description.
5232 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
5233 Oguz Kayral <oguzkayral@gmail.com>
5235 * python/py-inferior.c (python_on_normal_stop): New function.
5236 (python_on_resume): New function.
5237 (python_inferior_exit): New function.
5238 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5239 inferior_exit observers.
5240 * python/py-evtregistry.c: New file.
5241 * python/py-threadevent.c : New file.
5242 * python/py-event.c: New file.
5243 * python/py-evts.c: New file.
5244 * python/py-continueevent.c: New file.
5245 * python/py-bpevent.c: New file.
5246 * python/py-signalevent.c: New file.
5247 * python/py-exetiedevent.c: New file.
5248 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5249 Move struct breakpoint_object from here...
5250 * python/python-internal.h: ... to here.
5251 * python/py-event.h: New file.
5252 * python/py-events.h: New file.
5253 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5254 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5255 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5256 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5257 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5258 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5259 Add build rules for all the above.
5261 2011-02-04 Tom Tromey <tromey@redhat.com>
5263 * dwarf2read.c (dwarf2_section_empty_p): New function.
5264 (dwarf2_read_section): Use dwarf2_section_empty_p.
5265 (dwarf2_section_size): New function.
5266 (dwarf2_get_section_info): Unconditionally read section.
5267 (dwarf2_read_index): Use dwarf2_section_empty_p.
5268 (partial_read_comp_unit_head): Use dwarf2_section_size.
5269 (dwarf2_symbol_mark_computed): Likewise.
5271 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5273 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5275 2011-02-04 David Daney <ddaney@caviumnetworks.com>
5277 * mips-linux-tdep.c: Include xml-syscall.h.
5278 (mips_linux_get_syscall_number): New function.
5279 (mips_linux_init_abi): Add calls to
5280 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5281 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5282 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5283 * syscalls/mips-n32-linux.xml: New file.
5284 * syscalls/mips-n64-linux.xml: New file.
5285 * syscalls/mips-o32-linux.xml: New file.
5287 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5289 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5290 Complain about inverted range entries.
5291 (dwarf2_record_block_ranges): Likewise.
5293 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5296 * breakpoint.c (update_watchpoint): Fix name of the
5297 update_global_location_list function.
5298 (print_one_breakpoint): Fix typo.
5299 (_initialize_breakpoint): Remove extra space in hbreak help
5301 * breakpoint.h (struct bp_location) <length>: Fix field
5304 2011-02-04 Pedro Alves <pedro@codesourcery.com>
5306 * regcache.c (registers_changed_ptid): Don't explictly always
5307 clear `current_regcache'. Only clear current_thread_ptid and
5308 current_thread_arch when PTID matches. Only reinit the frame
5309 cache if PTID matches the current inferior_ptid. Move alloca(0)
5311 (registers_changed): ... here.
5313 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5315 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5316 starts with __stack_chk_guard as stack guard symbol.
5318 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
5320 * disasm.c (compare_lines): Handle the end of sequence markers
5321 within the line table to better support disassembling over
5322 compilation unit boundaries.
5324 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5326 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5327 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5328 implementation even if no symbols are available.
5329 (thumb_analyze_prologue): Update call to skip_prologue_function.
5330 (arm_analyze_prologue): Likewise.
5332 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5334 * arm-tdep.c: Include "observer.h".
5335 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5336 (arm_exidx_data_key): New static variable.
5337 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5338 (struct arm_exidx_data): Likewise.
5339 (arm_exidx_data_free): New function.
5340 (arm_compare_exidx_entries): Likewise.
5341 (arm_obj_section_from_vma): Likewise.
5342 (arm_exidx_new_objfile): Likewise.
5343 (arm_find_exidx_entry): Likewise.
5344 (arm_exidx_fill_cache): Likewise.
5345 (arm_exidx_unwind_sniffer): Likewise.
5346 (arm_exidx_unwind): New global variable.
5347 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5348 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5349 observer. Register arm_exidx_data_key as objfile data.
5351 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5353 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5354 due to accessing uninitialized variable. Fix indentation.
5356 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5358 * c-valprint.c (c_value_print): When doing virtual base pointer
5359 adjustment, create a new value with adjusted contents rather than
5360 changing the contents of the value being printed (and getting it
5363 2011-02-02 Pedro Alves <pedro@codesourcery.com>
5365 * xml-support.c (xml_find_attribute): New.
5366 (xinclude_start_include): Use it.
5367 * xml-support.h (xml_find_attribute): Declare.
5368 * memory-map.c (memory_map_start_memory)
5369 (memory_map_start_property): Use xml_find_attribute.
5370 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5372 * remote.c (start_thread): Use xml_find_attribute.
5373 * solib-target.c (library_list_start_segment)
5374 (library_list_start_section, library_list_start_library)
5375 (library_list_start_list): Use xml_find_attribute.
5376 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5377 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5378 (tdesc_start_field): Use xml_find_attribute.
5380 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5382 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5383 (BUILD_OCL_VTYPES): Update.
5385 2011-02-02 Joel Brobecker <brobecker@adacore.com>
5387 * configure.ac: Work around non-GNU sed limitation when computing
5388 python version number.
5389 * configure: Regenerate.
5391 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5393 Fix debug printing of TYPE_INSTANCE.
5394 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5395 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5397 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5399 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5400 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5401 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5402 * ada-operator.inc: Rename the file to ...
5403 * ada-operator.def: ... here, wrap all the entries by macro OP.
5404 * expprint.c (op_name_standard): Remove all the entries. Include
5405 "std-operator.def" instead.
5406 * expression.h (enum exp_opcode): Include "std-operator.def" and
5407 "ada-operator.def". Move all the entries ...
5408 * std-operator.def: ... here, wrap all the entries by macro OP.
5410 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5412 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5413 * breakpoint.c (remove_jit_event_breakpoints): New function.
5414 * jit.c (jit_descriptor_addr): Delete.
5415 (registering_code): Delete.
5416 (clear_int): Delete.
5417 (jit_inferior_data): New variable.
5418 (struct jit_inferior_data): New type.
5419 (get_jit_inferior_data): New function.
5420 (jit_inferior_data_cleanup): New function.
5421 (jit_read_descriptor): Adjust.
5422 (jit_register_code): Adjust.
5423 (jit_breakpoint_re_set_internal): New function; move code here ...
5424 (jit_inferior_init): ... from here.
5425 (jit_breakpoint_re_set): Adjust.
5426 (jit_reset_inferior_data_and_breakpoints): New function.
5427 (jit_inferior_created_observer): Adjust.
5428 (jit_inferior_exit_hook): Adjust.
5429 (jit_executable_changed_observer): New function.
5430 (jit_event_handler): Adjust.
5431 (_initialize_jit): Adjust.
5433 2011-01-31 Michael Snyder <msnyder@vmware.com>
5435 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5438 2011-01-31 Tom Tromey <tromey@redhat.com>
5441 * python/python.c (execute_gdb_command): Call
5442 prevent_dont_repeat.
5443 * top.c (suppress_dont_repeat): New global.
5444 (dont_repeat): Use it.
5445 (prevent_dont_repeat): New function.
5446 * command.h (prevent_dont_repeat): Declare.
5448 2011-01-31 Tom Tromey <tromey@redhat.com>
5450 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5451 * python/py-breakpoint.c (bppy_set_silent): Use
5452 breakpoint_set_silent.
5453 (bppy_set_thread): Use breakpoint_set_thread.
5454 (bppy_set_task): Use breakpoint_set_task.
5455 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5456 (breakpoint_set_task): Declare.
5457 (make_breakpoint_silent): Remove.
5458 * breakpoint.c (breakpoint_set_silent): New function.
5459 (breakpoint_set_thread): Likewise.
5460 (breakpoint_set_task): Likewise.
5461 (make_breakpoint_silent): Remove.
5463 2011-01-31 Tom Tromey <tromey@redhat.com>
5465 * breakpoint.h (user_breakpoint_p): Declare.
5466 * breakpoint.c (user_breakpoint_p): New function.
5467 (breakpoint_1): Use it.
5468 (save_breakpoints): Likewise.
5470 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5472 * configure.ac: Add handling of Python distribution on Windows.
5473 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5474 sysconfig variables are not defined, then do not use them.
5475 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5476 instead. On Windows, return all paths using forward-slashes
5477 rather than backslashes.
5479 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5481 * configure.ac: Remove fallback behavior for building
5482 against Python. Remove tweaking of Python include path.
5483 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5484 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5485 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5486 Always restore CPPFLAGS and LIBS after linking test.
5487 * configure: Regenerated.
5488 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5489 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5490 * python/python-internal.h: Adjust includes of Python .h files.
5492 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5494 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5497 2011-01-31 Joel Brobecker <brobecker@adacore.com>
5499 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5502 2011-01-31 Yao Qi <yao@codesourcery.com>
5504 * arm-linux-nat.c: Update calls to regcache_register_status
5505 instead of regcache_valid_p.
5506 * aix-thread.c: Likewise.
5507 * i386gnu-nat.c: Likewise.
5509 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5512 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5513 touching TYPE_FIELD_ARTIFICIAL.
5515 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
5517 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5520 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5522 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5523 selected, don't try iterating over the traceframe's blocks.
5524 (tfile_has_stack): If there's no traceframe selected, then there's
5526 (tfile_has_registers): If there's no traceframe selected, then
5527 there's no registers.
5529 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5531 * target.c (memory_xfer_partial): No need to restore shadows if we
5532 haven't read anything.
5534 2011-01-28 Pedro Alves <pedro@codesourcery.com>
5536 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5537 and val_print_scalar_formatted.
5539 2011-01-27 Pedro Alves <pedro@codesourcery.com>
5541 * tracepoint.c (tfile_read): New.
5542 (tfile_open): Use it.
5543 (tfile_get_traceframe_address): Use it.
5544 (tfile_trace_find): Use it.
5545 (walk_blocks_callback_func): New typedef.
5546 (match_blocktype): New function.
5547 (traceframe_walk_blocks): New function.
5548 (traceframe_find_block_type): New function.
5549 (tfile_fetch_registers, tfile_xfer_partial)
5550 (tfile_get_trace_state_variable_value): Use
5551 traceframe_find_block_type and tfile_read.
5553 2011-01-26 Kevin Buettner <kevinb@redhat.com>
5555 * remote-mips.c: Add internationalization mark ups. Remove
5556 trailing \n from already marked up strings.
5558 2011-01-26 Tom Tromey <tromey@redhat.com>
5560 * python/py-prettyprint.c (print_string_repr): Clear
5561 'addressprint' option when calling val_print_string.
5562 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5563 option when calling val_print_string.
5565 2011-01-26 Tom Tromey <tromey@redhat.com>
5567 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5569 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5571 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5572 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5573 (gdb_py_long_as_ulongest): New defines.
5574 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5575 (gdb_py_int_as_long): Declare.
5576 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5577 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5578 (valpy_long): Add comment.
5579 * python/py-utils.c (get_addr_from_python): Use
5580 gdb_py_long_as_ulongest. Handle overflow properly.
5581 (gdb_py_object_from_longest): New function.
5582 (gdb_py_object_from_ulongest): Likewise.
5583 (gdb_py_int_as_long): Likewise.
5584 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5585 * python/py-symtab.c (salpy_get_pc): Use
5586 gdb_py_long_from_ulongest.
5587 (salpy_get_line): Use PyInt_FromLong.
5588 * python/py-param.c (set_parameter_value): Use
5590 * python/py-lazy-string.c (stpy_get_address): Use
5591 gdb_py_long_from_ulongest.
5592 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5593 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5594 * python/py-breakpoint.c (bppy_set_thread): Use
5596 (bppy_set_task): Likewise.
5597 (bppy_set_ignore_count): Likewise.
5598 (bppy_set_hit_count): Likewise.
5599 * python/py-block.c (blpy_get_start): Use
5600 gdb_py_object_from_ulongest.
5601 (blpy_get_end): Likewise.
5602 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5604 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5607 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5608 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5609 equality test for objfile, initialize addr_low if needed.
5611 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5613 * tui/tui-regs.c (tui_register_format): Remove dead code.
5615 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5617 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5618 instead of print_scalar_formatted.
5619 (print_scalar_formatted): Don't handle 's' format strings here,
5620 and add an assertion that we never see such format here.
5621 * valprint.h (val_print_scalar_formatted): Declare.
5622 * valprint.c (val_print_scalar_formatted): New.
5623 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5624 instead of print_scalar_formatted.
5625 * jv-valprint.c (java_val_print): Ditto.
5626 * p-valprint.c (pascal_val_print): Ditto.
5627 * ada-valprint.c (ada_val_print_1): Ditto.
5628 * f-valprint.c (f_val_print): Ditto.
5629 * infcmd.c (registers_info): Ditto.
5630 * m2-valprint.c (m2_val_print): Ditto.
5632 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5634 * m2-valprint.c (print_unbounded_array): Pass
5635 value_contents_for_printing rather than value_contents, to
5636 m2_print_array_contents. Also pass in the value.
5638 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5640 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5641 (save_gdb_index_command): Switch to .gdb_index version 4.
5643 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5645 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5646 than frame_register, and always pass a valid value to val_print.
5648 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5650 Centralize printing "<optimized out>".
5652 * valprint.h (val_print_optimized_out): Declare.
5653 * cp-valprint.c (cp_print_value_fields): Use
5654 val_print_optimized_out.
5655 * jv-valprint.c (java_print_value_fields): Ditto.
5656 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5657 * printcmd.c (print_formatted): Ditto.
5658 * valprint.c (valprint_check_validity): Ditto.
5659 (value_check_printable): Ditto.
5660 (val_print_optimized_out): New.
5662 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5664 * infcmd.c (default_print_registers_info): Allocate values so to
5665 never pass a NULL value to val_print.
5667 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5669 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5670 boolean. Make sure to always pass a value that matches the
5671 contents buffer to callees. Preserve `address' for following
5673 * value.c (value_contents_for_printing_const): New.
5674 (value_address): Constify value argument.
5675 * value.h (value_contents_for_printing_const): Declare.
5676 (value_address): Constify value argument.
5678 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5680 * regcache.c (struct regcache_descr): Rename
5681 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5682 and sizeof_cooked_register_valid_p to
5683 sizeof_cooked_register_status.
5684 (init_regcache_descr): Adjust.
5685 (struct regcache): Rename register_valid_p field to
5687 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5688 (do_cooked_read): Adjust.
5689 (regcache_valid_p): Rename to ...
5690 (regcache_register_status): ... this. Adjust.
5691 (regcache_invalidate): Adjust.
5692 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5694 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5695 as unavailable, not valid.
5696 (regcache_dump): Adjust.
5697 * regcache.h (enum register_status): New.
5698 (regcache_register_status): Declare.
5699 (regcache_invalidate): Delete declaration.
5700 * corelow.c (get_core_registers): Adjust.
5701 * tracepoint.c (tfile_fetch_registers): Adjust.
5702 * trad-frame.c (REG_VALUE): Rename to ...
5703 (TF_REG_VALUE): ... this.
5704 (REG_UNKNOWN): Rename to ...
5705 (TF_REG_UNKNOWN): ... this.
5706 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5707 * mi/mi-main.c (register_changed_p): Adjust.
5709 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5711 * regcache.c (struct regcache_descr): Remove outdated comment.
5712 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5714 (regcache_xmalloc): Rename to ...
5715 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5716 Allocate the regcache type accordingly.
5717 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5718 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5719 cooked registers, not raw.
5720 (regcache_dup_no_passthrough): Delete.
5721 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5722 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5723 mention obsolete write_register_bytes.
5724 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5726 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5728 Stop remote_read_bytes from handling partial reads itself.
5730 * remote-fileio.c: Include target.h.
5731 (remote_fileio_write_bytes): Delete.
5732 (remote_fileio_func_open, remote_fileio_func_write)
5733 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5735 (remote_fileio_func_stat): Use target_read_memory and
5736 target_write_memory.
5737 (remote_fileio_func_gettimeofday): Use target_write_memory.
5738 (remote_fileio_func_system): Use target_read_memory.
5739 * remote.c (remote_write_bytes): Make it static.
5740 (remote_read_bytes): Don't handle partial reads here.
5741 * remote.h (remote_read_bytes): Delete declaration.
5743 2011-01-25 Pedro Alves <pedro@codesourcery.com>
5745 Simplify XML parsing a bit.
5747 * xml-support.h (gdb_xml_parse_quick): Declare.
5748 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5749 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5751 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5752 gdb_xml_create_parser_and_cleanup_1.
5753 (gdb_xml_parse_quick): New.
5754 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5755 * osdata.c (osdata_parse): Ditto.
5756 * remote.c (remote_threads_info): Ditto.
5757 * solib-target.c (solib_target_parse_libraries): Ditto.
5758 * xml-syscall.c (syscall_parse_xml): Ditto.
5759 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5761 2011-01-24 Kevin Buettner <kevinb@redhat.com>
5763 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5764 with remote-mips.o added to gdb_target_obs.
5765 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5767 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5769 * ada-valprint.c (val_print_packed_array_elements): Pass the
5770 correct struct value to val_print.
5771 (ada_val_print_1): Ditto.
5773 2011-01-24 Pedro Alves <pedro@codesourcery.com>
5775 Don't lose embedded_offset in printing routines throughout.
5777 * valprint.h (val_print_array_elements): Change prototype.
5778 * valprint.c (val_print_array_elements): Add `embedded_offset'
5779 parameter, and adjust to pass it down to val_print, while passing
5780 `valaddr' or `address' unmodified. Take embedded_offset into
5781 account when checking repetitions.
5782 * c-valprint.c (c_val_print): Pass embedded_offset to
5783 val_print_array_elements instead of adjusting `valaddr' and
5785 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5786 embedded_offset to val_print_array_elements instead of adjusting
5788 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5789 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5790 val_print_array_elements and pascal_object_print_value_fields
5791 instead of adjusting `valaddr'.
5792 (pascal_object_print_value_fields): Add `offset' parameter, and
5794 (pascal_object_print_value): Add `offset' parameter, and adjust to
5796 (pascal_object_print_static_field): Use
5797 value_contents_for_printing/value_embedded_offset, rather than
5799 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5800 parameter, and adjust to use it. Use
5801 value_contents_for_printing/value_embedded_offset, rather than
5803 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5804 (ada_val_print_array): Add `offset' parameter, and adjust to use
5806 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5807 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5808 Instead work with offsets. Use
5809 value_contents_for_printing/value_embedded_offset, rather than
5810 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5811 and use value_from_pointer to extract a target pointer, rather
5812 than value_from_longest.
5813 (print_variant_part): Add `offset' parameter. Replace
5814 `outer_valaddr' parameter by a new `outer_offset' parameter.
5815 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5816 (ada_value_print): Use
5817 value_contents_for_printing/value_embedded_offset, rather than
5819 (print_record): Add `offset' parameter, and adjust to pass it
5821 (print_field_values): Add `offset' parameter. Replace
5822 `outer_valaddr' parameter by a new `outer_offset' parameter.
5823 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5824 Use value_contents_for_printing/value_embedded_offset, rather than
5826 * d-valprint.c (dynamic_array_type): Use
5827 value_contents_for_printing/value_embedded_offset, rather than
5829 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5830 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5831 (java_print_value_fields): Take `offset' into account. Don't
5832 re-adjust `valaddr'. Instead pass down adjusted offsets.
5833 (java_val_print): Take `embedded_offset' into account. Pass it to
5834 java_print_value_fields.
5835 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5836 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5837 down adjusted offsets.
5838 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5839 (f_val_print): Take `embedded_offset' into account.
5841 2011-01-21 Joel Brobecker <brobecker@adacore.com>
5843 * inflow.c: Include "gdbcmd.h".
5844 (interactive_mode): New static global, moved here from top.c.
5845 (show_interactive_mode): New function, moved here from top.c.
5846 use gdb_has_a_terminal instead of input_from_terminal_p to
5847 determine the current mode.
5848 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5850 (_initialize_inflow): Add the "set/show interactive-mode"
5851 commands. Moved here from top.c, after having adjusted slightly
5853 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5855 (input_from_terminal_p): Remove handling of "interactive-mode"
5856 setting, moved to infow.c.
5857 (init_main): Remove creation of the "set/show interactive-mode"
5858 commands, moved to inflow.c.
5860 2011-01-19 Joel Brobecker <brobecker@adacore.com>
5862 * NEWS: Add entry for native ia64-hpux support.
5864 2011-01-19 Tom Tromey <tromey@redhat.com>
5867 * thread.c (free_thread): Free 'name'.
5868 (print_thread_info): Emit thread name. Change CLI output.
5869 (thread_name_command): New function.
5870 (do_captured_thread_select): Emit newline.
5871 (_initialize_thread): Register 'thread name' command.
5872 * target.h (struct target_ops) <to_thread_name>: New field.
5873 (target_thread_name): New macro.
5874 * target.c (update_current_target): Handle to_thread_name.
5875 * python/py-infthread.c (thpy_get_name): New function.
5876 (thpy_set_name): Likewise.
5877 (thread_object_getset): Add "name".
5878 * linux-nat.c (linux_nat_thread_name): New function.
5879 (linux_nat_add_target): Set to_thread_name.
5880 * gdbthread.h (struct thread_info) <name>: New field.
5882 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5884 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5885 (ada_val_print_1): Likewise.
5887 2011-01-18 Joel Brobecker <brobecker@adacore.com>
5889 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5890 upper limit address is not greater than the function end address
5891 when the upper limit could not be computed using the debugging
5894 2011-01-17 Tom Tromey <tromey@redhat.com>
5896 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5898 * utils.c: Include gdb_regex.h.
5899 (do_regfree_cleanup): New function.
5900 (make_regfree_cleanup): Likewise.
5901 (get_regcomp_error): Likewise.
5902 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5904 2011-01-17 Tom Tromey <tromey@redhat.com>
5906 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5909 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5911 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5912 for internal variables.
5913 (last_was_structop): New static variable.
5914 (COMPLETE): New token.
5915 (field_exp): New rule to group all '.' suffix handling.
5916 Add mark_struct_expression calls when approriate to be able
5917 to correctly find fields for completion.
5918 (yylex): Adapt to handle field completion and set INTVAR when
5921 2011-01-14 Yao Qi <yao@codesourcery.com>
5923 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5924 save_reggroup, restore_reggroup and all_reggroup.
5926 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5928 * ada-valprint. (ada_printchar): Use the correct type length
5929 in call to ada_emit_char.
5930 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5932 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5934 * solib-som.h (hpux_major_release): Declare variable here.
5935 * solib-som.c: Remove <sys/utsname.h> header.
5936 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5937 (hpux_major_release): Make global, change default value to
5938 DEFAULT_HPUX_MAJOR_RELEASE.
5939 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5940 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5941 Add "solib-som.h" header.
5942 (set_hpux_major_release): New function.
5943 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5945 2011-01-14 Mike Frysinger <vapier@gentoo.org>
5947 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5949 2011-01-14 Joel Brobecker <brobecker@adacore.com>
5951 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5952 new-line at end of warning message.
5953 (ia64_hpux_store_register): Remove trailing new-line at end of
5955 * ia64-hpux-tdep.c: Rephrase comment.
5956 * solib-ia64-hpux.c (struct dld_info): Change type of field
5957 dld_flags from "long long" to ULONGEST.
5959 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5961 * target.h (deprecated_child_ops): Delete declaration.
5962 * target.c (deprecated_child_ops): Delete definition.
5964 2011-01-14 Pedro Alves <pedro@codesourcery.com>
5966 * Makefile.in (hpux-thread.o): Delete rule.
5967 * configure.ac: Don't check for HPUX DCE threads support.
5968 * configure, config.in: Regenerate.
5969 * hppa-hpux-nat.c (child_suppress_run): Delete.
5970 (hppa_hpux_child_can_run): Delete.
5971 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5972 * hpux-thread.c: Delete.
5974 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5976 * hpux-thread.c (hpux_pid_to_str): Delete.
5978 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5980 * ada-valprint.c (ada_emit_char): Remove strange code.
5981 Check that c is <= UCHAR_MAX before passing it to isascii.
5982 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5984 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5986 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5987 to the case where instream is stdin.
5989 2011-01-13 Joel Brobecker <brobecker@adacore.com>
5991 * ia64-tdep.h (struct regcache): Forward declare.
5992 (struct ia64_infcall_ops): New struct type.
5993 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5995 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5996 Renames ia64_find_global_pointer.
5997 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5998 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5999 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6001 (ia64_infcall_ops): New static global constant.
6002 (ia64_gdbarch_init): Set tdep->infcall_ops.
6003 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6004 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6005 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6006 (ia64_hpux_dummy_code): New static global constant.
6007 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6008 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6009 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6011 (ia64_hpux_infcall_ops): New static global constant.
6012 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6013 for inferior function calls to work properly on ia64-hpux.
6015 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6017 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6018 * ia64-tdep.h (struct frame_info): forward declaration.
6019 (struct gdbarch_tdep): Add field size_of_register_frame.
6020 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6021 to determine the size of the register frame.
6022 (ia64_size_of_register_frame): New function.
6023 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6024 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6025 (IA64_HPUX_UREG_REASON): New macro.
6026 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6028 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6029 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6030 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6033 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6035 Add support for ia64-hpux.
6036 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6037 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6039 * configure.host: Add handling for ia64-hpux hosts. Add associated
6041 * configure.tgt: Add handling for ia64-hpux targets.
6042 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6043 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6044 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6046 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6048 [ttrace] Compute thread list immediately after attach.
6049 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6051 (inf_ttrace_attach): Use it.
6053 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6055 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6056 if we could not determine the frame's function address. Instead,
6057 use the frame's PC, and then continue.
6059 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6061 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6062 not already defined.
6064 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6066 * ia64-tdep.c (ia64_struct_type_p): New function.
6067 (ia64_extract_return_value): Handle integral values that are
6068 less than 8 bytes long.
6069 (ia64_push_dummy_call): Likewise.
6071 2011-01-13 Joel Brobecker <brobecker@adacore.com>
6073 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6074 floatformat_ia64_ext.
6075 (floatformat_ia64_ext_big): New static const.
6076 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6078 2011-01-12 Tom Tromey <tromey@redhat.com>
6080 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6082 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6083 (mi_cmd_thread_list_ids): Likewise.
6084 (mi_cmd_data_list_changed_registers): Likewise.
6085 (mi_cmd_data_list_register_values): Likewise.
6086 (mi_cmd_data_write_register_values): Likewise.
6087 (mi_cmd_data_evaluate_expression): Likewise.
6088 (mi_cmd_data_read_memory): Likewise.
6089 (mi_cmd_data_read_memory_bytes): Likewise.
6090 (mi_cmd_data_write_memory): Likewise.
6091 (mi_cmd_enable_timings): Likewise.
6092 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6093 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6094 (mi_cmd_var_delete): Likewise.
6095 (mi_cmd_var_set_format): Likewise.
6096 (mi_cmd_var_show_format): Likewise.
6097 (mi_cmd_var_info_num_children): Likewise.
6098 (mi_cmd_var_list_children): Likewise.
6099 (mi_cmd_var_info_type): Likewise.
6100 (mi_cmd_var_info_expression): Likewise.
6101 (mi_cmd_var_show_attributes): Likewise.
6102 (mi_cmd_var_assign): Likewise.
6103 (mi_cmd_var_update): Likewise.
6104 (mi_cmd_enable_pretty_printing): Likewise.
6105 (mi_cmd_var_set_update_range): Likewise.
6106 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6108 (mi_cmd_target_file_put): Likewise.
6109 (mi_cmd_target_file_delete): Likewise.
6110 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6112 (mi_cmd_stack_info_depth): Likewise.
6113 (mi_cmd_stack_list_locals): Likewise.
6114 (mi_cmd_stack_list_args): Likewise.
6115 (mi_cmd_stack_select_frame): Likewise.
6116 (mi_cmd_stack_select_frame): Likewise.
6117 (mi_cmd_stack_info_frame): Likewise.
6118 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6120 (mi_cmd_file_list_exec_source_files): Likewise.
6121 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6122 (mi_cmd_env_cd): Likewise.
6123 (mi_cmd_env_path): Likewise.
6124 (mi_cmd_env_dir): Likewise.
6125 (mi_cmd_inferior_tty_show): Likewise.
6126 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6127 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6128 (mi_cmd_break_watch): Likewise.
6130 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6132 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6133 (ppc_linux_insert_hw_breakpoint): Likewise.
6134 (ppc_linux_remove_hw_breakpoint): Likewise.
6135 (ppc_linux_insert_watchpoint): Likewise.
6137 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6138 Jan Kratochvil <jan.kratochvil@redhat.com>
6140 PR fortran/11104 and DWARF unbound arrays detection.
6141 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6142 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6143 unspecified upper bound.
6144 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6145 variables array_size_array, tmp_type and offset_item. New variable
6146 array. Remove call to f77_get_upperbound. New variables array_type
6147 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6148 the final call to deprecated_set_value_type.
6150 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6152 Make value allocations more lazy.
6153 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6154 instead of allocate_value and set_value_lazy when possible.
6155 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6156 instead of allocate_value and set_value_lazy.
6157 * findvar.c (value_of_register_lazy): Likewise.
6158 (read_var_value): Remove V preallocation, call just check_typedef in
6159 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6160 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6161 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6162 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6163 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6164 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6165 the end, remove set_value_lazy there.
6166 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6167 instead of allocate_value and set_value_lazy when possible.
6168 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6169 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6170 of allocate_value and set_value_lazy.
6171 (value_from_contents_and_address): Use allocate_value_lazy instead of
6172 allocate_value and set_value_lazy when possible.
6174 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
6176 * disasm.c (dump_insns): Support dumping opcodes for MI.
6177 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6178 dumping of instruction opcodes.
6180 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6182 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6185 2011-01-11 Tom Tromey <tromey@redhat.com>
6187 * thread.c (do_captured_thread_select): Emit newline before
6190 2011-01-11 Michael Snyder <msnyder@vmware.com>
6192 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6193 * score-tdep.c: Ditto.
6194 * score-tdep.h: Ditto.
6195 * ser-base.c: Ditto.
6196 * ser-go32.c: Ditto.
6199 * ser-mingw.c: Ditto.
6200 * ser-pipe.c: Ditto.
6202 * ser-unix.c: Ditto.
6203 * sh64-tdep.c: Ditto.
6204 * shnbsd-nat.c: Ditto.
6208 * solib-darwin.c: Ditto.
6209 * solib-frv.c: Ditto.
6211 * solib-irix.c: Ditto.
6212 * solib-osf.c: Ditto.
6213 * solib-pa64.c: Ditto.
6214 * solib-som.c: Ditto.
6215 * solib-spu.c: Ditto.
6216 * solib-sunos.c: Ditto.
6217 * solib-svr4.c: Ditto.
6219 * sol-thread.c: Ditto.
6223 * sparc64-linux-tdep.c: Ditto.
6224 * sparc64-tdep.c: Ditto.
6225 * sparc-linux-nat.c: Ditto.
6226 * sparc-linux-tdep.c: Ditto.
6227 * sparc-sol2-nat.c: Ditto.
6228 * sparc-sol2-tdep.c: Ditto.
6229 * sparc-tdep.c: Ditto.
6230 * sparc-tdep.h: Ditto.
6231 * spu-tdep.c: Ditto.
6232 * stabsread.c: Ditto.
6233 * stabsread.h: Ditto.
6241 * target-descriptions.c: Ditto.
6242 * target-descriptions.h: Ditto.
6244 * target-memory.c: Ditto.
6245 * terminal.h: Ditto.
6248 * tracepoint.c: Ditto.
6249 * tracepoint.h: Ditto.
6250 * trad-frame.h: Ditto.
6251 * typeprint.c: Ditto.
6253 2011-01-11 Michael Snyder <msnyder@vmware.com>
6255 * ui-file.c: Comment cleanup, mostly periods and spaces.
6260 * v850-tdep.c: Ditto.
6261 * valarith.c: Ditto.
6263 * valprint.c: Ditto.
6264 * valprint.h: Ditto.
6269 * vax-tdep.c: Ditto.
6273 * windows-nat.c: Ditto.
6274 * windows-tdep.c: Ditto.
6275 * xcoffread.c: Ditto.
6276 * xcoffsolib.c: Ditto.
6277 * xml-support.c: Ditto.
6278 * xstormy16-tdep.c: Ditto.
6279 * xtensa-tdep.c: Ditto.
6280 * xtensa-tdep.h: Ditto.
6282 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6284 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6285 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6287 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6288 Thiago Jung Bauermann <bauerman@br.ibm.com>
6290 Implement support for PowerPC BookE ranged watchpoints.
6292 (struct breakpoint_ops) <resources_needed>: New method.
6293 Initialize to NULL in all existing breakpoint_ops instances.
6294 (struct breakpoint) <exact>: New field.
6295 (target_exact_watchpoints): Declare external global.
6296 * breakpoint.c (target_exact_watchpoints): New global flag.
6297 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6298 b->enable_state to bp_enabled before calling
6299 hw_watchpoint_used_count.
6300 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6301 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6303 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6304 if the watchpoint is exact.
6305 (resources_needed_watchpoint): New function.
6306 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6307 (watch_command_1): Set b->exact if the user asked for an exact
6308 watchpoint and one can be set.
6309 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6310 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6311 the user asks for an exact watchpoint and one can be set. Return
6312 number of needed debug registers to watch the expression.
6313 * gdbtypes.c (is_scalar_type): New function, based on
6314 valprint.c:scalar_type_p.
6315 (is_scalar_type_recursive): New function.
6316 * gdbtypes.h (is_scalar_type_recursive): Declare.
6317 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6318 handle regions when ranged watchpoints are available.
6319 (create_watchpoint_request): New function.
6320 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6321 create_watchpoint_request.
6322 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6323 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6324 `set powerpc' and `show powerpc' commands.
6325 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6326 Mention documentation comment in the target macro.
6327 (target_region_ok_for_hw_watchpoint): Document return value.
6329 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6331 * breakpoint.c (update_watchpoint): Decide on using a software or
6332 hardware watchpoint after the bp_locations are created.
6334 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6336 Convert hardware watchpoints to use breakpoint_ops.
6337 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6338 <insert_location>: ... this. Return int instead of void.
6339 Accept pointer to struct bp_location instead of pointer to
6340 struct breakpoint. Adapt all implementations.
6341 (breakpoint_ops) <remove>: Rename to...
6342 <remove_location>: ... this. Accept pointer to struct bp_location
6343 instead of pointer to struct breakpoint. Adapt all implementations.
6344 * breakpoint.c (insert_catchpoint): Delete function.
6345 (insert_bp_location): Call the watchpoint or catchpoint's
6346 breakpoint_ops.insert method.
6347 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6348 breakpoint_ops.remove method.
6349 (insert_watchpoint, remove_watchpoint): New functions.
6350 (watchpoint_breakpoint_ops): New structure.
6351 (watch_command_1): Initialize the OPS field.
6352 * inf-child.c (inf_child_insert_fork_catchpoint)
6353 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6354 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6355 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6357 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6358 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6359 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6360 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6361 * target.c (update_current_target): Change default implementation of
6362 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6363 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6364 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6365 to_set_syscall_catchpoint to return_one.
6366 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6367 (debug_to_insert_exec_catchpoint): Report return value.
6368 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6369 (to_insert_exec_catchpoint): Change declaration to return int instead
6372 2011-01-11 Michael Snyder <msnyder@vmware.com>
6374 * arm-tdep.c: Internationalization.
6377 * fork-child.c: Ditto.
6378 * nto-procfs.c: Ditto.
6379 * ppc-sysv-tdep.c: Ditto.
6381 * remote-mips.c: Ditto.
6383 * rs6000-nat.c: Ditto.
6384 * rs6000-tdep.c: Ditto.
6388 * xml-support.c: Ditto.
6389 * mi/mi-cmd-break.c: Ditto.
6390 * mi/mi-cmd-var.c: Ditto.
6391 * mi/mi-interp.c: Ditto.
6392 * mi/mi-main.c: Ditto.
6394 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
6396 * remote-sim.c (gdbsim_store_register): Update API to
6397 sim_store_register to check more error conditions.
6399 2011-01-10 Michael Snyder <msnyder@vmware.com>
6401 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6402 * nto-tdep.c: Ditto.
6403 * nto-tdep.h: Ditto.
6404 * objc-exp.y: Ditto.
6405 * objc-lang.c: Ditto.
6406 * objfiles.c: Ditto.
6407 * objfiles.h: Ditto.
6408 * observer.c: Ditto.
6409 * opencl-lang.c: Ditto.
6412 * parser-defs.h: Ditto.
6415 * posix-hdep.c: Ditto.
6416 * ppcbug-rom.c: Ditto.
6417 * ppc-linux-nat.c: Ditto.
6418 * ppc-linux-tdep.c: Ditto.
6419 * ppc-linux-tdep.h: Ditto.
6420 * ppcnbsd-tdep.c: Ditto.
6421 * ppcobsd-tdep.c: Ditto.
6422 * ppcobsd-tdep.h: Ditto.
6423 * ppc-sysv-tdep.c: Ditto.
6424 * ppc-tdep.h: Ditto.
6425 * printcmd.c: Ditto.
6426 * proc-abi.c: Ditto.
6427 * proc-flags.c: Ditto.
6429 * proc-utils.h: Ditto.
6430 * progspace.h: Ditto.
6431 * prologue-value.c: Ditto.
6432 * prologue-value.h: Ditto.
6433 * psympriv.h: Ditto.
6435 * p-typeprint.c: Ditto.
6436 * p-valprint.c: Ditto.
6437 * ravenscar-sparc-thread.c: Ditto.
6438 * ravenscar-thread.c: Ditto.
6439 * ravenscar-thread.h: Ditto.
6441 * regcache.c: Ditto.
6442 * regcache.h: Ditto.
6444 * remote-fileio.c: Ditto.
6445 * remote-fileio.h: Ditto.
6447 * remote-m32r-sdi.c: Ditto.
6448 * remote-mips.c: Ditto.
6449 * remote-sim.c: Ditto.
6450 * rs6000-aix-tdep.c: Ditto.
6451 * rs6000-nat.c: Ditto.
6452 * rs6000-tdep.c: Ditto.
6454 2011-01-10 Michael Snyder <msnyder@vmware.com>
6456 * charset.c (validate): Internationalization.
6457 * coffread.c (read_one_sym): Ditto.
6458 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6459 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6460 * inflow.c (new_tty): Ditto.
6461 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6462 * m32c-tdep.c (m32c_return_value): Ditto.
6463 * mep-tdep.c (mep_store_return_value): Ditto.
6464 * score-tdep.c (score7_fetch_insn): Ditto.
6465 * ser-mingw.c (pipe_windows_open): Ditto.
6466 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6467 * spu-tdep.c (spu_register_type): Ditto.
6468 * tracepoint.c (trace_find_command): Ditto.
6469 * valarith.c (value_pos): Ditto.
6471 2011-01-10 Joel Brobecker <brobecker@adacore.com>
6473 * ada-valprint.c (printstr): Minor comment reformatting.
6475 2011-01-08 Michael Snyder <msnyder@vmware.com>
6477 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6480 2011-01-08 Michael Snyder <msnyder@vmware.com>
6482 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6483 * hppa-hpux-tdep.c: Ditto.
6484 * hppa-linux-nat.c: Ditto.
6485 * hppa-linux-tdep.c: Ditto.
6486 * hppanbsd-tdep.c: Ditto.
6487 * hppa-tdep.c: Ditto.
6488 * hppa-tdep.h: Ditto.
6489 * hpux-thread.c: Ditto.
6490 * i386-cygwin-tdep.c: Ditto.
6491 * i386-darwin-nat.c: Ditto.
6492 * i386gnu-nat.c: Ditto.
6493 * i386-linux-nat.c: Ditto.
6494 * i386-linux-tdep.c: Ditto.
6495 * i386-nat.c: Ditto.
6496 * i386-nat.h: Ditto.
6497 * i386nbsd-tdep.c: Ditto.
6498 * i386-sol2-nat.c: Ditto.
6499 * i386-stub.c: Ditto.
6500 * i386-tdep.c: Ditto.
6501 * i386-tdep.h: Ditto.
6502 * i387-tdep.c: Ditto.
6503 * ia64-linux-nat.c: Ditto.
6504 * ia64-linux-tdep.c: Ditto.
6505 * ia64-tdep.c: Ditto.
6509 * inferior.c: Ditto.
6510 * inferior.h: Ditto.
6516 * iq2000-tdep.c: Ditto.
6517 * irix5-nat.c: Ditto.
6523 * jv-typeprint.c: Ditto.
6524 * jv-valprint.c: Ditto.
6525 * language.c: Ditto.
6526 * language.h: Ditto.
6527 * linespec.c: Ditto.
6528 * linux-fork.c: Ditto.
6529 * linux-nat.c: Ditto.
6530 * linux-thread-db.c: Ditto.
6531 * lm32-tdep.c: Ditto.
6533 2011-01-08 Michael Snyder <msnyder@vmware.com>
6535 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6537 * m2-typeprint.c: Ditto.
6538 * m2-valprint.c: Ditto.
6539 * m32c-tdep.c: Ditto.
6540 * m32r-linux-nat.c: Ditto.
6541 * m32r-rom.c: Ditto.
6542 * m32r-tdep.c: Ditto.
6543 * m32r-tdep.h: Ditto.
6544 * m68hc11-tdep.c: Ditto.
6545 * m58klinux-nat.c: Ditto.
6546 * m68k-tdep.c: Ditto.
6547 * m88k-tdep.c: Ditto.
6548 * m88k-tdep.h: Ditto.
6549 * machoread.c: Ditto.
6550 * macrocmd.c: Ditto.
6551 * macroexp.c: Ditto.
6552 * macrotab.c: Ditto.
6555 * mdebugread.c: Ditto.
6556 * mdebugread.h: Ditto.
6559 * memory-map.h: Ditto.
6560 * mep-tdep.c: Ditto.
6561 * microblaze-rom.c: Ditto.
6562 * microblaze-tdep.c: Ditto.
6564 * mips-irix-tdep.c: Ditto.
6565 * mips-linux-nat.c: Ditto.
6566 * mips-linux-tdep.c: Ditto.
6567 * mips-linux-tdep.h: Ditto.
6568 * mipsnbsd-nat.c: Ditto.
6569 * mipsnbsd-tdep.c: Ditto.
6570 * mipsread.c: Ditto.
6571 * mips-tdep.c: Ditto.
6572 * mips-tdep.h: Ditto.
6573 * mn10300-linux-tdep.c: Ditto.
6574 * mn10300-tdep.c: Ditto.
6575 * mn10300-tdep.h: Ditto.
6578 * moxie-tdep.c: Ditto.
6579 * moxie-tdep.h: Ditto.
6582 2011-01-08 Mike Frysinger <vapier@gentoo.org>
6584 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6586 2011-01-08 Robert Millan <rmh@gnu.org>
6588 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6590 2011-01-07 Michael Snyder <msnyder@vmware.com>
6592 * charset.c (_initialize_charset): Fix typo in string.
6594 2011-01-07 Michael Snyder <msnyder@vmware.com>
6596 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6598 * tui/tui-layout.c (tui_set_layout_for_display_command):
6599 Split line so that operator goes to beginning of line.
6600 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6601 assignment out of if statement.
6603 2011-01-07 Michael Snyder <msnyder@vmware.com>
6605 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6606 * ada-lang.h: Ditto.
6607 * ada-tasks.c: Ditto.
6608 * ada-valprint.c: Ditto.
6609 * aix-threads.c: Ditto.
6610 * alpha-linux-nat.c: Ditto.
6611 * alpha-linux-tdep.c: Ditto.
6612 * alpha-mdebug-tdep.c: Ditto.
6613 * alpha-nat.c: Ditto.
6614 * alpha-osf1-tdep.c: Ditto.
6615 * alpha-tdep.c: Ditto.
6616 * alphabsd-nat.c: Ditto.
6617 * alphabsd-tdep.c: Ditto.
6618 * amd64-darwin-tdep.c: Ditto.
6619 * amd64-linux-nat.c: Ditto.
6620 * amd64-linux-tdep.c: Ditto.
6621 * amd64-sol2-tdep.c: Ditto.
6622 * amd64-tdep.c: Ditto.
6623 * amd64-fbsd-tdep.c: Ditto.
6624 * amd64-nbsd-tdep.c: Ditto.
6625 * amd64-obsd-tdep.c: Ditto.
6626 * amd64-linux-nat.c: Ditto.
6627 * amd64-linux-tdep.c: Ditto.
6628 * arm-tdep.c: Ditto.
6629 * arm-tdep.h: Ditto.
6630 * armnbsd-nat.c: Ditto.
6631 * avr-tdep.c: Ditto.
6632 * bfin-tdep.c: Ditto.
6634 * c-typeprintc: Ditto.
6635 * c-valprint.c: Ditto.
6636 * coff-pe-read.h: Ditto.
6637 * coffreead.c: Ditto.
6638 * cris-tdep.c: Ditto.
6640 * darwin-nat-info.c: Ditto.
6641 * darwin-nat.c: Ditto.
6642 * dbug-rom.c: Ditto.
6646 * dec-thread.c: Ditto.
6648 * demangle.c: Ditto.
6649 * dicos-tdep.c: Ditto.
6650 * dictionary.c: Ditto.
6651 * dictionary.h: Ditto.
6652 * dink32-rom.c: Ditto.
6654 * doublest.c: Ditto.
6656 * dummy-frame.c: Ditto.
6657 * dwarf2-frame.c: Ditto.
6658 * dwarf2expr.c: Ditto.
6659 * dwarf2loc.c: Ditto.
6660 * dwarf2read.c: Ditto.
6664 * event-top.h: Ditto.
6665 * exceptions.c: Ditto.
6666 * exceptions.h: Ditto.
6668 * expprint.c: Ditto.
6669 * expression.h: Ditto.
6673 * f-typeprint.c: Ditto.
6674 * f-valprint.c: Ditto.
6675 * fbsd-nat.c: Ditto.
6677 * fork-child.c: Ditto.
6680 * frv-linux-tdep.c: Ditto.
6681 * frv-tdep.c: Ditto.
6683 * gdb-stabs.h: Ditto.
6684 * gdb_assert.h: Ditto.
6685 * gdb_string.h: Ditto.
6686 * gdb_thread_db.h: Ditto.
6687 * gdb_wait.h: Ditto.
6688 * gdbarch.sh: Ditto.
6690 * gdbthread.h: Ditto.
6691 * gdbtypes.c: Ditto.
6692 * gdbtypes.h: Ditto.
6695 * gnu-v2-abi.c: Ditto.
6696 * gnu-v3-abi.c: Ditto.
6697 * go32-nat.c: Ditto.
6698 * gdbarch.c: Regenerate.
6699 * gdbarch.h: Regenerate.
6701 2011-01-07 Michael Snyder <msnyder@vmware.com>
6703 * ax-gdb.c: Adjust some long output strings.
6704 * breakpoint.c: Ditto.
6709 * linux-nat.c: Ditto.
6710 * solib-pa64.c: Ditto.
6711 * solib-som.c: Ditto.
6713 2011-01-06 Tom Tromey <tromey@redhat.com>
6717 * python/python.c (GdbMethods): Add "newest_frame" method.
6718 * python/python-internal.h (gdbpy_newest_frame): Declare.
6719 * python/py-frame.c (gdbpy_newest_frame): New function.
6721 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6723 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6724 * jit.c (jit_debug): New variable.
6725 (show_jit_debug): New function.
6726 (struct target_buffer): Use ULONGEST.
6727 (bfd_open_from_target_memory): Likewise.
6728 (jit_register_code, jit_inferior_init): Add debug output.
6729 (_initialize_jit): Register "debug jit" command.
6731 2011-01-06 Tom Tromey <tromey@redhat.com>
6733 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6734 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6737 2011-01-06 Tom Tromey <tromey@redhat.com>
6739 * python/py-frame.c (frapy_block): Use get_frame_block.
6741 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6743 Do not stop on SIGPRIO signals by default
6744 * infrun.c (_initialize_infrun): Unset signal_stop and
6745 signal_print for TARGET_SIGNAL_PRIO.
6747 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6749 * ada-tasks.c: Fix style violation in comment.
6751 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6753 * linespec.c (decode_compound, find_method): Remove trailing \n
6754 at end of error string.
6755 * solib-irix.c (irix_current_sos): Likewise.
6756 * varobj.c (uninstall_variable): Likewise.
6758 2011-01-06 Joel Brobecker <brobecker@adacore.com>
6760 * copyright.py: New script.
6761 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6762 Launch emacs without exec'ing. Call copyright.py afterwards.
6764 2011-01-05 Michael Snyder <msnyder@vmware.com>
6766 * addrmap.c: Shorten lines of >= 80 columns.
6767 * arch-utils.c: Ditto.
6768 * arch-utils.h: Ditto.
6770 * ax-general.c: Ditto.
6772 * blockframe.c: Ditto.
6773 * breakpoint.c: Ditto.
6774 * buildsym.c: Ditto.
6776 * c-typeprint.c: Ditto.
6778 * coffread.c: Ditto.
6782 * cp-namespace.c: Ditto.
6783 * cp-support.c: Ditto.
6784 * dbug-rom.c: Ditto.
6789 * dictionary.c: Ditto.
6791 * doublest.c: Ditto.
6792 * dwarf2-frame.c: Ditto.
6793 * dwarf2expr.c: Ditto.
6794 * dwarf2loc.c: Ditto.
6795 * dwarf2read.c: Ditto.
6798 * event-loop.c: Ditto.
6799 * event-loop.h: Ditto.
6800 * exceptions.h: Ditto.
6802 * expprint.c: Ditto.
6803 * expression.h: Ditto.
6805 * f-valprint.c: Ditto.
6807 * frame-base.c: Ditto.
6808 * frame-unwind.c: Ditto.
6809 * frame-unwind.h: Ditto.
6813 * gdb-stabs.h: Ditto.
6814 * gdb_assert.h: Ditto.
6815 * gdb_dirent.h: Ditto.
6816 * gdb_obstack.h: Ditto.
6818 * gdbtypes.c: Ditto.
6819 * gdbtypes.h: Ditto.
6820 * inf-ttrace.c: Ditto.
6825 * inline-frame.h: Ditto.
6826 * language.c: Ditto.
6827 * language.h: Ditto.
6828 * libunwind-frame.c: Ditto.
6829 * libunwind-frame.h: Ditto.
6830 * linespec.c: Ditto.
6831 * linux-nat.c: Ditto.
6832 * linux-nat.h: Ditto.
6833 * linux-thread-db.c: Ditto.
6834 * machoread.c: Ditto.
6835 * macroexp.c: Ditto.
6836 * macrotab.c: Ditto.
6839 * mdebugread.c: Ditto.
6844 * objfiles.c: Ditto.
6845 * objfiles.h: Ditto.
6847 * p-typeprint.c: Ditto.
6848 * p-valprint.c: Ditto.
6850 * printcmd.c: Ditto.
6851 * proc-events.c: Ditto.
6853 * progspace.c: Ditto.
6854 * progspace.h: Ditto.
6855 * psympriv.h: Ditto.
6858 * regcache.c: Ditto.
6859 * regcache.h: Ditto.
6860 * remote-fileio.c: Ditto.
6862 * ser-mingw.c: Ditto.
6864 * ser-unix.c: Ditto.
6867 * solib-frv.c: Ditto.
6868 * solib-irix.c: Ditto.
6869 * solib-osf.c: Ditto.
6870 * solib-pa64.c: Ditto.
6871 * solib-som.c: Ditto.
6872 * solib-sunos.c: Ditto.
6873 * solib-svr4.c: Ditto.
6874 * solib-target.c: Ditto.
6878 * stabsread.c: Ditto.
6879 * stabsread.c: Ditto.
6882 * symfile-mem.c: Ditto.
6888 * target-descriptions.c: Ditto.
6889 * target-memory.c: Ditto.
6892 * terminal.h: Ditto.
6895 * tracepoint.c: Ditto.
6896 * tracepoint.h: Ditto.
6900 * user-regs.c: Ditto.
6901 * user-regs.h: Ditto.
6903 * valarith.c: Ditto.
6905 * valprint.c: Ditto.
6906 * valprint.h: Ditto.
6911 * xcoffread.c: Ditto.
6912 * xcoffsolib.c: Ditto.
6913 * xcoffsolib.h: Ditto.
6914 * xml-syscall.c: Ditto.
6915 * xml-tdesc.c: Ditto.
6917 2011-01-05 Michael Snyder <msnyder@vmware.com>
6919 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6920 * cli/cli-decode.c: Ditto.
6921 * cli/cli-dump.c: Ditto.
6922 * cli/cli-logging.c: Ditto.
6923 * cli/cli-script.c: Ditto.
6924 * cli/cli-setshow.c: Ditto.
6925 * common/signals.c: Ditto.
6926 * mi/mi-cmd-break.c: Ditto.
6927 * mi/mi-cmd-disas.c: Ditto.
6928 * mi/mi-cmd-stack.c: Ditto.
6929 * mi/mi-cmd-var.c: Ditto.
6930 * mi/mi-cmds.c: Ditto.
6931 * mi/mi-common.h: Ditto.
6932 * mi/mi-console.c: Ditto.
6933 * mi/mi-interp.c: Ditto.
6934 * mi/mi-main.c: Ditto.
6935 * osf-share/cma_attr.c: Ditto.
6936 * osf-share/cma_deb_core.h: Ditto.
6937 * osf-share/cma_debug_client.h: Ditto.
6938 * osf-share/cma_handle.h: Ditto.
6939 * osf-share/cma_mutex.h: Ditto.
6940 * osf-share/cma_stack_int.h: Ditto.
6941 * osf-share/cma_tcb_defs.h: Ditto.
6942 * python/py-auto-load.c: Ditto.
6943 * python/py-breakpoint.c: Ditto.
6944 * python/py-cmd.c: Ditto.
6945 * python/py-frame.c: Ditto.
6946 * python/py-objfile.c: Ditto.
6947 * python/py-param.c: Ditto.
6948 * python/py-progspace.c: Ditto.
6949 * python/py-symbol.c: Ditto.
6950 * python/py-value.c: Ditto.
6951 * python/python-internal.h: Ditto.
6952 * python/python.c: Ditto.
6953 * tui/tui-data.c: Ditto.
6954 * tui/tui-disasm.c: Ditto.
6955 * tui/tui-hooks.c: Ditto.
6956 * tui/tui-io.c: Ditto.
6957 * tui/tui-layout.c: Ditto.
6958 * tui/tui-regs.c: Ditto.
6959 * tui/tui-source.c: Ditto.
6960 * tui/tui-stack.c: Ditto.
6961 * tui/tui-win.c: Ditto.
6962 * tui/tui-windata.c: Ditto.
6963 * tui/tui-winsource.c: Ditto.
6965 2011-01-05 Joel Brobecker <brobecker@adacore.com>
6967 * configure.ac, gdb.1: Copyright year update.
6969 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6971 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6972 this_pc_in_block, morestack_msym and morestack_name. Check for
6973 "__morestack" minimal symbol there.
6975 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6977 * symfile.c (find_sym_fns): Add call to dont_repeat.
6979 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6981 Copyright year update in most files (performed by copyright.sh).
6983 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6985 * top.c (print_gdb_version): Update copyright year in version output.
6987 For older changes see ChangeLog-2010.
6993 version-control: never